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
常顺宇
OpenXG-RAN
Commits
103168a0
Commit
103168a0
authored
Jun 17, 2020
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standalone RRU executable initial testing version
parent
90b10268
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
34 deletions
+74
-34
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+25
-0
cmake_targets/build_oai
cmake_targets/build_oai
+12
-3
openair1/PHY/INIT/init_top.c
openair1/PHY/INIT/init_top.c
+0
-1
openair1/PHY/INIT/lte_init.c
openair1/PHY/INIT/lte_init.c
+1
-0
openair1/PHY/INIT/lte_init_ue.c
openair1/PHY/INIT/lte_init_ue.c
+1
-0
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+35
-30
No files found.
cmake_targets/CMakeLists.txt
View file @
103168a0
...
...
@@ -2601,6 +2601,31 @@ target_link_libraries(du_test
${
PROTO_AGENT_LIB
}
pthread UTIL
${
T_LIB
}
dl
${
ITTI_LIB
}
)
add_executable
(
oairu
${
OPENAIR_TARGETS
}
/RT/USER/lte-ru.c
${
OPENAIR_TARGETS
}
/RT/USER/ru_control.c
${
OPENAIR_TARGETS
}
/RT/USER/rt_wrapper.c
${
OPENAIR_TARGETS
}
/ARCH/COMMON/common_lib.c
${
OPENAIR_TARGETS
}
/ARCH/COMMON/record_player.c
${
OPENAIR_DIR
}
/executables/softmodem-common.c
${
OPENAIR_DIR
}
/openair1/SCHED/phy_procedures_lte_common.c
${
OPENAIR_DIR
}
/common/utils/threadPool/thread-pool.c
${
OPENAIR_DIR
}
/executables/main_ru.c
${
T_SOURCE
}
${
OPENAIR_DIR
}
/common/utils/LOG/log.c
${
CONFIG_SOURCES
}
${
OPENAIR_DIR
}
/common/utils/utils.c
${
OPENAIR_DIR
}
/common/utils/system.c
${
SHLIB_LOADER_SOURCES
}
)
target_link_libraries
(
oairu
-Wl,--start-group
SCHED_RU_LIB
PHY_COMMON PHY_RU
-Wl,--end-group z dl
)
target_link_libraries
(
oairu pthread m
${
CONFIG_LIB
}
rt
${
CMAKE_DL_LIBS
}
${
T_LIB
}
)
# lte-uesoftmodem is UE implementation
#######################################
...
...
cmake_targets/build_oai
View file @
103168a0
...
...
@@ -100,6 +100,8 @@ Options
Makes the NR softmodem
--nrUE
Makes the NR UE softmodem
--RU
Makes the OAI RRU (without full stack)
--UE
Makes the UE specific parts (ue_ip, usim, nvram) from the given configuration file
--UE-conf-nvram [configuration file]
...
...
@@ -242,6 +244,10 @@ function main() {
NR
=
"True"
echo_info
"Will compile gNB"
shift
;;
--RU
)
RU
=
1
echo_info
"Will compile RRU"
shift
;;
-a
|
--agent
)
echo_info
"FlexRAN support is always compiled into the eNB"
shift
;;
...
...
@@ -443,7 +449,7 @@ function main() {
########################################################
# to be discussed
if
[
"
$eNB
"
=
"1"
-o
"
$gNB
"
=
"1"
]
;
then
if
[
"
$eNB
"
=
"1"
-o
"
$gNB
"
=
"1"
=
o
"
$RU
"
=
"1"
]
;
then
if
[
"
$HW
"
=
"None"
-a
"
$TP
"
=
"None"
]
;
then
echo_info
"No local radio head and no transport protocol selected"
fi
...
...
@@ -574,7 +580,7 @@ function main() {
config_libconfig_shlib
=
params_libconfig
# first generate the CMakefile in the right directory
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
-o
"
$gNB
"
=
"1"
-o
"
$nrUE
"
=
"1"
-o
"
$HW
"
=
"EXMIMO"
]
;
then
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
-o
"
$gNB
"
=
"1"
-o
"
$
RU
"
=
"1"
-o
"
$
nrUE
"
=
"1"
-o
"
$HW
"
=
"EXMIMO"
]
;
then
# softmodem compilation
...
...
@@ -609,6 +615,9 @@ function main() {
if
[
"
$gNB
"
=
"1"
]
;
then
execlist
=
"
$execlist
nr-softmodem"
fi
if
[
"
$RU
"
=
"1"
]
;
then
execlist
=
"
$execlist
oairu"
fi
if
[
"
$UE
"
=
1
]
;
then
execlist
=
"
$execlist
lte-uesoftmodem"
fi
...
...
@@ -820,7 +829,7 @@ function main() {
####################################################
# Build RF device and transport protocol libraries #
####################################################
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
-o
"
$gNB
"
=
"1"
-o
"
$nrUE
"
=
"1"
-o
"
$HWLAT
"
=
"1"
]
;
then
if
[
"
$eNB
"
=
"1"
-o
"
$UE
"
=
"1"
-o
"
$gNB
"
=
"1"
-o
"
$
RU
"
=
"1"
-o
"
$
nrUE
"
=
"1"
-o
"
$HWLAT
"
=
"1"
]
;
then
# build RF device libraries
if
[
"
$HW
"
!=
"None"
]
;
then
...
...
openair1/PHY/INIT/init_top.c
View file @
103168a0
...
...
@@ -73,7 +73,6 @@ void init_lte_top(LTE_DL_FRAME_PARMS *frame_parms) {
init_unscrambling_lut
();
init_scrambling_lut
();
//set_taus_seed(1328);
init_sss
();
}
void
free_lte_top
(
void
)
{
...
...
openair1/PHY/INIT/lte_init.c
View file @
103168a0
...
...
@@ -384,6 +384,7 @@ int phy_init_lte_eNB(PHY_VARS_eNB *eNB,
lte_gold
(
fp
,
eNB
->
lte_gold_table
,
fp
->
Nid_cell
);
generate_pcfich_reg_mapping
(
fp
);
generate_phich_reg_mapping
(
fp
);
init_sss
();
for
(
UE_id
=
0
;
UE_id
<
NUMBER_OF_UE_MAX
;
UE_id
++
)
{
eNB
->
first_run_timing_advance
[
UE_id
]
=
...
...
openair1/PHY/INIT/lte_init_ue.c
View file @
103168a0
...
...
@@ -629,6 +629,7 @@ int init_lte_ue_signal(PHY_VARS_UE *ue,
init_frame_parms
(
&
ue
->
frame_parms
,
1
);
lte_sync_time_init
(
&
ue
->
frame_parms
);
init_lte_top
(
&
ue
->
frame_parms
);
init_sss
();
init_7_5KHz
();
init_ul_hopping
(
&
ue
->
frame_parms
);
// many memory allocation sizes are hard coded
...
...
targets/RT/USER/lte-ru.c
View file @
103168a0
...
...
@@ -2677,9 +2677,38 @@ void set_function_spec_param(RU_t *ru) {
}
// switch on interface type
}
//extern void RCconfig_RU(void);
void
init_RU0
(
RU_t
*
ru
,
int
ru_id
,
char
*
rf_config_file
,
int
send_dmrssync
)
{
ru
->
rf_config_file
=
rf_config_file
;
ru
->
idx
=
ru_id
;
ru
->
ts_offset
=
0
;
if
(
ru
->
is_slave
==
1
)
{
ru
->
in_synch
=
0
;
ru
->
generate_dmrs_sync
=
0
;
}
else
{
ru
->
in_synch
=
1
;
ru
->
generate_dmrs_sync
=
send_dmrssync
;
}
ru
->
cmd
=
EMPTY
;
ru
->
south_out_cnt
=
0
;
// use eNB_list[0] as a reference for RU frame parameters
// NOTE: multiple CC_id are not handled here yet!
//ru->generate_dmrs_sync = (ru->is_slave == 0) ? 1 : 0;
if
((
ru
->
is_slave
==
0
)
&&
(
ru
->
ota_sync_enable
==
1
))
ru
->
generate_dmrs_sync
=
1
;
else
ru
->
generate_dmrs_sync
=
0
;
ru
->
wakeup_L1_sleeptime
=
2000
;
ru
->
wakeup_L1_sleep_cnt_max
=
3
;
}
// This part if on eNB side
void
init_RU
(
char
*
rf_config_file
,
int
send_dmrssync
)
{
int
ru_id
,
i
,
CC_id
;
RU_t
*
ru
;
...
...
@@ -2699,38 +2728,14 @@ void init_RU(char *rf_config_file, int send_dmrssync) {
for
(
ru_id
=
0
;
ru_id
<
RC
.
nb_RU
;
ru_id
++
)
{
LOG_D
(
PHY
,
"Process RC.ru[%d]
\n
"
,
ru_id
);
ru
=
RC
.
ru
[
ru_id
];
ru
->
rf_config_file
=
rf_config_file
;
ru
->
idx
=
ru_id
;
ru
->
ts_offset
=
0
;
if
(
ru
->
is_slave
==
1
)
{
ru
->
in_synch
=
0
;
ru
->
generate_dmrs_sync
=
0
;
}
else
{
ru
->
in_synch
=
1
;
ru
->
generate_dmrs_sync
=
send_dmrssync
;
}
ru
->
cmd
=
EMPTY
;
ru
->
south_out_cnt
=
0
;
// use eNB_list[0] as a reference for RU frame parameters
// NOTE: multiple CC_id are not handled here yet!
//ru->generate_dmrs_sync = (ru->is_slave == 0) ? 1 : 0;
if
((
ru
->
is_slave
==
0
)
&&
(
ru
->
ota_sync_enable
==
1
))
ru
->
generate_dmrs_sync
=
1
;
else
ru
->
generate_dmrs_sync
=
0
;
ru
->
wakeup_L1_sleeptime
=
2000
;
ru
->
wakeup_L1_sleep_cnt_max
=
3
;
init_RU0
(
ru
,
ru_id
,
rf_config_file
,
send_dmrssync
);
if
(
ru
->
num_eNB
>
0
)
{
LOG_D
(
PHY
,
"%s() RC.ru[%d].num_eNB:%d ru->eNB_list[0]:%p RC.eNB[0][0]:%p rf_config_file:%s
\n
"
,
__FUNCTION__
,
ru_id
,
ru
->
num_eNB
,
ru
->
eNB_list
[
0
],
RC
.
eNB
[
0
][
0
],
ru
->
rf_config_file
);
if
(
ru
->
eNB_list
[
0
]
==
0
)
{
LOG_E
(
PHY
,
"%s() DJP - ru->eNB_list ru->num_eNB are not initialized - so do it manually
\n
"
,
__FUNCTION__
);
ru
->
eNB_list
[
0
]
=
RC
.
eNB
[
0
][
0
];
LOG_E
(
PHY
,
"%s() DJP - ru->eNB_list ru->num_eNB are not initialized - so do it manually
\n
"
,
__FUNCTION__
);
ru
->
eNB_list
[
0
]
=
RC
.
eNB
[
0
][
0
];
ru
->
num_eNB
=
1
;
//
// DJP - feptx_prec() / feptx_ofdm() parses the eNB_list (based on num_eNB) and copies the txdata_F to txdata in RU
...
...
@@ -2739,7 +2744,7 @@ void init_RU(char *rf_config_file, int send_dmrssync) {
LOG_E
(
PHY
,
"DJP - delete code above this %s:%d
\n
"
,
__FILE__
,
__LINE__
);
}
}
eNB0
=
ru
->
eNB_list
[
0
];
fp
=
ru
->
frame_parms
;
LOG_D
(
PHY
,
"RU FUnction:%d ru->if_south:%d
\n
"
,
ru
->
function
,
ru
->
if_south
);
...
...
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