Page 1 of 1

2 RFLinks transcievers on 1 Raspberry

Posted: Friday 24 August 2018 13:39
by EddyG
I want to use 2 RFLinks on 1 Rapsberry with Domoticz.
1 RFLink on 433,92MHz and the other on 433.42 MHz (Somfy RTS)
I tried to use this: https://www.domoticz.com/wiki/Assign_fi ... o_USB_port
But there is no difference between the two RFLinks so assign an USB devicename is not possible.
Is there an otherway to ensure that the same RFLink is always assigned to the right USB port?

Re: 2 RFLinks transcievers on 1 Raspberry

Posted: Sunday 26 August 2018 19:52
by SweetPants
What does lsusb show?
Have a look at https://superuser.com/questions/360336/ ... s-on-linux

Re: 2 RFLinks transcievers on 1 Raspberry

Posted: Monday 27 August 2018 9:53
by EddyG
I solved my problem. The only disadvantage of my solution is that when I unplug USB devices, I have to remember which device was connected to which port. And plugging in the hardware devices has to be on the same fysical USB port.
This is my solution in the file /etc/udev/rules.d/10-usb-serial.rules

Code: Select all

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{devpath}=="1.3", SYMLINK+="ttyUSB_P1"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.2", SYMLINK+="ttyUSB_RFX"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.4", SYMLINK+="ttyUSB_SOM"
The differance between the 2 RFLinks is in 'devpath'
You can find those with 'lsusb -t'
Don't forget to issue a 'sudo udevadm control --reload' command after you change the rules file.
Using 'ENV{ID_PATH}' is also an solution.
I hoped that there was a more flexible solution.