From ad726f3ea99754c7a85009ce127e0e15a0a57bc2 Mon Sep 17 00:00:00 2001 From: Refik Hadzialic Date: Wed, 12 Oct 2011 19:52:54 +0200 Subject: Report working! --- notFinishedCode/Report/test.tex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'notFinishedCode/Report/test.tex') diff --git a/notFinishedCode/Report/test.tex b/notFinishedCode/Report/test.tex index 3b67df0..dd25b8a 100644 --- a/notFinishedCode/Report/test.tex +++ b/notFinishedCode/Report/test.tex @@ -130,7 +130,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.)}. @@ -153,8 +153,10 @@ The client class can be seen in the following figure. To initialize the client o \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} +\subsection{Data logging} \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. -- cgit v1.2.3-55-g7522