1. 1、本文档共23页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
tinyos telosb Jdk系统环境变量 我的电脑-属性-环境变量-path C:\program files\java\jdk1.5.0_04\bin;C:\program files\java\jdk1.5.0_04\jre\bin; ==错误 是环境变量的关系, java文件中包含很多import, import net.tinyos……jar是一个class 必须将环境变量中的classpath指向tinyos.jar包,这样在运行java的时候java才能正确定位tinyos.jar包 ==错误提示: The toscomm JNI library was not found. Check that your tinyos-tools package is installed and try rerunning tos-install-jni. Aborting. 解决: copy getenv.dll and toscomm.dll from C:\cygwin\lib\tinyos to your JREs bin or lib directory, or to C:\Windows\System32 toscomm.dll改名toscomm-32.dll 常用命令 $motelist //查看系统连接的motes $tos-check-env //查看tinyos的所有环境变量信息,系统中必须装有jdk1.4或jdk1.5 $make reinstall,0 telosb //reinstall表示不用编译,0是节点的ip地址 $make telosb install,0 //向0号节点中烧入程序 $cd /opt/tinyos-2.x/tos/platforms/telosb $make telosb docs //在cygwin中列出telosb所有的components和interface,且在tinyos-2.x/doc/nesdoc/index.html文件中产生components和interface的列表,以后要找什么components和interface可以从列表中找,单框的是module,双框的是configuration。 Module provide the implementations of one or more interfaces. Configurations are used to assemble other components together, connecting interfaces used by components to interfaces provided by others. 侦听数据包命令 $cd /opt/tinyos-2.x/apps/Oscilloscope $ java net.tinyos.tools.Listen -comm serial@COM6:telosb 出波形 对基站节点 $cd /opt/tinyos-2.x/apps/Oscilloscope $java net.tinyos.sf.SerialForwarder -comm serial@COM4:telosb 另开一个窗口 $cd /opt/tinyos-2.x/apps/Oscilloscope/java $./run 将侦听到的数据存储到Oscilloscope文件夹下的a.txt文件: $ java net.tinyos.tools.Listen -comm serial@COM1:telosb(空格)a.txt $cd /opt/tinyos-2.x/apps $cp -R Blink BlinkSingle $ cd BlinkSingle //在apps文件夹下新建BlinkSingle,其文件夹内容复制Blink文件夹内容 /index.php/Mote-PC_serial_communication_and_SerialForwarder Listen creates a packet source and just prints out every packet it sees: $ java net.tinyos.tools.Listen Your output should look something like this: 00 FF FF 00 00 04 22 06 00 02 00 01 00 FF FF 00 00 04 22 06 00 02 00 02 00 FF FF 00 00 04 22 06 00 02 00 03 The first byte (00) indicates that thi

您可能关注的文档

文档评论(0)

考试教学资料 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档