background image

Chengdu Ebyte Electronic Technology Co.,Ltd.

E103-W03 User Manual

Copyright ©2012–2021

Chengdu Ebyte Electronic Technology Co.,Ltd.

19

same

package data
type
Registration
package data

CDEBYTE-REGISTER-PACK-STR

NTP time

NTP timezone offset

480 (unit: minutes) Beijing time

AT+NTPTIME

Modbus

Modbus enabled

0

colse Modbus

AT+MODBUS

static IP

IP address

192.168.1.2

AT+IPSTATIC

subnet mask

255.255.255.0

gateway address

192.168.1.1

gateway address

192.168.1.1

6. Using the Tutorial

This module has many functions, you need to configure relevant parameters before using it, and then it can work
normally.
In the following tutorials, the operations added with * are the operations that must be performed. Please set them
according to your own needs when using other modes. Please refer to Chapter 6 for the specific AT command description

.

6.1 Basic TCP/UDP data transfer

Why is it called basic TCP/UDP data transmission, because this 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 carried out by protocols
such as MQTT and HTTP. complex network packets. Please study on your own for detailed instructions on this piece.
Both the AP role and the STA role support data transmission, provided that the required selection ensures that the module
and the target are in the same local area network. There are only some differences between AP mode and STA mode. For
example, AP mode supports multi-connection protocol transmission. In AP mode, it is not necessary 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 those without * are unnecessary 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 the PC's TCP server in the AP role
This is just an example. The other two communications in TCP mode also refer to this example (TCP server, UDP), and
you can set different modes through the AT+MODE command.
1. *Enter AT command mode
+++
2. *Set the module role: AP, transmission mode: transparent transmission, service mode: TCP server;
AT+MODE=1,1,1
3. Configure SSID related parameters (SSID is commonly known as WiFi name):

Summary of Contents for E103-W03

Page 1: ...E103 W03 Product Instruction Manual CC3220R 2 4GHz WiFi Serial Port Module...

Page 2: ...Fi Direct P2P mode 12 5 2 TRANSMISSION MODE 12 5 2 1 Transparent transmission 12 5 2 2 Protocol Transmission 13 5 3 SERVICE MODE 14 5 3 1 TCP server 14 5 3 2 TCP client 14 5 3 3 UDP 14 5 3 4 MQTT 14 5...

Page 3: ...with PC 19 6 1 2 Communication between modules 26 6 2 NETWORK COMMUNICATION 30 6 2 1MQTT 30 6 2 2HTTP Client 32 6 2 3WebSocket 33 6 3 PARAMETER CONFIGURATION 34 6 3 1 Serial AT command configuration...

Page 4: ...ction use modification or disclosure to third parties of this document or any part thereof without the express permission of EBYTE is strictly prohibited The information contained herein is provided a...

Page 5: ...11b g n protocol and complete TCP IP protocol stack supports STA AP network role supports multiple network working modes supports SmartConfig serial port transparent transmission power on transparent...

Page 6: ...cast transmission Support pin to restore default parameters Support modebus protocol conversion RTU and TCP Support static IPv4 address assignment Support scanning nearby AP information 2 Specificatio...

Page 7: ...iability 7 interface 1 27mm SMD 8 Supply voltage 2 3 3 6V DC Note Voltages higher than 3 6V will cause permanent damage to the module 9 communication level Max 3 6 It is recommended that the differenc...

Page 8: ...ure 40 85 Industrial grade 2 4 Electrical Characteristics Parameter Min Typical value Max Unit Storage temperature range 40 Normal temperature 85 Operating Voltage 2 3 3 3 3 6 V Any IO VIL VIH 0 5 0 6...

Page 9: ...10K is required to pull the pin level high Normal work is low 10 VCC Equipment power supply VDC 2 4V 3 6V above 300mA 14 GPIO31 IO General IO port 15 GPIO0 IO General IO port 18 GPIO30 IO General IO p...

Page 10: ...order to ensure the stable operation of the module the RF transmission power will be affected by factors such as the response speed of the LDO If there is a higher requirement for the communication di...

Page 11: ...d to be 010 For other modes please refer to the relevant development manual of CC3220R and select the mode by yourself 5 If there are high requirements for low power consumption it is recommended to c...

Page 12: ...is role the module does not provide connection but can only be connected to an Access Point or a router This module supports TCP server TCP client and UDP in the Station role and supports a maximum of...

Page 13: ...2 represents the discovery of Socket 2 link 0x03 represents the discovery of the Socket 3 link Data Application Payload For example AA FE 55 00 AA BB CC In protocol transmission mode send AA BB CC to...

Page 14: ...nd other IoT platforms in MQTT mode Enter the service parameters created on the platform into the module to communicate 5 3 4 1 Alibaba Cloud For network communication based on Alibaba Cloud platform...

