background image

E103-W07 User Manual

WIFI MESH

Summary of Contents for E103-W07

Page 1: ...E103 W07 User Manual WIFI MESH ...

Page 2: ...ardware description 6 3 1 Mechanical size and pin definition 6 3 2 Mechanical size and pin definition 9 3 3 Module size 9 3 4 PCB package pattern 10 4 Detailed function 11 4 1 The term 11 4 2 Tree topology 11 4 3 Node type selection 12 4 4 Mesh networking 12 4 4 1 Automatic networking 12 4 4 2 Manual networking 12 4 5 Networking with and without routers 12 4 6 MESH data flow 13 4 7 MQTT 13 4 7 1 Q...

Page 3: ...START start mesh 21 5 5 8 AT MESEND send MESH data 21 5 5 9 AT MESTATUS Current mesh network status 22 5 5 10 MEDAT report Mesh network data 22 5 5 11 AT MEAUTO Power on automatic networking 23 5 6 TCP IP communication 23 5 6 1 AT CIFSR query ROOT node IP address 23 5 6 2 AT CIPSTART establish TCP connection UDP transmission 23 5 6 2 1 TCP communication 23 5 6 2 2 UDP communication 24 5 6 3 AT CIP...

Page 4: ...paration is complete 30 6 3 MESH networking 30 6 3 1 With routing manual networking 30 6 3 2 Send and receive data 31 6 4 Socket communication 32 6 4 1 TCP Client 32 6 4 2 TCP Server 32 6 4 3 Socket communication 32 6 5 Mqtt communication 33 6 5 1 Configure connect 33 6 5 2 Subscribe to topics 33 6 5 3 Release the news 33 7 Common problems 34 7 1 Transmission distance is not ideal 34 7 2 Module is...

Page 5: ...uction 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 as is and EBYTE assumes no liability for the use of the information No warranty either express or implied is given including but not limited with respect to the accuracy correctness reliability and fi...

Page 6: ...hich means that the mesh network can be independently constructed and maintained 1 2 Features Support AT commands Support serial communication and flow control The baud rate supports up to 128000 Support WIFI MESH Up to 1000 MESH nodes Support custom MESH roles Support automatic and manual networking Support routing networking and non routing networking Support configuration of MESH network capaci...

Page 7: ...e 3 0 3 3 3 6 V IVDD Supply current of external power supply 0 5 A T Recommended working temperature 40 85 C Humidity humidity 85 RH Imax Peak current 400 mA I Average current 100 mA 2 3 RF characteristics Working channel center frequency range 2412 2484MHz Wi Fi Protocol IEEE802 11b g n Antenna type PCB IPEX Antenna Distance With router Mercury MW305R 200m Between modules 100m 3 Hardware descript...

Page 8: ...fication pdf IO8 11 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specification pdf IO9 12 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specification pdf IO10 13 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specification pdf IO11 14 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specificati...

Page 9: ...ification pdf IO37 31 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specification pdf IO38 32 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specification pdf IO39 33 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specification pdf IO40 34 I O T Unused For pin definition please refer to ESP32 S2 WROOM Technical Specific...

Page 10: ...Chengdu Ebyte Electronic Technology Co Ltd E103 W07 User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 9 3 2 Mechanical size and pin definition 3 3 Module size ...

Page 11: ...Chengdu Ebyte Electronic Technology Co Ltd E103 W07 User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 10 3 4 PCB package pattern ...

Page 12: ...er from the root node than Y the number of connections crossed is more then X is called a child node of Y Node address The MESH network uses MAC address IP address port Any node has two MAC addresses AP and STA The MESH network address is the AP MAC address and the MAC address of the parent node is the AP s MAC address The child node address is the STA MAC address The MAC address of the STA is sto...

Page 13: ...er intervention automatically enumerate ROOT nodes after the module is powered on and automatically select the parent node The user only needs to communicate after the networking is completed Automatic networking can avoid too deep network layers and too complicated routing In automatic networking the node type can only be configured as an idle node 4 4 2 Manual networking For manual networking us...

Page 14: ...st and duplicate messages are unacceptable This quality of service will increase overhead 4 7 2 Quality Service Level QoS The client and server can store the session state so that they can reliably deliver messages across a series of network connections This is used to control the life cycle of the session state If CleanSession is set to 0 the server must resume communication with the client accor...

Page 15: ...sible Causes Solution 0 Instruction does not exist Confirm whether the instruction is supported 1 Parameter length error Check parameter length 2 Wrong number of parameters Check the number of parameters 3 Parameter error Check parameter content 4 Null pointer 5 Limited resources 6 The queue is empty 7 Incomplete initialization 8 Parameters not configured 9 wrong address 100 The operation is not s...

