WiFly GSX
WiFlyGSX-um.pdf 11/11/2009
www.rovingnetworks.com
Phone 408-395-6539
-
7 -
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 any changes made 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. In
general, the IP, WLAN and UART settings need a save and reboot to take effect, since they operate
at boot up time. For example you only associate, set the channel and get your ip address once at
power up.
Most of the other commands take effect immediately like the COMM settings and timers. 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.