summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--notFinishedCode/Report/BigPicture_new.pngbin0 -> 126202 bytes
-rw-r--r--notFinishedCode/Report/BigPicture_new1.pngbin0 -> 136384 bytes
-rw-r--r--notFinishedCode/Report/DBRelationship.pngbin0 -> 86284 bytes
-rw-r--r--notFinishedCode/Report/logging.pngbin0 -> 5963 bytes
-rw-r--r--notFinishedCode/Report/ping.pngbin0 -> 4129 bytes
-rw-r--r--notFinishedCode/Report/test.aux28
-rw-r--r--notFinishedCode/Report/test.log77
-rw-r--r--notFinishedCode/Report/test.pdfbin706528 -> 935391 bytes
-rw-r--r--notFinishedCode/Report/test.tex33
-rw-r--r--notFinishedCode/Report/test.tex.backup35
-rw-r--r--notFinishedCode/Report/test.tex~33
-rw-r--r--notFinishedCode/Report/test.toc2
12 files changed, 156 insertions, 52 deletions
diff --git a/notFinishedCode/Report/BigPicture_new.png b/notFinishedCode/Report/BigPicture_new.png
new file mode 100644
index 0000000..cb70576
--- /dev/null
+++ b/notFinishedCode/Report/BigPicture_new.png
Binary files differ
diff --git a/notFinishedCode/Report/BigPicture_new1.png b/notFinishedCode/Report/BigPicture_new1.png
new file mode 100644
index 0000000..cf81c92
--- /dev/null
+++ b/notFinishedCode/Report/BigPicture_new1.png
Binary files differ
diff --git a/notFinishedCode/Report/DBRelationship.png b/notFinishedCode/Report/DBRelationship.png
new file mode 100644
index 0000000..3ef4fe7
--- /dev/null
+++ b/notFinishedCode/Report/DBRelationship.png
Binary files differ
diff --git a/notFinishedCode/Report/logging.png b/notFinishedCode/Report/logging.png
new file mode 100644
index 0000000..bf39f7a
--- /dev/null
+++ b/notFinishedCode/Report/logging.png
Binary files differ
diff --git a/notFinishedCode/Report/ping.png b/notFinishedCode/Report/ping.png
new file mode 100644
index 0000000..b7d0e3b
--- /dev/null
+++ b/notFinishedCode/Report/ping.png
Binary files differ
diff --git a/notFinishedCode/Report/test.aux b/notFinishedCode/Report/test.aux
index 8fd67f1..4c504ad 100644
--- a/notFinishedCode/Report/test.aux
+++ b/notFinishedCode/Report/test.aux
@@ -5,41 +5,49 @@
\@writefile{lot}{\select@language{english}}
\@writefile{toc}{\contentsline {section}{\numberline {1}Introduction and Motivation}{3}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Requirements}{4}}
+\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces }}{4}}
\@writefile{toc}{\contentsline {section}{\numberline {3}Database design}{5}}
+\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces }}{5}}
\citation{mysqlManual}
\citation{wiki}
\citation{wiki}
\@writefile{toc}{\contentsline {section}{\numberline {4}Software design}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Database access}{6}}
-\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces }}{6}}
+\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces }}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Controlling the cell phones}{6}}
\citation{socket}
\citation{wiki}
-\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces }}{7}}
+\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces }}{7}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Client and Server class}{7}}
-\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces }}{8}}
-\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces }}{8}}
+\citation{wiki}
+\@writefile{lof}{\contentsline {figure}{\numberline {5}{\ignorespaces }}{8}}
+\@writefile{lof}{\contentsline {figure}{\numberline {6}{\ignorespaces }}{8}}
+\citation{wiki}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}Ping class}{9}}
+\@writefile{lof}{\contentsline {figure}{\numberline {7}{\ignorespaces }}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.5}Data logging}{9}}
+\@writefile{lof}{\contentsline {figure}{\numberline {8}{\ignorespaces }}{9}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {4.6}SSH Class}{9}}
\citation{beagleDataSheet}
\@writefile{toc}{\contentsline {section}{\numberline {5}Hardware design}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}BeagleBoard}{10}}
-\@writefile{lof}{\contentsline {figure}{\numberline {5}{\ignorespaces }}{10}}
+\@writefile{lof}{\contentsline {figure}{\numberline {9}{\ignorespaces }}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Cell phones}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.3}Cables for the cell phones}{11}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {5.4}Server}{11}}
\citation{spin}
\citation{spin}
\citation{wiki}
\@writefile{toc}{\contentsline {section}{\numberline {6}Communication protocol}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.1}Hanlder side}{12}}
-\@writefile{lof}{\contentsline {figure}{\numberline {6}{\ignorespaces }}{12}}
-\@writefile{lof}{\contentsline {figure}{\numberline {7}{\ignorespaces }}{12}}
-\@writefile{lof}{\contentsline {figure}{\numberline {8}{\ignorespaces }}{12}}
+\@writefile{lof}{\contentsline {figure}{\numberline {10}{\ignorespaces }}{12}}
+\@writefile{lof}{\contentsline {figure}{\numberline {11}{\ignorespaces }}{12}}
+\@writefile{lof}{\contentsline {figure}{\numberline {12}{\ignorespaces }}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.2}Verification of the protocol}{13}}
\citation{sshTunnel}
\@writefile{toc}{\contentsline {section}{\numberline {7}Security and safety of the system}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}Encryption of the communication channels}{14}}
-\@writefile{lof}{\contentsline {figure}{\numberline {9}{\ignorespaces }}{14}}
+\@writefile{lof}{\contentsline {figure}{\numberline {13}{\ignorespaces }}{14}}
\citation{https}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.2}Security on the web site}{15}}
\citation{https}
@@ -48,7 +56,7 @@
\@writefile{toc}{\contentsline {subsection}{\numberline {8.1}Communication between the web page and the test software}{19}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.2}Results on the web page}{19}}
\citation{pChart}
-\@writefile{lof}{\contentsline {figure}{\numberline {10}{\ignorespaces }}{20}}
+\@writefile{lof}{\contentsline {figure}{\numberline {14}{\ignorespaces }}{20}}
\@writefile{toc}{\contentsline {section}{\numberline {9}Conclusion}{21}}
\bibcite{mysqlManual}{1}
\bibcite{wiki}{2}
diff --git a/notFinishedCode/Report/test.log b/notFinishedCode/Report/test.log
index bb9f19c..909b0c5 100644
--- a/notFinishedCode/Report/test.log
+++ b/notFinishedCode/Report/test.log
@@ -1,4 +1,4 @@
-This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.9.27) 12 OCT 2011 19:51
+This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.9.27) 14 OCT 2011 17:53
entering extended mode
%&-line parsing enabled.
**test.tex
@@ -281,19 +281,19 @@ LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 6.
Class scrartcl Info: You've told me to use the font selection of the element
(scrartcl) `sectioning' that is an alias of element `disposition'
-(scrartcl) on input line 11.
+(scrartcl) on input line 12.
Class scrartcl Info: You've told me to use the font selection of the element
(scrartcl) `sectioning' that is an alias of element `disposition'
-(scrartcl) on input line 15.
+(scrartcl) on input line 17.
Class scrartcl Info: You've told me to use the font selection of the element
(scrartcl) `sectioning' that is an alias of element `disposition'
-(scrartcl) on input line 18.
+(scrartcl) on input line 20.
Class scrartcl Info: You've told me to use the font selection of the element
(scrartcl) `sectioning' that is an alias of element `disposition'
-(scrartcl) on input line 21.
+(scrartcl) on input line 23.
Class scrartcl Info: You've told me to use the font selection of the element
(scrartcl) `sectioning' that is an alias of element `disposition'
-(scrartcl) on input line 24.
+(scrartcl) on input line 26.
)
\tf@toc=\write4
\openout4 = `test.toc'.
@@ -301,70 +301,83 @@ Class scrartcl Info: You've told me to use the font selection of the element
[2] [3
]
-[4
+<BigPicture_new1.png, id=18, 874.26625pt x 665.48625pt>
+File: BigPicture_new1.png Graphic file (type png)
-] [5] <dbClass.png, id=24, 660.34941pt x 620.67177pt>
+<use BigPicture_new1.png> [4
+
+ <./BigPicture_new1.png>]
+<DBRelationship.png, id=24, 1302.8675pt x 540.0175pt>
+File: DBRelationship.png Graphic file (type png)
+ <use DBRelationship.png>
+[5 <./DBRelationship.png (PNG copy)>]
+<dbClass.png, id=28, 660.34941pt x 620.67177pt>
File: dbClass.png Graphic file (type png)
<use dbClass.png>
-<serialPort.png, id=25, 518.64352pt x 371.26941pt>
+<serialPort.png, id=29, 518.64352pt x 371.26941pt>
File: serialPort.png Graphic file (type png)
<use serialPort.png>
[6 <./dbClass.png (PNG copy)>]
LaTeX Font Info: External font `cmex10' loaded for size
-(Font) <9> on input line 136.
+(Font) <9> on input line 148.
LaTeX Font Info: External font `cmex10' loaded for size
-(Font) <5> on input line 136.
+(Font) <5> on input line 148.
-<serverClass.png, id=31, 302.12875pt x 181.67876pt>
+<serverClass.png, id=35, 302.12875pt x 181.67876pt>
File: serverClass.png Graphic file (type png)
<use serverClass.png>
-<ClientClass.png, id=32, 507.30705pt x 256.48764pt>
+<ClientClass.png, id=36, 507.30705pt x 256.48764pt>
File: ClientClass.png Graphic file (type png)
<use ClientClass.png>
-[7 <./serialPort.png (PNG copy)>] [8 <./serverClass.png (PNG copy)> <./ClientCl
-ass.png (PNG copy)>] [9] <bb.jpg, id=46, 521.95pt x 516.93124pt>
+[7 <./serialPort.png (PNG copy)>] <ping.png, id=44, 419.44942pt x 97.77705pt>
+File: ping.png Graphic file (type png)
+
+<use ping.png> [8 <./serverClass.png (PNG copy)> <./ClientClass.png (PNG copy)>
+] <logging.png, id=48, 333.00882pt x 167.21294pt>
+File: logging.png Graphic file (type png)
+ <use logging.png> [9 <./ping.png (PNG copy)> <./logging.png (PNG copy)>]
+<bb.jpg, id=52, 521.95pt x 516.93124pt>
File: bb.jpg Graphic file (type jpg)
- <use bb.jpg>
-[10
+ <use bb.jpg> [10
<./bb.jpg>] [11]
-<protocolCommunicationHandler.png, id=54, 2486.93823pt x 792.13588pt>
+<protocolCommunicationHandler.png, id=60, 2486.93823pt x 792.13588pt>
File: protocolCommunicationHandler.png Graphic file (type png)
<use protocolCommunicationHandler.png>
-<protocolCommunicationcControllerReceiver.png, id=55, 1808.16705pt x 766.62883p
+<protocolCommunicationcControllerReceiver.png, id=61, 1808.16705pt x 766.62883p
t>
File: protocolCommunicationcControllerReceiver.png Graphic file (type png)
<use protocolCommunicationcControllerReceiver.png>
-<protocolCommunicationcControllerCaller.png, id=56, 1808.16705pt x 766.62883pt>
+<protocolCommunicationcControllerCaller.png, id=62, 1808.16705pt x 766.62883pt>
File: protocolCommunicationcControllerCaller.png Graphic file (type png)
<use protocolCommunicationcControllerCaller.png> [12
<./protocolCommunicationHandler.png (PNG copy)> <./protocolCommunicationcContr
ollerReceiver.png (PNG copy)> <./protocolCommunicationcControllerCaller.png (PN
G copy)>] [13]
-<sshTunnel.png, id=65, 696.6025pt x 152.57pt>
+<sshTunnel.png, id=71, 696.6025pt x 152.57pt>
File: sshTunnel.png Graphic file (type png)
<use sshTunnel.png> [14
<./sshTunnel.png (PNG copy)>] [15] [16]
-LaTeX Font Info: Try loading font information for OMS+cmr on input line 401.
+LaTeX Font Info: Try loading font information for OMS+cmr on input line 430.
(/usr/share/texmf-texlive/tex/latex/base/omscmr.fd
File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <9> not available
-(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 401.
+(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 430.
[17] [18] [19]
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <12> not available
-(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 473.
+(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 502.
-<resultsImage.png, id=85, 702.625pt x 431.6125pt>
+<resultsImage.png, id=91, 702.625pt x 431.6125pt>
File: resultsImage.png Graphic file (type png)
<use resultsImage.png>
[20 <./resultsImage.png (PNG copy)>] [21]
-LaTeX Font Info: Try loading font information for T1+cmtt on input line 497.
+LaTeX Font Info: Try loading font information for T1+cmtt on input line 526.
(/usr/share/texmf-texlive/tex/latex/base/t1cmtt.fd
@@ -372,10 +385,10 @@ File: t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
AED: lastpage setting LastPage [22] (./test.aux) )
Here is how much of TeX's memory you used:
- 4908 strings out of 495061
- 67951 string characters out of 1182621
+ 4928 strings out of 495061
+ 68307 string characters out of 1182621
255271 words of memory out of 3000000
- 8021 multiletter control sequences out of 15000+50000
+ 8037 multiletter control sequences out of 15000+50000
18484 words of font info for 43 fonts, out of 3000000 for 9000
28 hyphenation exceptions out of 8191
36i,10n,45p,751b,1285s stack positions out of 5000i,500n,10000p,200000b,50000s
@@ -393,9 +406,9 @@ ur/jknappen/ec/ecsx1440.600pk> </home/refik/.texmf-var/fonts/pk/ljfour/jknappen
sr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi12.pfb></usr/share/te
xmf-texlive/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texmf-texlive
/fonts/type1/public/amsfonts/cm/cmsy9.pfb>
-Output written on test.pdf (22 pages, 706528 bytes).
+Output written on test.pdf (22 pages, 935391 bytes).
PDF statistics:
- 644 PDF objects out of 1000 (max. 8388607)
+ 652 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
- 56 words of extra memory for PDF output out of 10000 (max. 10000000)
+ 76 words of extra memory for PDF output out of 10000 (max. 10000000)
diff --git a/notFinishedCode/Report/test.pdf b/notFinishedCode/Report/test.pdf
index cadd52e..855ef6f 100644
--- a/notFinishedCode/Report/test.pdf
+++ b/notFinishedCode/Report/test.pdf
Binary files differ
diff --git a/notFinishedCode/Report/test.tex b/notFinishedCode/Report/test.tex
index dd25b8a..453634c 100644
--- a/notFinishedCode/Report/test.tex
+++ b/notFinishedCode/Report/test.tex
@@ -103,9 +103,21 @@ Before we had started working on our project, we had to analyze the overall netw
Gradually we implemented a bit-by-bit of the final software. Every single step was accompanied by testing and validation procedures. At the end we connected all the ``black-boxes'' into one big piece of software. We have fulfilled our requests and goals and made a fully working and operable test software. Despite developing a working software, all the way along we thought about the simplicity of the usage of the software. In the following chapters we will describe in more detail our approach and how each subsystem works.
\clearpage
\section{Requirements} % chapter 2
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=140mm]{BigPicture_new1.png}
+ \caption[]{Overview of the system}
+\end{figure}
\newpage
\section{Database design}
-How we designed our database and why, explain in this section! Our database of choice was MySQL b
+At the start our database of choice was MySQL.
+When the
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=130mm]{DBRelationship.png}
+ \caption[]{Database relationship diagram}
+\end{figure}
+
\newpage
\section{Software design} % section 2.1
\subsection{Database access} % subsection 2.1.1
@@ -156,7 +168,23 @@ The client class can be seen in the following figure. To initialize the client o
Once an instance of it is created and loaded with the IP address and the port, one needs to call the \emph{connect()} method.
The method will produce an integer based on its connection state. Output information and the programming code can be found on our project wiki page \cite{wiki}.
\subsection{Ping class}
+Before making any test and establishing a connection we were required to ensure that the server is online. The best way to assess the liveness property was to ping the server computer running the required service. Once the class is properly defined, we could easily set the number of ping tries.
+A ping timeout response was set up to 2 seconds. For more details and insights, one can read more about it on our wiki page \cite{wiki}.
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=70mm]{ping.png}
+ \caption[]{Ping class, used by test software}
+\end{figure}
\subsection{Data logging}
+If bugs appear it is important to reconstruct the case. One of the best ways to reconstruct the case was to log every single step part of code gets executed.
+We had used the logging class to follow our handler code run on the BeagleBoard. In case there is an error we could look inside of the log files and track the error.
+How the class works and what kind of outputs it produces can be found on our project wiki page \cite{wiki}.
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=60mm]{logging.png}
+ \caption[]{Logging class}
+\end{figure}
+\subsection{SSH Class}
\clearpage
\section{Hardware design}
In our team project we had the option to choose all the required hardware ourself beside the two BeagleBoards, which we were supplied by Konrad and Dennis.
@@ -194,7 +222,8 @@ Once they were plugged into the USB port, Ubuntu automatically recognized the ca
The virtual serial ports were created and could be found on \emph{/dev/ttyUSBx}, where $x$ is the automatically assigned number for the port.
Some of the cables had the cability to charge the Siemens S55 phones.
Konrad had opened several cables to solder the power supplies to some contacts and the problem was solved for all of the cables.
-
+\subsection{Server}
+We were given an old Pentium 3 computer where we installed Ubuntu Linux. Configured the Appache web server and MySQL.
\clearpage
\section{Communication protocol}
diff --git a/notFinishedCode/Report/test.tex.backup b/notFinishedCode/Report/test.tex.backup
index d520c00..7c427aa 100644
--- a/notFinishedCode/Report/test.tex.backup
+++ b/notFinishedCode/Report/test.tex.backup
@@ -105,7 +105,14 @@ Gradually we implemented a bit-by-bit of the final software. Every single step w
\section{Requirements} % chapter 2
\newpage
\section{Database design}
-How we designed our database and why, explain in this section! Our database of choice was MySQL b
+At the start our database of choice was MySQL.
+When the
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=130mm]{DBRelationship.png}
+ \caption[]{Database relationship diagram}
+\end{figure}
+
\newpage
\section{Software design} % section 2.1
\subsection{Database access} % subsection 2.1.1
@@ -130,7 +137,7 @@ our first approach was inferior and slower. The state controlled method connecte
One can easyly apply the class just by correctly defining the parameters: port address, baud rate and timeout. The former two are self-explanatory and the timeout parameter is used to define when the alarm function should raise a timeout exception.
A timeout exception gets raised when the cell phone does not respond (i.e. when the cell phone enters a deadlock or delayed state.) We had used the serial port library inside of Python although we use USB cables to connect to our cell phones. One should
be aware that our USB cables create a virtual serial port. More details on class design and an example can be found on our project wiki \cite{wiki}.
-\subsection{Client and Server model}
+\subsection{Client and Server class}
Our socket communication code is based on the example given in the Python socket manual \cite{socket}.
We extended it into two classes, a client and a server class. We had used the TCP protocol to base our two classes on\footnote{TCP is reliable compared to UDP (i.e. transmitted packets get also delivered),
packets are ordered when received and data are received in a stream (i.e. multiple packets can be read at once.)}.
@@ -146,14 +153,29 @@ Before solving the problem without using the socket parameter, we had another so
\includegraphics[scale=0.8]{serverClass.png}
\caption[]{Server class, used by the server application}
\end{figure}
-With the client class we did not have any problems. There The client class can be seen in the following figure.
+In the process of testing the client class we did not have any major problems. The only major flow we had to debug was when one of the sides disconnects that we get out of the waiting loop if the timeout variable was set to \emph{0} (i.e. infinite waiting loop.)
+The client class can be seen in the following figure. To initialize the client object one needs to define the IP address and the port of the server application listening on it.
\begin{figure}[hb!]
\centering
\includegraphics[scale=0.5]{ClientClass.png}
\caption[]{Client class, used by the client application}
\end{figure}
-
-
+Once an instance of it is created and loaded with the IP address and the port, one needs to call the \emph{connect()} method.
+The method will produce an integer based on its connection state. Output information and the programming code can be found on our project wiki page \cite{wiki}.
+\subsection{Ping class}
+Before making any test and establishing a connection we were required to ensure that the server is online. The best way to assess the liveness property was to ping the server computer running the required service. Once the class is properly defined, we could easily set the number of ping tries.
+A ping timeout response was set up to 2 seconds. For more details and insights, one can read more about it on our wiki page \cite{wiki}.
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=70mm]{ping.png}
+ \caption[]{Ping class, used by test software}
+\end{figure}
+\subsection{Data logging}
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=60mm]{logging.png}
+ \caption[]{Logging class}
+\end{figure}
\clearpage
\section{Hardware design}
In our team project we had the option to choose all the required hardware ourself beside the two BeagleBoards, which we were supplied by Konrad and Dennis.
@@ -191,7 +213,8 @@ Once they were plugged into the USB port, Ubuntu automatically recognized the ca
The virtual serial ports were created and could be found on \emph{/dev/ttyUSBx}, where $x$ is the automatically assigned number for the port.
Some of the cables had the cability to charge the Siemens S55 phones.
Konrad had opened several cables to solder the power supplies to some contacts and the problem was solved for all of the cables.
-
+\subsection{Server}
+We were given an old Pentium 3 computer where we installed Ubuntu Linux. Configured the Appache web server and MySQL.
\clearpage
\section{Communication protocol}
diff --git a/notFinishedCode/Report/test.tex~ b/notFinishedCode/Report/test.tex~
index dd25b8a..6857113 100644
--- a/notFinishedCode/Report/test.tex~
+++ b/notFinishedCode/Report/test.tex~
@@ -103,9 +103,21 @@ Before we had started working on our project, we had to analyze the overall netw
Gradually we implemented a bit-by-bit of the final software. Every single step was accompanied by testing and validation procedures. At the end we connected all the ``black-boxes'' into one big piece of software. We have fulfilled our requests and goals and made a fully working and operable test software. Despite developing a working software, all the way along we thought about the simplicity of the usage of the software. In the following chapters we will describe in more detail our approach and how each subsystem works.
\clearpage
\section{Requirements} % chapter 2
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=140mm]{BigPicture_new1.png}
+ \caption[]{Database relationship diagram}
+\end{figure}
\newpage
\section{Database design}
-How we designed our database and why, explain in this section! Our database of choice was MySQL b
+At the start our database of choice was MySQL.
+When the
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=130mm]{DBRelationship.png}
+ \caption[]{Database relationship diagram}
+\end{figure}
+
\newpage
\section{Software design} % section 2.1
\subsection{Database access} % subsection 2.1.1
@@ -156,7 +168,23 @@ The client class can be seen in the following figure. To initialize the client o
Once an instance of it is created and loaded with the IP address and the port, one needs to call the \emph{connect()} method.
The method will produce an integer based on its connection state. Output information and the programming code can be found on our project wiki page \cite{wiki}.
\subsection{Ping class}
+Before making any test and establishing a connection we were required to ensure that the server is online. The best way to assess the liveness property was to ping the server computer running the required service. Once the class is properly defined, we could easily set the number of ping tries.
+A ping timeout response was set up to 2 seconds. For more details and insights, one can read more about it on our wiki page \cite{wiki}.
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=70mm]{ping.png}
+ \caption[]{Ping class, used by test software}
+\end{figure}
\subsection{Data logging}
+If bugs appear it is important to reconstruct the case. One of the best ways to reconstruct the case was to log every single step part of code gets executed.
+We had used the logging class to follow our handler code run on the BeagleBoard. In case there is an error we could look inside of the log files and track the error.
+How the class works and what kind of outputs it produces can be found on our project wiki page \cite{wiki}.
+\begin{figure}[ht!]
+ \centering
+ \includegraphics[width=60mm]{logging.png}
+ \caption[]{Logging class}
+\end{figure}
+\subsection{SSH Class}
\clearpage
\section{Hardware design}
In our team project we had the option to choose all the required hardware ourself beside the two BeagleBoards, which we were supplied by Konrad and Dennis.
@@ -194,7 +222,8 @@ Once they were plugged into the USB port, Ubuntu automatically recognized the ca
The virtual serial ports were created and could be found on \emph{/dev/ttyUSBx}, where $x$ is the automatically assigned number for the port.
Some of the cables had the cability to charge the Siemens S55 phones.
Konrad had opened several cables to solder the power supplies to some contacts and the problem was solved for all of the cables.
-
+\subsection{Server}
+We were given an old Pentium 3 computer where we installed Ubuntu Linux. Configured the Appache web server and MySQL.
\clearpage
\section{Communication protocol}
diff --git a/notFinishedCode/Report/test.toc b/notFinishedCode/Report/test.toc
index ada41a6..93632f0 100644
--- a/notFinishedCode/Report/test.toc
+++ b/notFinishedCode/Report/test.toc
@@ -8,10 +8,12 @@
\contentsline {subsection}{\numberline {4.3}Client and Server class}{7}
\contentsline {subsection}{\numberline {4.4}Ping class}{9}
\contentsline {subsection}{\numberline {4.5}Data logging}{9}
+\contentsline {subsection}{\numberline {4.6}SSH Class}{9}
\contentsline {section}{\numberline {5}Hardware design}{10}
\contentsline {subsection}{\numberline {5.1}BeagleBoard}{10}
\contentsline {subsection}{\numberline {5.2}Cell phones}{11}
\contentsline {subsection}{\numberline {5.3}Cables for the cell phones}{11}
+\contentsline {subsection}{\numberline {5.4}Server}{11}
\contentsline {section}{\numberline {6}Communication protocol}{12}
\contentsline {subsection}{\numberline {6.1}Hanlder side}{12}
\contentsline {subsection}{\numberline {6.2}Verification of the protocol}{13}