Hersfeld
(Jans)
September 9, 2021, 11:07am
1
Platform information:
Hardware: VM: 1 CPU, 1 GB RAM
OS: Rocky Linux
Java Runtime Environment: Zulu Java 11
openHAB version: 3.1.0
Issue of the topic:
I am trying to connect the enocean USB300 gateway via Things > Enocean Bindings > Scan.
Then add the device.
Unfortunately following error occures:
I already added the openhab user to dialout group and uncommented:
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyZWAVE:/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"
in the config file.
Is there anything I need to change in addition?
denominator
(James Bowler)
September 9, 2021, 11:26am
2
Have you tested usb in another pc?
Have you forwarded the USB to the VM?
Did you open the serial connection with another program?
Hersfeld
(Jans)
September 9, 2021, 11:31am
3
I connected the Stick to my normal PC and it showed up.
Forwarded the Stick in Proxmox to the VM and its also shown in the lsusb output. Also the Stick is recognized by openHAB with correct name.
I didnt open the serial connection with another program.
denominator
(James Bowler)
September 9, 2021, 12:01pm
4
Is your path correct?
dmesg | grep tty
It could also be a permissions issue.
Hersfeld
(Jans)
September 9, 2021, 12:14pm
5
-(~:$)-> dmesg | grep tty
[ 0.001000] printk: console [tty0] enabled
[ 3.468665] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
-(~:$)-> ls -la /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Sep 9 12:07 /dev/ttyUSB0
looks good to me
Hersfeld
(Jans)
September 9, 2021, 12:16pm
6
But on the other hand:
-(~:$)-> lsusb
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Shouldn’t it be usb 2-2?
denominator
(James Bowler)
September 9, 2021, 12:33pm
7
Hersfeld:
Shouldn’t it be usb 2-2?
I don’t know.
I don’t have your specific device?
The user openhab is in the dialout group.
id openhab
Hersfeld
(Jans)
September 9, 2021, 12:35pm
8
Yes he is:
-(~:$)-> id openhab
uid=992(openhab) gid=988(openhab) groups=988(openhab),5(tty),18(dialout),63(audio)
Just thought it maybe should 2 - 2 because lsusb returned Bus 002 and Device 002 for the Stick.
Hersfeld
(Jans)
September 13, 2021, 10:19am
9
Any idea how to fix this?
mdillman
(Markus Dillmann)
September 15, 2021, 11:51am
10
This could be related to serial behavior oberserved here : https://github.com/openhab/openhab-core/issues/2119 . Perhaps try to test the library mentioned in the last post to see if that makes any difference ?