Difference between revisions of "TinyOS Overview"
(broken up into sections; removed grave warning; linked to install instructions) |
(→Installation) |
||
Line 28: | Line 28: | ||
== Installation == | == Installation == | ||
− | Using TinyOS requires a couple installation steps. Read more on the [[ | + | Using TinyOS requires a couple installation steps. Read more on the [[Installing_TinyOS|Install]] page. |
== Further Reading == | == Further Reading == |
Latest revision as of 16:58, 12 May 2013
TinyOS is an "operating system" designed for low-power wireless embedded systems. Fundamentally, it is a work scheduler and a collection of drivers for microcontrollers and other ICs commonly used in wireless embedded platforms.
TinyOS is written in nesC, a dialect of C. It generally looks like:
configuration Led {
provides {
interface LedControl;
}
uses {
interface Gpio;
}
}
implementation {
command void LedControl.turnOn() {
call Gpio.set();
}
command void LedControl.turnOff() {
call Gpio.clear();
}
}
This code snippet is a simple example of how an LED driver might work. The configuration
block specifies what interfaces this component needs and provides, and the implementation
block specifies what the functions do. For a MUCH more complete explanation of TinyOS and nesC programming please read Phil Levis' book, TinyOS Programming.
Installation
Using TinyOS requires a couple installation steps. Read more on the Install page.
Further Reading
To learn more about programming with TinyOS, here are list of tutorials and guides that are useful (suggested reading order):
- Getting Started with TinyOS major concepts
- Modules and the TinyOS Execution Model looks closely at modules, wiring, and execution model
- Mote-PC serial communication and SerialForwarder
- Concurrency
- The TinyOS printf Library
- Resource Arbitration and Power Management
- Mote-mote radio communication
- Network protocols.
Another source of detailed information is in the TinyOS Enhancement Proposals. Don't let the name fool you. These are like RFCs from the IETF development for the Internet. These documents can be read in conjunction with the tutorials. Recommended TEPs are listed below:
Basic services, Model, Arbitration
- TEP102: Timers
- TEP106: Schedulers and Tasks
- TEP108: Resource Arbitration
- TEP110: Virtualization
- TEP112: Microcontroller Power Management
- TEP115: Power Management of Non-Virtualized Devices
- TEP117: Low-Level I/O
Low Level Communications and Packet Layer
- TEP111: message_t
- TEP113: Serial Communication
- TEP116: Packet Protocols
- TEP125: TinyOS 802.15.4 Frames
- TEP126: CC2420 Radio Stack
- TEP127: Packet Link Layer
Network Collection and Dissemination