Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 13 -
4.2. GET COMMANDS
These commands begin with “get”. They represent the stored values as configured.
get com display comm. settings.
get ip display IP address and port number settings.
get mac display the device MAC address.
get port return current value of the PIO pins in hex format.
get sys display system settings, sleep, wake timers, etc.
get time display the time server UDP address and port number.
get wlan display the ssid, chan, and other wlan settings.
get uart display the UART settings.
In addition to the above, there are a few other useful commands available.
ver return the software release version
4.3. STATUS COMMANDS
These commands begin with “show”, and they return the current values of
variables in the system. In some cases, for example IP addresses, the current values
are received from the network, and may not match the stored values.
show net Displays current network status, association, authentication, etc.
show rssi Displays current last received signal strength.
show stats Displays current statistics, packet rx/tx counters, etc.
show time Displays number of seconds since last powerup or reboot
show i Displays IO pin levels status in this HEX format: 8ABC
Example: show I returns 8103 indicates pins 0, 1 and 9 high level.
show c Displays connection status in this HEX format: 8XYZ
Bit loc 13-16 9-12 7 6 5 4 0-3
function fixed channel DNS found DNS server Authen Assoc TCP status
value 8 1-13 1=resolved 1=
contacted
1= OK 1=OK 0= Idle,
1=Connected
3= NOIP
4= Connecting
Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 14 -
4.4. ACTION COMMANDS
$$$ Enter command mode Characters are PASSED until this exact
sequence is seen. If any bytes are seen before these chars, or after
these chars, in a 1 second window, command mode will not be
entered and these bytes will be passed on to other side.
close Disconnect a TCP connection.
exit Exit command mode. Exit command mode. “EXIT” will be displayed.
open TCP connect. The device will attempt to connect to the remote
stored address and port number.
Ping <g,ip adr> <num> Ping remote host. Default sends 1 packet. Optional <num>
sends <num> pings at 10 pings per second.
Use “Ping 0” to terminate a ping command.
ping g pings the gateway.
reboot Forces a reboot of the device (similar to power cycle)
scan <time> <active> Performs an active probe scan of access points on all 13
channels, and prints out MAC address, receive signal strength, and
SSID name. Optional <time> in ms to scan per channel, default =
200ms. If the <active> option is set = 0, passive scan is
performed. This command will cause the device to disassociate if it
is connected to an AP, and the user should reboot the device once
scanning is complete.
time Sends a UDP time server request packet out.
4.5. FILE IO COMMANDS
del <name> <num> deletes a file. Optional <num> will override the name and use
the sector number shown in the “ls” command.
load <name> reads in a new config file.
ls Displays the files in the system
save Saves the configuration to “config” (the default file).
save <name> Saves the configuration data to a new file name
set boot <file#> Makes file# the new boot image.
set factory 1 Loads factory defaults into the RAM configuration.
ftp get <name> Retrieves a file from the remote FTP server. If <name> not
specified, the default “wifly.img” filename is used.
ftp update <name> Deletes the backup image, retrieves new image and updates the
boot image.
Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 15 -
5. System timers and other features
There are 2 timers that can be used to put the module to sleep, and perform a wake up.
If the sleep timer is enabled, the module will automatically go into low power mode after
the timer counts down to 0. The countdown is disabled if the module has an IP
connection, or the module is in COMMAND mode. The timer is reset when characters
are received on the UART.
The sleep timer is set with : set sys sleep <time> time=decimal in seconds.
The wake timer is set with: set sys wake <time> time=decimal in seconds.
UDP sleep, and Connection timers
There is another timer than can be used to put the device to sleep.
In UDP protocol mode, the auto-conn timer is re-defined as an auto-sleep timer.
Upon the start of transmission of the first UDP data packet this timer will count down.
set sys autosleep <value> UDP mode: sets the auto-sleep timer. 0 disables
the timer is decremented every 10 milliseconds. Because the timer is asynchronous, the
actual value can vary by 10ms. Using a minimum value of 2 is recommended to ensure
that the UDP packet gets transmitted. For larger packets the value should be increased.
In TCP-Client mode, the auto-conn timer is used as a connect out timer. If set, the
device will automatically attempt a connection when the timer expires.
set sys autoconn <secs>
In TCP-Client AND TCP-Server mode, there is also a disconnect timer.
set comm idle <secs> sets the idle disconnect timer. This causes a disconnect if no
transmit or receive data is seen.
5.1. Wake on Sensor INPUTs
There are 4 inputs available to wake the module from sleep, SENS1-4.
To enable 1 of these inputs, use: set sys trigger <0,1,2,3,4>. 0 disables.
Only the SENS1 input has a resistor divider ( 24K in series with 10K to GROUND) which
allows this pin to tolerate 3V logic. The other sensor pins DO NOT, so care must be taken.
WARNING: Under no conditions should the voltage on any SENS2-8 input exceed
1.2VDC. Permanent damage to the module will result.
The SENS1-4 inputs have a small current source that is activated in sleep mode. This source
is approximately 100nA, and will cause the input to float up to about 1.2VDC. IF SENSE1
for example, is enabled, pulling the SENS1 pin to GROUND will wake the device. An open
drain FET is a good device to tie to the pin. The threshold is about 500mV. Additional

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