Commit ca30b235 authored by aligungr's avatar aligungr

UE SRA dev.

parent 489220a5
...@@ -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
...@@ -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;
......
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment