Smartphone as Sensor Node in a Sensor Cloud
With a Nokia N82 smartphone and Bluetooth DAQ Starter Kit (with EMANT380) running Python on Symbian S60 OS, measure temperature and light intensity and write the measurements to www.sensor-cloud.comUsing Beta Python Driver for the EMANT380 Bluetooth DAQ for the Symbian S60 3rd Edition. The driver is incomplete. (For PyS60 1.9.7 and later)
Note: If you are new to Symbian S60 Python programming, please familiarise yourself with the environment before attempting to run the following examples. You should install Python on your SD Drive. Due to security, some file areas are hidden. The Python folder on the SD Drive can be browsed when you connect your phone to the PC. Copy all the files in this folder to the Python folder on your phone including the lib folder. Don't change the name.
Run the Python examples provided by Nokia. Only when you can successfully run their examples, should you attempt the middaq.py script
- Download the middaq.py script from info.emant.com
. We will modify the middaq.py script using notepad on the PC.
- Change the Network Access Point to the one you will be using
- Key in your api key and api secret which can be obtained from www.sensor-cloud.com
- Key in the Mac address of your EMANT380 module
- The default time delay between each measurement is 10 minutes. You can change the delay here
- Finally enter your geolocation. You can also make use of the GPS info from the Nokia phone. Reading the internal GPS Location may require signing the shell when you are installing the PyS60 in your device. You can get the shell signed at the "Symbian Online Signing".
- Transfer the modified middaq.py script to your Nokia smartphone.
- Check if you have paired the EMANT380 to the Nokia phone. If you have not, do it now
- Start Python.
- Run the middaq.py script. When the program runs, it will connect to the EMANT380, retrieves and displays its firmware ID. Next it will write the light intensity and temperature measured to www.sensor-cloud.com
. The status of the write will also be displayed.
- To exit the program, press the exit key.
Created by admin. Last Modification: Monday 29 of March, 2010 15:51:06 SGT by admin.
