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
lizhongxiao
OpenXG-RAN
Commits
7998985d
Commit
7998985d
authored
Feb 15, 2016
by
kaltenbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10 MHz configurations for SoDeRa.
parent
92987e4c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1144 additions
and
13 deletions
+1144
-13
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
+16
-13
targets/ARCH/LMSSDR/enb_sodera_highband_10MHz_rx19dB_txfull.ini
...s/ARCH/LMSSDR/enb_sodera_highband_10MHz_rx19dB_txfull.ini
+1128
-0
No files found.
targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp
View file @
7998985d
...
@@ -645,25 +645,26 @@ int trx_lms_start(openair0_device *device){
...
@@ -645,25 +645,26 @@ int trx_lms_start(openair0_device *device){
// Set TX filter
// Set TX filter
printf
(
"Tuning TX filter
\n
"
);
printf
(
"Tuning TX filter
\n
"
);
opStatus
=
lms7
->
TuneTxFilter
(
LMS7002M
::
TxFilter
::
TX_HIGHBAND
,
28.0
);
opStatus
=
lms7
->
TuneTxFilter
(
LMS7002M
::
TxFilter
::
TX_HIGHBAND
,
device
->
openair0_cfg
[
0
].
tx_bw
/
1e6
);
if
(
opStatus
!=
LIBLMS7_SUCCESS
)
{
if
(
opStatus
!=
LIBLMS7_SUCCESS
)
{
printf
(
"Warning: Could not tune TX filter
\n
"
);
printf
(
"Warning: Could not tune TX filter
to %f MHz
\n
"
,
device
->
openair0_cfg
[
0
].
tx_bw
/
1e6
);
}
}
printf
(
"Tuning RX filter
\n
"
);
printf
(
"Tuning RX filter
\n
"
);
opStatus
=
lms7
->
TuneRxFilter
(
LMS7002M
::
RxFilter
::
RX_LPF_LOWBAND
,
5.0
);
opStatus
=
lms7
->
TuneRxFilter
(
LMS7002M
::
RxFilter
::
RX_LPF_LOWBAND
,
device
->
openair0_cfg
[
0
].
rx_bw
/
1e6
);
if
(
opStatus
!=
LIBLMS7_SUCCESS
)
{
if
(
opStatus
!=
LIBLMS7_SUCCESS
)
{
printf
(
"Warning: Could not tune RX filter
\n
"
);
printf
(
"Warning: Could not tune RX filter
to %f MHz
\n
"
,
device
->
openair0_cfg
[
0
].
rx_bw
/
1e6
);
}
}
printf
(
"Tuning TIA filter
\n
"
);
/*
printf("Tuning TIA filter\n");
opStatus = lms7->TuneRxFilter(LMS7002M::RxFilter::RX_TIA,7.0);
opStatus = lms7->TuneRxFilter(LMS7002M::RxFilter::RX_TIA,7.0);
if (opStatus != LIBLMS7_SUCCESS) {
if (opStatus != LIBLMS7_SUCCESS) {
printf("Warning: Could not tune RX TIA filter\n");
printf("Warning: Could not tune RX TIA filter\n");
}
}*/
opStatus
=
lms7
->
SetInterfaceFrequency
(
lms7
->
GetFrequencyCGEN_MHz
(),
opStatus
=
lms7
->
SetInterfaceFrequency
(
lms7
->
GetFrequencyCGEN_MHz
(),
lms7
->
Get_SPI_Reg_bits
(
HBI_OVR_TXTSP
),
lms7
->
Get_SPI_Reg_bits
(
HBI_OVR_TXTSP
),
...
@@ -683,7 +684,9 @@ int trx_lms_start(openair0_device *device){
...
@@ -683,7 +684,9 @@ int trx_lms_start(openair0_device *device){
lmsStream
=
new
LMS_StreamBoard
(
usbport
);
lmsStream
=
new
LMS_StreamBoard
(
usbport
);
LMS_StreamBoard
::
Status
opStreamStatus
;
LMS_StreamBoard
::
Status
opStreamStatus
;
// this will configure that sampling rate at output of FPGA
// this will configure that sampling rate at output of FPGA
opStreamStatus
=
lmsStream
->
ConfigurePLL
(
usbport
,
device
->
openair0_cfg
[
0
].
sample_rate
,
device
->
openair0_cfg
[
0
].
sample_rate
,
90
);
opStreamStatus
=
lmsStream
->
ConfigurePLL
(
usbport
,
device
->
openair0_cfg
[
0
].
sample_rate
,
device
->
openair0_cfg
[
0
].
sample_rate
,
90
);
if
(
opStatus
!=
LIBLMS7_SUCCESS
){
if
(
opStatus
!=
LIBLMS7_SUCCESS
){
printf
(
"Sample rate programming failed
\n
"
);
printf
(
"Sample rate programming failed
\n
"
);
exit
(
-
1
);
exit
(
-
1
);
...
@@ -827,16 +830,16 @@ int openair0_dev_init_lms(openair0_device *device, openair0_config_t *openair0_c
...
@@ -827,16 +830,16 @@ int openair0_dev_init_lms(openair0_device *device, openair0_config_t *openair0_c
case
15360000
:
case
15360000
:
openair0_cfg
[
0
].
samples_per_packet
=
2048
;
openair0_cfg
[
0
].
samples_per_packet
=
2048
;
openair0_cfg
[
0
].
tx_sample_advance
=
45
;
openair0_cfg
[
0
].
tx_sample_advance
=
45
;
openair0_cfg
[
0
].
tx_bw
=
15.36
e6
;
openair0_cfg
[
0
].
tx_bw
=
28
e6
;
openair0_cfg
[
0
].
rx_bw
=
1
5.36
e6
;
openair0_cfg
[
0
].
rx_bw
=
1
0
e6
;
openair0_cfg
[
0
].
tx_scheduling_advance
=
5
*
openair0_cfg
[
0
].
samples_per_packet
;
openair0_cfg
[
0
].
tx_scheduling_advance
=
8
*
openair0_cfg
[
0
].
samples_per_packet
;
break
;
break
;
case
7680000
:
case
7680000
:
openair0_cfg
[
0
].
samples_per_packet
=
1024
;
openair0_cfg
[
0
].
samples_per_packet
=
1024
;
openair0_cfg
[
0
].
tx_sample_advance
=
70
;
openair0_cfg
[
0
].
tx_sample_advance
=
70
;
openair0_cfg
[
0
].
tx_bw
=
7.6
8e6
;
openair0_cfg
[
0
].
tx_bw
=
2
8e6
;
openair0_cfg
[
0
].
rx_bw
=
7.68
e6
;
openair0_cfg
[
0
].
rx_bw
=
5.0
e6
;
openair0_cfg
[
0
].
tx_scheduling_advance
=
12
*
openair0_cfg
[
0
].
samples_per_packet
;
openair0_cfg
[
0
].
tx_scheduling_advance
=
5
*
openair0_cfg
[
0
].
samples_per_packet
;
break
;
break
;
case
1920000
:
case
1920000
:
openair0_cfg
[
0
].
samples_per_packet
=
256
;
openair0_cfg
[
0
].
samples_per_packet
=
256
;
...
...
targets/ARCH/LMSSDR/enb_sodera_highband_10MHz_rx19dB_txfull.ini
0 → 100644
View file @
7998985d
This diff is collapsed.
Click to expand it.
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