
Chapter 2 – AT Commands
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 24
Write Memory Locations (S-Registers) – Device
Configuration Commands
S-Registers refer to memory locations used for configuration. The SW commands are used to assign values to
various registers in the device's flash memory that are stored in nonvolatile memory.
SW20 Write UART Settings
Use SW20 to configure UART settings.
The S-Registers refer to memory locations used for configuration.
The S commands are used to assign values to various registers stored in nonvolatile memory.
Format: ATSW20,<Baud Rate>,<Parity>,<Stop Bits>,<Store>
Parameters:
Baud Rates: 1200 – 921.6Kbps, enter ASCII Value from the table below.
Note: Calculating and setting custom baud rates not listed in the table: as
long as the equation BAUDRATE *0.004096 produces an integer value, then
there will be 0% error in clocking for the baud rate.
Baud Rate ASCII Value Error
same 0 -
1200 5 1.73%
2400 10 1.73%
4800 20 1.73%
9600 39 -0.82%
19.2k 79 0.45%
38.4k 157 -0.18%
57.6k 236 0.03%
115.2k 472 0.03%
230.4k 944 0.03%
460.8k 1887 -0.02%
921.6k 3775 0.00%
Parity: 0 = NONE
1 = ODD
2 = EVEN
Stop Bits: 0 = ONE
1 = TWO
Store Parameters: 0 = Do Not Store
1 = Store Parameters in Flash
Factory Default: Baudrate = 39, Parity = 0, Stop Bits = 0 (8, N, 1 w/ hardware flow control
RTS/CTS enabled)
EXAMPLE:
TYPE: ATSW20,39,0,0,1<cr> // 9600 8,N,1 store in flash
REPLY: This unique Command does not reply with “OK” or “ERROR” because of
internal UART data processing limitations and response timing.
Read Using: ATSI,8
Notes:
• Flow control is always enabled, short CTS/RTS together if not used.
• The RTS line of the radio will be low when the radio is ready to receive data and high
when its buffer is full. When RTS goes high wait until it returns to low before sending
more data to avoid losing information.
• To reconfigure SocketWireless to the default factory settings, apply 3.3vdc on PIO#4
during initial power up for >2sec.
Comentarios a estos manuales