2023-11-07 01:25 AM - last edited on 2023-12-05 06:19 AM by Remy ISSALYS
Hi,
I made my first steps in ZigBee by using the NUCLEO-STM32WB55 board with the USB dongle. The dongle is flashed and the blue LED is shining, but the NUCLEO board is printing the following message:
[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_ROUTER
[M0] [00000000.517][PLATFORM] ZbNlmeResetReq : NLME-RESET.request (warmStart = 0)
[M0] [00000000.018][PLATFORM] zb_startup_join_nwk_disc : Attempting network discovery. Scans = 3, Duration = 4
[M0] [00000000.019][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M0] [00000000.031][PLATFORM] nwk_handle_beacon_ind : BEACON addr16=0x0000, epid=0x0080e125004ca76a, ch=13, pan=0x4aa2, depth= 0, lqi=192, cost=1, pjoin=0
[M0] [00000000.290][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M0] [00000000.300][PLATFORM] nwk_handle_beacon_ind : BEACON addr16=0x0000, epid=0x0080e125004ca76a, ch=13, pan=0x4aa2, depth= 0, lqi=192, cost=1, pjoin=0
[M0] [00000000.559][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00002000, dur=4
[M0] [00000000.570][PLATFORM] nwk_handle_beacon_ind : BEACON addr16=0x0000, epid=0x0080e125004ca76a, ch=13, pan=0x4aa2, depth= 0, lqi=196, cost=1, pjoin=0
What does this error code mean and where can I look up these error codes?
Solved! Go to Solution.
2023-11-09 03:13 AM
Hello @Kampi,
As I understood, you are using a Nucleo board as a Router and a USB Dongle as a Coordinator both flashed respectively with the ZigBee_OnOff_Client_Router and ZigBee_OnOff_Server_Coordinator binaries.
From your logs, it shows that the router did not find a network to attach with, since the stack returns the error Status = 0xca -> ZB_NWK_STATUS_NO_NETWORKS.
In addition to that the bacon request from the router shows that the permit join is disabled by the coordinator => pjoin=0, which explains that the joining time fixed by default at 180 seconds has elapsed, so no more device is allowed to join the network.
For that, you need to make sure that the joining is done within this interval, Otherwise, you need to perform a Permit join by calling the API ZbZdoPermitJoinReq in the coordinator side.
Best regards,
Ouadi
2023-11-09 03:13 AM
Hello @Kampi,
As I understood, you are using a Nucleo board as a Router and a USB Dongle as a Coordinator both flashed respectively with the ZigBee_OnOff_Client_Router and ZigBee_OnOff_Server_Coordinator binaries.
From your logs, it shows that the router did not find a network to attach with, since the stack returns the error Status = 0xca -> ZB_NWK_STATUS_NO_NETWORKS.
In addition to that the bacon request from the router shows that the permit join is disabled by the coordinator => pjoin=0, which explains that the joining time fixed by default at 180 seconds has elapsed, so no more device is allowed to join the network.
For that, you need to make sure that the joining is done within this interval, Otherwise, you need to perform a Permit join by calling the API ZbZdoPermitJoinReq in the coordinator side.
Best regards,
Ouadi
2023-11-09 05:12 AM
Hi @Ouadi
thanks for the explanation. That explains why the client can not join every time.