-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_srsran_2ue.sh
executable file
·84 lines (51 loc) · 3.18 KB
/
run_srsran_2ue.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#echo "cd srsepc/"
# #cd srsepc/
# echo "cd build/"
# cd build/
# echo "sudo ./srsepc/src/srsepc ../.config/epc.conf"
# sudo ./srsepc/src/srsepc ../.config/epc.conf &
#sleep 5
#echo "sudo ./srsepc_if_masq.sh eno1"
#sudo ./srsepc_if_masq.sh eno1 &
#sleep 5
#echo "cd .."
#cd .. &
#echo "sudo srsepc"
#sudo srsepc &
#sleep 5
#echo "sudo srsenb"
#sudo srsenb &
# sleep 5
# #echo "sudo srsepc_if_masq.sh eno1"
# #sudo srsepc_if_masq.sh eno1 &
# #echo "sudo srsenb ../.config/enb.conf"
# #sudo srsenb ../.config/enb.conf &
# #sleep 5
# echo "sudo ./srsenb/src/srsenb ../.config/enb.conf"
# sudo ./srsenb/src/srsenb ../.config/enb.conf &
# sleep 5
#echo "sudo srsepc /home/wcsng-24/Ushasi/EdgeRIC_main/.config/srsran/epc.conf"
#sudo srsepc /home/wcsng-24/Ushasi/EdgeRIC_main/.config/srsran/epc.conf &
#echo "sudo ./srsenb/src/srsenb /home/wcsng-24/Ushasi/EdgeRIC_main/.config/srsran/enb.conf --rf.device_name=zmq --rf.device_args=fail_on_disconnect=true,tx_port=tcp://*:2101,rx_port=tcp://localhost:2100,id=enb,base_srate=23.04e6"
#sudo ./srsenb/src/srsenb home/wcsng-24/Ushasi/EdgeRIC_main/.config/srsran/enb.conf --rf.device_name=zmq --rf.device_args="fail_on_disconnect=true,tx_port=tcp://*:2101,rx_port=tcp://localhost:2100,id=enb,base_srate=23.04e6" &
#echo "sudo ./srsenb/src/srsenb /home/.config/srsran/enb.conf --rf.device_name=zmq --rf.device_args=fail_on_disconnect=true,tx_port=tcp://*:2101,rx_port=tcp://localhost:2100,id=enb,base_srate=23.04e6"
#sudo ./srsenb/src/srsenb ../.config/srsran/enb.conf --rf.device_name=zmq --rf.device_args="fail_on_disconnect=true,tx_port=tcp://*:2101,rx_port=tcp://localhost:2100,id=enb,base_srate=23.04e6" &
#echo "sudo ./srsenb/src/srsenb /home/wcsng-24/.config/srsran/enb.conf --rf.device_name=zmq --rf.device_args=fail_on_disconnect=true,tx_port=tcp://*:2101,rx_port=tcp://localhost:2100,id=enb,base_srate=23.04e6"
#sudo ./srsenb/src/srsenb /home/wcsng-24/.config/srsran/enb.conf --rf.device_name=zmq --rf.device_args="fail_on_disconnect=true,tx_port=tcp://*:2101,rx_port=tcp://localhost:2100,id=enb,base_srate=23.04e6" &
#sleep 5
#echo "cd build/"
#cd build/
cd srsran-ue/build
### commented for now:
echo "./srsue/src/srsue ../../.config/ue1.conf --rf.device_name=zmq --rf.device_args=tx_port=tcp://*:2001,rx_port=tcp://localhost:2000,id=ue,base_srate=23.04e6 --gw.netns=ue1 --params_filename="../params1.txt""
./srsue/src/srsue ../../.config/ue1.conf --rf.device_name=zmq --rf.device_args="tx_port=tcp://*:2001,rx_port=tcp://localhost:2000,id=ue,base_srate=23.04e6" --gw.netns=ue1 --params_filename="../params1.txt" &
sleep 2
#cd ../../srsRAN-e2_ue2/build
echo "./srsue/src/srsue2 ../../.config/ue2.conf --rf.device_name=zmq --rf.device_args=tx_port=tcp://*:2011,rx_port=tcp://localhost:2010,id=ue,base_srate=23.04e6 --gw.netns=ue2 --params_filename="../params2.txt""
./srsue/src/srsue2 ../../.config/ue2.conf --rf.device_name=zmq --rf.device_args="tx_port=tcp://*:2011,rx_port=tcp://localhost:2010,id=ue,base_srate=23.04e6" --gw.netns=ue2 --params_filename="../params2.txt" &
sleep 3
#ip netns exec ue1 ping 172.16.0.1 & > /dev/null 2>&1 &
ping 172.16.0.2 > /dev/null 2>&1 &
sleep 3
# ip netns exec ue2 ping 172.16.0.1 > /dev/null 2>&1
ping 172.16.0.3 > /dev/null 2>&1