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
5938236d
Commit
5938236d
authored
Apr 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Service Request on uplink data pending
parent
069fb23c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
src/ue/nas/mm/interface.cpp
src/ue/nas/mm/interface.cpp
+14
-0
src/ue/nas/mm/mm.hpp
src/ue/nas/mm/mm.hpp
+3
-0
src/ue/nas/sm/resource.cpp
src/ue/nas/sm/resource.cpp
+3
-1
No files found.
src/ue/nas/mm/interface.cpp
View file @
5938236d
...
...
@@ -10,6 +10,8 @@
#include <utils/common.hpp>
static
constexpr
const
int64_t
SERVICE_REQUEST_NEEDED_FOR_DATA_THRESHOLD
=
1000
;
namespace
nr
::
ue
{
...
...
@@ -76,4 +78,16 @@ bool NasMm::isRegisteredForEmergency()
return
isRegistered
()
&&
m_registeredForEmergency
;
}
void
NasMm
::
serviceNeededForUplinkData
()
{
auto
currentTime
=
utils
::
CurrentTimeMillis
();
if
(
currentTime
-
m_lastTimeServiceReqNeededIndForData
<=
SERVICE_REQUEST_NEEDED_FOR_DATA_THRESHOLD
)
{
sendServiceRequest
(
m_cmState
==
ECmState
::
CM_CONNECTED
?
EServiceReqCause
::
CONNECTED_UPLINK_DATA_PENDING
:
EServiceReqCause
::
IDLE_UPLINK_DATA_PENDING
);
m_lastTimeServiceReqNeededIndForData
=
currentTime
;
}
}
}
// namespace nr::ue
src/ue/nas/mm/mm.hpp
View file @
5938236d
...
...
@@ -56,6 +56,8 @@ class NasMm
bool
m_registeredForEmergency
{};
// Network feature support information
nas
::
IE5gsNetworkFeatureSupport
m_nwFeatureSupport
{};
// Last time Service Request needed indication for Data
long
m_lastTimeServiceReqNeededIndForData
{};
friend
class
UeCmdHandler
;
...
...
@@ -173,6 +175,7 @@ class NasMm
void
deliverUlTransport
(
const
nas
::
UlNasTransport
&
msg
);
// used by SM
bool
isRegistered
();
// used by SM
bool
isRegisteredForEmergency
();
// used by SM
void
serviceNeededForUplinkData
();
// used by SM
};
}
// namespace nr::ue
\ No newline at end of file
src/ue/nas/sm/resource.cpp
View file @
5938236d
...
...
@@ -11,6 +11,7 @@
#include <nas/proto_conf.hpp>
#include <nas/utils.hpp>
#include <ue/app/task.hpp>
#include <ue/nas/mm/mm.hpp>
namespace
nr
::
ue
{
...
...
@@ -64,7 +65,8 @@ void NasSm::handleUplinkStatusChange(int psi, bool isPending)
m_pduSessions
[
psi
]
->
uplinkPending
=
isPending
;
// TODO
if
(
isPending
)
m_mm
->
serviceNeededForUplinkData
();
}
bool
NasSm
::
anyUplinkDataPending
()
...
...
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