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
cf8dff20
Commit
cf8dff20
authored
Mar 13, 2023
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation to update the RRC timers at UE
parent
670fcc04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+5
-0
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+26
-0
openair2/RRC/NR_UE/rrc_proto.h
openair2/RRC/NR_UE/rrc_proto.h
+3
-0
No files found.
executables/nr-uesoftmodem.c
View file @
cf8dff20
...
@@ -211,6 +211,11 @@ int create_tasks_nrue(uint32_t ue_nb) {
...
@@ -211,6 +211,11 @@ int create_tasks_nrue(uint32_t ue_nb) {
}
}
itti_wait_ready
(
0
);
itti_wait_ready
(
0
);
// Thread to update the RRC timers (in msec) at UE
pthread_t
timers_update
;
threadCreate
(
&
timers_update
,
nr_rrc_timers_update
,
NULL
,
"nr_rrc_timer_update"
,
-
1
,
OAI_PRIORITY_RT_LOW
);
return
0
;
return
0
;
}
}
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
cf8dff20
...
@@ -2890,3 +2890,29 @@ void process_lte_nsa_msg(nsa_msg_t *msg, int msg_len)
...
@@ -2890,3 +2890,29 @@ void process_lte_nsa_msg(nsa_msg_t *msg, int msg_len)
LOG_E
(
NR_RRC
,
"No NSA Message Found
\n
"
);
LOG_E
(
NR_RRC
,
"No NSA Message Found
\n
"
);
}
}
}
}
void
*
nr_rrc_timers_update
()
{
while
(
1
)
{
for
(
int
mod_id
=
0
;
mod_id
<
NB_NR_UE_INST
;
mod_id
++
)
{
for
(
int
i
=
0
;
i
<
NB_SIG_CNX_UE
;
i
++
)
{
NR_UE_RRC_INFO
*
timers
=
&
NR_UE_rrc_inst
[
mod_id
].
Info
[
i
];
// T304
if
(
timers
->
T304_active
==
1
)
{
if
((
timers
->
T304_cnt
%
100
)
==
0
)
{
LOG_W
(
NR_RRC
,
"T304: %u
\n
"
,
timers
->
T304_cnt
);
}
if
(
timers
->
T304_cnt
==
1
)
{
timers
->
T304_active
=
0
;
}
timers
->
T304_cnt
--
;
}
}
}
usleep
(
1000
);
}
}
openair2/RRC/NR_UE/rrc_proto.h
View file @
cf8dff20
...
@@ -162,6 +162,9 @@ int8_t nr_rrc_RA_succeeded(const module_id_t mod_id, const uint8_t gNB_index);
...
@@ -162,6 +162,9 @@ int8_t nr_rrc_RA_succeeded(const module_id_t mod_id, const uint8_t gNB_index);
\param void *args_p Pointer on arguments to start the task. */
\param void *args_p Pointer on arguments to start the task. */
void
*
rrc_nrue_task
(
void
*
args_p
);
void
*
rrc_nrue_task
(
void
*
args_p
);
/**\brief RRC timers update at UE. */
void
*
nr_rrc_timers_update
();
/**\brief RRC NSA UE task.
/**\brief RRC NSA UE task.
\param void *args_p Pointer on arguments to start the task. */
\param void *args_p Pointer on arguments to start the task. */
void
*
recv_msgs_from_lte_ue
(
void
*
args_p
);
void
*
recv_msgs_from_lte_ue
(
void
*
args_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