I just received my Z-Wave module (US version). What port does the zwave module bind to? and I assume by the size that it fits on top of the Pi2 headers. I've tried to map the controller to /dev/ttyS0, /dev/ttyS1, /dev/ttyS2, /dev/ttyS3 and /dev/ttyS4 with no success, all I get is "Port /dev/ttyS0 does not exist".
I have also tried adding
-Dgnu.io.rxtx.SerialPorts=/dev/ttyS2:/dev/ttyS0:/dev/ttyS1:/dev/ttyS3:/dev/ttyS4
to the runtime/karaf/bin/setenv file as a JAVA_OPTS.
Here are the groups my user has been granted:
openhab@openhab:~$ groups
openhab tty dialout sudo plugdev
Ok, Here are some snippets from my logs by starting OpenHAB with /opt/openhab/start_debug.sh
(when trying to access /dev/ttyS2)
I have also tried adding
-Dgnu.io.rxtx.SerialPorts=/dev/ttyS2:/dev/ttyS0:/dev/ttyS1:/dev/ttyS3:/dev/ttyS4
to the runtime/karaf/bin/setenv file as a JAVA_OPTS.
Here are the groups my user has been granted:
openhab@openhab:~$ groups
openhab tty dialout sudo plugdev
Ok, Here are some snippets from my logs by starting OpenHAB with /opt/openhab/start_debug.sh
(when trying to access /dev/ttyS2)
Code:
21:58:10.322 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyS2'
java.lang.UnsatisfiedLinkError: /opt/openhab/userdata/tmp/libNRJavaSerial_openhab_0/libNRJavaSerial.so: /opt/openhab/userdata/tmp/libNRJavaSerial_openhab_0/libNRJavaSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at gnu.io.NativeResource.loadResource(NativeResource.java:136)
at gnu.io.NativeResource.inJarLoad(NativeResource.java:40)
at gnu.io.NativeResource.loadLib(NativeResource.java:60)
at gnu.io.NativeResource.load(NativeResource.java:28)
at gnu.io.SerialManager.<init>(SerialManager.java:10)
at gnu.io.SerialManager.getInstance(SerialManager.java:16)
at gnu.io.RXTXCommDriver.<clinit>(RXTXCommDriver.java:87)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at org.openhab.binding.zwave.handler.ZWaveSerialHandler.initialize(ZWaveSerialHandler.java:79)
at org.eclipse.smarthome.core.thing.internal.ThingManager$7$1.call(ThingManager.java:687)
at org.eclipse.smarthome.core.thing.internal.ThingManager$7$1.call(ThingManager.java:1)
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:170)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.UnsatisfiedLinkError: /opt/openhab/userdata/tmp/libNRJavaSerial_openhab_0/libNRJavaSerial.so: /opt/openhab/userdata/tmp/libNRJavaSerial_openhab_0/libNRJavaSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at gnu.io.NativeResource.loadResource(NativeResource.java:136)
at gnu.io.NativeResource.inJarLoad(NativeResource.java:40)
at gnu.io.NativeResource.loadLib(NativeResource.java:60)
at gnu.io.NativeResource.load(NativeResource.java:28)
at gnu.io.SerialManager.<init>(SerialManager.java:10)
at gnu.io.SerialManager.getInstance(SerialManager.java:16)
at gnu.io.RXTXCommDriver.<clinit>(RXTXCommDriver.java:87)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at org.openhab.binding.zwave.handler.ZWaveSerialHandler.initialize(ZWaveSerialHandler.java:79)
at org.eclipse.smarthome.core.thing.internal.ThingManager$7$1.call(ThingManager.java:687)
at org.eclipse.smarthome.core.thing.internal.ThingManager$7$1.call(ThingManager.java:1)
at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:170)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.ExceptionInInitializerError thrown while loading gnu.io.RXTXCommDriver
java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver
21:58:10.611 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'zwave:serial_zstick:f7349f3d' changed from OFFLINE to OFFLINE (COMMUNICATION_ERROR): Serial Error: Port /dev/ttyS2 does not exist