ESP8266 Developer Zone The Official ESP8266 Forum 2017-04-17T14:52:52+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=3450 2017-04-17T14:52:52+08:00 2017-04-17T14:52:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3450&p=12359#p12359 <![CDATA[Re: [ESP8266]: Transparent mode]]> Statistics: Posted by Her Mary — Mon Apr 17, 2017 2:52 pm


]]>
2017-03-23T17:25:55+08:00 2017-03-23T17:25:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3450&p=11551#p11551 <![CDATA[[ESP8266]: Transparent mode]]>
I'm working on a project with ESP-WROOM-02 module which embeds the ESP8266.
I'm using it to in gateway mode UART to TCP/IP (AT+CIPMODE=1 and AT+CIPSEND), the module is in station mode of course and up to date, the OTA update is always processed at startup.

This is the environment :
- LPC MCU sends data to ESP through the UART (baudrate : 2 880 000 = 115200 * 25). The data destination is a TCP/IP server (Websocket on top of)
- Data packet size is from 1800 bytes and send every 20-25 ms (100 kB/s). I know, mimimum 20 ms between two packets is specified in ESP8266 AT command user manual and we followed this recommendation of course.

This is my problem :
When we send a certain amount of data, not constant, some data (around 180 bytes) are lost and the WebSocket server is gone away due to understanding data.
We spied the UART link to be able to confirm the whole data are sent to ESP module without lost. We made a comparison between this UART spy and a Wireshark capture to find this lost.

We tried to :
- decrease packet size but the problem steel there, except if the data size are less than 128B.
- decrease the packet sending frequency, the problem disappeared if there is 300 ms between 2 packet.
- decrease the UART baudrate but there is no impact.

Do you know how we can fix this problem ? Is it already known ? I don't think we use the ESP module in these limits ?

Thanks in advance for your help

Statistics: Posted by paupoix — Thu Mar 23, 2017 5:25 pm


]]>