Page 16: ...tion 607 Connection does not exist 608 Reconnect more than 5 times 700 Mqtt connection error Parameter problem 701 The current mqtt has been disconnected 5 3Status return Node connected to parent node instruction ME PARENT CONNECT mac parameter Mac Parent node MAC address Description ROOT nodes without routing will not output this state Disconnect the parent node instruction ME PARENT DISCONNECT m...

Page 17: ...ort parameter LinkID Connection id Used to mark the socket link IP Remote IP 192 168 0 2 port Remote port Description Create TCP server locally output when remote tcp clinet connects TCP connection lost instruction IP DISCONNECT linkId parameter LinkID Connection ID Description 1 Output when remote TCP client and local client are disconnected Mqtt connects to Broker instruction MQTT CONNECT parame...

Page 18: ...a Set up AT BAUD para OK success ERR NUM Error parameter Maximum support 12800bps Description Restart to take effect Example AT BAUD 115200 Set the baud rate to 115200 5 4 5 AT UART UART Settings Instruction Answer Inquire AT UART UART baud databits parity stopbits hw Set up AT UART baud databits parity stopbits hw OK success ERR NUM Error parameter parameter description baud 1200 5M default 11520...

Page 19: ...ied otherwise multiple MESH networks will appear causing nodes to be unable to communicate with each other 5 If the BSSID is specified but routerswitchdisable is not set when the router with the specified BSSID is still not found after several times the entire network is allowed to switch to another router with the same SSID The new router may also be on a different channel If the passwords of the...

Page 20: ... 5 5 3 AT MEAP mesh network ap information Instruction Answer Inquiry AT MEAP MEAP password Setting AT MEAP password OK Success ERR NUM Error Parameter password Password is a character string its length range 8 63 bytes Description 1 Restart to take effect save when power off 2 Default 12345678 3 In the same network the password must be the same otherwise you cannot join Example Get mesh ap inform...

Page 21: ...m The maximum number of child nodes that can be connected Value range 10 default 6 LayersMax Mesh network layer number Value range 2 25 Default 6 CapacityNum The maximum number of nodes in a Mesh network Value range 1000 default 300 Description 1 Restart to take effect save when power off 2 The MESH network determines the network capacity based on the values of ApConnectNum and LayersMax The MESH ...

Page 22: ...to use this command to start the MESH network When using this network please pay attention to the parameters of the MESH network Wrong parameters the module will not start the MESH network 3 After this command is issued the module will respond OK only after initializing the MESH Example AT MESTART 5 5 8 AT MESEND send MESH data Instruction Answer Setting AT MESEND mac len OK Success ERR NUM Error ...

Page 23: ...a node When the instruction returns the address of the child node all are returned Through nodes parent nodes and child nodes the actual topology of the network can be directly reflected Example MESTATUS 1 1 10 01 01 01 01 01 01 00 00 00 00 00 01 00 00 00 00 00 02 00 00 00 00 00 03 1 00 00 00 00 00 04 5 5 10 MEDAT report Mesh network data Receive data MEDAT src addr len Parameter Src addr Data sou...

Page 24: ... Effective immediately save when power off 2 If ParameterError the module will stop networking and will not output any Error information Example AT MEAUTO 1 5 6TCP IP communication 5 6 1 AT CIFSR query ROOT node IP address Instruction Answer Inquiry AT CIFSR CIFSR IP Success ERR NUM Error Parameter IP address Root node IP address The format is xxx xxx xxx xxx Description 1 Effective immediately 2 ...

Page 25: ...TCP 192 168 0 205 6001 The RFC does not mandate how long TCP must maintain a connection However generally TCP will keep the link from being disconnected for 3 5 minutes Sometimes the router will clean up TCP links that have not passed through for a long time and the channel will be disconnected at this time Therefore for TCP a very small data packet is usually sent to the server in about 3 minutes...

Page 26: ... client To disconnect the TCP server the command AT CIPSERVER must be used 3 After the disconnect command is issued the module immediately responds with OK After the connection is completely disconnected the module returns IP DISCONNECT Example AT CIPCLOSE 0 5 6 4 AT CIPSERVER Create and close TCP service Instruction Answer Inquiry AT CIPSERVER enable LocalPort OK Success ERR NUM Error Parameter e...

Page 27: ...able OK Success ERR NUM Error Parameter enable 0 Prohibit the output of data is to carry the address of the other party 1 default Enable output data to carry the address of the other party Description 1 Effective immediately save when power off 2 This command affects all output data formats Example AT CIPDINFO 1 5 6 7 IPD receive TCP UDP data IPD LinkID Length RemoteIp RemotePort Data Parameter Li...

Page 28: ...ient id of different modules must be unique The same client ID will cause conflicts between modules Example AT MQTTUSERCFG 1 W07 W07 123456789 5 7 2 AT MQTTCONNCFG MQTT connection configuration information Setting AT MQTCONNCFG keepalive disable_clean_session lwt_topic lwt_msg lwt_qos lwt_retain OK Success ERR NUM Error Inquiry AT MQTCONNCFG MQTCONNCFG keepalive disable_clean_session lwt_topic lwt...

Page 29: ...tt mqtt eclipse org 1883 0 r n 5 7 4 AT MQTTPUB publish MQTT message Setting AT MQTTPUB topic length qos retain OK Success ERR NUM Error Parameter topic The topic of the publication String length 63 bytes length Data length qos Message quality 0 1 2 retain Value range 0 1 Description 1 Effective immediately 2 Retain 1 in a PUBLISH packet sent from the client to the server the server must store the...

Page 30: ...mple AT MQTTSUB com wws 5 7 7 AT MQTTCLEAN close MQTT connection Execution AT MQTTCLEAN OK Success ERR NUM Error Parameter NONE Description 1 Effective immediately 2 Actively disconnect the Mqtt connection Actively disconnect mqtt will not reconnect Example AT MQTTCLEAN 5 7 8 MQTTSUBRECV MQTT receive data MQTTSUBRECV topic data_length Parameter topic Subject of receiving data data_length Data leng...

Page 31: ...3ffe6100 len 0x8 load 0x3ffe6108 len 0x530 load 0x4004c000 len 0x80c load 0x40050000 len 0x260c entry 0x4004c178 Power on information fixed serial port parameters the serial port parameters of this information are not affected by user configuration 6 2Module preparation is complete After the module is ready the following information will be output ready r n After the condition information includin...

Page 32: ...ng at mestart r n OK r n Mesh starts networking Root is responsible for creating the network and waiting for child nodes to join ordinary nodes find available Mesh networks and join the mesh network group The networking process is as follows ROOT NODE NORMAL NODE ME PARENT CONNECT b8 f8 83 3b 72 e0 ME IP 192 168 0 172 ME CHILD CONNECT 7c df a1 05 8c 76 ME PARENT CONNECT 7c df a1 00 e8 39 Since the...

Page 33: ... Client STEP 1 Create a TCP Server on the PC monitor port 6001 and PC local IP 192 168 0 205 STEP 2 ROOT node creates TCP Client AT CIPSTART 0 TCP 192 168 0 205 6001 r n OK r n After the creation is completed the communication can be completed 6 4 2 TCP Server STEP 1 Create TCP Server Listening port 60000 AT CIPSERVER 1 60000 r n OK r n STEP 2 After the ROOT node service is created the PC creates ...

Page 34: ...ers AT MQTTCONNCFG 30 0 lwt wo7 1 1 r n OK r n STEP 3 Connect to MQTT Broker AT MQTTCONN mqtt eclipseprojects io 1883 0 r n OK r n STEP 4 Wait for the successful connection of Mqtt After the successful connection of Mqtt take the initiative to input MQTT CONNECT Since then ROOT has been connected to the mqtt broker The module will be used to subscribe to topics and publish messages 6 5 2 Subscribe...

Page 35: ... supply at room temperature is lower than the recommended value the lower the voltage the lower the power output 7 2Module is easily damaged Please check the power supply to ensure that it is within the recommended power supply voltage If it exceeds the maximum value it will cause permanent damage to the module Please check the stability of the power supply and the voltage should not fluctuate gre...

Page 36: ...at temperature max Tsmax Maximum preheating temperature 150 200 Preheat Time Tsmin to Tsmax ts Preheat time 60 120 sec 60 120 sec Average ramp up rate Tsmax to Tp Average ascent rate 3 second max 3 second max Liquidous Temperature TL Liquidus temperature 183 217 Time tL Maintained Above TL Time above liquidus 60 90 sec 30 90 sec Peak temperature Tp Peak temperature 220 235 230 250 Aveage ramp down...

Page 37: ...notice This manual is only used as a guide all the information in the manual does not constitute any express or implied guarantee Revision history Version Date Description Issued by V1 0 2021 3 18 First edition first public release About us Technical support support cdebyte com Documents and RF Setting download link www ebyte com Thank you for using Ebyte products Please contact us with any questi...

Reviews: