TinyOS Plus ZigBee Stack Targets Tiny Tasks

July 6, 2006
TinyOS is a compact operating system (OS) designed to support small wireless platforms like 8-bit ZigBeebased microcontroller solutions. It's an open-source project that was first developed at U.C. Berkeley by the likes of David Culler, now c

TinyOS is a compact operating system (OS) designed to support small wireless platforms like 8-bit ZigBeebased microcontroller solutions. It's an open-source project that was first developed at U.C. Berkeley by the likes of David Culler, now chairman, co-founder, and CTO of Arch Rock. The company announced its ZigBee support at the 2006 Sensors and Expo Conference in Chicago, where the company also showed off its TinyOS 2.0. Arch Rock also supports a range of wireless solutions including support for IEEE 802.15.4 and IEEE 802.11.

TinyOS can be used as a general OS, but it targets wireless sensing mesh networks that incorporate thousands of devices. The concept is also called smartdust, and the devices are often referred to as motes. The idea is that motes would be so inexpensive that they could be embedded everywhere, providing details such as stress information within a build-ing s structure. TinyOS already runs on a range of processors, including ARM processors and DSPs.

TinyOS is designed to be simple but flexible. Its default scheduler has a non-preemptive FIFO policy. The system supports commands (function calls) and events (callback functions). A close relationship with the hardware can be had with a split-phase approach where a command starts an operation and an event is used for complete it.

Functions are divided into synchronous (sync) and asynchronous (async) groups. Async functions can only call other async functions. Events are always sync.

Another major difference compared to other platforms is that applications are built from components that are designed to be wired together with connections between component interfaces. Wiring can be parameterized or combined. Pass-through wiring allows efficient implementation of shims.

Interestingly, the environment uses only local namespaces instead of the global namespace normally found in Java or C++. A local namespace means the developer must define functions that are called via an interface, as well as functions that will be exported by the application through its interfaces.

A new programming language called nesC was developed to build TinyOS and its applications. It is a variant of C that implements the TinyOS concurrency model and interfaces. Tools like ncc, the nesC compiler, are available on most PC platforms such as Windows and Linux.

Two items often found on a TinyOS system are TinyDB and Maté. TinyDB is a compact, distributed database that runs on TinyOS. Maté is a virtual machine with a Forth-like architecture that runs capsules, which are small collections of byte codes. Applications can consist of one or more capsules. Capsules are easy to broadcast through a mesh network because of their small size.

The chips and OS may be tiny, but they may have huge implications for the future.

www.archrock.com
www.tinyos.net

About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!