Skip to content
Snippets Groups Projects
Commit f1304ee2 authored by Rohit Gupta's avatar Rohit Gupta
Browse files

updated for completely putting UE in airplane mode

parent 0aeb77ce
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,7 @@ def start_ue () : ...@@ -103,6 +103,7 @@ def start_ue () :
#print 'Enter your commands below.\r\nInsert "exit" to leave the application.' #print 'Enter your commands below.\r\nInsert "exit" to leave the application.'
timeout=60 #timeout in seconds timeout=60 #timeout in seconds
send_command('AT', 'OK' , timeout) send_command('AT', 'OK' , timeout)
send_command('AT+CFUN=1' , 'OK' , timeout)
send_command('AT+CGATT=0' , 'OK' , timeout) send_command('AT+CGATT=0' , 'OK' , timeout)
send_command('AT+CGATT=1','OK', 300) send_command('AT+CGATT=1','OK', 300)
#os.system('wvdial -C ' + bandrich_ppd_config + ' &' ) #os.system('wvdial -C ' + bandrich_ppd_config + ' &' )
...@@ -135,6 +136,7 @@ def stop_ue(): ...@@ -135,6 +136,7 @@ def stop_ue():
os.system('killall wvdial') os.system('killall wvdial')
send_command('AT', 'OK' , timeout) send_command('AT', 'OK' , timeout)
send_command('AT+CGATT=0' , 'OK' , timeout) send_command('AT+CGATT=0' , 'OK' , timeout)
send_command('AT+CFUN=4' , 'OK' , timeout)
for arg in sys.argv[1:]: for arg in sys.argv[1:]:
if arg == '--start-ue' : if arg == '--start-ue' :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment