zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Sonoff ZBDongle-P not working in Windows at all, Sonoff ZBDongle-E working only with ember driver

Open LamerTex opened this issue 9 months ago • 2 comments

What happened?

I've thoroughly followed the installation instruction for Windows, but even after trying everything I'm not able to correctly start Zigbee2Mqtt on a Windows machine using the Sonoff ZBDongle-P and I have no more idea on what can I try to do.

Here is a little on what I've tried: I have bought both a Sonoff ZBDongle-P and a Sonoff ZBDongle-E.

Sonoff ZBDongle-P:

  • Driver not found by Windows and also not working with "standard" installation of VCP-Driver from FTDI, I had to manually select the FTDI "USB Serial port" with Windows telling me it cannot be sure the driver is right. I've tried several other drivers without differences in the result image
  • Z2M in Windows is not working, I've pasted its output under the "Debug Log" section
  • Z2M in WSL (Ubuntu 18.04) with USB passthrough using "usbipd" works without any problem
  • Updated dongle firmware to the latest available (20230507) -> also done in WSL because in Windows I was not able to update it in any way
  • Z2M still works in WSL
  • Z2M still not working in Windows

Sonoff ZBDongle-E:

  • Driver installed directly by Windows and displayed as "USB-Enhanced-SERIAL CH9102"
  • Z2M on Windows is not working with the same output as the Sonoff ZBDongle-P
  • Z2M in WSL (Ubuntu 18.04) with USB passthrough using "usbipd" works without any problem
  • Updated dongle firmware to the lastest available (7.4.2 [GA]) -> done directly from the Silabs firmware builder website
  • Z2M still works in WSL
  • Z2M still not working in Windows
  • Added "adapter: ember" in configuration.yaml
  • Z2M work in Windows

What did you expect to happen?

From what I can see I thought there was a problem with the Windows driver for communicating with the ZBDongle-P (since it works without problems under WSL and I was not even able to update its firmware under Windows), but since the ZBDongle-E also doesn't work until the activation of the ember driver maybe there is also a problem in the "standard" driver is not working at all in Windows?

Next week I will return the ZBDongle-P and in the future I will use only the ZBDongle-E. If you have some other idea or test I can do to understand why the ZBDongle-P (and also the ZBDongle-E without activating the ember driver) is not working in Windows I'm always available.

Thanks for the amazing project!

How to reproduce it (minimal and precise)

configuration.yaml used (I've tried both \.\COM4 and COM4 directly):

homeassistant: false
frontend: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://localhost
serial:
  port: \\.\COM4
advanced:
  network_key:
    - 119
    - 255
    - 138
    - 155
    - 110
    - 89
    - 154
    - 132
    - 54
    - 17
    - 35
    - 238
    - 232
    - 5
    - 81
    - 219
  pan_id: 10650
  ext_pan_id:
    - 206
    - 207
    - 244
    - 17
    - 87
    - 204
    - 227
    - 232

Zigbee2MQTT version

1.37.1 (commit #cda867a3)

Adapter firmware version

20230507

Adapter

ZBDongle-P

Setup

Plain on x64 Windows laptop

Debug log

npm start

[email protected] start node index.js

[2024-05-23 10:48:31] info: z2m: Logging to console, file (filename: log.log) [2024-05-23 10:48:31] info: z2m: Starting Zigbee2MQTT version 1.37.1 (commit #cda867a3) [2024-05-23 10:48:31] info: z2m: Starting zigbee-herdsman (0.46.6) [2024-05-23 10:48:31] error: zh:zstack:znp: Failed to determine if path is valid: 'Error: EINVAL: invalid argument, lstat '\.\COM4'' [2024-05-23 10:48:31] info: zh:zstack:znp: Opening SerialPort with {"path":"\\.\COM4","baudRate":115200,"rtscts":false,"autoOpen":false} [2024-05-23 10:48:31] info: zh:zstack:znp: Serialport opened [2024-05-23 10:48:32] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2024-05-23 10:48:33] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352 [2024-05-23 10:48:51] error: z2m: Error while starting zigbee-herdsman [2024-05-23 10:48:51] error: z2m: Failed to start zigbee [2024-05-23 10:48:51] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions [2024-05-23 10:48:51] error: z2m: Exiting... [2024-05-23 10:48:51] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) at ZStackAdapter.start (D:\Working\LocalProjects\MQTT\zigbee2mqtt\node_modules\zigbee-herdsman\src\adapter\z-stack\adapter\zStackAdapter.ts:101:27) at Controller.start (D:\Working\LocalProjects\MQTT\zigbee2mqtt\node_modules\zigbee-herdsman\src\controller\controller.ts:124:29) at Zigbee.start (D:\Working\LocalProjects\MQTT\zigbee2mqtt\lib\zigbee.ts:62:27) at Controller.start (D:\Working\LocalProjects\MQTT\zigbee2mqtt\lib\controller.ts:109:27) at start (D:\Working\LocalProjects\MQTT\zigbee2mqtt\index.js:107:5)

LamerTex avatar May 23 '24 09:05 LamerTex