diff --git a/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_enb b/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_enb index 6f5c89169098736d5a767d6b24463e5d0ed18e7c..8bc270f25d74d359214dbcc114c2e3078febd4a5 100755 --- a/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_enb +++ b/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_enb @@ -1,18 +1,11 @@ #!/bin/sh -GREEN='\E[32m' -NC='\e[0m' - -# check the compilation -echo "Bringup eNB interface" -sudo rmmod nasmesh -make all -sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko +sudo pkill oaisim # set params EMULATION_DEV_INTERFACE="eth0" EMULATION_MULTICAST_GROUP=1 -EMULATION_LOG_LEVEL=5 # 3 = error, 5 info, 7 debug, trace= 9 +EMULATION_LOG_LEVEL=7 # 3 = error, 5 info, 7 debug, trace= 9 OAI_LOCAL_ADDRESS="10.0.1.1" OAI_REMOTE_ADDRESS="10.0.1.2" #EMULATION_DEV_ADDRESS= `hostname -I cut -f1 -d' '` @@ -33,18 +26,7 @@ test_install_package() { fi } -#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16) -#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 -echo "Make sure that eth0 is the interface between the machines, otherwise change" -sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE - -sudo ifconfig oai0 $OAI_LOCAL_ADDRESS netmask 255.255.255.0 broadcast 10.0.1.255 - -echo "applying DRB classification" -echo "$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1" -$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1 #PGM provide a reliable mutlicast data transport" - test_install_package libpgm-dev test_install_package libpgm-5.1-0 @@ -56,6 +38,23 @@ else PGM=" " fi +# check the compilation +echo "Bringup eNB interface" +sudo rmmod nasmesh +make all +sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko + +#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16) +#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 +echo "Make sure that eth0 is the interface between the machines, otherwise change" +sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE + +# when running as a suduoers, the following lines are not needed +#sudo ifconfig oai0 $OAI_LOCAL_ADDRESS netmask 255.255.255.0 broadcast 10.0.1.255 +#echo "applying DRB classification" +#echo "$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1" +#$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1 + if [ -z $1 ]; then echo "$OPENAIR_TARGETS/SIMU/USER/oaisim -u0 -M0 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null" sudo -E $OPENAIR_TARGETS/SIMU/USER/oaisim -u0 -M0 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null diff --git a/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_ue b/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_ue index ccddd5660f5ebbf5eb6b6dc884b586d35c0d1874..d9dcaf98df66bec9e5ba9a67fb4b8ad2596eef07 100755 --- a/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_ue +++ b/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_1UE/start_ue @@ -1,14 +1,11 @@ #!/bin/sh -echo "Bringup UE interface" -sudo rmmod nasmesh -make nasmesh all -sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko +sudo pkill oaisim # set params EMULATION_DEV_INTERFACE="eth0" EMULATION_MULTICAST_GROUP=1 -EMULATION_LOG_LEVEL=5 # 3 = error, 5 info, 7 debug, trace= 9 +EMULATION_LOG_LEVEL=7 # 3 = error, 5 info, 7 debug, trace= 9 OAI_LOCAL_ADDRESS="10.0.1.2" OAI_REMOTE_ADDRESS="10.0.1.1" #EMULATION_DEV_ADDRESS= `hostname -I cut -f1 -d' '` @@ -28,16 +25,6 @@ test_install_package() { } fi } - -#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16) -#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 -echo "Make sure that eth0 is the interface between the machines, otherwise change" -sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE - -sudo ifconfig oai0 10.0.1.2 netmask 255.255.255.0 broadcast 10.0.1.255 - -$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1 - #PGM provide a reliable mutlicast data transport" test_install_package libpgm-dev test_install_package libpgm-5.1-0 @@ -48,6 +35,21 @@ else PGM=" " fi +echo "Bringup UE interface" +sudo rmmod nasmesh +make nasmesh all +sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko + + +#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16) +#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 +echo "Make sure that eth0 is the interface between the machines, otherwise change" +sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE + +# when running as a suduoers, the following lines are not needed +#sudo ifconfig oai0 $OAI_LOCAL_ADDRES netmask 255.255.255.0 broadcast 10.0.1.255 +#$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1 + # running oaisim if [ -z $1 ]; then echo "$OPENAIR_TARGETS/SIMU/USER/oaisim -b0 -M1 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null"