How to use the On/Off Router example with ZigBee2MQTT?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-14 11:05 AM - edited 2023-11-14 11:06 AM
Hi,
I want to learn ZigBee and for this, I want to see what´s going on in the On/Off Router example and build up an environment to test my own implementations by using ZigBee2MQTT and a CC2531 dongle. I flashed the example onto my STM32WB55 Nucleo and the board can connect with the STM32WB55 Nucleo USB stick, but not with my ZigBee2MQTT setup.
I´ve activated pairing as a coordinator in the web UI and started the application on my Nucleo board. I got this output but no successful connection:
[M4 APPLICATION] APP_ZIGBEE_Init
[M4 APPLICATION] **********************************************************
[M4 APPLICATION] WIRELESS COPROCESSOR FW:
[M4 APPLICATION] VERSION ID = 1.17.0
[M4 APPLICATION] FW Type : FFD Zigbee stack
[M4 APPLICATION] Application flashed: OnOff_Client_Router
[M4 APPLICATION] Channel used: 13
[M4 APPLICATION] Link Key: ZigBeeAlliance09
[M4 APPLICATION] Link Key value: 5a 69 67 42 65 65 41 6c 6c 69 61 6e 63 65 30 39
[M4 APPLICATION] Clusters allocated are:
[M4 APPLICATION] onOff Client on Endpoint 17
[M4 APPLICATION] **********************************************************
[M0] [00000000.000][API] Init_ZigbeeStack_Infrastructure
[M4 APPLICATION] APP_ZIGBEE_StackLayersInit
[M4 APPLICATION] Network config : APP_STARTUP_CENTRALIZED_END_DEVICE
[M0] [00000000.022][PLATFORM] ZbNlmeResetReq : NLME-RESET.request (warmStart = 0)
[M0] [00000000.017][PLATFORM] zb_startup_join_nwk_disc : Attempting network discovery. Scans = 3, Duration = 4
[M0] [00000000.018][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M0] [00000000.287][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M0] [00000000.557][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M4 APPLICATION] ZbStartup Callback (status = 0xca)
[M4 APPLICATION] Startup failed, attempting again after a short delay (500 ms)
[M4 APPLICATION] Network config : APP_STARTUP_CENTRALIZED_END_DEVICE
[M0] [00000000.518][PLATFORM] ZbNlmeResetReq : NLME-RESET.request (warmStart = 0)
[M0] [00000000.017][PLATFORM] zb_startup_join_nwk_disc : Attempting network discovery. Scans = 3, Duration = 4
[M0] [00000000.018][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M0] [00000000.289][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M0] [00000000.560][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M4 APPLICATION] ZbStartup Callback (status = 0xca)
[M4 APPLICATION] Startup failed, attempting again after a short delay (500 ms)
[M4 APPLICATION] Network config : APP_STARTUP_CENTRALIZED_END_DEVICE
Solved! Go to Solution.
- Labels:
-
STM32WB series
-
Zigbee
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-15 5:41 AM
Hello @Kampi ,
From the traces it shows that the router did not find any available network to attach with, so the stack returns the error code 0xca -> ZB_NWK_STATUS_NO_NETWORKS.
You have to make sure that your coordinator has the same network configuration as your router ( channel, pre configured key, EPID filter..), also the joining time is limited by default on the coordinator side, thus the join should be proceeded only within that time.
Best regards,
Ouadi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-15 5:41 AM
Hello @Kampi ,
From the traces it shows that the router did not find any available network to attach with, so the stack returns the error code 0xca -> ZB_NWK_STATUS_NO_NETWORKS.
You have to make sure that your coordinator has the same network configuration as your router ( channel, pre configured key, EPID filter..), also the joining time is limited by default on the coordinator side, thus the join should be proceeded only within that time.
Best regards,
Ouadi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-11-15 11:40 PM
Hi @Ouadi
good points. I had to configure the channel to 13 in the configuration file because ZigBee2MQTT is using channel 11 by default
