Post a new topicPost a reply Page 1 of 2   [ 14 posts ]
Go to page 1, 2  Next
Author Message
 Post subject: e-Health wi-fi module
PostPosted: Mon May 07, 2018 7:26 am 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
I do not know how to use the e-Health wi-fi module. Executing the sample program at the above URL will result in the following error.

avrdude: stk500_getsync (): not in sync: resp = 0x50

I have no idea what is the cause.
It will be very helpful if someone tells me.

-code-


char recv[512];
int cont;

void setup()
{

Serial.begin(9600);
}

void loop()
{
while (Serial.available()>0) {}
// Enters in command mode
Serial.print("$$$"); check();

// Sets DHCP and TCP protocol
Serial.print("set ip dhcp 1\r"); check();
Serial.print("set ip protocol 2\r"); check();

// Configures the way to join the network AP, sets the encryption of the
// network and joins it
Serial.print("set wlan join 0\r"); check();
Serial.print("set wlan phrase PASSWORD\r"); check();
Serial.print("join libelium_wsn2\r"); check();

// Sets the DNS address
Serial.print("set i h 0\r"); check();
Serial.print("set d n www.URL.com\r"); check();

//Configures HTTP connection
Serial.print("set i r 80\r"); check();
Serial.print("set c r GET$/...\r"); check();
Serial.print("set o f 1\r"); check();

// Calls open to launch the configured connection.
Serial.print("open\r"); check();
}

void check(){
cont=0; delay(1000);
// Receive the answer from the WIFI module.
while (Serial.available()>0)
{
recv[cont]=Serial.read(); delay(100);
cont++;
}
recv[cont]='\0';
// Print the answer.
Serial.println(recv);
// Clean the buffer to be able to send a command.
Serial.flush(); delay(1000);
}


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Mon May 07, 2018 10:44 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11288
Hi,

Did you select the correct USB port and board in the Arduino IDE?

Regards


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Tue May 08, 2018 6:37 am 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
Thanks for the reply.
The microcomputer board selected Arduino UNO. When I move the heart rate sensor, I think that it does not have a problem with the USB port and the board because it is operating in the same environment.


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Wed May 09, 2018 9:49 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11288
So, if you disconnect the ECG sensor from e-health, you are able to upload the code to arduino?


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Thu May 10, 2018 10:11 am 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
I am not using the ECG sensor.
Now I am just connecting the wifi-module to e-health.
Do I need to use an ECG sensor?
Or I am using sample code as it is, but do I have to rewrite something?

I'm new to Arduino and e-health, so I'm sorry just because I do not know.


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Thu May 10, 2018 12:00 pm 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11288
Hi,

No, it isn't needed the ECG sensor. We thought that you had some problem with that sensor since you said in you above post "When I move the heart rate sensor..."

Regards


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Fri May 11, 2018 6:34 am 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
Sorry, that is a misunderstanding.
This time heart rate sensor does not matter.
I do not know how to use wi-fi module this time.
I am sorry for it being confusing.


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Fri May 11, 2018 11:49 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11288
Hi,

did you follow the steps of this guide?
https://www.cooking-hacks.com/blog/tuto ... ng-rn-xvee

Could you share some images of your devices?

Regards


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Sun May 13, 2018 5:38 pm 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
I think that you are following the steps as per the tutorial for that URL.
Is it okay to compile the sample code with ArduinoIDE?

I'd like to upload the image of my device, but can I update it here?

Error contents have changed, the error below appears.

-error-
avrdude: stk500_getsync (): not in sync: resp = 0x00

I am sorry that there are many problems, but please give me advice.


Top
 Profile  
 
 Post subject: Re: e-Health wi-fi module
PostPosted: Mon May 14, 2018 11:02 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11288
Hi,

You can share images using a free service like free service like dropbox, google drive, imageshack, etc.

It seems that code can be uploaded successfully to the Arduino. Could you try with another Arduino?

Did you select the correct port and board?

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 2   [ 14 posts ]
Go to page 1, 2  Next


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.