diff --git a/cmake_targets/autotests/test_case_list.xml b/cmake_targets/autotests/test_case_list.xml index 0163918520..fdce1b0c4a 100644 --- a/cmake_targets/autotests/test_case_list.xml +++ b/cmake_targets/autotests/test_case_list.xml @@ -1,12 +1,13 @@ -stevens calisson amerique +amerique stevens calisson /mnt/sradio/TEST_RESULTS https://gitlab.eurecom.fr/oai/openairinterface5g.git https://gitlab.eurecom.fr/oai/openair-cn.git feature-34-test_framework feature-17-test_framework - oaisim* oaisim_nos1* lte-softmodem* lte-softmodem-nos1* mme_gw* run_epc* run_hss* iperf* ltebox* + oaisim* oaisim_nos1* lte-softmodem* lte-softmodem-nos1* mme_gw* run_epc* run_hss* iperf* hss hss_sim + /opt/ltebox/tools/stop_ltebox compilation @@ -25,7 +26,7 @@ compilation - Build oaisim.Rel8 + network device driver(nasmesh_fix) + Build oaisim.Rel8 + network device driver(nasmesh_fix) oaisim_nos1 @@ -760,7 +761,7 @@ targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf tracking_area_code 1 targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf mobile_country_code 208 targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf mobile_network_code 92 - targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf mme_ip_address ({ipv4="192.168.12.26";ipv6="192:168:30::17";active="yes";preference="ipv4";}) + targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf mme_ip_address "({ipv4=\"192.168.12.26\";ipv6=\"192:168:30::17\";active=\"yes\";preference=\"ipv4\";})" $OPENAIR_DIR/cmake_targets/build_oai --eNB -w USRP @@ -771,6 +772,7 @@ + True /tmp targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.local.conf tracking_area_code 4 @@ -780,12 +782,13 @@ --eNB -w USRP - $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_bandrich_ue --stop-ue ; $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_bandrich_ue --start-ue + python $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py --stop-ue ; python $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py --start-ue ping 192.172.0.1 + True /tmp BUILD/EPC/epc.local.enb.conf.in MCC 208 @@ -800,14 +803,16 @@ - /opt/ltebox/tools/stop_ltebox ; /opt/ltebox/tools/start_ltebox + /opt/ltebox/tools/stop_ltebox ; /opt/ltebox/tools/start_ltebox ; sleep 3000 - /opt/hss_sim0609/starthss + /opt/hss_sim0609/starthss >> /dev/null ; sleep 3000 iperf -s + True + 2 diff --git a/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py b/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py index 7ba02bc0b1..9a8b95d4d9 100644 --- a/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py +++ b/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py @@ -12,12 +12,20 @@ import os # configure the serial connections (the parameters differs on the device you are connecting to) #First we find an open port to work with serial_port='' -max_ports=100 -for port in range(1,100): - serial_port = '/dev/ttyUSB'+str(port) - if os.path.exists(serial_port) == True: - break +ser='' +def find_open_port(serial_port): + max_ports=100 + if os.path.exists(serial_port) == True: + return serial_port + for port in range(1,100): + serial_port = '/dev/ttyUSB'+str(port) + ser = serial.Serial(port=serial_port) + if os.path.exists(serial_port) == True: + print 'New Serial Port : ' + serial_port + break + return serial_port +serial_port = find_open_port('') print 'Using Serial port : ' + serial_port #serial_port = '/dev/ttyUSB2' @@ -35,13 +43,7 @@ def signal_handler(signal, frame): signal.signal(signal.SIGINT, signal_handler) -ser = serial.Serial( - port=serial_port, - #baudrate=9600, - #parity=serial.PARITY_ODD, - #stopbits=serial.STOPBITS_TWO, - #bytesize=serial.EIGHTBITS -) + #ser.open() #ser.isOpen() @@ -71,6 +73,10 @@ def send_command (cmd, response, timeout): sleep_duration = 1 while count <= timeout: try: + #Sometimes the port does not exist coz of reset in modem. + #In that case, we need to search for this port again + if os.path.exists(serial_port) == False: + serial_port = find_open_port(serial_port) ser.write (cmd + '\r\n') out = '' time.sleep(sleep_duration)