zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

Open fantasyjqc opened this issue 6 years ago • 176 comments

#Bug Report

What happened zigbee2mqtt cannot connect to adpater

zigbee2mqtt:info  2020-02-25 09:27:08: Starting zigbee2mqtt version 1.
10.0-dev (commit #ad59ff5)
zigbee2mqtt:info  2020-02-25 09:27:08: Starting zigbee-herdsman...
zigbee2mqtt:error 2020-02-25 09:27:16: Error while starting zigbee-her
dsman
zigbee2mqtt:error 2020-02-25 09:27:16: Failed to start zigbee
zigbee2mqtt:error 2020-02-25 09:27:16: Exiting...
zigbee2mqtt:error 2020-02-25 09:27:16: Error: Failed to connect to the 
adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/opt/zigbee2mqtt3/node_modules
/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:72:2
3)
    at Generator.throw (<anonymous>)
    at rejected (/opt/zigbee2mqtt3/node_modules/zigbee-herdsman/di
st/adapter/z-stack/adapter/zStackAdapter.js:6:65)

What did you expect to happen zigbee2mqtt

How to reproduce it (minimal and precise) homeassistant: false permit_join: true mqtt: base_topic: zigbee2mqtt3 server: 'mqtt://192.168.123.133:1883' serial: port: 'tcp://192.168.123.139:8881'

ping and telnet is ok:

image

image

