Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
Libraries
UERANSIM
Commits
510cbb63
Commit
510cbb63
authored
May 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RRC developments
parent
0bcefde1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
src/ue/rrc/state.cpp
src/ue/rrc/state.cpp
+25
-0
src/ue/rrc/task.cpp
src/ue/rrc/task.cpp
+13
-0
src/ue/rrc/task.hpp
src/ue/rrc/task.hpp
+3
-0
No files found.
src/ue/rrc/state.cpp
0 → 100644
View file @
510cbb63
//
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#include "task.hpp"
#include <lib/asn/rrc.hpp>
#include <lib/asn/utils.hpp>
#include <lib/rrc/encode.hpp>
#include <ue/nas/task.hpp>
namespace
nr
::
ue
{
void
UeRrcTask
::
performCycle
()
{
// TODO
}
}
// namespace nr::ue
\ No newline at end of file
src/ue/rrc/task.cpp
View file @
510cbb63
...
...
@@ -17,6 +17,9 @@
#include <ue/rls/task.hpp>
#include <utils/common.hpp>
static
constexpr
const
int
TIMER_ID_MACHINE_CYCLE
=
1
;
static
constexpr
const
int
TIMER_PERIOD_MACHINE_CYCLE
=
2500
;
namespace
nr
::
ue
{
...
...
@@ -29,6 +32,7 @@ UeRrcTask::UeRrcTask(TaskBase *base) : m_base{base}
void
UeRrcTask
::
onStart
()
{
setTimer
(
TIMER_ID_MACHINE_CYCLE
,
TIMER_PERIOD_MACHINE_CYCLE
);
}
void
UeRrcTask
::
onQuit
()
...
...
@@ -69,6 +73,15 @@ void UeRrcTask::onLoop()
handleRlsSapMessage
(
*
dynamic_cast
<
NwUeRlsToRrc
*>
(
msg
));
break
;
}
case
NtsMessageType
:
:
TIMER_EXPIRED
:
{
auto
*
w
=
dynamic_cast
<
NwTimerExpired
*>
(
msg
);
if
(
w
->
timerId
==
TIMER_ID_MACHINE_CYCLE
)
{
setTimer
(
TIMER_ID_MACHINE_CYCLE
,
TIMER_PERIOD_MACHINE_CYCLE
);
performCycle
();
}
break
;
}
default:
m_logger
->
unhandledNts
(
msg
);
break
;
...
...
src/ue/rrc/task.hpp
View file @
510cbb63
...
...
@@ -97,6 +97,9 @@ class UeRrcTask : public NtsTask
/* RLS Service Access Point */
void
handleRlsSapMessage
(
NwUeRlsToRrc
&
msg
);
/* State Management */
void
performCycle
();
/* Cell Management */
void
handleCellSignalChange
(
int
cellId
,
int
dbm
);
void
notifyCellDetected
(
int
cellId
,
int
dbm
);
...
...
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