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
spbro
OpenXG-RAN
Commits
815a15e5
Commit
815a15e5
authored
Apr 14, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for SR in pucch0
parent
9a330b3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+14
-6
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+0
-2
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
815a15e5
...
@@ -390,7 +390,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
...
@@ -390,7 +390,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
index
=
maxpos
;
index
=
maxpos
;
uci_stats
->
pucch0_n00
=
gNB
->
measurements
.
n0_subband_power_tot_dB
[
prb_offset
[
0
]];
uci_stats
->
pucch0_n00
=
gNB
->
measurements
.
n0_subband_power_tot_dB
[
prb_offset
[
0
]];
uci_stats
->
pucch0_n01
=
gNB
->
measurements
.
n0_subband_power_tot_dB
[
prb_offset
[
1
]];
uci_stats
->
pucch0_n01
=
gNB
->
measurements
.
n0_subband_power_tot_dB
[
prb_offset
[
1
]];
LOG_
D
(
PHY
,
"n00[%d] = %d, n01[%d] = %d
\n
"
,
prb_offset
[
0
],
uci_stats
->
pucch0_n00
,
prb_offset
[
1
],
uci_stats
->
pucch0_n01
);
LOG_
I
(
PHY
,
"n00[%d] = %d, n01[%d] = %d
\n
"
,
prb_offset
[
0
],
uci_stats
->
pucch0_n00
,
prb_offset
[
1
],
uci_stats
->
pucch0_n01
);
// estimate CQI for MAC (from antenna port 0 only)
// estimate CQI for MAC (from antenna port 0 only)
int
max_n0
=
uci_stats
->
pucch0_n00
>
uci_stats
->
pucch0_n01
?
uci_stats
->
pucch0_n00
:
uci_stats
->
pucch0_n01
;
int
max_n0
=
uci_stats
->
pucch0_n00
>
uci_stats
->
pucch0_n01
?
uci_stats
->
pucch0_n00
:
uci_stats
->
pucch0_n01
;
int
SNRtimes10
,
sigenergy
=
0
;
int
SNRtimes10
,
sigenergy
=
0
;
...
@@ -422,11 +422,12 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
...
@@ -422,11 +422,12 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
if
(
pucch_pdu
->
bit_len_harq
==
0
)
{
if
(
pucch_pdu
->
bit_len_harq
==
0
)
{
uci_pdu
->
harq
=
NULL
;
uci_pdu
->
harq
=
NULL
;
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
uci_pdu
->
sr
->
sr_confidence_level
=
no_conf
?
1
:
0
;
uci_pdu
->
sr
->
sr_confidence_level
=
(
SNRtimes10
>
uci_stats
->
pucch0_thres
)
?
1
:
0
;
uci_stats
->
pucch0_sr_trials
++
;
uci_stats
->
pucch0_sr_trials
++
;
if
(
xrtmag_dBtimes10
>
(
10
*
gNB
->
measurements
.
n0_power_tot_dB
)
)
{
if
(
xrtmag_dBtimes10
>
10
*
max_n0
)
{
uci_pdu
->
sr
->
sr_indication
=
1
;
uci_pdu
->
sr
->
sr_indication
=
1
;
uci_stats
->
pucch0_positive_SR
++
;
uci_stats
->
pucch0_positive_SR
++
;
LOG_D
(
PHY
,
"PUCCH0 got positive SR. Cumulative number of positive SR %d
\n
"
,
uci_stats
->
pucch0_positive_SR
);
}
else
{
}
else
{
uci_pdu
->
sr
->
sr_indication
=
0
;
uci_pdu
->
sr
->
sr_indication
=
0
;
}
}
...
@@ -445,7 +446,10 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
...
@@ -445,7 +446,10 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
uci_pdu
->
sr
->
sr_indication
=
(
index
>
1
)
?
1
:
0
;
uci_pdu
->
sr
->
sr_indication
=
(
index
>
1
)
?
1
:
0
;
uci_pdu
->
sr
->
sr_confidence_level
=
no_conf
?
1
:
0
;
uci_pdu
->
sr
->
sr_confidence_level
=
no_conf
?
1
:
0
;
if
(
uci_pdu
->
sr
->
sr_indication
==
1
&&
uci_pdu
->
sr
->
sr_confidence_level
==
0
)
{
uci_stats
->
pucch0_positive_SR
++
;
uci_stats
->
pucch0_positive_SR
++
;
LOG_D
(
PHY
,
"PUCCH0 got positive SR. Cumulative number of positive SR %d
\n
"
,
uci_stats
->
pucch0_positive_SR
);
}
}
}
uci_stats
->
pucch01_trials
++
;
uci_stats
->
pucch01_trials
++
;
}
}
...
@@ -463,6 +467,10 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
...
@@ -463,6 +467,10 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
uci_pdu
->
sr
->
sr_indication
=
(
index
>
3
)
?
1
:
0
;
uci_pdu
->
sr
->
sr_indication
=
(
index
>
3
)
?
1
:
0
;
uci_pdu
->
sr
->
sr_confidence_level
=
(
no_conf
)
?
1
:
0
;
uci_pdu
->
sr
->
sr_confidence_level
=
(
no_conf
)
?
1
:
0
;
if
(
uci_pdu
->
sr
->
sr_indication
==
1
&&
uci_pdu
->
sr
->
sr_confidence_level
==
0
)
{
uci_stats
->
pucch0_positive_SR
++
;
LOG_D
(
PHY
,
"PUCCH0 got positive SR. Cumulative number of positive SR %d
\n
"
,
uci_stats
->
pucch0_positive_SR
);
}
}
}
}
}
}
}
...
...
openair1/PHY/defs_gNB.h
View file @
815a15e5
...
@@ -661,8 +661,6 @@ typedef struct {
...
@@ -661,8 +661,6 @@ typedef struct {
unsigned
int
n0_power_tot
;
unsigned
int
n0_power_tot
;
//! estimated avg noise power (dB)
//! estimated avg noise power (dB)
unsigned
int
n0_power_tot_dB
;
unsigned
int
n0_power_tot_dB
;
//! estimated avg noise power (dB)
int
n0_power_tot_dBm
;
//! estimated avg noise power per RB per RX ant (lin)
//! estimated avg noise power per RB per RX ant (lin)
unsigned
int
n0_subband_power
[
MAX_NUM_RU_PER_gNB
][
275
];
unsigned
int
n0_subband_power
[
MAX_NUM_RU_PER_gNB
][
275
];
//! estimated avg noise power per RB per RX ant (dB)
//! estimated avg noise power per RB per RX ant (dB)
...
...
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