jopohl / urh

Universal Radio Hacker: Investigate Wireless Protocols Like A Boss
GNU General Public License v3.0
10.99k stars 874 forks source link

Add bias-T support for RTL-SDR #1055

Closed jirjirjir closed 1 year ago

jirjirjir commented 1 year ago

Hi!

Is it possible to add configurtion checkbox to control bias tee in (supported) RTL-SDR dongles?

e.g.: https://www.rtl-sdr.com/rtl-sdr-blog-v-3-dongles-user-guide/

Thanx!

jirjirjir commented 1 year ago

Looks like we should manipulate by GPIO#0 with standard rtl-sdr library's func: rtlsdr_set_bias_tee_gpio():

https://github.com/osmocom/rtl-sdr/blob/master/src/rtl_biast.c

andynoack commented 1 year ago

As long as the driver/API supports this setting, this shouldn't be a problem. I think, the challenging point is that it has to be a generic solution for URH, i.e. work with ALL RTL-SDR devices. Thus the driver must be able to identify whether the used RTL-SDR is suitable.

jirjirjir commented 1 year ago

Open pull request:

https://github.com/jopohl/urh/pull/1056

andynoack commented 1 year ago

Hey, thanks for opening that pull request. I will have a look but I currently do not have a RTLSDR with me to verify that the code doesn't break anything.

jirjirjir commented 1 year ago

Great, don't hesitate to contact me if you need some assistance for verifying it Thanx!

andynoack commented 1 year ago

Hey @jirjirjir there was an error in the ci.yml that made your checks fail. Could you make a new PR with the current master?

jirjirjir commented 1 year ago

Hi!

Done: https://github.com/jopohl/urh/pull/1057