Ptolemy II Network Embedded Systems C (PtinyOS) Domain

The Ptolemy II Network Embedded Systems C (PtinyOS) domain supports the construction of programs in nesC, from http://nescc.sourceforge.net. That web page describes nesC as

"an extension to the C programming language designed to embody the structuring concepts and execution model of TinyOS. TinyOS is an event-driven operating system designed for sensor network nodes that have very limited resources (e.g., 8K bytes of program memory, 512 bytes of RAM)."
TinyOS, described at http://webs.cs.berkeley.edu/tos/, is used, for example, on the Berkeley MICA "motes," which are small wireless sensor nodes.

The domain leverages existing nesC libraries, using a tool called nc2momllib to create the Ptolemy II libraries of components that are used to assemble models. Models are converted into nesC code by the PtinyOSDirector. TinyOS provides a rich library of nesC components. If you install TinyOS in $PTII/vendors/ptinyos (FIXME: /tinyos-1.x?), then the Ptolemy II configure script will find it and automatically make the TinyOS libraries available.

FIXME: Explain how to install TinyOS and use the included nesC compiler to compile generated code. Provide a built-in small library so that this can be used right away.

In order to leverage another existing library of nesC components, you have to run nc2momllib on that library.

FIXME: Instructions here for just obtaining the binary, which since it's GPL'd, presumably has to include source code, but doesn't require building, and hence doesn't require the following nightmare.

Below are the detailed instructions for:

Running simple code generation demos

FIXME

Installing TinyOS and making its nesC libraries visible in Ptolemy II

FIXME