From ec700a111b753b20146308bfd46d5b89b85c74bd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 12 Aug 2020 13:06:38 +0800 Subject: [PATCH] fix biastee --- bladerf.conf | 1 + dmi.py | 1 + shell.nix | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 bladerf.conf diff --git a/bladerf.conf b/bladerf.conf new file mode 100644 index 0000000..72df70d --- /dev/null +++ b/bladerf.conf @@ -0,0 +1 @@ +biastee_rx on diff --git a/dmi.py b/dmi.py index d8db867..5893f66 100644 --- a/dmi.py +++ b/dmi.py @@ -30,6 +30,7 @@ def main(): for channel in range(2): sdr.setSampleRate(SoapySDR.SOAPY_SDR_RX, channel, freq_sample) sdr.setFrequency(SoapySDR.SOAPY_SDR_RX, channel, freq_base) + sdr.setGain(SoapySDR.SOAPY_SDR_RX, channel, 57.0) buf_sdr = BufferedSDR(sdr, [0, 1], block_size, 32) buf_sdr.start() diff --git a/shell.nix b/shell.nix index afa82ee..83586e4 100644 --- a/shell.nix +++ b/shell.nix @@ -40,7 +40,6 @@ in ''; shellHook = '' ${pkgs.libbladeRF}/bin/bladeRF-cli -l ${bitstream} - ${pkgs.libbladeRF}/bin/bladeRF-cli -e "set biastee rx on" ''; QT_QPA_PLATFORM = "wayland"; }