IPMODE=1, TCP connect, data loss 在 ESP8266 回報MCU 時??

udmder
Posts: 2
Joined: Mon Jun 27, 2016 4:39 pm

IPMODE=1, TCP connect, data loss 在 ESP8266 回報MCU 時??

Postby udmder » Mon Jun 27, 2016 4:48 pm

HI 樂鑫:

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

ESP_Rubin
Posts: 222
Joined: Wed Jun 29, 2016 11:59 am

Re: IPMODE=1, TCP connect, data loss 在 ESP8266 回報MCU 時??

Postby ESP_Rubin » Wed Aug 03, 2016 2:29 pm

能否确认在8266那端确认一下,8266是否正确接收到了数据?

Who is online

Users browsing this forum: No registered users and 1 guest