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
01305185
Commit
01305185
authored
Aug 25, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rssi dBFS based on 16 bits
parent
664ac4fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+1
-2
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+2
-2
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
01305185
...
...
@@ -397,8 +397,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
uci_pdu
->
pucch_format
=
0
;
// format 0
uci_pdu
->
ul_cqi
=
cqi
;
// currently not valid
uci_pdu
->
timing_advance
=
0xffff
;
// currently not valid
uci_pdu
->
rssi
=
0xffff
;
// currently not valid
uci_pdu
->
rssi
=
1280
-
(
10
*
dB_fixed
(
32767
*
32767
)
-
dB_fixed_times10
(
signal_energy
(
&
rxdataF
[
0
][
pucch_pdu
->
start_symbol_index
*
frame_parms
->
ofdm_symbol_size
+
re_offset
],
12
)));
if
(
pucch_pdu
->
bit_len_harq
==
0
)
{
uci_pdu
->
harq
=
NULL
;
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
01305185
...
...
@@ -348,7 +348,7 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id,
gNB
->
crc_pdu_list
[
num_crc
].
ul_cqi
=
cqi
;
gNB
->
crc_pdu_list
[
num_crc
].
timing_advance
=
timing_advance_update
;
// in terms of dBFS range -128 to 0 with 0.1 step
gNB
->
crc_pdu_list
[
num_crc
].
rssi
=
1280
-
(
10
*
dB_fixed
(
2047
*
204
7
)
-
dB_fixed_times10
(
gNB
->
pusch_vars
[
ULSCH_id
]
->
ulsch_power
[
0
]));
gNB
->
crc_pdu_list
[
num_crc
].
rssi
=
1280
-
(
10
*
dB_fixed
(
32767
*
3276
7
)
-
dB_fixed_times10
(
gNB
->
pusch_vars
[
ULSCH_id
]
->
ulsch_power
[
0
]));
gNB
->
UL_INFO
.
crc_ind
.
number_crcs
++
;
...
...
@@ -362,7 +362,7 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id,
gNB
->
rx_pdu_list
[
num_rx
].
harq_id
=
harq_pid
;
gNB
->
rx_pdu_list
[
num_rx
].
ul_cqi
=
cqi
;
gNB
->
rx_pdu_list
[
num_rx
].
timing_advance
=
timing_advance_update
;
gNB
->
rx_pdu_list
[
num_rx
].
rssi
=
1280
-
(
10
*
dB_fixed
(
2047
*
204
7
)
-
dB_fixed_times10
(
gNB
->
pusch_vars
[
ULSCH_id
]
->
ulsch_power
[
0
]));
gNB
->
rx_pdu_list
[
num_rx
].
rssi
=
1280
-
(
10
*
dB_fixed
(
32767
*
3276
7
)
-
dB_fixed_times10
(
gNB
->
pusch_vars
[
ULSCH_id
]
->
ulsch_power
[
0
]));
if
(
crc_flag
)
gNB
->
rx_pdu_list
[
num_rx
].
pdu_length
=
0
;
else
{
...
...
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