📄 tinyos tutorials - tinyos documentation wiki.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0049)http://docs.tinyos.net/index.php/TinyOS_Tutorials -->
<HTML lang=en dir=ltr xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>TinyOS Tutorials - TinyOS Documentation Wiki</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META
content="TinyOS Tutorials,Boot Sequence,Getting Started with TinyOS,Modules and the TinyOS Execution Model,Mote-PC serial communication and SerialForwarder,Mote-mote radio communication,Network Protocols,Platform Creation and Testing,Platforms,Resource Arbitration and Power Management,Sensing"
name=keywords><LINK href="/favicon.ico" rel="shortcut icon"><LINK
title="TinyOS Documentation Wiki (English)" href="/opensearch_desc.php"
type=application/opensearchdescription+xml rel=search>
<STYLE type=text/css media="screen, projection">@import url( /skins/common/shared.css?97 );
@import url( /skins/monobook/main.css?97 );
</STYLE>
<LINK media=print
href="TinyOS Tutorials - TinyOS Documentation Wiki.files/commonPrint.css"
type=text/css rel=stylesheet><!--[if lt IE 5.5000]><style type="text/css">@import "/skins/monobook/IE50Fixes.css?97";</style><![endif]--><!--[if IE 5.5000]><style type="text/css">@import "/skins/monobook/IE55Fixes.css?97";</style><![endif]--><!--[if IE 6]>
<STYLE type=text/css>@import url( /skins/monobook/IE60Fixes.css?97 );
</STYLE>
<![endif]--><!--[if IE 7]><style type="text/css">@import "/skins/monobook/IE70Fixes.css?97";</style><![endif]--><!--[if lt IE 7]>
<SCRIPT src="TinyOS Tutorials - TinyOS Documentation Wiki.files/IEFixes.js"
type=text/javascript></SCRIPT>
<META http-equiv=imagetoolbar content=no><![endif]-->
<SCRIPT type=text/javascript>/*<![CDATA[*/var skin = "monobook";var stylepath = "/skins";var wgArticlePath = "/index.php/$1";var wgScriptPath = "";var wgScript = "/index.php";var wgServer = "http://docs.tinyos.net";var wgCanonicalNamespace = "";var wgCanonicalSpecialPageName = false;var wgNamespaceNumber = 0;var wgPageName = "TinyOS_Tutorials";var wgTitle = "TinyOS Tutorials";var wgAction = "view";var wgRestrictionEdit = [];var wgRestrictionMove = [];var wgArticleId = "6";var wgIsArticle = true;var wgUserName = null;var wgUserGroups = null;var wgUserLanguage = "en";var wgContentLanguage = "en";var wgBreakFrames = false;var wgCurRevisionId = "845";/*]]>*/</SCRIPT>
<SCRIPT src="TinyOS Tutorials - TinyOS Documentation Wiki.files/wikibits.js"
type=text/javascript><!-- wikibits js --></SCRIPT>
<SCRIPT src="TinyOS Tutorials - TinyOS Documentation Wiki.files/index.php"
type=text/javascript><!-- site js --></SCRIPT>
<STYLE type=text/css>@import url( /index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000 );
@import url( /index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000 );
@import url( /index.php?title=-&action=raw&gen=css&maxage=18000 );
</STYLE>
<!-- Head Scripts -->
<SCRIPT src="TinyOS Tutorials - TinyOS Documentation Wiki.files/ajax.js"
type=text/javascript></SCRIPT>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY class="mediawiki ns-0 ltr page-TinyOS_Tutorials">
<DIV id=globalWrapper>
<DIV id=column-content>
<DIV id=content><A id=top name=top></A>
<H1 class=firstHeading>TinyOS Tutorials</H1>
<DIV id=bodyContent>
<H3 id=siteSub>From TinyOS Documentation Wiki</H3>
<DIV id=contentSub></DIV>
<DIV id=jump-to-nav>Jump to: <A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#column-one">navigation</A>,
<A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#searchInput">search</A></DIV><!-- start content -->
<P>These brief tutorials are intended to get you started with TinyOS. They show
you the basics of writing, compiling, and installing TinyOS applications. They
introduce the basic TinyOS abstractions: computation, communication, sensing,
and storage. The later tutorials go a little deeper into some of the more
advanced areas of TinyOS, such as handling interrupts, power management, and how
platforms are organized. </P>
<TABLE class=toc id=toc summary=Contents>
<TBODY>
<TR>
<TD>
<DIV id=toctitle>
<H2>Contents</H2></DIV>
<UL>
<LI class=toclevel-1><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Working_Group_Tutorials"><SPAN
class=tocnumber>1</SPAN> <SPAN class=toctext>Working Group
Tutorials</SPAN></A>
<UL>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Getting_Started_with_TinyOS"><SPAN
class=tocnumber>1.1</SPAN> <SPAN
class=toctext>Getting_Started_with_TinyOS</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Modules_and_the_TinyOS_Execution_Model"><SPAN
class=tocnumber>1.2</SPAN> <SPAN class=toctext>Modules and the TinyOS
Execution Model</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Mote-mote_radio_communication"><SPAN
class=tocnumber>1.3</SPAN> <SPAN class=toctext>Mote-mote radio
communication</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Mote-PC_serial_communication_and_SerialForwarder"><SPAN
class=tocnumber>1.4</SPAN> <SPAN class=toctext>Mote-PC serial
communication and SerialForwarder</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Sensing"><SPAN
class=tocnumber>1.5</SPAN> <SPAN class=toctext>Sensing</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Boot_Sequence"><SPAN
class=tocnumber>1.6</SPAN> <SPAN class=toctext>Boot
Sequence</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Storage"><SPAN
class=tocnumber>1.7</SPAN> <SPAN class=toctext>Storage</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Resource_Arbitration_and_Power_Management"><SPAN
class=tocnumber>1.8</SPAN> <SPAN class=toctext>Resource Arbitration
and Power Management</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Concurrency"><SPAN
class=tocnumber>1.9</SPAN> <SPAN class=toctext>Concurrency</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Platforms"><SPAN
class=tocnumber>1.10</SPAN> <SPAN class=toctext>Platforms</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#TOSSIM"><SPAN
class=tocnumber>1.11</SPAN> <SPAN class=toctext>TOSSIM</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Network_Protocols"><SPAN
class=tocnumber>1.12</SPAN> <SPAN class=toctext>Network
Protocols</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#TinyOS_Toolchain"><SPAN
class=tocnumber>1.13</SPAN> <SPAN class=toctext>TinyOS
Toolchain</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Building_a_simple_but_full-featured_application"><SPAN
class=tocnumber>1.14</SPAN> <SPAN class=toctext>Building a simple but
full-featured application</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#The_TinyOS_printf_Library"><SPAN
class=tocnumber>1.15</SPAN> <SPAN class=toctext>The TinyOS printf
Library</SPAN></A>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Writing_Low-Power_Applications"><SPAN
class=tocnumber>1.16</SPAN> <SPAN class=toctext>Writing Low-Power
Applications</SPAN></A> </LI></UL>
<LI class=toclevel-1><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#User_Contributed_Tutorials"><SPAN
class=tocnumber>2</SPAN> <SPAN class=toctext>User Contributed
Tutorials</SPAN></A>
<UL>
<LI class=toclevel-2><A
href="http://docs.tinyos.net/index.php/TinyOS_Tutorials#Platform_Creation_and_Testing"><SPAN
class=tocnumber>2.1</SPAN> <SPAN class=toctext>Platform Creation and
Testing</SPAN></A> </LI></UL></LI></UL></TD></TR></TBODY></TABLE>
<SCRIPT type=text/javascript> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </SCRIPT>
<A name=Working_Group_Tutorials></A>
<H1><SPAN class=mw-headline>Working Group Tutorials</SPAN></H1>
<UL><A name=Getting_Started_with_TinyOS></A>
<H2><SPAN class=mw-headline><B>
<LI><A title="Getting Started with TinyOS"
href="http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS">Getting_Started_with_TinyOS</A></B></SPAN></H2>
<P>Lesson 1 introduces the major concepts of TinyOS: components, modules,
configurations and interfaces. It shows you how to compile and install a
TinyOS program on a mote. </P><A
name=Modules_and_the_TinyOS_Execution_Model></A>
<H2><SPAN class=mw-headline><B>
<LI><A title="Modules and the TinyOS Execution Model"
href="http://docs.tinyos.net/index.php/Modules_and_the_TinyOS_Execution_Model">Modules
and the TinyOS Execution Model</A></B></SPAN></H2>
<P>Lesson 2 explains the TinyOS execution model, looking more closely at
modules. It explains events, commands and their relationships to interfaces in
greater depth, introducing split-phase operations. It explains tasks, the
basic mechanism in TinyOS for components to cooperatively share the processor.
</P><A name=Mote-mote_radio_communication></A>
<H2><SPAN class=mw-headline><B>
<LI><A title="Mote-mote radio communication"
href="http://docs.tinyos.net/index.php/Mote-mote_radio_communication">Mote-mote
radio communication</A></B></SPAN></H2>
<P>Lesson 3 introduces the TinyOS communication model. There is an exercise
that illustrates sending and receiving messages. </P><A
name=Mote-PC_serial_communication_and_SerialForwarder></A>
<H2><SPAN class=mw-headline><B>
<LI><A title="Mote-PC serial communication and SerialForwarder"
href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder">Mote-PC
serial communication and SerialForwarder</A></B></SPAN></H2>
<P>Lesson 4 introduces the the TinyOS toolchain for PCs and laptops to
communicate with motes. It describes the concept of a packet source, the mig
tool, and SerialForwarder. </P><A name=Sensing></A>
<H2><SPAN class=mw-headline><B>
<LI><A title=Sensing
href="http://docs.tinyos.net/index.php/Sensing">Sensing</A></B></SPAN></H2>
<P>Lesson 5 explains how to sample sensors in TinyOS. There is an exercise
that periodically samples a sensor and displays the value on the leds. </P><A
name=Boot_Sequence></A>
<H2><SPAN class=mw-headline><B>
<LI><A title="Boot Sequence"
href="http://docs.tinyos.net/index.php/Boot_Sequence">Boot
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -