Next Article in Journal
On the Use of Cameras for the Detection of Critical Events in Sensors-Based Emergency Alerting Systems
Previous Article in Journal
Low-Cost IoT Remote Sensor Mesh for Large-Scale Orchard Monitorization
Open AccessArticle

A Statecharts-Based Approach for WSN Application Development

by Ismo Hakala *,† and Xinyu Tan
Kokkola University Consortium Chydenius, University of Jyväskylä, P.O. Box 567, FI-67701 Kokkola, Finland
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
J. Sens. Actuator Netw. 2020, 9(4), 45;
Received: 1 July 2020 / Revised: 17 September 2020 / Accepted: 21 September 2020 / Published: 25 September 2020
Wireless Sensor Network (WSN) software development challenges developers in two main ways: through system programming, which requires expertise in hardware and network management; and application programming, which requires domain-specific knowledge. However, domain programmers often lack WSN programming expertise. Likewise, system-specific programmers may find it difficult to understand domain-specific requirements. As a result, domain programmers often refrain from using WSN technology in domain-specific applications. Therefore, we propose a Finite State Machine (FSM)-based approach with an affiliated framework to decouple application functionality from WSN details. Instead of the traditional flat FSM, we use statecharts formalism because of its relaxed definition of system states. In this paper, we compare the statecharts paradigm against two basic WSN sensor node programming frameworks. The result exhibits that statecharts are an advanced paradigm in WSN application development. It motivated us to develop a statecharts framework. In our framework, we choose not to use the typical solution which converts statecharts to programming code. Instead of that, we implement a statecharts middleware associated with action libraries to interpret and actuate raw statecharts on an operating system. This approach allows domain programmers to concentrate on WSN application behavior, and system-specific programmers to focus on developing WSN services. We also introduce our statecharts middleware and present a living example with performance evaluation. View Full-Text
Keywords: statecharts; WSN; programming framework; wireless sensor; WSN application statecharts; WSN; programming framework; wireless sensor; WSN application
Show Figures

Figure 1

MDPI and ACS Style

Hakala, I.; Tan, X. A Statecharts-Based Approach for WSN Application Development. J. Sens. Actuator Netw. 2020, 9, 45.

Show more citation formats Show less citations formats
Note that from the first issue of 2016, MDPI journals use article numbers instead of page numbers. See further details here.

Article Access Map by Country/Region

Search more from Scilit
Back to TopTop