Skip to content
Snippets Groups Projects
Commit 4342595e authored by Raymond.Knopp's avatar Raymond.Knopp
Browse files

calibration (RX) for LimeSDR. Use of new API for RF gains.

parent aefb958a
No related branches found
No related tags found
No related merge requests found
...@@ -134,15 +134,15 @@ int trx_lms_set_gains(openair0_device* device, openair0_config_t *openair0_cfg) ...@@ -134,15 +134,15 @@ int trx_lms_set_gains(openair0_device* device, openair0_config_t *openair0_cfg)
int ret=0; int ret=0;
double rxg_ratio = openair0_cfg[0].rx_gain[0]/openair0_cfg[0].rx_gain_offset[0]; // double rxg_ratio = openair0_cfg[0].rx_gain[0]/openair0_cfg[0].rx_gain_offset[0];
if (rxg_ratio > 1) { if (openair0_cfg->rx_gain[0] > 70+openair0_cfg->rx_gain_offset[0]) {
printf("[LMS] Reduce RX Gain 0 by %f dB\n",openair0_cfg[0].rx_gain[0]-openair0_cfg[0].rx_gain_offset[0]); printf("[LMS] Reduce RX Gain 0 by %f dB\n",openair0_cfg->rx_gain[0]-openair0_cfg->rx_gain_offset[0]-70);
ret = -1; ret = -1;
rxg_ratio = 1; // rxg_ratio = 1;
} }
LMS_SetNormalizedGain(lms_device, LMS_CH_TX, 0, openair0_cfg[0].tx_gain[0]/100.0); LMS_SetGaindB(lms_device, LMS_CH_TX, 0, openair0_cfg->tx_gain[0]);
LMS_SetNormalizedGain(lms_device, LMS_CH_RX, 0, .8*rxg_ratio); LMS_SetGaindB(lms_device, LMS_CH_RX, 0, openair0_cfg->rx_gain[0]-openair0_cfg->rx_gain_offset[0]);
/* /*
// RX gains, use low-level setting // RX gains, use low-level setting
double gv = openair0_cfg[0].rx_gain[0] - openair0_cfg[0].rx_gain_offset[0]; double gv = openair0_cfg[0].rx_gain[0] - openair0_cfg[0].rx_gain_offset[0];
...@@ -309,18 +309,18 @@ int trx_lms_set_freq(openair0_device* device, openair0_config_t *openair0_cfg,in ...@@ -309,18 +309,18 @@ int trx_lms_set_freq(openair0_device* device, openair0_config_t *openair0_cfg,in
// V1.2 board // V1.2 board
rx_gain_calib_table_t calib_table_lmssdr_1v2[] = { rx_gain_calib_table_t calib_table_lmssdr_1v2[] = {
{3500000000.0,44.0}, // on L PAD {3500000000.0,44.0}, // on L PAD
{2660000000.0,62.0}, // on L PAD {2660000000.0,55.0}, // on L PAD
{2300000000.0,62.0}, // on L PAD {2300000000.0,54.0}, // on L PAD
{1880000000.0,64.0}, // on L PAD {1880000000.0,54.0}, // on L PAD
{816000000.0,79.0}, // on W PAD {816000000.0,79.0}, // on W PAD
{-1,0}}; {-1,0}};
// V1.4 board // V1.4 board
rx_gain_calib_table_t calib_table_lmssdr[] = { rx_gain_calib_table_t calib_table_lmssdr[] = {
{3500000000.0,97.0}, // on H PAD {3500000000.0,44.0}, // on H PAD
{2660000000.0,110.0}, // on H PAD {2660000000.0,55.0}, // on H PAD
{2300000000.0,106.0}, // on H PAD {2300000000.0,54.0}, // on H PAD
{1880000000.0,106.0}, // on H PAD {1880000000.0,54.0}, // on H PAD
{816000000.0,116.0}, // on W PAD {816000000.0,79.0}, // on L PAD
{-1,0}}; {-1,0}};
......
...@@ -40,7 +40,7 @@ eNBs = ...@@ -40,7 +40,7 @@ eNBs =
nb_antennas_tx = 1; nb_antennas_tx = 1;
nb_antennas_rx = 1; nb_antennas_rx = 1;
tx_gain = 20; tx_gain = 20;
rx_gain = 116; rx_gain = 100;
prach_root = 0; prach_root = 0;
prach_config_index = 0; prach_config_index = 0;
prach_high_speed = "DISABLE"; prach_high_speed = "DISABLE";
...@@ -136,7 +136,7 @@ eNBs = ...@@ -136,7 +136,7 @@ eNBs =
}; };
////////// MME parameters: ////////// MME parameters:
mme_ip_address = ( { ipv4 = "192.168.12.70"; mme_ip_address = ( { ipv4 = "127.0.0.3";
ipv6 = "192:168:30::17"; ipv6 = "192:168:30::17";
active = "yes"; active = "yes";
preference = "ipv4"; preference = "ipv4";
...@@ -145,11 +145,11 @@ eNBs = ...@@ -145,11 +145,11 @@ eNBs =
NETWORK_INTERFACES : NETWORK_INTERFACES :
{ {
ENB_INTERFACE_NAME_FOR_S1_MME = "eth0"; ENB_INTERFACE_NAME_FOR_S1_MME = "lo";
ENB_IPV4_ADDRESS_FOR_S1_MME = "192.168.12.150/24"; ENB_IPV4_ADDRESS_FOR_S1_MME = "127.0.0.2/24";
ENB_INTERFACE_NAME_FOR_S1U = "eth0"; ENB_INTERFACE_NAME_FOR_S1U = "lo";
ENB_IPV4_ADDRESS_FOR_S1U = "192.168.12.150/24"; ENB_IPV4_ADDRESS_FOR_S1U = "127.0.0.5/24";
ENB_PORT_FOR_S1U = 2152; # Spec 2152 ENB_PORT_FOR_S1U = 2152; # Spec 2152
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment