You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried setting the gain of the RX but it would always return 60. It seems that I first need to set the gain mode to manual, and then set the gain. I would have expected the gain to automatically go to manual if I set it.
A strange thing though, is that it seems the gain doesn't get set at once. I roughly do
SoapySDRDevice *sdr = SoapySDRDevice_make(&args); // open device
SoapySDRDevice_setGainMode(sdr, dir, chan, false); // set gain to manual
SoapySDRDevice_setGain(sdr, dir, chan, gain); // set gain
returnedGain = SoapySDRDevice_getGain(sdr, dir, chan); // get gain
SoapySDRDevice_unmake(sdr); // close device
Each time I run it, getGain returns the gain set at the previous run. So I ask for 10 and I get 0, then 15 and I get 10, 20 and I get 15, ...
Also SoapySDRDevice_getGainMode returns always false, whether the gain is set to auto or manual (for this I'm not sure if SoapyBladeRF should check against BLADERF_GAIN_MGC or BLADERF_GAIN_MANUAL instead).
The text was updated successfully, but these errors were encountered:
Hi,
I opened an issue on SoapyBladeRF pothosware/SoapyBladeRF#30 but it seems to be linked to libBladeRF.
I tried setting the gain of the RX but it would always return 60. It seems that I first need to set the gain mode to manual, and then set the gain. I would have expected the gain to automatically go to manual if I set it.
A strange thing though, is that it seems the gain doesn't get set at once. I roughly do
Each time I run it,
getGain
returns the gain set at the previous run. So I ask for 10 and I get 0, then 15 and I get 10, 20 and I get 15, ...Also
SoapySDRDevice_getGainMode
returns alwaysfalse
, whether the gain is set to auto or manual (for this I'm not sure if SoapyBladeRF should check againstBLADERF_GAIN_MGC
orBLADERF_GAIN_MANUAL
instead).The text was updated successfully, but these errors were encountered: