WiFly GSX
WiFlyGSX-um.pdf 11/11/2009
www.rovingnetworks.com
Phone 408-395-6539
-
22 -
set comm match <value>
sets the value of the packet terminator.
set comm size <value>
sets the number of bytes to receive before forwarding
0-1 forwards immediately. maximum value = 1460 bytes.
The
comm size
is automatically set whenever the baudrate is set, but can be modified.
Even at higher baudrates (115K and higher ) it is possible to operate without flow control if packets
are uniform and a protocol is used to ensure that data is delivered on the remote side before the
next packet is sent.
However, given the uncertainty of packet delays in a TCP/IP network and the affects of interference
and retries inherent in wireless networks, flow control is usually required to guarantee no data is
lost.
By default flow control is disabled. To enable hardware flow contol, use
set uart flow 1.
10.5
Setting GPIO direction, Alternate Functions and Disabling LEDs
The direction of the GPIO can be controlled with the GPIO mask using the
set sys mask <value>
command to set the GPIO pin direction. Value is entered as a hex number. If you need to set only
one bit in the mask you need to read, mask and set the value. Otherwise you will over write any
previous GPIO settings.
The hex value represents a bit mask that controls each pin where 1 = output and 0 = input. For
example,
set sys mask 0x0
sets all pins to input.
To set only GPIO 6 and 7 for example, you would enter
set sys mask 0xc0
The default mask for WiFly = 0x21f0, which has GPIO 13, 8,7,6,5,4 as Outputs.
GPIO 0-3 are used internally on the module.
GPIO 4,5,6 are LEDs.
GPIO 9 is reserved as the ARM factory reset/adhoc mode, (read at powerup) and otherwise general
purpose input detect pin.
GPIO 10, 11 are the Uart RX, TX pins and TX does not need to be masked as an output.
GPIO12 is CTS (input) if used.
GPIO13 is RTS (output) if used.
The
get sys
command will show the setting of the GPIO mask.
<2.09>
get sys
SleepTmr=0
WakeTmr=0
Trigger=0x1
Autoconn=0
IoFunc=0x0
IoMask=0x21f0
PrintLvl=0x1