Serial Port Baud Rate Setting; Communication Protocol Type Configuration - Ebyte EA01-D Instruction Manual

Iot serial module
Table of Contents

Advertisement

3.4 Serial port baud rate settings
AT+UARTSET =<rate>,<store>/r/n
(1) This command is similar to the function of remote "at + NATSPEED", which is used to set the baud rate of at serial port and other
parameters. The default value is 9600 baud rate. When the store is 0, the baud rate will take effect dynamically. When the store is 1, the set
baud rate will be divided by 2400 and saved in flash, and will be automatically restarted。
(2) Description of parameter configuration
<rate>: The baud rate, the highest 115200 currently supported.
<store>: whether to save; default to not to save, that is, to dynamically switch the baud rate; If it is set to 1, it is saved in NV and
restarted immediately; If it is set to 0, it means that the dynamic effect is valid and the baud rate of the other party needs to be switched
synchronously.

3.5 Communication protocol type configuration

AT+PDUTYPE=<pdu_type>/r/n
(1) Currently, MQTT, COAP, and TCP/UDP are supported. Currently, the module supports two sockets, and allows TCP/UDP and one of MQTT,
COAP and Ebyte Cloud to communicate at the same time. TCP/ODP always opens socket0, and one of MQTT and COAP opens socket1.
(2) Configuration Parameter Description
<pdu_type>,0 indicates TCP or UDP based protocol, 1 indicates MQTT based protocol, and 2 indicates COAP based
protocol. 3 indicates Ebyte cloud protocol.
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
AT Command
AT Command
AT+PDUTYPE/r/n
Response
OK
Response
OK
type:<pdu_type>
OK
8

Advertisement

Table of Contents
loading

Table of Contents