5.5.1 Set UART Baud Rate or Set Baud Rate

Table 5-69. Format
Firmware Version 1.0Firmware Version 1.2 and Later
SB,<hex8>[,<00-01>,<00-03>,<00,01>]

SBR,<hex8>[,<00-01>,<00-03>,<00,01>]

Note: All firmware version 1.0 syntax remains valid in version 1.2 and later.
This command sets the baud rate of the UART communication. The user can query the existing configuration values using the GB command. The input parameter is an 8-bit hex value in the range of 00-0B, representing baud rate from 2400-921600 (see the following table). The SB or SBR command also supports three optional parameters to configure the UART parity and stop bits.
  • The first parameter sets the desired baud rate.
  • The second parameter decides to Enable/Disable parity.
  • Use the third parameter to set the Parity mode (see Table 5-72).
  • The fourth parameter sets the desired stop bits.
Table 5-70. UART Baud Rate Settings

Setting

Baud Rate

00

921600

01

460800

02

230400

03

115200

04

57600

05

38400

06

28800

07

19200

08

14400

09

9600

0A

4800

0B

2400

The second parameter is used to enable or disable the parity check (see the following table).

Table 5-71. UART Parity Check Settings
SettingParity Check
00Disable
01Enable

The third parameter is used to select the Parity mode (see the following table), which works only after enabling the parity check.

Table 5-72. UART Parity Mode Settings
SettingMode
00Odd
02Even
Table 5-73. UART Stop Bits
SettingStop Bits
001
012
ItemFirmware Version 1.0 and LaterDescription
Default:03
Example:SB,07Set the UART baud rate to 19200
SB,04,01,02,00Set the UART baud rate to 57600
Enable the parity check as Even mode
Set the stop bits to 1 bit
Response:AOKSuccess
ErrSyntax error or invalid parameter
Note: The PDS stores these parameters. The parameters are effective after reboot.
ItemFirmware Version 1.2 and LaterDescription
Default:03
Example:SBR,07Set the UART baud rate to 19200
SBR,04,01,02,00Set the UART baud rate to 57600
Enable the parity check as Even mode
Set the stop bits to 1 bit
Response:AOKSuccess
ErrSyntax error or invalid parameter
Note: The PDS stores these parameters. The parameters are effective after reboot.