ESP8266 Developer Zone The Official ESP8266 Forum 2015-05-04T15:44:04+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=419 2015-05-04T15:44:04+08:00 2015-05-04T15:44:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=419&p=1608#p1608 <![CDATA[Re: Lost data when TCP transfer a large amount of data]]>
请不要使用 timer 或者 while 不停调用 espconn_sent 发送数据

可以参考 http://bbs.espressif.com/viewtopic.php?f=21&t=320 使用

espconn_sent 需要在 sent callback 或者 write finish callback 中调用下一次发送。

Statistics: Posted by ESP_Faye — Mon May 04, 2015 3:44 pm


]]>
2015-04-29T16:24:59+08:00 2015-04-29T16:24:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=419&p=1580#p1580 <![CDATA[Re: Lost data when TCP transfer a large amount of data]]>
Espressif_Faye wrote:
您好,

麻烦确认一下是 TCP 丢包 还是 UART 丢包?

UART 如果没有使用硬件流控,有可能丢包。TCP 不会丢包。

如果仍然有问题,麻烦提供测试代码以复现问题。


您好,
是TCP传输数据丢包,不是 使用串口透传.
出现 错包(数据中没有0x0 但是接受到了大量的0x0),重包(接收的数据部分与上次末尾的部分重复).
附件太大,已发送邮件.

Statistics: Posted by huafan — Wed Apr 29, 2015 4:24 pm


]]>
2015-04-29T14:51:34+08:00 2015-04-29T14:51:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=419&p=1578#p1578 <![CDATA[Re: Lost data when TCP transfer a large amount of data]]>
麻烦确认一下是 TCP 丢包 还是 UART 丢包?

UART 如果没有使用硬件流控,有可能丢包。TCP 不会丢包。

如果仍然有问题,麻烦提供测试代码以复现问题。

Statistics: Posted by ESP_Faye — Wed Apr 29, 2015 2:51 pm


]]>
2015-04-29T14:37:14+08:00 2015-04-29T14:37:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=419&p=1577#p1577 <![CDATA[Lost data when TCP transfer a large amount of data]]> The specific description of the situation
Use TCP to send 6KB data, every time 2K, delay 10MS to 6K, but the data received nearly 800 byte 0x0, and repeat the last data.


使用TCP传输大量数据的时候发现数据丢包
在TCP传输大量数据的时候出现了丢包,错包的情况。
具体情况描述:
使用TCP发送6KB的数据,每次发送2K,延时10MS,接受到6K,但是数据接收到了 近800 byte的 0x0, 和 重复上一次的数据。

Statistics: Posted by huafan — Wed Apr 29, 2015 2:37 pm


]]>