WiSnap User Manual 2.21 04112011-JF
Page
21
of
66
5.10
UART Parameters
set UART baud <rate>
set the UART baud rate. Valid settings are {2400, 4800, 9600,
19200, 38400, 57600, 115200, 230400}.
Example : “set u b 9600” sets the baud rate to 9600 baud.
NOTE: the RS-232 interface on the WiSnap does not work below
2400 or above 230400 baud.
set UART instant <rate>
This immediately changes the baudrate. This is useful when testing
baudrate settings, or switching baudrate “on the fly” remotely while
connected over TCP. This setting does not affect configuration.
Returns the AOK response, and then this command will exit
command mode.
set UART raw <rate>
sets a RAW UART value. Used to set non-standard rates. The lowest
possible baud rate is 2400.
Example : “set u r 7200” sets the baud rate to 7200 baud.
set UART flow <0,1>
sets the flow control mode. Default=0=off, 1= hardware RTS/CTS.
NOTE: once flow control is enabled, it is important to properly
Drive the CTS pin (active LOW enabled)
If CTS is HIGH, data
will NOT be sent out the UART, and further configuration in
command mode will be problematic as no response will be received.
set UART mode <value>
sets the UART mode register. This is a bit-mapped value.
Bit Position Function
0
NOECHO - disables echo of RX data while in
command mode
1
DATA TRIGGER makes connection on RX data
2
RAW mode (TCP stack disabled)
3
Enable Sleep on RX BREAK signal
NOTE:
When a TCP connection is closed, currently if there is RX data in the UART receiver, it is held
until:
1)
more chars come in, in which case it will get flushed, or
2)
no chars come in and a new connection is made, then the chars will get forwarded.
If this setting is enabled (set UART mode 0x10), any unsent RX data is still in the buffer is flushed
when a connection is closed.
set UART tx <0, 1>
Disables or enables the TX pin= PIO10 of the UART. Disable will set
PIO10 to an INPUT with weak pulldown.
NOTE: Due to an issue in the UART hardware, the UART does not support even or odd
parity.