tmote sky doug schultz for fwlug (fort wayne linux users group)

31
Tmote Sky Tmote Sky Doug Schultz for FWLUG Doug Schultz for FWLUG (Fort Wayne Linux Users (Fort Wayne Linux Users Group) Group)

Upload: alvin-rodger-allison

Post on 29-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Tmote SkyTmote Sky

Doug Schultz for FWLUGDoug Schultz for FWLUG

(Fort Wayne Linux Users Group)(Fort Wayne Linux Users Group)

Page 2: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

What is a Tmote ?What is a Tmote ?

Reliable low-power wireless sensor. Moteiv Reliable low-power wireless sensor. Moteiv http://www.moteiv.com/http://www.moteiv.com/

Moteiv is a venture-funded company that Moteiv is a venture-funded company that provides wireless sensor networking solutions provides wireless sensor networking solutions to enterprises worldwide. to enterprises worldwide.

Moteiv's founding team has several decades of Moteiv's founding team has several decades of collective experience leading the collective experience leading the implementation of the world's largest wireless implementation of the world's largest wireless sensor network deployments from UC sensor network deployments from UC Berkeley. Berkeley.

Page 3: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Different motes for different Different motes for different folks!folks!

Tmote SkyTmote Sky

Tmote InventTmote Invent

Tmote ConnectTmote Connect

Page 4: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Different TmotesDifferent Tmotes

Tmote Sky Tmote Sky Widely proven platform for wireless sensor systems Widely proven platform for wireless sensor systems

deployments. deployments. Tmote SkyTmote Sky is the wireless sensor module of choice is the wireless sensor module of choice for large-scale, high data-rate sensor network for large-scale, high data-rate sensor network applications requiring ultra low-power, high-reliability applications requiring ultra low-power, high-reliability and ease of development. and ease of development.

Tmote Sky offers a number of integrated peripherals Tmote Sky offers a number of integrated peripherals including a 12-bit ADC and DAC, Timer, I2C, SPI, including a 12-bit ADC and DAC, Timer, I2C, SPI, and UART bus protocols, and a performance and UART bus protocols, and a performance boosting DMA controller. boosting DMA controller.

Page 5: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Different TmotesDifferent Tmotes

Tmote InventTmote Invent Wireless sensing unit.Wireless sensing unit. Pre-integrated on-board sensors. Pre-integrated on-board sensors. Light, temperature, vibration (2-axis Light, temperature, vibration (2-axis

accelerometer) and sound (microphone). accelerometer) and sound (microphone). Tmote Invent includes a speaker for Tmote Invent includes a speaker for

auditory feedback, headphone jack for auditory feedback, headphone jack for discrete applications, and LEDs for visual discrete applications, and LEDs for visual feedback. feedback.

Page 6: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Different TmotesDifferent Tmotes

Tmote Connect:Tmote Connect: Wireless gateway appliance:Wireless gateway appliance:

Connecting Tmote wireless sensor modules Connecting Tmote wireless sensor modules to a wired local area network.to a wired local area network.

Software eases connection to existing Software eases connection to existing Internet infrastructure. Internet infrastructure.

Linksys NSLU2 hardware. Linksys NSLU2 hardware.

Page 7: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Tmote SkyTmote SkyKey Features:Key Features:

250kbps 2.4GHz IEEE 802.15.4 Chipcon Wireless 250kbps 2.4GHz IEEE 802.15.4 Chipcon Wireless Transceiver Transceiver

Interoperability with other IEEE 802.15.4 devices Interoperability with other IEEE 802.15.4 devices 8MHz Texas Instruments MSP430 microcontroller (10k 8MHz Texas Instruments MSP430 microcontroller (10k

RAM, 48k Flash) RAM, 48k Flash) Integrated ADC, DAC, Supply Voltage Supervisor, and Integrated ADC, DAC, Supply Voltage Supervisor, and

DMA Controller DMA Controller Integrated onboard antenna with 50m range indoors / Integrated onboard antenna with 50m range indoors /

125m range outdoors 125m range outdoors Optional Integrated Humidity, Temperature, and Light Optional Integrated Humidity, Temperature, and Light

sensors sensors Ultra low current consumption Ultra low current consumption

Page 8: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Tmote SkyTmote SkyKey Features:Key Features:

