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
31f77086
Commit
31f77086
authored
May 17, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
250f5738
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
13 deletions
+30
-13
src/ue/rrc/idle.cpp
src/ue/rrc/idle.cpp
+25
-11
src/ue/rrc/task.cpp
src/ue/rrc/task.cpp
+2
-0
src/ue/rrc/task.hpp
src/ue/rrc/task.hpp
+3
-2
No files found.
src/ue/rrc/idle.cpp
View file @
31f77086
...
...
@@ -22,28 +22,42 @@ void UeRrcTask::performCellSelection()
if
(
m_state
==
ERrcState
::
RRC_CONNECTED
)
return
;
if
(
utils
::
CurrentTimeMillis
()
-
m_startedTime
<=
1000LL
&&
m_cellDesc
.
empty
())
return
;
int
lastCell
=
m_base
->
shCtx
.
currentCell
.
get
<
int
>
([](
auto
&
value
)
{
return
value
.
cellId
;
});
CurrentCellInfo
cellInfo
;
CellSelectionReport
report
;
if
(
!
lookForSuitableCell
(
cellInfo
,
report
))
bool
cellFound
=
false
;
if
(
m_base
->
shCtx
.
selectedPlmn
.
get
().
hasValue
())
{
if
(
!
m_cellDesc
.
empty
())
{
m_logger
->
warn
(
"Suitable cell selection failed in [%d] cells. [%d] out of PLMN, [%d] no SI, [%d] reserved, "
"[%d] barred, ftai [%d]"
,
static_cast
<
int
>
(
m_cellDesc
.
size
()),
report
.
outOfPlmnCells
,
report
.
sib1MissingCells
,
report
.
reservedCells
,
report
.
barredCells
,
report
.
forbiddenTaiCells
);
}
else
cellFound
=
lookForSuitableCell
(
cellInfo
,
report
);
if
(
!
cellFound
)
{
m_logger
->
warn
(
"Suitable cell selection failed, no cell is in coverage"
);
if
(
!
m_cellDesc
.
empty
())
{
m_logger
->
warn
(
"Suitable cell selection failed in [%d] cells. [%d] out of PLMN, [%d] no SI, [%d] reserved, "
"[%d] barred, ftai [%d]"
,
static_cast
<
int
>
(
m_cellDesc
.
size
()),
report
.
outOfPlmnCells
,
report
.
sib1MissingCells
,
report
.
reservedCells
,
report
.
barredCells
,
report
.
forbiddenTaiCells
);
}
else
{
m_logger
->
warn
(
"Suitable cell selection failed, no cell is in coverage"
);
}
}
}
if
(
!
cellFound
)
{
report
=
{};
if
(
!
lookForAcceptableCell
(
cellInfo
,
report
))
cellFound
=
lookForAcceptableCell
(
cellInfo
,
report
);
if
(
!
cellFound
)
{
if
(
!
m_cellDesc
.
empty
())
{
...
...
src/ue/rrc/task.cpp
View file @
31f77086
...
...
@@ -27,6 +27,8 @@ UeRrcTask::UeRrcTask(TaskBase *base) : m_base{base}
{
m_logger
=
base
->
logBase
->
makeUniqueLogger
(
base
->
config
->
getLoggerPrefix
()
+
"rrc"
);
m_startedTime
=
utils
::
CurrentTimeMillis
();
m_state
=
ERrcState
::
RRC_IDLE
;
}
...
...
src/ue/rrc/task.hpp
View file @
31f77086
...
...
@@ -50,14 +50,15 @@ class UeRrcTask : public NtsTask
private:
TaskBase
*
m_base
;
std
::
unique_ptr
<
Logger
>
m_logger
;
int64_t
m_startedTime
;
ERrcState
m_state
;
std
::
unordered_map
<
int
,
UeCellDesc
>
m_cellDesc
{};
ERrcLastSetupRequest
m_lastSetupReq
{};
ASN_RRC_InitialUE_Identity_t
m_initialId
{};
OctetString
m_initialNasPdu
{};
std
::
unordered_map
<
int
,
UeCellDesc
>
m_cellDesc
{};
friend
class
UeCmdHandler
;
...
...
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