summaryrefslogtreecommitdiffstats
path: root/For Weekly Test
diff options
context:
space:
mode:
authortt412011-07-07 10:13:52 +0200
committertt412011-07-07 10:13:52 +0200
commit5c52a844daa86226189a10611ffab21e2176c3dd (patch)
tree145619d53849927091966c735223d956181975be /For Weekly Test
parentadd weekly test folder. also store files for test on July 7, 2011. (diff)
downloadgsm-selftest-5c52a844daa86226189a10611ffab21e2176c3dd.tar.gz
gsm-selftest-5c52a844daa86226189a10611ffab21e2176c3dd.tar.xz
gsm-selftest-5c52a844daa86226189a10611ffab21e2176c3dd.zip
edit some line
Diffstat (limited to 'For Weekly Test')
-rw-r--r--For Weekly Test/07-08-2011/gsmcall_.py8
-rw-r--r--For Weekly Test/07-08-2011/gsmincom_.py14
2 files changed, 13 insertions, 9 deletions
diff --git a/For Weekly Test/07-08-2011/gsmcall_.py b/For Weekly Test/07-08-2011/gsmcall_.py
index 1e2a010..1e60d8e 100644
--- a/For Weekly Test/07-08-2011/gsmcall_.py
+++ b/For Weekly Test/07-08-2011/gsmcall_.py
@@ -13,9 +13,6 @@ import string
stop ="false"
-
-LOG_LEVEL=2
-current_call = None
success = ""
@@ -59,6 +56,11 @@ while stop <> "true":
while 1:
try:
data = server.receiveData() # waiting mode, until receiver start message or terminate message
+ ser.write('AT+CSQ\r')
+ signalQuality = ser.read(35)
+
+ print "signal Quality ", signalQuality
+ print ""
if data == "start": # if receiver start message, handler start to call destination
diff --git a/For Weekly Test/07-08-2011/gsmincom_.py b/For Weekly Test/07-08-2011/gsmincom_.py
index 018bede..305d161 100644
--- a/For Weekly Test/07-08-2011/gsmincom_.py
+++ b/For Weekly Test/07-08-2011/gsmincom_.py
@@ -10,13 +10,8 @@ from time import sleep
from datetime import datetime
stop ="false"
-
-
success = ""
-
-
-
try:
global ser
@@ -53,6 +48,9 @@ try:
if server.connected == 1:
server.sendData('I am ready')
+ signalQuality = ser.write('AT+CSQ\r')
+ print "signal Quality ", signalQuality
+ print ""
while stop <> "true":
@@ -78,6 +76,7 @@ try:
if pickUp == 0:
print "Somebody calling"
+ print ""
sleep(1)
ser.write('ATA\r')
@@ -101,6 +100,7 @@ try:
pickUp = 1
print "I will hangup the call"
+ print ""
sleep(5)
ser.write('AT+CHUP\r')
@@ -111,7 +111,9 @@ try:
quotation2 = int(string.find(lineTemp,'"'))
numberOfCaller = line[quotation1:quotation1+quotation2]
-
+
+ print "Signal Strength: ", signalStr
+ print ""
server.sendData('I got call from' +numberOfCaller)
print "caller number", numberOfCaller
sleep(1)