WiFi STA在WIFI_PROTOCOL_11B或者WIFI_PROTOCOL_LR 模式下,UDP单包发送最大多少字节? (IDFGH-13899) #14741
Open
3 tasks done
Labels
Status: Opened
Issue is new
Answers checklist.
General issue report
来龙去脉,在使用esp-mesh-lite项目时候,在AP设置WIFI_PROTOCOL_11B时,两个模块之间可以发送超过300字节,但是STA方设置成WIFI_PROTOCOL_11B模式,就不能通信正常。具体参考 espressif/esp-mesh-lite#121
1.请问 WiFi STA在WIFI_PROTOCOL_11B模式下,UDP 最大可以发送多少个字节?发包间隔多少?
2.WiFi STA在WIFI_PROTOCOL_LR模式下,UDP 最大可以发送多少个字节?发包间隔多少?
测试发现 AP设置
WIFI_IF_AP, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N | WIFI_PROTOCOL_LR
STA 设置
WIFI_PROTOCOL_11B | WIFI_PROTOCOL_LR
UDP就不能长包通信,比如1024个字节,
但是:
1)用ping命令,指定ping包长度-s 1200一直能ping到路由器上的IP。
2)移植iperf,测试到路由器上的IP速度在0.5Mbs,说明tcp socket ok.
也就说,ping和TCP正常,UDP在
WIFI_PROTOCOL_11B | WIFI_PROTOCOL_LR
模式通信就有问题。同时提供一份基于esp-mesh-lite项目的测试 代码: espressif/esp-mesh-lite#121 (comment)
最终的结果就是,在
WIFI_PROTOCOL_11B | WIFI_PROTOCOL_LR
下,UDP发长包不能正常通信。非常紧急,esp-mesh-lite项目那边无法解决这个issue,只能在这里提问。
The text was updated successfully, but these errors were encountered: