Research Article

Gathering Contextual Data with Power Information Using Smartphones in Internet of Everything

Table 2

Description of tasks in the BPMN model of PowerIpsum.

TaskActorDescription

Poll sensors and record timestamp, current, and battery level.Smart deviceThis task records the current timestamp and polls the sensor embedded
on the device. For the missing sensors, a null value or zero value is
recorded. Furthermore, the average current, voltage,
and battery level are also recorded.
Access weather serviceThe weather service is accessed using latitude and longitude
provided by the GPS sensor.
Receive weather dataThe weather information is received and appended to the recorded
sensor data. This includes the current weather report.
Access map serviceThe location service is accessed using latitude and
longitude provided by the GPS sensor.
Receive map dataThe location information is received and appended to the recorded
contextual information. This includes the current location.
Record timestamp, current,
and battery level
The timestamp is recorded again so that elapsed time can be measured.
The average current and battery level are again recorded. It has
been observed that for the latest smartphones and using newer batteries,
the battery level remains unchanged. Also, the average current
is the same because the elapsed time is a fraction of seconds.
Get user labelThe user types in the activity label to complete the context record.
The record is then appended to the context file, which can be
shared through email, messaging, or file transfer for postprocessing.
Weather serviceOpenWeatherMapThis is a free and online web service that provides the current weather
report based on latitude and longitude. The weather report includes
weather outlook, temperature, precipitation chances forecast,
and other attributes. The service is accessed
using the HTTPS/GET method.
MAP serviceMAPQUESTThis is a free and online web service that provides location information
based on latitude and longitude. The information includes nearby places as well as location tags including street name, locality, and city. This service
is accessed using the HTTPS/GET method.