OpenHAB And Zwave
#5
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)

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
  Reply


Messages In This Thread
OpenHAB And Zwave - by FrenchFrog - 07-27-2016, 09:20 AM
RE: OpenHAB And Zwave - by kai - 07-27-2016, 09:46 AM
RE: OpenHAB And Zwave - by B34N - 07-28-2016, 08:05 AM
RE: OpenHAB And Zwave - by avanderbergh - 09-09-2016, 10:41 AM
RE: OpenHAB And Zwave - by Coda - 09-13-2016, 09:46 AM
RE: OpenHAB And Zwave - by revoman - 09-12-2016, 09:51 PM
RE: OpenHAB And Zwave - by martinayotte - 09-13-2016, 10:13 AM
RE: OpenHAB And Zwave - by revoman - 09-13-2016, 11:18 AM
RE: OpenHAB And Zwave - by martinayotte - 09-13-2016, 11:36 AM
RE: OpenHAB And Zwave - by eric - 09-13-2016, 02:09 PM
RE: OpenHAB And Zwave - by bonterra - 09-13-2016, 11:17 PM
RE: OpenHAB And Zwave - by revoman - 09-13-2016, 02:07 PM
RE: OpenHAB And Zwave - by revoman - 09-13-2016, 09:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine A64 + OpenHAB + Sonoff-pow: Would it Work? Bob123456789 6 12,034 05-31-2017, 02:54 PM
Last Post: Bob123456789
  openHAB Packaging for the Pine64 kai 19 36,475 02-21-2017, 07:19 AM
Last Post: BatoXan
  Keeping Openhab current socken23 4 8,684 01-13-2017, 12:51 AM
Last Post: swinging
  zwave module not available eric 4 9,097 11-04-2016, 10:24 PM
Last Post: stubbs
  OpenHAB Up - Getting My Bearings - Questions doundounba 4 7,551 07-08-2016, 12:38 AM
Last Post: av1024
Information [solved] Openhab not starting socken23 10 16,016 06-21-2016, 12:50 PM
Last Post: Luke
  openHAB just up on Pine64 :-) tllim 2 8,473 05-04-2016, 05:27 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 6 Guest(s)