User manual

WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 7/16/2010
809 University Avenue Los Gatos, CA 95032 Tel (408) 395-6539 info@RovingNetworks.com
~ 29 ~
The table below shows the usage of the GPIO pins with their default state and functionality.
Bit
Position
13 12 11 10 9 8 7 6 5 4 3 2 1 0
Signal
Name
GPIO-13
UART
RTS
GPIO-12
UART
CTS
GPIO-11
UART-
RX
GPIO-10
UART-
TX
GPIO9 GPIO8 GPIO7 GPIO6 GPIO5 GPIO4 N/A N/A N/A N/A
Default
State
Output Input Input Output Input Output Output Output Output Output N/A N/A N/A N/A
Default
Function
Goes HIGH on POWERUP, LOW once system is READY.
If HW Flow control enabled, toggles HIGH to indicate RX
buffer full
Throttles transmitter if HW flow control is enabled.
LOW enables transmitter, HIGH disable.
UART RX
UART TX
ADHOC MODE & FACTORY RESET
NOT USED
BLUE LED
RED LED
YELLOW LED
GREEN LED
10.5.1. Setting the alternate GPIO functions
The defaults for GPIO 4 5, 6 is to control the LED functionality. This default functionality can be
overridden to allow user programmable IO or alternate IO functionality by using the set sys iofunc
<value> command. Value is entered as a hex number.
The hex value represents a bit mask that controls each bit in the <value> represents a particular GPIO pin.
If a bit is 0, then that GPIO is driven/read by the firmware per the default function.
The IO function <value> is encoded as such:
Bit IO DIRECTION
Function
0 GPIO-4 output Disable LED function so IO can be used as GPIO
1 GPIO-5 output Disable LED function so IO can be used as GPIO
2 GPIO-6 output Disable LED function so IO can be used as GPIO
3 Not Used
4 GPIO-4 output HIGH once associated/authenticated and have IP address.
5 GPIO-5 input Set HIGH to trigger TCP connection, LOW to disconnect.
6 GPIO-6 output HIGH when connected over TCP, LOW when disconnected.