Other Parts Discussed in Thread: Z-STACK,
This is another case for hat appears to be the same issue as the parent thread/Question.
This question is abou tthe difficulty of having Associated Devices appear in the Device List.
The devices that were associated effectivement is limited to this list of three, while I trie to associate 3 more.
No (potential) router objects are active, so the coordinator is the parent.
In a previous session I had 6 associated devices.
00:15:8D:00:04:7B:83:69 , 0xE060 , 0x00, 0x1037 , 1, 00:12:4B:00:10:22:82:77, 0xBE 70:B3:D5:B1:30:01:01:1E , 0xFEC7 , 0x01, 0x1234 , 1, 00:12:4B:00:10:22:82:77, 0x0C 00:12:4B:00:07:60:BB:0A , 0xD313 , 0x01, 0x0000 , 1, 00:12:4B:00:10:22:82:77, 0x00
Most Device Announcements were seen by the NWK_MGR. When seen, the same message appears twice :
**** Succeeded: [2020-11-21 20:19:05.706891] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 00158D00047B8369, nwkaddr E060, capInfo 00 [2020-11-21 20:19:05.807084] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 00158D00047B8369, nwkaddr E060, capInfo 00 **** Failed [2020-11-21 20:20:31.994302] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 000D6F000E8A756F, nwkaddr 7869, capInfo 00 [2020-11-21 20:20:32.016209] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 000D6F000E8A756F, nwkaddr 7869, capInfo 00 [2020-11-21 20:20:32.074101] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 000D6F000E8A756F, nwkaddr 7869, capInfo 00 [2020-11-21 20:20:32.075225] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 000D6F000E8A756F, nwkaddr 7869, capInfo 00 **** Succeeded: [2020-11-21 20:22:52.958338] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 70B3D5B13001011E, nwkaddr FEC7, capInfo 0C [2020-11-21 20:22:53.016499] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 70B3D5B13001011E, nwkaddr FEC7, capInfo 0C **** Failed [2020-11-21 20:24:02.542342] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 000D6F0012199E48, nwkaddr FAD0, capInfo 00 [2020-11-21 20:24:02.612740] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 000D6F0012199E48, nwkaddr FAD0, capInfo 00 **** Succeeded: [2020-11-21 20:24:34.893677] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 00124B000760BB0A, nwkaddr D313, capInfo 00 [2020-11-21 20:24:34.950063] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 00124B000760BB0A, nwkaddr D313, capInfo 00 **** Failed [2020-11-21 20:26:27.866167] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr CCCCCCFFFE3A2F33, nwkaddr
E1B7, capInfo 00
[2020-11-21 20:26:27.898286] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr CCCCCCFFFE3A2F33, nwkaddr E1B7, capInfo 00
Thes announcements did not seem to result in a processZdoDeviceAnnounce message from the NWK_MGR :
[2020-11-21 20:26:40.239374] > [ZDO/AREQ] **END_DEVICE_ANNCE_IND** <418B-000d6f0012199e48> Src:418B (SYS:5/TYPE:40/CMD:C1) (156)::fe0d45c18b418b41489e1912006f0d0080b6 [2020-11-21 20:27:34.653963] > [ZDO/AREQ] **END_DEVICE_ANNCE_IND** <6F23-000d6f0012a0ccf8> Src:6F23 (SYS:5/TYPE:40/CMD:C1) ( 86)::fe0d45c1236f236ff8cca012006f0d0080ed [2020-11-21 20:27:34.685458] > [ZDO/AREQ] **END_DEVICE_ANNCE_IND** <6F23-000d6f0012a0ccf8> Src:6F23 (SYS:5/TYPE:40/CMD:C1) ( 68)::fe0d45c1236f236ff8cca012006f0d0080ed
In te log we can also notice several messages like this:
[2020-11-21 20:26:26.132895] [NWK_MGR/LSTN] MISC1 : SRVR_GET_SHORT_ADDRESS_REQ: ieeeAddr: 0000000000000000 [2020-11-21 20:31:42.869124] [GATEWAY/HNDL] MISC1 : SrcAddr 0000000000000000, zclTransId 190, clusterId 2820, payloadlen 3
I tried to make a start as clean as possible here:
[2020-11-21 16:42:46.550375] > [ZDO/SRSP] **EXT_NWK_INFO** DEV_COORD_STARTING <0000> PANID:EC5C COORD:0000 EXTPAN:00124b0010228277 EXTCOORD:0000000000000000 Chan:0 ZSuccess (SYS:5/TYPE:60/CMD:50) ( 35)::fe1865500000085cec000077822210004b12000000000000000000000b
## First Association, observations
The examinition of the successful association shows that there are few things that I think can be improved, and that probably hinder the association process at other occassions.
The first Association (that succeeds) is done at the following time:
[2020-11-21 20:19:04.103775] 17467 00:15:8d:00:04:7b:83:69 â<86><92> 0x0000 IEEE 802.15.4 21 Association Request, RFD
The gateway should be improved to return the valid IEEE Address as soon as it possibly can. For the first associated devices, the first attributes report is associated with address 00:*
**** The NWK MGR gets the information
[2020-11-21 20:19:05.553055] > [ZDO/AREQ] **TC_DEVICE_IND** <E060-00158d00047b8369> Parent:0000 (SYS:5/TYPE:40/CMD:CA) ( 17)::fe 0c 45 ca 60 e0 69 83 7b 04 00 8d 15 00 00 00 0e
[2020-11-21 20:19:05.557042] [Z_STACK/HNDL] INFO : zstackpb Sending TC Device Ind: nwkAddr:0xE060, extAddr:0x00158D00047B8369, parentAddr:0x0000
[2020-11-21 20:19:05.562772] [NWK_MGR/HNDL] MISC1 : Processing ZDO TC Device Ind: 00158D00047B8369
[2020-11-21 20:19:05.562890] [NWK_MGR/HNDL] INFO : NwkMgr AddDevice State Machine Started on 0x00158d00047b8369
[2020-11-21 20:19:05.562988] [NWK_MGR/HNDL] INFO : nwkAddr E060, parent 0000
[2020-11-21 20:19:05.695392] > [ZDO/AREQ] **END_DEVICE_ANNCE_IND** <E060-00158d00047b8369> Src:E060 (SYS:5/TYPE:40/CMD:C1) ( 18)::fe 0d 45 c1 60 e0 60 e0 69 83 7b 04 00 8d 15 00 80 04
[2020-11-21 20:19:05.706891] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 00158D00047B8369, nwkaddr E060, capInfo 00
**** But does not report it back!
[2020-11-21 20:19:05.746175] [NWK_MGR/LSTN] MISC1 : SRVR_GET_IEEE_ADDRESS_REQ: shortAddr: E060
[2020-11-21 20:19:05.746588] [NWK_MGR/LSTN] PKT_HEX: [ NWK_MGR>>GATEWAY ] [ucst] 0D:00:79:01:08:01:10:01:19:00:00:00:00:00:00:00:00
[2020-11-21 20:19:05.746769] [NWK_MGR/LSTN] PKTTYPE: [ NWK_MGR>>GATEWAY ] SrvrGetIeeeAddressCnf
[2020-11-21 20:19:05.746917] [NWK_MGR/LSTN] PKTBODY: cmdId = SRVR_GET_IEEE_ADDRESS_CNF
[2020-11-21 20:19:05.747041] [NWK_MGR/LSTN] PKTBODY: status = STATUS_FAILURE
[2020-11-21 20:19:05.747177] [NWK_MGR/LSTN] PKTBODY: ieeeAddress = 00:00:00:00:00:00:00:00
I think that this is inefficient too, but I did not examine in detail what would be a better solution.
Note: the state is reported as "GET_PARENT" and we can see that this is done in ProcessDeviceAnnounce. The parent is known, why does i tneed to be requested?
[2020-11-21 20:19:05.707008] [NWK_MGR/HNDL] DEBUG : Lock PSTATE 0 (zNwkSrv_AD_UpdateCapInfo)
[2020-11-21 20:19:05.707160] [NWK_MGR/HNDL] DEBUG : Unlock PSTATE 0 (zNwkSrv_AD_UpdateCapInfo)
[2020-11-21 20:19:05.707256] [NWK_MGR/HNDL] DEBUG : Lock PSTATE 0 (zNwkSrv_AD_ProcessDeviceAnnounce)
[2020-11-21 20:19:05.707351] [NWK_MGR/HNDL] INFO : AddDevice: Retrying state 1, remaining tries: 4
[2020-11-21 20:19:05.707474] [NWK_MGR/HNDL] INFO : PSTATE B4C009D0 -> GET_PARENT
I do not think that it is usefull that the NWK_MGR request the IEEE_ADDRESS of the coordinator by calling the ZSTACK/ZDO/etc each time. It adds unneccessary overhead and delay IMHO. I would expect that its internal data is "up to date". What does "TI" think:
[2020-11-21 20:20:04.238118] [NWK_MGR/MAIN] MISC1 : NwkMgr sendZdoIeeeAddrReq: ieeeaddr 0000
[2020-11-21 20:20:04.238261] [NWK_MGR/MAIN] INFO : preparing to send 8 bytes, subSys 0x11, cmdId 0x31 (ZDO_IEEE_ADDR_REQ), pData:
[2020-11-21 20:20:04.238369] [NWK_MGR/MAIN] INFO : [MUTEX] Lock SRSP Transaction Mutex
[2020-11-21 20:20:04.238617] [NWK_MGR/MAIN] PKT_HEX: [ Z_STACK<<NWK_MGR ] [SREQ] 08:00:31:31:08:31:10:00:18:00:20:00
[2020-11-21 20:20:04.238783] [NWK_MGR/MAIN] PKTTYPE: [ Z_STACK<<NWK_MGR ] zdoIeeeAddrReq
[2020-11-21 20:20:04.238935] [NWK_MGR/MAIN] PKTBODY: cmdID = ZDO_IEEE_ADDR_REQ
[2020-11-21 20:20:04.239062] [NWK_MGR/MAIN] PKTBODY: nwkAddr = 0x00000000 (0)
[2020-11-21 20:20:04.239178] [NWK_MGR/MAIN] PKTBODY: type = SINGLE_DEVICE
[2020-11-21 20:20:04.239295] [NWK_MGR/MAIN] PKTBODY: startIndex = 0x00000000 (0)
[2020-11-21 20:20:04.267541] > [ZDO/AREQ] **IEEE_ADDR_RSP** (SYS:5/TYPE:40/CMD:81) ( 18)::fe 0d 45 81 00 77 82 22 10 00 4b 12 00 00 00 c0 00 97
### Failed association "000D6F000E8A756F" (i.e., Zigbee association succeeds, but does not show up in the gateway)
Note, "(Un)lock PSTATE 0 (function)" indicates that the state machine with indx 0 has been (un)locked by "function". The function reported by the "Unlock" message is the function that called the first function to get a lock. (That is the improvement I made in the gateway to no longer have invalid memory accesses to the device info).
[2020-11-21 20:19:59.443680] 18295 00:0d:6f:00:0e:8a:75:6f â<86><92> 0x0000 IEEE 802.15.4 21 Association Request, RFD^M [2020-11-21 20:19:59.641028] 18303 00:12:4b:00:10:22:82:77 â<86><92> 00:0d:6f:00:0e:8a:75:6f IEEE 802.15.4 27 Association Response, PAN: 0xec5c Addr: 0x7869^M [2020-11-21 20:20:00.791439] > [ZDO/AREQ] **TC_DEVICE_IND** <7869-000d6f000e8a756f> Parent:0000 (SYS:5/TYPE:40/CMD:CA) ( 17)::fe 0c 45 ca 69 78 6f 75 8a 0e 00 6f 0d 00 00 00 6e [2020-11-21 20:20:00.799888] [NWK_MGR/HNDL] INFO : NwkMgr AddDevice State Machine Started on 0x000d6f000e8a756f [2020-11-21 20:20:00.799986] [NWK_MGR/HNDL] INFO : nwkAddr 7869, parent 0000 [2020-11-21 20:20:00.800086] [NWK_MGR/HNDL] DEBUG : Lock PSTATE 0 (zNwkSrv_AD_GetStateMachineAndLock) [2020-11-21 20:20:00.800179] [NWK_MGR/HNDL] INFO : AddDevice: Initiated new state machine [2020-11-21 20:20:00.800282] [NWK_MGR/HNDL] INFO : PSTATE B4C009D0 -> WAITING [2020-11-21 20:20:00.800373] [NWK_MGR/HNDL] DEBUG : Unlock PSTATE 0 (zNwkSrv_AddDevice)
The device initiates the association again, but the information sent by the ZNP is an incoming message - apparently there is nothing with regards to the Device Announcement , etc:
[2020-11-21 20:20:31.544733] [GATEWAY/READ] INFO : Client Read: (len 8): [2020-11-21 20:20:31.545196] [GATEWAY/MAIN] INFO : [MUTEX] Unlock SRSP Mutex [2020-11-21 20:20:31.651265] 18364 00:0d:6f:00:0e:8a:75:6f â<86><92> 0x0000 IEEE 802.15.4 21 Association Request, RFD^M [2020-11-21 20:20:31.651766] 18365 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.847143] 18366 00:0d:6f:00:0e:8a:75:6f â<86><92> 0x0000 IEEE 802.15.4 18 Data Request^M [2020-11-21 20:20:31.847636] 18367 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.850588] 18368 00:12:4b:00:10:22:82:77 â<86><92> 00:0d:6f:00:0e:8a:75:6f IEEE 802.15.4 27 Association Response, PAN: 0xec5c Addr: 0x7869^M [2020-11-21 20:20:31.851004] 18369 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.857767] 18370 0x7869 â<86><92> 0x0000 IEEE 802.15.4 12 Data Request^M [2020-11-21 20:20:31.858253] 18371 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.866274] 18372 0x0000 â<86><92> 0x7869 ZigBee 73 Transport Key^M [2020-11-21 20:20:31.866400] 18373 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.881769] 18374 0x7869 â<86><92> 0x0000 ZigBee ZDP 54 Match Descriptor Request, Nwk Addr: 0x0000, Profile: 0x0104^M [2020-11-21 20:20:31.882256] 18375 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.886514] 18376 0x7869 â<86><92> Broadcast ZigBee ZDP 65 Device Announcement, Nwk Addr: 0x7869, Ext Addr: Ember_00:0e:8a:75:6f^M [2020-11-21 20:20:31.886576] 18377 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.890762] 18378 0x7869 â<86><92> Broadcast ZigBee ZDP 65 Device Announcement, Nwk Addr: 0x7869, Ext Addr: Ember_00:0e:8a:75:6f^M [2020-11-21 20:20:31.891239] 18379 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.896746] 18380 0x7869 â<86><92> 0x0000 ZigBee HA 62 ZCL IAS Zone: Zone Status Change Notification, Seq: 28^M [2020-11-21 20:20:31.896809] 18381 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.900996] 18382 0x7869 â<86><92> 0x0000 ZigBee HA 64 ZCL: Report Attributes, Seq: 29^M [2020-11-21 20:20:31.901394] 18383 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.905622] 18384 0x7869 â<86><92> 0x0000 ZigBee HA 60 ZCL: Report Attributes, Seq: 30^M [2020-11-21 20:20:31.905686] 18385 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.909868] 18386 0x7869 â<86><92> 0x0000 ZigBee HA 60 ZCL: Report Attributes, Seq: 31^M [2020-11-21 20:20:31.910238] 18387 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.960442] > [AF/AREQ] **INCOMING_MSG** <7869/GRP:0000/CLSTR:0500/EP:01> Seq:0 DstEP:01 SrcMAC:1C19 LQI:47 SECURE:0 TIMSTMP:12029930 DATALEN:9 RADIUS:25 (SYS:4/TYPE:40/CMD:81) ( 34)::fe 1d 44 81 00 00 00 05 69 78 01 01 00 2f 00 ea 8f b7 00 00 09 19 1c 00 24 00 00 ff 00 00 69 78 1d ea [...] [2020-11-21 20:20:31.971055] [NWK_MGR/LSTN] MISC1 : SRVR_GET_IEEE_ADDRESS_REQ: shortAddr: 7869 [2020-11-21 20:20:31.974556] [GATEWAY/HNDL] MISC1 : P2P: Get IEEE Address Failed, status: 1 [2020-11-21 20:20:31.974621] [GATEWAY/HNDL] MISC1 : Processing IAS Zone Status Change Indication, TransId: 28 [2020-11-21 20:20:31.977445] > [AF/AREQ] **INCOMING_MSG** <7869/GRP:0000/CLSTR:0001/EP:01> Seq:0 DstEP:01 SrcMAC:1D18 LQI:47 SECURE:0 TIMSTMP:12029944 DATALEN:11 RADIUS:24 (SYS:4/TYPE:40/CMD:81) (136)::fe1f44810000010069780101002f00f88fb700000b181d0a2000201c2100209669781da6 [2020-11-21 20:20:31.977445] > [AF/AREQ] **INCOMING_MSG** <7869/GRP:0000/CLSTR:0001/EP:01> Seq:0 DstEP:01 SrcMAC:1E18 LQI:47 SECURE:0 TIMSTMP:12029958 DATALEN:7 RADIUS:24 (SYS:4/TYPE:40/CMD:81) (136)::fe1b44810000010069780101002f000690b7000007181e0a2100209669781d50 [2020-11-21 20:20:31.977445] > [AF/AREQ] **INCOMING_MSG** <7869/GRP:0000/CLSTR:0001/EP:01> Seq:0 DstEP:01 SrcMAC:1F18 LQI:47 SECURE:0 TIMSTMP:12029973 DATALEN:7 RADIUS:24 (SYS:4/TYPE:40/CMD:81) (136)::fe1b44810000010069780101002f001590b7000007181f0a2000201c69781dc9 [2020-11-21 20:20:31.977445] > [ZDO/AREQ] **END_DEVICE_ANNCE_IND** <7869-000d6f000e8a756f> Src:7869 (SYS:5/TYPE:40/CMD:C1) (136)::fe0d45c1697869786f758a0e006f0d0080f5
The DeviceAnnounce is handled two times, because it airs two times, with different sequence numbers (48 & 49):
[2020-11-21 20:20:31.886514] 18376 0x7869 â<86><92> Broadcast ZigBee ZDP 65 Device Announcement, Nwk Addr: 0x7869, Ext Addr: Ember_00:0e:8a:75:6f^M [2020-11-21 20:20:31.886576] 18377 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.890762] 18378 0x7869 â<86><92> Broadcast ZigBee ZDP 65 Device Announcement, Nwk Addr: 0x7869, Ext Addr: Ember_00:0e:8a:75:6f^M [2020-11-21 20:20:31.891239] 18379 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 20:20:31.993298] [NWK_MGR/READ] INFO : Received 31 bytes, subSys 0x51, cmdId 0x48 [2020-11-21 20:20:31.993527] [NWK_MGR/READ] INFO : RPC_CMD_AREQ cmdId: 0x48 [2020-11-21 20:20:31.993622] [NWK_MGR/READ] INFO : [DBG] Allocated @ 0xB5003F50 (received 21 messages)... [2020-11-21 20:20:31.993773] [NWK_MGR/READ] INFO : Filling new message (@ 0xB5003F50)... [2020-11-21 20:20:31.993910] [NWK_MGR/HNDL] INFO : [MUTEX] Mutex for AREQ unlocked [2020-11-21 20:20:31.994019] [NWK_MGR/HNDL] INFO : [DBG] Processing @ 0xB5003F50 [2020-11-21 20:20:31.994172] [NWK_MGR/HNDL] INFO : [DBG] asyncCB: subSys:0x00000011, cmdId:0x00000048, len:0x0000001F, pData:0xB5003F58 [2020-11-21 20:20:31.994302] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr 000D6F000E8A756F, nwkaddr 7869, capInfo 00 [2020-11-21 20:20:31.994405] [NWK_MGR/HNDL] DEBUG : Lock PSTATE 0 (zNwkSrv_AD_UpdateCapInfo) [2020-11-21 20:20:31.994490] [NWK_MGR/HNDL] DEBUG : Unlock PSTATE 0 (zNwkSrv_AD_UpdateCapInfo) [2020-11-21 20:20:31.994691] [NWK_MGR/HNDL] DEBUG : Lock PSTATE 0 (zNwkSrv_AD_ProcessDeviceAnnounce) [2020-11-21 20:20:31.994978] [NWK_MGR/HNDL] DEBUG : Unlock PSTATE 0 (zNwkSrv_AD_ProcessDeviceAnnounce) [2020-11-21 20:20:32.015284] [NWK_MGR/READ] INFO : Received 31 bytes, subSys 0x51, cmdId 0x48 [2020-11-21 20:20:32.015501] [NWK_MGR/READ] INFO : RPC_CMD_AREQ cmdId: 0x48 [2020-11-21 20:20:32.015597] [NWK_MGR/READ] INFO : [DBG] Allocated @ 0xB5003F10 (received 22 messages)... [2020-11-21 20:20:32.015677] [NWK_MGR/READ] INFO : Filling new message (@ 0xB5003F10)... [2020-11-21 20:20:32.015819] [NWK_MGR/HNDL] INFO : [MUTEX] Mutex for AREQ unlocked [2020-11-21 20:20:32.015926] [NWK_MGR/HNDL] INFO : [DBG] Processing @ 0xB5003F10 [2020-11-21 20:20:32.016081] [NWK_MGR/HNDL] INFO : [DBG] asyncCB: subSys:0x00000011, cmdId:0x00000048, len:0x0000001F, pData:0xB5003F18 [2020-11-21 20:20:32.016331] [NWK_MGR/HNDL] DEBUG : Lock PSTATE 0 (zNwkSrv_AD_UpdateCapInfo) [2020-11-21 20:20:32.016417] [NWK_MGR/HNDL] DEBUG : Unlock PSTATE 0 (zNwkSrv_AD_UpdateCapInfo) [2020-11-21 20:20:32.016611] [NWK_MGR/HNDL] DEBUG : Lock PSTATE 0 (zNwkSrv_AD_ProcessDeviceAnnounce) [2020-11-21 20:20:32.016705] [NWK_MGR/HNDL] DEBUG : Unlock PSTATE 0 (zNwkSrv_AD_ProcessDeviceAnnounce)
This has to be further examined to understand why the device is not accepted in the Device List.
### Device CCCCCCFFFE3A2F33
I am not going into the details of CCCCCCFFFE3A2F33, but the LCD display of that device indicates that it is associated according to that device. It receives ACKS from the ZNP and it reports attributes. It "just" does not show up in the Device List
[2020-11-21 20:26:27.866167] [NWK_MGR/HNDL] MISC1 : NwkMgr processZdoDeviceAnnounce: ieeeaddr CCCCCCFFFE3A2F33, nwkaddr E1B7, capInfo 00 [2020-11-21 23:28:10.480904] 11485 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 23:28:11.336462] 11486 0xe1b7 â<86><92> 0x0000 IEEE 802.15.4 12 Data Request^M [2020-11-21 23:28:11.336953] 11487 â<86><92> IEEE 802.15.4 5 Ack^M [2020-11-21 23:28:11.404832] 11488 0xe1b7 â<86><92> 0x0000 ZigBee HA 54 ZCL: Report Attributes, Seq: 77^M [2020-11-21 23:28:11.405330] 11489 â<86><92> IEEE 802.15.4 5 Ack^M
For further information, later
1. I restarted the gateway with an& updated version (added a stackstraice for processZdoDeviceAnnounce)
2. I proceeded with the physical procedure to factory reset the CCCCCCFFFE3A2F33 ZED.
3. I restarted the gateway because I couldn't start the joining procedure from the APP UI.
[2020-11-21T23:37:40] sent to GATEWAY: len=24, cmd_id=20, subsystem=19 [2020-11-21T23:37:40] Raw=18:00:13:14:08:14:12:0D:08:00:11:0A:BB:60:07:00:4B:12:00:28:01:18:80:0A:20:11:28:00 [2020-11-21T23:37:40] Queued command successfully; CBARG = 0 [2020-11-21T23:37:41] comm_send_permit_join: Sending NWK_SET_PERMIT_JOIN_REQ with Join Time 0x3c
Then the device CCCCCCFFFE3A2F33 announced itself successfully again, but still does not end up in the Device List.
The attached log also merges with the application log (no microsecond precision).
The question is: how must the code evolve to ensure that all these devices en up in the Gateway's Device List?