free5G / free5GRAN

free5GRAN is an open-source 5G RAN stack. The current version includes a receiver which decodes MIB & SIB1 data. It also acts as a cell scanner. free5GRAN works in SA mode.
Apache License 2.0
107 stars 41 forks source link

Adding Bands to common_structures not working #22

Closed Nuradioconcepts closed 8 months ago

Nuradioconcepts commented 8 months ago

Describe the bug

I added bands n41 and n25 to /lib/variables/common_structures/common_structures.cpp and to /lib/variables/common_structures/common_structures.h

I then created the build directory, ran cmake .., make, and sudo make install

I changed the config of /root/.config/free5GRAN/config/free5GRAN.cfg

then ran free5GRAN

nuradio# free5GRAN
C++ Version: 201703
Using configuration file /root/.config/free5GRAN/config/free5GRAN.cfg
CELL SEARCH 
BAND not supported

To Reproduce

Error happen during execution

Screenshots

image image image

System:

Nuradioconcepts commented 8 months ago

I figured out what else needed to be modified/added...

edit ~/free5GRAN/lib/variables/common_variables/common_variables.cpp modify NUM_SUPPORTED_BANDS = 9; add free5GRAN::BAND_N_41, free5GRAN::BAND_N25, then edit ~/free5GRAN/lib/variables/common_variables/common_variables.h modify extern free5GRAN::band AVAILABLE_BANDS[9];