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
85da3bc4
Commit
85da3bc4
authored
May 15, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RRC developments
parent
aec9c136
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
21 deletions
+39
-21
src/gnb/nts.hpp
src/gnb/nts.hpp
+2
-8
src/gnb/rls/task.cpp
src/gnb/rls/task.cpp
+4
-1
src/gnb/rrc/rls_sap.cpp
src/gnb/rrc/rls_sap.cpp
+29
-0
src/gnb/rrc/task.cpp
src/gnb/rrc/task.cpp
+1
-12
src/gnb/rrc/task.hpp
src/gnb/rrc/task.hpp
+3
-0
No files found.
src/gnb/nts.hpp
View file @
85da3bc4
...
...
@@ -36,18 +36,12 @@ struct NwGnbRlsToRrc : NtsMessage
{
enum
PR
{
RRC_PDU_DELIVERY
,
SIGNAL_LOST
SIGNAL_DETECTED
,
}
present
;
// RRC_PDU_DELIVERY
// SIGNAL_LOST
// SIGNAL_DETECTED
int
ueId
{};
// RRC_PDU_DELIVERY
rrc
::
RrcChannel
channel
{};
OctetString
pdu
{};
explicit
NwGnbRlsToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
GNB_RLS_TO_RRC
),
present
(
present
)
{
}
...
...
src/gnb/rls/task.cpp
View file @
85da3bc4
...
...
@@ -8,6 +8,7 @@
#include "task.hpp"
#include <gnb/rrc/task.hpp>
#include <utils/common.hpp>
namespace
nr
::
gnb
...
...
@@ -44,7 +45,9 @@ void GnbRlsTask::onLoop()
switch
(
w
->
present
)
{
case
NwGnbRlsToRls
:
:
SIGNAL_DETECTED
:
{
m_logger
->
debug
(
"new UE[%d] detected"
,
w
->
ueId
);
auto
*
m
=
new
NwGnbRlsToRrc
(
NwGnbRlsToRrc
::
SIGNAL_DETECTED
);
m
->
ueId
=
w
->
ueId
;
m_base
->
rrcTask
->
push
(
m
);
break
;
}
case
NwGnbRlsToRls
:
:
SIGNAL_LOST
:
{
...
...
src/gnb/rrc/rls_sap.cpp
0 → 100644
View file @
85da3bc4
//
// 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 <gnb/ngap/task.hpp>
#include <lib/rrc/encode.hpp>
namespace
nr
::
gnb
{
void
GnbRrcTask
::
handleRlsSapMessage
(
NwGnbRlsToRrc
&
msg
)
{
switch
(
msg
.
present
)
{
case
NwGnbRlsToRrc
:
:
SIGNAL_DETECTED
:
{
m_logger
->
info
(
"UE[%d] new signal detected"
,
msg
.
ueId
);
triggerSysInfoBroadcast
();
break
;
}
}
}
}
// namespace nr::gnb
src/gnb/rrc/task.cpp
View file @
85da3bc4
...
...
@@ -46,18 +46,7 @@ void GnbRrcTask::onLoop()
switch
(
msg
->
msgType
)
{
case
NtsMessageType
:
:
GNB_RLS_TO_RRC
:
{
auto
*
w
=
dynamic_cast
<
NwGnbRlsToRrc
*>
(
msg
);
switch
(
w
->
present
)
{
case
NwGnbRlsToRrc
:
:
RRC_PDU_DELIVERY
:
{
handleUplinkRrc
(
w
->
ueId
,
w
->
channel
,
w
->
pdu
);
break
;
}
case
NwGnbRlsToRrc
:
:
SIGNAL_LOST
:
{
handleRadioLinkFailure
(
w
->
ueId
);
break
;
}
}
handleRlsSapMessage
(
*
dynamic_cast
<
NwGnbRlsToRrc
*>
(
msg
));
break
;
}
case
NtsMessageType
:
:
GNB_NGAP_TO_RRC
:
{
...
...
src/gnb/rrc/task.hpp
View file @
85da3bc4
...
...
@@ -101,6 +101,9 @@ class GnbRrcTask : public NtsTask
/* System Information Broadcast related */
void
onBroadcastTimerExpired
();
void
triggerSysInfoBroadcast
();
/* RLS Service Access Point */
void
handleRlsSapMessage
(
NwGnbRlsToRrc
&
msg
);
};
}
// namespace nr::gnb
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