Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
4342595e
Commit
4342595e
authored
8 years ago
by
Raymond.Knopp
Browse files
Options
Downloads
Patches
Plain Diff
calibration (RX) for LimeSDR. Use of new API for RF gains.
parent
aefb958a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
+14
-14
14 additions, 14 deletions
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.lmssdr.conf
+6
-6
6 additions, 6 deletions
...CTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.lmssdr.conf
with
20 additions
and
20 deletions
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
+
14
−
14
View file @
4342595e
...
@@ -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_Set
Normalized
Gain
(
lms_device
,
LMS_CH_TX
,
0
,
openair0_cfg
[
0
].
tx_gain
[
0
]
/
100.0
);
LMS_SetGain
dB
(
lms_device
,
LMS_CH_TX
,
0
,
openair0_cfg
->
tx_gain
[
0
]);
LMS_Set
Normalized
Gain
(
lms_device
,
LMS_CH_RX
,
0
,
.8
*
rxg_ratio
);
LMS_SetGain
dB
(
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
,
6
4.0
},
// on L PAD
{
1880000000.0
,
5
4.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
}};
...
...
This diff is collapsed.
Click to expand it.
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.lmssdr.conf
+
6
−
6
View file @
4342595e
...
@@ -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
=
1
16
;
rx_gain
=
1
00
;
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
=
"1
92.168.12.70
"
;
mme_ip_address
= ( {
ipv4
=
"1
27.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
=
"1
92.168.12.150
/24"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"1
27.0.0.2
/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"
eth0
"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"
lo
"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"1
92.168.12.150
/24"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"1
27.0.0.5
/24"
;
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment