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
1dfa1434
Commit
1dfa1434
authored
Apr 04, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SRA dev.
parent
63ce8208
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
4 deletions
+17
-4
src/gnb/ngap/interface.cpp
src/gnb/ngap/interface.cpp
+1
-1
src/gnb/nts.hpp
src/gnb/nts.hpp
+2
-1
src/gnb/rrc/task.cpp
src/gnb/rrc/task.cpp
+3
-2
src/gnb/sra/task.cpp
src/gnb/sra/task.cpp
+4
-0
src/gnb/sra/task.hpp
src/gnb/sra/task.hpp
+1
-0
src/gnb/sra/transport.cpp
src/gnb/sra/transport.cpp
+6
-0
No files found.
src/gnb/ngap/interface.cpp
View file @
1dfa1434
...
...
@@ -195,7 +195,7 @@ void NgapTask::receiveNgSetupResponse(int amfId, ASN_NGAP_NGSetupResponse *msg)
update
->
isNgapUp
=
true
;
m_base
->
appTask
->
push
(
update
);
m_base
->
rrcTask
->
push
(
new
NwGnbNgapToRrc
(
NwGnbNgapToRrc
::
NGAP_LAYER_INITIALIZED
));
m_base
->
rrcTask
->
push
(
new
NwGnbNgapToRrc
(
NwGnbNgapToRrc
::
RADIO_POWER_ON
));
}
}
...
...
src/gnb/nts.hpp
View file @
1dfa1434
...
...
@@ -48,6 +48,7 @@ struct NwGnbRrcToSra : NtsMessage
{
enum
PR
{
RADIO_POWER_ON
,
RRC_PDU_DELIVERY
,
}
present
;
...
...
@@ -65,7 +66,7 @@ struct NwGnbNgapToRrc : NtsMessage
{
enum
PR
{
NGAP_LAYER_INITIALIZED
,
RADIO_POWER_ON
,
NAS_DELIVERY
,
AN_RELEASE
,
}
present
;
...
...
src/gnb/rrc/task.cpp
View file @
1dfa1434
...
...
@@ -10,6 +10,7 @@
#include <asn/rrc/ASN_RRC_DLInformationTransfer-IEs.h>
#include <asn/rrc/ASN_RRC_DLInformationTransfer.h>
#include <gnb/nts.hpp>
#include <gnb/sra/task.hpp>
#include <rrc/encode.hpp>
namespace
nr
::
gnb
...
...
@@ -56,8 +57,8 @@ void GnbRrcTask::onLoop()
auto
*
w
=
dynamic_cast
<
NwGnbNgapToRrc
*>
(
msg
);
switch
(
w
->
present
)
{
case
NwGnbNgapToRrc
:
:
NGAP_LAYER_INITIALIZED
:
{
//m_base->mrTask->push(new NwGnbRrcToMr(NwGnbRrcToMr::NGAP_LAYER_INITIALIZED
));
case
NwGnbNgapToRrc
:
:
RADIO_POWER_ON
:
{
m_base
->
sraTask
->
push
(
new
NwGnbRrcToSra
(
NwGnbRrcToSra
::
RADIO_POWER_ON
));
break
;
}
case
NwGnbNgapToRrc
:
:
NAS_DELIVERY
:
{
...
...
src/gnb/sra/task.cpp
View file @
1dfa1434
...
...
@@ -60,6 +60,10 @@ void GnbSraTask::onLoop()
OctetString
::
FromOctet4
(
static_cast
<
int
>
(
w
->
channel
)));
break
;
}
case
NwGnbRrcToSra
:
:
RADIO_POWER_ON
:
{
m_powerOn
=
true
;
break
;
}
}
break
;
}
...
...
src/gnb/sra/task.hpp
View file @
1dfa1434
...
...
@@ -29,6 +29,7 @@ class GnbSraTask : public NtsTask
std
::
unique_ptr
<
Logger
>
m_logger
;
udp
::
UdpServerTask
*
m_udpTask
;
bool
m_powerOn
;
uint64_t
m_sti
;
std
::
unordered_map
<
int
,
std
::
unique_ptr
<
SraUeContext
>>
m_ueCtx
;
std
::
unordered_map
<
uint64_t
,
int
>
m_stiToUeId
;
...
...
src/gnb/sra/transport.cpp
View file @
1dfa1434
...
...
@@ -13,6 +13,12 @@ namespace nr::gnb
void
GnbSraTask
::
receiveSraMessage
(
const
InetAddress
&
addr
,
sra
::
SraMessage
&
msg
)
{
if
(
!
m_powerOn
)
{
// ignore received SRA message
return
;
}
int
ueId
=
updateUeInfo
(
addr
,
msg
.
sti
);
switch
(
msg
.
msgType
)
...
...
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