ESP do not send last packet to server
Posted: Tue Jun 16, 2015 11:12 pm
Hi, i'm try make this works for more than an month, any help or guidance would be greatly appreciated... i'am really really missing here... dont know what else to do...
I'm trying arduino uno (ide1.6.4) with softserial to esp at 9600. I do have a voltage divisor. All AT commands responds ok. This is my esp firmware:
AT+GMR
0020000903
compiled @ Dec 15 2014 19:43:31
AITHINKER-20141206
I'am trying to send http traffic to plot.ly. Since it works fine with ethShield, now i'am trying with ESP wifi because i need wifi, and a shield is not an option because of size, pins, and cost.
Also i'am using wireshark in order to sniff the traffic to what is going in and out the wifi network.
Here is the issue:
1.- AT+CIPSTART=0,"TCP","plot.ly",80 -> work fine, since i see SYN/ACK going arround. Check ok.
2.- AT+CIPSEND=0,334
POST /clientresp HTTP/1.1
Host: plot.ly:80
User-Agent: Arduino/0.6.0
Content-Length: 244
version=2.3&origin=plot&platform=arduino&un=xxxxxxxxxxxx&key=xxxxxxxxxx&args=[{"y": [], "x": [], "type": "scatter", "stream": {"token": "xxxxxxxxxx", "maxpoints": 30}}]&kwargs={"fileopt": "overwrite", "filename": "xxxx", "world_readable": true}
Send OK.
But if check the sniffer i have a missing HTTP post.
The first picture is a workinf capture of posting to plotly via ethernet. I crop a cople of lines and dont check size. Take a look at the line the says HTTP post.
and the second is a picture from a NON working post using ESP. If you take a look, before the syn/ack, the info is beeing sent, but the last packet with the HTTP post does not. Later i get a request time out from server.
In the detailed packet capture i'am seeng that all the information is beeing sent from arduino to ESP and the to wifi AP.
But the last packet of HTTP post.... i'am not seen it...
I don't know if i should try to change the firmware... to switch one?
I could try with an arduino mega just to keep all serial in hardware, but i don't think that would solve this particular issue.
Thanks in advance... cheers
I'm trying arduino uno (ide1.6.4) with softserial to esp at 9600. I do have a voltage divisor. All AT commands responds ok. This is my esp firmware:
AT+GMR
0020000903
compiled @ Dec 15 2014 19:43:31
AITHINKER-20141206
I'am trying to send http traffic to plot.ly. Since it works fine with ethShield, now i'am trying with ESP wifi because i need wifi, and a shield is not an option because of size, pins, and cost.
Also i'am using wireshark in order to sniff the traffic to what is going in and out the wifi network.
Here is the issue:
1.- AT+CIPSTART=0,"TCP","plot.ly",80 -> work fine, since i see SYN/ACK going arround. Check ok.
2.- AT+CIPSEND=0,334
POST /clientresp HTTP/1.1
Host: plot.ly:80
User-Agent: Arduino/0.6.0
Content-Length: 244
version=2.3&origin=plot&platform=arduino&un=xxxxxxxxxxxx&key=xxxxxxxxxx&args=[{"y": [], "x": [], "type": "scatter", "stream": {"token": "xxxxxxxxxx", "maxpoints": 30}}]&kwargs={"fileopt": "overwrite", "filename": "xxxx", "world_readable": true}
Send OK.
But if check the sniffer i have a missing HTTP post.
The first picture is a workinf capture of posting to plotly via ethernet. I crop a cople of lines and dont check size. Take a look at the line the says HTTP post.
and the second is a picture from a NON working post using ESP. If you take a look, before the syn/ack, the info is beeing sent, but the last packet with the HTTP post does not. Later i get a request time out from server.
In the detailed packet capture i'am seeng that all the information is beeing sent from arduino to ESP and the to wifi AP.
But the last packet of HTTP post.... i'am not seen it...
I don't know if i should try to change the firmware... to switch one?
I could try with an arduino mega just to keep all serial in hardware, but i don't think that would solve this particular issue.
Thanks in advance... cheers