?? cc2420dblib.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./cc2420dblib_files/filelist.xml">
<link rel=Edit-Time-Data href="./cc2420dblib_files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Wireless Image Sensor Network Application Platform</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Stephan Hengstler</o:Author>
<o:LastAuthor>Stephan Hengstler</o:LastAuthor>
<o:Revision>77</o:Revision>
<o:TotalTime>95</o:TotalTime>
<o:Created>2005-03-02T06:58:00Z</o:Created>
<o:LastSaved>2005-03-16T08:19:00Z</o:LastSaved>
<o:Pages>2</o:Pages>
<o:Words>393</o:Words>
<o:Characters>2242</o:Characters>
<o:Company>@home</o:Company>
<o:Lines>18</o:Lines>
<o:Paragraphs>4</o:Paragraphs>
<o:CharactersWithSpaces>2753</o:CharactersWithSpaces>
<o:Version>9.6926</o:Version>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
h1
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
mso-outline-level:1;
font-size:24.0pt;
font-family:"Times New Roman";}
h2
{mso-style-next:Normal;
margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
font-size:18.0pt;
font-family:"Times New Roman";
font-weight:normal;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;
text-underline:single;}
pre
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Courier New";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<script language="JavaScript">
function slipInNewDest(cname){
if ((navigator.appName == 'Microsoft Internet Explorer') && (navigator.appVersion.substring(0,1) == '2' )) {window.location = cname.toLowerCase()+".html";}
else {window.document.f2.action=cname.toLowerCase()+".html";}
}
</script>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]--><!-- $Revision: 1.4 $ $Date: 1998/09/11 19:57:07 $ --><!-- $Log: imagesto.html,v $# Revision 1.4 1998/09/11 19:57:07 thornton# Online doc for R11## Related Records: 50212## Revision 1.3 1998/09/08 17:24:52 thornton# Online doc for R11## Related Records: 49911# --><!-- DOCNAME: Image Processing Toolbox --><!-- HEADSTUFF -->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
<!-- NAVBARTOP -->
<div class=Section1>
<table border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%;
mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
<tr>
<td valign=top style='background:#9BD0E0;padding:0in 0in 0in 0in;-moz-background-clip: initial;
-moz-background-inline-policy: initial;-moz-background-origin: initial;
background-position-x:0%;background-position-y:
50%;background-attachment:
scroll;background-repeat:repeat'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <span
style='font-size:12.0pt'><B>Wireless Sensor Networks Lab - Stanford University</B></font><br>
<span
style='font-size:18.0pt'>WiSNAP</font><br><span
style='font-size:15.0pt'>Wireless Image Sensor Network Application Platform</span><u1:p></u1:p><o:p></o:p></p>
</td>
<td valign=top style='background:#9BD0E0;padding:0in 0in 0in 0in;-moz-background-clip: initial;
-moz-background-inline-policy: initial;-moz-background-origin: initial;
background-position-x:0%;background-position-y:
50%;background-attachment:
scroll;background-repeat:repeat'>
<form name=f2 onsubmit="slipInNewDest(f2.cmdname.value)">
<p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:right'> <b>Go to function:</b> <INPUT TYPE="text" SIZE="12" NAME="cmdname"></p>
</form>
</td>
<td valign=top style='background:#9BD0E0;padding:0in 0in 0in 0in;-moz-background-clip: initial;
-moz-background-inline-policy: initial;-moz-background-origin: initial;
background-position-x:0%;background-position-y:
50%;background-attachment:
scroll;background-repeat:repeat'>
<p class=MsoNormal align=right style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:right'> <a href="index.html"
target="_top">Index</a> <a href="contents.html"
target="_top">Contents</a> </p>
</td>
</tr>
</table>
<p class=MsoNormal><span style='display:none;mso-hide:all'><u1:p></u1:p><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
<table border=0 cellpadding=0 width="100%" style='width:100.0%;mso-cellspacing:
1.5pt;mso-padding-alt:0in 0in 0in 0in'>
<tr>
<td style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><u1:p></u1:p><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
</td>
</tr>
</table>
<h1>Library: Chipcon CC2420DB Demonstration Board</h1>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>This
library implements low-level communication and functions to Chipcon’s CC2420DB
demonstration board. For more detailed information, refer to the <a
href="references.html">References</a>.</p>
<h2>Hardware</h2>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>This
library assumes that a Chipcon CC2420DB demonstration board is connected to an
available RS-232 serial port. Additionally, the demonstration board needs to be
programmed with the ATmega128 program “cc2420db_library.hex” provided in the
WiSNAP package. This program puts the demonstration board into a terminal mode
or chat mode. That is the mote will execute commands that are received either
through the serial port or as the payload of a MAC packet. The mote’s green LED
signals command parsing and execution activity. More details on the commands defined
can be found in the source code of this terminal mode program.</p>
<h2>Interface</h2>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>The
library calls Microsoft Windows Device I/O functions to read from and write to
the serial port. It configures the serial port to 115200 Kbps, 8 data bits, no
parity, 1 stop bit, no flow control. The functions for accessing the serial
port are written in C and compiled to Matlab mex functions.</p>
<h2>Functions</h2>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>The
CC2420DB library provides the following low-level functions to the Wireless
Mote API.</p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<table border=1 cellpadding=0 width="100%" style='width:100.0%;mso-cellspacing:
1.5pt;mso-padding-alt:0in 0in 0in 0in'>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>open</pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Open serial communications session:<br>
This function opens the serial port for file I/O read and write access,
configures the serial communication parameters, and returns a file handle.</p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>init</pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Initialize wireless mote:</p>
<p class=MsoNormal>This function initializes the mote’s PHY layer parameters
including ISM channel, PAN ID, and MAC address.</p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>recv</pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Receive IEEE 802.15.4 MAC packet:</p>
<p class=MsoNormal>This function checks for a received MAC packet. If
available it returns the latest received MAC packet. The mote’s red LED
signals packet reception.</p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>send</pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Send IEEE 802.15.4 MAC packet:</p>
<p class=MsoNormal>This function sends a MAC packet to another node in the
network. The mote’s yellow LED signals successful packet transmission while
the orange LED flags transmission failure.</p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>close</pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Close serial communications session:</p>
<p class=MsoNormal>This function closes the serial file I/O session and frees
the serial port for access of subsequent applications.</p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>read_at_register<o:p></o:p></pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Read ATmega128 register.<o:p></o:p></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>write_at_register<o:p></o:p></pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Write ATmega128 register.<o:p></o:p></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>read_cc_register<o:p></o:p></pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Read CC2420 register.<o:p></o:p></p>
</td>
</tr>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'><pre>write_cc_register<o:p></o:p></pre></td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal>Write CC2420 register.<o:p></o:p></p>
</td>
</tr>
</table>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center>
</div>
<u1:p></u1:p>
<p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><u1:p></u1:p>[ <a href="moteapifunctions.html">Previous</a>
| <a href="contents.html" target="_top">Contents</a> | <a href="references.html">Next</a>
]</p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if !supportEmptyParas]> <![endif]><o:p></o:p></p>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -