Serial Port Baud Rate Setting; Communication Protocol Type Configuration - Ebyte EA01-S User Manual

Nb-iot module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd
Note: You must also enter AT+WORKLOCK=0 after power-on again to enter deep sleep.

3.8 Serial port baud rate setting

AT command
AT+UARTSET =<rate>,<store>\r\n
(1) This command is used to set the baud rate parameters of the serial port. The default is 9600 baud rate. When store is
0, the baud rate takes effect dynamically. When store is 1, the baud rate is divided by 2400 and saved to flash. And will
automatically restart to take effect.
(2) Configuration parameter description:
<rate>: Baud rate, currently the highest support 115200.
<store>: Whether to save or not, the default is not to save, that is, the baud rate is dynamically switched; if it is set to 1,
it will be saved to NV and restarted immediately; if it is set to 0, it means dynamic effect, and the other party needs to
switch the baud rate synchronously rate.

3.9 Communication protocol type configuration

AT command
AT+PDUTYPE=<pdu_type>\r\n
AT+PDUTYPE\r\n
(1) Currently supports MQTT, COAP, TCP/UDP and Ebyte cloud. Currently, the module supports two sockets, while
allowing TCP/UDP communication and one of MQTT, COAP, and Ebyte cloud communication. TCP/UDP always opens
socket0, One of MQTT, COAP, and Ebyte opens socket1.
(2) Configuration parameter description:
<pdu_type>: 0 means based on TCP or UDP protocol, 1 means based on MQTT protocol, 2 means based on COAP
protocol, 3 means based on Ebyte cloud protocol.
Note: When you need to save after power-off, input AT+NRB command to save the parameters to the flash, and
automatically restart to take effect.
Copyright ©2012–2020,Chengdu Ebyte Electronic Technology Co., Ltd
.
Response
OK
Response
OK
type:<pdu_type>
OK
EA01-S User Manual
9

Advertisement

Table of Contents
loading

Table of Contents