Hi,
I had a fully working openhab2 setup with RFXcom and MySensors bindings till this morning. (Intel NUC hardware running Ubuntu 16.04)
This morning I disconnected the RFXcom transciever briefly to do some tests with rfxManager on a different PC. After reconnecting the RFXcom device and restarting openhab, openhab seems to have lost the ability to communicate with the serial port of the RFXcom device. The MySensors serial gateway continues to work properly.
Below are the details of the setup. Anyone have any ideas ? How can I further troubleshoot this problem ?
This is Karaf’s log output
11:28:06.902 [DEBUG] [ng.rfxcom.handler.RFXComBridgeHandler] - Checking RFXCOM transceiver connection, thing status = OFFLINE
11:28:06.912 [DEBUG] [ng.rfxcom.handler.RFXComBridgeHandler] - Connecting to RFXCOM transceiver
11:28:06.918 [DEBUG] [ernal.connector.RFXComSerialConnector] - Disconnecting
11:28:06.923 [DEBUG] [ernal.connector.RFXComSerialConnector] - Closed
11:28:06.929 [ERROR] [ng.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed
gnu.io.NoSuchPortException: null
at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273) [25:com.neuronrobotics.nrjavaserial:3.12.0.OH]
at org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector.connect(RFXComSerialConnector.java:47) [217:org.openhab.binding.rfxcom:2.2.0]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler.connect(RFXComBridgeHandler.java:180) [217:org.openhab.binding.rfxcom:2.2.0]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler.access$8(RFXComBridgeHandler.java:160) [217:org.openhab.binding.rfxcom:2.2.0]
at org.openhab.binding.rfxcom.handler.RFXComBridgeHandler$1.run(RFXComBridgeHandler.java:153) [217:org.openhab.binding.rfxcom:2.2.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
The RFXcom device is on /dev/ttyUSB0
, this is the RFXcom thing setup
Bridge rfxcom:bridge:238adf67 [ serialPort="/dev/ttyUSB0", setMode="0D00000303531C02002400000000" ] { temperaturehumidity bureau_temperatuur [ deviceId="5377", subType="TH1"] temperature buiten_gevelZuid_temperatuur [ deviceId="20225", subType="TEMP2"] temperaturehumidity buiten_gevelNoord_temperatuur [ deviceId="33796", subType="TH1"] temperaturehumidity badkamer_temperatuur [ deviceId="62212", subType="TH1"] temperaturehumidity garage_temperatuur [ deviceId="2049", subType="TH11"] temperaturehumidity zolder_kamer_temperatuur [ deviceId="24577", subType="TH11"] rain regen [ deviceId="16385", subType="RAIN7"] wind wind [ deviceId="26113", subType="WIND7"] }
Here’s the output of some commands I used to troubleshoot the problem
$ dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 23.800447] 8086228A:00: ttyS4 at MMIO 0x81420000 (irq = 39, base_baud = 2764800) is a 16550A
[ 23.800803] 8086228A:01: ttyS5 at MMIO 0x8141e000 (irq = 40, base_baud = 2764800) is a 16550A
[ 24.714061] cdc_acm 1-4:1.0: ttyACM0: USB ACM device
[ 24.720857] usb 1-3: FTDI USB Serial Device converter now attached to ttyUSB0
$ sudo -u openhab groups
openhab tty dialout
$ ls -al /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Mar 11 12:09 /dev/ttyUSB0
Running sudo cat /dev/ttyUSB0
produces no output, not even when typing Enter or random characters.
I’ve tryed restart the openhab service and even restarted the entire server. Nothing helps.