Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple SDR-sticks #177

Closed
gvanem opened this issue Jan 28, 2018 · 4 comments
Closed

Support for multiple SDR-sticks #177

gvanem opened this issue Jan 28, 2018 · 4 comments

Comments

@gvanem
Copy link
Contributor

gvanem commented Jan 28, 2018

I got a new and improved RTL-SDR stick. Now having 2 sticks connected to my PC, I see no way in Welle-IO to select a specific one; it always iterates over rtlsdr_open(&device, i) and selects the first found.
I made a feeble attempt to fix it (currently only for the CRTL_SDR class). Patch:
https://gist.github.com/gvanem/8ebc16da2eb367aec3f0ef5f2544c675

I added an -i (instance) option to welle-io.exe, which now prints:

  -i <Instance>           Instance number for airspy, rtl_tcp, rtl_sdr if you
                          have more than one of each (default: 0)

Would be great if this could be supported.

PS. since I moved my old RTL-SDR stick to another USB-port some weeks ago, I have this situation:

c:\>rtl_tcp
Found 3 device(s):
  0:  , H☻, SN:
  1:  Realtek, RTL2838UHIDIR, SN: 00000001
  2:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
usb_open error -12
Failed to open rtlsdr device #0.

Starting welle-io.exe with no arguments will correctly select device 1 (not the junk device 0 as some other rtl_*.exe programs would). Since my new stick has the same RTL2832U interface (and Rafael Micro R820T tuner), the zadig driver does not need a reinstall. Is that correct? But how do get rid of this junk-device 0?

@AlbrechtL
Copy link
Owner

Thanks for the improvement!
What is the use case to have two dongles connected with the PC?

Duplicated with #95.

@gvanem
Copy link
Contributor Author

gvanem commented Jan 29, 2018

What is the use case to have two dongles connected with the PC?

Both have different frequency coverage and antennas for different bands (but some overlaps). Thus without physically unplugging one of them, it would be useful to support several instances.

Maybe a --device rtl_sdr[:N] syntax would be better?

@AlbrechtL
Copy link
Owner

I would prefer something like --device-index. Then each driver can implement this options if needed.
Please send a pull request with your changes.

@AlbrechtL
Copy link
Owner

I added this topic to Open Tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants