Ebyte E103-W03 Product Instruction Manual
Ebyte E103-W03 Product Instruction Manual

Ebyte E103-W03 Product Instruction Manual

Cc3220r 2.4ghz wifi serial port module
Hide thumbs Also See for E103-W03:

Advertisement

Quick Links

E103-W03 Product Instruction Manual
CC3220R 2.4GHz WiFi Serial Port Module

Advertisement

Table of Contents
loading

Summary of Contents for Ebyte E103-W03

  • Page 1 E103-W03 Product Instruction Manual CC3220R 2.4GHz WiFi Serial Port Module...
  • Page 2: Table Of Contents

    5.11 P ............................17 IN RESTORE FACTORY PARAMETERS 5.12 S ..............................17 CAN NEARBY INFORMATION 5.13 D ..................................17 EFAULT PARAMETERS 6. USING THE TUTORIAL ........................................19 6.1 B TCP/UDP ..............................19 ASIC DATA TRANSFER Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 3 6.3.1 Serial AT command configuration ............................34 6.3.2 UDP Remote Configuration ..............................34 6.3.3 Web page configuration ................................35 6.4 M ....................................36 ODBUS USAGE 6.5 S ....................................37 TATIC USAGE 7.REVISION HISTORY........................................... 38 8. ABOUT US .............................................. 38 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 4: Disclaimer

    E103-W03 User Manual Disclaimer EBYTE reserves all rights to this document and the information contained herein. Products, names, logos and designs described herein may in whole or in part be subject to intellectual property rights. Reproduction, use, modification or disclosure to third parties of this document or any part thereof without the express permission of EBYTE is strictly prohibited.
  • Page 5: Overview

    1. Overview 1.1 Introduction E103-W03 is an ultra-low power serial port to Wi-Fi module, small size SMD package, PCB antenna, working in the 2.4~2.484GHz frequency band. The module can use the serial port to send and receive data, which reduces the threshold for wireless applications.
  • Page 6: Specifications

    Operating temperature(℃) Industrial grade 2.2 Working parameters performance Main parameters Remark Typical value Operating Voltage(V) Recommended 3.3V power supply communication level(V) Operating temperature(℃) Industrial grade design Working frequency(Hz) 2.412 2.442G 2.472 2.4G frequency band Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 7: Electrical Parameters

    Antenna form 50Ω characteristic impedance, can be changed by yourself Socket Operating Industrial grade (chip range, please modify according to crystal -40 ~ +85℃ temperature parameters) Working 10% ~ 90% Relative humidity, non-condensing humidity Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 8: Electrical Characteristics

    2.4 Electrical Characteristics Parameter Typical value Unit Normal Storage temperature range ℃ temperature Operating Voltage VIL/VIH -0.5/0.65VDD 0.35VDD/VDD+0.5 Any IO VOL/VOH N/2.4 0.4/N IMAX 3. Mechanical Dimensions and Pin Definitions Definition Function and usage instructions Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 9 Factory reset pin, active low. Stay low for 3 seconds or more at GPIO12 power-up. No need to reboot again. GPIO13 WAKEUP wakeup pin GPIO14 General IO port GPIO15 General IO port GPIO16 General IO port Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 10: Recommended Wiring Diagram

    LDO with a power supply capacity greater than 600mA. powered by. 2. The RXD/TXD of E103-W03 is connected to the MCU_TXD/MCU_RXD of the external MCU respectively. 3. When powering on, the SOP1 pin needs to be connected to a 10K pull-up resistor, and SOP0 and SOP2 are connected to a pull-down resistor (the module has already connected SOP0 and SOP2 to the pull-down, so it will not be Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 11 IO port of the microcontroller. It only needs to pull the module high at the moment of power-on, and pull SOP1 low after the module works normally. At this time, the sleep current can be reduced by about 3.3uA when the power consumption is low. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 12: Function Description

    5. Function Description The working mode of this module is divided into three levels: working role; transmission mode; service category. From the role of the WiFi layer, it can be divided into Access Point, commonly known as AP access point, Station, commonly known as station, and WiFI-Direct, also known as P2P or WiFi direct connection;...
  • Page 13: Protocol Transmission

    For example: AA FE 55 00 00 03 11 22 33 In protocol mode, the 3-byte data received from Socket0, the content is: 0x11 0x22 0x33 Use the command AT+MODE=x.2,x to set the second bit to configure the module to work in the protocol transmission mode. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 14: Service Mode

    You don't need to care about the complex HTTP protocol layer. For details, see Chapter 6 HTTP Client Configuration Tutorial. 5.3.6 WebSocket The traditional HTTP transmission protocol is based on access and response. In this way, the server is always passive and Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 15: Parameter Configuration

    The application of the WebSocket function allows the E103-W03 module to pass the serial port. Real-time interaction with the web page saves the GET and POST request process initiated by the HTTP client during multiple interactions, improves the response speed, and the module side can actively push data to the web page.
  • Page 16: Low Power Consumption

    3. Only the TCP server, TCP client, UDP, MQTT, WebSocket and P2P modes support the Modbus protocol, but the HTTP client does not. The reason is that because the HTTP client is a short-connection communication method, the server cannot actively initiate data exchange. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 17: Static Ip

    4. A maximum of 30 AP information can be scanned in a single time. 5.13 Default parameters Parameter parameter name parameter value Related Instructions category baud rate 115200 digit serial port AT+UART stop bit parity None 40(ms) serial port timeout Serial frame length 1000 working frequency 2.4G Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 18 0(close) Heartbeat heartbeat type AT+HEARTBT 5(Unit: second) parameters sockets heartbeat are the timeout same 1(string) Heartbeat data type Heartbeat data CDEBYTE-E103-W03-STRHT 0(close) Registration Registration AT+REGISTER package sockets package type 1(string) parameters are the Registration Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 19: Using The Tutorial

    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): Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 20 5.*After configuring the parameters, restart the 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 After the connection is successful, query the local IP and local port: AT+ SVRPORTIP? The return is as follows: AT+SVRPORTIP=4001,192.168.1.1...
  • Page 21 1. *Open the mobile phone hotspot, connect the PC to the hotspot, and find the IP address assigned by the hotspot to the PC. This step is very important. If the IP address is incorrect, communication will not be possible. (can also be connected to a router) Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 22 5. *Set the connection target parameters, the parameters here are the hotspot name, password and encryption method set in the first step: AT+STACON=ebyteW03,2,12345678 6. *Set the connection method (connection is divided into manual, automatic, smartconfig), here select automatic connection: AT+CONTYPE=1 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 23 3. *Set the UDP communication list. This step is to distinguish the source of UDP data, and 4 groups can be set. AT+SOCKET=0,4001,192.168.1.2 AT+SOCKET=1,4002,192.168.1.2 AT+SOCKET=2,4003,192.168.1.2 AT+SOCKET=3,4004,192.168.1.2 This is just for demonstration, and the actual value can be set by itself as needed. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 24 For details, see . The PC side does not need to be formatted, but the module will print out the data according to the protocol format after receiving the data from the PC side. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 25 It should be noted that if the source address and port of the received data are not in the parameters set in the third step, the serial number spit out is 0xff, indicating an unidentified data source. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 26: Communication Between Modules

    Get the local IP: AT+SVRPORTIP? (Be sure to do this here, and then pass the parameters into the STA, otherwise it will not be able to communicate) The return value is shown in the figure. STA configuration: Mode: AT+MODE=2,1,2 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 27 If the AP starts the protocol transmission mode at this time, it can support connecting 4 STAs, and the configuration of the remaining 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 Mode: AT+MODE=2,1,1...
  • Page 28 Set the local port: AT+SVRPORTIP=4002 (note that the local port here is the remote port in the previous step) Set the remote port remote IP: AT+SOCKET=0,4001,10.145.45.1 (the remote port IP here is the local port IP in the previous step) 3. *Restart the module, wait for the connection, and communicate. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 29 5. * Configure the remote port and address, and set the IP address and port of the GroupOwner queried in the previous step to the Client (the IP address and port of this part must be obtained after querying the GroupOwner, otherwise communication cannot be established) AT+SVRPORTIP=4001,192.168.1.1 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 30: Network Communication

    When the self-built mqtt server uses Baidu Cloud, the device name is both the Client ID, and the username and password correspond. When using onenet, the device ID is both the client ID, the product ID is the user name, and the authentication information is the password. 6.2.1.1 Alibaba Cloud Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 31 6. Address: The domain name for accessing Baidu Internet of Things. Such as: Un2d6cs.mqtt.iot.gz.baidubce.com 7. Port: Baidu IoT port. Such as: 1883 8. Subscription topic: such as: $baidu/iot/general/get 9. Post subject: such as: $baidu/iot/general/update 10. Subscription publishing message level: Qos:0, Qos:1, Qos:2 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 32: 2Http Client

    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 ONENET Internet of Things. Such as: mqtt.heclouds.com 7. Port: ONENET IoT port. Such as: 6002 8.
  • Page 33: 3Websocket

    1. Log in to the web page, in the mode setting menu, select Station as the work role, select websocket as the service mode, and save the settings 2. In the parameter setting menu, configure the required parameters. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 34: Parameter Configuration

    IP address and UDP port number 8009 (this port number is a fixed value and cannot be changed). In essence, remote configuration is also an AT command operation. For specific commands, see AT commands. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 35: Web

    IP address used for demonstration. Use the command: AT+SVRPORTIP? to query and enter the correct IP to enter the configuration interface. The IP address is set according to the feedback result of the module, and other parameters are set according to their own needs. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 36: Modbus Usage

    Chengdu Ebyte Electronic Technology Co.,Ltd. E103-W03 User Manual 6.4 Modbus usage After setting the working parameters according to the above chapters, enter the AT command and open the modbus protocol: AT+MODBUS=1. Communicate after connection is established Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 37: 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,192.168.1.9,255.255.255.0,192.168.1.1,192.168.1.1 3. Set the target AP, socket port and address as shown in Section 6.1.2.1. Restart the module to establish a connection for communication. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 38: Revision History

    M.T. 8. About us Technical support: 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 hotline: 028-61399028 ext. 821 Web: https://www.cdebyte.com Address: Innovation Center D347, 4# XI-XIN Road,Chengdu, Sichuan, China...

Table of Contents