Service Mode; Tcp Server; Tcp Client; Udp - Ebyte NA611 User Manual

Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
Application Payload
For example:AA FE 55 00 00 03 11 22 33
content is: 0x11 0x22 0x33
Use the command AT+MODE=x.2,x to set the second bit to configure the device to work in protocol transmission
mode.

4.3 Service mode

The service mode refers to the network protocol supported by the device and the role of the device under the
network protocol, which is often referred to as server (server) and client (client). Here, UDP, MQTT, HTTP client,
WebSocket, etc. are all included To this mode. It should be noted that the service mode has no effect on the role of
WiFi-Direct (P2P). The service model includes the following.

4.3.1 TCP Server

Let the device work as a TCP server. Use command: AT+MODE=x,x,1 Set the third bit to configure the device to
work in TCP server mode.

4.3.2 TCP Client

Let the device work as a TCP client. Use command: AT+MODE=x,x,2 Set the third bit to configure the device to
work in TCP client mode.

4.3.3 UDP

There is no distinction between server and client in UDP mode. Use the command: AT+MODE=x,x,3 to set the third
bit to configure the device to work in UDP mode. In addition, there is no concept of connection in UDP mode, so the
S_LINK pin will not be operated in the status indication.

4.3.4 MQTT

I
n the MQTT mode, the device supports Alibaba Cloud, Baidu Cloud, OneNet and other IoT platforms. Enter the
service parameters created on the platform into the device to communicate.
(1) Alibaba Cloud
Based on the network communication of Alibaba Cloud platform, you need to log in to Alibaba Cloud to obtain
relevant parameters, which mainly include product secret key, device name, client ID and other information. For details,
please refer to Chapter 7 Alibaba Cloud Configuration Tutorial.
(2) Baidu Cloud
For network communication based on Baidu Cloud Platform, you need to log in to Baidu Cloud to obtain relevant
parameters, which mainly include information such as device name, user name, and password. For details, please refer to
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
In protocol mode, the 3 bytes of data received from Socket0, the
【RS485⇌ WiFi】NA611 User Manual
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Na611a

Table of Contents