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

Sponsored Recommendations

Highly Integrated 20A Digital Power Module for High Current Applications

March 20, 2024
Renesas latest power module delivers the highest efficiency (up to 94% peak) and fast time-to-market solution in an extremely small footprint. The RRM12120 is ideal for space...

Empowering Innovation: Your Power Partner for Tomorrow's Challenges

March 20, 2024
Discover how innovation, quality, and reliability are embedded into every aspect of Renesas' power products.

Article: Meeting the challenges of power conversion in e-bikes

March 18, 2024
Managing electrical noise in a compact and lightweight vehicle is a perpetual obstacle

Power modules provide high-efficiency conversion between 400V and 800V systems for electric vehicles

March 18, 2024
Porsche, Hyundai and GMC all are converting 400 – 800V today in very different ways. Learn more about how power modules stack up to these discrete designs.

Comments

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