How to log CQI, SINR, RSRP, RSRQ from NR stack into CSV for offline ML training?

30 views
Skip to first unread message

MOH'D MUFEED M

unread,
Feb 11, 2026, 6:35:48 AMFeb 11
to 5G-LENA-users

Hello everyone,


I am new to ns-3 NR (5G-LENA) and currently working on generating a dataset.

I need to log the following parameters:

  • Wideband CQI

  • SINR 

  • RSRP

  • RSRQ

  • UE position (x, y, z)

  • Speed

  • Timestamp


I have gone through the NR module documentation and AMC implementation, but I am unsure from which exact layer(s) these measurements should be collected to ensure correctness.

Thank you in advance.

Muhammed Mufeed M
Ph.D. Scholar
School of Data Science
Indian Institute of Science Education and Research
Thiruvananthapuram, Kerala, India - 695551
Mobile No.: +91 9207842161 

Kamil Kociszewski

unread,
Mar 2, 2026, 7:00:22 AMMar 2
to 5G-LENA-users
Hi,
i got build that can help you, this is part of incoming updates to our RIC TaaP project.

e2-ns3-oran-lena-nr/model/nr-gnb-net-device.cc at Lena_oran · kamilkociszewski/e2-ns3-oran-lena-nr

I recommend to use this with RIC TaaP, 
Orange-OpenSource/ns-O-RAN-flexric: RAN simulator with E2 termination compliant with flexric supports E2AP v1.01, KPM v3 and pre-RC v1.01

just delete nr module from /src and pull my repo build :)

example output, also traced to .csv:

---------------------------------------------
90.0: Position of UE with IMSI 4 is 1160.4:336.6:1.5, Speed: 21.8 km/h, SINR: 7.6 dB, UE connected to Cell: 3
---------------------------------------------
90.0: Position of UE with IMSI 5 is 1264.9:-1132.6:1.5, Speed: 34.0 km/h, SINR: 2.9 dB, UE connected to Cell: 5
---------------------------------------------
90.0: Position of UE with IMSI 6 is -2313.7:65.6:1.5, Speed: 15.9 km/h, SINR: -12.1 dB, UE connected to Cell: 7
---------------------------------------------
---------------------------------------------
Cell stats-> gNB 1 | PRB Usage: 14 % | Avg Last RB: 38 | Avg TP: 0.00 Mbps | Tot TP: 0.00 Mbps | Avg Loss: 0.00 % | Avg Delay: 0.00 ms | Avg Jitter: 0.00 ms | UE Count: 0
---------------------------------------------
---------------------------------------------
Cell stats-> gNB 3 | PRB Usage: 23 % | Avg Last RB: 62 | Avg TP: 404.18 Mbps | Tot TP: 404.18 Mbps | Avg Loss: 0.71 % | Avg Delay: 32.24 ms | Avg Jitter: 0.12 ms | UE Count: 1
UE stats -> UE 4 | Cell ID: 3 | SINR: 13.3 dB | RSRP: -60 dBm | DL TP: 404.2 Mbps | MCS: 25 | RI: 3 | CQI: 14 | Loss: 0.71 % | Delay: 32.24 ms | Jitter: 0.12 ms
---------------------------------------------
---------------------------------------------
Cell stats-> gNB 5 | PRB Usage: 100 % | Avg Last RB: 265 | Avg TP: 0.00 Mbps | Tot TP: 0.00 Mbps | Avg Loss: 0.00 % | Avg Delay: 0.00 ms | Avg Jitter: 0.00 ms | UE Count: 0
UE stats -> UE 5 | Cell ID: 5 | SINR: -64.9 dB | RSRP: -154 dBm | DL TP: 0.0 Mbps | MCS: 0 | RI: 1 | CQI: 0 | Loss: 6.72 % | Delay: 29.30 ms | Jitter: 0.12 ms
---------------------------------------------
---------------------------------------------
Cell stats-> gNB 7 | PRB Usage: 39 % | Avg Last RB: 105 | Avg TP: 173.07 Mbps | Tot TP: 173.07 Mbps | Avg Loss: 9.66 % | Avg Delay: 1717.50 ms | Avg Jitter: 0.12 ms | UE Count: 1
UE stats -> UE 6 | Cell ID: 7 | SINR: 8.1 dB | RSRP: -81 dBm | DL TP: 173.1 Mbps | MCS: 10 | RI: 3 | CQI: 6 | Loss: 9.66 % | Delay: 1717.50 ms | Jitter: 0.12 ms
Reply all
Reply to author
Forward
0 new messages