ESP8266 Developer Zone The Official ESP8266 Forum 2016-08-03T14:29:07+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=2354 2016-08-03T14:29:07+08:00 2016-08-03T14:29:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2354&p=8256#p8256 <![CDATA[Re: IPMODE=1, TCP connect, data loss 在 ESP8266 回報MCU 時??]]> Statistics: Posted by ESP_Rubin — Wed Aug 03, 2016 2:29 pm


]]>
2016-06-27T16:48:19+08:00 2016-06-27T16:48:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2354&p=7513#p7513 <![CDATA[IPMODE=1, TCP connect, data loss 在 ESP8266 回報MCU 時??]]>
We use 2016 May 11 AT non-SDK firmware.
We try to use the following AT command setting

AT
ATE0
AT+CWMODE_CUR=1
AT+CWJAP_CUR="ZYXELO","84149929"
AT+CIPSTART="TCP","192.168.91.2",5001
AT+CIPMODE=1
AT+CIPSEND

...
then we try to random send data to server, and try to get the echo data from server.
(Half-duplex). Each time, we send the data less than 1460 bytes.
Our server is a simple socket code in linux, just like

while(1)
{
n = recv(socket, buffer, BUFFER_SIZE);
sendbytes =send(socket, buffer, n);
}

In most case, the esp8266 module can get correct echo packet and report it to MCU.

資料都是小於1460 bytes.. server 都正確收到並 echo 回ESP8266 ...

But sometimes, error happen:
the server echo correct data , however, the esp8266 並沒有把所有data 回報MCU...
只回報了部分 data...
也有時候 回報的data 內容也可能會錯..

It seems that data loss between ESP8266 to MCU...

Statistics: Posted by udmder — Mon Jun 27, 2016 4:48 pm


]]>