DocumentCode :
3339113
Title :
Beyond event handlers: programming wireless sensors with attributed state machines
Author :
Kasten, Oliver ; Römer, Kay
Author_Institution :
Dept. of Comput. Sci., Eidgenossische Tech. Hochschule, Zurich, Switzerland
fYear :
2005
fDate :
38457
Firstpage :
45
Lastpage :
52
Abstract :
Event-driven programming is a popular paradigm for programming sensor nodes. It is based on the specification of actions (also known as event handlers) which are triggered by the occurrence of events. While this approach is both simple and efficient, it suffers from two important limitations. Firstly, the association of events to actions is static-there is no explicit support for adopting this association depending on the program state. Secondly, a program is split up into many distinct actions without explicit support for sharing information among these. These limitations often lead to issues with code modularity, complexity, and correctness. To tackle these issues we propose OSM, a programming model and language for sensor nodes based on finite state machines. OSM extends the event paradigm with states and transitions, such that the invocation of actions becomes a function of both the event and the program state. For removing the second limitation, OSM introduces state attributes that allow sharing of information among actions. They can be considered local variables of a state with support for automatic memory management. OSM specifications can be compiled into sequential C code that requires only minimal runtime support, resulting in efficient and compact systems.
Keywords :
C language; distributed object management; finite state machines; network operating systems; storage management; wireless sensor networks; OSM; action specification; attributed state machine; automatic memory management; code modularity; event handler; event occurrence; event-driven programming; finite state machine; information sharing; minimal runtime support; object state model; sequential C code; wireless sensor programming; Automata; Computer science; Data structures; Dynamic programming; Embedded system; Memory management; Programming profession; Sensor phenomena and characterization; Wireless sensor networks; Yarn;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Information Processing in Sensor Networks, 2005. IPSN 2005. Fourth International Symposium on
Print_ISBN :
0-7803-9201-9
Type :
conf
DOI :
10.1109/IPSN.2005.1440892
Filename :
1440892
Link To Document :
بازگشت