Ezsp adapter not working in zigbee2mqtt DSGW-210

@Dusun_Yan helped me setting up Zigbee2MQTT on an earlier DSGW-210 ast year in this discussion: I can't use zigbee2mqtt DSGW-210.
I am setting up a new DSGW-210 and the Zigbee2MQTT is not working again. I tried using the same values as you suggested above.

[2024-06-27 21:03:05] info:     z2m: Logging to console, file (filename: log.log)
[2024-06-27 21:03:05] info:     z2m: Starting Zigbee2MQTT version 1.38.0 (commit #6c7d52a)
[2024-06-27 21:03:05] info:     z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-27 21:03:06] warning:  zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-06-27 21:03:06] error:    zh:ezsp:ezsp: Connection attempt 1 error: Error: Error: Device or resource busy, cannot open /dev/ttyUSB0
[2024-06-27 21:03:11] error:    zh:ezsp:ezsp: Connection attempt 2 error: Error: Error: Device or resource busy, cannot open /dev/ttyUSB0
[2024-06-27 21:03:21] error:    zh:ezsp:ezsp: Connection attempt 3 error: Error: Error: Device or resource busy, cannot open /dev/ttyUSB0
[2024-06-27 21:03:36] error:    zh:ezsp:ezsp: Connection attempt 4 error: Error: Error: Device or resource busy, cannot open /dev/ttyUSB0
[2024-06-27 21:03:36] error:    z2m: Error while starting zigbee-herdsman
[2024-06-27 21:03:36] error:    z2m: Failed to start zigbee
[2024-06-27 21:03:36] error:    z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-27 21:03:36] error:    z2m: Exiting...
[2024-06-27 21:03:36] error:    z2m: Error: Failure to connect
    at Ezsp.connect (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:370:19)
    at Driver.startup (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:164:13)
    at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:62:27)
    at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:109:27)
    at start (/opt/zigbee2mqtt/index.js:107:5)

As per the logs, I also tried to use adapter ember, but that is not helping either:

[2024-06-27 21:01:42] info:     z2m: Logging to console, file (filename: log.log)
[2024-06-27 21:01:42] info:     z2m: Starting Zigbee2MQTT version 1.38.0 (commit #6c7d52a)
[2024-06-27 21:01:42] info:     z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-27 21:01:43] info:     zh:ember: Using default stack config.
[2024-06-27 21:01:43] info:     zh:ember: ======== Ember Adapter Starting ========
[2024-06-27 21:01:43] info:     zh:ember:ezsp: ======== EZSP starting ========
[2024-06-27 21:01:43] info:     zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-06-27 21:01:43] info:     zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-06-27 21:01:43] info:     zh:ember:uart:ash: Serial port opened
[2024-06-27 21:01:43] info:     zh:ember:uart:ash: ======== ASH starting ========
[2024-06-27 21:01:44] info:     zh:ember:uart:ash: ======== ASH connected ========
[2024-06-27 21:01:44] info:     zh:ember:uart:ash: ======== ASH started ========
[2024-06-27 21:01:44] info:     zh:ember:ezsp: ======== EZSP started ========
[2024-06-27 21:01:44] error:    z2m: Error while starting zigbee-herdsman
[2024-06-27 21:01:44] error:    z2m: Failed to start zigbee
[2024-06-27 21:01:44] error:    z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-27 21:01:44] error:    z2m: Exiting...
[2024-06-27 21:01:44] error:    z2m: Error: NCP EZSP protocol version of 8 does not match Host version 13
    at EmberAdapter.emberVersion (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1674:19)
    at EmberAdapter.initEzsp (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:854:9)
    at EmberAdapter.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
    at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:62:27)
    at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:109:27)
    at start (/opt/zigbee2mqtt/index.js:107:5)

Do you have any suggestions? I also tried using defining the port as /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 and also /dev/ttyUSB0

The Zigbee2MQTT help page does not really help either.

Regards,
Csongor

Just thinking about this, the hardware I am running is DSGW-210-Debian_image_RV1.2.3.img. Is it possible that it has some pre-installed packages which are also using the zigbee adapter this is why Zigbee2MQTT cannot connect? Can I turn it off somehow?

yes you need to close the process which occupies the zigbee adapter

killall reapp.sh

/etc/init.d/S99bul stop
mv /etc/init.d/S99bul /etc/init.d/bul
mv /usr/bin/bul /usr/bin/bul-b

/etc/init.d/S99zigbee stop
mv /etc/init.d/S99zigbee /etc/init.d/zigbee
mv /usr/bin/AmberGwZ3 /usr/bin/AmberGwZ3-b
1 Like