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
8ef5460a
Commit
8ef5460a
authored
Nov 21, 2023
by
liuxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rrc pass under 5gc231121
parent
d221c7ed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
executables/gnbSendToManager_client.c
executables/gnbSendToManager_client.c
+2
-1
executables/sever_manager_py.py
executables/sever_manager_py.py
+11
-9
openair2/RRC/NR/rrc_signaling_socket.h
openair2/RRC/NR/rrc_signaling_socket.h
+2
-2
No files found.
executables/gnbSendToManager_client.c
View file @
8ef5460a
...
...
@@ -75,7 +75,8 @@ void *gnbSendToManager_task(void *args_p)
// printf("message_flag %d\n", message_flag);
if
(
message_flag
==
1
){
// printf("data_len %d\n", sim_rrc_signaling_socket.data_len);
// printf("data_len %d rrc_signaling_request_type %d rrc_signaling_type %d \n", sim_rrc_signaling_socket.data_len,
// sim_rrc_signaling_socket.rrc_signaling_request_type, sim_rrc_signaling_socket.rrc_signaling_type);
send_len
=
write
(
sockfd
,
&
sim_rrc_signaling_socket
,
GNBSENDTOMANAGER_MAX_RRC_SIGNALING_LEN
);
}
else
if
(
message_flag
==
2
){
...
...
executables/sever_manager_py.py
View file @
8ef5460a
...
...
@@ -76,6 +76,7 @@ while True:
print
(
"data_len %d message %d"
%
(
data_len
,
message
))
if
(
message
==
2
):
CC_id
,
frame
,
slot
,
measurement_flag
,
pbch_sched_flag
,
random_access_sched_flag
,
dl_sched_flag
,
ul_sched_flag
=
struct
.
unpack
(
"8H"
,
data
[
4
:
20
])
if
DEBUG_PRINT
:
print
(
"%d.%d measurement_flag %x pbch_sched_flag %x random_access_sched_flag %x dl_sched_flag %x ul_sched_flag %x"
%
(
frame
,
slot
,
measurement_flag
,
pbch_sched_flag
,
random_access_sched_flag
,
dl_sched_flag
,
ul_sched_flag
))
schedule_timing
=
struct
.
unpack
(
"30H"
,
data
[
20
:
80
])
if
DEBUG_PRINT
:
...
...
@@ -125,16 +126,17 @@ while True:
count
=
count
+
1
frame_last
=
frame
if
DEBUG_PRINT
:
print
(
schedule_data
)
elif
(
message
==
1
):
rnti
,
recv_send_flag
,
rrc_signaling_type
,
rrc_signaling_request_type
=
struct
.
unpack
(
"
4H"
,
data
[
4
:
12
])
if
DEBUG_PRINT
:
rnti
,
recv_send_flag
,
rrc_signaling_type
,
rrc_signaling_request_type
=
struct
.
unpack
(
"
2H2I"
,
data
[
4
:
16
])
#
if DEBUG_PRINT:
print
(
"rrc_signaling_type %d rrc_signaling_request_type %d"
%
(
rrc_signaling_type
,
rrc_signaling_request_type
))
if
(
recv_send_flag
==
0
)
:
print
(
"Send:UE(rnti:%x), Receive:gNB, RRC signaling:%s"
%
(
rnti
,
rrc_UE_to_gNB
[
rrc_signaling_request_type
]))
elif
(
recv_send_flag
==
1
)
:
print
(
"Send:gNB, Receive:UE(rnti:%x), RRC signaling:%s"
%
(
rnti
,
rrc_gNB_to_UE
[
rrc_signaling_type
]))
if
rrc_signaling_request_type
!=
0
:
print
(
"Send:UE(rnti:%x), Receive:gNB, RRC signaling:%s"
%
(
rnti
,
rrc_UE_to_gNB
[
rrc_signaling_request_type
-
1
]))
if
rrc_signaling_type
!=
0
:
print
(
"Send:gNB, Receive:UE(rnti:%x), RRC signaling:%s"
%
(
rnti
,
rrc_gNB_to_UE
[
rrc_signaling_type
-
1
]))
server_socket
.
close
()
openair2/RRC/NR/rrc_signaling_socket.h
View file @
8ef5460a
...
...
@@ -2,7 +2,7 @@
#define __RRC_SIGNALING_SOCKET__
typedef
enum
{
RRC_SetupRequest_manager
,
RRC_SetupRequest_manager
=
1
,
RRC_ReestablishmentRequest_manager
,
RRC_ReconfigurationComplete_manager
,
RRC_SetupComplete_manager
,
...
...
@@ -16,7 +16,7 @@ typedef enum{
}
rrc_sigaling_fromUE_t
;
typedef
enum
{
RRC_Reject_manager
,
RRC_Reject_manager
=
1
,
RRC_SETUP_manager
,
RRC_Reestablishment_manager
,
RRC_REESTABLISH_COMPLETE_manager
,
...
...
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