`

Tinyos 2.0使用笔记

阅读更多

1.编译与安装程序到节点

 

引用
$ make mica2


编译mica2 platform

 

 

引用
$ make mica2 install


编译并安装 (using the default parallel port programmer) Blink for the mica2

 

 

引用
$ make mica2 reinstall mib510,/dev/ttyS0


安装已经编译好的应用,使用 MIB510 serial port programmer connected to serial port /dev/ttyS0.

 

 

引用
$ make mica2 reinstall,101 mib510,/dev/ttyS0


安装已经编译好的应用,并设置节点ID为101,使用 MIB510 serial port programmer connected to serial port /dev/ttyS0. (tinyos用节点ID来做为传输地址)



其他参数说明:

  • Target platform: 目标平台。e.g., mica2, telosb, tinynode. 除了使用make clean以外,target platform是必需的。
  • Action: the action to perform. By default, the action is to compile the application in the current directory, but you can also specify:
    • help: display a help message for the target platform.
    • install,N: compile and install. The N argument is optional and specifies the mote id (default 1).
    • reinstall,N: install only (fails if the application wasn't previously compiled). N is as for install.
    • clean: remove compiled application for all platforms.
    • sim: compile for the simulation environment for the specified platform (see Lesson 11 for details). Example: to compile for simulation for the micaz: $ make micaz sim
  • Compilation option: you can change the way compilation proceeds by specifying:
  • debug: compile for debugging. This enables debugging, and turns off optimisations (e.g., inlining) that make debugging difficult.
  • debugopt: compile for debugging, but leave optimisations enabled. This can be necessary if compiling with debug gives code that is too slow, or if the bug only shows up when optimisation is enabled. 如果debug运行太慢,或者bug是由于optimisation优化造成的,就需要用到这个。
  • verbose: enable a lot of extra output, showing all commands executed by make and the details of the nesC compilation including the full path of all files loaded. This can be helpful in tracking down problems (e.g., when the wrong version of a component is loaded).
  • wiring, nowiring: enable or disable the use of the nescc-wiring to check the wiring annotations in a nesC program. See the nescc-wiring man page for more details. Example: to do a verbose compilation with debugging on the telosb: $ make debug verbose telosbAdditionally, you can pass additional compilation options by setting the CFLAGS environment variable when you invoke make. For instance, to compile apps/RadioCountoToLeds for a mica2 with a 900MHz radio set to ~916.5MHz, you would do: $ env CFLAGS="-DCC1K_DEF_FREQ=916534800" make mica2 Note that this will not work with applications whose Makefile defines CFLAGS (but this practice is discouraged, see the section on writing Makefiles below).
  •  

     

    Installation option: some platforms have multiple programmers, and some programmers require options (e.g., to specify which serial port to use). The programmer is specified by including its name amongst the make arguments. Known programmers include:

    • bsl for msp430-based platforms
    • avrisp (STK500), dapa (MIB500 and earlier), mib510 (MIB510) and eprb (MIB600) for mica family motes.

    Arguments to the programmer are specified with a comma after the programmer name, e.g., $ make mica2dot reinstall mib510,/dev/ttyUSB1 $ make telosb reinstall bsl,/dev/ttyUSB1 to specify that the programmer is connected to serial port /dev/ttyUSB1. More details on the programmers and their options can be found in your mote documentation.


    参考:
    http://docs.tinyos.net/index.php/TinyOS_Toolchain

     

    分享到:
    评论

    相关推荐

      tinyos2.0安装说明

      作者参照http://www.tinyos.net上的说明和自己安装时出现的问题,总结成此说明。此说明叙述怎样在windows下保留tinyos-1.x并安装tinyos2.0的过程,仅供学习和爱好tinyos的朋友参考

      linux下安装tinyos 2.0

      linux操作系统如何安装tinyos 2.0

      TinyOS 2.0 for CrossBow TelosB 安装指南

      TinyOS 2.0 for CrossBow TelosB 安装指南

      安装tinyos2.0的心得

      给出了tinyos2.0安装的具体步骤,对于初学者来说很有帮助

      TinyOS 2.0 Tutorials-new.pdf

      TinyOS 2.0 Tutorials 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 ...

      Ubuntu安装TinyOS密码tinyos

      本PDF密码为tinyos,在资料中详细讲解了TinyOS2.0以上版本在Ubuntu上的安装与测试,更关键的是安装中遇到的问题都有详细的解决方式。

      无线传感器网络操作系统TinyOS 2.x中文版(1)

      无线传感器网络操作系统TinyOS 2.x中文版(1),包含tinyos官方wiki的tutorial和TEP

      TinyOS_2.0传输机制

      TinyOS_2.0的传输机制,欢迎大家下载。

      Small RTOS51 tiny os with sem&signal&Mbox Ver 2.0

      TinyOS51系统整合了RTX51—Tiny...其次TinyOS51系统提供OSDelay、OSWaitFlg、 OSWaitSem、OSWaitMsg、 OSQPend这样四种系统服务,其中OSWaitMsg、 OSQPend只能使用其一,不能同时使用,并且每种系统服务都是可裁剪的。

      tinyOS内核分析

      本文档从中间代码入手对 TinyOS 内核进行了简要分析,对于那些接触tinyOS 的人来说,这些是必须的,也是基础性的东西。

      tinyos.sh文件

      tinyos.sh文件,在linux环境下生成,cygwin环境下可用,tinyos.sh文件总出问题的可以下载,将绝对路径修改成自己的

      tinyos51 for 51 操作系统

      TinyOS51系统整合了RTX51—Tiny的优点,并在LQ51内核基础上增加了消息列队功能。1、在TinyOS51系统中_task_关键依然有效,0号任务依然是最高优先级的任务,1号任务次之,依次类推。2、。同时TinyOS51系统弥补了RTX51...

      Header only C++11 tiny glTF 2.0 library.zip

      Header only C++11 tiny glTF 2.0 library

      tinyos中文手册

      TinyOS是UC Berkeley(加州大学伯克利分校)开发的开放源代码操作系统,专为嵌入式无线传感网络设计,操作系统基于构件(component-based)的架构使得快速的更新成为可能,而这又减小了受传感网络存储器限制的代码...

      TinyOS学习笔记

      这篇文档是学习TinyOS过程中的笔记,是了解TinyOS的比较好的中文参考

      TinyOS入门手册

      TinyOS入门手册 入门手册 TinyOS TinyOS入门手册

      uabantu下安装TinyOS需要的软件包

      2015/11/04 00:49 10,466,418 avr-binutils-tinyos_2.17-20080806_i386.deb 2015/11/04 00:49 8,135,462 avr-gcc-tinyos_4.1.2-20080806_i386.deb 2015/11/04 00:49 705,146 avr-libc-tinyos_1.4.7-20080806_i386....

      tinyos-release-tinyos-2_1_2.tar.gz

      根据tinyos官方网站上下载的tinyos2.1.2版本的发行包,其链接是:http://github.com/tinyos/tinyos-release/archive/tinyos-2_1_2.tar.gz

      tinyos-ubuntu16.04安装tinyos2.1.2.txt

      tinyos-ubuntu16.04安装tinyos2.1.2

      论文研究-TinyOS任务调度的研究与改进 .pdf

      TinyOS任务调度的研究与改进,李明,丁恩杰,本文介绍了TinyOS任务调度机制,指出TinyOS调度策略的特点及不足。采用一种改进式NPEDF算法对TinyOS的调度器进行实时性改造,并详细描述�

    Global site tag (gtag.js) - Google Analytics