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
wangjie
OpenXG-RAN
Commits
b4d4b186
Commit
b4d4b186
authored
Jun 07, 2021
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing RSRP & RSRQ reporting
parent
fb5f1f69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
39 deletions
+8
-39
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+8
-39
No files found.
openair2/RRC/LTE/rrc_eNB.c
View file @
b4d4b186
...
@@ -7849,43 +7849,12 @@ is_en_dc_supported(
...
@@ -7849,43 +7849,12 @@ is_en_dc_supported(
#undef NCE
#undef NCE
}
}
int
to_nr_rsrpq
(
long
rsrpq_result
,
int
nr_band
)
{
float
to_nr_rsrp
(
long
rsrp_result
)
{
return
(
float
)(
rsrp_result
-
156
.
5
);
// TS38.133 Table 10.1.6.1-1
switch
(
nr_band
)
{
}
case
1
:
// A
case
70
:
float
to_nr_rsrq
(
long
rsrq_result
)
{
case
74
:
return
(
float
)(
43
.
25
-
(
0
.
5
*
rsrq_result
));
// TS38.133 Table 10.1.11.1-1
case
34
:
case
38
:
case
39
:
case
40
:
case
50
:
case
51
:
return
((
rsrpq_result
*
10
)
-
1180
);
case
66
:
// B
return
((
rsrpq_result
*
10
)
-
1175
);
case
77
:
// C
case
78
:
case
79
:
return
((
rsrpq_result
*
10
)
-
1170
);
case
28
:
// D
return
((
rsrpq_result
*
10
)
-
1165
);
case
2
:
case
5
:
case
7
:
case
41
:
// E
return
((
rsrpq_result
*
10
)
-
1160
);
case
3
:
// G
case
8
:
case
12
:
case
20
:
case
71
:
return
((
rsrpq_result
*
10
)
-
1150
);
case
25
:
// H
return
((
rsrpq_result
*
10
)
-
1145
);
default:
AssertFatal
(
1
==
0
,
"Illegal NR band %d
\n
"
,
nr_band
);
}
}
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
...
@@ -9094,9 +9063,9 @@ void rrc_subframe_process(protocol_ctxt_t *const ctxt_pP, const int CC_id) {
...
@@ -9094,9 +9063,9 @@ void rrc_subframe_process(protocol_ctxt_t *const ctxt_pP, const int CC_id) {
fprintf
(
fd
,
"NR_pci %ld
\n
"
,
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
pci_r15
);
fprintf
(
fd
,
"NR_pci %ld
\n
"
,
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
pci_r15
);
if
(
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
)
if
(
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
)
fprintf
(
fd
,
"NR_rsrp %f dB
\n
"
,
to_nr_rsrp
q
(
*
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
,
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
nr_gnb_freq_band
[
0
][
0
])
/
10
.
0
);
fprintf
(
fd
,
"NR_rsrp %f dB
\n
"
,
to_nr_rsrp
(
*
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrpResult_r15
,
RC
.
rrc
[
ctxt_pP
->
module_id
])
);
if
(
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrqResult_r15
)
if
(
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrqResult_r15
)
fprintf
(
fd
,
"NR_rsrq %f dB
\n
"
,
to_nr_rsr
pq
(
*
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrqResult_r15
,
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
nr_gnb_freq_band
[
0
][
0
])
/
10
.
0
);
fprintf
(
fd
,
"NR_rsrq %f dB
\n
"
,
to_nr_rsr
q
(
*
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultCell_r15
.
rsrqResult_r15
,
RC
.
rrc
[
ctxt_pP
->
module_id
])
);
if
(
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
)
if
(
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
)
fprintf
(
fd
,
"NR_ssb_index %ld
\n
"
,
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]
->
ssb_Index_r15
);
fprintf
(
fd
,
"NR_ssb_index %ld
\n
"
,
ue_context_p
->
ue_context
.
measResults
->
measResultNeighCells
->
choice
.
measResultNeighCellListNR_r15
.
list
.
array
[
0
]
->
measResultRS_IndexList_r15
->
list
.
array
[
0
]
->
ssb_Index_r15
);
}
}
...
...
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