Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 16 -
pullup to 1.2VDC may need be used if the circuit has an impedance (due to leakage current)
of less than 5Mohms ( 500mv / 100nA ). SENS1-4 pins that are not used should be left
unconnected.
5.2. Wake on UART
When the module is in Sleep mode, the UART itself is disabled. However, wake on UART
can be accomplished by connecting the SENS1 pin to the RX data pin.
To enable or disable this function, use: set sys trig 1.
It should be noted that the first byte sent into the module will likely be lost, so the designer
should take care to send a preamble byte to wake up the module before sending valid data
bytes.
5.3. Uart Receiver, RTS/CTS Hardware Flow Control
The UART receive buffer is approx. 1024 bytes, and at lower baudrates (9600, 19200) the
system can process data into the device without need for flow control.
If constant streaming of data into RX on the device is required, care should be taken to set the
comm parameters to optimize the performance. If data has a termination char, this can be
used. Also, if data has a particular frame size, this can be used.
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 = 255 bytes.
The comm size is automatically set whenever the baudrate is set, but should be modified if
needed.
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 loss
and retries inherent in wireless networks, flow control is usually required to guarantee no data
is lost.
GPIO 2 and 3 implement UART hardware flow control if enabled.
By default flow control is disabled. To enable hardware flow contol, use
set uart flow 1.
5.4. Setting PIO directions, Disabling LED drivers
The table below shows the usage of the PIO pins and their default values:
Use the command: s
et sys mask <hex val>
to enable or disable certain pins as outputs.