Page 15: ...ion There are two ways to enter into the remote configuration when the module is in AP mode the PC is connected to the module when the module is in STA mode the PC and the module are connected to the...

Page 16: ...the baud rate of the transmitting end The specific amount to be reduced is limited by the influence of the connection distance and requires actual testing 5 8 Heartbeat package registration package H...

Page 17: ...GPIO12 pin will be set to low level after the parameters are restored successfully 5 12 Scan nearby AP information When the module works in STA mode you can use AT commands to scan the AP information...

Page 18: ...l name E103 W03WiFiDirectClient P2P target name E103 W03WiFiDirectGo P2P socket P2P port 4001 AT P2PSOCKET P2P address 192 168 1 1 STA connection parameters target SSID E103 W03 AT STACON encryption t...

Page 19: ...ls such as MQTT and HTTP complex network packets Please study on your own for detailed instructions on this piece Both the AP role and the STA role support data transmission provided that the required...

Page 20: ...module find the WiFi with the SSID WiFi hotspot name set in the second step called E103 W03 on the PC side and enter the secret connection 6 After the connection is successful query the local IP and l...

Page 21: ...th the PC s TCP client In order for the module to communicate with the PC in the STA role it is necessary to ensure that the PC and the module are in the same local area network Here the method of mob...

Page 22: ...will not be able to communicate fill in the remote IP address and port number refer to the command configure read SOCKET port IP address AT SOCKET 0 8000 192 168 1 12 4 Set the module role STA transmi...

Page 23: ...nical reasons so you need to pay attention 6 1 1 3 UDP protocol transmission under the AP role This example will demonstrate protocol transmission in AP mode 1 Set Role AP Transmission Mode Protocol T...

Page 24: ...UDP Assistant to establish UDP communication 5 Communication because it is a protocol transmission when sending data at the module side it is necessary to input data in accordance with the protocol tr...

Page 25: ...etween the module and the PC is completed Both AP and STA roles support TCP server TCP Client and UDP The specific combination method can be used in conjunction with these three tutorials It should be...

Page 26: ...based on WiFi Direct 6 1 2 1 TCP communication of AP STA between modules 1 Set the working mode set module A as AP role and module B as STA role It should be noted that in the TCP mode the service mod...

Page 27: ...ining STAs is the same For STA STA communication two modules need to be connected to the same router Here the SSID of the target AP is used as E103 W03 for demonstration STA1 configuration process Mod...

Page 28: ...remote IP AT SOCKET 0 4002 10 145 45 2 2 Configure the STA module Setting mode AT MODE 2 1 3 Set target SSID AT STACON E103 W03 2 12345678 Set the connection method AT CONTYPE 1 Set the local port AT...

Page 29: ...parameters see Configuration Read WiFi Direct P2P connection parameters for instructions AT P2PDEVINFO 20 1 E103 W03WiFiDirectGo E103 W03WiFiDirectClient 1 Query the socket local port and IP address...

Page 30: ...ud and OneNet The configuration process is as follows according to the platform you use go to register to obtain the relevant parameters and finally add them in the web page window or you can use AT c...

Page 31: ...nternet of Things Such as A1Ve0iJW6z1 iot as mqtt cn shanghai aliyuncs com 8 Port Ali IoT port Such as 1883 9 Subscription topic such as A1Ve0iJW6z1 MQTT_TEST user get 10 Publish topic such as A1Ve0iJ...

Page 32: ...lti protocol access 3 Device ID such as 511986588 4 Product ID such as 286258 5 Authentication information custom input when creating a device Such as ebyte 6 Address The domain name for accessing the...

Page 33: ...e serial port 192 168 4 10 8080 is the HTTP server address and port Custom protocol header The default is Connection keep alive which can be modified by the user If multiple commands are required add...

Page 34: ...ow the specification 6 3 2 UDP Remote Configuration During remote configuration it is necessary to ensure that the module and the PC are in the same local area network For the configuration method see...

Page 35: ...ge it is also necessary to ensure that the module and the PC are in the same local area network find the IP address corresponding to the module and enter the IP address on the browser The 192 168 1 10...

Page 36: ...al Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 36 6 4 Modbus usage After setting the working parameters according to the above chapters enter the AT command and open the modbus prot...

Page 37: ...a conversion and transmission If necessary please operate with actual controls 6 5 Static IP usage 1 Set the module to STA client mode AT MODE 2 1 2 2 Set static IP related parameters AT IPSTATIC 1 19...

Page 38: ...support cdebyte com Documents and RF Setting download link https www cdebyte com Thank you for using Ebyte products Please contact us with any questions or suggestions info cdebyte com Official hotli...

Reviews: