This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ZigBee Stack TCLK Timeout

Can the TCLK timeout be changed?  I have a ZigBee device that joins and performs a key exchange but then is forced to leave the network 12 seconds later due to a TCLK timeout.  

Please see the following sniffer screenshots.

Key Exchange

Thanks,

Parents
  • Hi,

    I am not quite sure what you mean by TCLK timeout?

    From the sniffer trace it looks like assosiation and key exchange is perform correctly, but then the coordinator sends a mgmt Leave request to the device, there could be many reasons for this so I need more information. How do you know the reason the Leave message is sent is a timeout? What are you using as the coordinator of the network? What kind of device are you trying to use to join the network?

    Best regards,

    Marjeris

  • TCLK is the Trust Center Link Key and is part of the authorization used for for newer ZigBee devices.  The sniffer screenshots I attached above are from a PCA10056 DK acting as a coordinator (custom firmware).  I'm trying to connect a ZigBee keyfob to my coordinator.  This particular version of the keyfob doesn't have an install code.

    I know it's a timeout error because of my RTT log which I have attached.  You will see that I the stack sends a Device auth timeout.

    I have also tried the keyfob with the ZigBee CLI example and I get the same result.  The sniffer trace for the CLI test has an End Device Timeout Request.  So maybe this is the cause.  I have attached the sniffer trace from the CLI test too.

     Device has associated with coordinator, long address: 000d6ffffe395a86


     Device has updated its status in the network, short address: AD0F, long address: 000d6ffffe395a86, status: 1


     New Device, idx: 0

     Device has associated with coordinator, long address: 000d6ffffe395a86


     Device has updated its status in the network, short address: AD0F, long address: 000d6ffffe395a86, status: 1


     Device with a short address AD0F commissioned


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 0

     find_ias_zone_device(param:4, idx:0)


     find_IAS_zone_device_cb(param 2)
     find_IAS_zone_device_cb(param 2)


     EP is 1


     read_ias_zone_attr (param:2, idx:0)


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 1
     Device with a short address AD0F commissioned


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 0


     find_ias_zone_device(param:4, idx:0)


     find_IAS_zone_device_cb(param 2)


     EP is 1


     read_ias_zone_attr (param:2, idx:0)


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 1


     Device auth timeout


     read_ias_attr_cb(param 2)


     write_cie_addr(param:2, idx:0)


     Device has left coordinator, long address: 000d6ffffe395a86, rejoin status 0


     Device has associated with coordinator, long address: 000d6ffffe395a86


     Device has updated its status in the network, short address: 6D1D, long address: 000d6ffffe395a86, status: 1


     New Device, idx: 0


     send_ias_zone_enroll_res(param:11, idx:255)


     No devices in ENROLL_IAS_STATE were found

     No devices in ENROLL_IAS_STATE were found


     Device authorization event happened, short address: 6D1D, long address: 000d6ffffe395a86, authorization type: 0, authorization status: 0


     Device authorization event happened, short address: 6D1D, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 1

    keyfob_join_timeout_zigbee_cli.pcapng

Reply
  • TCLK is the Trust Center Link Key and is part of the authorization used for for newer ZigBee devices.  The sniffer screenshots I attached above are from a PCA10056 DK acting as a coordinator (custom firmware).  I'm trying to connect a ZigBee keyfob to my coordinator.  This particular version of the keyfob doesn't have an install code.

    I know it's a timeout error because of my RTT log which I have attached.  You will see that I the stack sends a Device auth timeout.

    I have also tried the keyfob with the ZigBee CLI example and I get the same result.  The sniffer trace for the CLI test has an End Device Timeout Request.  So maybe this is the cause.  I have attached the sniffer trace from the CLI test too.

     Device has associated with coordinator, long address: 000d6ffffe395a86


     Device has updated its status in the network, short address: AD0F, long address: 000d6ffffe395a86, status: 1


     New Device, idx: 0

     Device has associated with coordinator, long address: 000d6ffffe395a86


     Device has updated its status in the network, short address: AD0F, long address: 000d6ffffe395a86, status: 1


     Device with a short address AD0F commissioned


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 0

     find_ias_zone_device(param:4, idx:0)


     find_IAS_zone_device_cb(param 2)
     find_IAS_zone_device_cb(param 2)


     EP is 1


     read_ias_zone_attr (param:2, idx:0)


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 1
     Device with a short address AD0F commissioned


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 0


     find_ias_zone_device(param:4, idx:0)


     find_IAS_zone_device_cb(param 2)


     EP is 1


     read_ias_zone_attr (param:2, idx:0)


     Device authorization event happened, short address: AD0F, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 1


     Device auth timeout


     read_ias_attr_cb(param 2)


     write_cie_addr(param:2, idx:0)


     Device has left coordinator, long address: 000d6ffffe395a86, rejoin status 0


     Device has associated with coordinator, long address: 000d6ffffe395a86


     Device has updated its status in the network, short address: 6D1D, long address: 000d6ffffe395a86, status: 1


     New Device, idx: 0


     send_ias_zone_enroll_res(param:11, idx:255)


     No devices in ENROLL_IAS_STATE were found

     No devices in ENROLL_IAS_STATE were found


     Device authorization event happened, short address: 6D1D, long address: 000d6ffffe395a86, authorization type: 0, authorization status: 0


     Device authorization event happened, short address: 6D1D, long address: 000d6ffffe395a86, authorization type: 1, authorization status: 1

    keyfob_join_timeout_zigbee_cli.pcapng

Children
Related