I have a fresh install of openhab installed on a raspberry pi 3. When I attempt to send a upb command I receive this error message
org.openhab.binding.upb:1.13.0 (210)[org.openhab.binding.upb.binding(12)] : The activate method has thrown an exception
java.lang.RuntimeException: Failed to open serial port.
I have verified that the openhab user is in the appropriate groups to use serial device
pi@raspberrypi:/var/log/openhab2 $ groups openhab
openhab : openhab tty dialout audio bluetooth
pi@raspberrypi:/dev $ ls -l | grep USB
crw-rw---- 1 root dialout 188, 0 Oct 5 12:25 ttyUSB0
pi@raspberrypi:/dev/serial/by-id $ ls -l usb-Keyspan__a_division_of_InnoSys_Inc._Keyspan_USA-19H-if00-port0
lrwxrwxrwx 1 root root 13 Oct 5 12:25 usb-Keyspan__a_division_of_InnoSys_Inc._Keyspan_USA-19H-if00-port0 -> …/…/ttyUSB0
pi@raspberrypi:/dev/serial/by-id $
I have also added the extra java options for serial device
/etc/default/openhab2 file
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/serial/by-id/usb-Keyspan__a_division_of_InnoSys_Inc._Keyspan_USA-19H-if00-port0:/dev/ttyUSB1:/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"
UPB binding config file
/etc/openhab2/services/upb.cfg
The UPB modem port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
/dev/ttyUSB0 for Linux (required)
port=/dev/serial/by-id/usb-Keyspan__a_division_of_InnoSys_Inc._Keyspan_USA-19H-if00-port0
UPB Netword ID (required, must be a value between 0 and 255, inclusive)
network=2