Newbie & zigbee2mqtt errors after HA updtae (zonoff 3.0 plus E) CRC and ASH error

Got a Zonoff Plus E and played around for quite some time to get it working with Zigbee2mqtt. Had to update firmware to 7.4.3 (I think) and changed the interface to ember which did the trick. was working for a few days but after updating HA core and some other updates dont get it to start anymore. Even tried to reverse the update and no luck.

[20:59:52] INFO: Preparing to start…
[20:59:52] INFO: Socat not enabled
[20:59:53] INFO: Starting Zigbee2MQTT…
Starting Zigbee2MQTT without watchdog.
[2024-09-08 20:59:55] info: z2m: Logging to console, file (filename: log.log)
[2024-09-08 20:59:55] info: z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-08 20:59:55] info: z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-08 20:59:55] info: zh:ember: Using default stack config.
[2024-09-08 20:59:55] info: zh:ember: ======== Ember Adapter Starting ========
[2024-09-08 20:59:55] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-09-08 20:59:55] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-08 20:59:55] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-09-08 20:59:55] info: zh:ember:uart:ash: Serial port opened
[2024-09-08 20:59:55] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-08 20:59:56] info: zh:ember:uart:ash: ======== ASH connected ========
[2024-09-08 20:59:56] info: zh:ember:uart:ash: ======== ASH started ========
[2024-09-08 20:59:56] info: zh:ember:ezsp: ======== EZSP started ========
[2024-09-08 20:59:57] info: zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
[2024-09-08 20:59:57] info: zh:ember: Adapter version info: {“ezsp”:13,“revision”:“7.4.3 [GA]”,“build”:0,“major”:7,“minor”:4,“patch”:3,“special”:0,“type”:170}
[2024-09-08 21:00:03] error: zh:ember:ezsp: The adapter has run out of buffers, causing general malfunction. Remediate network congestion, if present. Last Frame: [FRAME: ID=170:“GET_VALUE” Seq=2 Len=14].
[2024-09-08 21:00:09] error: zh:ember:uart:ash: Received ERROR from adapter, with code=ERROR_EXCEEDED_MAXIMUM_ACK_TIMEOUT_COUNT.
[2024-09-08 21:00:09] error: zh:ember:uart:ash: ASH disconnected | Adapter status: ASH_NCP_FATAL_ERROR
[2024-09-08 21:00:09] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-09-08 21:00:09] error: zh:ember: Adapter fatal error: HOST_FATAL_ERROR
[2024-09-08 21:00:12] error: zh:ember:ezsp: ERROR Transaction failure; status=ASH_ERROR_TIMEOUTS. Last Frame: [FRAME: ID=170:“GET_VALUE” Seq=2 Len=14].
[2024-09-08 21:00:12] error: z2m: Error while starting zigbee-herdsman
[2024-09-08 21:00:12] error: z2m: Failed to start zigbee
[2024-09-08 21:00:12] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-09-08 21:00:12] error: z2m: Exiting…
[2024-09-08 21:00:12] error: z2m: Error: ASH_ERROR_TIMEOUTS
at Ezsp.ezspSetConfigurationValue (/app/node_modules/zigbee-herdsman/src/adapter/ember/ezsp/ezsp.ts:1419:19)
at EmberAdapter.emberSetEzspConfigValue (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1465:24)
at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:708:9)
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)

sometimes I get

[2024-09-08 20:58:43] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-09-08 20:58:43] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-08 20:58:43] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-09-08 20:58:43] info: zh:ember:uart:ash: Serial port opened
[2024-09-08 20:58:43] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-08 20:58:44] error: zh:ember:uart:ash: Received frame with CRC error
[2024-09-08 20:58:45] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-08 20:58:45] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-09-08 20:58:47] info: zh:ember:uart:ash: ======== ASH connected ========
[2024-09-08 20:58:47] info: zh:ember:uart:ash: ======== ASH started ========
[2024-09-08 20:58:47] info: zh:ember:ezsp: ======== EZSP started ========
[2024-09-08 20:59:01] error: zh:ember:ezsp: ERROR Transaction failure; status=ASH_ERROR_TIMEOUTS. Last Frame: [FRAME: ID=0:“VERSION” Seq=0 Len=0].
[2024-09-08 20:59:01] error: zh:ember: Adapter fatal error: ASH_ERROR_TIMEOUTS
[2024-09-08 20:59:01] error: z2m: Error while starting zigbee-herdsman
[2024-09-08 20:59:01] error: z2m: Failed to start zigbee
[2024-09-08 20:59:01] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-09-08 20:59:01] error: z2m: Exiting…
[2024-09-08 20:59:01] error: z2m: Error: ASH_ERROR_TIMEOUTS
at Ezsp.ezspVersion (/app/node_modules/zigbee-herdsman/src/adapter/ember/ezsp/ezsp.ts:1361:19)
at EmberAdapter.emberVersion (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1414:63)
at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:705:9)
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)

Did you try a host reboot (not just a HA restart) ?

just rebooted everything and unplugged dongle, same results.
ASH error timeout and most of the time paired with the CRC frame error.

config as following:

data_path: /config/zigbee2mqtt
socat:
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
mqtt:
server: mqtt://core-mosquitto:1883
user: MQTT-user
password: ***********
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0
adapter: ember

In that case

serial:
port: >-
  /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0
  adapter: zstack
[12:07:16] INFO: Preparing to start...
[12:07:17] INFO: Socat not enabled
[12:07:17] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-09-09 12:07:19] info: 	z2m: Logging to console, file (filename: log.log)
[2024-09-09 12:07:19] info: 	z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-09 12:07:19] info: 	z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-09 12:07:19] info: 	zh:ember: Using default stack config.
[2024-09-09 12:07:19] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-09-09 12:07:19] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Total frames: RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   DATA frames : RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   DATA bytes  : RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Retry frames: RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   ACK frames  : RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   CRC errors      : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Comm errors     : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Length < minimum: RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Length > maximum: RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Bad controls    : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Bad lengths     : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Bad ACK numbers : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Out of buffers  : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Retry dupes     : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   Out of sequence : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash:   ACK timeouts    : RX=0
[2024-09-09 12:07:19] info: 	zh:ember:uart:ash: ======== ASH stopped ========
[2024-09-09 12:07:19] 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-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0 adapter: zstack
[2024-09-09 12:07:19] error: 	z2m: Error while starting zigbee-herdsman
[2024-09-09 12:07:19] error: 	z2m: Failed to start zigbee
[2024-09-09 12:07:19] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-09 12:07:19] error: 	z2m: Exiting...
[2024-09-09 12:07:19] 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)

You did not change to zstack

I did, looks like it took it as part of the port. changed the formatting so it now reads it as the adapter. Still getting following error. Thanks for being patient

data_path: /config/zigbee2mqtt
socat:
  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
mqtt:
  server: mqtt://core-mosquitto:1883
  user: MQTT-user
  password: *****
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0
adapter: zstack

[13:31:09] INFO: Preparing to start...
[13:31:10] INFO: Socat not enabled
[13:31:10] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-09-09 13:31:12] info: 	z2m: Logging to console, file (filename: log.log)
[2024-09-09 13:31:12] info: 	z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-09 13:31:12] info: 	z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-09 13:31:12] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-09-09 13:31:12] info: 	zh:zstack:znp: Serialport opened
[2024-09-09 13:31:12] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-09-09 13:31:13] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-09-09 13:31:32] error: 	z2m: Error while starting zigbee-herdsman
[2024-09-09 13:31:32] error: 	z2m: Failed to start zigbee
[2024-09-09 13:31:32] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-09 13:31:32] error: 	z2m: Exiting...
[2024-09-09 13:31:32] error: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:123:27)
    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)

adapter must be at the same level as port, so add 2 spaces.

still the same

[10:34:33] INFO: Preparing to start...
[10:34:33] INFO: Socat not enabled
[10:34:34] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-09-10 10:34:35] info: 	z2m: Logging to console, file (filename: log.log)
[2024-09-10 10:34:35] info: 	z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-10 10:34:35] info: 	z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-10 10:34:35] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-09-10 10:34:35] info: 	zh:zstack:znp: Serialport opened
[2024-09-10 10:34:36] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-09-10 10:34:37] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-09-10 10:34:55] error: 	z2m: Error while starting zigbee-herdsman
[2024-09-10 10:34:55] error: 	z2m: Failed to start zigbee
[2024-09-10 10:34:55] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-10 10:34:55] error: 	z2m: Exiting...
[2024-09-10 10:34:56] error: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:123:27)
    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)
data_path: /config/zigbee2mqtt
socat:
  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
mqtt:
  server: mqtt://core-mosquitto:1883
  user: MQTT-user
  password: *****
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0
  adapter: zstack

I’m out of ideas. The only thing that still bothers me is your port.

That is what a dongle P returns

port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_58ae2ed291dbed118f28ef2d62c613ac-if00-port0

but you claim to have a dongle E

These normally return something like this

port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_58ae2ed291dbed118f28ef2d62c613ac-if00-port0

There is a guy on a discord channel in my country who is having a similar problem, the dongle E does not have V2 in the serial, but in his case, it seems that he flashed it using the dongle P firmware.

followed this guide for the firmware, and got it all working for a while.

Guide: Flashing Sonoff ZigBee USB 3.0 ZBDongle-E to use Ember firmware with Z2M – Creating Smart Home

What firmware did you flash ? There is firmware which works with the default baud rate of 115200, but there is firmware on other baudrates too.

user this file

ncp-uart-hw-v7.4.3.0-zbdonglee-115200.gbl

So that is not the problem either. You could still try the ezsp driver

  adapter: ezsp

ezsp

[12:34:35] INFO: Preparing to start...
[12:34:35] INFO: Socat not enabled
[12:34:36] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-09-10 12:34:38] info: 	z2m: Logging to console, file (filename: log.log)
[2024-09-10 12:34:38] info: 	z2m: Starting Zigbee2MQTT version 1.40.1 (commit #unknown)
[2024-09-10 12:34:38] info: 	z2m: Starting zigbee-herdsman (0.57.3)
[2024-09-10 12:34:38] 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-09-10 12:34:39] error: 	zh:ezsp:uart: Error while parsing to NpiFrame 'Error: <-- CRC error: 527e|52|ffff'
[2024-09-10 12:34:48] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-09-10 12:34:48] error: 	zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
[2024-09-10 12:35:00] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
[2024-09-10 12:35:00] error: 	zh:ezsp:uart: -!- break waiting (1)
[2024-09-10 12:35:00] error: 	zh:ezsp:uart: Can't send DATA frame (0,0,0): 00000004
[2024-09-10 12:35:04] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
[2024-09-10 12:35:04] error: 	zh:ezsp:uart: -!- break rewaiting (1)
[2024-09-10 12:35:04] error: 	zh:ezsp:uart: Can't resend DATA frame (0,0,1): 00000004
[2024-09-10 12:35:04] error: 	z2m: Error while starting zigbee-herdsman
[2024-09-10 12:35:04] error: 	z2m: Failed to start zigbee
[2024-09-10 12:35:04] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-09-10 12:35:04] error: 	z2m: Exiting...
[2024-09-10 12:35:04] error: 	z2m: Error: Failure send version:{"type":"Buffer","data":[0,0,0,4]}
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:675:23
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:36:20)
    at Ezsp.version (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:457:24)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:192:9)
    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)

with ember still getting CRC and ASH errors

any other ideas?
reflashed the firmware 7.4.2. and same thing happens, moved the server to differnent location to avoid signal interference, same thing. about to open up the stick and pree the reset button, not sure if this will change anything. might have to order another stick to rule thatbone out.