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
ca30b235
Commit
ca30b235
authored
Apr 04, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE SRA dev.
parent
489220a5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
src/gnb/sra/management.cpp
src/gnb/sra/management.cpp
+5
-0
src/gnb/sra/task.cpp
src/gnb/sra/task.cpp
+14
-0
src/gnb/sra/task.hpp
src/gnb/sra/task.hpp
+1
-0
No files found.
src/gnb/sra/management.cpp
View file @
ca30b235
...
@@ -35,4 +35,9 @@ void GnbSraTask::updateUeInfo(const InetAddress &addr, uint64_t sti)
...
@@ -35,4 +35,9 @@ void GnbSraTask::updateUeInfo(const InetAddress &addr, uint64_t sti)
}
}
}
}
void
GnbSraTask
::
onPeriodicLostControl
()
{
}
}
// namespace nr::gnb
}
// namespace nr::gnb
src/gnb/sra/task.cpp
View file @
ca30b235
...
@@ -14,6 +14,9 @@
...
@@ -14,6 +14,9 @@
#include <utils/constants.hpp>
#include <utils/constants.hpp>
#include <utils/libc_error.hpp>
#include <utils/libc_error.hpp>
static
const
int
TIMER_ID_LOST_CONTROL
=
1
;
static
const
int
TIMER_PERIOD_LOST_CONTROL
=
2000
;
namespace
nr
::
gnb
namespace
nr
::
gnb
{
{
...
@@ -36,6 +39,8 @@ void GnbSraTask::onStart()
...
@@ -36,6 +39,8 @@ void GnbSraTask::onStart()
quit
();
quit
();
return
;
return
;
}
}
setTimer
(
TIMER_ID_LOST_CONTROL
,
TIMER_PERIOD_LOST_CONTROL
);
}
}
void
GnbSraTask
::
onLoop
()
void
GnbSraTask
::
onLoop
()
...
@@ -57,6 +62,15 @@ void GnbSraTask::onLoop()
...
@@ -57,6 +62,15 @@ void GnbSraTask::onLoop()
receiveSraMessage
(
w
->
fromAddress
,
*
sraMsg
);
receiveSraMessage
(
w
->
fromAddress
,
*
sraMsg
);
break
;
break
;
}
}
case
NtsMessageType
:
:
TIMER_EXPIRED
:
{
auto
*
w
=
dynamic_cast
<
NwTimerExpired
*>
(
msg
);
if
(
w
->
timerId
==
TIMER_ID_LOST_CONTROL
)
{
setTimer
(
TIMER_ID_LOST_CONTROL
,
TIMER_PERIOD_LOST_CONTROL
);
onPeriodicLostControl
();
}
break
;
}
default:
default:
m_logger
->
unhandledNts
(
msg
);
m_logger
->
unhandledNts
(
msg
);
break
;
break
;
...
...
src/gnb/sra/task.hpp
View file @
ca30b235
...
@@ -54,6 +54,7 @@ class GnbSraTask : public NtsTask
...
@@ -54,6 +54,7 @@ class GnbSraTask : public NtsTask
private:
/* UE Management */
private:
/* UE Management */
void
updateUeInfo
(
const
InetAddress
&
addr
,
uint64_t
sti
);
void
updateUeInfo
(
const
InetAddress
&
addr
,
uint64_t
sti
);
void
onPeriodicLostControl
();
};
};
}
// namespace nr::gnb
}
// namespace nr::gnb
\ No newline at end of file
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