亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mote-pc serial communication and serialforwarder - tinyos documentation wiki.htm

?? 從官方網(wǎng)站上下載tinyos2.0的學習指南
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0081)http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder -->
<HTML lang=en dir=ltr xml:lang="en" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Mote-PC serial communication and SerialForwarder - TinyOS Documentation Wiki</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META 
content="Mote-PC serial communication and SerialForwarder,Mote-PC serial communication and SerialForwarder,Getting Started with TinyOS,Mote-mote radio communication,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="Mote-PC serial communication and SerialForwarder - 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="Mote-PC serial communication and SerialForwarder - 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 = "Mote-PC_serial_communication_and_SerialForwarder";var wgTitle = "Mote-PC serial communication and SerialForwarder";var wgAction = "view";var wgRestrictionEdit = [];var wgRestrictionMove = [];var wgArticleId = "10";var wgIsArticle = true;var wgUserName = null;var wgUserGroups = null;var wgUserLanguage = "en";var wgContentLanguage = "en";var wgBreakFrames = false;var wgCurRevisionId = "273";/*]]>*/</SCRIPT>

<SCRIPT 
src="Mote-PC serial communication and SerialForwarder - TinyOS Documentation Wiki.files/wikibits.js" 
type=text/javascript><!-- wikibits js --></SCRIPT>

<SCRIPT 
src="Mote-PC serial communication and SerialForwarder - 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="Mote-PC serial communication and SerialForwarder - 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-Mote-PC_serial_communication_and_SerialForwarder">
<DIV id=globalWrapper>
<DIV id=column-content>
<DIV id=content><A id=top name=top></A>
<H1 class=firstHeading>Mote-PC serial communication and SerialForwarder</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/Mote-PC_serial_communication_and_SerialForwarder#column-one">navigation</A>, 
<A 
href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#searchInput">search</A></DIV><!-- start content -->
<P>To goal of this lesson is to show you how to communicate with a mote from a 
PC. This will allow you to collect data from the network, send commands to 
motes, and monitor network traffic. </P>
<P>This tutorial presents the Java-based infrastructure for communicating with 
motes. There is also a C-based infrastructure, found in support/sdk/c. Please 
see the documentation found there, and the <CODE>mig</CODE> and <CODE>ncg</CODE> 
man pages for more details. </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/Mote-PC_serial_communication_and_SerialForwarder#Packet_sources_and_TestSerial"><SPAN 
        class=tocnumber>1</SPAN> <SPAN class=toctext>Packet sources and 
        TestSerial</SPAN></A> 
        <UL>
          <LI class=toclevel-2><A 
          href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#Cannot_find_JNI_error"><SPAN 
          class=tocnumber>1.1</SPAN> <SPAN class=toctext>Cannot find JNI 
          error</SPAN></A> 
          <UL>
            <LI class=toclevel-3><A 
            href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#Installing_tos-install-jre_from_CVS_sources"><SPAN 
            class=tocnumber>1.1.1</SPAN> <SPAN class=toctext>Installing 
            tos-install-jre from CVS sources</SPAN></A> </LI></UL>
          <LI class=toclevel-2><A 
          href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#MOTECOM"><SPAN 
          class=tocnumber>1.2</SPAN> <SPAN class=toctext>MOTECOM</SPAN></A> 
        </LI></UL>
        <LI class=toclevel-1><A 
        href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#BaseStation_and_net.tinyos.tools.Listen"><SPAN 
        class=tocnumber>2</SPAN> <SPAN class=toctext>BaseStation and 
        net.tinyos.tools.Listen</SPAN></A> 
        <LI class=toclevel-1><A 
        href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#MIG:_generating_packet_objects"><SPAN 
        class=tocnumber>3</SPAN> <SPAN class=toctext>MIG: generating packet 
        objects</SPAN></A> 
        <LI class=toclevel-1><A 
        href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#SerialForwarder_and_other_packet_sources"><SPAN 
        class=tocnumber>4</SPAN> <SPAN class=toctext>SerialForwarder and other 
        packet sources</SPAN></A> 
        <UL>
          <LI class=toclevel-2><A 
          href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#Packet_Sources"><SPAN 
          class=tocnumber>4.1</SPAN> <SPAN class=toctext>Packet 
          Sources</SPAN></A> 
          <LI class=toclevel-2><A 
          href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#The_tool_side"><SPAN 
          class=tocnumber>4.2</SPAN> <SPAN class=toctext>The tool 
          side</SPAN></A> </LI></UL>
        <LI class=toclevel-1><A 
        href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#Sending_a_packet_to_the_serial_port_in_TinyOS"><SPAN 
        class=tocnumber>5</SPAN> <SPAN class=toctext>Sending a packet to the 
        serial port in TinyOS</SPAN></A> 
        <LI class=toclevel-1><A 
        href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#Related_Documentation"><SPAN 
        class=tocnumber>6</SPAN> <SPAN class=toctext>Related 
        Documentation</SPAN></A> 
        <LI class=toclevel-1><A 
        href="http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#CLASSPATH_and_Java_classes"><SPAN 
        class=tocnumber>7</SPAN> <SPAN class=toctext>CLASSPATH and Java 
        classes</SPAN></A> </LI></UL></TD></TR></TBODY></TABLE>
