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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG-RAN
Commits
422ebb2c
Commit
422ebb2c
authored
Mar 27, 2026
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
csi: fix sinr measurement with ZMQ
parent
e3b74e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+2
-5
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
422ebb2c
...
@@ -578,10 +578,6 @@ int nr_csi_rs_pmi_estimation(const PHY_VARS_NR_UE *ue,
...
@@ -578,10 +578,6 @@ int nr_csi_rs_pmi_estimation(const PHY_VARS_NR_UE *ue,
// The first column is applicable if the UE is reporting a Rank = 1, whereas the second column is applicable if the
// The first column is applicable if the UE is reporting a Rank = 1, whereas the second column is applicable if the
// UE is reporting a Rank = 2.
// UE is reporting a Rank = 2.
if
(
interference_plus_noise_power
==
0
)
{
return
0
;
}
if
(
N_ports
==
1
)
{
if
(
N_ports
==
1
)
{
// SISO case: SINR = E[|h|^2] / noise_power. No PMI to estimate.
// SISO case: SINR = E[|h|^2] / noise_power. No PMI to estimate.
int64_t
signal_power
=
0
;
int64_t
signal_power
=
0
;
...
@@ -601,7 +597,8 @@ int nr_csi_rs_pmi_estimation(const PHY_VARS_NR_UE *ue,
...
@@ -601,7 +597,8 @@ int nr_csi_rs_pmi_estimation(const PHY_VARS_NR_UE *ue,
if
(
count
>
0
)
{
if
(
count
>
0
)
{
const
int64_t
avg_signal_power
=
signal_power
/
count
;
const
int64_t
avg_signal_power
=
signal_power
/
count
;
const
uint32_t
sinr
=
avg_signal_power
/
interference_plus_noise_power
;
// Non RF devices like ZMQ has virtually zero noise. So here we make noise as 1 to return maximum sinr.
const
uint32_t
sinr
=
avg_signal_power
/
((
interference_plus_noise_power
==
0
)
?
1
:
interference_plus_noise_power
);
*
precoded_sinr_dB
=
dB_fixed
(
sinr
);
*
precoded_sinr_dB
=
dB_fixed
(
sinr
);
}
}
...
...
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