| Literature DB >> 23012505 |
Nadia Gámez1, Javier Cubo, Lidia Fuentes, Ernesto Pimentel.
Abstract
In the Future Internet, applications based on Wireless Sensor Networks will have to support reconfiguration with minimum human intervention, depending on dynamic context changes in their environment. These situations create a need for building these applications as adaptive software and including techniques that allow the context acquisition and decisions about adaptation. However, contexts use to be made up of complex information acquired from heterogeneous devices and user characteristics, making them difficult to manage. So, instead of building context-aware applications from scratch, we propose to use FamiWare, a family of middleware for Ambient Intelligence specifically designed to be aware of contexts in sensor and smartphone devices. It provides both, several monitoring services to acquire contexts from devices and users, and a context-awareness service to analyze and detect context changes. However, the current version of FamiWare does not allow the automatic incorporation related to the management of new contexts into the FamiWare family. To overcome this shortcoming, in this work, we first present how to model the context using a metamodel to define the contexts that must to be taken into account in an instantiation of FamiWare for a certain Ambient Intelligence system. Then, to configure a new context-aware version of FamiWare and to generate code ready-to-install within heterogeneous devices, we define a mapping that automatically transforms metamodel elements defining contexts into elements of the FamiWare family, and we also use the FamiWare configuration process to customize the new context-aware variant. Finally, we evaluate the benefits of our process, and we analyze both that the new version of the middleware works as expected and that it manages the contexts in an efficient way.Entities:
Keywords: AAL; AmI; WSN; configuration; context-aware; middleware; model-driven
Year: 2012 PMID: 23012505 PMCID: PMC3444063 DOI: 10.3390/s120708544
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1.Architecture of a heterogeneous system made up of sensors and smartphones/tablets.
Figure 2.Overview of our approach.
Figure 3.Device interconnection using FamiWare.
Figure 4.Partial FamiWare feature model of monitoring and context-awareness services.
Correspondences of ContextUML with FamiWare feature model and implementation.
| Context | ContextData child feature | New subscription of the Context-Awareness service to monitored information |
| ContextSource | Monitoring child feature | New Monitoring service |
| CAMechanism | The conjunction of the constraints is the first element in a usage dependency ( | Constraints to be analyzed in the Context-Awareness service to detect context changes |
| CAMechanism | Children features of a new plan created as a Plan child. It will be the second element in the usage dependency | Tasks of an OWL-s reconfiguration plan. This plan will be executed when the previous constraints are evaluated to true |
Figure 5.ContextUML to FamiWare mapping.
Figure 6.(a) AAL feature model configuration; (b) Features of a sensor device.
Figure 7.Modeling contexts in our AAL scenario.
Figure 8.FamiWare autonomic services.
Figure 9.FamiWare instantiations with monitoring and context-awareness services for three platforms: (a) Android; (b) TinyOS; and (c) Sun SPOT.
Figure 10.FamiWare code automatically generated for TinyOS sensors.
Latency for the reconfiguration of the system.
| Receive monitored data | 5.37 ms |
| Detect a context change and choose the plan | 2.85 ms |
| Total Context-Awareness time | 8.22 ms |
| Receive plan chosen | 4.64 ms |
| Get and read the plan file | 15.92 ms |
| Interpret and execute the tasks of the plan | 1736.42 ms |
| Total Reconfiguration time | 1756.98 ms |
Figure 11.Reception of monitored data when many topics published.