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
lizhongxiao
OpenXG-RAN
Commits
2413dc74
Commit
2413dc74
authored
Feb 11, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
O1 stats without RRC (everything available in DU)
parent
c03e77b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
common/utils/telnetsrv/telnetsrv_o1.c
common/utils/telnetsrv/telnetsrv_o1.c
+9
-10
No files found.
common/utils/telnetsrv/telnetsrv_o1.c
View file @
2413dc74
...
...
@@ -72,9 +72,8 @@ static int get_stats(char *buf, int debug, telnet_printfunc_t prnt)
const
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
0
];
AssertFatal
(
mac
!=
NULL
,
"need MAC
\n
"
);
const
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
0
];
const
gNB_RrcConfigurationReq
*
conf
=
&
rrc
->
configuration
;
AssertFatal
(
rrc
!=
NULL
,
"need RRC
\n
"
);
const
f1ap_setup_req_t
*
sr
=
mac
->
f1_config
.
setup_req
;
const
f1ap_served_cell_info_t
*
cell_info
=
&
sr
->
cell
[
0
].
info
;
const
NR_ServingCellConfigCommon_t
*
scc
=
mac
->
common_channels
[
0
].
ServingCellConfigCommon
;
const
NR_FrequencyInfoDL_t
*
frequencyInfoDL
=
scc
->
downlinkConfigCommon
->
frequencyInfoDL
;
...
...
@@ -159,15 +158,15 @@ static int get_stats(char *buf, int debug, telnet_printfunc_t prnt)
prnt
(
"
\"
"
ARFCNUL
"
\"
: %ld,
\n
"
,
frequencyInfoUL
->
absoluteFrequencyPointA
?
*
frequencyInfoUL
->
absoluteFrequencyPointA
:
frequencyInfoDL
->
absoluteFrequencyPointA
);
prnt
(
"
\"
"
BWUL
"
\"
: %ld,
\n
"
,
bw_mhz
);
prnt
(
"
\"
"
PCI
"
\"
: %ld,
\n
"
,
*
scc
->
physCellId
);
prnt
(
"
\"
"
TAC
"
\"
: %ld,
\n
"
,
conf
->
tac
);
prnt
(
"
\"
"
MCC
"
\"
:
\"
%03d
\"
,
\n
"
,
c
onf
->
mcc
[
0
]
);
prnt
(
"
\"
"
MNC
"
\"
:
\"
%0*d
\"
,
\n
"
,
c
onf
->
mnc_digit_length
[
0
],
conf
->
mnc
[
0
]
);
prnt
(
"
\"
"
SD
"
\"
: %d,
\n
"
,
c
onf
->
sd
);
prnt
(
"
\"
"
SST
"
\"
: %d
\n
"
,
c
onf
->
sst
);
prnt
(
"
\"
"
TAC
"
\"
: %ld,
\n
"
,
*
cell_info
->
tac
);
prnt
(
"
\"
"
MCC
"
\"
:
\"
%03d
\"
,
\n
"
,
c
ell_info
->
plmn
.
mcc
);
prnt
(
"
\"
"
MNC
"
\"
:
\"
%0*d
\"
,
\n
"
,
c
ell_info
->
plmn
.
mnc_digit_length
,
cell_info
->
plmn
.
mnc
);
prnt
(
"
\"
"
SD
"
\"
: %d,
\n
"
,
c
ell_info
->
sd
);
prnt
(
"
\"
"
SST
"
\"
: %d
\n
"
,
c
ell_info
->
sst
);
prnt
(
" },
\n
"
);
prnt
(
"
\"
device
\"
: {
\n
"
);
prnt
(
"
\"
gnbId
\"
: %d,
\n
"
,
rrc
->
nr_cellid
);
// TODO something else, e.g., gnb_id?
prnt
(
"
\"
gnbName
\"
:
\"
%s
\"
,
\n
"
,
rrc
->
node
_name
);
prnt
(
"
\"
gnbId
\"
: %d,
\n
"
,
sr
->
gNB_DU_id
);
prnt
(
"
\"
gnbName
\"
:
\"
%s
\"
,
\n
"
,
sr
->
gNB_DU
_name
);
prnt
(
"
\"
vendor
\"
:
\"
OpenAirInterface
\"\n
"
);
prnt
(
" }
\n
"
);
prnt
(
" },
\n
"
);
...
...
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