中山市博安通通信技术有限公司
ZHONGSHAN B&T TECHNOLOGYCo., Ltd
Page 5 of 34
Error
Code
1: failed to restore the default settings.
2: failed to restore the default image.
Example
# ATSY
[ATSY] OK
AT COMMAND READY
2.8
ATSU sets serial port parameters
ATSU=<baudrate>,<databits>,<stopbits>,<parity>,<flowcontrol>,<configmode>
Description Set serial port parameters
Response Success
[ATSU] OK
Fail
[ATSU] ERROR:<error_code>
Parameter baudrate:Baud rate
2400, 4800, 9600, 19200, 38400(default),57600, 115200, 921600, 1152000
databits:data bits
5: 5 bit data
6: 6 bit data
7: 7 bit data
8: 8 bit data (default)
stopbits
:
stop bit
1: 1 bit stop (default)
2: 2 bit stop
Parity:check bit
0: None parity (default)
1: Odd parity
2: Even parity
Flowcontrol:Flow Control
0: disable flowcontrol (default)
1: enable RTS and CTS
Configmode:Effective method
0: The configuration takes effect immediately but is not saved to flash
1: The configuration is saved to the flash and takes effect immediately
2: Save the configuration to the flash and restart it to take effect
Error
Code
1: Parameters Format Error
2: Parameter error
Example # ATSU=38400,8,1,0,0,2
[ATSU] OK