Zigbee Binding / Sonoff ZBDongle-E

After a fresh install of openhabian v1.10.1 I’m trying to use Zigbee Binding.

Mine keeps on INITIALIZING state forever.

Can anyone help?

Thank you.

openHAB 4.3.2 - Release Build

##   Release = Raspbian GNU/Linux 12 (bookworm)
##   Kernel = Linux 6.6.74+rpt-rpi-v7
##   Platform = BCM43455 37.4MHz Raspberry Pi 3+-0190


openjdk 17.0.13 2024-10-15
OpenJDK Runtime Environment (build 17.0.13+11-Raspbian-2deb12u1rpt1)
OpenJDK Client VM (build 17.0.13+11-Raspbian-2deb12u1rpt1, mixed mode, emulated-client)
dmesg

usb 1-1.3: new full-speed USB device number 4 using dwc_otg
usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.3: Product: Sonoff Zigbee 3.0 USB Dongle Plus V2
usb 1-1.3: Manufacturer: Itead
usb 1-1.3: SerialNumber: exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver cp210x
usbserial: USB Serial support registered for cp210x
usb 1-1.3: cp210x converter now attached to ttyUSB0


LSUSB

Bus 001 Device 004: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 001 Device 005: ID 0424:7800 Microchip Technology, Inc. (formerly SMSC) 
Bus 001 Device 003: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Linux group

dialout:x:20:openhabian,openhab

tty:x:5:openhab,openhabian
/etc/default/openhab

EXTRA_JAVA_OPTS="-Xms192m -Xmx384m -XX:-TieredCompilation -XX:TieredStopAtLevel=1 -XX:+ExitOnOutOfMemoryError -Dxtext.qn.interning=true -Duser.timezone=America/Sao_Paulo -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0"

Zigbee Thing

UID: zigbee:coordinator_ember:85bd328c4e
label: Zigbee Ember Coordinator
thingTypeUID: zigbee:coordinator_ember
configuration:
  zigbee_port: /dev/ttyUSB0
  zigbee_channel: 11
  zigbee_initialise: false
  zigbee_concentrator: 0
  zigbee_trustcentremode: TC_JOIN_SECURE
  zigbee_extendedpanid: 98AEDE7A33A458D6
  zigbee_baud: 115200
  zigbee_flowcontrol: 1
  zigbee_panid: 19522
  zigbee_powermode: 1
  zigbee_txpower: 0
  zigbee_networksize: 25
  zigbee_linkkey: 5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  zigbee_childtimeout: 86400
  zigbee_networkkey: FXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  zigbee_meshupdateperiod: 86400

Have you initialised the network? To do this, go to the dongle configuration, tick the advanced button then tick initialise and save.

You could also try changing the flow control since there are different versions of firmware around.

If that doesn’t fix it, then please enable debug logging and provide a debug log showing what’s happening.

1 Like

Hi Chris!

Thank you so much.

I changed Flow Control and it works.

Here in my environment it works with None as well as XOn/XOff.

I also noticed that using Hardware (CTS/RTS) makes zigbee bind to be unresponsive sometimes.

During the testing phase, I disconnected and connected the USB dongle and on some rare occasions it changes its port from /dev/ttyUSB0 to /dev/ttyUSB1.

Its important to change EXTRA_JAVA_OPTS on /etc/default/openhab to have both ports.

Instead of /dev/ttyUSB<X> You could maybe also use the links /dev/serial/by-id/<friendly_name>, as they don’t change between reboot.
openHAB does support it, and I think openhabian with its debian base does provide the link.

1 Like

Hi dalgwen!

It’s good to know there is a better option.

My setup was based on what I understood from the documentation I found:

But I didn’t take into account the part about “symlink” / <friendly_name> that would resolve changes between boots.

I imagine that in this case it is important to add the <friendly_name> to EXTRA_JAVA_OPTS. Is that correct?

Hum sorry, I can’t really help you as I’m not sure. I know that it’s in the openHAB documentation, but in my case I never had to. But it may be needed on openhabian.
On my setup (debian and official package) I just added openhab to the dialout and tty groups, and I can choose my device with /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B00193B050D-if00 in the Port configuration of the zigbee dongle binding.

1 Like

Hi dalgwen!

Your comment was important.

I believe that other people will be able to research about zigbee binding in the future and will know that one option is to use “symlink” / <friendly_name> to avoid problems with ttyUSBX interfaces.

Thank you for your attention

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.