CULv3 868MHz and CUL Transport Error: Can't Open CUL

Hello,

I have several wireless radiator valves around the house that I have had intermittently working with the FHT binding and CUL transport. Getting the CUL transport to work was very hit and miss. Sometimes it would start correctly, other times it would output the “can’t open CUL” error but checking the log would show that the binding was, in fact, working. Other times it would simple not work. Yesterday I rebooted the Ubuntu 16.10 VM that OpenHAB is running in and since then it has been impossible to get the CUL transport to work.

I have OpenHAB 1.8.3 running in an Ubuntu 16.10 amd64 VM on ESXi 6 build 4510822. The CUL device is a CC1101-USB-Lite 868MHz (CULv3) from busware.de and it appears in the VM as /dev/ttyACM0. I’ve added the openhab user to dialout group. The config in openhab.cfg is:

fs20:device=serial:/dev/ttyACM0
fs20:baudrate=38400
fs20:parity=NONE
fht:housecode=6178
fht:device=serial:/dev/ttyACM0
fht:baudrate=38400
fht:parity=NONE

Connecting to the CULv3 using screen with the command “sudo screen /dev/ttyACM0 38400” showed it receiving data.

I’ve installed the latest snapshot version of the CUL transport and FHT and FS20 addons from cloudbees:

user@openhab1:/usr/share/openhab/addons$ ls -lh
total 4.3M
-rw-r--r-- 1 root root  12K Jun  1 14:52 org.openhab.action.telegram-1.9.0-SNAPSHOT.jar
-rw-r--r-- 1 root root  63K Aug 27 18:57 org.openhab.binding.exec-1.8.3.jar
-rw-r--r-- 1 root root  29K May 31 17:33 org.openhab.binding.fht-1.9.0-SNAPSHOT.jar
-rw-r--r-- 1 root root  15K May 31 15:37 org.openhab.binding.fs20-1.9.0-SNAPSHOT.jar
-rw-r--r-- 1 root root  30K Jun  3 17:18 org.openhab.binding.hue-1.9.0-SNAPSHOT.jar
-rw-r--r-- 1 root root  11K May 22 20:30 org.openhab.binding.networkhealth-1.8.3.jar
-rw-r--r-- 1 root root  43K May 22 20:30 org.openhab.binding.onkyo-1.8.3.jar
-rw-r--r-- 1 root root 165K May 22 20:30 org.openhab.binding.rfxcom-1.8.3.jar
-rw-r--r-- 1 root root 317K May 22 20:29 org.openhab.binding.weather-1.8.3.jar
-rw-r--r-- 1 root root 8.1K May 22 20:30 org.openhab.binding.wol-1.8.3.jar
-rw-r--r-- 1 root root 1.2M May 22 20:31 org.openhab.binding.zwave-1.8.3.jar
-rwxr-xr-x 1 root root 1.1M Jun 20  2014 org.openhab.io.habmin-1.5.0-SNAPSHOT.jar
-rw-r--r-- 1 root root  34K May 31 15:26 org.openhab.io.transport.cul-1.9.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 487K May 22 20:29 org.openhab.io.transport.serial-1.8.3.jar
-rw-r--r-- 1 root root 814K May 22 20:37 org.openhab.persistence.mysql-1.8.3.jar
-rw-r--r-- 1 root root  126 May 22 20:44 README

The error I always see in the logs is:

21:38:57.354 [ERROR] [.o.i.t.cul.CULLifecycleManager:87   ] - Can't open CUL
org.openhab.io.transport.cul.CULDeviceException: gnu.io.NoSuchPortException
        at org.openhab.io.transport.cul.internal.serial.CULSerialHandlerImpl.openHardware(CULSerialHandlerImpl.java:100) ~[bundlefile:na]
        at org.openhab.io.transport.cul.internal.AbstractCULHandler.open(AbstractCULHandler.java:139) ~[bundlefile:na]
        at org.openhab.io.transport.cul.internal.CULManager.createNewHandler(CULManager.java:149) ~[bundlefile:na]
        at org.openhab.io.transport.cul.internal.CULManager.getOpenCULHandler(CULManager.java:84) ~[bundlefile:na]
        at org.openhab.io.transport.cul.CULLifecycleManager.open(CULLifecycleManager.java:85) [bundlefile:na]
        at org.openhab.io.transport.cul.CULLifecycleManager.config(CULLifecycleManager.java:74) [bundlefile:na]
        at org.openhab.binding.fht.internal.FHTBinding.updated(FHTBinding.java:297) [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.NoSuchPortException: null
        at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273) ~[nrjavaserial-3.9.3.jar:na]
        at org.openhab.io.transport.cul.internal.serial.CULSerialHandlerImpl.openHardware(CULSerialHandlerImpl.java:78) ~[bundlefile:na]
        ... 8 common frames omitted

I’ve read other posts that state that the problem has been solved either by running OpenHAB as root or by installing a newer version of the serial transport. However, I can’t find how to run OpenHAB as root in Ubuntu nor can I find a later version of the serial transport.

Can anyone suggest how I can fix the above error?

Thanks,

Steve.