1.编译与安装程序到节点
编译mica2 platform
编译并安装 (using the default parallel port programmer) Blink for the mica2
安装已经编译好的应用,使用 MIB510 serial port programmer connected to serial port /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
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
本文介绍如何在TinyOS中编译与安装程序到不同的节点。包括使用make命令进行编译、安装及重新安装已编译的应用程序,并介绍了如何指定目标平台、动作、编译选项及安装选项。
455

被折叠的 条评论
为什么被折叠?



