summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/12-09-2011
diff options
context:
space:
mode:
authorgsmselgtest2011-09-09 12:09:32 +0200
committergsmselgtest2011-09-09 12:09:32 +0200
commit55037ac541a28a82a560c0064a6d74f1adb64adc (patch)
treecde0fd4483fc47601d9cdf4dabbfd9678e887cf6 /For Weekly Test/12-09-2011
parentAdded another indicator on the display image! Does the connection exist, ping! (diff)
downloadgsm-selftest-55037ac541a28a82a560c0064a6d74f1adb64adc.tar.gz
gsm-selftest-55037ac541a28a82a560c0064a6d74f1adb64adc.tar.xz
gsm-selftest-55037ac541a28a82a560c0064a6d74f1adb64adc.zip
september 9 test, Our machine working great.no bugs until now.
Diffstat (limited to 'For Weekly Test/12-09-2011')
-rw-r--r--For Weekly Test/12-09-2011/ClientClass.pycbin3601 -> 3655 bytes
-rw-r--r--For Weekly Test/12-09-2011/ControllerClass.pycbin7357 -> 7429 bytes
-rw-r--r--For Weekly Test/12-09-2011/DbClass.pycbin6209 -> 6287 bytes
-rw-r--r--For Weekly Test/12-09-2011/GSM O2 handler.log8
-rw-r--r--For Weekly Test/12-09-2011/GSM RZ1 handler.log8
-rw-r--r--For Weekly Test/12-09-2011/GSM Vodaphone handler.log8
-rw-r--r--For Weekly Test/12-09-2011/Landline handler.log18
-rw-r--r--For Weekly Test/12-09-2011/LogFileClass.pycbin1494 -> 1524 bytes
-rw-r--r--For Weekly Test/12-09-2011/PingClass.pycbin1251 -> 1275 bytes
-rw-r--r--For Weekly Test/12-09-2011/SIP handler.log70
-rw-r--r--For Weekly Test/12-09-2011/SSHTunnelBox1Class.pycbin1756 -> 1786 bytes
-rw-r--r--For Weekly Test/12-09-2011/SSHTunnelBox2Class.pycbin1756 -> 1786 bytes
-rw-r--r--For Weekly Test/12-09-2011/TestProcessLog.log76
-rw-r--r--For Weekly Test/12-09-2011/University SIP handler.log17
-rw-r--r--For Weekly Test/12-09-2011/gsmselftest2.py10
-rw-r--r--For Weekly Test/12-09-2011/initTestClass.pycbin7802 -> 7916 bytes
-rw-r--r--For Weekly Test/12-09-2011/trueTableClass.pycbin3320 -> 3344 bytes
-rw-r--r--For Weekly Test/12-09-2011/usbDetectClass.py12
-rw-r--r--For Weekly Test/12-09-2011/usbDetectClass.pycbin3128 -> 3492 bytes
19 files changed, 222 insertions, 5 deletions
diff --git a/For Weekly Test/12-09-2011/ClientClass.pyc b/For Weekly Test/12-09-2011/ClientClass.pyc
index accb309..6dcbc7f 100644
--- a/For Weekly Test/12-09-2011/ClientClass.pyc
+++ b/For Weekly Test/12-09-2011/ClientClass.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/ControllerClass.pyc b/For Weekly Test/12-09-2011/ControllerClass.pyc
index 42a681a..448a046 100644
--- a/For Weekly Test/12-09-2011/ControllerClass.pyc
+++ b/For Weekly Test/12-09-2011/ControllerClass.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/DbClass.pyc b/For Weekly Test/12-09-2011/DbClass.pyc
index c11920d..4c25ce4 100644
--- a/For Weekly Test/12-09-2011/DbClass.pyc
+++ b/For Weekly Test/12-09-2011/DbClass.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/GSM O2 handler.log b/For Weekly Test/12-09-2011/GSM O2 handler.log
index fc0619a..b18c0ff 100644
--- a/For Weekly Test/12-09-2011/GSM O2 handler.log
+++ b/For Weekly Test/12-09-2011/GSM O2 handler.log
@@ -54,3 +54,11 @@ On: 2011-09-02 13:55:05.900791 Event: CONNECTION ESTABLISHED AND DEVICE WORKING:
On: 2011-09-02 13:55:05.901155 Event: TALK INITIALIZATION SENT
On: 2011-09-02 13:55:05.901360 Event: RECEIVER READY SENT
On: 2011-09-02 13:55:40.945864 Event: RECEIVE STATUS REPORTED
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:01:08.553238 ------------------
+On: 2011-09-09 12:01:08.553690 Event: LISTEN ON PORT: 50010
+On: 2011-09-09 12:01:09.633472 Event: CONNECTION ESTABLISHED AND DEVICE WORKING: ('127.0.0.1', 37013)
+On: 2011-09-09 12:01:09.633839 Event: TALK INITIALIZATION SENT
+On: 2011-09-09 12:01:09.634040 Event: RECEIVER READY SENT
+On: 2011-09-09 12:01:20.697548 Event: RECEIVE STATUS REPORTED
diff --git a/For Weekly Test/12-09-2011/GSM RZ1 handler.log b/For Weekly Test/12-09-2011/GSM RZ1 handler.log
new file mode 100644
index 0000000..b08b42f
--- /dev/null
+++ b/For Weekly Test/12-09-2011/GSM RZ1 handler.log
@@ -0,0 +1,8 @@
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:09:04.252668 ------------------
+On: 2011-09-09 12:09:04.253031 Event: LISTEN ON PORT: 50007
+On: 2011-09-09 12:09:05.548461 Event: CONNECTION ESTABLISHED AND DEVICE WORKING: ('127.0.0.1', 56426)
+On: 2011-09-09 12:09:05.548828 Event: TALK INITIALIZATION SENT
+On: 2011-09-09 12:09:05.549026 Event: RECEIVER READY SENT
+On: 2011-09-09 12:09:10.346080 Event: RECEIVE STATUS REPORTED
diff --git a/For Weekly Test/12-09-2011/GSM Vodaphone handler.log b/For Weekly Test/12-09-2011/GSM Vodaphone handler.log
new file mode 100644
index 0000000..b64f342
--- /dev/null
+++ b/For Weekly Test/12-09-2011/GSM Vodaphone handler.log
@@ -0,0 +1,8 @@
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:01:29.973703 ------------------
+On: 2011-09-09 12:01:29.974088 Event: LISTEN ON PORT: 50011
+On: 2011-09-09 12:01:31.288549 Event: CONNECTION ESTABLISHED AND DEVICE WORKING: ('127.0.0.1', 39844)
+On: 2011-09-09 12:01:31.288923 Event: TALK INITIALIZATION SENT
+On: 2011-09-09 12:01:31.289125 Event: RECEIVER READY SENT
+On: 2011-09-09 12:01:42.069538 Event: RECEIVE STATUS REPORTED
diff --git a/For Weekly Test/12-09-2011/Landline handler.log b/For Weekly Test/12-09-2011/Landline handler.log
index 8c00d09..6c44231 100644
--- a/For Weekly Test/12-09-2011/Landline handler.log
+++ b/For Weekly Test/12-09-2011/Landline handler.log
@@ -77,3 +77,21 @@ On: 2011-09-02 13:15:50.014674 Event: CALL OK
On: 2011-09-02 13:15:50.065382 Event: Call Disconnected
On: 2011-09-02 13:15:50.633895 Event: Terminate
On: 2011-09-02 13:15:50.633956 Event: Goodbye
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:04:13.402457 ------------------
+On: 2011-09-09 12:04:13.423005 Event: try to Connect to Controller
+On: 2011-09-09 12:04:14.626365 Event: init state
+On: 2011-09-09 12:04:14.626599 Event: Register Account to SIP server
+On: 2011-09-09 12:04:14.628265 Event: 100
+On: 2011-09-09 12:04:14.628609 Event: Receiver Handler Ready
+On: 2011-09-09 12:04:14.628669 Event: RECEIVE START
+On: 2011-09-09 12:04:20.692145 Event: {Call "anonymous" <sip:anonymous@sipgate.de>}
+On: 2011-09-09 12:04:20.692639 Event: Call Connecting
+On: 2011-09-09 12:04:20.692678 Event: 200
+On: 2011-09-09 12:04:20.692825 Event: Answer call
+On: 2011-09-09 12:04:20.692858 Event: Hangup call
+On: 2011-09-09 12:04:20.693013 Event: CALL OK
+On: 2011-09-09 12:04:20.743692 Event: Call Disconnected
+On: 2011-09-09 12:04:21.365368 Event: Terminate
+On: 2011-09-09 12:04:21.365436 Event: Goodbye
diff --git a/For Weekly Test/12-09-2011/LogFileClass.pyc b/For Weekly Test/12-09-2011/LogFileClass.pyc
index a6c449f..697f94a 100644
--- a/For Weekly Test/12-09-2011/LogFileClass.pyc
+++ b/For Weekly Test/12-09-2011/LogFileClass.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/PingClass.pyc b/For Weekly Test/12-09-2011/PingClass.pyc
index b9e0427..c611576 100644
--- a/For Weekly Test/12-09-2011/PingClass.pyc
+++ b/For Weekly Test/12-09-2011/PingClass.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/SIP handler.log b/For Weekly Test/12-09-2011/SIP handler.log
index 73e2225..76522c2 100644
--- a/For Weekly Test/12-09-2011/SIP handler.log
+++ b/For Weekly Test/12-09-2011/SIP handler.log
@@ -190,3 +190,73 @@ On: 2011-09-02 13:55:13.119741 Event: Call Connecting
On: 2011-09-02 13:55:13.119787 Event: 200
On: 2011-09-02 13:55:28.120884 Event: Terminate
On: 2011-09-02 13:55:28.120926 Event: Goodbye
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:01:06.420185 ------------------
+On: 2011-09-09 12:01:06.441073 Event: try to Connect to Controller
+On: 2011-09-09 12:01:07.624045 Event: init state
+On: 2011-09-09 12:01:07.624285 Event: Register Account to SIP server
+On: 2011-09-09 12:01:07.625055 Event: 100
+On: 2011-09-09 12:01:07.625137 Event: Caller Handler Ready
+On: 2011-09-09 12:01:12.640588 Event: CALL START
+On: 2011-09-09 12:01:12.640715 Event: Make a call to: 017678038038
+On: 2011-09-09 12:01:22.265854 Event: Call Connecting
+On: 2011-09-09 12:01:22.265902 Event: 200
+On: 2011-09-09 12:01:22.269543 Event: Terminate
+On: 2011-09-09 12:01:22.269602 Event: Goodbye
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:01:27.972292 ------------------
+On: 2011-09-09 12:01:27.992997 Event: try to Connect to Controller
+On: 2011-09-09 12:01:29.282631 Event: init state
+On: 2011-09-09 12:01:29.282872 Event: Register Account to SIP server
+On: 2011-09-09 12:01:29.283281 Event: 100
+On: 2011-09-09 12:01:29.283364 Event: Caller Handler Ready
+On: 2011-09-09 12:01:34.289743 Event: CALL START
+On: 2011-09-09 12:01:34.289799 Event: Make a call to: 015252423662
+On: 2011-09-09 12:01:43.808484 Event: Call Connecting
+On: 2011-09-09 12:01:43.808533 Event: 200
+On: 2011-09-09 12:01:43.812409 Event: Terminate
+On: 2011-09-09 12:01:43.812469 Event: Goodbye
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:04:11.310443 ------------------
+On: 2011-09-09 12:04:11.331278 Event: try to Connect to Controller
+On: 2011-09-09 12:04:12.620596 Event: init state
+On: 2011-09-09 12:04:12.620841 Event: Register Account to SIP server
+On: 2011-09-09 12:04:12.621254 Event: 100
+On: 2011-09-09 12:04:12.621337 Event: Caller Handler Ready
+On: 2011-09-09 12:04:17.630856 Event: CALL START
+On: 2011-09-09 12:04:17.630920 Event: Make a call to: 076145875681
+On: 2011-09-09 12:04:21.364288 Event: Call Connecting
+On: 2011-09-09 12:04:21.364340 Event: 200
+On: 2011-09-09 12:04:21.365852 Event: Terminate
+On: 2011-09-09 12:04:21.365905 Event: Goodbye
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:04:27.072709 ------------------
+On: 2011-09-09 12:04:27.093893 Event: try to Connect to Controller
+On: 2011-09-09 12:04:28.386696 Event: init state
+On: 2011-09-09 12:04:28.386933 Event: Register Account to SIP server
+On: 2011-09-09 12:04:28.387349 Event: 100
+On: 2011-09-09 12:04:28.387431 Event: Caller Handler Ready
+On: 2011-09-09 12:04:33.394162 Event: CALL START
+On: 2011-09-09 12:04:33.394221 Event: Make a call to: 076120397898
+On: 2011-09-09 12:04:33.442576 Event: Call Connecting
+On: 2011-09-09 12:04:33.442622 Event: 200
+On: 2011-09-09 12:04:33.443707 Event: Terminate
+On: 2011-09-09 12:04:33.443768 Event: Goodbye
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:09:02.294476 ------------------
+On: 2011-09-09 12:09:02.314819 Event: try to Connect to Controller
+On: 2011-09-09 12:09:03.542291 Event: init state
+On: 2011-09-09 12:09:03.542526 Event: Register Account to SIP server
+On: 2011-09-09 12:09:03.542939 Event: 100
+On: 2011-09-09 12:09:03.543023 Event: Caller Handler Ready
+On: 2011-09-09 12:09:08.549418 Event: CALL START
+On: 2011-09-09 12:09:08.549474 Event: Make a call to: 07612034661447
+On: 2011-09-09 12:09:10.146099 Event: Call Connecting
+On: 2011-09-09 12:09:10.146148 Event: 200
+On: 2011-09-09 12:09:10.345788 Event: Terminate
+On: 2011-09-09 12:09:10.345831 Event: Goodbye
diff --git a/For Weekly Test/12-09-2011/SSHTunnelBox1Class.pyc b/For Weekly Test/12-09-2011/SSHTunnelBox1Class.pyc
index ca1f91d..4512f04 100644
--- a/For Weekly Test/12-09-2011/SSHTunnelBox1Class.pyc
+++ b/For Weekly Test/12-09-2011/SSHTunnelBox1Class.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/SSHTunnelBox2Class.pyc b/For Weekly Test/12-09-2011/SSHTunnelBox2Class.pyc
index 3ea6058..6afa570 100644
--- a/For Weekly Test/12-09-2011/SSHTunnelBox2Class.pyc
+++ b/For Weekly Test/12-09-2011/SSHTunnelBox2Class.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/TestProcessLog.log b/For Weekly Test/12-09-2011/TestProcessLog.log
index 05efd63..8c16199 100644
--- a/For Weekly Test/12-09-2011/TestProcessLog.log
+++ b/For Weekly Test/12-09-2011/TestProcessLog.log
@@ -230,3 +230,79 @@ On: 2011-09-02 13:55:05.901419 Event: Receiver handler : Ready
On: 2011-09-02 13:55:05.901448 Event: Start Call
On: 2011-09-02 13:55:05.901497 Event: Waiting Feedback
On: 2011-09-02 13:55:28.120619 Event: Test Failed
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:01:05.619501 ------------------
+On: 2011-09-09 12:01:05.619577 Event: init Caller
+On: 2011-09-09 12:01:05.619599 Event: sip
+On: 2011-09-09 12:01:07.623842 Event: Connected to Caller Handler
+On: 2011-09-09 12:01:07.624141 Event: Caller Handler respond
+On: 2011-09-09 12:01:07.625241 Event: Caller handler : Ready
+On: 2011-09-09 12:01:07.625281 Event: init Receiver
+On: 2011-09-09 12:01:07.625302 Event: GSMExt.O2
+On: 2011-09-09 12:01:09.633642 Event: Connected to Receiver Handler
+On: 2011-09-09 12:01:09.633923 Event: Receiver Handler respond
+On: 2011-09-09 12:01:09.634113 Event: Receiver handler : Ready
+On: 2011-09-09 12:01:09.634144 Event: Start Call
+On: 2011-09-09 12:01:09.634195 Event: Waiting Feedback
+On: 2011-09-09 12:01:22.266054 Event: Test Succeed
+On: 2011-09-09 12:01:27.277575 Event:
+On: 2011-09-09 12:01:27.277634 Event: init Caller
+On: 2011-09-09 12:01:27.277652 Event: sip
+On: 2011-09-09 12:01:29.282370 Event: Connected to Caller Handler
+On: 2011-09-09 12:01:29.282725 Event: Caller Handler respond
+On: 2011-09-09 12:01:29.283468 Event: Caller handler : Ready
+On: 2011-09-09 12:01:29.283508 Event: init Receiver
+On: 2011-09-09 12:01:29.283529 Event: GSMExt.Voda
+On: 2011-09-09 12:01:31.288720 Event: Connected to Receiver Handler
+On: 2011-09-09 12:01:31.289008 Event: Receiver Handler respond
+On: 2011-09-09 12:01:31.289199 Event: Receiver handler : Ready
+On: 2011-09-09 12:01:31.289228 Event: Start Call
+On: 2011-09-09 12:01:31.289279 Event: Waiting Feedback
+On: 2011-09-09 12:01:43.808688 Event: Test Succeed
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:04:10.615217 ------------------
+On: 2011-09-09 12:04:10.615292 Event: init Caller
+On: 2011-09-09 12:04:10.615314 Event: sip
+On: 2011-09-09 12:04:12.620325 Event: Connected to Caller Handler
+On: 2011-09-09 12:04:12.620691 Event: Caller Handler respond
+On: 2011-09-09 12:04:12.621478 Event: Caller handler : Ready
+On: 2011-09-09 12:04:12.621519 Event: init Receiver
+On: 2011-09-09 12:04:12.621540 Event: landline
+On: 2011-09-09 12:04:14.626109 Event: Connected to Receiver Handler
+On: 2011-09-09 12:04:14.626460 Event: Receiver Handler respond
+On: 2011-09-09 12:04:14.628417 Event: Receiver handler : Ready
+On: 2011-09-09 12:04:14.628455 Event: Start Call
+On: 2011-09-09 12:04:14.628512 Event: Waiting Feedback
+On: 2011-09-09 12:04:21.365130 Event: Test Succeed
+On: 2011-09-09 12:04:26.381644 Event:
+On: 2011-09-09 12:04:26.381698 Event: init Caller
+On: 2011-09-09 12:04:26.381716 Event: sip
+On: 2011-09-09 12:04:28.386440 Event: Connected to Caller Handler
+On: 2011-09-09 12:04:28.386789 Event: Caller Handler respond
+On: 2011-09-09 12:04:28.387534 Event: Caller handler : Ready
+On: 2011-09-09 12:04:28.387573 Event: init Receiver
+On: 2011-09-09 12:04:28.387594 Event: unisip
+On: 2011-09-09 12:04:30.392544 Event: Connected to Receiver Handler
+On: 2011-09-09 12:04:30.392822 Event: Receiver Handler respond
+On: 2011-09-09 12:04:30.393628 Event: Receiver handler : Ready
+On: 2011-09-09 12:04:30.393666 Event: Start Call
+On: 2011-09-09 12:04:30.393850 Event: Waiting Feedback
+On: 2011-09-09 12:04:33.442773 Event: Test Succeed
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:09:01.536879 ------------------
+On: 2011-09-09 12:09:01.536956 Event: init Caller
+On: 2011-09-09 12:09:01.536978 Event: sip
+On: 2011-09-09 12:09:03.542094 Event: Connected to Caller Handler
+On: 2011-09-09 12:09:03.542383 Event: Caller Handler respond
+On: 2011-09-09 12:09:03.543125 Event: Caller handler : Ready
+On: 2011-09-09 12:09:03.543165 Event: init Receiver
+On: 2011-09-09 12:09:03.543185 Event: GSMRZ1
+On: 2011-09-09 12:09:05.548629 Event: Connected to Receiver Handler
+On: 2011-09-09 12:09:05.548909 Event: Receiver Handler respond
+On: 2011-09-09 12:09:05.549100 Event: Receiver handler : Ready
+On: 2011-09-09 12:09:05.549129 Event: Start Call
+On: 2011-09-09 12:09:05.549179 Event: Waiting Feedback
+On: 2011-09-09 12:09:10.345535 Event: Test Succeed
diff --git a/For Weekly Test/12-09-2011/University SIP handler.log b/For Weekly Test/12-09-2011/University SIP handler.log
index 7113253..eaaa386 100644
--- a/For Weekly Test/12-09-2011/University SIP handler.log
+++ b/For Weekly Test/12-09-2011/University SIP handler.log
@@ -41,3 +41,20 @@ On: 2011-09-02 13:15:57.704499 Event: Hangup call
On: 2011-09-02 13:15:57.704653 Event: CALL OK
On: 2011-09-02 13:15:57.762627 Event: Terminate
On: 2011-09-02 13:15:57.762682 Event: Goodbye
+
+
+------------------STARTED THE LOGGING 2011-09-09 12:04:29.084275 ------------------
+On: 2011-09-09 12:04:29.105612 Event: try to Connect to Controller
+On: 2011-09-09 12:04:30.392727 Event: init state
+On: 2011-09-09 12:04:30.392956 Event: Register Account to SIP server
+On: 2011-09-09 12:04:30.393369 Event: 100
+On: 2011-09-09 12:04:30.393492 Event: Receiver Handler Ready
+On: 2011-09-09 12:04:30.393794 Event: RECEIVE START
+On: 2011-09-09 12:04:33.406739 Event: {Call "mpselftest1" <sip:4661928@132.230.252.228>}
+On: 2011-09-09 12:04:33.407190 Event: Call Connecting
+On: 2011-09-09 12:04:33.407228 Event: 200
+On: 2011-09-09 12:04:33.407372 Event: Answer call
+On: 2011-09-09 12:04:33.407404 Event: Hangup call
+On: 2011-09-09 12:04:33.407554 Event: CALL OK
+On: 2011-09-09 12:04:33.442980 Event: Terminate
+On: 2011-09-09 12:04:33.443020 Event: Goodbye
diff --git a/For Weekly Test/12-09-2011/gsmselftest2.py b/For Weekly Test/12-09-2011/gsmselftest2.py
index d0858c4..50245b5 100644
--- a/For Weekly Test/12-09-2011/gsmselftest2.py
+++ b/For Weekly Test/12-09-2011/gsmselftest2.py
@@ -12,7 +12,7 @@ from time import sleep
global resultsList
resultsList = list()
-GSMListPrefix = [['GSMExt.Tm','0151'],['GSMExt.Tm','0160'],['GSMExt.Tm','0170'],['GSMExt.Tm','0171'],['GSMExt.Tm','0175'],['GSMExt.Voda','0152'],['GSMExt.Voda','0162'],['GSMExt.Voda','0172'],['GSMExt.Voda','0173'],['GSMExt.Voda','0174'],['GSMExt.Eplus','0157'],['GSMExt.Eplus','0177'],['GSMExt.Eplus','0155'],['GSMExt.Eplus','0163'],['GSMExt.Eplus','0178'],['GSMExt.O2','0159'],['GSMExt.O2','0176'],['GSMExt.O2','0179']]
+GSMListPrefix = [['GSMExt.Tm','0151'],['GSMExt.Tm','0160'],['GSMExt.Tm','0170'],['GSMExt.Tm','0171'],['GSMExt.Tm','0175'],['GSMExt.Voda','0152'],['GSMExt.Voda','0162'],['GSMExt.Voda','0172'],['GSMExt.Voda','0173'],['GSMExt.Voda','0174'],['GSMExt.Eplus','0157'],['GSMExt.Eplus','0177'],['GSMExt.Eplus','0155'],['GSMExt.Eplus','0163'],['GSMExt.Eplus','0178'],['GSMExt.O2','0159'],['GSMExt.O2','0176'],['GSMExt.O2','0179'],['GSMRZ1','0761']]
def allPing():
@@ -175,7 +175,7 @@ def initDevice(deviceName):
if deviceName == 'GSMRZ2' or deviceName == 'GSMRZ2':
if number =='':
- print print ' == cant save device configuration, number missing =='
+ print ' == cant save device configuration, number missing =='
else:
portClass.initUpdate(deviceName, portName, number)
else:
@@ -241,6 +241,7 @@ def updateDevice():
print 'please choose between 1-8'
if input == 's':
i = 0
+ x = 0
while i !=10:
portName ='ttyUSB'+str(i)
findPort(portName)
@@ -252,12 +253,13 @@ def updateDevice():
print 'IMEI :',IMEI
print 'Phone Number :',num
print 'Port Name : /dev/'+portName
-
+ x=x+1
newPortName = '/dev/'+portName
portClass.initUpdate(listNum[0], newPortName, num)
print '\n'
-
+ print '== FINISH =='
+ print 'Found '+str(x)+' devices'
if input == "q":
break
diff --git a/For Weekly Test/12-09-2011/initTestClass.pyc b/For Weekly Test/12-09-2011/initTestClass.pyc
index ec36c0b..6898894 100644
--- a/For Weekly Test/12-09-2011/initTestClass.pyc
+++ b/For Weekly Test/12-09-2011/initTestClass.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/trueTableClass.pyc b/For Weekly Test/12-09-2011/trueTableClass.pyc
index 94dea9d..9255949 100644
--- a/For Weekly Test/12-09-2011/trueTableClass.pyc
+++ b/For Weekly Test/12-09-2011/trueTableClass.pyc
Binary files differ
diff --git a/For Weekly Test/12-09-2011/usbDetectClass.py b/For Weekly Test/12-09-2011/usbDetectClass.py
index af438c7..19ed52b 100644
--- a/For Weekly Test/12-09-2011/usbDetectClass.py
+++ b/For Weekly Test/12-09-2011/usbDetectClass.py
@@ -43,13 +43,23 @@ class serialPort:
print 'error'
return 0
+ def isInteger(self, x):
+ try:
+ int(x)
+ return True
+ except:
+ return False
+
def findIMEI(self):
self.portInit()
if self.portExist == 1:
self.ser.flushInput() #clean the input buffer for serial port
self.ser.write('AT+GSN\r')
sleep(0.5)
- self.IMEI = int(self.ser.read(20))
+ self.ser.write('AT+GSN\r')
+ result = self.ser.read(25)
+ self.IMEI = result[result.find('3'):15+result.find('3')]
+
else:
self.IMEI = 'port not found'
return 0
diff --git a/For Weekly Test/12-09-2011/usbDetectClass.pyc b/For Weekly Test/12-09-2011/usbDetectClass.pyc
index 6952586..4cffa13 100644
--- a/For Weekly Test/12-09-2011/usbDetectClass.pyc
+++ b/For Weekly Test/12-09-2011/usbDetectClass.pyc
Binary files differ