User manual

WiFly GSX/EZX
www.rovingnetworks.com WiFly-RN-UM 11/9/2011
809 University Avenue Los Gatos, CA 95032 Tel (408) 395-6539 info@RovingNetworks.com
~ 40 ~
set comm time <value> sets the flush timer, this is used to make sure that any partial data sitting the RX
buffer if no additional data is seen for “value” milliseconds. For example set comm time 1000 would wait
for 1 second after no data was sent.
When sending more than a few hundred thousand bytes in a single transaction you should enable hardware
flow control. Your hardware will need to actively monitor CTS.
Flow control is not enabled by default. Flow control is set using with the following command.
set uart flow 1
It is possible to operate higher baudrates (greater than 115K) without flow control if packets are uniform
and an application protocol is used to ensure that each packet 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 whenever large, contiguous quantities
of data are being written to the UART to guarantee no data is lost.
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 RN-131 = 0x20f0, which has GPIO 13, 7, 6, 5, 4 as Outputs.
The default mask for RN-171 =0x21f0, which sets
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 power up) 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.
NOTE: To set the GPIOs as inputs or outputs instantly, use the set sys mask 0xABCD 1 command. This
does not require a reboot.