-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
ESP32-C6 Zigbee and wifi AP and STA error #10871
Comments
please provide full sketch code to reproduce the issue |
Try adding this to your code:
|
Hi @lbernstone , Your suggestion worked for STA mode. Still the problem persists in AP mode. The AP is created but the client such as mobile is not able to connect. Any insight on that? |
Just a quick note: Since there is only one RF path in ESP32-C6, which means Wi-Fi and Zigbee can't receive simultaneously, it has a significant impact on performance. Hence the two SoCs solution is recommended. |
The SSID is not visible, or negotiation problems? Post a log. |
Hi @lbernstone & @P-R-O-C-H-Y , The SSID is visible in mobile but the connection is always getting failed. Unfortunately there are no logs when client tries to connect. I do understand that RF path is single. If I can disable Zigbee ( like Zigbee.disable()) and init a WiFi AP mode, this will solve my purpose. setup: void setup() } Init_ota function which is called with longpress of switch: void OTA_init() OTA_server_init(); // simple AP based webserver Below are logs for same: [ 48363][V][NetworkEvents.cpp:113] _checkForEvent(): Network Event: 101 - WIFI_READY |
I don't know enough about Zigbee, but I wonder what channels it needs. For STA mode, you do have 'idle' time inbetween beacons. So I guess the problem here is the constant frequency hopping. I found this online: So maybe you could use WiFi channel 1 along with Zigbee channel 12 or 13? If Zigbee does use frequency hopping, like Bluetooth does, then it sounds to me like a lost cause as it is technically hardly usable. |
@TD-er , So in this case only way to tackle this issue is to disable Zigbee when AP for firmware update has to be init. Better to have Zigbee.disable function. @P-R-O-C-H-Y , Can you suggest if we have this functionality? |
@sonirohit3 I was searching through all available APIs of esp-zigbee-sdk and I didn't see any option to disable/deinit Zigbee. |
@P-R-O-C-H-Y , I agree. I also looked on this and found this missing. Any workaround you can suggest? |
@sonirohit3 I asked the Zigbee team if there is any way. I was also curious about the C5 as it have 5 GHz WiFi. |
@P-R-O-C-H-Y If you can do 5 GHz WiFi + some 2.4 GHz activity (Zigbee/BT/WiFi), then I guess it will only be in STA mode for WiFi and not in AP mode. (so also not STA+AP) A simple test for this hypothesis is to use Bluetooth and WiFi AP mode at the same time. |
@TD-er You can check some coexistence info here in the IDF docs for C6 https://docs.espressif.com/projects/esp-idf/en/stable/esp32c6/api-guides/coexist.html I asked for Zigbee/WiFi to be added, as I saw many users asking about this in other repositories also. About the C5, I just got it for few days now, did not test many things, was just curious about the AP on 5GHz + Zigbee. |
I am a bit surprised to see the ESP-NOW TX with BLE coexistance to be "Y" and not "S". So I would expect it to be "C1" (unstable) when running ESP-NOW in AP mode and "S"/"Y" for ESP-NOW TX in STA mode. Any (future) table showing the coexistance between Thread and WiFi will likely be all "S" or "C1" and probably some "X" values in both the column and row for 'scan'. Like I mentioned before, in STA mode you do have some time between the beacons, which can also be increased by setting the DTIM to a higher value to favour stability and response time for the other (BLE or Thread) over WiFi. |
Board
ESP32-C6
Device Description
Esp32-c6 custom board
Hardware Configuration
ESP32-C6 custom board
Version
latest master (checkout manually)
IDE Name
Arduino
Operating System
Macos
Flash frequency
40
PSRAM enabled
yes
Upload speed
115200
Description
Wifi doesn't work in STA or AP more when Zigbee is initialized. Also I don't see a way to de-init zigbee.
Idea is to use Wifi OTA activated with a switch.
-> When using AP mode, the client can find the AP but cannot connect.
-> When using STA mode, the WiFi won't connect and return error:
Sketch
Debug Message
Other Steps to Reproduce
Init Zigbee and then init the wifi.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: