ZBDongle-E - z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR

Hi All,
I hope you are well.
This one drives me nuts. It’s the worst dongle to start with I reckon not only with Z2M, but how do I know if it’s my first such dongle? But at least I know I should order ZBDongle-P instead (they all look the same).

This is the Z2M config

enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: "-d -d"
log: false

base_topic: zigbee2mqtt
user: mqttuser
password: mqtt
server: mqtt://core-mosquitto:1883  <- what is this? do I need it?

port: >-
  /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231009115357-if00
adapter: ember

I have upgraded the firmware using the web app from version 6.10.3.0 build 297 to version 7.3.1.0 the latest presented by the web installer but it turned out this firmware version is outdated anyway and leads to another failure where dongle has protocol 12 but HA expects protocol 13.

So then I started reading about this whole situation and various issues people face including some written in German but I don’t understand German so I had to translate it. It turned out one of the latest ones 7.4.2 is also causing issues so someone suggested to install the latest 7.4.3 from 2 weeks ago what I did.

Now you tell me if ncp-uart-hw-v7.4.3.0-zbdonglee-230400.gbl is the right one.
I have no idea what is the difference between ncp, rcp etc. I would have to be a pro or swap my head with ChatGPT to grasp it.

I flashed another firmware image using the same web client (uploaded the image there). It did worked after few tries and re-plugging the dongle which was worrying.
Firmware from here silabs-firmware-builder/firmware_builds/zbdonglee at 4.4.3 · darkxst/silabs-firmware-builder · GitHub

Someone has said that using the web installer is not good and you need to use the universal-silabs-flasher. Apparently something to do with BAUD? Is that correct?

I installed this add-on on my HA but the UI one is crap, does not work, the documentation is incomplete.
I would prefer to use universal-silabs-flasher in the terminal but I reckon it’s on one of the containers, not available on the main SSH terminal.

The current error I am getting with this 4.4.3 firmware is this:

[2024-05-17 00:47:35] info: 	z2m: Logging to console, file (filename: log.log)
[2024-05-17 00:47:35] info: 	z2m: Starting Zigbee2MQTT version 1.37.1 (commit #unknown)
[2024-05-17 00:47:35] info: 	z2m: Starting zigbee-herdsman (0.46.6)
[2024-05-17 00:47:36] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-05-17 00:47:36] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-05-17 00:47:36] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-17 00:47:36] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-05-17 00:47:36] info: 	zh:ember:uart:ash: Serial port opened
[2024-05-17 00:47:36] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-05-17 00:47:38] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-17 00:47:38] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-05-17 00:47:41] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-17 00:47:41] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-05-17 00:47:43] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-17 00:47:43] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-05-17 00:47:46] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-17 00:47:46] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-05-17 00:47:48] error: 	z2m: Error while starting zigbee-herdsman
[2024-05-17 00:47:48] error: 	z2m: Failed to start zigbee
[2024-05-17 00:47:48] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-05-17 00:47:48] error: 	z2m: Exiting...
[2024-05-17 00:47:48] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:780:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2642:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

There is something about hardware flow control in this article:

but again I have no idea if this dongle has it or not.

Or should I downgrade to 7.4.1 since I don’t see 7.4.3 in the main repository.

I feel like I need to be permanently plugged in with a fiber to ChatGPT to navigate through these many hops and not let my body to release too much of cortisol into my bloodstream before I have enough. Just kidding have not used ChatGPT in this endeavour but Google search which I don’t like but had to. Please forgive me my language and please advise.
Thank you

2 Likes

if you flashed ncp-uart-hw-v7.4.3.0-zbdonglee-230400.gbl, you should try

port: >-
  /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231009115357-if00
adapter: ember
baudrate: 230400
5 Likes

Hi, thanks for coming back to me
This is the new error

|[2024-05-17 09:49:09] error: |z2m: MQTT error: getaddrinfo ENOTFOUND core-mosquitto|
|---|---|
|[2024-05-17 09:49:09] error: |z2m: MQTT failed to connect, exiting...|
[09:48:55] INFO: Preparing to start...
[09:48:55] INFO: Socat not enabled
[09:48:57] INFO: Starting Zigbee2MQTT...
[2024-05-17 09:49:03] info: 	z2m: Logging to console, file (filename: log.log)
[2024-05-17 09:49:03] info: 	z2m: Starting Zigbee2MQTT version 1.37.1 (commit #unknown)
[2024-05-17 09:49:03] info: 	z2m: Starting zigbee-herdsman (0.46.6)
[2024-05-17 09:49:04] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-05-17 09:49:04] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-05-17 09:49:04] info: 	zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-17 09:49:04] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-05-17 09:49:04] info: 	zh:ember:uart:ash: Serial port opened
[2024-05-17 09:49:04] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-05-17 09:49:05] info: 	zh:ember:uart:ash: ======== ASH connected ========
[2024-05-17 09:49:05] info: 	zh:ember:uart:ash: ======== ASH started ========
[2024-05-17 09:49:05] info: 	zh:ember:ezsp: ======== EZSP started ========
[2024-05-17 09:49:05] info: 	zh:ember: [STACK STATUS] Network up.
[2024-05-17 09:49:05] info: 	zh:ember: [INIT TC] NCP network matches config.
[2024-05-17 09:49:05] info: 	zh:ember: [CONCENTRATOR] Started source route discovery. 1247ms until next broadcast.
[2024-05-17 09:49:05] info: 	z2m: zigbee-herdsman started (resumed)
[2024-05-17 09:49:05] info: 	z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":3,"revision":"7.4.3 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-05-17 09:49:05] info: 	z2m: Currently 0 devices are joined:
[2024-05-17 09:49:05] info: 	z2m: Zigbee: disabling joining new devices.
[2024-05-17 09:49:05] info: 	z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-05-17 09:49:09] error: 	z2m: MQTT error: getaddrinfo ENOTFOUND core-mosquitto
[2024-05-17 09:49:09] error: 	z2m: MQTT failed to connect, exiting...
[2024-05-17 09:49:09] info: 	z2m: Stopping zigbee-herdsman...
[2024-05-17 09:49:09] info: 	zh:controller: Wrote coordinator backup to '/config/zigbee2mqtt/coordinator_backup.json'
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Total frames: RX=68, TX=131
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   DATA frames : RX=67, TX=62
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   DATA bytes  : RX=657, TX=645
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Retry frames: RX=0, TX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   ACK frames  : RX=0, TX=68
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   CRC errors      : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Comm errors     : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Length < minimum: RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Length > maximum: RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Bad controls    : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Bad lengths     : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Bad ACK numbers : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Out of buffers  : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Retry dupes     : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   Out of sequence : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash:   ACK timeouts    : RX=0
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash: Port closed. Error? no
[2024-05-17 09:49:09] info: 	zh:ember:uart:ash: ======== ASH stopped ========
[2024-05-17 09:49:09] info: 	zh:ember:ezsp: ======== EZSP stopped ========
[2024-05-17 09:49:09] info: 	zh:ember: ======== Ember Adapter Stopped ========
[2024-05-17 09:49:09] info: 	z2m: Stopped zigbee-herdsman

Did you install the mosquitto add-on ?

1 Like

nope, is this a requirement or optional?

A MQTT broker is required, but it does not need to be the Mosquitto add-on. But since you run the Zigbee2MQTT add-on, you would probably use the Mosquitto add-on.

1 Like

ok, makes sense. I just installed it and I can see Z2M dashboard now.

baudrate: 230400

was the missing bit to resolve the main issue.

Thank you very much

1 Like

I had problem to start Zigbee2mqtt after upgrade to ember 7.4.3.0 from ezsp

baudrate: 230400 did the job.

Thank you.

I’m hoping someone can help here. My Sonoff-E Dongle keeps failing and stops and then I try to restart and I get the following message. I’ve tried to look at the logs and there doesn’t seem to be a zigbee device issue. I plug into another USB on my mini pc and then it works again for a day or so and then the dongle shuts down and when I try to restarts I get the same error below.

[2024-07-25 15:51:59] error: zh:ember:uart:ash: Failed to init port with error Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-1a86_USB_Single_Serial_54DC010523-if00
[2024-07-25 15:51:59] error: z2m: Error while starting zigbee-herdsman
[2024-07-25 15:51:59] error: z2m: Failed to start zigbee
[2024-07-25 15:51:59] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-07-25 15:51:59] error: z2m: Exiting…
[2024-07-25 15:51:59] error: z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:889:19)
at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2722:24)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:29)
at Zigbee.start (/app/lib/zigbee.ts:63:27)
at Controller.start (/app/lib/controller.ts:139:27)
at start (/app/index.js:154:5)

Do you use an USB extension cable ?

yes I do use a USB extension

What firmware did you flash ?

When I try to flash the ncp-uart 7.4.3.0 firmware via ota custom firmware I get an error after uploading: Canceled by target. I can’t find any information. What I did wrong

try

It doesn’t connect, but the webflasher for the core firmware is able to flash via usb

Hello, unfortunatly it doesn’t change anything on my side. I am running Z2M latest version (1.40.1-1) and upgraded my dongle to latest version of firmware (7.4.?) as well but:

> [19:52:47] INFO: Preparing to start...
> [19:52:47] INFO: Socat not enabled
> [19:52:48] INFO: Starting Zigbee2MQTT...
> Starting Zigbee2MQTT without watchdog.
> [2024-09-21 19:52:50] info: 	z2m: Logging to console, file (filename: log.log)
> [2024-09-21 19:52:50] info: 	z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
> [2024-09-21 19:52:50] info: 	z2m: Starting zigbee-herdsman (0.57.3)
> [2024-09-21 19:52:51] info: 	zh:ember: Using default stack config.
> [2024-09-21 19:52:51] info: 	zh:ember: ======== Ember Adapter Starting ========
> [2024-09-21 19:52:51] info: 	zh:ember:ezsp: ======== EZSP starting ========
> [2024-09-21 19:52:51] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
> [2024-09-21 19:52:51] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
> [2024-09-21 19:52:51] info: 	zh:ember:uart:ash: Serial port opened
> [2024-09-21 19:52:51] info: 	zh:ember:uart:ash: ======== ASH starting ========
> [2024-09-21 19:52:53] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
> [2024-09-21 19:52:53] info: 	zh:ember:uart:ash: ======== ASH starting ========
> [2024-09-21 19:52:56] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
> [2024-09-21 19:52:56] info: 	zh:ember:uart:ash: ======== ASH starting ========
> [2024-09-21 19:52:58] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
> [2024-09-21 19:52:58] info: 	zh:ember:uart:ash: ======== ASH starting ========
> [2024-09-21 19:53:01] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
> [2024-09-21 19:53:01] info: 	zh:ember:uart:ash: ======== ASH starting ========
> [2024-09-21 19:53:03] error: 	z2m: Error while starting zigbee-herdsman
> [2024-09-21 19:53:03] error: 	z2m: Failed to start zigbee
> [2024-09-21 19:53:03] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
> [2024-09-21 19:53:03] error: 	z2m: Exiting...
> [2024-09-21 19:53:04] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
>     at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:701:19)
>     at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1708:24)
>     at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:138:29)
>     at Zigbee.start (/app/lib/zigbee.ts:64:27)
>     at Controller.start (/app/lib/controller.ts:140:27)
>     at start (/app/index.js:154:5)

Let me add that it used to be ok with v6. firmware version and EZSP protocol. I now also face an error with this protocol.
zh:ezsp:uart: --> Error: Error: {"sequence":-1}
Now I try to downgrade the firmware version from 7.4.4 but I cannot on my Mac (it seems to be an error linked to driver?). I have to try on a Windows machine…

Same error on a PC running Windows 11. I wonder if the flash process from 6 to 7 (using web-based flasher) broke something :thinking:

Even using the “good old” Silabs-Flasher method doesn’t work. The process stays on “Probing” :frowning:

universal-silabs-flasher --device /dev/tty.usbserial-110 flash --firmware /Users/XXX/Downloads/ncp-uart-sw_EZNet6.10.3_V1.0.1.gbl