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
739be8b1
Commit
739be8b1
authored
May 10, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RLS improvements
parent
79d9171f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
1 deletion
+107
-1
src/gnb/rls/ctl_task.cpp
src/gnb/rls/ctl_task.cpp
+67
-0
src/gnb/rls/ctl_task.hpp
src/gnb/rls/ctl_task.hpp
+39
-0
src/gnb/rls/udp_task.cpp
src/gnb/rls/udp_task.cpp
+1
-1
No files found.
src/gnb/rls/ctl_task.cpp
0 → 100644
View file @
739be8b1
//
// 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 "ctl_task.hpp"
namespace
nr
::
gnb
{
RlsControlTask
::
RlsControlTask
(
TaskBase
*
base
)
:
m_udpTask
{}
{
m_logger
=
base
->
logBase
->
makeUniqueLogger
(
"rls-ctl"
);
}
void
RlsControlTask
::
initialize
(
RlsUdpTask
*
udpTask
)
{
m_udpTask
=
udpTask
;
}
void
RlsControlTask
::
onStart
()
{
}
void
RlsControlTask
::
onLoop
()
{
NtsMessage
*
msg
=
take
();
if
(
!
msg
)
return
;
switch
(
msg
->
msgType
)
{
case
NtsMessageType
:
:
GNB_RLS_TO_RLS
:
{
auto
*
w
=
dynamic_cast
<
NwGnbRlsToRls
*>
(
msg
);
switch
(
w
->
present
)
{
case
NwGnbRlsToRls
:
:
SIGNAL_DETECTED
:
// TODO
break
;
case
NwGnbRlsToRls
:
:
SIGNAL_LOST
:
// TODO
break
;
case
NwGnbRlsToRls
:
:
RECEIVE_RLS_MESSAGE
:
// TODO
break
;
default:
m_logger
->
unhandledNts
(
msg
);
break
;
}
break
;
}
default:
m_logger
->
unhandledNts
(
msg
);
break
;
}
delete
msg
;
}
void
RlsControlTask
::
onQuit
()
{
}
}
// namespace nr::gnb
src/gnb/rls/ctl_task.hpp
0 → 100644
View file @
739be8b1
//
// 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.
//
#pragma once
#include "udp_task.hpp"
#include <gnb/nts.hpp>
#include <gnb/types.hpp>
#include <utils/nts.hpp>
namespace
nr
::
gnb
{
class
RlsControlTask
:
public
NtsTask
{
private:
std
::
unique_ptr
<
Logger
>
m_logger
;
RlsUdpTask
*
m_udpTask
;
public:
explicit
RlsControlTask
(
TaskBase
*
base
);
~
RlsControlTask
()
override
=
default
;
protected:
void
onStart
()
override
;
void
onLoop
()
override
;
void
onQuit
()
override
;
public:
void
initialize
(
RlsUdpTask
*
udpTask
);
};
}
// namespace nr::ue
\ No newline at end of file
src/gnb/rls/udp_task.cpp
View file @
739be8b1
...
@@ -44,7 +44,7 @@ namespace nr::gnb
...
@@ -44,7 +44,7 @@ namespace nr::gnb
RlsUdpTask
::
RlsUdpTask
(
TaskBase
*
base
,
uint64_t
sti
,
Vector3
phyLocation
)
RlsUdpTask
::
RlsUdpTask
(
TaskBase
*
base
,
uint64_t
sti
,
Vector3
phyLocation
)
:
m_ctlTask
{},
m_sti
{
sti
},
m_phyLocation
{
phyLocation
},
m_lastLoop
{},
m_stiToUe
{},
m_ueMap
{},
m_newIdCounter
{}
:
m_ctlTask
{},
m_sti
{
sti
},
m_phyLocation
{
phyLocation
},
m_lastLoop
{},
m_stiToUe
{},
m_ueMap
{},
m_newIdCounter
{}
{
{
m_logger
=
base
->
logBase
->
makeUniqueLogger
(
"rls"
);
m_logger
=
base
->
logBase
->
makeUniqueLogger
(
"rls
-udp
"
);
try
try
{
{
...
...
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