Hey there guys,
after hours of trying to get max-cul working and i don’t know why it is not working, i need your help.
So, i do now have 2 CULs from busware.de. The first handles Intertechno stuff and the second one is supposed to do MAX stuff.
I am using openhab 1.8.2, the intertechno cul works great. But the maxcul fails with following error:
Cannot open CUL device org.openhab.io.transport.cul.CULDeviceException: gnu.io.UnsupportedCommOperationException: Invalid Parameter at org.openhab.io.transport.cul.internal.CULSerialHandlerImpl.openHardware(CULSerialHandlerImpl.java:273) ~[na:na] at org.openhab.io.transport.cul.internal.AbstractCULHandler.open(AbstractCULHandler.java:154) ~[na:na] at org.openhab.io.transport.cul.CULManager.createNewHandler(CULManager.java:170) ~[bundlefile:na] at org.openhab.io.transport.cul.CULManager.getOpenCULHandler(CULManager.java:89) ~[bundlefile:na] at org.openhab.binding.maxcul.internal.MaxCulBinding.setupDevice(MaxCulBinding.java:286) [bundlefile:na] at org.openhab.binding.maxcul.internal.MaxCulBinding.updated(MaxCulBinding.java:267) [bundlefile:na] at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na] at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na] Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:212) ~[na:na] at org.openhab.io.transport.cul.internal.CULSerialHandlerImpl.openHardware(CULSerialHandlerImpl.java:258) ~[na:na] ... 7 common frames omitted
My configuration looks like this:
`################################ CUL INTERTECHNO #######################################
culintertechno:device=serial:/dev/ttyACM1
################################ Max!CUL Binding ###########################################
cul:device=/dev/ttyACM0
maxcul:device=serial:/dev/ttyACM0
maxcul:refreshInterval=60000
maxcul:baudrate=38400
maxcul:parity=0
`
i also tried to switch MAX to ttyACM2 and cul to ACM0. but that didnt solve the problem neither.
PS: permissions are correct and i also added these lines to the start.sh file
-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM1:/dev/ttyACM0
-Djava.library.path=/usr/lib/jni
i dont know what to do now…
regards
dominik