From 124ac0a8f472c9187a55064178070d5d373e56d9 Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Sat, 7 Jun 2014 21:34:58 +0000 Subject: [PATCH] --- Project/applications/smartcities/mainpage.dox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project/applications/smartcities/mainpage.dox b/Project/applications/smartcities/mainpage.dox index 7096d40..6664409 100644 --- a/Project/applications/smartcities/mainpage.dox +++ b/Project/applications/smartcities/mainpage.dox @@ -14,11 +14,11 @@ * At the boot stage, it tries to connect to the default or previously configured (if applicable) Wi-Fi network. If this succeeds, it starts the \ref loop, but should it not work, then it will set up an AP called "modularsense" in which a web server is configured, allowing the user to set up the new parameters. * \subsection loop Main Loop -* At the main loop, it initially scans for sensors and registers them in the SENTILO-compatible platform already configured on the device. Then, it collects data every 5 minutes, allocating memory for each iteration in which data is retrieved. After 30 minutes have passed, it sends the data to the platform if an Internet connection is available, if not, it will store it up until connectivity is reestablished. +* At the main loop, it initially scans for sensors and registers them in the SENTILO-compatible platform already configured on the device. Then, it collects data every 5 minutes, allocating memory for each iteration in which data is retrieved. After 30 minutes have passed, it sends the data to the platform if an Internet connection is available, if not, it will store it up until connectivity is reestablished. *

This loop repeats until power runs out or until it runs out of memory. Given the case, it stops collecting data and tries to send the stored data until it is successful, then it frees the memory and resumes the cycle. * \subsection data Data Collection -* Data collection is achieved using the internal I2C bus. Scanning is performed first to enumerate all the sensors available in the bus, then, data is fetched from them in a timely fashion. +* Data collection is achieved using the internal I2C bus. Scanning is performed first to enumerate all the sensors available in the bus, upon completion, data is fetched from them in a timely fashion. *
The sound sensor uses one of the internal ADC to sample the sound pressure level. The internal battery level sensor also uses another ADC. * \author Imanol Barba Sabariego -- libgit2 0.22.2