zigbee-herdsman: Failure send addTransientLinkKey with EZSP

For me this is the cause why zigbee2mqtt crashes.

Error: Failure send addTransientLinkKey:{"type":"Buffer","data":[redacted]}
    at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:529:23
    at Queue.executeNext (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)

Running on the zigbee2mqtt develop branch with ezsp.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 23 (11 by maintainers)

Most upvoted comments

@kirovilya I think I have found the root cause since I did not have any issues anymore. I have my raspberry pi connected to a decent powersource (Ikea 3A adapter) but the MicroUSB cable seemed to be degraded. Effectively the Pi complained about ‘undervoltage’ and started to reduce CPU frequency etc. After replacing the cable I have not had any issues with power anymore. Zigbee was stable too. So it seems timing is critical, and it does have issues recovering.

@skinkie please check on the latest dev/edge version of z2m, I made some changes for ezsp adapter

I see that the data packet comes last:

<-- [3360a1a93e2a15b1] +13ms

but this is not a complete package, because, there is no terminating byte 7e… and immediately after that an error waiting for a response is thrown. I suggest trying to increase the response timeout. in the zigbee-herdsman/dist/adapter/ezsp/driver/uart.js file, change the number 2000 (line 355) to 5000:

    public waitFor(sequence, timeout = 5000) {