AT command set bug: headers missing

stefanpr
Posts: 1
Joined: Thu Oct 20, 2016 4:15 pm

AT command set bug: headers missing

Postby stefanpr » Thu Oct 20, 2016 4:27 pm

I noticed during testing that the ESP8266 does not always send the +IPD header before the data.
I am testing by sending packets with a 56 byte payload to an ESP connected to an arduino. The arduino simply sends the received packet back to the server. Capture of the serial data shows the ESP sometimes concatenates the data of a packet with the data of the next packet, without a header in between, as per the following example:

Correct:

Code: Select all

+IPD,3,56,10.0.1.176,8899:¿... 000704............ !"#$%&'()*+,-./0123456789:;<=>?@


Incorrect:

Code: Select all

+IPD,3,112,10.0.1.176,8899:¡... 000705............ !"#$%&'()*+,-./0123456789:;<=>?@¬... 000706............ !"#$%&'()*+,-./0123456789:;<=>?@

Then the next one is correct again:

Code: Select all

+IPD,3,56,10.0.1.176,8899:√... 000707............ !"#$%&'()*+,-./0123456789:;<=>?@

This data was captured by a second computer, directly from the serial interface, so not from the arduino. I am therefore quite confident this is a bug.

I am sending these packet at a rate of 10 per second.
Sometimes it works well for 13000 packets, sometimes only for a couple of hundred.

Any ideas??

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: AT command set bug: headers missing

Postby Her Mary » Sun Mar 19, 2017 2:11 pm

It combines 2 packets to be 1 packet, maybe because of the network blocking.

Code: Select all

+IPD,3,56,......

The 56 is the data length.

Code: Select all

+IPD,3,112,......

The 112 is the data length.

Who is online

Users browsing this forum: No registered users and 3 guests