RN-131G
rn-131-um.pdf 5/14/2009
www.rovingnetworks.com
Phone 408-395-6539
- 6 -
4
WiFly Command Reference
4.1
Command Syntax
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 is also case sensitive.
The first command is fully decoded and must be complete. Other command parameters can be
shorted by using only the first character.
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.
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.
4.2
Command Organization
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.
NOTE: You must save the configuration or the module will load the previous settings upon reboot
or power up.
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 must save the settings using 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).