CLI user manual
Page10
3.3 Clear serial incorrect information
Please check table 3.3.1
Table 3.3.1
Operating
Command
Description
Clear serial incorrect
information
clear err<port_list>
<port_list>
: Choice the port number of serial
1
、
2
、
3
、
4
、
5
、
6
、
7
、
8 or all optional
3.4 Serial parameter configuration
Please check table 3.4.1
Table 3.4.1
Operating
Command
Description
Configuration serial
parameter
config
<Baudrate><pari
ty>
<Databits><stop
bits>
<
Baudrate
>
:
{300,600,1200,2400,4800,9600,
19200,38400,57600,115200}
<parity>
:
0 --None
1 --Odd
2 --Even
3 --Mark
4 --Space
<Databits>
:
0 --5bits
1 --6bits
2 --7bits
3 --8bits
<stopbits>
:
0 --1bit
1 --2bits
Configuration serial
data frames
Set packs_bytes
<Packs_bytes>
<Packs_bytes>
: data frames range1-1460(byte)
Configuration serial
character time
space
Set packs_time
<Packs_time>
<Packs_time>
:
Character time space 1~500
ms
Configuration serial
working mode
Set Com_mode
<Com_mode >
<
Com_mode
>
:
working mode 0 RS-232
1 RS-422
2 RS-485
Example:
Configuration COM2 parameter, baud rate: 300bps, parity: ODD, data bits: 6 bits, stop bits: 2bits,
enter the bold type command as follows and enter return key:
Serial(COM2)#
config 300 1 1 1
[OK]
Example:
Configuration data frames is 300 bytes, enter the bold type command as follows and enter return key:
Serial(COM2)#
set Packs_bytes 300
[OK]
Example:
Configuration character time space: 100ms, enter the bold type command as follows and enter return
key:
Serial(COM2)#
set Packs_time 100
[OK]
Example:
Configuration working mode is RS422, enter the bold type command as follows and enter return key:
Serial(COM2)#
set Com_mode 2
[OK]