From f1304ee26f22a5f249177644857a2fc795fa8313 Mon Sep 17 00:00:00 2001
From: Rohit Gupta <rohit.gupta@eurecom.fr>
Date: Fri, 4 Dec 2015 15:37:48 +0100
Subject: [PATCH] updated for completely putting UE in airplane mode

---
 cmake_targets/autotests/tools/configure_cots_bandrich_ue.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py b/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
index 2f959be55c..fced79f2ef 100755
--- a/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+++ b/cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
@@ -103,6 +103,7 @@ def start_ue () :
    #print 'Enter your commands below.\r\nInsert "exit" to leave the application.'
    timeout=60 #timeout in seconds
    send_command('AT', 'OK' , timeout)
+   send_command('AT+CFUN=1' , 'OK' , timeout)
    send_command('AT+CGATT=0' , 'OK' , timeout)
    send_command('AT+CGATT=1','OK', 300)
    #os.system('wvdial -C ' + bandrich_ppd_config + ' &' )
@@ -135,6 +136,7 @@ def stop_ue():
    os.system('killall wvdial')
    send_command('AT', 'OK' , timeout)
    send_command('AT+CGATT=0' , 'OK' , timeout)
+   send_command('AT+CFUN=4' , 'OK' , timeout)
 
 for arg in sys.argv[1:]:
     if arg == '--start-ue' :
-- 
GitLab