Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 10 -
4.1. SET COMMANDS
These commands begin with “set”. There are 6 major categories.
1. COMM- communication and data transfer, timers, matching chars.
2.
IP -IP settings.
3.
SYS - system settings such as sleep and wake timers.
4.
TIME - timer server settings.
5.
UART - serial port settings such as baudrate and parity.
6.
WLAN - wireless interface settings, such as ssid, chan, and security options.
COMM PARAMETERS – TCP connection status strings
set comm close <string> sets the string to send locally when the port is closed.
If no string is desired, use the command set comm close (without the parameter)
set comm open <string> sets the string to send locally when the port is opened.
set comm remote <string> sets the number of bytes to receive before forwarding.
COMM PARAMETERS – receive data forwarding
set comm idle <secs> sets the idle disconnect timer in seconds, causes
disconnect if no transmit or receive data is seen.
set comm match <value> sets the decimal value of the matching character to
search for to initiate forwarding. 0 disables.
set comm size <value> sets the number of bytes to receive before forwarding
0-1 forwards immediately. maximum value = 255 bytes.
set comm time <num *10ms> sets the number of 10 millisecond intervals after a
byte is received to begin forwarding data. 0 disables.
IP PARAMETERS
set ip address <addr> sets the IP address. Numbers are SPACE delimited.
Example : “set ip a 10 10 10 2
set ip dchp <0,1> Enable or disable DHCP client.
set ip gateway <addr> sets the gateway address.
set ip host <addr> sets the remote host address.
set ip backup <addr> sets a secondary host address.
set ip localport <num> sets the local port number.
set ip netmask <value> sets the netmask.
Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 11 -
set ip protocol <0,1,2,3> sets the protocol. 0=UDP, 1=TCP client, 2=TCP server,
3=UDP server.
set ip remote <value> sets the remote host port number.
set ip ftp <addr> sets the ftp server address.
set ip uport <num> sets the ftp server port number.
SYSTEM PARAMETERS
set sys autoconn <secs> TCP mode: sets the auto-connect TCP timer. 0 disables.
set sys autosleep <num *10ms> UDP mode: sets the auto-sleep timer. 0 disables.
set sys iofunc <value> sets the IO port alternate functions. Bit-mapped value.
set sys mask <mask> sets the IO port direction mask. Bit-mapped value.
set sys printlvl <value> sets numerous print functions. Bit-mapped value.
set sys output <value> <mask> sets output PIO pins to HIGH or LOW.
Bit-mapped value. Optional mask only sets a subset of pins.
set sys sleep <secs> sets the sleep timer. 0 disables.
set sys trigger <value> sets the sensor input to wake on (1-4). 0 disables.
set sys wake <secs> sets the auto wake timer. 0 disables.
TIME SERVER PARAMETERS
set time address <addr> sets the time server address. This is also the server
address for UDP packet mode.
set time port <num> sets the time server port number.
set time enable <0,1,2> Enable or disable time server. 1= get time on powerup.
2=get time continuously every 60 seconds.
UART PARAMETERS
set uart parity <n,e,o> sets the UART parity.
Example : “set u p e” sets even parity
set uart baud <rate> {1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200,
230400, 460800, 921600 }.
Example : “set u b 9600” sets the baudrate to 9600 baud.
set uart raw <rate> sets a RAW uart value. Used to set non-standard rates.
Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 12 -
Example : “set u r 760” sets the baudrate to 7200 baud.
set uart flow <0,1> sets the flow control mode. 0=off, 1= hardware RTS/CTS.
set uart tx <0, 1> Disables or enables the TX pin= PIO0 of the UART. Disable will
set PIO0 to an INPUT with weak pulldown.
WLAN PARAMETERS
set wlan auth <value> sets the authentication level. 0= disabled, 1=WPA-PSK,
2=WPA2-PSK, 3=WEP-128.
set wlan channel <value> sets the wlan channel, 1-13 is the valid range for a fixed
channel. If 0 is set, then a probe scan is performed, using the ssid,
for all the channels set in the channel mask.
set wlan key <num> <value> sets the WEP key. key must be
EXACTLY 13 bytes (26 ASCII chars). Data is expected in HEX format, “0x” should NOT
be used here.
Example : “set w k 112233445566778899AABBCCDD”
Hex digits > 9 can be either upper or lower case.
set wlan mask <value> sets the wlan channel mask, bit-mapped value. Bit 0 = ch 1.
set wlan num <value> sets the default WEP key to use. 1-4 is the valid range.
Example : “set w n 2” sets the default key to 2.
set wlan phrase <string> sets the passphrase for WPA security modes. 1-64 chars.
The passphrase can be alpha and numeric, and is used along with the ssid to generate a
unique 32 byte Pre-shared key (PSK), which is then hashed into a 256 bit number.
However, if exactly 64 chars are entered, it is assumed that this entry is already an
ASCII HEX representation of the 32 byte PSK and no such processing is done.
Example : “set w p password” sets the phrase.
set wlan ssid <string> sets the wlan ssid to associate with. 1-32 chars.
set wlan rate <value> sets the preferred wlan data rate. Default = 1. Valid settings
are: 1 = 1MBit, 2 = 2Mbit, 4=5Mbit, 8 = 11Mbit. Note that the
effective range will be reduced as the datarate is increased.
set wlan window <value> sets the TCP max. buffer size. Default is 1460 bytes.

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