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

i got it solved ! - Razberry is recognized by openhab2.


2016-01-29 23:24:45.232 [INFO ] [ve.internal.protocol.ZWaveController] - Starting Z-Wave controller
2016-01-29 23:24:45.248 [INFO ] [ve.internal.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2016-01-29 23:24:45.258 [INFO ] [ve.internal.protocol.ZWaveController] - Connecting to serial port /dev/ttyAMA0
2016-01-29 23:24:46.161 [INFO ] [ve.internal.protocol.ZWaveController] - Serial port is initialized

in file “setenv” at /opt/openhab/runtime/karaf/bin
you need to add the parameter -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0
just to make sure that karaf is aware on the JVM parameter.

for me those are now:

export JAVA_OPTS="${JAVA_OPTS}
-Dopenhab.home=${OPENHAB_HOME}
-Dopenhab.conf=${OPENHAB_CONF}
-Dopenhab.runtime=${OPENHAB_RUNTIME}
-Dopenhab.userdata=${OPENHAB_USERDATA}
-Dorg.osgi.service.http.port=${HTTP_PORT}
-Dorg.osgi.service.http.port.secure=${HTTPS_PORT}
-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0"