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
zzha zzha
OpenXG-RAN
Commits
deac1802
Commit
deac1802
authored
Nov 22, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set correct gNB/gnB-DU/gNB-CU-UP ID for agent start
parent
7c6c4fc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
executables/nr-softmodem.c
executables/nr-softmodem.c
+9
-6
No files found.
executables/nr-softmodem.c
View file @
deac1802
...
...
@@ -572,6 +572,7 @@ void init_pdcp(void) {
}
#ifdef E2_AGENT
#include "openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h" // need to get info from MAC
static
void
initialize_agent
(
ngran_node_t
node_type
,
e2_agent_args_t
oai_args
)
{
AssertFatal
(
oai_args
.
sm_dir
!=
NULL
,
"Please, specify the directory where the SMs are located in the config file, i.e., add in config file the next line: e2_agent = {near_ric_ip_addr =
\"
127.0.0.1
\"
; sm_dir =
\"
/usr/local/lib/flexric/
\"
);} "
);
...
...
@@ -593,15 +594,17 @@ static void initialize_agent(ngran_node_t node_type, e2_agent_args_t oai_args)
int
nb_id
=
0
;
int
cu_du_id
=
0
;
if
(
node_type
==
ngran_gNB
)
{
nb_id
=
rrc
->
n
r_cell
id
;
nb_id
=
rrc
->
n
ode_
id
;
}
else
if
(
node_type
==
ngran_gNB_DU
)
{
AssertFatal
(
rrc
->
node_id
!=
0
,
"cannot handle node ID 0, please change gNB_ID
\n
"
);
cu_du_id
=
rrc
->
node_id
;
nb_id
=
rrc
->
nr_cellid
;
const
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
0
];
AssertFatal
(
mac
!=
NULL
,
"MAC not initialized
\n
"
);
cu_du_id
=
mac
->
f1_config
.
gnb_id
;
nb_id
=
mac
->
f1_config
.
setup_req
->
gNB_DU_id
;
}
else
if
(
node_type
==
ngran_gNB_CU
)
{
AssertFatal
(
rrc
->
node_id
!=
0
,
"cannot handle node ID 0, please change gNB_ID
\n
"
);
// agent buggy: the CU has no second ID, it is the CU-UP ID
// however, that is not a problem her for us, so put the same ID twice
nb_id
=
rrc
->
node_id
;
cu_du_id
=
rrc
->
node_id
;
nb_id
=
rrc
->
nr_cellid
;
}
else
{
LOG_E
(
NR_RRC
,
"not supported ran type detect
\n
"
);
}
...
...
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