Documente Academic
Documente Profesional
Documente Cultură
User’s Guide
• 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.
QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
CERTIFIED BY DNV 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
== ISO/TS 16949 == are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
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.
NOTES:
Table of Contents
Preface ........................................................................................................................... 7
Chapter 1. Overview
1.1 Introduction ................................................................................................... 13
1.2 RN131/171 Evaluation Kit Features ............................................................. 13
1.3 RN131/171 Evaluation Kit Contents and Part Details .................................. 14
1.4 RN131 and RN171 Evaluation Kits Content ................................................. 15
1.5 RN131/171 Evaluation Related Contents ..................................................... 18
Chapter 2. Getting Started
2.1 Introduction ................................................................................................... 19
2.2 Hardware Requirements .............................................................................. 19
2.3 Software/Utility Requirements ...................................................................... 20
2.4 Module Configuration ................................................................................... 21
Chapter 3. Application Design Concerns
3.1 Introduction ................................................................................................... 29
Appendix A. RN131 and RN171 Evaluation Kits Schematic
A.1 Introduction .................................................................................................. 31
A.2 RN131 and RN171 Evaluation Kits Schematic ............................................ 31
A.3 RN131 and RN171 Evaluation Kits PCB Layout and Assembly Drawings .. 34
A.4 RN131 and RN171 Evaluation Kits Bill of Materials .................................... 40
A.5 RN131 and RN171 Evaluation Kits Physical Dimensions ............................ 42
Index ............................................................................................................................. 45
Worldwide Sales and Service .................................................................................... 46
NOTES:
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® IDE online help.
Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
RN131/171 Evaluation Board User’s Guide. 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 RN131/171 Evaluation Board. The manual
layout is as follows:
• Chapter 1. “Overview” – This chapter describes the RN131 and RN171 Evalua-
tion Kits that are used for demonstrating the RN131 and RN171 module capabilities.
These boards have the flexibility to connect directly to computers/laptops through a
standard USB interface or to an embedded controllers through the serial UART
interface.
• Chapter 2. “Getting Started” – This chapter describes the RN131 and RN171
Evaluation Kits as an independent development board to add Wi-Fi® connectivity
to embedded systems. Certain hardware and software/utilities are essential to
support the development of demo applications which are also discussed in this
chapter.
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB® IDE User’s Guide
Emphasized text ...is the only compiler...
Initial caps A window the Output window
A dialog the Settings dialog
A menu selection select Enable Programmer
Quotes A field name in a window or “Save project before build”
dialog
Underlined, italic text with A menu path File>Save
right angle bracket
Bold characters A dialog button Click OK
A tab Click the Power tab
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Filenames autoexec.bat
File paths c:\mcc18\h
Keywords _asm, _endasm, static
Command-line options -Opa+, -Opa-
Bit values 0, 1
Constants 0xFF, ‘A’
Italic Courier New A variable argument file.o, where file can be
any valid filename
Square brackets [ ] Optional arguments mcc18 [options] file
[options]
Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1}
character: { | } arguments; an OR selection
Ellipses... Replaces repeated text var_name [,
var_name...]
Represents code supplied by void main (void)
user { ...
}
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly.
Sending in the Warranty Registration Card entitles you 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 RN-131-EK and RN-171-EK Evaluation
Boards. Other useful documents are listed below. The following Microchip documents
are available and recommended as supplemental reference resources.
RN131 Module Data Sheet (DS75085)
RN171 Module Data Sheet (DS75084)
PICDEM™ PIC18 Explorer Demonstration Board User’s Guide (DS51721)
Explorer 16 Development Board User’s Guide (DS51589)
WiFly Command Reference, Advanced Features and Applications User’s Guide
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 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 our web site at: http://support.microchip.com
NOTES:
Chapter 1. Overview
1.1 INTRODUCTION
This chapter describes the RN131/171 Evaluation Kits that are used for demonstrating
the RN131 and RN171 module capabilities. These boards have the flexibility to connect
directly to computers/laptops through a standard USB interface or to embedded
controllers through the serial UART interface. These evaluation boards contain two
push buttons, namely RESET and FN. The RESET button is used to reset the module
and the FN button is used to launch different applications depending on software
configuration. The status LEDs enables quick debug support.
The RN171 Evaluation Board has an additional flexibility of powering up through
battery pack (two AAA batteries) apart from connecting through USB cable to the host
PC. Analog sensor interface supported by RN131 and RN171 Evaluation Boards also
provides direct connections to read analog signals such as temperature, acceleration
and so on.
For data sheet and other details related to RN131 and RN171 modules refer to the
Microchip web site http://www.microchip.com.
This chapter discusses the following topics:
• RN131/171 Evaluation Kit Features
• RN131/171 Evaluation Kit Contents and Part Details
• RN131 and RN171 Evaluation Kits Content
• RN131/171 Evaluation Related Contents
RN-131-EK
• RN131 Evaluation Board
• USB cable
RN-171-EK
• RN171 Evaluation Board
• USB cable
Note 1: The RN171 module drives GPIO8 HIGH on power-up, which overrides software configured
power-up values, such as set sys value 0x0000 on GPIO8.
Note: RN131/171 module firmware can be upgraded to the latest version through
FTP update. For additional information on FTP update and commands,
refer to “WiFly Command Reference, Advanced Features and Applications
User’s Guide” from the Microchip web site http://www.microchip.com.
• Once the FTDI drivers are installed, the COM port is automatically assigned based on
the active connection.
Note: When a command is completed, the terminal displays a prompt in the for-
mat <X.XX>, where X.XX indicates the module’s firmware version.
Commands to the module is first sent with a keyword followed by an optional parame-
ter. Spaces are not allowed to use as parameters. The commands are case sensitive.
Use a $ to indicate a space (For example, MY NETWORK must be written as MY$NET-
WORK). Additionally, short form for the parameters can be used. For example, the
following commands are equivalent:
set uart baudrate 115200
set uart b 115200
set u b 15200
Note: Short forms are not used for command keywords. For example, s uart
baudrate 115200 is illegal.
The RN131/171 module supports a variety of command keywords. The WiFly Com-
mand Reference, Advanced Features and Applications User’s Guide Reference from
the Microchip web site http://www.microchip.com provides a complete command of
references.
For evaluation purposes, view the current settings using the get command; get
everything to shows all parameters. Table 2-1 shows an additional parameters that
can be used with set and get commands.
Note: RN131/171 module firmware can be upgraded to the latest version through
FTP update. For additional information on FTP update and commands, refer
to “WiFly Command Reference, Advanced Features and Applications User’s
Guide” from the Microchip web site at http://www.microchip.com.
In firmware version 2.36 (ad hoc mode), the auto join feature is enabled to
maintain backwards compatibility. In version 2.45 (AP mode), auto join is dis-
abled and must be explicitly enabled using the set wlan join 1 command.
The following sections describe how to use the AP mode with RN Wi-Fi modules, includ-
ing configuring the module to act as an AP, enabling AP mode in hardware and software,
and ending data to the module from a remote host.
Note: For more details on programming/configuring the module, refer to the docu-
mentation of module used on the Support page from the Microchip web site
at http://www.microchip.com.
Table 2-2 shows the default AP mode settings.
Note: In AP mode, the module can assign a DHCP lease to 7 clients. However, not
all clients report the host name. In this case, the module reports the name as
an asterisk (*).
Once a client is associated to the network, it can open a TCP connection to the RN131/171
module. After successfully opening a TCP connection, the client receives a *HELLO* mes-
sage. The RN131/171 module prints *OPEN* on the UART, indicating an open TCP con-
nection.
Note: The RN171 module can also be powered through the USB cable while a
battery pack is installed.
Note: Sensor pins 2 and 3 have a resistor network in front of sensors 4 and 5,
respectively. Hence, these pins can be driven with up to 3.3V DC.
3.1.3.1 AP MODE
To put the module into AP mode, GPIO9 must be high when the module powers up or
wakes from a sleep state. Press the AP mode button to drive GPIO9 high, and then
press the RESET button to reset the module. The module is in default AP mode, which
creates a default access point network with the default parameters as listed in
Table 3-1.
3.1.4 Reset
The RESET push button reboots the module.
A.1 INTRODUCTION
This appendix provides the RN131 and RN171 Evaluation Boards schematic, PCB
layout and Bill of Materials (BOM).
• RN131 and RN171 Evaluation Kits Schematic
• RN131 and RN171 Evaluation Kits PCB Layout and Assembly Drawings
• RN131 and RN171 Evaluation Kits Bill of Materials
• RN131 and RN171 Evaluation Kits Physical Dimensions
A.3 RN131 AND RN171 EVALUATION KITS PCB LAYOUT AND ASSEMBLY
DRAWINGS
The RN131/171 Evaluation Board is a 2-layer, FR4, 0.062 inch, plated through a hole
PCB construction. Figure A-3 through Figure A-14 show the PCB constructions and
Assembly Drawings.
NOTES:
Index
A S
Ad hoc parameters................................................... 24 SMA Connectors ...................................................... 18
Analog-to-Digital Converter (ADC)........................... 29 SoftAP mode ............................................................ 13
ASCII commands ..................................................... 13
T
Assembly Drawings.................................................. 34
TCP/IP networking ................................................... 13
B Telnet ....................................................................... 13
Bill of Materials (BOM) ..........................................8, 31 Terminal Emulator Application ................................. 20
C U
COM Port ................................................................. 18 U.FL. connector........................................................ 13
Command mode ...................................................... 21 UART (RS232) ........................................................... 7
Customer Notification Service.................................. 10 USB cable ................................................................ 13
Customer Support .................................................... 10 USB Connector ........................................................ 18
USB interface ............................................................. 7
D
USB-to-serial cable .................................................. 22
Data mode ............................................................... 21
Demonstration Application ..................................19, 29 W
Documentation Warranty Registration ................................................ 9
Conventions ........................................................ 8 Wi-Fi Alliance ........................................................... 13
Layout ................................................................. 7 WPA2-PSK............................................................... 13
WPS mode ............................................................... 29
E
WWW Address......................................................... 10
Explorer 16 Development Board ................................ 9
F
FTDI drivers ............................................................. 19
FTP client ................................................................. 13
FTP host address..................................................... 24
I
IEEE 802.11 b/g transceiver .................................... 13
Internet Address....................................................... 10
L
LEDs ........................................................................ 18
M
Microchip Internet Web Site ..................................... 10
MRF24XA .................................................................. 7
P
PCB constructions ................................................... 34
PCB layers ............................................................... 34
PCB layout ............................................................8, 31
Physical Dimensions ................................................ 42
PICDEM™ PIC18 Explorer ........................................ 9
R
Real-time clock ........................................................ 13
Recommended Reading ............................................ 9
Red LED .................................................................. 25
RN131/171 Evaluation Board .................................... 7
RoHS compliant ....................................................... 13