Chengdu Ebyte Electronic Technology Co., Ltd.
E103-W03 _User Manual _EN_V1.1
Copyright ©2012–2022, Chengdu Ebyte Electronic Technology Co., Ltd
.
16
same
Packet
Data
Type
Registry
Package Data
CDEBYTE-REGISTER-PACK-STR
NTP time
NTP time zone offset
480 (unit: minute) Beijing time
AT+NTPTIME
Modbus
Modbus enable
0 (Modbus off)
AT+MODBUS
Static IP
IP address
192.168.1.2
AT+IPSTATIC
subnet mask
255.255.255.0
Gateway address
192.168.1.1
Server address
192.168.1.1
Chapter 6 Tutorial
This module has many functions, and it needs to configure relevant parameters before using it, and then it can work
normally.
In the following tutorials, the operations marked with * are mandatory, and please set according to your own needs when
using other modes. Please refer to Chapter 6 for specific AT commands.
6.1 Basic TCP/UDP data transmission
Why is it called basic TCP/UDP data transmission, because this kind of data transmission is based on the transport layer
under the TCP/IP protocol, which is the most basic data transmission layer. The data at this layer is not like MQTT,
HTTP and other protocols. Complex network packets. For detailed instructions on this piece, please study by yourself.
Both the AP role and the STA role support data transmission, provided that the mandatory module and the target are
under the same LAN. There are some differences between AP mode and STA mode. For example, AP mode supports
multi-connection protocol transmission. In AP mode, there is no need to set the remote IP address in advance. This
tutorial is based on the AT command of the serial port. The operations with * in each step are necessary operations, and
the operations without * are non-essential operations that can be omitted. After opening the serial port debugging
assistant, operate.
Data transmission is further divided into: data transmission with PC and data transmission with modules.
6.1.1 Communication with PC
6.1.1.1 Communication with PC's TCP server under AP role
Here is just an example, the other two communication in TCP mode also refer to this example (TCP server, UDP), just set
different modes by AT+MODE command.
1.
*
Enter AT command mode
+++
2.
*
Set module role: AP, transmission mode: transparent transmission, service mode: TCP server;