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
99a9851f
Commit
99a9851f
authored
May 28, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
0455b4d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
src/ue/app/cmd_handler.cpp
src/ue/app/cmd_handler.cpp
+41
-1
src/ue/rls/udp_task.hpp
src/ue/rls/udp_task.hpp
+2
-0
No files found.
src/ue/app/cmd_handler.cpp
View file @
99a9851f
...
...
@@ -181,12 +181,52 @@ void UeCmdHandler::handleCmdImpl(NmUeCliCommand &msg)
}
case
app
:
:
UeCliCommand
::
RLS_STATE
:
{
Json
json
=
Json
::
Obj
({
{
"STI"
,
OctetString
::
FromOctet8
(
m_base
->
rlsTask
->
m_shCtx
->
sti
).
toHexString
()},
{
"sti"
,
OctetString
::
FromOctet8
(
m_base
->
rlsTask
->
m_shCtx
->
sti
).
toHexString
()},
{
"gnb-search-space"
,
::
ToJson
(
m_base
->
config
->
gnbSearchList
)},
});
sendResult
(
msg
.
address
,
json
.
dumpYaml
());
break
;
}
case
app
:
:
UeCliCommand
::
COVERAGE
:
{
Json
json
=
Json
::
Obj
({});
const
auto
&
cells
=
m_base
->
rrcTask
->
m_cellDesc
;
for
(
auto
&
item
:
cells
)
{
auto
&
cell
=
item
.
second
;
auto
mib
=
Json
{};
auto
sib1
=
Json
{};
if
(
cell
.
mib
.
hasMib
)
{
mib
=
Json
::
Obj
({
{
"barred"
,
cell
.
mib
.
isBarred
},
{
"intra-freq-reselection"
,
std
::
string
{
cell
.
mib
.
isIntraFreqReselectAllowed
?
"allowed"
:
"not-allowed"
}},
});
}
if
(
cell
.
sib1
.
hasSib1
)
{
sib1
=
Json
::
Obj
({
{
"nr-cell-id"
,
utils
::
IntToHex
(
cell
.
sib1
.
nci
)},
{
"plmn"
,
ToJson
(
cell
.
sib1
.
plmn
)},
{
"tac"
,
cell
.
sib1
.
tac
},
{
"operator-reserved"
,
cell
.
sib1
.
isReserved
},
});
}
auto
obj
=
Json
::
Obj
({{
"signal"
,
std
::
to_string
(
cell
.
dbm
)
+
" dBm ("
+
SignalDescription
(
cell
.
dbm
)
+
")"
},
{
"mib"
,
mib
},
{
"sib1"
,
sib1
}});
json
.
put
(
"["
+
std
::
to_string
(
item
.
first
)
+
"]"
,
obj
);
}
if
(
cells
.
empty
())
json
=
"No cell available"
;
sendResult
(
msg
.
address
,
json
.
dumpYaml
());
break
;
}
}
...
...
src/ue/rls/udp_task.hpp
View file @
99a9851f
...
...
@@ -43,6 +43,8 @@ class RlsUdpTask : public NtsTask
Vector3
m_simPos
;
int
m_cellIdCounter
;
friend
class
UeCmdHandler
;
public:
explicit
RlsUdpTask
(
TaskBase
*
base
,
RlsSharedContext
*
shCtx
,
const
std
::
vector
<
std
::
string
>
&
searchSpace
);
~
RlsUdpTask
()
override
=
default
;
...
...
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