pothosware / SoapyRTLSDR

SoapySDR RTL-SDR Support Module
https://github.com/pothosware/SoapyRTLSDR/wiki
MIT License
124 stars 29 forks source link

Feature Request: Add toggle for v3 dongle sw controlled bias-t #30

Closed unixpunk closed 4 years ago

unixpunk commented 6 years ago

Hi, would be a cool feature to be able to use v3 sw controlled bias-t. https://github.com/rtlsdrblog/rtl_biast/blob/master/src/rtl_biast.c Happy to test! Thanks!

######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Probe device driver=rtlsdr Found Rafael Micro R820T tuner Found Rafael Micro R820T tuner


-- Device identification

driver=RTLSDR hardware=RTLSDR origin=https://github.com/pothosware/SoapyRTLSDR rtl=0


-- Peripheral summary

Channels: 1 Rx, 0 Tx Timestamps: NO Other Settings:


-- RX Channel 0

Full-duplex: YES Supports AGC: YES Stream formats: CS8, CS16, CF32 Native format: CS8 [full-scale=128] Stream args:

jketterl commented 4 years ago

I'm probably not the best guy to do this, but I still tried: https://github.com/jketterl/SoapyRTLSDR/tree/biastee_support

I don't even dare to open a pull request since I'm unable to test it. Is there somebody that could confirm that it's working?

zuckschwerdt commented 4 years ago

@jketterl your code looks good. Do open a PR :)

SoapyAirspy calls this "biastee", and SoapySDRPlay calls it "biasT_ctrl" perhaps we could use one of those name to help apps discover this setting. (Though "bias_tee" would have been a better name, in my opinion…)

Would be great if somebody with this mod could test.

jketterl commented 4 years ago

You're right, it's not really helpful to introduce a third key. I'll change it to the airspy way, simply because it's easier to read.

jketterl commented 4 years ago

just went through some old notifications... since the PR is merged, this should be resolved now, too, shouldn't it?