Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
zzha zzha
OpenXG-RAN
Commits
7265feb4
Commit
7265feb4
authored
May 17, 2022
by
Arash Sahbafard
Committed by
laurent
Aug 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Telnetsrv cmd to print TA values in UE
parent
e494c11b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
common/utils/telnetsrv/telnetsrv_5Gue_measurements.c
common/utils/telnetsrv/telnetsrv_5Gue_measurements.c
+13
-0
No files found.
common/utils/telnetsrv/telnetsrv_5Gue_measurements.c
View file @
7265feb4
...
...
@@ -58,12 +58,14 @@ void measurcmd_display_rlcstats(telnet_printfunc_t prnt);
void
measurcmd_display_phycpu
(
telnet_printfunc_t
prnt
);
void
measurcmd_display_maccpu
(
telnet_printfunc_t
prnt
);
void
measurcmd_display_pdcpcpu
(
telnet_printfunc_t
prnt
);
void
measurcmd_display_phyta
(
telnet_printfunc_t
prnt
);
static
telnet_measurgroupdef_t
nrUEmeasurgroups
[]
=
{
// {"ue", GROUP_LTESTATS,0, measurcmd_display_macstats, {NULL}},
// {"rlc", GROUP_LTESTATS,0, measurcmd_display_rlcstats, {NULL}},
{
"phycpu"
,
GROUP_CPUSTATS
,
0
,
measurcmd_display_phycpu
,
{
NULL
}},
{
"phyta"
,
GROUP_CPUSTATS
,
0
,
measurcmd_display_phyta
,
{
NULL
}},
// {"maccpu",GROUP_CPUSTATS,0, measurcmd_display_maccpu, {NULL}},
// {"pdcpcpu",GROUP_CPUSTATS,0, measurcmd_display_pdcpcpu, {NULL}},
};
...
...
@@ -89,6 +91,17 @@ void measurcmd_display_phycpu(telnet_printfunc_t prnt) {
PRINT_CPUMEAS_STATE
,
HDR
);
measurcmd_display_cpumeasures
(
prnt
,
cpumeasur
,
sizeof
(
cpumeasur
)
/
sizeof
(
telnet_cpumeasurdef_t
));
}
void
measurcmd_display_phyta
(
telnet_printfunc_t
prnt
)
{
PHY_VARS_NR_UE
*
UE
=
PHY_vars_UE_g
[
0
][
0
];
prnt
(
"%s PHY TA stats
\n
"
,
HDR
);
prnt
(
"N_TA_offset %d
\n
"
,
UE
->
N_TA_offset
);
for
(
int
i
=
0
;
i
<
UE
->
n_connected_gNB
;
++
i
)
{
NR_UL_TIME_ALIGNMENT_t
*
ta
=
&
UE
->
ul_time_alignment
[
i
];
prnt
(
"gNB %d TA command %d TA total %d TAG ID %d
\n
"
,
i
,
ta
->
ta_command
,
ta
->
ta_total
,
ta
->
tag_id
);
}
prnt
(
"timing_advance %d (samples)
\n
"
,
UE
->
timing_advance
);
}
/*
void measurcmd_display_maccpu(telnet_printfunc_t prnt) {
eNB_MAC_INST *macvars = RC.mac[eNB_id];
...
...
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