Yesterday, I downloaded openHABian 1.6.4 to try on my RaspberryPi 3/Razberry setup, and encountered a problem the Zwave Controller appearing to be offline. ‘No probs’ I thought, I just need to run openHAbian-config and configure the serial port. I did this, and rebooted, but the ZWave controller was still offline. Tried a couple more times thorough the config gui to no avail. In the end I had to manually edit the ‘config.txt’ file to add the following lines:
enable_uart=1
dtoverlay=miniuart-bt
Just thought I’d highlight the problem in case anybody else was stuck in this loop.
Hi Markus. No, I did both in openHabian-config, hence me starting this thread. I did question my sanity a couple of times, and re-ran the openHabian-config scripts, but same result. I just thought that I’d highlight my issues in case somebody else thought that they were going mad too
the same for me. i have update a 3.0.1 to 3.0.2 and serial port it’s disconnected for openhab but it’s ok. i ve made a fresh install with 3.0.2 and same problem, serial it’s disconnected. Downgrade to 3.0.1. and now it’s ok, zwave stick and arduino are see by openhab.
it’s not ok for me, the file it’s in /boot/config.txt, right?
bye
there is something strange in openhab serial after update to 3.0.2. it’s impossible to have zwave working and the log say
2021-05-09 14:44:30.164 [INFO ] [zwave.handler.ZWaveControllerHandler] - Attempting to add listener when controller is null
2021-05-09 14:44:30.484 [INFO ] [zwave.handler.ZWaveControllerHandler] - Attempting to add listener when controller is null
this is a fresh istallation of openhabian and i have an arduino (that 's ok) and a zwave stick.
if i plug zwave stick in other raspberry with openhabian there aren’t problems.
thank
Is one of the Raspberries a RPi4? They have USB3 ports that do not work well with some older sticks that violate the USB standard. They need to be plugged in to a USB2 hub to the Pi4.
i don’t know what kind of problem can made this.
this is my terminal
openhabian@openhabian:~ $ lsusb
Bus 001 Device 004: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 005: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM)
Bus 001 Device 006: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
but openhabian say that zwave it’s offline. the port it’s correct.
What is the output of dmesg | grep tty ? That shows the devices recognized by the OS. I have a HUSBZB1 stick which is a Zigbee & Z-Wave north American stick. In my cacase /dev/ttyUSB0 is Z-Wave and /dev/ttyUSB1 is Zigbee.
pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 10c4:8a2a Cygnal Integrated Products, Inc.
Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ dmesg | grep tty
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.001174] printk: console [tty1] enabled
[ 3.141296] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
[ 7.475260] usb 1-1.1.3: cp210x converter now attached to ttyUSB0
[ 7.482694] usb 1-1.1.3: cp210x converter now attached to ttyUSB1
In all my years working with Unix and Linux systems I have never needed to use device aliases. I do not think the serial rules normally need customization any more. The serial addon automatically detects available ports.
excuse but i don’t understad, sorry, the serial rules as necessary beacouse at the restart of raspberry one device can change the port. or not.
the documentation says:
* When using more than one USB-Serial converters, it may happen that the `/dev/ttyUSB0` device is named `/dev/ttyUSB1` after a reboot. To prevent this problem, alias names can be assigned to serial devices by adding them to `/etc/udev/rules.d/99-com.rules`. Example:
i don’t have other costumization. i’m really worried, i don’t know now how can resolve my issues… i have try to use socat but the port of socat it’s unavailable for openhab but it’s available in /dev.
thank you