MobileDataCollectors package¶
This package offers functionalities to collect data from mobile devices running Android, WearOS or iOS. This package provides Modules to collect data from internal sensors such as accelerometer, location and microphone.
Included Modules¶
This package currently contains 4 Modules:
- AccelerometerCollector: Allows to collect accelerometer data. The sampling rate can be configured freely, within the limitations of the corresponding device.
- BatteryCollector: Allows to collect the current battery level and charging state (charging, not charging, charging via cable or wirelessly, etc.). The battery information can be collected either periodically or automatically when the battery level or state have changed.
- ConnectivityCollector: Allows to collect the currently available network connectivity, such as wifi, cellular or none.
- LocationCollector: Allows to collect the current location of the device.
- MicrophoneCollector: Allows to record audio data with the Microphone.
BatteryCollector¶
Example configuration
<JavaModule class="BatteryCollector.BatteryCollector">
<!-- Output channel for the collected battery information -->
<outputChannel>BatteryData</outputChannel>
<!-- Collect battery information periodically -->
<PeriodicMonitoring>
<rate>10s</rate> <!-- Every 10 seconds -->
</PeriodicMonitoring>
</JavaModule>
The individual properties of the Module are explained below:
Explanation of the properties
- outputChannel: Channel to which the collected battery information will be posted to. The output data will be of type BatteryData.
- PeriodicMonitoring: A PeriodicValue (click for more details) that indicates how often the battery information will be collected and posted to the output channel.