Closed mrlnc closed 6 years ago
Is this comment still accurate? Multiple SIBs in one SI message seems to work for me https://github.com/srsLTE/srsLTE/blob/4bbcfaa1dcbe347e4c99539bd1d3ec7a92176b4e/srsenb/src/mac/scheduler.cc#L396
Thanks for spotting this. Can you please create a pull request and I'll merge it?
Can you also remove that comment in the pull request please? Thanks
Hi all,
I think there are some problems with SIB configuration. Possible fix included.
Default Config
This is from the SIB1 config in
sib.conf
:Expected Behaviour
(uncomment
//#define WRITE_SIB_PCAP
insrsenb/src/mac/mac.cc
to have SIBs included in PCAP)Actual Behaviour
Despite no optional SIB was configured, srsenb transmits an empty SIB3, which is not announced in SIB1
schedulingInfoList
.Custom Config
First configure SIB4 at end of
sib.conf
, which is quite simple since all fields are optionalIf I attempt to transmit another SIB (assuming SIB4 exists) and use this config:
then SIB4 is advertised in SIB1, but still only SIB2 and SIB3 are transmitted.
Expected Behaviour
Actual Behaviour
Custom Config 2
If you transmit
si_mapping_info = [4, 4];
, thenSystemInformation [ SIB2 SIB4 SIB3 ]
is transmitted, while SIB1 mapping isSIB4, SIB4
Possible Solution
After some debugging, I think there is a off-by-one, that leads to SIB3 being included and configured SIBs ignored. https://github.com/srsLTE/srsLTE/blob/dafcefb487c1453b1f0bd6e581c1c7f95dd92e79/srsenb/src/upper/rrc.cc#L144 should read
i
andj
were not particularly helpful, so I changed some variable names. See 97ef33ca9a8e01cc4d43b3a6863ca2261129b45a for a patch. I've not created a pull request, since I have not yet fully understood SIB scheduling, and cannot tell whether things work as intended.