Zigbee2mqtt: time out on startup cc2530

Created on 17 Dec 2018  路  11Comments  路  Source: Koenkk/zigbee2mqtt

I always get this error with my cc2530:

zigbee2mqtt:error 2018-12-17 21:31:15 Error while starting zigbee-shepherd!
zigbee2mqtt:error 2018-12-17 21:31:15 Press the reset button on the stick (the one closest to the USB) and start again
zigbee2mqtt:error 2018-12-17 21:31:15 Failed to start
{"message":"request timeout","stack":"Error: request timeout\n    at CcZnp.<anonymous> (/opt/zigbee2mqtt/node_modules/cc-znp/lib/ccznp.js:255:22)\n    at Object.onceWrapper (events.js:315:30)\n    at emitOne (events.js:116:13)\n    at CcZnp.emit (events.js:211:7)\n    at Timeout.<anonymous> (/opt/zigbee2mqtt/node_modules/cc-znp/lib/ccznp.js:234:18)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)"}

The cc2530 does not have a reset button!
Additionally I am using iobroker which also uses the same libraries as zigbee2mqtt and there is no problem in using the cc2530 module and connecting to zigbee devices. So the problem must lie somewhere else?

When starting zigbee2mqtt while being connected via iobroker, I get

{"message":"Error Resource temporarily unavailable Cannot lock port","stack":"Error: Error Resource temporarily unavailable Cannot lock port"}

So the port is right!

I wanted to try to integrate another device but now I ain't even able to start the bridge :(

Most helpful comment

If I remember correctly, you need to add

advanced:
  rtscts: false

All 11 comments

I am getting the same, after having zigbee2mqtt running fine for months. I am not sure if I had it auto-update or what but I can't get the coordinator to start at all anymore.

`

[email protected] start /zigbee2mqtt-0.2.0
node index.js
Zigbee2mqtt requires node version >=8.11 10, you are running v8.11.4!
zigbee2mqtt:info 2018-12-17 14:38:42 Logging to directory: '/share/zigbee2mqtt/log/2018-12-17.14-38-42'
zigbee2mqtt:info 2018-12-17 14:38:43 Starting zigbee2mqtt version 0.2.0 (commit #unknown)
zigbee2mqtt:info 2018-12-17 14:38:43 Starting zigbee-shepherd
zigbee2mqtt:info 2018-12-17 14:38:51 Error while starting zigbee-shepherd, attemping to fix... (takes 60 seconds)
zigbee2mqtt:info 2018-12-17 14:39:51 Starting zigbee-shepherd
zigbee2mqtt:error 2018-12-17 14:39:59 Error while starting zigbee-shepherd!
zigbee2mqtt:error 2018-12-17 14:39:59 Press the reset button on the stick (the one closest to the USB) and start again
zigbee2mqtt:error 2018-12-17 14:39:59 Failed to start
{"message":"request timeout","stack":"Error: request timeout\n at CcZnp. (/zigbee2mqtt-0.2.0/node_modules/cc-znp/lib/ccznp.js:255:22)\n at Object.onceWrapper (events.js:315:30)\n at emitOne (events.js:116:13)\n at CcZnp.emit (events.js:211:7)\n at Timeout. (/zigbee2mqtt-0.2.0/node_modules/cc-znp/lib/ccznp.js:234:18)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)"}`

This is on HassIO with Addon version 0.2.0, the stable zigbee2mqtt branch.

I tried pressing the buttons, rebooting, etc. I noticed when I rebooted my server (Debian/Proxmox) that it would not boot with the stick inserted - gave "USB 2-2 Read/write error" and as soon as I pulled the stick it continued booting. Made me wonder if my stick has gone bad but it's been working fine for a while..

still a problem after trying it with home assistant / hass.io addon now. Same error.
The edge release even gets me an exception

zigbee2mqtt TypeError: Cannot read property 'close' of undefined

I would love to use home assistant but as long as this project is not running for me, I have to stick to ioBroker for my Zigbee devices :(

This indicates a connection issue, the first post indicates that the device is already in use by another process? Perhaps iobroker?

But in my first post I already pointed out that - when connected with iBroker - the error message is Error Resource temporarily unavailable Cannot lock port, not request timeout unfortunately.. I deactivated iBroker, tried another USB port etc.

Error messages could differ, I would first check if you can get iobroker up and running, if that works try with zigbee2mqtt.

No no, ioBroker is running and also uses your zigbee-shepherd-converters library, so my stick works, /dev/ttyUSB0 is correct etc.

I meant that while connected with ioBroker and I start zigbee2mqtt in parallel, the error message is cannot lock port. If ioBroker is off, I get the timeout. So ioBroker does not seem to be the issue as you suggested above!

What is your configuration.yaml?

# Home Assistant integration (MQTT discovery)
homeassistant: true

# allow new devices to join
permit_join: true

# MQTT settings
mqtt:
  # MQTT base topic for zigbee2mqtt MQTT messages
  base_topic: zigbee2mqtt
  # MQTT server URL
  server: 'mqtt://localhost'
  # MQTT server authentication, uncomment if required:
  # user: my_user
  # password: my_password

# Serial settings
serial:
  # Location of CC2531 USB sniffer
  port: /dev/ttyUSB0

so more or less standard, just changed the port

If I remember correctly, you need to add

advanced:
  rtscts: false

Wow, that solves it finally! Where does that come from? Maybe you should add it to the documentation?

Thank you!

Done, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreasbrett picture andreasbrett  路  3Comments

tb-killa picture tb-killa  路  3Comments

Courty40 picture Courty40  路  4Comments

sylarevan picture sylarevan  路  5Comments

z4rn0x picture z4rn0x  路  3Comments