What is this test and why would we want to do it? Before running the tests listed in this page it is expected that you have already setup a compatible build environment and compiled the source to generate the executables. For further directions with building please following this link.
Rerun cmake from the build directory with the ENABLE_MAC=true flags set.
cmake .. -DENABLE_MAC=true
We recommend launching 5 Terminals to execute the following programs (order matters)
./build/data_generator --conf_file data/mac-dl-sim.json
./build/chsim --bs_threads 1 --ue_threads 1 --worker_threads 2 --core_offset 1 --conf_file data/mac-dl-sim.json
Run the user code.
./build/user --conf_file data/mac-dl-sim.json
Run macuser. For the downlink only mode, macuser will display mac data (that passed the crc) received by the user equipment.
./build/macuser --conf_file data/mac-dl-sim.json --core_offset 19
./build/agora --conf_file data/mac-dl-sim.json
Run macbs. For the downlink only mode, macbs will transmit mac data from a src (UDP or File) to the base station mac thread in agora. Make sure that the data_file name is correct to generate the DL mac data. If you want to auto-generate the file you can pass
--data_file “” as a command line option.
./build/macbs --conf_file data/mac-dl-sim.json --core_offset 16 --enable_slow_start 1
UDP data source can be enabled using the compile flag - USE_UDP_DATA_SOURCE
For both macuser and macbs you will need to CTRL-C to correctly terminate the program