'Telos'에 해당되는 글 2건
- 2008.11.16 Installing on telos-family mote (telosa, telosb)
- 2008.11.10 TinyOS 2.x 설치 (msp430 기준) 2
Installing on telos-family mote (telosa, telosb)
Telos motes are USB devices, and can be plugged into any USB port:
Telos mote | Telos mote plugged into a USB port |
Because Telos motes are USB devices, they register with your OS when you plug them in. Typing motelist
will display which nodes are currently plugged in:
$ motelist Reference CommPort Description ---------- ---------- ---------------------------------------- UCC89MXV COM4 Telos (Rev B 2004-09-27)
motelist tells you which ports have motes attached. Under Windows, it displays the mote's COM port (in this case 4), under Linux it displays just the USB serial port number (e.g., 2). Confusingly, the Windows version of the code installer (tos-bsl) takes the COM port number - 1 as it's argument (in this case 3); under Linux it takes the USB device name (e.g., /dev/ttyUSB2 or /dev/tts/usb/2 if motelist reports that the mote is device 2). On Linux, as with the mica programmers, you will typically need to make the USB serial port world writeable. As superuser, execute the following command:
chmod 666 usb-device-name
Now you can install the application using one of:
make telosb reinstall bsl,3 # Windows example make telosb reinstall bsl,/dev/ttyUSB2 # Linux example
This would compile an image suitable for the telosb platform and install it with a mote ID of 2 on a mote connected to COM4 on Windows or /dev/ttyUSB2 on Linux. If you have a single mote installed, you can skip the bsl and device name/number arguments. Again, see the Getting Started Guide for your chosen platform for the exact make parameters.
You should see something like this scroll by:
installing telosb binary using bsl tos-bsl --telosb -c 16 -r -e -I -p build/telosb/main.ihex.out MSP430 Bootstrap Loader Version: 1.39-telos-8 Mass Erase... Transmit default password ... Invoking BSL... Transmit default password ... Current bootstrap loader version: 1.61 (Device ID: f16c) Changing baudrate to 38400 ... Program ... 2782 bytes programmed. Reset device ... rm -f build/telosb/main.exe.out-2 build/telosb/main.ihex.out
기본 문서는 다음을 참조한다.
LINK : TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs">http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs
Step 1: Install Java 1.6 JDK
Download and install Sun's 1.6 JDK from http://java.sun.com.
Step 2: Install Cygwin
Download cygwin-files.zip 및 설치
Step 3: Install native compilers
Atmel AVR Tools
Tool | Windows/Cygwin | Linux |
avr-binutils† | rpm" href="http://www.tinyos.net/dist-2.1.0/tools/windows/avr-binutils-2.17tinyos-3.cygwin.i386.rpm" rel="nofollow">avr-binutils-2.17tinyos-3.cygwin.i386.rpm | avr-binutils-2.17tinyos-3.i386.rpm |
avr-gcc | avr-gcc-4.1.2-1.cygwin.i386.rpm | avr-gcc-4.1.2-1.i386.rpm |
avr-libc | avr-libc-1.4.7-1.cygwin.i386.rpm | avr-libc-1.4.7-1.i386.rpm |
avarice | avarice-2.4-1.cygwin.i386.rpm | avarice-2.4-1.i386.rpm |
insight (avr-gdb) | avr-insight-6.3-1.cygwin.i386.rpm | avr-insight-6.3-1.i386.rpm |
avrdude | avrdude-tinyos-5.6cvs-1.cygwin.i386.rpm | avrdude-tinyos-5.6cvs-1.i386.rpm |
†If you receive an rpm error that indicates that you have a newer version already installed, try rpm -Uvh --force
rpm 옵션은 -ivh --ignoreso 로 자잘한 에러는 pass
TI MSP430">MSP430 Tools
rpm 옵션은 -ivh --ignoreso 로 자잘한 에러는 pass
Step 4: Install TinyOS toolchain
TinyOS-specific Tools
Tool | Windows/Cygwin | Linux | Command |
NesC | nesc-1.3.0a-1.cygwin.i386.rpm | nesc-1.3.0-1.fc9.i386.rpm | rpm -Uvh rpm -Uvh --ignoreos (if Cygwin complains) |
Tool | Windows/Cygwin | Linux | Command |
Deputy | tinyos-deputy-1.1-1.cygwin.i386.rpm | tinyos-deputy-1.1-1.fc9.i386.rpm | rpm -i rpm -i --ignoreos (if Cygwin complains) |
Tool | Windows/Cygwin | Linux | Command |
tinyos-tools | tinyos-tools-1.3.0-1.cygwin.i386.rpm | tinyos-tools-1.3.0-1.i386.rpm | rpm -ivh --force (1.x tree)rpm -Uvh (no 1.x tree) |
뒤에 Command 를 참조하여 패키지 설치
Step 5: Install the TinyOS 2.x">2.x source tree
TinyOS 2.x
Windows/Cygwin | Linux | |
TinyOS | tinyos-2.1.0-1.cygwin.noarch.rpm | tinyos-2.1.0-1.fc9.noarch.rpm |
rpm -ivh --ignoreos rpmname 으로 설치
Configure your environment
TinyOS 2.x
Environment Variable | Windows | Linux | |
TOSROOT | /opt/tinyos-2.x | same as in Cygwin | |
TOSDIR | $TOSROOT/tos | same as in Cygwin | |
CLASSPATH | C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. | $TOSROOT/support/sdk/java/tinyos.jar:. | |
MAKERULES | $TOSROOT/support/make/Makerules | same as in Cygwin | |
PATH† | /opt/msp430/bin:/opt/jflashmm:$PATH | same as in Cygwin |
다음 테이블 내용은 계정에 쉘 스크립트에 넣는다.
export TOSROOT="/opt/tinyos-2.x"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH="G:\CYGWIN\opt\tinyos-2.x\support\sdk\java\tinyos.jar;."
export MAKERULES="$TOSROOT/support/make/Makerules"
export PATH="opt/msp430/bin:/opt/jflashmm:$PATH"
Step 6: Installing Graphviz
download page 에서 받아서 설치
다음은 잘 깔렸는지 확인차 컴파일을 해보자`~
cd /opt/tinnyos-2.x /apps/Blink
make telos install
완료~!!