9.5 Event Triggered Task Execution
9.5.1 Description
Gateway Device may be required to configure for executing some tasks which are triggered by pre-defined events.
9.5.2 Source
oneM2M-REQ-2013-0176R03 Event Triggered Task Exec Use Case
REQ-2015-0596 Event Trigger Use Case Revise
9.5.3 Actors
- Management Server,
- Gateway Device which has the characteristic both M2M Gateway (aggregate measured value) and M2M Device (accepting setting change),
- Thermometer and Air Conditioner (M2M Device),
- Data Storage Server,
- User
9.5.4 Pre-conditions
- Gateway Device is configured to work as the gateway for collecting data from some sensor devices installed at home network.
- Sensor Devices are configured to accept the management request from Gateway Device which requests reporting measured data on demand
9.5.5 Triggers
- M2M System is going to configure Gateway Device for scheduling task execution for data collection from sensor devices.
9.5.6 Normal Flow
- Management Server requests management on scheduling task settings of Gateway Device to fetch the current value of the thermometer, and report collected data from a thermometer (one of the Sensor Devices in this use case) every 30 minutes.
- Gateway Device establishes the connection to the thermometer, and collects measured data.
- Gateway Device reports the collected data to Data Storage Server.
9.5.7 Alternative Flow
Alternative Flow 1
- (after step 2 in normal flow,) Gateway Device stores series of measured data associating with the source Sensor Device.
- Management Server requests Gateway Device to report the log data which summarize series of measured data by Sensor Devices for one day.
Alternative Flow 2
- Management Server configures the M2M Application on the Gateway Device to start monitoring energy consumption of Air Conditioner, when the device is turned on, and to stop monitoring when that is turned off.
- M2M Application on the Gateway Device subscribes requests notification on the power status change of Air Conditioner.
- When the user turned on the Air Conditioner, the Gateway Device is notified by event notation for the status change.
- M2M Application on the Gateway Device starts monitoring the energy consumption of the Air Conditioner.
- When User turned off the Air Conditioner, the M2M Application on the Gateway Device is notified the status change
- Gateway Device stops monitoring the energy consumption of the Air Conditioner.
Alternative Flow 3
- Management Server configures the M2M Application on the Gateway Device to report the energy consumption when the total energy consumption exceeded over the 20kW per day.
- M2M Application on the Gateway Device keeps collecting data about energy consumption from home electronics (i.e. Air Conditioner).
- When the total energy consumption exceeded over the 20kW per day, the M2M Application on the Gateway sends notify the report to the Data Storage Server.
9.5.8 Post-conditions
Collected data is stored on the Data Storage Server for further use
9.5.9 High Level Illustration
Figure 9.5.9-1 Event triggered Task Execution High Level Illustration
9.5.10 Potential Requirements
- M2M System Shall support timer triggered data collection on M2M Gateway from M2M Device.
- M2M System Shall support M2M Gateway which reports collection of data measured by M2M Device.
- M2M System Shall support to start/stop monitoring measured data by M2M Device triggered by status change of M2M Device to be monitored.
- M2M System Shall support conditional report from M2M Gateway which reports measured data by M2M Device(s). The condition can be expressed as event notification message which is triggered by M2M Application which is monitoring threshold and/or size of value change.