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
8748cc21
Commit
8748cc21
authored
May 13, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RRC developments
parent
80bf2caa
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
5 deletions
+35
-5
src/gnb/nts.hpp
src/gnb/nts.hpp
+0
-1
src/gnb/rls/ctl_task.cpp
src/gnb/rls/ctl_task.cpp
+7
-0
src/gnb/rls/task.cpp
src/gnb/rls/task.cpp
+16
-0
src/gnb/rls/udp_task.cpp
src/gnb/rls/udp_task.cpp
+7
-0
src/gnb/rrc/task.cpp
src/gnb/rrc/task.cpp
+3
-2
src/gnb/rrc/task.hpp
src/gnb/rrc/task.hpp
+2
-2
No files found.
src/gnb/nts.hpp
View file @
8748cc21
...
...
@@ -145,7 +145,6 @@ struct NwGnbRrcToRls : NtsMessage
{
enum
PR
{
RADIO_POWER_ON
,
RRC_PDU_DELIVERY
,
}
present
;
...
...
src/gnb/rls/ctl_task.cpp
View file @
8748cc21
...
...
@@ -8,6 +8,7 @@
#include "ctl_task.hpp"
#include <stdexcept>
#include <utils/common.hpp>
static
constexpr
const
size_t
MAX_PDU_COUNT
=
4096
;
...
...
@@ -156,6 +157,12 @@ void RlsControlTask::handleRlsMessage(int ueId, rls::RlsMessage &msg)
void
RlsControlTask
::
handleDownlinkRrcDelivery
(
int
ueId
,
uint32_t
pduId
,
rrc
::
RrcChannel
channel
,
OctetString
&&
data
)
{
if
(
ueId
==
0
&&
pduId
!=
0
)
{
// PDU ID must be not set in case of broadcast
throw
std
::
runtime_error
(
""
);
}
if
(
pduId
!=
0
)
{
if
(
m_pduMap
.
count
(
pduId
))
...
...
src/gnb/rls/task.cpp
View file @
8748cc21
...
...
@@ -74,6 +74,22 @@ void GnbRlsTask::onLoop()
}
break
;
}
case
NtsMessageType
:
:
GNB_RRC_TO_RLS
:
{
auto
*
w
=
dynamic_cast
<
NwGnbRrcToRls
*>
(
msg
);
switch
(
w
->
present
)
{
case
NwGnbRrcToRls
:
:
RRC_PDU_DELIVERY
:
{
auto
*
m
=
new
NwGnbRlsToRls
(
NwGnbRlsToRls
::
DOWNLINK_RRC
);
m
->
ueId
=
w
->
ueId
;
m
->
rrcChannel
=
w
->
channel
;
m
->
pduId
=
0
;
m
->
data
=
std
::
move
(
w
->
pdu
);
m_ctlTask
->
push
(
m
);
break
;
}
}
break
;
}
default:
m_logger
->
unhandledNts
(
msg
);
break
;
...
...
src/gnb/rls/udp_task.cpp
View file @
8748cc21
...
...
@@ -182,6 +182,13 @@ void RlsUdpTask::initialize(NtsTask *ctlTask)
void
RlsUdpTask
::
send
(
int
ueId
,
const
rls
::
RlsMessage
&
msg
)
{
if
(
ueId
==
0
)
{
for
(
auto
&
ue
:
m_ueMap
)
send
(
ue
.
first
,
msg
);
return
;
}
if
(
!
m_ueMap
.
count
(
ueId
))
{
// ignore the message
...
...
src/gnb/rrc/task.cpp
View file @
8748cc21
...
...
@@ -16,7 +16,7 @@
#include <asn/rrc/ASN_RRC_DLInformationTransfer.h>
static
constexpr
const
int
TIMER_ID_SI_BROADCAST
=
1
;
static
constexpr
const
int
TIMER_PERIOD_SI_BROADCAST
=
5
000
;
static
constexpr
const
int
TIMER_PERIOD_SI_BROADCAST
=
10'
000
;
namespace
nr
::
gnb
{
...
...
@@ -64,7 +64,8 @@ void GnbRrcTask::onLoop()
switch
(
w
->
present
)
{
case
NwGnbNgapToRrc
:
:
RADIO_POWER_ON
:
{
m_base
->
rlsTask
->
push
(
new
NwGnbRrcToRls
(
NwGnbRrcToRls
::
RADIO_POWER_ON
));
m_isBarred
=
false
;
triggerSysInfoBroadcast
();
break
;
}
case
NwGnbNgapToRrc
:
:
NAS_DELIVERY
:
{
...
...
src/gnb/rrc/task.hpp
View file @
8748cc21
...
...
@@ -46,8 +46,8 @@ class GnbRrcTask : public NtsTask
std
::
unordered_map
<
int
,
RrcUeContext
*>
m_ueCtx
;
int
m_tidCounter
;
bool
m_isBarred
=
fals
e
;
bool
m_intraFreqReselectAllowed
=
fals
e
;
bool
m_isBarred
=
tru
e
;
bool
m_intraFreqReselectAllowed
=
tru
e
;
friend
class
GnbCmdHandler
;
...
...
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