RFXCOM Binding in Raspberry

Hello,

I haven reading quite few post about RFXCOM binding in RPi. I have now the latest RPi 3 and a new RFXtrc433E and openhab beta3 running.

I connected RFXtrc433E to USB port and with dmesg have following:

[266248.138962] usb 1-1.5: Product: RFXtrx433
[266248.138974] usb 1-1.5: Manufacturer: RFXCOM
[266248.138986] usb 1-1.5: SerialNumber: A1BIC6X

Then in paper UI i tryed to manually add RFXtrx433E USB 433.92MHz Transceiver. I added the SerialNumber A1BIC6X . Following is then in logs:

2016-05-26 19:31:05.307 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing ‘rfxcom:RFXtrx433:75611a3d’ has been added.
2016-05-26 19:31:05.380 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘rfxcom:RFXtrx433:75611a3d’ changed from UNINITIALIZED to INITIALIZING
2016-05-26 19:31:05.394 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘rfxcom:RFXtrx433:75611a3d’ changed from INITIALIZING to OFFLINE
2016-05-26 19:31:05.416 [INFO ] [ernal.connector.RFXComJD2XXConnector] - Connecting to RFXCOM device ‘A1BIC6X’.
2016-05-26 19:31:05.421 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: device not found (2)
2016-05-26 19:31:05.626 [ERROR] [rnal.discovery.RFXComBridgeDiscovery] - Error occured during discovery
java.io.IOException: device not found (2)
at jd2xx.JD2XX.listDevices(Native Method)
at jd2xx.JD2XX.listDevicesByDescription(JD2XX.java:826)
at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.discoverRfxcom(RFXComBridgeDiscovery.java:90)
at org.openhab.binding.rfxcom.internal.discovery.RFXComBridgeDiscovery.startScan(RFXComBridgeDiscovery.java:67)
at org.eclipse.smarthome.config.discovery.AbstractDiscoveryService.startScan(AbstractDiscoveryService.java:199)
at org.eclipse.smarthome.config.discovery.internal.DiscoveryServiceRegistryImpl.startScan(DiscoveryServiceRegistryImpl.java:336)

openahb user that is used to run the service should have access rights to /dev/ttyUSB0 where RFXtrc433E is.

IS there something that I should try?

For few days I have been trying to do this with no success. I have proper rights:

openhab@raspberrypi:~ $ group
-bash: group: command not found
openhab@raspberrypi:~ $ groups
openhab dialout
openhab@raspberrypi:~ $ whoami
openhab
openhab@raspberrypi:~ $ groups
openhab dialout
openhab@raspberrypi:~ $ ls -la /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 May 28 12:12 /dev/ttyUSB0

I have tryed all the possibiliteis in Paper UI → No luck.

Tryed this in things filed:

Bridge rfxcom:bridge:usbrfxx[serialPort=“/dev/ttyUSB0”]

After this In log I have following.

2016-05-28 16:03:09.912 [INFO ] [me.event.ThingStatusInfoChangedEvent] - ‘rfxcom:bridge:usbrfxx’ changed from INITIALIZING to OFFLINE
2016-05-28 16:03:11.910 [ERROR] [g.rfxcom.handler.RFXComBridgeHandler] - Connection to RFXCOM transceiver failed: org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector

And after I try to discover

2016-05-28 16:04:07.032 [ERROR] [rnal.discovery.RFXComBridgeDiscovery] - Error occured during discovery
java.io.IOException: device not found (2)
at jd2xx.JD2XX.listDevices(Native Method)
at jd2xx.JD2XX.listDevicesByDescription(JD2XX.java:826)

Help would be really appreciated…

I installed a new Thinkpad Server TS140 server with ubuntu 14.04 and now openhab will find the rfxcom just fine…

So something is wrong with the raspberry usb identification.

Hi,

i bring it to work with help of the following
I created “ttyUSB9999” as a symlink for the RFXtrx433: see https://github.com/openhab/openhab/wiki/symlinks

In openhab.cfg :
rfxcom:serialPort=/dev/ttyUSB9999

Good luck