Architecture - HeinrichHartmann/MobileSensing GitHub Wiki

SensorService (abstract, extends Service)

  • must run in own thread (? too much overhead)
  • services bind to Service Manager (bound service)
  • binding grants access to:
  • Metadata: MetaData getMetadata();
  • Last sensor value: SensorValue getLastValue();
  • Cached sensor values: List<SensorValue> pullData();
  • Changes of Configuration (t.b.d)

SensorManager

  • binds different SensorServices
  • pulls and stores data queues from sensors periodically
  • cummunicates with GUI Activity
  • Provides API for online access to sensor data
    • getLastWindow etc.

TODO

Work Packages

  • Implemenet further Sensor Services
    • GPS
    • Audio
    • Gyro
  • Sensor Manager Controlling
    • Implemenet Intent API
    • Threading
  • GUI Communication SensorManager
    • SimpleCapture Acvitivty
    • Configuration Activity: Config Objects
  • Data Export
  • Aggregate Sensor Value Lists
  • write to FileSystem
  • define final output format

Building small Application

  • Accelerometer, GPS
  • Timer: getLastValue() every second + show()
  • Store data