PINE64
OpenHAB And Zwave - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+---- Forum: openHAB (https://forum.pine64.org/forumdisplay.php?fid=26)
+---- Thread: OpenHAB And Zwave (/showthread.php?tid=1875)

Pages: 1 2


OpenHAB And Zwave - FrenchFrog - 07-27-2016

I saw on the download page that ZWave is NOT yet supported. Unfortunately, I plan to use PINE64 to mainly control z-wave devices. Do you know when we can expect to get a release compatible with z-wave? Do I need to wait in order to get a new version of the OS image or it will be upgraded afterwards from the version currently available without requiring a full re-installation.

Cédric


RE: OpenHAB And Zwave - kai - 07-27-2016

If you need Z-Wave and you have a USB dongle, you can simply install the Z-Wave binding through the Paper UI. You might also have to add the serial port to the start scripts (see here).
With "not supported", the wiki merely means that it is not pre-configured to work with the Pine-ZWave-module, simply because I don't have one yet.


RE: OpenHAB And Zwave - B34N - 07-28-2016

(07-27-2016, 09:46 AM)kai Wrote: With "not supported", the wiki merely means that it is not pre-configured to work with the Pine-ZWave-module, simply because I don't have one yet.

I too am awaiting my Pine-ZWave-module and my understanding is that they will ship soon.

I purchased the Pine 64 with z-wave to replace my current OpenHAB setup running on a RPi2 with an Aeon stick. Assuming there are no issues with the Pine-ZWave-module, do you feel that OpenHAB on Pine 64 is ready to replace a my current setup?

I have both the 2GB and 1GB Pine. Would you agree that there isn't much benefit of using the 2GB for OpenHAB?

Thank you!


RE: OpenHAB And Zwave - avanderbergh - 09-09-2016

Hi,

Now that these have shipped, is there any update? I've received mine and am trying to set it up, so an update would be great! Thanks!


RE: OpenHAB And Zwave - revoman - 09-12-2016

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



RE: OpenHAB And Zwave - Coda - 09-13-2016

(09-09-2016, 10:41 AM)avanderbergh Wrote: Hi,

Now that these have shipped, is there any update? I've received mine and am trying to set it up, so an update would be great! Thanks!

I'd like the answer to this as well.  I've been struggling to get it to work.


RE: OpenHAB And Zwave - martinayotte - 09-13-2016

The above log shows "can't load IA 32-bit .so on a ARM-bit platform", this means that libNRJavaSerial.so isn't compiled for ARM.

Someone would have to compile it from sources, some were found here :

https://github.com/NeuronRobotics/nrjavaserial


RE: OpenHAB And Zwave - revoman - 09-13-2016

(09-13-2016, 10:13 AM)martinayotte Wrote: The above log shows "can't load IA 32-bit .so on a ARM-bit platform", this means that libNRJavaSerial.so isn't compiled for ARM.

Someone would have to compile it from sources, some were found here :

https://github.com/NeuronRobotics/nrjavaserial

Thanks, I'll go compile that for arm and post my results.  

I read on another post that the ZWave module communicates on /dev/ttyS2, can anyone confirm or refute this?


RE: OpenHAB And Zwave - martinayotte - 09-13-2016

According to the picture from https://cdn.shopify.com/s/files/1/1013/5466/products/PMZW01_Zwave_Module_Rev1-2_large.jpg?v=1455062700
it is connected to the EULA ten last pins, therefore, it is using PB8/PB9 as UART0, so the same as the debug console connector, so, /dev/ttyS0
(I don't know if there will be conflict with the console, I don't own this ZWave board.)


RE: OpenHAB And Zwave - revoman - 09-13-2016

Interesting. What I received looked vastly different.  more like the image at this link.  It also appears to connect to the Pi2 bus

https://www.pine64.org/?product=pine64-zwave-module-us-version