Don’t know if it relevant for this topic if not i’ll make a new topic for it
I have a question about which nrjavaserail library I have to use. I’m now using “nrjavaserial-3.12.1.jar” downloaded from nexus repository.
I’m running out of options for my OH2(#814) setup on a Synology NAS (x86) with DSM6.1.
I found out with “dmesg” that the driver version was not compatible and that was fix by jumbotroll (http://www.jadahl.com/synology6.1/ a couple of days back).
I changed the permission settings for /dev/ttyUSB0 to 666.
And still i’m getting this in the log.
[ERROR] [inding.dsmr.internal.device.DSMRPort] - Port /dev/ttyUSB0 does not exists gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273)[230:com.neuronrobotics.nrjavaserial:3.12.1] at org.openhab.binding.dsmr.internal.device.DSMRPort.open(DSMRPort.java:176)[232:org.openhab.binding.dsmr:126.96.36.199702282146] at org.openhab.binding.dsmr.internal.device.DSMRDevice.handleInitializeDSMRDevice(DSMRDevice.java:353)[232:org.openhab.binding.dsmr:188.8.131.52702282146] at org.openhab.binding.dsmr.internal.device.DSMRDevice.handleDeviceState(DSMRDevice.java:228)[232:org.openhab.binding.dsmr:184.108.40.206702282146] at org.openhab.binding.dsmr.internal.device.DSMRDevice.access$1(DSMRDevice.java:215)[232:org.openhab.binding.dsmr:220.127.116.11702282146] at org.openhab.binding.dsmr.internal.device.DSMRDevice$1.run(DSMRDevice.java:193) 232:org.openhab.binding.dsmr:18.104.22.168702282146] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121] at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Setting the log level to DEBUG does not give me any use full information where this problem could be.
I also set the
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0" in the file /runtime/bin/setenv ( a quick solution to find the problem. then i’ve to find the correct spot for this code line)
There for i think its the nrjavaserail library or something else on my system but i can’t think of anything else what to check or change.
I made the openhab2 users part of the root group so I can rule out that permissions are the problem. I set these back if I got it to work.
I hope that someone has any idea what to do next.