18
Pervasive Mobile Applications Embedded and environmental sensors Notification Services Notification Services Google Cloud Messaging Huber Flores, Satish Srirama [email protected] , [email protected] 25/09/12 1/20 Huber Flores

Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and environmental sensors Notification Services Google Cloud Messaging Huber Flores , Satish

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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