00 installation
DESCRIPTION
MIB 600 - CrossbowTRANSCRIPT
February 2007WSN Training: MoteWorks Installation 1
MoteWorks Installation
Objectives: Install MoteWorks Install drivers for MIB (if needed) Verify installation with a simple Mote
app
PC System Requirements Windows XP or 2000 Pro PIII 500MHz, 256 MB RAM, 1GB Hard
Disk
WSN Training: MoteWorks Installation 2 February 2007
Installing MoteWorksInsert MoteWorks CDROM into PC and have your license key
ready
Double click on MoteWorks_2.0.D.exe
Accept the License agreement and enter your MoteWorks
license key.
Choose “Full Installation,” check all boxes and then
“Next.”
Accept installation of all utilities and extras (Programmer’s
Notepad, TortoiseCVS, PuTTY, WinMerge, etc.)
Notes1. MoteWorks Installer will
upgrade your existing Cygwin installation prior to installing the various MoteWorks packages
2. You must be the original root user to add or remove old Cygwin and other TinyOS RPM packages.
3. Log on with administrator privileges
4. Time to complete: 30 minutes for most Pentium III and faster systems
5. Do not restart until total installation is complete
WSN Training: MoteWorks Installation 3 February 2007
MoteWorks – License Agreement
Enter your license key number here
WSN Training: MoteWorks Installation 4 February 2007
MoteWorks – Select Destination Location
WSN Training: MoteWorks Installation 5 February 2007
MoteWorks – Cygwin Install Option
Two options1. Install at a new location2. Update previous Cygwin
WSN Training: MoteWorks Installation 6 February 2007
MoteWorks Components Selection Screen
WSN Training: MoteWorks Installation 7 February 2007
What SW Packages Are Being Installed?
Development Environment Cygwin MoteConfig 2.0 and OTAP XSniffer Programmer’s Notepad 2 GraphViz 2.6 TortoiseCVS 1.8.22 PuTTY Utilities WinMerge 2.4.6
Compilers nesC 1.2 GCC compiler for Atmel
ATMega 128 GDB debugger and AVR
Insight
Application source code From MoteWorks 2.0 tree
MoteView a separate installation
WSN Training: MoteWorks Installation 8 February 2007
InstallShield Wizard: Cygwin Setup, RPM Install
A) MoteWorks Setup in progress(no action required)
A) MoteWorks Setup in progress(no action required)
B) Cygwin window opens: Wait for RPMs to install
B) Cygwin window opens: Wait for RPMs to install
WSN Training: MoteWorks Installation 9 February 2007
Programmer’s Notepad: About Half Way Done
If you have not installed in the default destination and drive, please see the last slide in this presentationIf you have not installed in the default destination and drive, please see the last slide in this presentation
February 2007WSN Training: MoteWorks Installation 10
MoteWorks Installation
Objectives: Install MoteWorks Install drivers for MIB Verify installation with a simple Mote app
If you have not installed in the default destination and drive, please see the last slide in this presentationIf you have not installed in the default destination and drive, please see the last slide in this presentation
February 2007WSN Training: MoteWorks Installation 11
Installing Drivers for Mote Interface Board (MIB)Topics MIB510 MIB520 MIB600
WSN Training: MoteWorks Installation 12 February 2007
What MIB Board Do I Have?
MIB520
MIB600MIB51
0
WSN Training: MoteWorks Installation 13 February 2007
MIB510 Usage and Programming Notes
Connect to PC using a straight-through DB9 male to DB9 female serial cable
For PCs without a serial port to a USB-to-Serial converter Recommended manufacturer: Keyspan If this is you, install the USB-to-serial driver now
Notes USB to serial converters are dependent on PC model and
Windows operating system Some USB to DB9 serial port adapters cannot run at 115
kbaud If you MIB510 seems to work intermittently, remove and
reinsert the USB-to-serial cable from your PC
WSN Training: MoteWorks Installation 14 February 2007
MIB520 Usage and Programming Notes
USB drivers The drivers (from FTDI) are in the WSN Training CD under
/MIB520_Utilities MIB520 users: Install the drivers now
The MIB520 USB drivers creates two sequentially numbered virtual COM ports COM<#> is for programming and downloading code in the Mote COM<#+1> is for PC to MIB520 data communications such as
when running MoteView Write the two COM ports assigned by your system: _____ and _____.
Note: Cygwin does not accept COM port numbers greater than 16 If any COM port is 17 or higher, use the FTClean in the WSN
Training CD under /MIB520_Utilities/FTClean
WSN Training: MoteWorks Installation 15 February 2007
MIB600 Usage and Programming Notes
Two ways to interface to the MIB600 Over a LAN with a standard Ethernet cable Direction connection to your PC with a cross-over
Ethernet cable
Use the Lantronix’s DeviceInstaller to determine and/or configure the MIB600s IP address
A label with the unit’s MAC address is on the MIB600 board
Install Lantronix’s DeviceInstaller in MoteWorks CDROM under /Misc/Lantronix Device Installer
MIB600 Users: Use the DeviceInstaller now to determine your IP Address
Write your MIB600s IP Address here: _______________________
February 2007WSN Training: MoteWorks Installation 16
Compile and Installing Firmware to a MoteObjectives:
Build (“compile”) and install your first MoteWorks application
Verify your MoteWorks compiler tools and programming environment
A first look at the hardware
If you have not installed in the default destination and drive, please see the last slide in this presentation
If you have not installed in the default destination and drive, please see the last slide in this presentation
WSN Training: MoteWorks Installation 17 February 2007
Lab – Materials Needed
1. Mote (“MPR4x0” or “MPR2400”) One MICA2, MICAz with batteries installed
2. 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)
3. Your PC with MoteWorks installed
WSN Training: MoteWorks Installation 18 February 2007
Lab 1: Step 1—Setup Gateway and Mote
Connect your MIB to your PC with the appropriate cabling. Check that the MIB is powered.
Attach a MICA2 or MICAz to the MIB’s 51-pin connector• If the MIB510 is powered, switch the MICA’s power
switch to off• If using a MIB520, power is supplied from PC USB port. • Make sure that the red PWR LED is on and green PWR
LED is not blinking.
WSN Training: MoteWorks Installation 19 February 2007
Step 1a -- Attaching Mote to MIB510 Board
Turn Mote’s power switch to OFF it is has batteries
Cables• Power • Wired Comms
WSN Training: MoteWorks Installation 20 February 2007
Step 1b -- Attaching Mote to MIB520 Board
Connect the MIB520 to a USB portInstall the MICA2 (or MICAz) Mote on the MIB520
Set the Mote power switch to OFF if the Mote has batteries
MICAz Mote
USB cable – power and communication
WSN Training: MoteWorks Installation 21 February 2007
Step 1c -- Attaching Mote to MIB600 Board
Connect the MIB600 to an Ethernet hub or crossover cable Determine/set the IP address with Lantronix’s DeviceInstaller
Power the MIB with the 5 V power supply Set the Mote power switch to OFF if the Mote has batteries Set the POE switch on the MIB to the “5V” position
Install a MICA2 (or MICAz) Mote on the MIB600
MICAz Mote
Ethernet cable to LAN or hub
5 VDC wall power supply (POE switch to “5V”)
WSN Training: MoteWorks Installation 22 February 2007
Lab 1: Step 2 -- Compile
Open Cygwin windowNavigate to the Blink directory by typing
cd /opt/MoteWorks/apps/general/Blink
WSN Training: MoteWorks Installation 23 February 2007
Lab: Step 3 -- Install Firmware into a Mote
Flash your Mote make command via Cygwin:
make <platform> re|install,<n> <programmer>,<com# or IP_Addr>
mica2, ormicaz, ormica2dot
mib510, ormib520, oreprb (=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
What should you see? Check that the red LED on the Mote is blinking about once per second. That’s it!
If you’ve already compile the code then use reinstall to save time
The “,<n>” says, “make this node’s address be n.”
,IP_Addr as determined or assigned by using the Lantronix’s DeviceInstaller software
February 2007WSN Training: MoteWorks Installation 24
Appendix A
Topics:Programmer’s Notepad configuration
WSN Training: MoteWorks Installation 25 February 2007
Programmer’s Notepad Customization
From menu Tools > Options select1. Click on Tools2. NesC-TinyOS from Scheme
dropdown3. Highlight an item in the namelist4. Click on edit to modify
Parameters box.
Open Programmer’s Notepad from Desktop shortcut