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
canghaiwuhen
OpenXG-RAN
Commits
3d41f5cb
Commit
3d41f5cb
authored
Sep 28, 2018
by
Bing-Kai Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add msc trace for F1AP
parent
c017b8b4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
1 deletion
+44
-1
common/utils/msc/msc.c
common/utils/msc/msc.c
+14
-0
common/utils/msc/msc.h
common/utils/msc/msc.h
+2
-0
openair2/F1AP/f1ap_cu_interface_management.c
openair2/F1AP/f1ap_cu_interface_management.c
+10
-0
openair2/F1AP/f1ap_du_interface_management.c
openair2/F1AP/f1ap_du_interface_management.c
+18
-1
No files found.
common/utils/msc/msc.c
View file @
3d41f5cb
...
...
@@ -333,6 +333,20 @@ int msc_init(const msc_env_t envP, const int max_threadsP)
msc_log_declare_proto
(
i
);
}
break
;
case
MSC_F1AP_CU
:
rv
=
snprintf
(
&
g_msc_proto2str
[
i
][
0
],
MSC_MAX_PROTO_NAME_LENGTH
,
"F1AP_CU"
);
if
(
rv
>=
MSC_MAX_PROTO_NAME_LENGTH
)
{
g_msc_proto2str
[
i
][
MSC_MAX_PROTO_NAME_LENGTH
-
1
]
=
0
;}
//if ((envP == MSC_E_UTRAN) || (envP == MSC_MME_GW) || (envP == MSC_MME)) {
msc_log_declare_proto
(
i
);
//}
break
;
case
MSC_F1AP_DU
:
rv
=
snprintf
(
&
g_msc_proto2str
[
i
][
0
],
MSC_MAX_PROTO_NAME_LENGTH
,
"F1AP_DU"
);
if
(
rv
>=
MSC_MAX_PROTO_NAME_LENGTH
)
{
g_msc_proto2str
[
i
][
MSC_MAX_PROTO_NAME_LENGTH
-
1
]
=
0
;}
//if ((envP == MSC_E_UTRAN) || (envP == MSC_MME_GW) || (envP == MSC_MME)) {
msc_log_declare_proto
(
i
);
//}
break
;
default:
rv
=
snprintf
(
&
g_msc_proto2str
[
i
][
0
],
MSC_MAX_PROTO_NAME_LENGTH
,
"UNKNOWN"
);
if
(
rv
>=
MSC_MAX_PROTO_NAME_LENGTH
)
{
g_msc_proto2str
[
i
][
MSC_MAX_PROTO_NAME_LENGTH
-
1
]
=
0
;}
...
...
common/utils/msc/msc.h
View file @
3d41f5cb
...
...
@@ -62,6 +62,8 @@ typedef enum {
MSC_S11_MME
,
MSC_S6A_MME
,
MSC_HSS
,
MSC_F1AP_CU
,
MSC_F1AP_DU
,
MAX_MSC_PROTOS
,
}
msc_proto_t
;
...
...
openair2/F1AP/f1ap_cu_interface_management.c
View file @
3d41f5cb
...
...
@@ -229,6 +229,16 @@ int CU_handle_F1_SETUP_REQUEST(instance_t instance,
// } tdd;
// } nr_mode_info[F1AP_MAX_NB_CELLS];
MSC_LOG_TX_MESSAGE
(
MSC_F1AP_CU
,
MSC_RRC_ENB
,
0
,
0
,
MSC_AS_TIME_FMT
" CU_handle_F1_SETUP_REQUEST"
,
0
,
0
//MSC_AS_TIME_ARGS(ctxt_pP),
);
if
(
num_cells_available
>
0
)
{
itti_send_msg_to_task
(
TASK_RRC_ENB
,
ENB_MODULE_ID_TO_INSTANCE
(
instance
),
message_p
);
}
else
{
...
...
openair2/F1AP/f1ap_du_interface_management.c
View file @
3d41f5cb
...
...
@@ -403,6 +403,15 @@ int DU_send_F1_SETUP_REQUEST(instance_t instance) {
return
-
1
;
}
MSC_LOG_TX_MESSAGE
(
MSC_F1AP_DU
,
MSC_F1AP_CU
,
(
const
char
*
)
buffer
,
len
,
MSC_AS_TIME_FMT
" F1_SETUP_REQUEST initiatingMessage gNB_DU_name %s"
,
0
,
0
,
//MSC_AS_TIME_ARGS(ctxt_pP),
f1ap_du_data
->
gNB_DU_name
);
du_f1ap_itti_send_sctp_data_req
(
instance
,
f1ap_du_data
->
assoc_id
,
buffer
,
len
,
0
);
return
0
;
...
...
@@ -518,7 +527,15 @@ int DU_handle_F1_SETUP_RESPONSE(instance_t instance,
for
(
int
i
=
0
;
i
<
num_cells_to_activate
;
i
++
)
AssertFatal
(
F1AP_SETUP_RESP
(
msg_p
).
num_SI
[
i
]
>
0
,
"System Information %d is missing"
,
i
);
MSC_LOG_RX_MESSAGE
(
MSC_F1AP_DU
,
MSC_F1AP_CU
,
0
,
0
,
MSC_AS_TIME_FMT
" DU_handle_F1_SETUP_RESPONSE successfulOutcome assoc_id %d"
,
0
,
0
,
//MSC_AS_TIME_ARGS(ctxt_pP),
assoc_id
);
LOG_D
(
DU_F1AP
,
"Sending F1AP_SETUP_RESP ITTI message to ENB_APP with assoc_id (%d->%d)
\n
"
,
assoc_id
,
ENB_MODULE_ID_TO_INSTANCE
(
assoc_id
));
itti_send_msg_to_task
(
TASK_ENB_APP
,
ENB_MODULE_ID_TO_INSTANCE
(
assoc_id
),
msg_p
);
...
...
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