Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
4342595e
Commit
4342595e
authored
Mar 09, 2017
by
Raymond.Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calibration (RX) for LimeSDR. Use of new API for RF gains.
parent
aefb958a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
+14
-14
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.lmssdr.conf
...CTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.lmssdr.conf
+6
-6
No files found.
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
View file @
4342595e
...
...
@@ -134,15 +134,15 @@ int trx_lms_set_gains(openair0_device* device, openair0_config_t *openair0_cfg)
int
ret
=
0
;
double
rxg_ratio
=
openair0_cfg
[
0
].
rx_gain
[
0
]
/
openair0_cfg
[
0
].
rx_gain_offset
[
0
];
if
(
rxg_ratio
>
1
)
{
printf
(
"[LMS] Reduce RX Gain 0 by %f dB
\n
"
,
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
(
openair0_cfg
->
rx_gain
[
0
]
>
70
+
openair0_cfg
->
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
;
rxg_ratio
=
1
;
//
rxg_ratio = 1;
}
LMS_Set
NormalizedGain
(
lms_device
,
LMS_CH_TX
,
0
,
openair0_cfg
[
0
].
tx_gain
[
0
]
/
100.0
);
LMS_Set
NormalizedGain
(
lms_device
,
LMS_CH_RX
,
0
,
.8
*
rxg_ratio
);
LMS_Set
GaindB
(
lms_device
,
LMS_CH_TX
,
0
,
openair0_cfg
->
tx_gain
[
0
]
);
LMS_Set
GaindB
(
lms_device
,
LMS_CH_RX
,
0
,
openair0_cfg
->
rx_gain
[
0
]
-
openair0_cfg
->
rx_gain_offset
[
0
]
);
/*
// RX gains, use low-level setting
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
// V1.2 board
rx_gain_calib_table_t
calib_table_lmssdr_1v2
[]
=
{
{
3500000000.0
,
44.0
},
// on L PAD
{
2660000000.0
,
62
.0
},
// on L PAD
{
2300000000.0
,
62
.0
},
// on L PAD
{
1880000000.0
,
6
4.0
},
// on L PAD
{
2660000000.0
,
55
.0
},
// on L PAD
{
2300000000.0
,
54
.0
},
// on L PAD
{
1880000000.0
,
5
4.0
},
// on L PAD
{
816000000.0
,
79.0
},
// on W PAD
{
-
1
,
0
}};
// V1.4 board
rx_gain_calib_table_t
calib_table_lmssdr
[]
=
{
{
3500000000.0
,
97
.0
},
// on H PAD
{
2660000000.0
,
110
.0
},
// on H PAD
{
2300000000.0
,
106
.0
},
// on H PAD
{
1880000000.0
,
106
.0
},
// on H PAD
{
816000000.0
,
116.0
},
// on W
PAD
{
3500000000.0
,
44
.0
},
// on H PAD
{
2660000000.0
,
55
.0
},
// on H PAD
{
2300000000.0
,
54
.0
},
// on H PAD
{
1880000000.0
,
54
.0
},
// on H PAD
{
816000000.0
,
79.0
},
// on L
PAD
{
-
1
,
0
}};
...
...
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.lmssdr.conf
View file @
4342595e
...
...
@@ -40,7 +40,7 @@ eNBs =
nb_antennas_tx
=
1
;
nb_antennas_rx
=
1
;
tx_gain
=
20
;
rx_gain
=
1
16
;
rx_gain
=
1
00
;
prach_root
=
0
;
prach_config_index
=
0
;
prach_high_speed
=
"DISABLE"
;
...
...
@@ -136,7 +136,7 @@ eNBs =
};
//////////
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"
;
active
=
"yes"
;
preference
=
"ipv4"
;
...
...
@@ -145,11 +145,11 @@ eNBs =
NETWORK_INTERFACES
:
{
ENB_INTERFACE_NAME_FOR_S1_MME
=
"
eth0
"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"1
92.168.12.150
/24"
;
ENB_INTERFACE_NAME_FOR_S1_MME
=
"
lo
"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"1
27.0.0.2
/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"
eth0
"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"1
92.168.12.150
/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"
lo
"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"1
27.0.0.5
/24"
;
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment