Abstract
Wireless sensor networks(WSNs) are composed of many tiny, resource-constrained nodes. Theyare deployed under a specific circumstance to observe a physical phenomenon. Many works havebeen proposed before to solve the dynamic controlling problem inWSN, but they may suffer fromsome flaws, one of which is the inability to fit in some severely resource-constrained hardwareplatforms. In this work, we present a scripting method to control a WSN dynamically. We follow theRappit [1] framework and leave most of the processing executing on the host computer. On thesensor node end, we implement an interpreter by the use of threaded code [2]. We also provide areliable packet communication mechanism to handle the packet loss problem, which is prevalentin WSN. We implement our system on the Eco [3] nodes, and the system is written in C language. Thesize of system core is less than 3KB. We also show how to write the applications according to ourlanguage syntax and execute these applications on the Eco nodes. Finally, we discuss the directionsfor future works.