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??