I got a ZB-GW04 v1.2 USB key from Aliexpress (device id 1A86:7523) which came pre-flashed with EmberZNet 6.7.9.
Here is a picture of the usb key.
I tried these 3 solutions:
- ZHA - Integration sees the coordinator, but it’s unable to pair any devices. I enabled debug logs and see this every 10 seconds:
2023-03-09 15:30:40.829 DEBUG (MainThread) [bellows.ezsp.protocol] Send command readCounters: ()
2023-03-09 15:30:40.830 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'465921a9a52a51fb7e'
2023-03-09 15:30:40.847 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'6559a1a9a52a15b275944a25aa5592499c4e27abedce678bfdc66389fc7e3fa7ebcdde6f8fffc7dbd5d2698c4623a9ec763ba5ea758241984c2613b1e070381c0e07bbe5ca65a6459a4d9e4f9ff7c3d9d46a35a251904824c4187e'
2023-03-09 15:30:40.848 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'87009f7e'
2023-03-09 15:30:40.848 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received readCounters: [[0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 0, 0, 0, 0, 0, 0, 0, 0]]
2023-03-09 15:30:40.849 DEBUG (MainThread) [bellows.ezsp.protocol] Send command getValue: (<EzspValueId.VALUE_FREE_BUFFERS: 3>,)
2023-03-09 15:30:40.850 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'575e21a9fe2a162a477e'
2023-03-09 15:30:40.854 DEBUG (bellows.thread_0) [bellows.uart] Data frame: b'765ea1a9fe2a15b3a091cc7e'
2023-03-09 15:30:40.854 DEBUG (bellows.thread_0) [bellows.uart] Sending: b'8070787e'
2023-03-09 15:30:40.855 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame received getValue: [<EzspStatus.SUCCESS: 0>, b'\xf9']
2023-03-09 15:30:40.856 DEBUG (MainThread) [bellows.zigbee.application] Free buffers status EzspStatus.SUCCESS, value: 249
2023-03-09 15:30:40.856 DEBUG (MainThread) [bellows.zigbee.application] ezsp_counters: [MAC_RX_BROADCAST = 1, MAC_TX_BROADCAST = 384, MAC_RX_UNICAST = 0, MAC_TX_UNICAST_SUCCESS = 0, MAC_TX_UNICAST_RETRY = 0, MAC_TX_UNICAST_FAILED = 1, APS_DATA_RX_BROADCAST = 1, APS_DATA_TX_BROADCAST = 1, APS_DATA_RX_UNICAST = 4, APS_DATA_TX_UNICAST_SUCCESS = 2, APS_DATA_TX_UNICAST_RETRY = 0, APS_DATA_TX_UNICAST_FAILED = 0, ROUTE_DISCOVERY_INITIATED = 0, NEIGHBOR_ADDED = 0, NEIGHBOR_REMOVED = 0, NEIGHBOR_STALE = 0, JOIN_INDICATION = 0, CHILD_REMOVED = 0, ASH_OVERFLOW_ERROR = 0, ASH_FRAMING_ERROR = 0, ASH_OVERRUN_ERROR = 0, NWK_FRAME_COUNTER_FAILURE = 0, APS_FRAME_COUNTER_FAILURE = 0, UTILITY = 0, APS_LINK_KEY_NOT_AUTHORIZED = 0, NWK_DECRYPTION_FAILURE = 0, APS_DECRYPTION_FAILURE = 0, ALLOCATE_PACKET_BUFFER_FAILURE = 0, RELAYED_UNICAST = 0, PHY_TO_MAC_QUEUE_LIMIT_REACHED = 0, PACKET_VALIDATE_LIBRARY_DROPPED_COUNT = 0, TYPE_NWK_RETRY_OVERFLOW = 0, PHY_CCA_FAIL_COUNT = 385, BROADCAST_TABLE_FULL = 0, PTA_LO_PRI_REQUESTED = 0, PTA_HI_PRI_REQUESTED = 0, PTA_LO_PRI_DENIED = 0, PTA_HI_PRI_DENIED = 0, PTA_LO_PRI_TX_ABORTED = 0, PTA_HI_PRI_TX_ABORTED = 0, ADDRESS_CONFLICT_SENT = 0, EZSP_FREE_BUFFERS = 249]
- Z2M (Zigbee2mqtt). Here is the log:
[15:36:35] INFO: Preparing to start...
[15:36:35] INFO: Socat not enabled
[15:36:35] INFO: Zigbee Herdsman debug logging enabled
[15:36:36] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2023-03-09 15:36:38: Can't load state from file /config/zigbee2mqtt/state.json (doesn't exist)
Zigbee2MQTT:info 2023-03-09 15:36:38: Logging to console and directory: '/config/zigbee2mqtt/log/2023-03-09.15-36-38' filename: log.txt
Zigbee2MQTT:debug 2023-03-09 15:36:38: Removing old log directory '/config/zigbee2mqtt/log/2023-03-07.23-54-47'
Zigbee2MQTT:info 2023-03-09 15:36:38: Starting Zigbee2MQTT version 1.30.2 (commit #unknown)
Zigbee2MQTT:info 2023-03-09 15:36:38: Starting zigbee-herdsman (0.14.96)
Zigbee2MQTT:debug 2023-03-09 15:36:38: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyUSB0"}}'
2023-03-09T20:36:38.508Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2023-03-09T20:36:38.509Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/ttyUSB0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2023-03-09T20:36:38.510Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}
2023-03-09T20:36:38.517Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2023-03-09T20:36:38.518Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-09T20:36:38.519Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-09T20:36:38.772Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2023-03-09T20:36:38.773Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2023-03-09T20:36:39.775Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-09T20:36:39.776Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-09T20:36:40.028Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2023-03-09T20:36:40.484Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-09T20:36:40.485Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-09T20:36:46.489Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-09T20:36:46.490Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2023-03-09T20:36:52.495Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2023-03-09T20:36:52.496Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2023-03-09 15:36:58: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-03-09 15:36:58: Failed to start zigbee
Zigbee2MQTT:error 2023-03-09 15:36:58: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-03-09 15:36:58: Exiting...
Zigbee2MQTT:error 2023-03-09 15:36:58: 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:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)
- deCONZ. Here is the log:
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
cont-init: info: running /etc/cont-init.d/novnc.sh
cont-init: info: /etc/cont-init.d/novnc.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun deconz (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
services-up: info: copying legacy longrun otau-deconz (no readiness notification)
services-up: info: copying legacy longrun otau-ikea (no readiness notification)
services-up: info: copying legacy longrun otau-ledvance (no readiness notification)
services-up: info: copying legacy longrun websockify (no readiness notification)
[15:38:15] INFO: Running the deCONZ OTA updater...
[15:38:15] INFO: Running the OSRAM LEdvance OTA updater...
s6-rc: info: service legacy-services successfully started
[15:38:15] INFO: Websockify waiting for VNC to start
[15:38:15] INFO: Running the IKEA OTA updater...
[15:38:15] INFO: Starting VNC server (local/yes)...
[15:38:15] INFO: Starting websockify...
WebSocket server settings:
- Listen on 127.0.0.1:5901
- Flash security policy server
- Web server. Web root: /usr/share/novnc
- No SSL/TLS support (no cert file)
- proxying from 127.0.0.1:5901 to 127.0.0.1:5900
[15:38:18] INFO: deCONZ waiting for VNC to start
[15:38:18] INFO: Starting the deCONZ gateway...
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
[15:38:19] INFO: Starting Nginx...
2023/03/09 15:38:19 [notice] 120#120: using the "epoll" event method
2023/03/09 15:38:19 [notice] 120#120: nginx/1.14.2
2023/03/09 15:38:19 [notice] 120#120: OS: Linux 5.4.0-144-generic
2023/03/09 15:38:19 [notice] 120#120: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/03/09 15:38:19 [notice] 120#120: start worker processes
2023/03/09 15:38:19 [notice] 120#120: start worker process 678
15:38:19:316 HTTP Server listen on address 0.0.0.0, port: 40850, root: /usr/share/deCONZ/webapp/
15:38:19:320 /data/.local/share/dresden-elektronik/deCONZ/config.ini exists and is writeable
15:38:19:320 /data/.local/share/dresden-elektronik/deCONZ/zll.db exists and is writeable
15:38:19:336 COM: use stable device path /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
15:38:19:352 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:38:19:352 ZCLDB init file /data/.local/share/dresden-elektronik/deCONZ/zcldb.txt
15:38:19:388 DDF enabled for Gold status
15:38:19:518 parent process s6-supervise
15:38:19:518 gw run mode: docker/hassio
15:38:19:518 GW sd-card image version file does not exist: /data/.local/share/dresden-elektronik/deCONZ/gw-version
15:38:19:518 DB sqlite version 3.27.2
15:38:19:519 DB PRAGMA page_count: 46
15:38:19:519 DB PRAGMA page_size: 4096
15:38:19:519 DB PRAGMA freelist_count: 0
15:38:19:519 DB file size 188416 bytes, free pages 0
15:38:19:519 DB PRAGMA user_version: 9
15:38:19:519 DB cleanup
15:38:19:519 DB create temporary views
15:38:19:521 Started websocket server on 0.0.0.0, port: 8081
15:38:19:521 [INFO] - Found file containing button maps. Parsing data...
15:38:19:525 [INFO] - Button maps loaded.
15:38:19:525 found node plugin: libde_rest_plugin.so - REST API Plugin
15:38:19:526 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin
15:38:20:511 OTAU: create 1189-0033-01056400.zigbee
15:38:20:521 OTAU: create 1189-0033-01056400.zigbee
15:38:20:531 OTAU: create 1189-001B-00102428.zigbee
15:38:20:542 OTAU: create 1189-001A-00102428.zigbee
15:38:20:552 OTAU: create 1189-000F-00102428.zigbee
15:38:20:616 OTAU: create 1189-008C-02056550.zigbee
15:38:20:626 OTAU: create 1189-00A3-02136550.zigbee
15:38:20:634 OTAU: create 110C-006B-01020510.zigbee
15:38:20:641 OTAU: create 110C-0062-01020510.zigbee
15:38:20:642 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin
parse error: Invalid numeric literal at line 1, column 34
15:38:20:737 dlg action: Read binding table
15:38:21:593 Skip idle timer callback, too early: elapsed 863 msec
15:38:21:668 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:38:25:469 Announced to internet https://phoscon.de/discover
15:38:27:121 DEV Tick.Init: booted after 8000 seconds
15:38:32:613 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:38:40:591 start reconnect to network
15:38:45:842 failed to reconnect to network try=1
15:38:46:615 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:38:51:090 try to reconnect to network try=2
15:38:56:090 try to reconnect to network try=3
15:38:56:614 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:39:01:090 failed to reconnect to network try=4
15:39:06:091 failed to reconnect to network try=5
15:39:10:613 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:39:11:091 failed to reconnect to network try=6
15:39:16:091 try to reconnect to network try=7
15:39:20:613 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:39:21:106 failed to reconnect to network try=8
15:39:26:091 failed to reconnect to network try=9
15:39:31:091 failed to reconnect to network try=10
15:39:34:613 COM: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 / serialno: , ConBee
15:39:36:091 reconnect network failed, try later
I also flashed EmberZNet 6.10.3.0 build 297 (EZSP v8) - file: https://github.com/xsp1989/zigbeeFirmware/blob/fb955a14dae0e7e5f84dd0c0a81d4b736cfc5d83/firmware/Zigbee3.0_Dongle-NoSigned/EZSP/ncp-uart-sw_6.10.3_115200.gbl and got the same results.
Here is the output of ncp.py:
root@3cf879da1dbe:/tmp/silabs# ./ncp.py scan
Connecting to.. /dev/ttyUSB0 115200 True False
{"ports": [{"port": "/dev/ttyUSB0", "vid": "1A86", "pid": "7523", "deviceType": "zigbee", "stackVersion": "6.10.3-297"}]}
Any clues on what’s wrong or what else I can try?