[Solved] How to define a serial port on raspberry for openhab2 for my razberry zwave binding?

Hi Frerk,

I have defined the static ttyUSB_ZigBee for my ZigBee dongle by udev.
How can I configure this as the serial port at openHAB?

PaperUI shows just the dynamic types ttyUSB0/1/2 as config options for the thing. The other two dongles are CUL. These static serial ports I configured by homegear conf files (Max and Homematic).

Cant‘ find any hint in the community regarding the ZigBee dongle (Qivicon).

Welf

I’m using OpenHABian now (which is OpenHAB preset on the Raspbian OS).
In
/etc/default/openhab2
there is a line (or should be) like
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"
Just enumerate your serial ports, adding those that you create by usb dev rules.
In my experience it is better to prefix the name with ‘tty’.
So /dev/ttyZigBee would be a good candidate.

HTH,

Frerk

I added the line

EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB_ZigBee:/dev/ttyUSB_MAX:/dev/ttyUSB_Homematic"

made even a reboot but still just get the options ttyUSB0, ttyUSB1, ttyUSB2
to configure the ZigBee dongle as thing in PaperUI

I‘m using OpenHABian too :slight_smile:

With the command
“udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0 )”
You get all parameters you need for your udev rule.

Alternative:

usb-devices

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=10c4 ProdID=ea60 Rev=01.00
S:  Manufacturer=Silicon Labs
S:  Product=CP2104 USB to UART Bridge Controller
S:  SerialNumber=00799F10
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=cp210x

More Alternatives are: use “lsusb” oder “dmesg | grep USB”

You need the VendorId, ProdId and sometimes the SerialNumber for your udev rule.

Here is the rule for one of my JeeLink devices:

JeeLink v3 868 Mhz

SUBSYSTEMS=="usb", ATTRS{serial}=="AH02EWYA", ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", OWNER="root", GROUP="users", MODE="0664", SYMLINK+="ttyUSB_jeelink"

I hope this helps for ZigBee which I do not own.

Frerk