Skip to content

xfoukas/srsRAN_Project_jbpf_apps

Repository files navigation

1. srsran-apps

This project used to build Jbpf codelets for srsRAN.

2. Build srsRAN-apps

2.1. Prepare environment

./init_submodules.sh

2.2. Build srsRAN

Build srsRAN as detailed in https://github.com/xfoukas/srsRAN_Project_jbpf.

Set environment variable SRSRAN_DIR to the top level folder of where this is located.

2.3. Set environment

source ./set_vars.sh

2.4. Build jbpf_protobuf

Build the the jbpf_protobuf folder as shown in https://github.com/microsoft/jbpf-protobuf.

2.5. Build codelets

cd codelets
./make.sh -o cleanall                     # clean all codelet folders
./make.sh                                 # compile all codelet folders
./make.sh -d xran_packets -o cleanall     # clean specific codelet folder
./make.sh -d xran_packets                 # compile specific codelet folder

3. Load and unloading codeletSets

3.1. Run a decoder

This is an application to which schemas will be loaded, and it will printed the protobuf decode of messages it receives.

Run this following in a seperate terminal:-

cd utils
./run_decoder.sh

3.2. Load schemas

cd utils
./load_schemas.sh -c <codeletSet-yaml>
# e.g.
./load_schemas.sh -c /codelets/xran_packets/xran_packets.yaml

Also, when running srsRAN, set field "jbpf_standalone_io_out_ip" accordingly.

3.3. Load codeletSet

cd utils
./load_codeletSet.sh -c <codeletSet-yaml> [-a <lcm-address>]
# e.g.
./load_codeletSet.sh -c /codelets/xran_packets/xran_packets.yaml
./load_codeletSet.sh -c /codelets/xran_packets/xran_packets.yaml -a /var/run/janus/jbpf_lcm_ipc

3.4. Unload codeletSet

cd utils
./unload_codeletSet.sh -c <codeletSet-yaml> [-a <lcm-address>]
# e.g.
./unload_codeletSet.sh -c /codelets/xran_packets/xran_packets.yaml
./unload_codeletSet.sh -c /codelets/xran_packets/xran_packets.yaml -a /var/run/janus/jbpf_lcm_ipc

3.5. Unload schemas

cd utils
./unload_schemas.sh -c <codeletSet-yaml>
# e.g.
./unload_schemas.sh -c /codelets/xran_packets/xran_packets.yaml

4. License

This framework is licensed under the MIT license.

About

Sample jbpf codelets for srsRAN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published