pervasive mobile applications · 2012-10-19 · pervasive mobile applications embedded and...
TRANSCRIPT
![Page 1: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/1.jpg)
Pervasive Mobile ApplicationsEmbedded and environmental sensors
Notification ServicesNotification ServicesGoogle Cloud Messaging
Huber Flores, Satish [email protected], [email protected]
25/09/12 1/20Huber Flores
![Page 2: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/2.jpg)
Outline
• Pervasive applications
– Sensors
– Embedded
– Accelerometer, magnetic field, etc– Accelerometer, magnetic field, etc
– Environmental
– Microcontrollers (e.g Arduino)
– Sensor emulator implementation
• Notification services
– GCM
– Implementation25/09/12 2/20Huber Flores
![Page 3: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/3.jpg)
Pervasive mobile applications
• Sensor information is acquired by
micromechanical artifacts
25/09/12 3/20Huber Flores
![Page 4: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/4.jpg)
Pervasive mobile applications
• Accelerometer
25/09/12 4/20Huber Flores
![Page 5: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/5.jpg)
Pervasive mobile applications
• Gyroscope
• Video stabilization
25/09/12 5/20Huber Flores
![Page 6: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/6.jpg)
Pervasive mobile applications
• Magnetic field
25/09/12 6/20Huber Flores
![Page 7: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/7.jpg)
Pervasive mobile applications
• Other sensors
25/09/12 7/20Huber Flores
![Page 8: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/8.jpg)
Pervasive mobile applications
• Accessing sensor information: Demo
• Download source code
25/09/12 8/20Huber Flores
![Page 9: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/9.jpg)
Pervasive mobile applications
• Sensor Emulator
• http://code.google.com/p/openintents/wiki/S
ensorSimulator
25/09/12 9/20Huber Flores
![Page 10: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/10.jpg)
Pervasive mobile applications
• Sensor Emulator: Demo
• Download source code
25/09/12 10/20Huber Flores
![Page 11: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/11.jpg)
Pervasive mobile applications
25/09/12 11/20Huber Flores
![Page 12: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/12.jpg)
Push technologiesPush technologies
25/09/12 12/20Huber Flores
![Page 13: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/13.jpg)
Notification services
• Push data to the mobile applications
25/09/12 13/20Huber Flores
![Page 14: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/14.jpg)
Notification services
• GCM: Demo
• Download source code
25/09/12 14/20Huber Flores
![Page 15: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/15.jpg)
Notification services
• Implement and configure server
• Tomcat
• Java
• Memory database
• Get the project ID for Google Console APIs
• https://code.google.com/apis/console
25/09/12 15/20Huber Flores
![Page 16: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/16.jpg)
Notification services
• Declare the receivers and permissions
25/09/12 16/20Huber Flores
![Page 17: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/17.jpg)
Notification services
• Set the sender and receiver parameters
• Registration ID
• Sender ID
• Project ID
25/09/12 17/20Huber Flores
![Page 18: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish](https://reader033.vdocuments.net/reader033/viewer/2022042300/5ecab9794e865934646508b7/html5/thumbnails/18.jpg)
Homework
• Adapt the given monitor application (accelerometer
code) to run in the Android emulator.
For those that got some errors when imported the
monitor application project, then just fix it by modifying
the Android API/Google APIs, this can be done by
Project -> Properties -> Android -> check option "Google
APIs" or "Android x.0" -> Apply
25/09/12 18/20Huber Flores