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
littleBu
OpenXG-RAN
Commits
338c23d8
Commit
338c23d8
authored
Jan 02, 2023
by
General ABS
Committed by
abs
Sep 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send measReport based on RSRP measurements
parent
87bb5d1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
openair2/RRC/NR/MESSAGES/asn1_msg.h
openair2/RRC/NR/MESSAGES/asn1_msg.h
+5
-2
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+13
-4
No files found.
openair2/RRC/NR/MESSAGES/asn1_msg.h
View file @
338c23d8
...
...
@@ -43,7 +43,7 @@
#include "RRC/NR/nr_rrc_defs.h"
#include "RRC/NR/nr_rrc_config.h"
#include "RRC/NR_UE/rrc_defs.h"
/*
* The variant of the above function which dumps the BASIC-XER (XER_F_BASIC)
...
...
@@ -146,7 +146,10 @@ uint8_t do_RRCSetupComplete(uint8_t Mod_id,
const
int
dedicatedInfoNASLength
,
const
char
*
dedicatedInfoNAS
);
uint16_t
do_nrMeasurementReport_SA
(
NR_MeasurementReport_t
*
measurementReport
,
uint8_t
*
buffer
,
size_t
buffer_size
,
uint8_t
rsrp_s
);
uint16_t
do_nrMeasurementReport_SA
(
NR_MeasurementReport_t
*
measurementReport
,
l3_measurements_t
*
l3_measurements
,
uint8_t
*
buffer
,
size_t
buffer_size
);
uint8_t
do_RRCSetupRequest
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
size_t
buffer_size
,
uint8_t
*
rv
);
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
338c23d8
...
...
@@ -2562,10 +2562,19 @@ static void print_rrc_meas(FILE *f, const NR_MeasResults_t *measresults)
fprintf
(
f
,
" servingCellId %ld MeasResultNR for phyCellId %ld:
\n
resultSSB:"
,
measresultservmo
->
servCellId
,
*
measresultnr
->
physCellId
);
if
(
mqr
!=
NULL
)
{
const
long
rrsrp
=
*
mqr
->
rsrp
-
156
;
const
float
rrsrq
=
(
float
)
(
*
mqr
->
rsrq
-
87
)
/
2
.
0
f
;
const
float
rsinr
=
(
float
)
(
*
mqr
->
sinr
-
46
)
/
2
.
0
f
;
fprintf
(
f
,
"RSRP %ld dBm RSRQ %.1f dB SINR %.1f dB
\n
"
,
rrsrp
,
rrsrq
,
rsinr
);
if
(
mqr
->
rsrp
)
{
const
long
rrsrp
=
*
mqr
->
rsrp
-
156
;
fprintf
(
f
,
"RSRP %ld dBm "
,
rrsrp
);
}
if
(
mqr
->
rsrq
)
{
const
float
rrsrq
=
(
float
)(
*
mqr
->
rsrq
-
87
)
/
2
.
0
f
;
fprintf
(
f
,
"RSRQ %.1f dB "
,
rrsrq
);
}
if
(
mqr
->
sinr
)
{
const
float
rsinr
=
(
float
)(
*
mqr
->
sinr
-
46
)
/
2
.
0
f
;
fprintf
(
f
,
"SINR %.1f dB "
,
rsinr
);
}
fprintf
(
f
,
"
\n
"
);
}
else
{
fprintf
(
f
,
"NOT PROVIDED
\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