Closed danbim closed 10 years ago
We got it working by using the system (Ubuntu) rxtx library. I'm not sure why that solves the problem. After installing librxtx-java and adding /usr/lib/jni to wrapper.java.library.path in tr.iwsn.conf it worked flawlessly.
It's a matter of wsn-device-drivers RXTX bundled binary files. We have solved it and it's working on an Ubuntu 12.04 x64 system. I will do a commit next week. Nevertheless, we still have some issues and with our current configuration it works with 115200bps but not with 38400bps (an exception it's raised when configuring the por). It could be because we are virtualizing the system but please check.
As a workaround pass environment variable -DdisableEmbeddedRXTX
to the JVM when starting the gateway process. This will disable the unpacking of the bundled RXTX JNI libs. In order to make RXTX work without the bundled libs please install librxtx-java
on the host OS.
See (e.g.) https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/894718