1 Lab1  Objectives  Get familiar w/ hardware  Mote interface board  Mote  Mote sensor board  Get familiar w/ software  MoteWorks  Programmer’s.

Slides:



Advertisements
Similar presentations
Developing a WSN application using Crossbow devices and software
Advertisements

CSCI Research Topic Wireless and Sensor Networks TinyOS and Sensor application development using Crossbow sensor products Deepesh Jain.
Application Guide For Mesh AP – MAP-3120
Lab7: Introduction to Arduino
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Feb 2007WSN Training: First Steps in nesC Programming1 First Steps in TinyOS and nesC Programming Topics  Timer Application: MyApp  Application directory.
1 Lab 3 Objectives  Case study: “Hello world” program on motes  Write you first program on mote.
Basic Network Concepts And Troubleshooting. A Simple Computer Network for File Sharing.
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
Wireless Ad Hoc and Sensor Networks Lab1. 2 Objective Comprehend how to setup and use the wireless communication devices, Jennic Evaluation System. You.
Agenda 1. Background/vocabulary of WSNs, wireless sensor networks 2. Some applications of WSNs 3. Components of a WSN 4. Setting up a WSN with local mote.
DVG-N5402SP.
Installing software on personal computer
1 Lab 3 Objectives  Case study: “Hello world” program on motes  Write you first program on mote.
Dr. Hoganson CSIS HC11 Demo Program This is our first lab using the 68HC11 microcontroller. We will “talk” to the microcontroller from a PC, run.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
LSU 06/04/2007BASIC Stamp Editor1 The BASIC Stamp Editor Programming Unit, Lecture 3.
Installing Ricoh Driver. Items you need to know IP address of Printer Options that are installed And Paper Sizes To get all this information you can print.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
TAX-AIDE Network Router Setup Network Printer Setups July SMT/TCS Training - Dallas1.
WSN Training: Intro to WSN & Mote Kits 1 Feb 2007 MTS3x0CA or MTS3x0CB? Probably most of you have the MTS300CBs and MTS310CBs. While they are largely identical.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
MoteWorks Installation
Silicon Labs ToolStick Development Platform
Light Sensing Wireless Network with Energy Efficient Routing Algorithm Man-Ting Au Thanh Nguyen Marie Shinotsuka Thomas To Georgia Institute of Technology.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
ActEyes IP Cam Training Part 1: Camera Setup. Network Setup Overview Each IP Cam on the network will need its own IP address to be assigned. This address.
Tutorial 11 Installing, Updating, and Configuring Software
1 Lab 5 Objectives  Use XMesh multi-hop networking service to send sensing data to a base station  Using XServe to display the sensor data message on.
DESIGN & IMPLEMENTATION OF SMALL SCALE WIRELESS SENSOR NETWORK
1999 Cabletron Systems. Wireless Networking RoamAbout RoamAbout Installation Installation/Configuration of: Network adapter card on a: Windows 95 system.
U81X0 Downloading Tool Manual 1 ( Version 1.2 ) FlashRW For U81X0 Version 4.0.0(Build #95V) February 2004 LG Electronics Inc.
High Speed Data Converter University
Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.
Installing TinyOS Developing Environment Test Program: Blink.
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
Tutorial on using the DE2i-150 development board
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
1 Installation When this module is complete, you will be able to:  Set a static IP address for your laptop  Install the snom ONE software  Navigate.
Wireless Sensor Networks MOTE-KITS TinyOS Crossbow UC Berkeley.
From Scratch: Open CCS Exit and restart CCS Click Browse to create a new workspace directory.
Feb 2007WSN Training: XMesh Services1 Lab6 Objectives:  Route Control Interface  Understand XMesh transport services 1.Upstream 2.Upstream with end-to-end.
USB-Hipro Training Course ——Marketing Dept. Front view of digital Hearing Aid Programmer USB Rear view of digital Hearing Aid Programmer USB.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
DHP Agenda: How to Access Web Interface of the DHP-1320 on Access Point Mode How to Access Web Interface of the DHP-1320 on Router Mode How to Change.
Thermal Detecting Wireless Sensor Network
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Navigating the Course 1. Course Materials 2 Software: Notepad (or TextEdit on a Mac) – comes with operating system Internet Explorer Web Browser FireFox.
Feb 2007WSN Training: XMesh Enabled Sensor App1 Lab 5 Objectives  Use XMesh multi-hop networking service to send sensing data to a base station  Using.
Free Powerpoint Templates Page 1 Presenters: Stephen Ellis & Lorson Blair Research Advisor: Dr. Y. Reddy using MEMSIC’s Professional Kit GRAMBLING STATE.
Copyright © 2007 by Pearson Education 1 UNIT 6A COMBINATIONAL CIRCUIT DESIGN WITH VHDL by Gregory L. Moss Click hyperlink below to select: Tutorial for.
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
Intro to the Atlas Platform Raja Bose Dr. Abdelsalam (Sumi) Helal January 23, 2007.
After Construction Name: Per #:.
Implementation of Embedded OS
Programming and Debugging with the Dragon and JTAG
Lab 1: Using NIOS II processor for code execution on FPGA
Computer System Laboratory
Downloading Arduino FOR WINDOWS.
WSN Training: XMesh Enabled Sensor App
Wireless Sensor Networks
Crouzet touch Quick start.
Installing the HP LaserJet Pro 500 color MFP M570 printer software in Windows on a Wireless Network & Wired Network.
مقدمة في الاردنيو د فضل الاكوع.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Developing different types of Motes in WSN
Software Setup & Validation
Presentation transcript:

1 Lab1  Objectives  Get familiar w/ hardware  Mote interface board  Mote  Mote sensor board  Get familiar w/ software  MoteWorks  Programmer’s notepad  Setting up environment

2 Crossbow classroom kit  Hardware  Mote interface board (MIB)  a.k.a. programmer, gateway, programming board, PC interface board  Mote processor/radio board  a.k.a. mote  tiny computer w/ radio communication  Mote sensor board  a.k.a. Data acquisition board (DAQ board)  Temperature, light, humidity, …  Software  MoteWorks

3 Crossbow hardware  Mote Interface Board (“MIB”)  MIB510  MIB520  MIB600  Mote  433MHz Mica2  868/916MHz Mica2 (MPR400CB)  2.4GHz MicaZ  Sensor board  MTS/MDA series  MDA100CB  PC

4 Hardware we’ll use MIB520 Mote Interface Board (“MIB”) 868/916MHz Mica2 Sensor MDA100CB PC

Feb 2007WSN Training: MW Orientation and Configuration 5 MoteWorks Orientation Objectives:  Review directory structure  MakeXbowlocal and environment customization Lab  Blink  make command  Compiling using Programmer’s Notepad

6 What SW Packages Are Provided by MoteWorks? Development Environment  Cygwin -- Alternative UI to view and compile code; Programmers Notepad is the main UI  MoteConfig 2.0 and OTAP  XSniffer  Programmer’s Notepad 2  GraphViz 2.6  PuTTY Utilities  WinMerge Compilers  nesC 1.2  AVR-GCC compiler for Atmel Atmega128 microcontroller  GDB debugger and AVR Insight

7 Directory Structures Typical default directory: C:\Crossbow\cygwin\opt\MoteWorks doc folder is not there initially. You will create this later.

8 Directory Structures C:\Crossbow\cygwin\opt\MoteWorks\apps

9 Directory Structures C:\Crossbow\cygwin\opt\MoteWorks\tools

10 Directory Structures C:\Crossbow\cygwin\opt\MoteWorks\tos

Feb 2007WSN Training: MW Orientation and Configuration 11 MoteWorks Orientation Objectives  Review directory structure  MakeXbowlocal and environment customization Lab  Blink  make command  Compiling using Cygwin or Programmer’s Notepad

12 Customization: MakeXbowlocal What is MakeXbowlocal?  A file that contains common settings to minimize keyboard entry and typos during compiling and downloading What will be used to edit the MakeXbowlocal file?  Programmers Notepad 2 Where is it?  :\Crossbow\cygwin\opt\MoteWorks\apps  Open a Programmers Notepad 2 window now

13 Customization: MakeXbowlocal What can be defined in MakeXbowlocal? 1.Programming board settings  COM port (MIB510 or MIB520) or  IP address (MIB600) of the programming board 2.Radio settings  Frequency band AND channel  Radio transmit (TX) output power 3.Group ID  Nodes must share a common group ID in order to network with each other

14 Review: What MIB Board Do I Have? MIB520 MIB600 MIB510

15 MakeXbowlocal: Programming Board 1.Uncomment one of the following lines  Line 14 if using a MIB510  Line 15 if using a MIB520  Line 16 if using a MIB600 (a.k.a., eprb ) 2.Uncomment and edit for COM port of the MIB510/MIB520 or IP address of the MIB600

16 MakeXbowlocal: MIB520 configuration Must install the MIB520’s USB driver prior to use  FTDI will install 4 different drivers…be patient  Run FTClean prior to driver’s installation (see next slide) Example definition (in the MakeXbowlocal file) for MIB520 #DEFAULT_PROGRAM=mib510 DEFAULT_PROGRAM=mib520 #DEFAULT_PROGRAM=eprb #MIB510=COM1 MIB520=com6 #EPRB= Lines 14 through 19 of Makexbowlocal NOTE: you should write com6 (instead of COM6) This number is the lower of the two COM ports assigned to the MIB520

17 MIB520 Notes (Review) USB port drivers (from FTDI) are in the MoteWorks CD The MIB520 USB drivers creates two sequentially numbered virtual COM ports  COM is for programming and downloading code in the Mote  COM is for PC to MIB520 data communications such as when running MoteView If the USB driver installed virtual COM port drivers greater than 16, you should uninstall and clean the COM port registries  Use the FTClean utility on the MoteWorks CD

18 Group ID versus Node ID? 915 MICA2 Channel 00 Group ID = MICA2 Channel 00 Group ID = Node ID

19 MakeXbowlocal: Group and Node IDs Nodes communicate only within a common group ID  Values can be in either decimal or hexadecimal  Default value is 0x7D (that is, decimal 125) Nodes can be assigned almost any 2-byte number (that is, from 0 to 65535) Exceptions: Don’t use the reserved broadcast or node addresses  Broadcast: 0xFFFF (65535)  UART Channel: 0x007E (126)

20 MakeXbowlocal: Group ID Editing Example: Line 30 shown uncommented and edited with group ID = 12

21 What RF Band is My Mote? Look at the number on the label with units in “MHZ” or “GHZ” 433 MHz Mica2 868/916 MHz Mica2 2.4 GHz MicaZ

22 Editing the Makexbowlocal File (2 of 2) For MICA2 users, check three settings 1.RADIO_CLASS and RADIO_CHANNEL  Uncomment one of 55, 93, 110, or RADIO_CHANNEL  Uncomment one of the RADIO_CHANNEL lines in the appropriate RADIO_CLASS section 3.Radio TX Power  Uncomment one line between 153 and 158

23 Example: Note lines 55 and 57 Setting the Channel for the MICA2 in the 902 MHz to 928 MHz band

24 MakeXbowlocal: MICA2, RF Transmit Power Example: MICA2 set to transmit at RADIO_POWER=0x02 or -20 dBm TX output power options for 868/916 MHz band MICA2 TX output power options for 433 MHz band MICA2

25 Before We Go On Make sure that the changes in the MakeXbowlocal file are based on your  Group ID  Type of Mote Interface Board (MIB510, MIB520, or MIB600)  COM port  Mote (Mica2 or MicaZ).  RADIO CLASS, RF CHANNEL, TX POWER All other lines else should be comment out with a # symbol

Feb 2007WSN Training: MW Orientation and Configuration 26 MoteWorks Orientation Objectives  Review directory structure  MakeXbowlocal and environment customization Lab  Blink  make command  Compiling using Programmer’s Notepad 2 (PN2 on your desktop)

Feb 2007WSN Training: MW Orientation and Configuration 27 Lab 1: Compile and Installing Firmware to a Mote Objectives  Build and install your first MoteWorks application  Verify your MoteWorks compiler tools and programming environment  Get a little more familiar with the hardware

28 Lab 1 – Materials Needed Mote (“MPR4x0” or “MPR2400”)  One MICA2, MICAz with batteries installed Mote Interface Board (“MIB”)  One of MIB510, MIB520, or MIB600  All associated cabling for data and power  IP or COM port settings determined  Appropriate drivers installed (if needed) Your PC with MoteWorks installed

29 Lab 1: Setup Gateway and Mote 1.Connect your MIB to your PC with the appropriate cabling. Check that the MIB is powered. 2. When using a MIB520, power is supplied from PC USB port. Turn the power switch on mote to OFF.

30 Step 2b: Attaching Mote to MIB520 Board MICA2/z Mote USB cable – power and communication NOTE: mote should be firmly seated in MIB520.

31 Lab: Compile and Download with Programmers Notepad 3.Open a Programmers Notepad window and navigate to the Blink directory: /opt/MoteWorks/apps/general/Blink 4.Click on the Blink.nc or BlinkM.nc file 5. If MICA2: Select tools > make mica2 6.To install, click on tools > shell. In the dialog box type make reinstall is either mica2 or micaz

32 2. View compiler output 1. Choose shell then type in make command then hit “Enter” Programmers Notepad 2 Interface After compile, click on Tools > shell then type in the appropriate make command (see previous slide)

33 TinyOS make Command (1 of 3) To build an TinyOS application we use make to  Configure top-level nesC application with user specific options  To find options and their syntax, look under the C:\Crossbow\cygwin\opt\MoteWorks\make\avr subdirectory  Run the nesC precompiler to convert nesC configurations and modules to C.  Compile C code to executable binary for target platform  Install code into Mote The make command can be typed or issued from Programmers Notepad 2  Can also be issued from the same location within a Cygwin window

34 TinyOS make Command (2 of 3) Makefile in MoteWorks\make\scripts Makerules in MoteWorks\make\scripts MakeXbowlocal ncc nesC precompiler avr-gcc C cross compiler-linker UISP upload code to Mote TinyOS code image in Mote TinyOS application source files make install … Makedefaults

35 TinyOS make Command (3 of 3) make command summary make re|install,, mica2, or micaz, or mica2dot mib510, or mib520, or eprb (= mib600) com# where # = COM port where your MIB510 is attached or the lower of the two virtual COM ports assigned by the MIB520 USB driver IP address as determined or assigned by using the Lantronix’s DeviceInstaller software reinstall, = Download code that is already compiled with node ID = n install, = compile then download code to the Mote with node ID = n Example: make mica2 install,1 mib520,com6

36 Lab Step 3: Compile for nescdoc In PN2 click on Tools > shell Type make docs Open a Web UI (Internet Explorer, Mozilla Firefox) Browse to the folder in C:\crossbow\cygwin\opt\MoteWorks\docs\nesdoc\ Open allfiles_f.html. Select Components. Click on the Blink hyperlink

37 GraphViz Help A requires interface I, B provides I, and A and B are wired together. C and D both require or both provide J. The direction of the arrow indicates that the original wiring is "C = D". E requires function f, and F provides function

38 What you need to do  Familiarize yourself with hardware  Review directory structure of MoteWorks  Familiarize yourself with Programmers Notepad  Using Programmer’s Notepad to  Customize MakeXbowlocal (use the same PC for the rest of the semester)  Compile & download Blink  Make sure Blink works  Finish lab1 report