您好!
我有一个问题,几个月来我一直在努力解决这个问题。请参阅下面的问题,并希望听取其他专家的意见。
TCP套接字断开问题
WiFi模块:BCM4390 SPIL模块(SB—WM N03)
SW版本和平台:WICDE3.1.2 SDK中的BCM94390WCD2
-TCP堆栈:NETXX-DIO
发行细节:我们的设备与WiFi模块传输1023字节数据在每220MS到控制平板电脑(基于Android的操作系统)。在传输过程中,TCP套接字发生故障,数据传输停止。当TCP套接字断开时,通过ping检查,设备和平板WiFi连接仍然存在。
当我们检查了WiFi模块的日志时,我们观察到“WICEDDUTCPPsEnthUpLoad失败!!!!-“1”信息。由于它是基于MCU的嵌入式系统,我们无法从平台上获得TCP转储,但是我们可以捕获WiFi日志,并且可以检查TCP信令。从不同的WiFi日志中,我们观察到大约3秒发生的传输停止,结果,TCP栈结束了重新连接。
-频率问题:在正常办公环境中发生的问题。当它发生时,它在一两个小时内发生一次。
-对这个问题的看法:我们怀疑WiFi模块在特定时刻奇怪地行为并丢失数据包;因此,TCP堆栈断开。当断线发生时,我们可以使SW重新连接;但是,我们不能停止在我们的应用中非常重要的数据丢失。这个不稳定的问题对我们的项目是非常严重的,希望找到解决方案,或者努力避免丢失数据包。
设备WiFi Mac:B2:38:29∶21:2D:5C(IP:192.1680.1)
平板WiFi Mac:94:76:B7:A7:15:75(IP:192.1680.2)
WiFi安全:在开放模式下测试。
6MbPs提取包装
292.9 K
以上来自于百度翻译
以下为原文
Hi
I have an issue which I have been struggling to resolve for a couple of months. Please see below issue and wish to hear some advices from other experts.
TCPSocketdisconnection Issue
-WiFiModule :BCM4390 SPILmodule(SB–WM-N03)
-SWversionandplatform:BCM94390WCD2 in the WICED3.1.2SDK
-TCP Stack:NetX_duo
-Issuedetails: Our device withwifimoduletransfers1023byte datainevery 220ms to the control tablet (Android based OS). During the transmission, TCPsocketfailure happens and data transmission stops. When the TCP socket is disconnected, device and Tabletwificonnection is still alive by checking with ping.
Aswecheckedthelogfromthewifimodule, we observed "wiced_tcp_send_bufferfail!!! –1"message.We could not get thetcpdump from the platform since it is MCU based embedded system but we could capturewifilog and could check the TCP signaling. FromthevariousWiFilogs, weobservedtransmit stoppage happenedfor about more than 3 secondsand as a result, TCP stack ended upresetingthe connection.
-Frequency of theissue:Theissuehappenedinnormal office environment. When it happens, it happens once in one or two hours.
-Opinionontheissue:WesuspectthatsomehowtheWiFimodulebehaves strangely on that specific moments and loses packets; as a result, the TCP stack is disconnected. We can make the SW reconnect when the disconnection happens; however, we can not stop losing the data which is very important in our application. This instability issue is very serious to our project and hope to find a solution or work around not to lose the packets.
Device wifi Mac: B2:38:29:21:2d:5c (IP: 192.168.0.1)
Tablet WiFi Mac: 94:76:B7:a7:15:75 (IP: 192.168.0.2)
Wifi Security: Tested in open mode.
0