Porting ZigBee TempMeas_Client_Router to custom board with ZigBee2MQTT support
- November 23, 2023
- 1 reply
- 1313 views
Hi,
I´m trying to port the example from above to my custom sensor board and use ZigBee2MQTT together with this board. You can find the code in the attachments.
The board connects via ZigBee, but can not report the config
[M4 APPLICATION] ZbStartup Callback (status = 0x00)
[M4 APPLICATION] [TEMP MEAS] Report Config Failed error:148
[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: ..
[M4 APPLICATION] Channel used: 11
[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] Temperature measurement 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_ROUTER
[M0] [00000000.022][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=0x00000800, dur=4
[M0] [00000000.030][PLATFORM] nwk_handle_beacon_ind : BEACON addr16=0x0000, epid=0x00124b001cdfee60, ch=11, pan=0x1a62, depth= 0, lqi=206, cost=1, pjoin=1
[M0] [00000000.287][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00000800, dur=4
[M0] [00000000.299][PLATFORM] nwk_handle_beacon_ind : BEACON addr16=0x0000, epid=0x00124b001cdfee60, ch=11, pan=0x1a62, depth= 0, lqi=206, cost=1, pjoin=1
[M0] [00000000.557][PLATFORM] nwk_scan_req : MLME-SCAN.request (wpan0): type=1, page=0, mask=0x00000800, dur=4
[M0] [00000000.569][PLATFORM] nwk_handle_beacon_ind : BEACON addr16=0x0000, epid=0x00124b001cdfee60, ch=11, pan=0x1a62, depth= 0, lqi=206, cost=1, pjoin=1
[M0] [00000000.018][PLATFORM] nwk_join_try_next : Associating (src=0x0080e12500e0a24b) to 0x0000 (epid = 0x00124b001cdfee60, lqi = 206, ch = 11)
[M0] [00000000.619][PLATFORM] ZbMonitorHandleTransKeyInd : Adding network key, sequence number = 0
[M0] [00000000.621][PLATFORM] ZbZdoDeviceAnnce : Sending Device_Annce for 0xa758
[M4 APPLICATION] ZbStartup Callback (status = 0x00)
[M4 APPLICATION] Stop
[M4 APPLICATION] [TEMP MEAS] Report Config Failed error: 0x94
[M4 APPLICATION] Start
What is the reason for this?
Also the timer from the Time Server isn´t started, because the timer callback isn´t called when I press the start button. What is the reason for this error?