A potential work-around for multiple RTL devices with their own spyserver
Posted: Mon Feb 10, 2020 5:38 am
My vague plan at the moment is to have three rtl-sdr devices hung off of an allwinner h5 SBC. Each SDR will have its own usb bus, because that's a feature of the H5 - multiple usb host adapters. Based on my experiments tonight with a single SDR, three won't stress the cpu.
Here and elsewhere, the question of how to associate a specific RTL-SDR with a specific instance of spyserver seems to have always been "there's not a good way to do it" and that's probably the designed functionality since spyserver is really for airspy devices.
Multiple sources say that the serial number line in spyserver.config is only used when the device type is an airspy device.
The only exception to that, that I've seen, is another post on this forum, here:
viewtopic.php?t=1861
"He did it right for 0 and 1 when he didn't prepend 0x"
I might try it but I'm gonna be skeptical for now.
Right now i have two sdr devices. My old e4000 dvb-t stick has a long serial number and no eeprom. my v3 rtl-sdr.com dongle of course has an eeprom and a default serial number of "1" which can be changed to anything.
read more about udev rules here: https://wiki.debian.org/udev
It turns out that the serial number is an attribute that can be used in a udev rule because it is reported through that api.
The udev rules that we've all been installing on our linux systems just make it so that every unprivileged user can utilize every sdr which is a good start.
I think I can write udev rules such that each individual rtl dongle gets assigned permissions so that it is only readable by a specific user.
Then each instance of spyserver will run as one of those users, and hopefully the "first available" sdr device for each of them is simply the only one that they can access, and it doesn't fall on its face when it tries to find sdr devices and can't open them.
Here and elsewhere, the question of how to associate a specific RTL-SDR with a specific instance of spyserver seems to have always been "there's not a good way to do it" and that's probably the designed functionality since spyserver is really for airspy devices.
Multiple sources say that the serial number line in spyserver.config is only used when the device type is an airspy device.
The only exception to that, that I've seen, is another post on this forum, here:
viewtopic.php?t=1861
"He did it right for 0 and 1 when he didn't prepend 0x"
I might try it but I'm gonna be skeptical for now.
Right now i have two sdr devices. My old e4000 dvb-t stick has a long serial number and no eeprom. my v3 rtl-sdr.com dongle of course has an eeprom and a default serial number of "1" which can be changed to anything.
read more about udev rules here: https://wiki.debian.org/udev
It turns out that the serial number is an attribute that can be used in a udev rule because it is reported through that api.
The udev rules that we've all been installing on our linux systems just make it so that every unprivileged user can utilize every sdr which is a good start.
I think I can write udev rules such that each individual rtl dongle gets assigned permissions so that it is only readable by a specific user.
Then each instance of spyserver will run as one of those users, and hopefully the "first available" sdr device for each of them is simply the only one that they can access, and it doesn't fall on its face when it tries to find sdr devices and can't open them.