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)
...
@@ -195,7 +195,7 @@ void NgapTask::receiveNgSetupResponse(int amfId, ASN_NGAP_NGSetupResponse *msg)
update
->
isNgapUp
=
true
;
update
->
isNgapUp
=
true
;
m_base
->
appTask
->
push
(
update
);
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
...
@@ -48,6 +48,7 @@ struct NwGnbRrcToSra : NtsMessage
{
{
enum
PR
enum
PR
{
{
RADIO_POWER_ON
,
RRC_PDU_DELIVERY
,
RRC_PDU_DELIVERY
,
}
present
;
}
present
;
...
@@ -65,7 +66,7 @@ struct NwGnbNgapToRrc : NtsMessage
...
@@ -65,7 +66,7 @@ struct NwGnbNgapToRrc : NtsMessage
{
{
enum
PR
enum
PR
{
{
NGAP_LAYER_INITIALIZED
,
RADIO_POWER_ON
,
NAS_DELIVERY
,
NAS_DELIVERY
,
AN_RELEASE
,
AN_RELEASE
,
}
present
;
}
present
;
...
...
src/gnb/rrc/task.cpp
View file @
1dfa1434
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <asn/rrc/ASN_RRC_DLInformationTransfer-IEs.h>
#include <asn/rrc/ASN_RRC_DLInformationTransfer-IEs.h>
#include <asn/rrc/ASN_RRC_DLInformationTransfer.h>
#include <asn/rrc/ASN_RRC_DLInformationTransfer.h>
#include <gnb/nts.hpp>
#include <gnb/nts.hpp>
#include <gnb/sra/task.hpp>
#include <rrc/encode.hpp>
#include <rrc/encode.hpp>
namespace
nr
::
gnb
namespace
nr
::
gnb
...
@@ -56,8 +57,8 @@ void GnbRrcTask::onLoop()
...
@@ -56,8 +57,8 @@ void GnbRrcTask::onLoop()
auto
*
w
=
dynamic_cast
<
NwGnbNgapToRrc
*>
(
msg
);
auto
*
w
=
dynamic_cast
<
NwGnbNgapToRrc
*>
(
msg
);
switch
(
w
->
present
)
switch
(
w
->
present
)
{
{
case
NwGnbNgapToRrc
:
:
NGAP_LAYER_INITIALIZED
:
{
case
NwGnbNgapToRrc
:
:
RADIO_POWER_ON
:
{
//m_base->mrTask->push(new NwGnbRrcToMr(NwGnbRrcToMr::NGAP_LAYER_INITIALIZED
));
m_base
->
sraTask
->
push
(
new
NwGnbRrcToSra
(
NwGnbRrcToSra
::
RADIO_POWER_ON
));
break
;
break
;
}
}
case
NwGnbNgapToRrc
:
:
NAS_DELIVERY
:
{
case
NwGnbNgapToRrc
:
:
NAS_DELIVERY
:
{
...
...
src/gnb/sra/task.cpp
View file @
1dfa1434
...
@@ -60,6 +60,10 @@ void GnbSraTask::onLoop()
...
@@ -60,6 +60,10 @@ void GnbSraTask::onLoop()
OctetString
::
FromOctet4
(
static_cast
<
int
>
(
w
->
channel
)));
OctetString
::
FromOctet4
(
static_cast
<
int
>
(
w
->
channel
)));
break
;
break
;
}
}
case
NwGnbRrcToSra
:
:
RADIO_POWER_ON
:
{
m_powerOn
=
true
;
break
;
}
}
}
break
;
break
;
}
}
...
...
src/gnb/sra/task.hpp
View file @
1dfa1434
...
@@ -29,6 +29,7 @@ class GnbSraTask : public NtsTask
...
@@ -29,6 +29,7 @@ class GnbSraTask : public NtsTask
std
::
unique_ptr
<
Logger
>
m_logger
;
std
::
unique_ptr
<
Logger
>
m_logger
;
udp
::
UdpServerTask
*
m_udpTask
;
udp
::
UdpServerTask
*
m_udpTask
;
bool
m_powerOn
;
uint64_t
m_sti
;
uint64_t
m_sti
;
std
::
unordered_map
<
int
,
std
::
unique_ptr
<
SraUeContext
>>
m_ueCtx
;
std
::
unordered_map
<
int
,
std
::
unique_ptr
<
SraUeContext
>>
m_ueCtx
;
std
::
unordered_map
<
uint64_t
,
int
>
m_stiToUeId
;
std
::
unordered_map
<
uint64_t
,
int
>
m_stiToUeId
;
...
...
src/gnb/sra/transport.cpp
View file @
1dfa1434
...
@@ -13,6 +13,12 @@ namespace nr::gnb
...
@@ -13,6 +13,12 @@ namespace nr::gnb
void
GnbSraTask
::
receiveSraMessage
(
const
InetAddress
&
addr
,
sra
::
SraMessage
&
msg
)
void
GnbSraTask
::
receiveSraMessage
(
const
InetAddress
&
addr
,
sra
::
SraMessage
&
msg
)
{
{
if
(
!
m_powerOn
)
{
// ignore received SRA message
return
;
}
int
ueId
=
updateUeInfo
(
addr
,
msg
.
sti
);
int
ueId
=
updateUeInfo
(
addr
,
msg
.
sti
);
switch
(
msg
.
msgType
)
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