Sensor Network Programming

Why is sensor or embedded system programming different from typical desktop, enterprise, or web programming?

  1. Highly resource constrained.
  2. Can't use standard tools.
  3. Development/debug cycles aren't so simple (lack of direct interfaces for debugging).
  4. New performance metrics, such as battery power conservation, limited communication facilities.
  5. Can be much more distributed, due to number of nodes.

  6. Failure is more common

Why is this area of "wireless sensor networks" any different from the way computers in the old days (a generation ago) had to be programmed, with their limited memories, processor speeds and such.

  1. It's much, much cheaper now.
  2. Integrated far more into real life situations (sometimes controlling things with sensor nodes).
  3. We have far better tools: compilers, simulators, analysis techniques, than the old days had.

Major Research Theme

Use powerful software and programming abstractions to do as much clever preprocessing and prediction offline, before deployment in the field. More work up front by cross compilers, trying to eliminate as much as possible from what the sensors need to do.

Introducing TinyOS

TinyOS is an operating system for motes; NesC is the programming language used by TinyOS. The NesC compiler is approximately a "precompiler" which adds extra syntax to the C language. The output of NesC is a C program, which is then compiled for a target architecture (like Intel, AVR, TI, etc).


Each time you program a mote, the program contains the entire operating system; essentially, TinyOS is like a library. Programs and libraries are made up of (hopefully reusable) components.

Mar11Notes (last edited 2014-05-25 18:15:49 by localhost)