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
a81b5ff7
Commit
a81b5ff7
authored
Dec 30, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
5b87bb54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
18 deletions
+11
-18
src/ue/rls/task.cpp
src/ue/rls/task.cpp
+9
-0
src/ue/rls/udp_task.cpp
src/ue/rls/udp_task.cpp
+1
-17
src/ue/rls/udp_task.hpp
src/ue/rls/udp_task.hpp
+1
-1
No files found.
src/ue/rls/task.cpp
View file @
a81b5ff7
...
...
@@ -95,6 +95,15 @@ void UeRlsTask::onLoop()
}
break
;
}
case
NtsMessageType
:
:
UDP_SERVER_RECEIVE
:
{
auto
&
w
=
dynamic_cast
<
udp
::
NwUdpServerReceive
&>
(
*
msg
);
auto
rlsMsg
=
rls
::
DecodeRlsMessage
(
OctetView
{
w
.
packet
});
if
(
rlsMsg
==
nullptr
)
m_logger
->
err
(
"Unable to decode RLS message"
);
else
m_udpTask
->
receiveRlsPdu
(
w
.
fromAddress
,
std
::
move
(
rlsMsg
));
break
;
}
default:
m_logger
->
unhandledNts
(
*
msg
);
break
;
...
...
src/ue/rls/udp_task.cpp
View file @
a81b5ff7
...
...
@@ -29,8 +29,6 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, RlsSharedContext *shCtx)
{
m_logger
=
base
->
logBase
->
makeUniqueLogger
(
base
->
config
->
getLoggerPrefix
()
+
"rls-udp"
);
m_server
=
std
::
make_unique
<
udp
::
UdpServerTask
>
(
this
);
for
(
auto
&
ip
:
base
->
config
->
gnbSearchList
)
m_searchSpace
.
emplace_back
(
ip
,
cons
::
RadioLinkPort
);
...
...
@@ -39,6 +37,7 @@ RlsUdpTask::RlsUdpTask(TaskBase *base, RlsSharedContext *shCtx)
void
RlsUdpTask
::
onStart
()
{
m_server
=
std
::
make_unique
<
udp
::
UdpServerTask
>
(
m_base
->
rlsTask
);
m_server
->
start
();
}
...
...
@@ -50,21 +49,6 @@ void RlsUdpTask::onLoop()
m_lastLoop
=
current
;
heartbeatCycle
(
current
,
m_simPos
);
}
auto
msg
=
take
();
if
(
msg
)
{
if
(
msg
->
msgType
==
NtsMessageType
::
UDP_SERVER_RECEIVE
)
{
auto
&
w
=
dynamic_cast
<
udp
::
NwUdpServerReceive
&>
(
*
msg
);
auto
rlsMsg
=
rls
::
DecodeRlsMessage
(
OctetView
{
w
.
packet
});
if
(
rlsMsg
==
nullptr
)
m_logger
->
err
(
"Unable to decode RLS message"
);
else
receiveRlsPdu
(
w
.
fromAddress
,
std
::
move
(
rlsMsg
));
}
}
}
void
RlsUdpTask
::
onQuit
()
...
...
src/ue/rls/udp_task.hpp
View file @
a81b5ff7
...
...
@@ -57,12 +57,12 @@ class RlsUdpTask : public NtsTask
private:
void
sendRlsPdu
(
const
InetAddress
&
address
,
const
rls
::
RlsMessage
&
msg
);
void
receiveRlsPdu
(
const
InetAddress
&
address
,
std
::
unique_ptr
<
rls
::
RlsMessage
>
&&
msg
);
void
onSignalChangeOrLost
(
int
cellId
);
void
heartbeatCycle
(
uint64_t
time
,
const
Vector3
&
simPos
);
public:
void
send
(
int
cellId
,
const
rls
::
RlsMessage
&
msg
);
void
receiveRlsPdu
(
const
InetAddress
&
address
,
std
::
unique_ptr
<
rls
::
RlsMessage
>
&&
msg
);
};
}
// namespace nr::ue
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