Fast wakeup from sleep (<6us) Fast wakeup from sleep (<6us) Hardware link-layer encryption and Hardware link-layer encryption and

authentication authentication Programming and data collection via USB Programming and data collection via USB 16-pin expansion support and optional SMA 16-pin expansion support and optional SMA

antenna connector antenna connector TinyOS support : mesh networking and TinyOS support : mesh networking and

communication implementation communication implementation FCC modular certification : conforms to all US FCC modular certification : conforms to all US

and Canada regulationsand Canada regulations

Page 9: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Tmote Sky Module Tmote Sky Module Components:Components:

Page 10: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Tmote Sky Module Tmote Sky Module Components:Components:

Page 11: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Tmote Tmote

Page 12: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Installation Windows:Installation Windows: Windows:Windows:

Simple Dos commands.Simple Dos commands. Uses Cygwin.Uses Cygwin. Motelist

Lists connected Tmote’s.

To compile an application:To compile an application: cd / opt / moteiv / apps / Delta make tmote

To program a Tmote: make tmote reinstall,1 1 sets the network address of the module.

Page 13: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Installation Linux:Installation Linux:

Linux:Linux: http://www.moteiv.com/community/Tmote_Linux_installhttp://www.moteiv.com/community/Tmote_Linux_install

Installing TinyOS on Fedora Core 2Installing TinyOS on Fedora Core 2   http://www.owlnet.rice.edu/~tm/tinyos/telos-linux.pdfhttp://www.owlnet.rice.edu/~tm/tinyos/telos-linux.pdf by Tom Mowad by Tom Mowad

