Advertisement

Quick Links

【RS485 ⇌ WiFi】
NA611 / NA611A

Advertisement

Table of Contents
loading

Summary of Contents for Ebyte NA611

  • Page 1 【RS485 ⇌ WiFi】 NA611 / NA611A...
  • Page 2: Table Of Contents

    4.4.3 Web page configuration........................9 4.5 Status indication............................9 4.6 Low power consumption..........................9 4.7 High speed continuous transmission(3M)....................9 4.8 HeartBeat, Registration packet......................... 10 4.9 Modbus protocol............................10 4.10 Stastic IP..............................10 4.11 Default parameters..........................10 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 3 5.2.2 HTTP Client............................27 5.2.3 WebSocket............................28 5.3 Parameter configuration..........................28 5.3.1 Serial port AT instruction configuration.....................28 5.3.2 UDP remote communications......................29 5.3.3 Web page configuration........................30 5.3.4 Modbus use............................30 Revision history....................... 错误!未定义书签。 About us........................... 错误!未定义书签。 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 4 【RS485⇌ WiFi】NA611 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 Chengdu Ebyte Electronic Technology Co.,Ltd. 【RS485⇌ WiFi】NA611 User Manual 1 Introduction NA611/NA611A is a high-performance, highly reliable dual-band WiFi serial server (RS485 ⇌ WiFi). Realize RS485 data through WiFi to realize device networking data interaction, and support IEEE802.11 a/b/g/n standards.
  • Page 6: Quickstart

    WiFi antenna Screwdriver (Slot SL 2) 2.2 Equipment wiring 2.2.1 Power supply wiring Power supply, using DC 8~28V power supply, also can use DC 12V or 24V power supply. Figure 2-2-1 Power connection diagram Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 7: Communications Wiring Rs485

    Chengdu Ebyte Electronic Technology Co.,Ltd. 【RS485⇌ WiFi】NA611 User Manual 2.2.2 Communications wiring RS485 Figure 2-2-2 Communication RS485 wiring diagram 2.2.3 Overall schematic diagram Figure 2-2-3 Schematic diagram of the whole machine Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 8: Software Configuration

    "AT+MODE=1,1,1" command to modify the device Working mode. (5) Send the "AT+SVRPORTP?" command to query the IP address and port number of the next computer to Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 9: Device Testing

    (2) Open the network debugging assistant "NetAssist", select the TCP Client mode, the remote host address is "10.145.45.1", the port number is "4001", click connect, as shown in Figure 2-3-5. (3) The LINKB light of the device will light up after the connection is successful. Figure 2-3-4 Computer parameter configuration Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 10 Chengdu Ebyte Electronic Technology Co.,Ltd. 【RS485⇌ WiFi】NA611 User Manual Figure 2-3-5 NetAssist parameter configuration Figure 2-3-6 Actual test results Send "EBYTE-TEST" to observe the result of data communication. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 11: Product Overview

    32mA @12V Received average power consumption (5.18GHz) Sleep current 6uA @12V Low power deep sleep(LPDS) WiFi version 802.11 a/b/g/n Operating -40℃ ~ +85℃ temperature Product Size 92 * 66 * 30 mm(Length*width*height) product weight 95 g ± 5g Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 12: Port Specification

    Always off: Not connected to WIFI Steady on: The device is successfully connected to the data processing server LINKB Data link indicator Off: The device is not successfully connected to the data processing server Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 13: Dimension Figure

    Chengdu Ebyte Electronic Technology Co.,Ltd. 【RS485⇌ WiFi】NA611 User Manual 3.4 Dimension figure Figure 3-4-1 Dimensional drawing 3.5 Installation methods The equipment adopts the guide rail installation method. Figure 3-5-1 Rail installation Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 14: Product Function

    Transparent transmission means that when only one socket is supported, the data from the serial port or the network is sent directly without any format. Command AT+MODE=x.1,x set the second bit to 1 to configure the device to work in transparent transmission mode Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 15: Protocol Transmission

    0x00,which means Socket 0 link is found 0x01,which means Socket 1 link is found 0x02,which means Socket 2 link is found 0x03,which means Socket 3 link is found Length: The actual length of the application data, range: 0~1000 Data: Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 16: Service Mode

    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.
  • Page 17: Http Client

    AP mode, the PC is connected to the device; when the device is in STA mode, the PC and the device are connected to the same router. The device will always listen to a fixed UDP port 8009. When the device and the terminal Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 18: Web

    (2) The serial port assistant software must be able to support the 3M baud rate, the company’s test software is XCOM2.6 (3) Try not to connect the device to the PC through a USB converter, and connect it directly to the USB3.0 port of the PC, otherwise packet loss will easily occur. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 19: Heartbeat, Registration Packet

    4.11 Default parameters Parameter parameter name Parameter value Related instructions category Baud rate 115200 digit AT+UART Stop bit Parity check none Serial port Serial port timeout 40(ms) Serial port frame length 1000 working frequency 2.4G Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 20 Remotely 10.145.45.2 Socket port 4003 parameter Socket3 10.145.45.2 port 4004 Socket4 10.145.45.2 Heartbeat 0(shut down) AT+HEARTBT type Heartbeat 5(Unit: second) 4 sockets Heartbeat timeout are the parameters same Heartbeat 1(String) data type Heartbeat CDEBYTE-E103-W06-STRHT Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 21: Instructions

    (1) Set device role: AP, transmission mode: transparent transmission, service mode: TCP server; AT+MODE=1,1,1 (2) Configure SSID related parameters (SSID commonly known as WiFi name): AT+SSID=0, E103-W06-TEST, 2, 12345678. (3) Set working frequency: AT+RADIO=1,36,0,0,CN (4) Set IP address: AT+NETIP=192.168.1.111,255.255.255.0,192.168.1.31,192.168.1.31 (5) Set the port number: AT+SVRPORTIP=4001 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 22 (7) 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.111 (8) Open the TCP debugging assistant, because the device is a server, so create a client here, and enter the Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 23: Communication Between The Roles Sta And Tcp Server

    1. *Turn on 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. (You can also connect to the router) Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 24 (6) Set the connection method (connections are divided into manual, automatic, and smartconfig), here select automatic connection: AT+CONTYPE=1 (7) Restart the device, and wait for the device to connect to the hotspot and Tcp Server for data transmission Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 25: Communication Between The Roles Sta And Udp

    (3) Set the UDP communication list. This step is to distinguish the source of UDP data. 4 groups can be set. AT+SOCKET=0.4001,10.145.45.2 AT+SOCKET=1.4002,10.145.45.2 AT+SOCKET=2.4003,10.145.45.2 AT+SOCKET=3.4004,10.145.45.2 This is just for demonstration, and the actual value is set according to your needs. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 26 Chengdu Ebyte Electronic Technology Co.,Ltd. 【RS485⇌ WiFi】NA611 User Manual (4) Restart the device and use the PC to connect to the device. (5) Open the UDP assistant to establish UDP communication. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 27 For details, see Protocol Transmission. The PC side does not need to add a format, but the device 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 28 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 port number is 0xff, which means that the data source is not recognized. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 29: Tcp Communication Between Ap-Sta Devices

    STA, otherwise communication will not be possible), the return value is shown in the figure. STA configuration: Mode: AT+MODE=2,1,2 Target: AT+STACON=E103-W06,2,12345678 Set the remote IP and port. Here, the local IP obtained in the AP configuration is passed in as the remote IP of the Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 30: Udp Communication Between Devices

    (1) Configure AP equipment: Setting mode: AT+MODE=1,1,3 Set SSID: AT+SSID=0,E103-W06,2,12345678 Set the local port: AT+SVRPORTIP=4001 Get the local IP of the local port: AT+SVRPORTIP?. Get back: AT+SVRPORTIP=4001,10.145.45.1 Set remote port Set remote IP: AT+SOCKET=0,4002,10.145.45.2 Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 31 Set the local port: AT+SVRPORTIP=4002 (note that the local port here is the remote port from 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 device, wait for connection, and communicate. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 32: Set Up The P2P Communication Of Wifi Direct

    (4) Finally, configure another device as Client, and send instructions to set connection parameters: AT+P2PDEVINFO=30,0,E103-W06WiFiDirectClient,E103-W06WiFiDirectGo (5) Configure the remote port and address, set the IP address and port of the GroupOwner queried in the previous Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 33: Network Communication

    (6) Restart and wait for the connection to be established to communicate 5.2 Network communication Network communication is based on the STA role and communication with various cloud platforms, including Alibaba Cloud, Baidu Cloud, OneNet based on MQTT; HTTP servery and WebSocket. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 34: Mqtt

    Port: Alibaba Internet of Things port. Such as: 1883  Subscribe topics: such as: /A1Ve0iJW6z1/MQTT_TEST/user/get  Publish the subject: such as: /A1Ve0iJW6z1/MQTT_TEST/user/update  Subscribe to publish message levels: Qos:0, Qos:1, Qos:2  (1) Baidu Cloud Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 35 Device ID: such as: 511986588  Product ID: such as: 286258  Authorization information: custom input when creating a device. Such as: ebyte  Address: Access to the domain name of ONENET Internet of Things. Such as: mqtt.heclouds.com  Port: ONENET Internet of Things port. Such as: 6002 ...
  • Page 36: Http Client

    If the user passes parameters via GET, the following explains how to use GET in detail. as follows: GET /request/login.do?name=test&userpwd=123456 HTTP/1.1 Host: 192.168.4.10:8080 Among them, /request/login.do? is the content set in the header path URL (note that you need to add? After the Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 37: Websocket

    (2) In the parameter setting menu, configure the required parameters. 5.3 Parameter configuration 5.3.1 Serial port AT instruction configuration Serial AT command configuration, directly open the serial debugging assistant, set the corresponding baud rate, data bit, etc. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 38: Udp Remote Communications

    IP address and UDP port number 8009 (this port number is a fixed value and does not support changing). The remote configuration is essentially an AT command operation. For specific commands, see AT commands. The following figure shows the remote configuration based on AP mode and STA mode. Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 39: Web

    5.3.4 Modbus use After setting the working parameters according to the above chapters, enter the AT command and turn on the modbus protocol: AT+MODBUS=1. Communicate after establishing a connection Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
  • Page 40: Revision History

    The MODBUS function of this device only supports protocol conversion between MODBUS RTU and MODBUS TCP. If necessary, please use it in combination with actual use. The final interpretation right belongs to Chengdu Ebyte Electronic Technology Co., Ltd. Revision history...
  • Page 41: About Us

    Chengdu Ebyte Electronic Technology Co.,Ltd. 【RS485⇌ WiFi】NA611 User Manual 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 questions or suggestions: info@cdebyte.com ------------------------------------------------------------------------------------------------- Phone: +86 028-61399028 Web: www.ebyte.com Address: B5 Mould Park, 199# Xiqu Ave, High-tech District, Sichuan, China Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.

This manual is also suitable for:

Na611a

Table of Contents