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
Michael Black
OpenXG-RAN
Commits
e1b090cf
Commit
e1b090cf
authored
Mar 23, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve logging
parent
9f6b7dc6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
executables/nr-ru.c
executables/nr-ru.c
+1
-1
openair1/PHY/NR_UE_TRANSPORT/nr_ue_rf_helpers.c
openair1/PHY/NR_UE_TRANSPORT/nr_ue_rf_helpers.c
+4
-3
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+1
-1
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+1
-1
No files found.
executables/nr-ru.c
View file @
e1b090cf
...
...
@@ -1049,7 +1049,7 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
cfg
->
tx_gain
[
i
]
=
ru
->
att_tx
;
cfg
->
rx_gain
[
i
]
=
ru
->
max_rxgain
-
ru
->
att_rx
;
cfg
->
configFilename
=
rf_config_file
;
LOG_I
(
PHY
,
"Channel %d: setting tx_gain offset %
f, rx_gain offset %
f, tx_freq %.0f Hz, rx_freq %.0f Hz, tune_offset %.0f Hz
\n
"
,
LOG_I
(
PHY
,
"Channel %d: setting tx_gain offset %
.0f, rx_gain offset %.0
f, tx_freq %.0f Hz, rx_freq %.0f Hz, tune_offset %.0f Hz
\n
"
,
i
,
cfg
->
tx_gain
[
i
],
cfg
->
rx_gain
[
i
],
cfg
->
tx_freq
[
i
],
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ue_rf_helpers.c
View file @
e1b090cf
...
...
@@ -67,7 +67,7 @@ void nr_rf_card_config_gain(openair0_config_t *openair0_cfg,
openair0_cfg
->
autocal
[
i
]
=
1
;
if
(
i
<
openair0_cfg
->
rx_num_channels
)
{
LOG_I
(
PHY
,
"HW: Configuring channel %d (rf_chain %d): setting tx_gain %
f, rx_gain %
f
\n
"
,
LOG_I
(
PHY
,
"HW: Configuring channel %d (rf_chain %d): setting tx_gain %
.0f, rx_gain %.0
f
\n
"
,
i
,
rf_chain
,
openair0_cfg
->
tx_gain
[
i
],
...
...
@@ -103,11 +103,12 @@ void nr_rf_card_config_freq(openair0_config_t *openair0_cfg,
openair0_cfg
->
autocal
[
i
]
=
1
;
if
(
i
<
openair0_cfg
->
rx_num_channels
)
{
LOG_I
(
PHY
,
"HW: Configuring channel %d (rf_chain %d): setting tx_freq %
f Hz, rx_freq %f Hz
\n
"
,
LOG_I
(
PHY
,
"HW: Configuring channel %d (rf_chain %d): setting tx_freq %
.0f Hz, rx_freq %.0f Hz, tune_offset %.0f
\n
"
,
i
,
rf_chain
,
openair0_cfg
->
tx_freq
[
i
],
openair0_cfg
->
rx_freq
[
i
]);
openair0_cfg
->
rx_freq
[
i
],
openair0_cfg
->
tune_offset
);
}
}
...
...
targets/RT/USER/lte-ru.c
View file @
e1b090cf
...
...
@@ -1371,7 +1371,7 @@ void fill_rf_config(RU_t *ru,
cfg
->
tx_gain
[
i
]
=
(
double
)
ru
->
att_tx
;
cfg
->
rx_gain
[
i
]
=
ru
->
max_rxgain
-
(
double
)
ru
->
att_rx
;
cfg
->
configFilename
=
rf_config_file
;
LOG_I
(
PHY
,
"channel %d, Setting tx_gain offset %
f, rx_gain offset %f, tx_freq %f, rx_freq %
f, tune_offset %.0f Hz
\n
"
,
LOG_I
(
PHY
,
"channel %d, Setting tx_gain offset %
.0f, rx_gain offset %.0f, tx_freq %.0f, rx_freq %.0
f, tune_offset %.0f Hz
\n
"
,
i
,
cfg
->
tx_gain
[
i
],
cfg
->
rx_gain
[
i
],
cfg
->
tx_freq
[
i
],
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
e1b090cf
...
...
@@ -465,7 +465,7 @@ void init_openair0(LTE_DL_FRAME_PARMS *frame_parms,int rxgain) {
openair0_cfg
[
card
].
tx_gain
[
i
]
=
tx_gain
[
0
][
i
];
openair0_cfg
[
card
].
rx_gain
[
i
]
=
rxgain
-
rx_gain_off
;
openair0_cfg
[
card
].
configFilename
=
get_softmodem_params
()
->
rf_config_file
;
printf
(
"Card %d, channel %d, Setting tx_gain %
f, rx_gain %f, tx_freq %f, rx_freq %
f, tune_offset %.0f
\n
"
,
printf
(
"Card %d, channel %d, Setting tx_gain %
.0f, rx_gain %.0f, tx_freq %.0f, rx_freq %.0
f, tune_offset %.0f
\n
"
,
card
,
i
,
openair0_cfg
[
card
].
tx_gain
[
i
],
openair0_cfg
[
card
].
rx_gain
[
i
],
openair0_cfg
[
card
].
tx_freq
[
i
],
...
...
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