Problem with setting gain on BladeRF xA9 -- (tryin to run GNSS-SDR)

Having issues with the site, hardware, source code, or any other issues?

Moderator: robert.ghilduta

Post Reply
patiklipenguen
Posts: 1
Joined: Sun Apr 26, 2020 2:30 am

Problem with setting gain on BladeRF xA9 -- (tryin to run GNSS-SDR)

Post by patiklipenguen » Sun Apr 26, 2020 2:50 am

Hi,
I am trying to run GNSS-SDR with bladeRF xA9. However I'm facing some errors.

Here is the copy of terminal included errors:

[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/rfic_fpga.c:553] _rfic_fpga_get_gain_stage: unknown gain stage 'LNA'
[bladeRF source] get_gain: Could not get gain for stage 'LNA': Invalid operation or parameter
Actual LNA Gain: 0.000000 dB...
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/rfic_fpga.c:553] _rfic_fpga_get_gain_stage: unknown gain stage 'VGA1'
[bladeRF source] get_gain: Could not get gain for stage 'VGA1': Invalid operation or parameter
Actual VGA1 Gain: 0.000000 dB...
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/rfic_fpga.c:553] _rfic_fpga_get_gain_stage: unknown gain stage 'VGA2'
[bladeRF source] get_gain: Could not get gain for stage 'VGA2': Invalid operation or parameter
Actual VGA2 Gain: 0.000000 dB...

It is quite obvious that the problem is about the gains. Because GNSS-SDR looking for LNA, VGA1, and VGA2 gains and I know that bladeRF xA9 only has a "full" gain setting. ( "On the bladeRF x40/x115, RX gain is implemented using three gain stages: LNA, rxvga1, and rxvga2. On the bladeRF xA4/xA9, there is one gain stage, full." )

So how can I change the gain settings in order to be able to work with bladeRF xA9 version? There is a config file in GNSS-SDR that controls LNA, VGA1, and VGA2 gains. When I comment on them, problems disappear. Even though problems disappear, still bladeRF xA9 not working correctly with GNSS-SDR. Because I can't control any gain. Also I tried to change gains with bladerf-cli and then run with GNSS-SDR.
I am not sure this problem is occurring because of the bladerf libraries or because of GNSS-SDR gain configurations and connection with bladeRF libs.
So how and where should I start to solve this problem?

Thank you.

Post Reply