parent
8d7c466bbd
commit
7429ef09c5
@ -4,8 +4,9 @@ apt update
|
|||||||
apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev screen libtool swig
|
apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev screen libtool swig
|
||||||
git clone https://github.com/srsran/oran-sc-ric.git
|
git clone https://github.com/srsran/oran-sc-ric.git
|
||||||
cd oran-sc-ric
|
cd oran-sc-ric
|
||||||
docker compose up -d
|
docker compose build
|
||||||
cd /opt
|
|
||||||
|
|
||||||
|
|
||||||
#install ZeroMQ
|
#install ZeroMQ
|
||||||
sudo apt-get install -y libzmq3-dev
|
sudo apt-get install -y libzmq3-dev
|
||||||
@ -27,20 +28,17 @@ cd czmq
|
|||||||
make -j`nproc`
|
make -j`nproc`
|
||||||
sudo make install
|
sudo make install
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
#-----#
|
#-----#
|
||||||
cd /opt
|
cd /opt
|
||||||
git clone https://github.com/srsran/srsRAN_Project/
|
git clone https://github.com/srsran/srsRAN_Project/
|
||||||
cd srsRAN_Project/docker
|
cd srsRAN_Project
|
||||||
git checkout test
|
git checkout test
|
||||||
docker compose up -d --build 5gc
|
|
||||||
cd ..
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DENABLE_EXPORT=ON -DENABLE_ZEROMQ=ON
|
cmake .. -DENABLE_EXPORT=ON -DENABLE_ZEROMQ=ON
|
||||||
make -j`nproc`
|
make -j`nproc`
|
||||||
# make test
|
#make test
|
||||||
cd apps/gnb
|
|
||||||
sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
|
|
||||||
|
|
||||||
sudo ip netns add ue1
|
sudo ip netns add ue1
|
||||||
|
|
||||||
@ -55,9 +53,3 @@ cmake ../
|
|||||||
make -j`nproc`
|
make -j`nproc`
|
||||||
make install
|
make install
|
||||||
srsran_install_configs.sh user
|
srsran_install_configs.sh user
|
||||||
sleep 10
|
|
||||||
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
|
|
||||||
|
|
||||||
cd /opt/oran-sc-ric
|
|
||||||
docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl
|
|
||||||
|
|
29
run
Executable file
29
run
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#start oran ric
|
||||||
|
cd /opt/oran-sc-ric
|
||||||
|
cd oran-sc-ric
|
||||||
|
docker compose up -d
|
||||||
|
|
||||||
|
# start gnb
|
||||||
|
cd /opt/srsRAN_Project/docker
|
||||||
|
docker compose up -d 5gc
|
||||||
|
cd ../build/apps/gnb
|
||||||
|
sleep 5
|
||||||
|
sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
|
||||||
|
sudo ip netns add ue1
|
||||||
|
|
||||||
|
#start srsRAN 4g
|
||||||
|
sleep 5
|
||||||
|
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
|
||||||
|
|
||||||
|
|
||||||
|
#start ping
|
||||||
|
sleep 5
|
||||||
|
screen -dmS ping ip netns exec ue1 ping -i 0,1 10.45.1.1
|
||||||
|
|
||||||
|
#start xapp
|
||||||
|
sleep 5
|
||||||
|
cd /opt/oran-sc-ric
|
||||||
|
screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user