Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiFi STA在WIFI_PROTOCOL_11B或者WIFI_PROTOCOL_LR 模式下,UDP单包发送最大多少字节? (IDFGH-13899) #14741

Open
3 tasks done
guo652917087 opened this issue Oct 17, 2024 · 0 comments
Assignees
Labels
Status: Opened Issue is new

Comments

@guo652917087
Copy link

guo652917087 commented Oct 17, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

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,只能在这里提问。

@espressif-bot espressif-bot added the Status: Opened Issue is new label Oct 17, 2024
@github-actions github-actions bot changed the title WiFi STA在WIFI_PROTOCOL_11B或者WIFI_PROTOCOL_LR 模式下,UDP单包发送最大多少字节? WiFi STA在WIFI_PROTOCOL_11B或者WIFI_PROTOCOL_LR 模式下,UDP单包发送最大多少字节? (IDFGH-13899) Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

3 participants