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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
91628bd9
Commit
91628bd9
authored
Dec 15, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/bugfix_antenna_init' into integration_2023_w50
parents
790c3b99
2ad0f5f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
executables/nr-ru.c
executables/nr-ru.c
+20
-12
No files found.
executables/nr-ru.c
View file @
91628bd9
...
...
@@ -896,35 +896,43 @@ void fill_rf_config(RU_t *ru, char *rf_config_file) {
else
//FDD
cfg
->
duplex_mode
=
duplex_mode_FDD
;
cfg
->
configFilename
=
rf_config_file
;
cfg
->
Mod_id
=
0
;
cfg
->
num_rb_dl
=
N_RB
;
cfg
->
tx_num_channels
=
ru
->
nb_tx
;
cfg
->
rx_num_channels
=
ru
->
nb_rx
;
LOG_I
(
PHY
,
"Setting RF config for N_RB %d, NB_RX %d, NB_TX %d
\n
"
,
cfg
->
num_rb_dl
,
cfg
->
rx_num_channels
,
cfg
->
tx_num_channels
);
LOG_I
(
PHY
,
"tune_offset %.0f Hz, sample_rate %.0f Hz
\n
"
,
cfg
->
tune_offset
,
cfg
->
sample_rate
);
for
(
i
=
0
;
i
<
ru
->
nb_tx
;
i
++
)
{
if
(
ru
->
if_frequency
==
0
)
{
cfg
->
tx_freq
[
i
]
=
(
double
)
fp
->
dl_CarrierFreq
;
cfg
->
rx_freq
[
i
]
=
(
double
)
fp
->
ul_CarrierFreq
;
}
else
if
(
ru
->
if_freq_offset
)
{
cfg
->
tx_freq
[
i
]
=
(
double
)(
ru
->
if_frequency
);
cfg
->
rx_freq
[
i
]
=
(
double
)(
ru
->
if_frequency
+
ru
->
if_freq_offset
);
LOG_I
(
PHY
,
"Setting IF TX frequency to %lu Hz with IF RX frequency offset %d Hz
\n
"
,
ru
->
if_frequency
,
ru
->
if_freq_offset
);
LOG_I
(
PHY
,
"Setting IF TX frequency to %lu Hz with IF TX frequency offset %d Hz
\n
"
,
ru
->
if_frequency
,
ru
->
if_freq_offset
);
}
else
{
cfg
->
tx_freq
[
i
]
=
(
double
)
ru
->
if_frequency
;
cfg
->
rx_freq
[
i
]
=
(
double
)(
ru
->
if_frequency
+
fp
->
ul_CarrierFreq
-
fp
->
dl_CarrierFreq
);
}
cfg
->
tx_gain
[
i
]
=
ru
->
att_tx
;
LOG_I
(
PHY
,
"Channel %d: setting tx_gain offset %.0f, tx_freq %.0f Hz
\n
"
,
i
,
cfg
->
tx_gain
[
i
],
cfg
->
tx_freq
[
i
]);
}
for
(
i
=
0
;
i
<
ru
->
nb_rx
;
i
++
)
{
if
(
ru
->
if_frequency
==
0
)
{
cfg
->
rx_freq
[
i
]
=
(
double
)
fp
->
ul_CarrierFreq
;
}
else
if
(
ru
->
if_freq_offset
)
{
cfg
->
rx_freq
[
i
]
=
(
double
)(
ru
->
if_frequency
+
ru
->
if_freq_offset
);
LOG_I
(
PHY
,
"Setting IF RX frequency to %lu Hz with IF RX frequency offset %d Hz
\n
"
,
ru
->
if_frequency
,
ru
->
if_freq_offset
);
}
else
{
cfg
->
rx_freq
[
i
]
=
(
double
)(
ru
->
if_frequency
+
fp
->
ul_CarrierFreq
-
fp
->
dl_CarrierFreq
);
}
cfg
->
rx_gain
[
i
]
=
ru
->
max_rxgain
-
ru
->
att_rx
;
cfg
->
configFilename
=
rf_config_file
;
LOG_I
(
PHY
,
"Channel %d: setting tx_gain offset %.0f, rx_gain offset %.0f, tx_freq %.0f Hz, rx_freq %.0f Hz, tune_offset %.0f Hz, sample_rate %.0f Hz
\n
"
,
i
,
cfg
->
tx_gain
[
i
],
cfg
->
rx_gain
[
i
],
cfg
->
tx_freq
[
i
],
cfg
->
rx_freq
[
i
],
cfg
->
tune_offset
,
cfg
->
sample_rate
);
LOG_I
(
PHY
,
"Channel %d: setting rx_gain offset %.0f, rx_freq %.0f Hz
\n
"
,
i
,
cfg
->
rx_gain
[
i
],
cfg
->
rx_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