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
43824d3a
Commit
43824d3a
authored
Feb 11, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement restart using gNB-DU configuratino update
parent
05804cc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
26 deletions
+23
-26
executables/nr-softmodem.c
executables/nr-softmodem.c
+22
-25
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+1
-1
No files found.
executables/nr-softmodem.c
View file @
43824d3a
...
@@ -573,16 +573,7 @@ int stop_L1L2(module_id_t gnb_id)
...
@@ -573,16 +573,7 @@ int stop_L1L2(module_id_t gnb_id)
*/
*/
}
}
/* these tasks need to pick up new configuration */
/* these tasks/layers need to pick up new configuration */
/*
terminate_task(TASK_RRC_GNB, gnb_id);
*/
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
0
];
mac
->
f1_config
.
setup_resp
=
NULL
;
MessageDef
*
msg
=
itti_alloc_new_message
(
TASK_GNB_APP
,
0
,
F1AP_LOST_CONNECTION
);
msg
->
ittiMsgHeader
.
originInstance
=
-
1
;
itti_send_msg_to_task
(
TASK_RRC_GNB
,
0
,
msg
);
if
(
RC
.
nb_nr_L1_inst
>
0
)
if
(
RC
.
nb_nr_L1_inst
>
0
)
stop_gNB
(
RC
.
nb_nr_L1_inst
);
stop_gNB
(
RC
.
nb_nr_L1_inst
);
...
@@ -602,6 +593,7 @@ int stop_L1L2(module_id_t gnb_id)
...
@@ -602,6 +593,7 @@ int stop_L1L2(module_id_t gnb_id)
return
0
;
return
0
;
}
}
extern
f1ap_tdd_info_t
read_tdd_config
(
const
NR_ServingCellConfigCommon_t
*
scc
);
/*
/*
* Restart the nr-softmodem after it has been soft-stopped with stop_L1L2()
* Restart the nr-softmodem after it has been soft-stopped with stop_L1L2()
*/
*/
...
@@ -635,24 +627,29 @@ int start_L1L2(module_id_t gnb_id)
...
@@ -635,24 +627,29 @@ int start_L1L2(module_id_t gnb_id)
NR_ServingCellConfigCommon_t
*
scc
=
mac
->
common_channels
[
0
].
ServingCellConfigCommon
;
NR_ServingCellConfigCommon_t
*
scc
=
mac
->
common_channels
[
0
].
ServingCellConfigCommon
;
nr_mac_config_scc
(
mac
,
scc
,
&
mac
->
radio_config
);
nr_mac_config_scc
(
mac
,
scc
,
&
mac
->
radio_config
);
/* send new F1 Setup Request to RRC */
/* update existing config in F1 Setup request structures */
NR_BCCH_BCH_Message_t
*
mib
=
mac
->
common_channels
[
0
].
mib
;
f1ap_setup_req_t
*
sr
=
mac
->
f1_config
.
setup_req
;
NR_BCCH_DL_SCH_Message_t
*
sib1
=
mac
->
common_channels
[
0
].
sib1
;
DevAssert
(
sr
->
num_cells_available
==
1
);
f1ap_setup_req_t
*
old
=
mac
->
f1_config
.
setup_req
;
f1ap_served_cell_info_t
*
info
=
&
sr
->
cell
[
0
].
info
;
const
f1ap_served_cell_info_t
*
info
=
&
old
->
cell
[
0
].
info
;
DevAssert
(
info
->
mode
==
F1AP_MODE_TDD
);
f1ap_setup_req_t
*
req
=
RC_read_F1Setup
(
old
->
gNB_DU_id
,
old
->
gNB_DU_name
,
info
,
scc
,
mib
,
sib1
);
DevAssert
(
scc
->
tdd_UL_DL_ConfigurationCommon
!=
NULL
);
AssertFatal
(
req
!=
NULL
,
"could not read F1 Setup information
\n
"
);
info
->
tdd
=
read_tdd_config
(
scc
);
/* updates radio config */
RC
.
nrmac
[
0
]
->
f1_config
.
setup_req
=
req
;
nr_mac_send_f1_setup_req
();
/* send gNB-DU configuration update to RRC */
f1ap_gnb_du_configuration_update_t
update
=
{
//wait_gNBs();
.
transaction_id
=
1
,
.
num_cells_to_modify
=
1
,
};
update
.
cell_to_modify
[
0
].
old_nr_cellid
=
info
->
nr_cellid
;
update
.
cell_to_modify
[
0
].
info
=
*
info
;
mac
->
mac_rrc
.
gnb_du_configuration_update
(
&
update
);
sleep
(
2
);
init_NR_RU
(
config_get_if
(),
NULL
);
init_NR_RU
(
config_get_if
(),
NULL
);
wait_f1_setup_response
();
start_NR_RU
();
start_NR_RU
();
//ru->rf_map.carD = 0;
//ru->rf_map.chain = 0; /* CC_id + chain_offset;*/
wait_RUs
();
wait_RUs
();
// TODO eNB->RU_list[ru_id]->common.rxdataF
init_eNB_afterRU
();
init_eNB_afterRU
();
printf
(
"Sending sync to all threads
\n
"
);
printf
(
"Sending sync to all threads
\n
"
);
pthread_mutex_lock
(
&
sync_mutex
);
pthread_mutex_lock
(
&
sync_mutex
);
...
...
openair2/GNB_APP/gnb_config.c
View file @
43824d3a
...
@@ -1103,7 +1103,7 @@ static int read_du_cell_info(configmodule_interface_t *cfg,
...
@@ -1103,7 +1103,7 @@ static int read_du_cell_info(configmodule_interface_t *cfg,
return
1
;
return
1
;
}
}
static
f1ap_tdd_info_t
read_tdd_config
(
const
NR_ServingCellConfigCommon_t
*
scc
)
f1ap_tdd_info_t
read_tdd_config
(
const
NR_ServingCellConfigCommon_t
*
scc
)
{
{
const
NR_FrequencyInfoDL_t
*
dl
=
scc
->
downlinkConfigCommon
->
frequencyInfoDL
;
const
NR_FrequencyInfoDL_t
*
dl
=
scc
->
downlinkConfigCommon
->
frequencyInfoDL
;
f1ap_tdd_info_t
tdd
=
{
f1ap_tdd_info_t
tdd
=
{
...
...
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