Microchip Technology Wi-Fi® G Demo Board User’s Guide

Wi-Fi
®
G Demo Board
User’s Guide
2013 Microchip Technology Inc. DS50002147A
Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIE DBYDNV
== ISO/TS16949==
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, K PICSTART, PIC and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, MTP, SEEVAL and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
Analog-for-the-Digital Age, Application Maestro, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O, Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA and Z-Scale are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
GestIC and ULPP are registered trademarks of Microchip Technology Germany II GmbH & Co. & KG, a subsidiary of Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their respective companies.
© 2013, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-62077-077-1
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro,
32
logo, rfPIC, SST, SST Logo, SuperFlash
QUALITYMANAGEMENTS
DS50002147A-page 2  2013 Microchip Technology Inc.
Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
WI-FI® G DEMO BOARD
Object of Declaration:
Wi-Fi G Demo Board
USER’S GUIDE
DS50002147A-page 3  2013 Microchip Technology Inc.
Wi-Fi G Demo Board User’s Guide
NOTES:
DS50002147A-page 4  2013 Microchip Technology Inc.
Wi-Fi G DEMO BOARD
USER’S GUIDE

Table of Contents

Preface ........................................................................................................................... 7
Introduction............................................................................................................ 7
Document Layout .................................................................................................. 7
Conventions Used in this Guide ............................................................................ 9
Warranty Registration.......................................................................................... 10
Recommended Reading...................................................................................... 10
The Microchip Web Site ...................................................................................... 10
Development Systems Customer Change Notification Service .......................... 11
Customer Support ............................................................................................... 11
Document Revision History ................................................................................. 11
Chapter 1. Overview
1.1 Introduction ................................................................................................... 13
1.2 Wi-Fi G Demonstration Kit Contents ............................................................ 13
1.3 Functionality and Features ........................................................................... 13
Chapter 2. Hardware
2.1 Hardware Features ....................................................................................... 17
2.1.1 MRF24WG0MA IEEE 802.11 b/g Wi-Fi Transceiver Module .................... 17
2.1.2 Processor Support ..................................................................................... 17
2.1.3 Power Supply ............................................................................................ 17
2.1.4 LEDs .......................................................................................................... 17
2.1.5 Switches .................................................................................................... 17
2.1.6 Programming/Debug Port .......................................................................... 17
2.1.7 Expansion Port .......................................................................................... 17
Chapter 3. Getting Started
3.1 Overview ...................................................................................................... 19
3.2 Running the Wi-Fi G Demo Application ........................................................ 19
Chapter 4. Description of Modes of Operation
4.1 SoftAP Network ............................................................................................ 25
4.2 Ad Hoc Networks .......................................................................................... 25
4.3 Wi-Fi Direct Networks ................................................................................... 25
4.4 Zero Configuration/Bonjour .......................................................................... 26
4.4.1 Link Local .................................................................................................. 26
4.4.2 Multicast DNS ............................................................................................ 26
4.4.3 Service Discovery ...................................................................................... 26
4.4.4 Zero Configuration & mDNS demonstration .............................................. 26
4.5 Configured Vs. Unconfigured State .............................................................. 28
4.6 Determining New IP Address Assigned ....................................................... 29
2013 Microchip Technology Inc. DS50002147A-page 5
Wi-Fi G Demo Board User’s Guide
Chapter 5. Programming
5.1 Software ....................................................................................................... 31
5.2 Hardware ...................................................................................................... 31
5.3 Programming Sequences – Project .............................................................. 33
5.4 Programming Sequences – Hex File ............................................................ 36
Chapter 6. Advanced Features
6.1 Change Transmit Power ............................................................................... 41
Chapter 7. Customizing Web Pages
7.1 Software Requirements ................................................................................ 43
7.2 Directory Location ........................................................................................ 43
7.3 Steps For Customizing Web Page Contents ................................................ 44
Appendix A. Wi-Fi G Demo Board Schematic
A.1 Introduction .................................................................................................. 47
Worldwide Sales and Service .....................................................................................49
DS50002147A-page 6  2013 Microchip Technology Inc.
Wi-Fi G DEMO BOARD
USER’S GUIDE

Preface

NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the document.
®
For the most up-to-date information on development tools, see the MPLAB Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
IDE online help.
This chapter contains general information that will be useful to know before using the Wi-Fi G Demo Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the Wi-Fi G Demo Board to create a Wi-Fi network and control the demo board functions from the client device web browser.
The manual layout is as follows:
Chapter 1. “Overview” – This chapter provides a brief overview of the demo
board, highlighting its features and uses.
Chapter 2. “Hardware” – This chapter provides the hardware description of the
Wi-Fi G Demo Board.
Chapter 3. “Getting Started” – This chapter describes what you need to know to
start using the Wi-Fi G Demo Board.
Chapter 4. “Description of Modes of Operation” – This chapter provides the
modes of operation description of the Wi-Fi G Demo Board.
Chapter 5. “Programming” – This chapter describes what you need and how to
program the Wi-Fi G Demo Board.
2013 Microchip Technology Inc. DS50002147A-page 7
Wi-Fi G Demo Board User’s Guide
Chapter 6. “Advanced Features” – This chapter describes the advanced fea-
tures such as changing transmit power.
Chapter 7. “Customizing Web Pages” – This chapter provides the guidelines on
how to customize web page contents.
Appendix A. “Wi-Fi G Demo Board Schematic” – This appendix includes the
Wi-Fi G Demo Board schematic.
DS50002147A-page 8  2013 Microchip Technology Inc.
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB® IDE User’s Guide
Initial caps A window the Output window
Quotes A field name in a window or
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Italic Courier New A variable argument file.o, where file can be
Square brackets [ ] Optional arguments mcc18 [options] file
Curly brackets and pipe character: { | }
Ellipses... Replaces repeated text var_name [,
Preface
Emphasized text ...is the only compiler...
A dialog the Settings dialog A menu selection select Enable Programmer
“Save project before build”
dialog A menu path File>Save
A tab Click the Power tab
4‘b0010, 2‘hF1 where N is the total number of digits, R is the radix and n is a digit.
Filenames autoexec.bat File paths c:\mcc18\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’
any valid filename
[options]
Choice of mutually exclusive arguments; an OR selection
Represents code supplied by user
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
2013 Microchip Technology Inc. DS50002147A-page 9
Wi-Fi G Demo Board User’s Guide
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly. Send­ing in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site.
RECOMMENDED READING
This user's guide describes how to use the Wi-Fi G Demo Board. The following Microchip documents are available from the Microchip web site (www.microchip.com), and are recommended as supplemental resources.
MRF24WG0MA/MRF24WG0MB Data Sheet (DS70686)
Microchip MRF24W Getting Started Quick Guide for MRF24WB0MA/B, MRF24WG0MA/B for MLA v5 (DS52108)
PIC32MX5XX/6XX/7XX Family Data Sheet (DS61156)
TCPIP Stack Help.chm (This is bundled together with the TCIP/IP source code releases.)
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information:
Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents, latest software releases and archived software
General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program member listing
Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives
DS50002147A-page 10  2013 Microchip Technology Inc.
Preface
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest.
To register, access the Microchip web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions.
The Development Systems product group categories are:
Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB C compilers; all MPLAB assemblers (including MPASM™ assembler); all MPLAB linkers (including MPLINK™ object linker); and all MPLAB librarians (including MPLIB™ object librarian).
Emulators – The latest information on Microchip in-circuit emulators. This
includes the MPLAB REAL ICE™ and MPLAB ICE 2000 in-circuit emulators.
In-circuit Debuggers – The latest information on the Microchip in-circuit debug-
gers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit™ 3 debug express.
®
MPLAB
Integrated Development Environment for development systems tools. This list is focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and MPLAB SIM simulator, as well as general editing and debugging features.
Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included are nonproduction development programmers such as PICSTART PICkit 2 and 3.
IDE – The latest information on Microchip MPLAB IDE, the Windows®
®
Plus and
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document.
Technical support is available through the web site at:
http://www.microchip.com/support
DOCUMENT REVISION HISTORY
Revision A (March 2013)
• Initial Release of this Document.
2013 Microchip Technology Inc. DS50002147A-page 11
Wi-Fi G Demo Board User’s Guide
NOTES:
DS50002147A-page 12  2013 Microchip Technology Inc.

Chapter 1. Overview

1.1 INTRODUCTION
Thank you for purchasing the Microchip Technology’s Wi-Fi G Demonstration kit. The Wi-Fi G Demo Board provides a low-cost and portable development system for Microchip’s MRF24WG0MA IEEE 802.11b/g Wi-Fi Transceiver Module.
The Wi-Fi G Demo Board is preloaded with a demo software for the user to explore the features of the MRF24WG0MA Wi-Fi module. It is also expandable through an 8-pin expansion interface, which enables the user to extend its functionality by adding various sensor expansion boards.
The topics discussed in this chapter include:
• Wi-Fi G Demonstration Kit Contents
• Functionality and Features
1.2 Wi-Fi G DEMONSTRATION KIT CONTENTS
The Wi-Fi G Demonstration Kit contains the following:
• Wi-Fi G Demo Board
• 2 AAA Batteries
• Male 1x6 Connector Header HDR-2.54 (J14)
• Wi-Fi G Demo Board Information Sheet (DS52107A)
Wi-Fi G DEMO BOARD
USER’S GUIDE
1.3 FUNCTIONALITY AND FEATURES
The Wi-Fi G Demo Board supports the following network types:
• Infrastructure (client)
• Ad hoc
• Wi-Fi Direct (peer-to-peer as group client)
•SoftAP
The security modes supported are:
• Open
• WEP-40, WEP-104 (Wired Equivalent Privacy)
• WPA (Wi-Fi Protected Access)
• WPA2 (Wi-Fi Protected Access)
For ease of setup and usability, the following connection methods are also supported.
• WPS-PBC (Wi-Fi Protected Setup Push Button Configuration)
• WPS-PIN (Wi-Fi Protected Setup Personal Information Number)
2013 Microchip Technology Inc. DS50002147A-page 13
Wi-Fi G Demo Board User’s Guide
Note: For Demo Version 1.02, only SoftAP, infrastructure and ad hoc network
support are offered. SoftAP supports only open and WEP security at this time. All security modes are supported in other network types. Future versions of the Demo software will include the additional functions noted above.
A representation of the layout for the Wi-Fi G Demo Board is shown in Figure 1-1.
FIGURE 1-1: Wi-Fi
®
G DEMO BOARD LAYOUT
DS50002147A-page 14  2013 Microchip Technology Inc.
Overview
The Wi-Fi G Demo Board has the following key features:
1. MRF24WG0MA IEEE 802.11 b/g Wi-Fi Transceiver Module
2. PIC32MX695F512H 32-bit microcontroller
3. MCP1642 +3.3V Boost regulator
4. Three LED status indicators (LED0 - GREEN, LED1 - YELLOW, LED2 - RED)
5. One push-button switch for user input (SW0)
6. Power ON/OFF slider switch (S1)
7. 6-pin programming/debug port (J14)
8. 8-pin expansion port (J15)
2013 Microchip Technology Inc. DS50002147A-page 15
Loading...
+ 34 hidden pages