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
常顺宇
OpenXG-RAN
Commits
367241ef
Commit
367241ef
authored
Mar 10, 2021
by
Thomas Schlichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compile warnings
parent
5d50553c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
+1
-4
openair1/PHY/NR_ESTIMATION/nr_ul_estimation.h
openair1/PHY/NR_ESTIMATION/nr_ul_estimation.h
+2
-1
openair1/PHY/NR_UE_ESTIMATION/nr_ue_measurements.c
openair1/PHY/NR_UE_ESTIMATION/nr_ue_measurements.c
+4
-4
No files found.
openair1/PHY/NR_ESTIMATION/nr_measurements_gNB.c
View file @
367241ef
...
...
@@ -124,9 +124,7 @@ void nr_gnb_measurements(PHY_VARS_gNB *gNB, uint8_t ulsch_id, unsigned char harq
int
rx_power_tot
[
NUMBER_OF_NR_ULSCH_MAX
];
int
rx_power
[
NUMBER_OF_NR_ULSCH_MAX
][
NB_ANTENNAS_RX
];
int
wideband_cqi_avg
[
NUMBER_OF_NR_ULSCH_MAX
];
unsigned
short
rx_power_avg_dB
[
NUMBER_OF_NR_ULSCH_MAX
];
unsigned
short
rx_power_dB
[
NUMBER_OF_NR_ULSCH_MAX
][
NB_ANTENNAS_RX
];
unsigned
short
rx_power_tot_dB
[
NUMBER_OF_NR_ULSCH_MAX
];
openair0_config_t
*
cfg
=
&
gNB
->
RU_list
[
0
]
->
openair0_cfg
;
...
...
@@ -156,7 +154,6 @@ void nr_gnb_measurements(PHY_VARS_gNB *gNB, uint8_t ulsch_id, unsigned char harq
}
rx_power_dB
[
ulsch_id
][
aarx
]
=
(
unsigned
short
)
dB_fixed
(
rx_power
[
ulsch_id
][
aarx
]);
rx_power_tot
[
ulsch_id
]
+=
rx_power
[
ulsch_id
][
aarx
];
}
...
...
@@ -175,4 +172,4 @@ void nr_gnb_measurements(PHY_VARS_gNB *gNB, uint8_t ulsch_id, unsigned char harq
meas
->
wideband_cqi_tot
[
ulsch_id
],
meas
->
n0_power_tot
);
}
\ No newline at end of file
}
openair1/PHY/NR_ESTIMATION/nr_ul_estimation.h
View file @
367241ef
...
...
@@ -49,8 +49,9 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
void
gNB_I0_measurements
(
PHY_VARS_gNB
*
gNB
);
int
nr_est_timing_advance_pusch
(
PHY_VARS_gNB
*
phy_vars_gNB
,
int
UE_id
);
void
nr_gnb_measurements
(
PHY_VARS_gNB
*
gNB
,
uint8_t
ulsch_id
,
unsigned
char
harq_pid
,
unsigned
char
symbol
);
int
nr_est_timing_advance_pusch
(
PHY_VARS_gNB
*
phy_vars_gNB
,
int
UE_id
);
void
nr_pusch_ptrs_processing
(
PHY_VARS_gNB
*
gNB
,
NR_DL_FRAME_PARMS
*
frame_parms
,
...
...
openair1/PHY/NR_UE_ESTIMATION/nr_ue_measurements.c
View file @
367241ef
...
...
@@ -271,20 +271,18 @@ void nr_ue_rsrp_measurements(PHY_VARS_NR_UE *ue,
// This function computes the received noise power
// Measurement units:
// - psd_awg
m
(AWGN power spectral density): dBm/Hz
// - psd_awg
n
(AWGN power spectral density): dBm/Hz
void
nr_ue_rrc_measurements
(
PHY_VARS_NR_UE
*
ue
,
UE_nr_rxtx_proc_t
*
proc
,
uint8_t
slot
){
uint8_t
k
;
int
aarx
,
nb_nulls
;
int
psd_awgm
=
-
174
;
int16_t
*
rxF_sss
;
uint8_t
k_left
=
48
;
uint8_t
k_right
=
183
;
uint8_t
k_length
=
8
;
uint8_t
l_sss
=
ue
->
symbol_offset
+
2
;
int
scs
=
15000
*
pow
(
2
,
(
ue
->
frame_parms
.
numerology_index
));
unsigned
int
ssb_offset
=
ue
->
frame_parms
.
first_carrier_offset
+
ue
->
frame_parms
.
ssb_start_subcarrier
;
double
rx_gain
=
openair0_cfg
[
0
].
rx_gain
[
0
];
double
rx_gain_offset
=
openair0_cfg
[
0
].
rx_gain_offset
[
0
];
...
...
@@ -332,7 +330,9 @@ void nr_ue_rrc_measurements(PHY_VARS_NR_UE *ue,
ue
->
measurements
.
n0_power_tot_dB
=
(
unsigned
short
)
dB_fixed
(
ue
->
measurements
.
n0_power_tot
/
aarx
);
#ifdef DEBUG_MEAS_RRC
int
nf_usrp
=
ue
->
measurements
.
n0_power_tot_dB
+
3
+
30
-
((
int
)
rx_gain
-
(
int
)
rx_gain_offset
)
-
10
*
log10
(
pow
(
2
,
30
))
-
(
psd_awgm
+
dB_fixed
(
scs
)
+
dB_fixed
(
ue
->
frame_parms
.
ofdm_symbol_size
));
const
int
psd_awgn
=
-
174
;
const
int
scs
=
15000
*
(
1
<<
ue
->
frame_parms
.
numerology_index
);
const
int
nf_usrp
=
ue
->
measurements
.
n0_power_tot_dB
+
3
+
30
-
((
int
)
rx_gain
-
(
int
)
rx_gain_offset
)
-
10
*
log10
(
pow
(
2
,
30
))
-
(
psd_awgn
+
dB_fixed
(
scs
)
+
dB_fixed
(
ue
->
frame_parms
.
ofdm_symbol_size
));
LOG_D
(
PHY
,
"In [%s][slot:%d] NF USRP %d dB
\n
"
,
__FUNCTION__
,
slot
,
nf_usrp
);
#endif
...
...
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