1 / 25

MoteWorks Installation

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. Installing MoteWorks. Notes

fruma
Download Presentation

MoteWorks Installation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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. Installing MoteWorks • Notes • MoteWorks Installer will upgrade your existing Cygwin installation prior to installing the various MoteWorks packages • You must be the original root user to add or remove old Cygwin and other TinyOS RPM packages. • Log on with administrator privileges • Time to complete: 30 minutes for most Pentium III and faster systems • Do not restart until total installation is complete Insert 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.) WSN Training: MoteWorks Installation

  3. MoteWorks – License Agreement Enter your license key number here WSN Training: MoteWorks Installation

  4. MoteWorks – Select Destination Location WSN Training: MoteWorks Installation

  5. MoteWorks – Cygwin Install Option • Two options • Install at a new location • Update previous Cygwin WSN Training: MoteWorks Installation

  6. MoteWorks Components Selection Screen WSN Training: MoteWorks Installation

  7. 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 What SW Packages Are Being Installed? MoteView a separate installation WSN Training: MoteWorks Installation

  8. InstallShield Wizard: Cygwin Setup, RPM Install A) MoteWorks Setup in progress (no action required) B) Cygwin window opens: Wait for RPMs to install WSN Training: MoteWorks Installation

  9. 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 presentation WSN 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 presentation WSN Training: MoteWorks Installation

  11. Installing Drivers for Mote Interface Board (MIB) Topics MIB510 MIB520 MIB600 WSN Training: MoteWorks Installation

  12. What MIB Board Do I Have? MIB600 MIB510 MIB520 WSN Training: MoteWorks Installation

  13. 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. 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. 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: _______________________ WSN Training: MoteWorks Installation

  16. Compile and Installing Firmware to a Mote Objectives: 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 WSN Training: MoteWorks Installation

  17. Lab – 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 WSN Training: MoteWorks Installation

  18. 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. Step 1a -- Attaching Mote to MIB510 Board • Cables • Power • Wired Comms • Turn Mote’s power switch to OFF it is has batteries WSN Training: MoteWorks Installation

  20. Step 1b -- Attaching Mote to MIB520 Board • Connect the MIB520 to a USB port • Install 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. 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. Lab 1: Step 2 -- Compile Open Cygwin window Navigate to the Blink directory by typing cd /opt/MoteWorks/apps/general/Blink WSN Training: MoteWorks Installation

  23. Lab: Step 3 -- Install Firmware into a Mote • Flash your Mote make command via Cygwin: • make<platform> re|install,<n><programmer>,<com#orIP_Addr> The “,<n>” says, “make this node’s address be n.” mica2, or micaz, or mica2dot mib510, or mib520, or eprb (=mib600) ,IP_Addr as determined or assigned by using the Lantronix’s DeviceInstaller software If you’ve already compile the code then use reinstall to save time ,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! WSN Training: MoteWorks Installation

  24. Appendix A Topics: Programmer’s Notepad configuration WSN Training: MoteWorks Installation

  25. Programmer’s Notepad Customization Open Programmer’s Notepad from Desktop shortcut • From menu Tools > Options select • Click on Tools • NesC-TinyOS from Scheme dropdown • Highlight an item in the namelist • Click on edit to modify Parameters box. WSN Training: MoteWorks Installation

More Related