Debug Info zigbee2mqtt version: 1.10.0-dev (commit #ad59ff5) CC2530 firmware version: CC2530_SOURCE_ROUTING_20190619.zip

fantasyjqc avatar Feb 25 '20 02:02 fantasyjqc

i confirm this issue after upgrade to 1.11.0:

`● zigbee2mqtt.service - zigbee2mqtt Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2020-03-02 21:31:58 CET; 52s ago Main PID: 6915 (npm) Tasks: 13 (limit: 2319) Memory: 13.7M CGroup: /system.slice/zigbee2mqtt.service ├─6915 npm └─6926 sh -c node index.js

Mar 02 21:32:02 openhab npm[6915]: zigbee2mqtt:info 2020-03-02 21:32:02: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-03-02.21-32-02' filename: log.txt Mar 02 21:32:02 openhab npm[6915]: zigbee2mqtt:info 2020-03-02 21:32:02: Starting zigbee2mqtt version 1.11.0 (commit #31e5678) Mar 02 21:32:02 openhab npm[6915]: zigbee2mqtt:info 2020-03-02 21:32:02: Starting zigbee-herdsman... Mar 02 21:32:15 openhab npm[6915]: zigbee2mqtt:error 2020-03-02 21:32:15: Error while starting zigbee-herdsman Mar 02 21:32:15 openhab npm[6915]: zigbee2mqtt:error 2020-03-02 21:32:15: Failed to start zigbee Mar 02 21:32:15 openhab npm[6915]: zigbee2mqtt:error 2020-03-02 21:32:15: Exiting... Mar 02 21:32:15 openhab npm[6915]: zigbee2mqtt:error 2020-03-02 21:32:15: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) Mar 02 21:32:15 openhab npm[6915]: at ZStackAdapter. (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:72:23) Mar 02 21:32:15 openhab npm[6915]: at Generator.throw () Mar 02 21:32:15 openhab npm[6915]: at rejected (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:6:65) `

mibas74 avatar Mar 02 '20 20:03 mibas74

I experienced same issue and i don't remember how i solved it...

  • if it was running "sudo npm rebuild"
  • or unplugging and plugging again the usb key with the coordinator

a20gard avatar Mar 02 '20 21:03 a20gard

hi, thanks, i've tried this but unfortunately without success yet..

mibas74 avatar Mar 02 '20 22:03 mibas74

Please check your adapter communication: https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start

Koenkk avatar Mar 03 '20 13:03 Koenkk

it was working and stopped after upgrade to current version.

[21:14:55] openhabian@openhab:~$ ls -l /dev/serial/by-id lrwxrwxrwx 1 root root 13 Mar 2 23:00 usb-Texas_Instruments_TI_CC2531_USB_CDC__ _0X00124B0018E248BF-if00 -> ../../ttyACM0

[21:15:12] openhabian@openhab:~$ test -w /dev/ttyACM0 && echo success || echo failure success

[21:15:37] openhabian@openhab:~$ sudo apt-get purge modemmanager [sudo] password for openhabian: Reading package lists... Done Building dependency tree Reading state information... Done Package 'modemmanager' is not installed, so not removed

i've found error message in dmesg: cdc_acm 1-1.3:1.0: failed to set dtr/rts

mibas74 avatar Mar 03 '20 20:03 mibas74

@mibas74 so when switching back to zigbee2mqtt 1.10.0 it works again?

Koenkk avatar Mar 03 '20 20:03 Koenkk

I have the same problem.

The adapter (CC2530) communication is success.

Mar 03 21:23:11 Zigbee2MQTT npm[1550]: zigbee2mqtt:info  2020-03-03 21:23:11: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-03-03.21-23-11' filename: log.txt
Mar 03 21:23:11 Zigbee2MQTT npm[1550]: zigbee2mqtt:info  2020-03-03 21:23:11: Starting zigbee2mqtt version 1.10.0-dev (commit #c25c32f)
Mar 03 21:23:11 Zigbee2MQTT npm[1550]: zigbee2mqtt:info  2020-03-03 21:23:11: Starting zigbee-herdsman...
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: zigbee2mqtt:error 2020-03-03 21:23:18: Error while starting zigbee-herdsman
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: zigbee2mqtt:error 2020-03-03 21:23:18: Failed to start zigbee
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: zigbee2mqtt:error 2020-03-03 21:23:18: Exiting...
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: zigbee2mqtt:error 2020-03-03 21:23:18: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
Mar 03 21:23:18 Zigbee2MQTT npm[1550]:     at ZStackAdapter.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:72:23)
Mar 03 21:23:18 Zigbee2MQTT npm[1550]:     at Generator.throw (<anonymous>)
Mar 03 21:23:18 Zigbee2MQTT npm[1550]:     at rejected (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:6:65)
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: npm ERR! code ELIFECYCLE
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: npm ERR! errno 1
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: npm ERR! [email protected] start: `node index.js`
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: npm ERR! Exit status 1
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: npm ERR!
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: npm ERR! Failed at the [email protected] start script.
Mar 03 21:23:18 Zigbee2MQTT npm[1550]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
My configuration.yaml

homeassistant: false
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://192.168.178.95'
  user: ****
  password: ****
serial:
  port: /dev/ttyUSB0
  baudrate: 115200

CyberianD avatar Mar 03 '20 20:03 CyberianD

@mibas74 so when switching back to zigbee2mqtt 1.10.0 it works again?

could You provide a link how to downgrade to one of previous versions please?

mibas74 avatar Mar 03 '20 20:03 mibas74

Hi, i've reflashed CC2531 USB dongle with latest coordinator source routing firmware and it seems that it started properly and works OK.

mibas74 avatar Mar 03 '20 21:03 mibas74

I thought it was me. I had to do a reinstall of my pi and after the new installation I run into the same issues. I'm not sure what version I ran before my crash of my SD card, but I haven't updated it in a while. I haven't flashed my dongle yet with the latest version so if there is anything I can do to test please let me know.

RuvdH avatar Mar 05 '20 19:03 RuvdH

I was having the very same issue with CC2530 and external antena after updating from 1.4 (very old, I know).. Here are the things I've done, I don't know which one solved the problem :

  1. uninstall modemManager
  2. unplug and plugging the stick again
  3. rebooting the pc
  4. making sure rtscts is set to false
  5. making sure disable_led entry is deleted

hoedha12 avatar Mar 07 '20 16:03 hoedha12

I updated the CC2531 USB stick and it's working again.

jorgensmit avatar Mar 08 '20 20:03 jorgensmit

I reflashed the stick and tried it again with success. This is odd as I had the same version on the stick already. But at least it's working again.

RuvdH avatar Mar 10 '20 07:03 RuvdH

maybe it's this https://github.com/home-assistant/supervisor/issues/1569

sergeylanzman avatar Mar 10 '20 22:03 sergeylanzman

Maybe a silly suggestion. I just received my CC26x2R today and put in the a 3d printed enclosure and had the same error. I just figured out that the reset button was pressed by the enclosure. Snapped the part of that pushes against the reset button and it's running now.

RadianceNL avatar Mar 11 '20 18:03 RadianceNL

I have the same problem wiht cc2538 on 1.11.0 ver of z2m. i can't reflash my stick. what can I do? thnx

ayukhno avatar Mar 11 '20 19:03 ayukhno

i foung some warning in "hassio_supervisor" container - might be it could help: 20-03-11 21:31:43 WARNING (MainThread) [supervisor.store.data] Can't read /data/addons/git/7ad98f9c/zigbee2mqtt-edge/config.json: does not match regular expression for dictionary value @ data['schema']['experimental']['transmit_power']. Got 'int(-22,19)?'

ayukhno avatar Mar 11 '20 21:03 ayukhno

Yesterday, my Zigbee network was working fine and suddenly failed completely. I got the same problem (cannot set dtr/rts in dmesg, Error: SRSP - SYS - ping after 6s). Power cycling / restarting z2m had no effect.

Short story: I had to reflash the CC2531 to get it working again. I don't know which version was on the stick (bought it pre-programmed), but I believe I wrote the same version 20190619.

However, I'm 100% sure it happened exactly when I touched an Ikea ICTC-G-1 dimmer.

vdkeybus avatar Mar 12 '20 14:03 vdkeybus

I had the same error. I'm running docker version of zigbee2mqtt and I was trying to reflash stick but no effect. After connecting stick green led light turns off. zigbee2mqtt version 1.11.0

gombal88 avatar Mar 14 '20 09:03 gombal88

The green light also turned off when my CC2531 was still failing. I retried at least 5 times (power on/off, press button, reload serial driver, restart z2m).

After I re-flashed using cc-tool it worked immediately again on first attempt.

vdkeybus avatar Mar 14 '20 12:03 vdkeybus