Installing TinyOS on Debian Installing TinyOS on Debian  ((http://www.comnets.uni-bremen.de/typo3site/index.php?id=48http://www.comnets.uni-bremen.de/typo3site/index.php?id=48) ) by Markus Becker by Markus Becker

Installing TinyOS on Red Hat 9 Installing TinyOS on Red Hat 9  ((http://www.crhc.uiuc.edu/~mjmille2/howtos/installing-tinyos-for-telos-http://www.crhc.uiuc.edu/~mjmille2/howtos/installing-tinyos-for-telos-

on-linux/on-linux/) by Matt Miller ) by Matt Miller Installing TinyOS on UbuntuInstalling TinyOS on Ubuntu

  ((http://www.5secondfuse.com/tinyos/install.htmlhttp://www.5secondfuse.com/tinyos/install.html) by Chad Metcalf ) by Chad Metcalf

Page 14: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Trawler Application:Trawler Application:MOTECOM=serial@COM4:tmote javacom.moteiv.trawler.Trawler

Page 15: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Trawler Application:Trawler Application:

Page 16: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Trawler Application:Trawler Application:

Page 17: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

TinyOSTinyOS

TinyOS system, libraries, and TinyOS system, libraries, and applications are written in nesC. applications are written in nesC.

nesC applications are built out of :nesC applications are built out of : ComponentsComponents with well-defined, bidirectional with well-defined, bidirectional

interfacesinterfaces. . nesC concurrency model:nesC concurrency model:

taskstasks and and hardware event handlershardware event handlers detects detects data racesdata races at compile time. at compile time.

Page 18: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Blink Application:Blink Application:

Blink.ncBlink.nc configuration Blink { configuration Blink {}}implementation {implementation {  components Main, BlinkM, SingleTimer,   components Main, BlinkM, SingleTimer, LedsC;LedsC;

  Main.StdControl -> BlinkM.StdControl;  Main.StdControl -> BlinkM.StdControl;  Main.StdControl -> SingleTimer.StdControl;  Main.StdControl -> SingleTimer.StdControl;  BlinkM.Timer -> SingleTimer.Timer;  BlinkM.Timer -> SingleTimer.Timer;  BlinkM.Leds -> LedsC;  BlinkM.Leds -> LedsC;} }

Page 19: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Blink Application:Blink Application:

BlinkM.ncBlinkM.nc module BlinkM { module BlinkM {  provides {  provides {    interface StdControl;    interface StdControl;  }  }  uses {  uses {    interface Timer;    interface Timer;    interface Leds;    interface Leds;  }  }} }

Page 20: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Blink Application:Blink Application:

implementation {implementation {

  command result_t StdControl.init() {  command result_t StdControl.init() {    call Leds.init();    call Leds.init();    return SUCCESS;    return SUCCESS;  }  }

  command result_t StdControl.start() {  command result_t StdControl.start() {    return call Timer.start(TIMER_REPEAT, 1000) ;    return call Timer.start(TIMER_REPEAT, 1000) ;  }  }

  command result_t StdControl.stop() {  command result_t StdControl.stop() {    return call Timer.stop();    return call Timer.stop();  }  }

  event result_t Timer.fired()  event result_t Timer.fired()  {  {    call Leds.redToggle();    call Leds.redToggle();    return SUCCESS;    return SUCCESS;  }  }} }

Page 21: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

nesC Documentation:nesC Documentation:

Component: Blink2 Component: Blink2 configuration Blink2configuration Blink2 Blink2 is a basic application that toggles the Blink2 is a basic application that toggles the

LEDs on the mote on every clock interrupt. The LEDs on the mote on every clock interrupt. The clock interrupt is scheduled to occur every clock interrupt is scheduled to occur every second. The initialization of the clock can be second. The initialization of the clock can be seen in the Blink2 initialization function, seen in the Blink2 initialization function, StdControl.start(). StdControl.start().

Author:Author: [email protected] [email protected] Modified by Douglas Schultz for ECET 581 Modified by Douglas Schultz for ECET 581

Page 22: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

nesC Documentation:nesC Documentation:

Wiring Diagram:Wiring Diagram:

Page 23: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

nesC Documentation:nesC Documentation:

Component: BlinkM2 Component: BlinkM2 module BlinkM2module BlinkM2 Implementation for Blink2 application. Implementation for Blink2 application.

Toggle the red and blue LED's when a Timer fires. Toggle the red and blue LED's when a Timer fires. Modified by Douglas Schultz 11/05/06 ECET 581 Note: Modified by Douglas Schultz 11/05/06 ECET 581 Note: yellowToggle actually powers blue LED. yellowToggle actually powers blue LED.

ProvidesProvidesinterface StdControlinterface StdControlUsesUsesinterface Ledsinterface Ledsinterface Timerinterface Timer

Page 24: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Where I learned about Where I learned about Tmotes:Tmotes:

 Paul I - Hai Lin, Professor  Email: [email protected]  Phone: 260-481-6339

Electrical & Computer Engineering Technology

Indiana University - Purdue University Fort Wayne

ECET 581/CS 590 CPET/ECET 499 Wireless Sensor Network Systems and Applications

Fall 2006

Page 25: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

Other Uses for Tmotes:Other Uses for Tmotes:

Page 26: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

A Line in the SandA Line in the Sand

Wireless Sensor Network for:Wireless Sensor Network for: Target DetectionTarget Detection ClassificationClassification Tracking Tracking

From: CS 263From: CS 263 Wireless Communications and Sensor NetworksWireless Communications and Sensor Networks

DIVISION OF ENGINEERING AND APPLIED SCIENCESDIVISION OF ENGINEERING AND APPLIED SCIENCESHARVARD UNIVERSITY HARVARD UNIVERSITY

Page 27: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

A Line in the SandA Line in the Sand

Institutions:Institutions: Ohio State UniversityOhio State University11 University of Texas at AustinUniversity of Texas at Austin22

University of IowaUniversity of Iowa33

Michigan State UniversityMichigan State University44

Kent State UniversityKent State University55

Page 28: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

A Line in the SandA Line in the Sand System Architecture:System Architecture:

Page 29: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

A Line in the SandA Line in the Sand System Architecture :System Architecture :

Network nodes:Network nodes: Mica2 MoteMica2 Mote

Sensor boardsSensor boards Mica Sensor boardMica Sensor board Advantaca TWR-ISM-002 radar motion sensorAdvantaca TWR-ISM-002 radar motion sensor Mica Power Board was developedMica Power Board was developed

Dual Boost regulators to power the radar board.Dual Boost regulators to power the radar board.

Page 30: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

A Line in the SandA Line in the Sand Packaging :Packaging :

Smooth to minimize wind resistanceSmooth to minimize wind resistance Clear for solar cellClear for solar cell Watertight o-ring sealsWatertight o-ring seals Electronics gimbal mountedElectronics gimbal mounted Co-planar with groundCo-planar with ground

Page 31: Tmote Sky Doug Schultz for FWLUG (Fort Wayne Linux Users Group)

A Line in the SandA Line in the Sand Visualization :Visualization :