Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 7 -
3. Introduction
Scope
This Integration and Users Guide, along with the RN-111b module have been developed
to assist users in embedding Wifi technology into their serial, SPI, and sensor devices.
The goal is to make the implementation of embedded Wifi wireless networks as seamless
and easy as possible. This document will explain how to setup and establish
communications between the RN-111b and Wifi enabled networks for data applications.
3.1. Hardware Interface
There are 3 options to power the RN-111b.
1. Supply 3.6 to 16VDC power to VIN (pin 13). Tie VREG (pin 14) to VBATT(pin 15).
2. Apply 3.3VDC regulated power to VDD (pin 17).
3. Apply battery = 2.0 to 3.0VDc to VBATT (pin 15).
If VIN is powered, VREG will supply 3.3VDC output and can be used for other circuits,
with a current limitation of 50 ma.
Reset is active LOW, is optional and does not need to be connected. There is a built in
voltage monitor that will pull Reset LOW (open drain FET) if the input voltage drops
below 2.7VDC. If external reset is desired, use an OPEN DRAIN driver and do not drive
the Reset pin to any voltage > 1.0 Vdc.
Warning: Do NOT exceed the voltage ratings on the 3.3V pins, damage to the module
will result.
Important Notes:
#1: RESET input is a low voltage (1.2VDC ) input, with a 10K pullup and built in
power monitor circuits. If external reset is desired, use pull down (open drain
or collector) only.
#2: The Sensor inputs SENS1-7 are extremely sensitive to over voltage. Under
no conditions should these pins be pulled high above 1.2VDC. Placing any
voltage above this will permanently damage the radio module and render it
useless.
#3: Placing 5VDC or any voltage above 3.3Vdc into the VDD pins of the module
will permanently damage the radio module. Be sure to use the VIN = pin 13
power pin for any power supplied that is > 3.3VDC.
#4: Placing 3.3Vdc into the PIO’s while they are set as outputs will permanently
damage the radio modules. The failure mode is a short across GND and VCC.
Use a 10KΩ resistor in series or a 10KΩ pull up resistor for input and output
PIO’s respectively.
Connect a common ground when using the external TX, RX inputs.
For a 3 wire DB-9 interface (tx, rx, gnd only) connect/short CTS to RTS, Factory
default is hardware flow control disabled, CTS and RTS not connected.
When using a 5.0Vdc Input, PIO’s require a 10K ohm series resistor. PIO’s are 0-
3.3Vdc not 5 volt tolerant.
Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 8 -
3.2. Configuration
Command Mode (vs Normal Data mode)- Upon powerup, the device will be in data
mode. To enter command mode, The characters “$$$” must be sent. The device will
respond with “CMD”. To exit command mode, send “exit<cr>”. The device will respond
with “EXIT”. Parameters, such as the SSid, Channel, IP address, Serial Port settings,
and all other settings can be viewed and configured. While in command mode, the
device will accept ASCII bytes as commands.
When passing ASCII characters through UART interface of the RN-111b, The
communications settings of your device or terminal should match the settings of the RN-
111b which default to 9600bps, 8 bits, No Parity, 1 stop bit, and hardware flow control
disabled.
Run your favorite terminal emulator, Roving Networks provides a free one, Teraterm, at
http://www.rovingnetworks.com/support/teraterm.zip.
Type “$$$” on your emulator. You should see “CMD returned to you. This will verify
that your cable and comm. settings are correct. Most valid commands will return an
AOK”, response, and invalid ones will return an Error description.
Commands that are not recognized will return a “ERROR: Unknown Cmd.
To exit command mode, type “exit“<cr>.
NOTE1 :
You can enter command mode locally over the serial port at any time when not
connected, and also when connected if the appropriate settings are enabled.
3.3. LED indications
Condition GREEN YELLOW RED LED
ON Solid CONNECTED over TCP NOT ASSOCIATED
Fast BLink NO IP ADDRESS
WiFI Receive
Packet
Slow Blink IP ADDRESS OK ASSOCIATED, but no Internet
OFF NO power ASSOCIATED and Internet OK
Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 9 -
4. WiFLY Command Reference
The commands begin with a keyword, and have optional additional parameters, generally
space delimited. Commands and options are case sensitive. hex input data can be upper
or lower case. String text data, such as SSID, are also case sensitive.
The first keyword is fully decoded, and the optional parameters can be short-formed.
For example,
set uart baudrate 115200 is valid,
set uart b 115200 is also valid,
set u b 115200 is also valid, however,
s uart baudrate 115200 is NOT valid.
ENTERING VALUES
Numbers can be entered as either decimal, (like 115200 above ) or HEX. To enter HEX,
use 0x<value>. For example, the HEX value FF would be entered as 0xFF.
Commands fall into 5 general categories:
SET COMMANDS -Take effect immediately, permanently (save command issued).
GET COMMANDS -Retrieve the permanently stored information for display to user.
STATUS COMMANDS -See what is going on with the interface, IP status, etc.
ACTION COMMANDS- Perform action such as scan, connect, disconnect, etc.
FILE IO COMMANDS - Upgrade, load and save configuration, delete files, etc.
IMPORTANT: HOW CONFIGURATION WORKS
When the system boots, all configuration data is loaded into RAM variables from the file
called “config”. The set commands actually only modify the RAM copy of variables in the
system. This allows temporary change of parameters “on the fly” to test features,
minimizes power usage and saves on flash re-write cycles.
Once all configuration is complete, the user should be sure to use the save command to
store the configuration data, otherwise it will not take effect upon reboot or reset.
Multiple configurations can be stored by using the save <filename> command, and
these configurations can be loaded using the load <filename> command. These files can
be upload to remote FTP site, such that once a desired configuration is created, it can
quickly be copied into additional devices (cloning).

RN-111B-R

Mfr. #:
Manufacturer:
Microchip Technology
Description:
WiFi Modules (802.11) WiFly 802.11b WLAN with RP-SMA Jack
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet