From 714ddfb17f77936568eae83982e94c75e3696d31 Mon Sep 17 00:00:00 2001 From: gsmselftest Date: Tue, 1 Nov 2011 14:59:33 +0100 Subject: last editing --- For Weekly Test/tricode/GSMHandler.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'For Weekly Test/tricode/GSMHandler.py') diff --git a/For Weekly Test/tricode/GSMHandler.py b/For Weekly Test/tricode/GSMHandler.py index afeb96f..2537044 100644 --- a/For Weekly Test/tricode/GSMHandler.py +++ b/For Weekly Test/tricode/GSMHandler.py @@ -63,7 +63,7 @@ def initSystem(): logger.logEvent('LISTEN ON PORT: '+str(portListen)) anyConnection = handlerSocket.openSocket() #add this if you need it - gsmDevice = GSMClass.serialPort(portAddress, baudRate, 10) + gsmDevice = GSMClass.serialPort(portAddress, baudRate, 15) initDevice = gsmDevice.portInit(5) ######################################################## @@ -295,6 +295,7 @@ def terminateConnection(): global resetState close = handlerSocket.closeConnection() resetState = 1 + sys.exit(0.5) return close ############################## @@ -310,7 +311,7 @@ def other(): return 1 ############################## - +setproctitle.setproctitle('GSM Handler') while 1: @@ -320,7 +321,7 @@ while 1: receivedMessage = 0 while receivedMessage < 8 and resetState!= 1: if receivedMessage == 4 or receivedMessage == 5 or receivedMessage == 2 or receivedMessage == 3: - receivedMessage = receiveMessage(10) + receivedMessage = receiveMessage(20) else: receivedMessage = receiveMessage(30) elif test ==2: @@ -330,7 +331,7 @@ while 1: while receivedMessage < 4 and resetState!= 1: handlerSocket.sendData('DEVICE NOT READY') if receivedMessage == 4 or receivedMessage == 5 or receivedMessage == 2 or receivedMessage == 3: - receivedMessage = receiveMessage(10) + receivedMessage = receiveMessage(20) else: receivedMessage = receiveMessage(30) -- cgit v1.2.3-55-g7522