<SCRIPT type=text/javascript> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </SCRIPT>
<A name=Packet_sources_and_TestSerial></A>
<H1><SPAN class=mw-headline>Packet sources and TestSerial</SPAN></H1>
<P>The first step is to check that you are able to get your PC to communicate 
with a mote. Most motes have a serial port or similar interface. For example, 
the mica family can directly control a serial port: programming boards basically 
connect the mote's serial port pins to the actual serial port on the board. 
Telos motes also have a serial interface, but it talks to their USB hardware, 
which is similar in functionality but very different in terms of cables and 
connectors. </P>
<P>The basic abstraction for mote-PC communication is a <B>packet source</B>. A 
packet source is exactly that: a communication medium over which an application 
can receive packets from and send packets to a mote. Examples of packet sources 
include serial ports, TCP sockets, and the SerialForwarder tool. Most TinyOS 
communication tools take an optional <CODE>-comm</CODE> parameter, which allows 
you to specify the packet source as a string. For example: </P><PRE>$ java net.tinyos.tools.Listen -comm serial@COM1:telos
</PRE>
<P>tells the Listen tool to use the COM1 serial port (on a Windows machine) at 
the correct speed for a telos mote, while </P><PRE>$ java net.tinyos.tools.Listen -comm serial@/dev/ttyS0:micaz
</PRE>
<P>tells Listen to use the serial port <CODE>/dev/ttyS0</CODE> (on a UNIX 
machine) at the correct speed for a micaz mote. </P>
<P>The first step to testing your serial port is to install the 
<CODE>apps/tests/TestSerial</CODE> application on a mote. This application sends 
a packet to the serial port every second, and when it receives a packet over the 
serial port it displays the packet's sequence number on the LEDs. </P>
<P>Once you have installed <CODE>TestSerial</CODE>, you need to run the 
corresponding Java application that communicates with it over the serial port. 
This is built when you build the TinyOS application. From in the application 
directory, type: </P><PRE>$ java TestSerial
</PRE>
<P>If you get a message like </P><PRE>The java class is not found:  TestSerial
</PRE>
<P>it means that you either haven't compiled the Java code (try running 
<CODE>make <I>platform</I></CODE> again) or you don't have <CODE>.</CODE> (the 
current directory) in your Java <CODE>CLASSPATH</CODE>. </P>
<P>Because you haven't specified a packet source, TestSerial will fall back to a 
default, which is a SerialForwarder. Since you don't have a SerialForwarder 
running, TestSerial will exit, complaining that it can't connect to one. So 
let's specify the serial port as the source. The syntax for a serial port source 
is as follows: </P><PRE>   serial@&lt;PORT&gt;:&lt;SPEED&gt;
</PRE>
<P>PORT depends on your platform and where you have plugged the mote in. For 
Windows/Cygwin platforms, it is COM<I>N</I>, where <I>N</I> is the port number. 
For Linux/UNIX machines, it is <CODE>/dev/ttyS</CODE><I>N</I> for a built-in 
serial port, or one of <CODE>/dev/ttyUSB<I>N</I></CODE> or 
<CODE>/dev/usb/tts/<I>N</I></CODE> for a serial-over-USB port. Additionally as 
we saw in <A title="Getting Started with TinyOS" 
href="http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS">lesson 
1</A>, on Linux you will typically need to make this serial port world 
writeable. As superuser, execute the following command: </P><PRE>chmod 666 <I>serialport</I>
</PRE>
<P>The SPEED can either be a numeric value, or the name of a platform. 
Specifying a platform name tells the serial packet source to use the default 
speed for the platform. Valid platforms are: </P>
<CENTER>
<TABLE>
  <TBODY>
  <TR>
    <TD>Platform </TD>
    <TD>Speed (baud) </TD></TR>
  <TR>
    <TD colSpan=2>
      <HR>
    </TD></TR>
  <TR>
    <TD>telos </TD>
    <TD>115200 </TD></TR>
  <TR>
    <TD>telosb </TD>
    <TD>115200 </TD></TR>
  <TR>
    <TD>tmote </TD>
    <TD>115200 </TD></TR>
  <TR>
    <TD>micaz </TD>
    <TD>57600 </TD></TR>
  <TR>
    <TD>mica2 </TD>
    <TD>57600 </TD></TR>
  <TR>
    <TD>mica2dot </TD>
    <TD>19200 </TD></TR>
  <TR>
    <TD>eyes </TD>
    <TD>115200 </TD></TR>
  <TR>
    <TD>intelmote2 </TD>
    <TD>115200 </TD></TR></TBODY></TABLE></CENTER>
<P>The Java file <TT>support/sdk/java/net/tinyos/packet/BaudRate.java</TT> 
determines these mappings. Unlike in TinyOS 1.x, all platforms have a common 
serial packet format. Following the table, these two serial specfications are 
identical: </P><PRE>serial@COM1:micaz
serial@COM1:57600
</PRE>
<P>If you run <CODE>TestSerial</CODE> with the proper PORT and SPEED settings, 
you should see output like this: </P><PRE>Sending packet 1
Received packet sequence number 4
Sending packet 2
Received packet sequence number 5
Sending packet 3
Received packet sequence number 6
Sending packet 4
Received packet sequence number 7
Received packet sequence number 8
Sending packet 5
Received packet sequence number 9
Sending packet 6
</PRE>
<P>and the mote LEDs will blink. </P><A name=Cannot_find_JNI_error></A>
<H2><SPAN class=mw-headline>Cannot find JNI error</SPAN></H2>
<P>If you try to run TestSerial and receive an error that Java cannot find 
TOSComm JNI support, this means the Java Native Interface (JNI) files that 
control the serial port haven't been correctly installed. Run the command 
<CODE>tos-install-jni</CODE> (on Linux, do this as the superuser). If this 
command does not exist, then you have either not installed the tinyos-tools RPM 
or it was installed incorrectly. The <TT>tos-</TT> commands are typically 
installed in /usr/bin. If you still cannot find the script, email 
<TT>tinyos-help</TT>. </P><A 
name=Installing_tos-install-jre_from_CVS_sources></A>
<H3><SPAN class=mw-headline>Installing <TT>tos-install-jre</TT> from CVS 
sources</SPAN></H3>
<P>If you have not installed the tools RPM and are working directly from the 
TinyOS CVS repository, you can manually install the tos-locate-jre script. Go to 
<CODE>tinyos-2.x/tools/tinyos/java</CODE>. If the directory has a 
<CODE>Makefile</CODE> in it, type <CODE>make</CODE> and (again, on Linux, as 
superuser) <CODE>make install</CODE>. If the directory does not have a 
<CODE>Makefile</CODE>, go to <CODE>tinyos-2.x/tools</CODE> and type: </P><PRE>$ ./Bootstrap

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色精品在线视频| 7777精品伊人久久久大香线蕉的 | 久久丁香综合五月国产三级网站| 欧美性受xxxx黑人xyx性爽| 日日夜夜一区二区| 1000精品久久久久久久久| 欧美一级在线观看| 欧美性xxxxxxxx| 99久久精品国产观看| 国产一区二区三区精品视频| 日日摸夜夜添夜夜添亚洲女人| 日本一区二区三区免费乱视频| 欧美精选午夜久久久乱码6080| 91网站黄www| 国产尤物一区二区| 九一久久久久久| 午夜精品久久久久久久久久| 亚洲电影第三页| 亚洲尤物视频在线| 亚洲午夜免费福利视频| 亚洲嫩草精品久久| 亚洲欧美怡红院| 亚洲乱码国产乱码精品精可以看| 亚洲欧洲精品一区二区精品久久久| 日韩视频免费观看高清完整版在线观看 | 久久久一区二区三区| 欧美二区三区91| 8x8x8国产精品| 欧美一区国产二区| 欧美一区二区三区影视| 欧美日韩一区 二区 三区 久久精品| 一本到三区不卡视频| 在线看一区二区| 一本色道亚洲精品aⅴ| 91蝌蚪porny九色| 91国偷自产一区二区开放时间| 99视频一区二区| 在线观看视频一区二区欧美日韩| 欧美在线|欧美| 日韩欧美一区电影| 日韩欧美国产综合| 国产精品蜜臀av| 国产欧美一区二区三区鸳鸯浴 | 91国偷自产一区二区三区观看| 色婷婷综合久久久久中文一区二区| 91黄色免费观看| 日韩一区二区三区三四区视频在线观看| 国产欧美一区在线| 免费在线欧美视频| 欧美日韩精品综合在线| 国产精品久久毛片av大全日韩| 日本sm残虐另类| 欧美曰成人黄网| 国产精品无码永久免费888| 丝袜国产日韩另类美女| 色综合久久综合| 久久精品无码一区二区三区| 日韩二区三区四区| 色八戒一区二区三区| 国产精品网站在线播放| 韩国精品一区二区| 日韩欧美区一区二| 日韩av中文字幕一区二区三区| 91麻豆蜜桃一区二区三区| 国产亚洲污的网站| 国模冰冰炮一区二区| 日韩欧美在线综合网| 亚洲一区二区3| 91一区二区三区在线观看| 国产精品亲子乱子伦xxxx裸| 国产精品夜夜嗨| 国产亚洲欧美激情| 国产大陆亚洲精品国产| 国产视频一区在线播放| 国产精品一区二区你懂的| 精品国产乱码久久| 极品少妇xxxx偷拍精品少妇| 日韩视频免费观看高清完整版在线观看 | 色综合中文字幕国产 | 精品sm捆绑视频| 狠狠狠色丁香婷婷综合激情| 精品少妇一区二区三区免费观看| 日韩不卡一区二区三区| 日韩视频一区二区在线观看| 免费成人美女在线观看.| 日韩一区二区三区av| 激情综合色综合久久| 久久九九99视频| 99精品视频中文字幕| 亚洲欧美偷拍卡通变态| 在线视频欧美精品| 天堂一区二区在线免费观看| 精品国产制服丝袜高跟| 丰满少妇在线播放bd日韩电影| 国产精品色呦呦| 欧美性生交片4| 蜜臀精品一区二区三区在线观看| 亚洲精品在线观看视频| 成人h动漫精品一区二| 夜夜揉揉日日人人青青一国产精品| 欧美日本韩国一区二区三区视频| 免费av网站大全久久| 久久久久久久网| 在线观看网站黄不卡| 久久精品国产亚洲5555| 国产精品私人影院| 欧美夫妻性生活| 成人蜜臀av电影| 日韩高清不卡在线| 国产精品每日更新在线播放网址| 欧美性受xxxx| 成人综合婷婷国产精品久久蜜臀 | 日韩经典中文字幕一区| 国产区在线观看成人精品| 欧美亚洲日本一区| 国产一区二区h| 亚洲一区二区三区在线播放| 精品免费99久久| 欧美亚州韩日在线看免费版国语版| 麻豆国产91在线播放| 亚洲一区二区中文在线| 国产亚洲美州欧州综合国| 欧美亚洲高清一区| 成人av网站在线观看| 久久99国产精品久久99| 亚洲人成网站在线| 2023国产精品自拍| 3d动漫精品啪啪| 91美女片黄在线观看91美女| 奇米影视一区二区三区| 亚洲精品伦理在线| 欧美国产丝袜视频| 精品国产伦一区二区三区观看方式| 在线观看一区二区视频| 99久久精品免费精品国产| 天天色图综合网| 一区二区久久久| 日韩一区有码在线| 国产精品理论片在线观看| 久久伊人中文字幕| 欧美zozozo| 欧美成人精品高清在线播放| 欧美日韩国产电影| 在线日韩国产精品| 色综合久久天天| 成人天堂资源www在线| 国产一区二区在线视频| 久久精品国产77777蜜臀| 亚洲国产成人av好男人在线观看| 亚洲精品免费在线| 一区二区国产盗摄色噜噜| 亚洲天堂免费看| 一区二区在线观看免费视频播放| 国产精品久久久久久久久晋中| 日本一二三四高清不卡| 中文字幕精品一区| 国产嫩草影院久久久久| 国产精品乱码一区二三区小蝌蚪| 欧美激情一区二区三区全黄 | 99re亚洲国产精品| 99久久亚洲一区二区三区青草| 成人黄色电影在线| 色偷偷成人一区二区三区91| 欧美三级中文字幕在线观看| 这里是久久伊人| 久久亚洲一级片| 国产精品理论片在线观看| 亚洲精品成人在线| 亚洲gay无套男同| 极品少妇xxxx精品少妇| 成人精品鲁一区一区二区| 91免费视频观看| 欧美精品日韩一区| 久久久久国产精品人| 亚洲免费在线电影| 天堂蜜桃91精品| 国产成人精品免费一区二区| 波多野结衣在线一区| 欧美日韩免费一区二区三区| 欧美成人一区二区| 日韩一区中文字幕| 午夜精品国产更新| 国产精品一区二区三区99| 在线免费精品视频| 精品久久久久av影院 | 欧美日韩国产影片| 久久精品男人的天堂| 亚洲视频在线观看三级| 日韩专区在线视频| 99久久免费精品| 欧美一区二区三区爱爱| 国产精品的网站| 免费日韩伦理电影| 99精品黄色片免费大全| 日韩一区二区三区av| 亚洲欧美日韩久久| 国产一区二区三区观看| 欧美午夜精品久久久久久超碰 | 欧美三片在线视频观看| 欧美高清一级片在线观看|