Abstract
EcoCast is an execution framework for macroprogramming of wireless sensor networks. Users access sensor nodes as dynamic objects in Python without being concerned with network protocols or data types. EcoCast extends Python's functional programming primitives map(), reduce(), and filter() to macroprogramming at native speed by patching the firmware transparently without rebooting, and without requiring most users to write code in C or assembly. This demo shows the use of EcoCast batch commands on wireless light controllers, which are composed of EcoSpire nodes connected to relay switches. Starting from only EcoCast firmware, we show incremental code generation and firmware patching, by loading necessary sensor drivers on demand. The composition of sensing value checking and light-switch actions shows how the firmware can be customized and programmed as a result of such an interactive session without writing a single line of C code. © 2011 ACM.