User Tools

Site Tools


tinyos_program_mote

~~REDIRECT>ref:tinyos:program:start~~

Install a TinyOS App on a Mote

To install Blink:

$ cd $TOSROOT/tos/apps/Blink
$ make epic install miniprog bsl,/dev/ttyUSB0

Generic install:

$ make <platform> <other flags> install.<ID> <install flags> bsl,/dev/ttyUSB<USB index>

To install PppRouter:

$ make epic blip install miniprog bsl,/dev/ttyUSB0

Compile only:

$ make epic

Install, don't compile:

$ make epic reinstall miniprog bsl,/dev/ttyUSB0

Troubleshooting:

Permission denied: '/dev/ttyUSB0'

If you get the above error, add yourself to the same group as /dev/ttyUSB0. Then, restart (or re-login).

sudo usermod -a -G <group> <username>

On my system, dialout is the group of /dev/ttyUSB0.

$ ls -l /dev/ttyUSB0 
crw-rw---- 1 root dialout 188, 0 May  8 17:18 /dev/ttyUSB0
tinyos_program_mote.txt · Last modified: 2013/02/10 01:12 by bradjc