Caliberation/AGC Issue Help
Posted: Mon Sep 17, 2018 9:09 am
It seems my bladeRF (x115) AGC is not working properly. I tried to run it in Matlab (bladeRF_rx_gui) and I get the following warning.
>> bladeRF_rx_gui
Cannot enable AGC. AGC DC LUT file is missing, run `cal table agc rx' in bladeRF-cli.
when I run the version command from "bladeRF-cli program" I get the following,
C:\>bladeRF-cli -i
bladeRF> version
bladeRF-cli version: 1.6.1
libbladeRF version: 2.0.2
Firmware version: 2.2.0-git-3d38fac2
FPGA version: 0.7.3
bladeRF>
I tried to run the "cal table agc rx" and I get the following errors.
bladeRF> cal table agc rx
Calibrated @ 237500000 Hz: I= 128 (Error: 4.59), Q= -32 (Error: 1.47) DC-L
Calibrated @ 247500000 Hz: I= 32 (Error: 1.75), Q= 32 (Error: 4.13) DC-L
UT: Max (I= 2, Q= 3) Mid (I= 22, Q= 27) Min (I= 30, Q= 28)
Error: An unexpected error occurred
bladeRF> cal table agc rx
Calibrated @ 237500000 Hz: I= 32 (Error: 1.59), Q= 32 (Error: 4.16) DC-L
UT: Max (I= 2, Q= 4) Mid (I= 22, Q= 27) Min (I= 30, Q= 27)
Error: An unexpected error occurred
bladeRF> cal table agc rx
Calibrated @ 237500000 Hz: I= 32 (Error: 1.35), Q= 32 (Error: 4.76) DC-L
UT: Max (I= 1, Q= 4) Mid (I= 22, Q= 27) Min (I= 31, Q= 28)
Error: An unexpected error occurred
bladeRF>
Then I used the "print" command to print everything, and I get the following and says "AGC" is disabled
bladeRF> print
RX1 Bandwidth: 1500000 Hz
TX1 Bandwidth: 1500000 Hz
RX1 Frequency: 247500000 Hz
TX1 Frequency: 1000000000 Hz
RX1 AGC: Disabled
GPIO: 0x00190057
LMS Enable: Enabled
LMS RX Enable: Enabled
LMS TX Enable: Enabled
TX Band: Low Band (300M - 1.5GHz)
RX Band: Low Band (300M - 1.5GHz)
RX Source: Baseband
Loopback mode: none
RX mux: BASEBAND - Baseband samples
Gain RX1 overall: 45 dB (Range: [-1, 60])
lna: 6 dB (Range: [0, 6])
rxvga1: 30 dB (Range: [5, 30])
rxvga2: 15 dB (Range: [0, 30])
Gain TX1 overall: 60 dB (Range: [17, 73])
txvga1: -8 dB (Range: [-35, -4])
txvga2: 16 dB (Range: [0, 25])
Sampling: Internal
RX1 sample rate: 3000000 0/1
TX1 sample rate: 3000000 0/1
SMB Mode: Disabled
Current VCTCXO trim: 0x91b1
Stored VCTCXO trim: 0x91b1
VCTCXO tamer mode: Disabled
Expansion GPIO register: 0xffffffff
Expansion GPIO direction register: 0x00000000
bladeRF>
I have attached the Matlab GUI screenshot while running. If I tried to change the AGC dropdown to "AUTO" from "MANUAL" I keep on getting the same Matlab warning (Cannot enable AGC. AGC DC LUT file is missing, run `cal table agc rx' in bladeRF-cli.)
and it goes back to "MANUAL"
What's happening here? Is there a way to enable the AGC?
>> bladeRF_rx_gui
Cannot enable AGC. AGC DC LUT file is missing, run `cal table agc rx' in bladeRF-cli.
when I run the version command from "bladeRF-cli program" I get the following,
C:\>bladeRF-cli -i
bladeRF> version
bladeRF-cli version: 1.6.1
libbladeRF version: 2.0.2
Firmware version: 2.2.0-git-3d38fac2
FPGA version: 0.7.3
bladeRF>
I tried to run the "cal table agc rx" and I get the following errors.
bladeRF> cal table agc rx
Calibrated @ 237500000 Hz: I= 128 (Error: 4.59), Q= -32 (Error: 1.47) DC-L
Calibrated @ 247500000 Hz: I= 32 (Error: 1.75), Q= 32 (Error: 4.13) DC-L
UT: Max (I= 2, Q= 3) Mid (I= 22, Q= 27) Min (I= 30, Q= 28)
Error: An unexpected error occurred
bladeRF> cal table agc rx
Calibrated @ 237500000 Hz: I= 32 (Error: 1.59), Q= 32 (Error: 4.16) DC-L
UT: Max (I= 2, Q= 4) Mid (I= 22, Q= 27) Min (I= 30, Q= 27)
Error: An unexpected error occurred
bladeRF> cal table agc rx
Calibrated @ 237500000 Hz: I= 32 (Error: 1.35), Q= 32 (Error: 4.76) DC-L
UT: Max (I= 1, Q= 4) Mid (I= 22, Q= 27) Min (I= 31, Q= 28)
Error: An unexpected error occurred
bladeRF>
Then I used the "print" command to print everything, and I get the following and says "AGC" is disabled
bladeRF> print
RX1 Bandwidth: 1500000 Hz
TX1 Bandwidth: 1500000 Hz
RX1 Frequency: 247500000 Hz
TX1 Frequency: 1000000000 Hz
RX1 AGC: Disabled
GPIO: 0x00190057
LMS Enable: Enabled
LMS RX Enable: Enabled
LMS TX Enable: Enabled
TX Band: Low Band (300M - 1.5GHz)
RX Band: Low Band (300M - 1.5GHz)
RX Source: Baseband
Loopback mode: none
RX mux: BASEBAND - Baseband samples
Gain RX1 overall: 45 dB (Range: [-1, 60])
lna: 6 dB (Range: [0, 6])
rxvga1: 30 dB (Range: [5, 30])
rxvga2: 15 dB (Range: [0, 30])
Gain TX1 overall: 60 dB (Range: [17, 73])
txvga1: -8 dB (Range: [-35, -4])
txvga2: 16 dB (Range: [0, 25])
Sampling: Internal
RX1 sample rate: 3000000 0/1
TX1 sample rate: 3000000 0/1
SMB Mode: Disabled
Current VCTCXO trim: 0x91b1
Stored VCTCXO trim: 0x91b1
VCTCXO tamer mode: Disabled
Expansion GPIO register: 0xffffffff
Expansion GPIO direction register: 0x00000000
bladeRF>
I have attached the Matlab GUI screenshot while running. If I tried to change the AGC dropdown to "AUTO" from "MANUAL" I keep on getting the same Matlab warning (Cannot enable AGC. AGC DC LUT file is missing, run `cal table agc rx' in bladeRF-cli.)
and it goes back to "MANUAL"
What's happening here? Is there a way to enable the AGC?