cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the On/Off Router example with ZigBee2MQTT?

Kampi
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Ouadi
ST Employee

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

 

View solution in original post

2 REPLIES 2
Ouadi
ST Employee

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

 

Kampi
Associate III

Hi @Ouadi 

good points. I had to configure the channel to 13 in the configuration file because ZigBee2MQTT is using channel 11 by default