Hi,
Need help. Trying to get RFXCOM to work. The antenna was moved from Domoticz to openHAB. This is the last addon from Domoticz to openHAB, and it is giving me headaches.
My setup:
RFXCOM connected:
[10:00:59] openhabian@openhab:~/scripts$ ll /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Jan 7 08:32 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jan 7 08:32 /dev/ttyUSB1
lrwxrwxrwx 1 root root 7 Jan 7 08:32 /dev/ttyUSB_P1 -> ttyUSB1
lrwxrwxrwx 1 root root 7 Jan 7 08:32 /dev/ttyUSB_RFX -> ttyUSB0
Reason to config like this, is that if USBx order changes during reboot, the linked devices represent the correct device due to serialnumber scan. Setup:
[10:08:05] openhabian@openhab:/etc/udev/rules.d$ ll
total 16K
drwxr-xr-x 2 root root 4.0K Jan 4 09:43 ./
drwxr-xr-x 4 root root 4.0K Dec 28 12:13 ../
-rw-r--r-- 1 root root 237 Jan 4 09:43 10-usb-serial.rules
-rw-r--r-- 1 root root 1.1K Nov 27 2017 99-com.rules
[10:08:06] openhabian@openhab:/etc/udev/rules.d$ cat 10-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="AI1SQ0E9", SYMLINK+="ttyUSB_P1"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A11SEKAG", SYMLINK+="ttyUSB_RFX"
The /dev/ttyUSB_RFXCOM is listening and responding:
[09:50:59] openhabian@openhab:~/scripts$ sudo -u openhab stty -a -F /dev/ttyUSB_RFX
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc
Running:
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 4.19.75-v7l+
Platform = Raspberry Pi 4 Model B Rev 1.2
openHAB 2.5.0-1 (Release Build)
Bridge config:
Bridge rfxcom:rfxbridge:usb_rfx [ serialPort="/dev/ttyUSB_RFX" ] {
}
Now how do I discover things connected to the RFXCOM antenna ?
Using the blue+ (Searching for things) …NOTHING.
Increased the debuglevel DEBUG for org.openhab.binding.rfxcom in Karaf log.
No message that helps or even mentions RFX log messages.
Searched the community and the rest of the internet for clues or (even better) solutions.
A lot of posts but nothing seems to help me
Getting somewhat frustrated…hope anybody can help.
Thx in advance