[srslte-users] Cell Measurement Decode SIB1 issue

Amit Baran Roy Amit.Roy at colorado.edu
Mon Feb 24 03:56:57 UTC 2020


Hello,

I am new to srsLTE platform. For one of my project, I need to decode SIB1
to get the values of TAC,MCC and MNC. I am using the version srsLTE 18.12.
I figured that in cell_measurement.c file, I can decode SIB1 following the
information posted in this link -
http://www.softwareradiosystems.com/pipermail/srslte-users/2019-April/002465.html

But I am facing a problem when the control comes to 'DECODE_SIB' switch
case. If I follow the above link, the decoding code should be added after
the line 'srslte_vec_fprint_byte(stdout, data[0], n/8);;' which is present
in the 'else' block of the switch case. But while debugging, I saw that the
control goes inside the 'else if(n == 0)' block and the decoding code is
not getting executed. Please find the logs below.

Initially the code worked first time and decoding was successful, but
recently I am facing this issue. I am using SDR B200.

Please let me know. Also, I will be happy to know if there is any other way
of decoding SIB1.


Logs-

Opening RF device...
Opening USRP with args: type=b200,master_clock_rate=30.72e6
-- Detected Device: B200
-- Operating over USB 2.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 30.720000 MHz...
-- Actually got clock rate 30.720000 MHz.
-- Performing timer loopback test... pass
Starting AGC thread...
Tunning receiver to 739.000 MHz
Searching for cell...
Found Cell_id:   0 CP: Normal  , DetectRatio= 0% PSR=0.00, Power=-inf dBm
*Found Cell_id: 415 CP: Normal  , DetectRatio=100% PSR=27.89, Power=-30.3
dBm
Found Cell_id:   0 CP: Normal  , DetectRatio= 0% PSR=0.00, Power=-inf dBm
Decoding PBCH for cell 415 (N_id_2=1)
-- Asking for clock rate 11.520000 MHz...
-- Actually got clock rate 11.520000 MHz.
-- Performing timer loopback test... pass
Setting sampling rate 11.52 MHz
Finding PSS... Peak:      1.0, FrameCnt: 0, State: 0
Finding PSS... Peak:      1.1, FrameCnt: 0, State: 0
Finding PSS... Peak:      1.4, FrameCnt: 0, State: 0
Finding PSS... Peak:      6.8, FrameCnt: 0, State: 1
Finding PSS... Peak:      9.0, FrameCnt: 0, State: 1
Finding PSS... Peak:      9.0, FrameCnt: 36, State: 0
Finding PSS... Peak:      1.0, FrameCnt: 36, State: 0
Finding PSS... Peak:      1.0, FrameCnt: 36, State: 0
Finding PSS... Peak:      9.5, FrameCnt: 36, State: 0
Finding PSS... Peak:      1.1, FrameCnt: 36, State: 0
Finding PSS... Peak:      1.1, FrameCnt: 36, State: 0
Finding PSS... Peak:     11.3, FrameCnt: 0, State: 1
Finding PSS... Peak:      1.1, FrameCnt: 42, State: 0
Finding PSS... Peak:      6.5, FrameCnt: 0, State: 1
Finding PSS... Peak:      1.0, FrameCnt: 12, State: 0
Finding PSS... Peak:      9.1, FrameCnt: 0, State: 1
Finding PSS... Peak:      9.1, FrameCnt: 116, State: 0
Finding PSS... Peak:      5.4, FrameCnt: 0, State: 1
Decoded MIB. SFN: 676, offset: 3
CFO: +1.5068 kHz, SFO: +0.2800 kHz, PDCCH-Det: -nan
CFO: +1.5068 kHz, SFO: +0.5920 kHz, PDCCH-Det: 0.000
CFO: +1.5068 kHz, SFO: +0.5328 kHz, PDCCH-Det: 0.000
CFO: +1.5068 kHz, SFO: +0.4062 kHz, PDCCH-Det: 0.000
CFO: +1.5068 kHz, SFO: +1.2691 kHz, PDCCH-Det: 0.000
CFO: +1.5068 kHz, SFO: -0.1280 kHz, PDCCH-Det: 0.000
CFO: +1.5068 kHz, SFO: +0.1663 kHz, PDCCH-Det: 0.000
CFO: +1.5068 kHz, SFO: +0.0907 kHz, PDCCH-Det: 0.000
CFO: +1.5068 kHz, SFO: -0.3677 kHz, PDCCH-Det: 0.000
CFO: +1.4792 kHz, SFO: -0.7760 kHz, PDCCH-Det: 0.000
CFO: +1.4792 kHz, SFO: -0.4426 kHz, PDCCH-Det: 0.000
CFO: +1.4792 kHz, SFO: +0.2675 kHz, PDCCH-Det: 0.000
CFO: +1.4792 kHz, SFO: +0.2658 kHz, PDCCH-Det: 0.000
CFO: +1.4792 kHz, SFO: +0.0000 kHz, PDCCH-Det: 0.000
CFO: +1.4792 kHz, SFO: -0.2480 kHz, PDCCH-Det: 0.000
CFO: +1.4792 kHz, SFO: +0.1768 kHz, PDCCH-Det: 0.000



Thanks and Regards,
Amit Baran Roy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200223/6499c897/attachment.htm>


More information about the srsran-users mailing list