MaxCul Binding not working

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

For me removing the baudrate config works, but I actually want that config…

Please download and test the recently updated CUL bindings:

The JARs can be located here:

https://openhab.ci.cloudbees.com/job/openHAB1-Addons/lastSuccessfulBuild/artifact/bundles/

Please report your findings. Thanks!

i am now using homegear.

thanks for your help anyway.

Hi,

I have exactly the same problem and try to fix it since weeks.
Now I have no ideas and hope anyone can help me.

I tried OH 1.8.5 with several versions of bindings and at the end, I read a post, that this seemed to be a problem with a package in the raspbian. A guy told, that he then switched to openhabian and there it works, becaus the problematic package is not used there.

So I also tried to get it work with openhabian (OH2), but without success.

I use a selfmade CUL-Stick (I have two of them, because I want to be sure, there is no hardware Problem) with the 868 Mhz described here: Selbstbau CUL – FHEMWiki
The minicom command V says: V 1.67 nanoCUL868

So I think, the stick should work.

I use the item.cfg ant the sitemap from here: Configuration of MAXCUL and CUL Dongle | technpol
(Changed the TBD with the device ID of my MAX!basic thermostat)

But by enabeling the “Pair” button ant setting the thermostat into the pairing mode, there is no entry at the logfile about a successful pairing…

tail -f /var/log/openhab2/events.log

2017-03-09 00:21:48.578 [ItemCommandEvent          ] - Item 'swPair' received command ON
2017-03-09 00:21:48.589 [ItemStateChangedEvent     ] - swPair changed from OFF to ON
2017-03-09 00:21:58.692 [ItemCommandEvent          ] - Item 'swListen' received command ON
2017-03-09 00:21:58.702 [ItemStateChangedEvent     ] - swListen changed from OFF to ON
2017-03-09 00:22:00.048 [ItemStateChangedEvent     ] - ImageURL changed from http://www.fillmurray.com/640/480 to http://www.placecage.com/c/320/240
2017-03-09 00:22:10.054 [ItemStateChangedEvent     ] - ImageURL changed from http://www.placecage.com/c/320/240 to http://www.fillmurray.com/g/320/240
2017-03-09 00:22:20.044 [ItemStateChangedEvent     ] - Wifi_Level changed from 1 to 3
2017-03-09 00:22:20.055 [ItemStateChangedEvent     ] - ImageURL changed from http://www.fillmurray.com/g/320/240 to http://www.placecage.com/g/640/480
2017-03-09 00:22:20.475 [ItemStateChangedEvent     ] - CurrentDate changed from 2017-03-09T00:21:20.457+0100 to 2017-03-09T00:22:20.457+0100
2017-03-09 00:22:24.779 [ItemStateChangedEvent     ] - Sun_Azimuth changed from 1.24 to 1.58
2017-03-09 00:22:24.794 [ItemStateChangedEvent     ] - Sun_Elevation changed from -42.11 to -42.10
2017-03-09 00:22:25.354 [ItemStateChangedEvent     ] - Moon_Azimuth changed from 242.12 to 242.37
2017-03-09 00:22:25.362 [ItemStateChangedEvent     ] - Moon_Elevation changed from 39.15 to 39.02
2017-03-09 00:22:30.034 [ItemStateChangedEvent     ] - ImageURL changed from http://www.placecage.com/g/640/480 to http://www.placecage.com/c/480/360
2017-03-09 00:22:40.052 [ItemStateChangedEvent     ] - ImageURL changed from http://www.placecage.com/c/480/360 to http://www.placecage.com/g/320/240
2017-03-09 00:22:43.772 [ItemCommandEvent          ] - Item 'swListen' received command OFF
2017-03-09 00:22:43.784 [ItemStateChangedEvent     ] - swListen changed from ON to OFF
2017-03-09 00:22:50.055 [ItemStateChangedEvent     ] - ImageURL changed from http://www.placecage.com/g/320/240 to http://www.fillmurray.com/640/480
2017-03-09 00:23:00.065 [ItemStateChangedEvent     ] - ImageURL changed from http://www.fillmurray.com/640/480 to http://www.placecage.com/g/480/360
2017-03-09 00:23:00.074 [ItemStateChangedEvent     ] - Wifi_Level changed from 3 to 2
2017-03-09 00:23:10.045 [ItemStateChangedEvent     ] - ImageURL changed from http://www.placecage.com/g/480/360 to http://www.fillmurray.com/g/640/480
2017-03-09 00:23:20.043 [ItemStateChangedEvent     ] - Wifi_Level changed from 2 to 3

I did a

feature:install openhab-runtime-compat1x

openhab> feature:list | grep compat
shell-compat                              | 4.0.8            |          | Uninstalled | standard-4.0.8              | Karaf Shell Compatibility
openhab-runtime-compat1x                  | 2.0.0            | x        | Started     | distro-2.0.0                | Compatibility layer for openHAB 1 add-ons

and

feature:install openhab-transport-cul1

openhab> feature:list | grep cul
openhab-transport-cul1                    | 1.9.0            | x        | Started     | addons-2.0.0                | CUL Transport

So now, I have no Ideas, how to figure out, what is missing/ not working.

I hope anyone can help me.

Thanks