ESP8266 Developer Zone The Official ESP8266 Forum 2017-03-30T00:44:07+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=3435 2017-03-30T00:44:07+08:00 2017-03-30T00:44:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3435&p=11721#p11721 <![CDATA[Re: ESP8266 does not receive data correctly]]> Also, what happens if you send the 2048 bytes as packets of 2 x 1024 bytes packages?

I would recommend using shorter send lengths as long packets may take time to send if network conditions are not good (retransmisisons).
Also, secure connections will have limits on how much data you can send at a time.
Are you using a secure connection?

Statistics: Posted by Guest — Thu Mar 30, 2017 12:44 am


]]>
2017-03-16T13:39:50+08:00 2017-03-16T13:39:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3435&p=11494#p11494 <![CDATA[ESP8266 does not receive data correctly]]>
As shown in the figure, my program sent 2048 bytes every second automatically, but only the first packet are received correctly by esp8266. And as is observed data was sent before esp8266 echo back 'ok', although the I received "send ok" after that. An instant question for this is: how long does it take for esp8266 to execute the command? and how long will it cost for esp8266 to send all these 2048 bytes of data? Another question based on this observation is why esp8266 only received 1965 bytes of data while the actual amount of data sent via serial port to esp8266 is 2048 bytes?

>> AT Command and Data sent
commands.png


>> Data received at TCP Server
received.png


Cheers,

WL

Statistics: Posted by Wenkangl — Thu Mar 16, 2017 1:39 pm


]]>