Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network

  Advanced Search  

HiNRG Technical Report: 21-09-2008 A Modular Approach for WSN Applications

Summary: HiNRG Technical Report: 21-09-2008
A Modular Approach for WSN Applications
Razvan Musaloiu-E. Chieh-Jan Mike Liang Andreas Terzis
razvanm@cs.jhu.edu cliang4@cs.jhu.edu terzis@cs.jhu.edu
We propose a mechanism for introducing loadable code to the TinyOS 2 frame-
work. Unlike previous proposals that use virtual machines, the loadable code runs
natively on the mote avoiding the overhead associated with interpretation. Loadable
programs interact with the rest of the system through a Proxy, a nesC component that
exposes abstract versions of system resources including the sensors, flash memory, com-
munication, and timers. We leverage the abstractions provided by the Proxy through
TinyJavaScript, a subset of the popular JavaScript language that can be used to de-
velop wireless sensor network applications. TinyJavaScript offers familiar syntax, type
inference, and the ability to simulate and debug mote programs in a browser. Tiny-
JavaScript programs are translated to equivalent C code and compiled to MicroExe
binaries that are dynamically linked by TinyLD, a dynamic linker/loader that runs
on the mote. We compare loadable code and TinyJavaScript to monolithic programs
developed in nesC/TinyOS. Our experimental results show that offering system mod-
ularity and the ability to program applications in a high-level language incurs only
moderate overhead in terms of increased memory footprint and runtime performance.


Source: Amir, Yair - Department of Computer Science, Johns Hopkins University


Collections: Computer Technologies and Information Sciences