Mr-Markus / ZigbeeNet

A .NET Standard library for working with ZigBee
Eclipse Public License 1.0
130 stars 46 forks source link

Issue in RequestKey command(send by sleepy end device) handling by coordinator for Ember hardware #161

Open dKumari29915 opened 2 years ago

dKumari29915 commented 2 years ago

We are using this project and tried to onboard the 3rd party sleepy end device(Heiman's Door sensor). Request Key is coming from the device but coordinator is not sending the response. Could you please help on this

Packet capture for the reference:

342 80.976027 0xb307 0x0000 ZigBee 58 Request Key 344 80.980810 0xb307 0x0000 ZigBee 45 APS: Ack, Dst Endpt: 0, Src Endpt: 0 346 80.987243 0xb307 0x0000 ZigBee 45 APS: Ack, Dst Endpt: 0, Src Endpt: 0 357 85.307981 0xb307 0x0000 ZigBee HA 52 ZCL: Report Attributes, Seq: 12 359 85.877012 0xb307 0x0000 ZigBee ZDP 48 Node Descriptor Request, Nwk Addr: 0x0000 364 85.943542 0x0000 0xb307 ZigBee ZDP 62 Node Descriptor Response, Rev: 22, Nwk Addr: 0x0000, Status: Success 368 85.968769 0x0000 0xb307 ZigBee 45 APS: Ack, Dst Endpt: 1, Src Endpt: 1 372 85.977713 0x0000 0xb307 ZigBee ZDP 62 Node Descriptor Response, Rev: 22, Nwk Addr: 0x0000, Status: Success 376 85.995035 0x0000 0xb307 ZigBee 45 APS: Ack, Dst Endpt: 0, Src Endpt: 0 380 86.588455 0x0000 0xb307 ZigBee 45 APS: Ack, Dst Endpt: 0, Src Endpt: 0 400 95.018780 0x0000 0xb307 ZigBee ZDP 62 Node Descriptor Response, Rev: 22, Nwk Addr: 0x0000, Status: Success 402 95.036112 0xb307 0x0000 ZigBee 45 APS: Ack, Dst Endpt: 0, Src Endpt: 0 408 96.037222 0x0000 0xb307 ZigBee ZDP 62 Node Descriptor Response, Rev: 22, Nwk Addr: 0x0000, Status: Success 410 96.055731 0xb307 0x0000 ZigBee 45 APS: Ack, Dst Endpt: 0, Src Endpt: 0 461 123.311349 0xb307 0x0000 ZigBee HA 54 ZCL IAS Zone: Zone Status Change Notification, Seq: 13 463 123.455609 0xb307 0x0000 ZigBee HA 54 ZCL IAS Zone: Zone Status Change Notification, Seq: 14 468 124.227099 0x0000 0xb307 ZigBee 45 APS: Ack, Dst Endpt: 1, Src Endpt: 1 473 124.243457 0x0000 0xb307 ZigBee 45 APS: Ack, Dst Endpt: 1, Src Endpt: 1 482 128.498569 0xb307 0x0000 ZigBee HA 54 ZCL IAS Zone: Zone Status Change Notification, Seq: 15 486 129.512309 0x0000 0xb307 ZigBee 45 APS: Ack, Dst Endpt: 1, Src Endpt: 1 492 133.539436 0xb307 0x0000 ZigBee HA 54 ZCL IAS Zone: Zone Status Change Notification, Seq: 16 496 134.552760 0x0000 0xb307 ZigBee 45 APS: Ack, Dst Endpt: 1, Src Endpt: 1 504 138.734892 0xb307 0x0000 ZigBee 47 Rejoin Request, Device: 0xb307 508 138.942611 0x0000 0xb307 ZigBee 57 Rejoin Response, New Address: 0xb307 510 139.359761 0xb307 Broadcast ZigBee ZDP 64 Network Address Request, Address: 23:01:74:4c:a1:ff:dd:5b 512 139.367305 0xb307 Broadcast ZigBee ZDP 65 Device Announcement, Nwk Addr: 0xb307, Ext Addr: SiliconL_ff:fe:8f:79:6c 514 139.377883 0xb307 0x0000 ZigBee 56 End Device Timeout Request 518 139.396471 0xb307 Broadcast ZigBee ZDP 64 Network Address Request, Address: 23:01:74:4c:a1:ff:dd:5b 520 139.420919 0xb307 Broadcast ZigBee ZDP 65 Device Announcement, Nwk Addr: 0xb307, Ext Addr: SiliconL_ff:fe:8f:79:6c 523 139.432435 0x0000 0xb307 ZigBee 56 End Device Timeout Response, Success 525 139.441072 0xb307 0x0000 ZigBee 45 APS: Ack, Dst Endpt: 0, Src Endpt: 0 533 141.739436 0xb307 Broadcast ZigBee 47 Leave

Here, we can see that there is no response for the request key is coming form the coordinator

We have added the log prints in the code. HandleIncomingFrame func gets called EzspZigbeeKeyEstablishmentHandler [networkId=0, partner=842E14FFFEF6F53C, status=UNKNOWN] here, expected output for status was EMBER_SUCCESS

Please help on this.

dKumari29915 commented 2 years ago

Any help on this?