-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
When Bluetooth and wiiFI turn on together (IDFGH-3853) #5759
Comments
Hi @poisonousfish, For problem#2, as following log indicates, it's a must to enable WiFi modem sleep when both WiFi and BT are enabled, you can't configure to WIFI_PS_NONE in WiFi/BT coexist mode. For problem#1, it's maybe caused by AP's problem, could you help to do below test:
|
Yes, I did the test For question 2, that means I can only separate Bluetooth from wifi for stable transmission |
Hi @poisonousfish, for problem#1, how about WiFi only + enable sleep mode? |
Wow, I noticed that this problem still occurs when only WIFI is on and PS Mode 1 is on, but the frequency is reduced, which is probably caused by PSmode1 |
Hi @poisonousfish could you help to capture the WiFi packets between ESP32 and AP? |
I'm not sure what I should do,i never capture the WiFi packets between ESP32 and AP |
@poisonousfish, |
I'm having the same problem 2 with the wifi/bluetooth coexistence, even though i set esp_wifi_set_ps(WIFI_PS_MIN_MODEM), after mwifi_start() it automatically put ps type to 0, and then crashes. wifi without bluetooth works fine, and i'm using release/v1.0. they can actually coexist or i have to manually disable esp-wifi-mesh to use bluetooth? |
HI @vitorrussi, please don't disable Wifi modem sleep for WiFi/BT coexistence. |
I will conduct the test and reply to you as soon as possible |
@liuzfesp sorry, i forgot to mention that i'm using ESP-MDF release/v1.0 that use ESP-IDF bf02206 branch, kinda a release/v3.3.2. I am using mwifi, and doesn't matter which power save mode i choose, even when i dont set anything, when i call mwifi_start() the function set power save to WIFI_PS_NONE and then immediately i receive the message |
Sadly, I can't get direct access to AP and ESP32, and I don't have a suitable AP for testing right now. However, I had a problem with a ESP32 that was running on wifi while it were stalled for more than 45 seconds and not like on connect wifi. I (2887) wifi:security: WPA2-PSK, phy: b, rssi: -61 The same software and hardware, the other ESP32 won't encounter, and there's little difference between the two locations. |
To fix this issue on Arduino platform just set |
@vitorrussi in menuconfig you need to enable the "Enable mesh PS (power save) function" option in MDF Mwifi section. |
hi @ingeniero-david I just tried enabling the mesh PS like you said but i am still have the same error could you please tell me if you were able to use esp-MDFf with ble at the same time. |
Hi @guianmon99 I have used esp-mdf with classic bt, could you share your code? |
Hi @ingeniero-david thank you for your promply response.
} mwifi_init_config_t cfg = MWIFI_INIT_CONFIG_DEFAULT();
and here is the initialization of the mesh that is giving me troubles. just for reference both ble and wifi mesh work on their own just fine. |
@guianmon99 your code looks correct, another thing to keep in mind is that all nodes in the mesh must have enabled the "Enable mesh PS (power save) function" option in MDF Mwifi section even if they do not use bluetooth. Could you share your error? |
Hi @ingeniero-david my error is this: Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are exactly. |
I got the same error message: Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are enabled!!!!!!! |
Environment
Problem Description
When I'm transmitting data over TCP, the following prompts sometimes come up.
I had this problem1 at first.
I think WIFI PS mode is probably the cause of this problem1
Then I encountered the second problem
When I have wifi and Bluetooth on, I can't set WIFI PS to WIFI_PS_NONE
WIFI_PS_MIN_MODEM or WIFI_PS_MAX_MODEM is fine
PS:I found that other people also encountered this problem when working with wifi Mesh. You said that you have fixed this bug, but the latest V4.1 stable version I used still has this problem
当我使用TCP进行传输数据的时候,时不时的会出事wifi断开.
这是我的问题1
我认为可能是wifi的power saver mode 导致wifi连接不稳
然后我遇到的第二个问题
当我开启蓝牙和wifi的时候我不能将ps设置为WIFI_PS_NONE
如果设置为WIFI_PS_MIN_MODEM 或者WIFI_PS_MAX_MODEM 就是可以的
PS:我发现别人进行wifi mesh时候也遇到这个问题,你们表示已经修复这个bug,但是我使用的最新的V4.1稳定版还是出现这个问题
problem 1.
I (55868) wifi:bcn_timout,ap_probe_send_start
I (64978) wifi:bcn_timout,ap_probe_send_start
I (79538) wifi:bcn_timout,ap_probe_send_start
I (88938) wifi:bcn_timout,ap_probe_send_start
problem 2.
I (1311) wifi:wifi firmware version: 3ea4c76
I (1311) wifi:config NVS flash: enabled
I (1311) wifi:config nano formating: disabled
I (1311) wifi:Init dynamic tx buffer num: 32
I (1321) wifi:Init data frame dynamic rx buffer num: 32
I (1321) wifi:Init management frame dynamic rx buffer num: 32
I (1331) wifi:Init management short buffer num: 32
I (1331) wifi:Init static rx buffer size: 1600
I (1341) wifi:Init static rx buffer num: 10
I (1341) wifi:Init dynamic rx buffer num: 32
I (1351) wifi:mode : sta (a4:cf:12:64:5f:68)
I (1351) wifi:Set ps type: 0
E (1351) wifi:Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are enabled!!!!!!
last
I just want to be able to have a steady connection and transmission when Bluetooth and wifi are on
我只是想要在开启wifi和蓝牙时进行一个稳定数据传输。
The text was updated successfully, but these errors were encountered: