User manual

WiSnap User Manual 4.41 10202014-ML
Page 21
Raw Baud Rate
Comment
458333
This is 460800
500000
Raw baud rate
550000
Raw baud rate
611111
Raw baud rate
687599
Raw baud rate
785714
Raw baud rate
916667
This is 921600
1100000
Raw baud rate
Example: set u r 7200 sets the baud rate to 7200 baud.
set uart flow <value> - sets the flow control mode and parity, where <value> is a hex number. The setting is in the upper
nibble of the hardware flow control setting. The default is flow control disabled with parity set to none/no
parity.
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.
Example:
- set uart flow 0x21 Even parity with flow control
- set uart flow 0x20 Even parity without flow control
- set uart flow 0x31 Odd parity with flow control
- set uart flow 0x30 Odd parity without flow control
set uart mode <mask> - sets the UART mode register, where <mask> is a hex number masking a bit-mapped value as shown
below.
Bit Position
Function
0
NOECHO disables echo of RX data while in command mode
1
DATA TRIGGER makes connection on RX data
2
Reserved
3
Enable Sleep on RX BREAK signal
4
UART RX data buffer. See note below
5
The version string <x.xx> \r\n is replaced with the replace
character in the command prompt ($ by default)
NOTE: With firmware version 2.27 and higher, bit 4s functionality has changed. When a TCP connection is closed, if
there is RX data in the UART receiver, it is flushed by default.
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.
Example: set uart mode 0x10 - Enable the UART data buffer
set uart tx <0, 1> - disables or enables the UARTs TX pin (GPIO10), where <value> is 1 or 0. Disabling the pin (<value> = 0) sets
GPIO10 as an input with a weak pull down.
NOTE: Firmware version 2.36/2.45 and higher supports parity with the
set uart flow command.
5.11 WLAN Parameters