SERMODE [handle [baudrate parity databits stop bits]]
handle - Device handle for a serial port
baudrate - Baud rate for specified serial port
parity - Parity bit settings for specified serial port:
d - Default parity
n - No parity
e - Even parity
o - Odd parity
m - Mark parity
s - Space parity
databits - Data bits for specified serial port
stopbits - Stop bits for specified serial port
Note:
1. The 'handle' parameter is the device handle of the desired serial port.
The 'DH' command can be used to retrieve this information.
2. The 'stopbits' parameter supports the following settings:
0 (0 stop bits - default setting)
1 (1 stop bit)
2 (2 stop bits)
15 (1.5 stop bits)
All other settings are invalid.
3. The 'baudrate' parameter supports the following settings:
50, 75, 110, 150, 300, 600, 1200, 1800, 2000, 2400, 3600, 4800,
7200, 9600(default), 19200, 38400, 57600, 115200, 230400, 460800
All other values will be converted to the next highest setting.
4. The 'databits' parameter supports the following settings:
4
7
8 (default)
All other settings are invalid.
5. Parity attributes are mutually exclusive.
Examples:
* To display the settings for all serial port devices:
Shell> sermode
4F06B08 - (115200, N, 8, 1)
4F05F88 - (115200, N, 8, 1)
* To display the settings for the serial port device whose handle is 0x6B:
Shell> sermode 6B
4F06B08 - (115200, N, 8, 1)
* To configure the serial port settings for handle 0x6B to 9600bps, even
parity, 8 data bits, and 1 stop bit:
Shell> sermode 6B 9600 e 8 1
sermode: Mode set on handle 04F06B08
沒有留言:
張貼留言