summaryrefslogtreecommitdiffstats
path: root/Code
diff options
context:
space:
mode:
authorgsmselftest2011-11-09 17:51:43 +0100
committergsmselftest2011-11-09 17:51:43 +0100
commitdb9bfffcc50d00ff7361dfbc833be629df806a9c (patch)
treec2034144f1201f8743ee1df673e7d33768df8e52 /Code
parentadd website and beagle box files (diff)
downloadgsm-selftest-db9bfffcc50d00ff7361dfbc833be629df806a9c.tar.gz
gsm-selftest-db9bfffcc50d00ff7361dfbc833be629df806a9c.tar.xz
gsm-selftest-db9bfffcc50d00ff7361dfbc833be629df806a9c.zip
renamed the file
Diffstat (limited to 'Code')
-rw-r--r--Code/ReadMe.txt59
-rw-r--r--Code/Server-Code/WebsiteCommClass.py (renamed from Code/Server-Code/ServerClassSoftware.py)0
-rwxr-xr-xCode/Server-Code/gsmselftest.py10
-rwxr-xr-xCode/Server-Code/truthtableClass.py (renamed from Code/Server-Code/trueTableClass.py)0
4 files changed, 64 insertions, 5 deletions
diff --git a/Code/ReadMe.txt b/Code/ReadMe.txt
new file mode 100644
index 0000000..9e6e1a5
--- /dev/null
+++ b/Code/ReadMe.txt
@@ -0,0 +1,59 @@
+
+How to install this software on the new system:
+(More information and explanation are on the report chapter 9 (Employing the test Software system) and chapter 7.1 (Encryption on the communication chanels)
+
+1. You need to install required library which used by the software:
+ (http://lab.ks.uni-freiburg.de/projects/gsm-selftest/wiki/Library_req)
+
+ 1.a. PJSIP Library.
+ - First you need to have The Utilities Packets, e.g. make, gcc, and binutils.
+ - Second you need to have Python development package, to build the C extension. "python2.4-dev or python2.5-dev". The name depend on which version of your python installed in the system.
+ - Third, Dowload the required library package for PJSIP. http://www.pjsip.org/download.htm
+ - Using Python build script:
+ 1. Build the PJSIP libraries first with the usual "./configure && make dep && make" commands.
+ 2. Go to pjsip-apps/src/python directory.
+ 3. Run "sudo python ./setup.py install" or just ''sudo make"
+ 4. $ cd your-pjsip-root-dir
+ 5. $ ./configure && make dep && make
+ 6. $ cd pjsip-apps/src/python
+ 7. $ sudo make
+ - Try to test the library:
+ $ python
+ > import pjsua
+ > ^Z
+
+ $
+ - If you dont have any error importing the library you are done.
+
+ 1.b. Setproctile library
+ - You need to install "easy_install" first:
+ $ sudo apt-get install python-setuptools
+
+ - Now install setproctile using following command:
+ $ sudo easy_install setproctitle
+
+ 1.c. Install socket library for python:
+ - $ sudo apt-get install python-serial
+
+ 1.d. Installing PhpMyAdmin:
+ - $ sudo apt-get install phpmyadmin
+
+ 1.e. Install MySQL Server:
+ - $ sudo apt-get install mysql-server
+
+ 1.f. Install MySQLDB library for python:
+ - $ Sudo apt-get install python-mysqldb
+
+2. Configuration SSH to make tunneling with GSMBox.
+ Explanation about how to configure the SSH tunneling are on the report chapter 7.1 or you can see it on this address:
+ http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/
+
+ - The software communicated with the beagle box using default port number 7884, If you have problem on the beagle board and need to reinstal the system, please make sure that the port communicate for ssh is 7884.
+
+3. Configure HTTPS access on the server. You can see explanation how to configure HTTPS on the report chapter 7.
+
+4. Configure username and password for MySQL.
+ The default username and password are store in these file: initTestClass.py, GsmSelfTest.py, UsbDetectClass.py and truthtableClass.py under initDB function. You need to edit your login information for Database in those files.
+
+
+
diff --git a/Code/Server-Code/ServerClassSoftware.py b/Code/Server-Code/WebsiteCommClass.py
index 206411e..206411e 100644
--- a/Code/Server-Code/ServerClassSoftware.py
+++ b/Code/Server-Code/WebsiteCommClass.py
diff --git a/Code/Server-Code/gsmselftest.py b/Code/Server-Code/gsmselftest.py
index 3bda2c5..92bf2b0 100755
--- a/Code/Server-Code/gsmselftest.py
+++ b/Code/Server-Code/gsmselftest.py
@@ -4,10 +4,10 @@ import sys
import ControllerClass
import DbClass
import PingClass
-import trueTableClass
+import truthtableClass
import initTestClass
import usbDetectClass
-import ServerClassSoftware
+import WebsiteCommClass
import signal
import random
from time import sleep
@@ -79,7 +79,7 @@ def initDB(): # function for connection database
print 'Lock the mutex: ' + str(db.lockMutex(600))
def initTrueTable(x):
- initResult = trueTableClass.trueTable(x)
+ initResult = truthtableClass.trueTable(x)
initResult.initTrueTable()
print '\n'
@@ -683,6 +683,7 @@ if len(sys.argv) > 1:
try:
caller = sys.argv[2]
callee = sys.argv[3]
+
except ValueError:
print "Error given caller and destination. Type '--help' for more information."
else:
@@ -704,7 +705,7 @@ else:
initDB() # should put db condition
- server = ServerClassSoftware.ServerHandlerSoftware(34500) #define the port
+ server = WebsiteCommClass.ServerHandlerSoftware(34500) #define the port
tried = server.openSocket(10)
if tried == 'TIMEOUT':
@@ -727,7 +728,6 @@ else:
print 'SMART TEST STARTED'
resultsList = list()
doSmartTest(True)
- #regularTest(True)
if test == 'UPDATE DEVICE':
server.sendData('CONFIRM\n')
diff --git a/Code/Server-Code/trueTableClass.py b/Code/Server-Code/truthtableClass.py
index e2fff55..e2fff55 100755
--- a/Code/Server-Code/trueTableClass.py
+++ b/Code/Server-Code/truthtableClass.py