2 RFLinks transcievers on 1 Raspberry

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

2 RFLinks transcievers on 1 Raspberry

Post 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?
SweetPants

Re: 2 RFLinks transcievers on 1 Raspberry

Post by SweetPants »

What does lsusb show?
Have a look at https://superuser.com/questions/360336/ ... s-on-linux
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: 2 RFLinks transcievers on 1 Raspberry

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest