Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
Modifiche relazioni
Marco Ziccardi329c703fb1a2
diff --git a/relazioni/ipermediali/architettura.tex b/relazioni/ipermediali/architettura.texnew file mode 100644index 0000000..fe0bae2--- /dev/null+++ b/relazioni/ipermediali/architettura.tex@@ -0,0 +1,53 @@+\section{Architettura}+L'architettura realizzata è presentata in figura \ref{img:architecture}.++\begin{figure}[!ht]+\begin{center}+\makebox[\linewidth]{\includegraphics[scale=0.7]{../wireless/resources/architecture.pdf}}+\caption{Diagramma architetturale ad alto livello}+\label{img:architecture}+\end{center}+\end{figure}++Sono state definite tre parti principali che realizzano i computi di monitoraggio dell'applicazione. Ciascuna di queste parti può essere divisa in componenti:++\begin{itemize}+ \item \texttt{Motion Detection}:+ \begin{itemize}+ \item \texttt{CameraFragment}: componente attivo dell'interfaccia grafica visualizzato dall'\texttt{SDK} di Android+ \item \texttt{Preview}: collega l'hardware della fotocamera all'applicativo Java e mostra una superficie contenente i frame catturati+ \item \texttt{MonitorAsyncTask}: elabora i frame catturati per fare motion detection+ \item \texttt{LuminanceMotionDetector}, \texttt{ImageCodec}: classi di utilità per l'analisi dei frame e la conversione di immaginid+ \end{itemize}+ \item \texttt{Noise Detection}:+ \begin{itemize}+ \item \texttt{MicrophoneFragment}: componente attivo dell'interfaccia grafica visualizzato dall'\texttt{SDK} di Android+ \item \texttt{MicVolumePicker}: vista passiva che mostra il livello sonoro+ \item \texttt{MicSamplerTask}: periodicamente campiona i dati audio utilizzando \texttt{AudioCodec}+ \item \texttt{AudioCodec}: su richiesta campiona l'audio del microfono+ \end{itemize}+ \item \texttt{Motion Detection}:+ \begin{itemize}+ \item \texttt{AccelerometerFragment}: componente attivo dell'interfaccia grafica visualizzato dall'\texttt{SDK} di Android+ \item \texttt{secureit.opengl}: \textit{package} di utilità grafiche per la visualizzazione di animazioni 3D+ \end{itemize}+\end{itemize}++\texttt{UploadService} viene attivato quando uno dei \textit{fragment} identifica un intrusione. Utilizza i seguenti \textit{task} asincroni per realizzare il caricamento dei dati al \textit{back-end}:+\begin{itemize}+ \item \texttt{ImageUploaderTask}: carica le immagini catturate+ \item \texttt{AudioRecorderTask}: registra una traccia audio e la carica+ \item \texttt{PeriodicPositionUploaderTask}: invia periodicamente la posizione del telefono utilizzando rete \texttt{WIFI} o \texttt{3G}+ \item \texttt{Bluetooth\allowbreak Periodic\allowbreak Position\allowbreak Uploader\allowbreak Task}: invia periodicamente la posizione del telefono utilizzando comunication \textit{bluetooth} opportunistica, attivato soltanto non c'è una connessione \texttt{WIFI} o \texttt{3G} attiva+ \item \texttt{BluetoothServerTask}: \textit{task} che risponde a messaggi \textit{bluetooth} e richiede l'\textit{upload} delegato della posizione+ \item \texttt{DelegatedPositionUploaderTask}: invia periodicamente la posizione di un altro telefono su delega+\end{itemize}++Lo scambio di messaggi \textit{bluetooth} viene fatto utilizzando i seguenti moduli:++\begin{itemize}+ \item \texttt{ObjectBluetoothSocket}: \textit{socket} per l'invio di messaggi \textit{bluetooth}+ \item \texttt{secureit.messages}: \textit{package} contenente messaggi \textit{bluetooth}+\end{itemize}++diff --git a/relazioni/ipermediali/relazione.tex b/relazioni/ipermediali/relazione.texindex 5b77011..156735c 100644--- a/relazioni/ipermediali/relazione.tex+++ b/relazioni/ipermediali/relazione.tex@@ -15,6 +15,10 @@\pagestyle{testo}\input{introduzione.tex}+\newpage+\pagestyle{testo}+\input{architettura.tex}+\newpage\input{accelerometro.tex}diff --git a/relazioni/wireless/paper.tex b/relazioni/wireless/paper.texindex 9b93cac..5988210 100644--- a/relazioni/wireless/paper.tex+++ b/relazioni/wireless/paper.tex@@ -122,7 +122,7 @@ Three parts can be identified which realize the monitoring tasks of the applicat\item \texttt{CameraFragment}: active view component displayed by the Android \texttt{SDK}\item \texttt{Preview}: links camera hardware to the Java application\item \texttt{MonitorAsyncTask}: processes frames in order to detect motion- \item \texttt{LuminanceMotionDetector}, \texttt{ImageCodec} utility classes used by \texttt{MotionAsyncTask}+ \item \texttt{LuminanceMotionDetector}, \texttt{ImageCodec}: utility classes used by \texttt{MotionAsyncTask}\end{itemize}\item \texttt{Noise Detection}:\begin{itemize}@@ -145,7 +145,7 @@ Three parts can be identified which realize the monitoring tasks of the applicat\item \texttt{PeriodicPositionUploaderTask}: periodically sends phone position to the back-end using \texttt{WIFI} or \texttt{3G} network\item \texttt{Bluetooth\allowbreak Periodic\allowbreak Position\allowbreak Uploader\allowbreak Task}: periodically sends phone position using opportunistic bluetooth connectivity, activated only if no \texttt{WIFI} or \texttt{3G} network is active\item \texttt{BluetoothServerTask}: task responding to bluetooth messages requesting delegated position upload- \item \texttt{DelegatedPositionUploaderTask}: periodically sends delegated phone position bluetooth connectivity+ \item \texttt{DelegatedPositionUploaderTask}: periodically sends delegated phone position\end{itemize}Bluetooth message exchange is done using the following modules: