File: pnetwork.sh

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (16 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash
# script to compile and install software in a network of telosb motes.
# Usage pnetwork_install.sh

# Program the PAN coordinator on /dev/ttyUSB0 with address 0 
./pmote.sh i c 0 0

# Program the Router on /dev/ttyUSB1, with address 1, depth 1 
# and to associate with the coordinator (0)
./pmote.sh i r 1 1 1 0

# Program 2 end devices on /dev/ttyUSB2 and /dev/ttyUSB3, with addresses 10 and 11, depth 2,
# to associate with the router (1) and at predefined positions (x,y)
./pmote.sh i e 2 10 2 1 120 150
./pmote.sh i e 3 11 2 1 173 116