4G_2G DTU Products Function
- 38 -
2.4.2.14.
AT+Z
◼
Function: Hard restart.
◼
Format:
AT+Z<CR>
+ok<CR><LF><CR><LF>
The IO control state is initialized.
2.4.2.15.
AT+UART
◼
Function: Set/query the serial port operation, and the settings will take effect after reset.
◼
Format:
◆
Query Operation:
AT+UART=<id><CR>
+ok=<id,baudrate,data_bits,stop_bit,parity,flowctrl><CR><LF><CR><LF>
◆
Set Operation:
AT+UART=<id,baudrate,data_bits,stop_bit,parity,flowctrl><CR>
+ok<CR><LF><CR><LF>
◼
Parameter:
◆
id
:
Serial port number
⚫
1: Port 1
⚫
2: Port 2 (G10, G11, G12 support)
◆
baudrate: Baud rate, default
【
115200
】。
⚫
600, 1200,2400,4800,9600,19200,38400,57600,115200,230400,460800
◆
data_bits: Date bit, default
【
8
】
⚫
7,8
◆
stop_bits: Stop bit, default
【
1
】
⚫
1,2
◆
parity: Check bit, default
【
NONE
】
⚫
NONE
⚫
EVEN
⚫
ODD
◆
flowctrl: Hardware flow control (CTSRTS), only serial port 1 supports hard flow control,
default
【
NFC
】
⚫
NFC: No hardware flow control
⚫
FC: Hardware flow control (EG1X, EG43 don
’
t support)
⚫
HD: Half-duplex mode for RS485.
2.4.2.16.
AT+UARTTM
◼
Function: Set/Query the Two-Frame Time Interval When the Serial Port Receives Data.
◼
Format:
◆
Query Operation:
AT+UARTTM=<id><CR>
+ok=<id><interval><CR><LF><CR><LF>
◆
Set Operation:
AT+UARTTM=<id><interval><CR>
+ok<CR><LF><CR><LF>
◼
Parameter:
◆
id
:
Serial port number
⚫
1: Port 1
⚫
2: Port 2 (G10, G11, G12 support)
◆
interval: Serial port division interval, default
【
200
】
ms, range 10~1000ms
2.4.2.17.
AT+MODBUS
◼
Function: Set/query Modbus TCP to Modbus RTU function.
◼
Format: