Ebyte NA611-S User manual

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第1页
lowercase
【RS485 ⇌WiFi】
NA611-S / NA611-SA

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第2页
目录
1. Introduction ...................................................................................................................................................................... 4
1.1. Features ................................................................................................................................................................... 4
2. QuickStart .........................................................................................................................................................................5
2.1. Ready to use ............................................................................................................................................................5
2.2. Wiring ..................................................................................................................................................................... 5
2.2.1. Power ................................................................................................................................................................... 5
2.2.2. Communication RS485 ........................................................................................................................................ 6
2.3. Host computer configuration .................................................................................................................................. 6
Link configuration area ..................................................................................................................................................9
2.4. AP mode communication test ............................................................................................................................... 14
2.5. Host computer configuration (used in STA mode) ...............................................................................................16
2.6. STA mode communication test .............................................................................................................................18
3. Introduction .................................................................................................................................................................... 20
3.1. Specification ......................................................................................................................................................... 20
3.2. Technical specification ......................................................................................................................................... 20
3.3. Port Description .................................................................................................................................................... 21
3.4. Size ........................................................................................................................................................................22
3.5. Installation method ................................................................................................................................................22
3.6. Default parameters ................................................................................................................................................ 23
4. Function ...........................................................................................................................................................................25
4.1. Serial port configuration ....................................................................................................................................... 25
4.1.1. Parameter setting ................................................................................................................................................25
4.1.2. Cache function ................................................................................................................................................... 25
4.2. Job role ..................................................................................................................................................................25
4.2.1. AP mode(Access Point)................................................................................................................................25
4.2.2. STA mode(Station).......................................................................................................................................25
4.3. Transfer mode ....................................................................................................................................................... 25
4.3.1. Transparent transmission ................................................................................................................................... 26
4.3.2. MQTT Mode ......................................................................................................................................................26
4.3.3. HTTP mode ........................................................................................................................................................29
4.3.4. Network receive cache .......................................................................................................................................30
4.4. Support DHCP and domain name resolution ........................................................................................................30
4.4.1. DHCP .................................................................................................................................................................30
4.4.2. DNS ....................................................................................................................................................................30
4.5. Disconnection reconnection and no data reboot ................................................................................................... 31
4.6. Multilink distribution ............................................................................................................................................ 31
1. Protocol Description ................................................................................................................................................ 31
4.7. Heartbeat pack with registration pack ...................................................................................................................32
4.8. High-speed simulcasting(1M)......................................................................................................................... 33
4.9. Modbus gateway ................................................................................................................................................... 33
4.9.1. Simple protocol conversion ............................................................................................................................... 33
4.9.2. Multi-host gateway ............................................................................................................................................ 33
4.9.3. Storage gateway ................................................................................................................................................. 33

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第3页
4.9.4. Configurable gateway ........................................................................................................................................ 34
4.10. Serial port upgrade ..............................................................................................................................................34
5. Parameter configuration ................................................................................................................................................36
5.1. Hardware factory restore .......................................................................................................................................36
5.2. Directive configuration ......................................................................................................................................... 36
5.2.1. Serial port AT configuration ..............................................................................................................................36
5.2.2. Network AT configuration .................................................................................................................................36
6. Revision History ............................................................................................................................................................. 38
7. About us .......................................................................................................................................................................... 39

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第4页
1. Introduction
NA611-S/NA611-SA is a high-performance and highly reliable WiFi
serial server (RS485 ⇌WiFi). Works in the 2.4G frequency band,
realizes RS485 data to realize device networking data exchange
through WiFi, supports IEEE802.11 b/g/n standard, supports 4-way
Socket connection; supports Alibaba Cloud, Baidu Cloud, OneNet,
standard MQTT protocol; supports TCP/ UDP/HTTP/MQTT multiple
network communication protocols.
1.1. Features
Support simultaneous TCP/UDP/HTTP/MQTT multiple network communication protocol communication;
Support up to 4 channels of Socket communication at the same time;
Support Alibaba Cloud, Baidu Cloud, OneNet, standard MQTT protocol;
Support Modbus protocol conversion (RTU and TCP);
Support modbus storage gateway / configuration gateway / multi-host gateway;
Support transparent transmission multiplex protocol transmission and broadcast transmission;
Support custom registration package, custom heartbeat package function;
Support host computer configuration (download from official website), support direct A interactive
configuration, support network interactive configuration;
Support disconnection and automatic reconnection;
High-speed continuous transmission
Support WIFI idle restart;
Support IEEE802.11 b/g/n standard;
Support 2.4G frequency band;
Support AP, STA working mode;
Support WPA2 WIFI security authentication method;
Support 3-way STA device connection (AP access point);
Support dynamic DNS, DHCP network service package;
Flexible power supply mode (DC/AC optional);
Support static IP address allocation;

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第5页
2. QuickStart
2.1. Ready to use
Before using the WiFi serial server (hereinafter referred to as "device"), you need to prepare the computer,
converter, power supply, screwdriver and other related accessories details as follows:
List
NA611-S
USB to RS485
Computer
Power adapter (12V1A) (SA is the
AC version, prepare an AC power
cord)
WiFi antenna(2.4G)
Screwdriver (slotted SL2)
2.2. Wiring
2.2.1. Power
Power supply, use DC 8~28V power supply, or DC 12V or 24V power supply, pay attention to the positive and
negative of the DC power supply (the device has anti-reverse connection). If it is SA AC version, connect to 220V
AC power supply.

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第6页
2.2.2. Communication RS485
2.2.3. Schematic diagram of the whole equipment
2.3. Host computer configuration
First, get to know the functions of each area of the host computer. All function settings are based on the

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第7页
understanding of the host computer. The host computer uses AT to quickly interact with the device. Users can
configure the device directly through AT, and the effect is the same as that of the host computer. machine is
consistent.
Basic Information Area------Product Parameters
Version information/MAC address are inherent parameters of the device, users can only read
The local IP is a parameter that will be valid only for the query after the device is connected to wifi, reflecting
the ip of the device itself.
Idle restart If it is checked, it means idle restart is enabled. If the device does not perform any network
information interaction and 485 information interaction within the idle restart time, the software will restart the
device. Idle restart time in minutes.
Network AT header configuration The default network AT header of the device is NETEbyte, that is to say, the
data sent on the network, if it has this header, it will be regarded as an AT command and will not be regarded as
information. This header can be configured by the user. Yes, not Chinese, and the length is between 3-23 English
characters and numbers. For example, after setting up network communication, send NETEbyteAT+VER\r\n The
device will reply to your relevant device information through the network (\r\n is carriage return, line feed, not
string), for more AT commands, see the device's AT manual.
Basic information area------ serial port parameters (configured to take effect after restarting)
Multilink Protocol Distribution Mode If checked, for example, you have created two links to connect to two
TCPS servers respectively, then the information sent by the TCPS server will be sent out through 485 with a
specific header, the header length is 5 bits, and the distance For the content of the header, check the content of the
following protocol transmission. At the same time, whether you check this option or not, send information to 485
and upload it to the network. The information can have a header, such as the header designation is to link 1. If it is

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第8页
sent, then only link 1 will send this piece of information. For the specific rules of the header, see the protocol
transmission part that follows.
Baud Rate/Data/Parity/Stop Bits It represents the properties of the 485 serial port of the device. If it is changed,
after restarting the device, the host computer must change the topmost serial port property to the content you
changed, and then open the serial port to conduct normal communication.
Packing time/packet length The default value is 50/1024, which means that 50ms is the minimum interval
between two packets of data. For example, if the time interval between sending two packets of data to 485 is very
small, only 30ms (less than 50ms), then the two packets of data will be combined into one packet of data. It will be
distinguished. The packet length of 1024 means that if a packet of data is very long, up to 1300 bytes (greater than
1024), it will be divided into two packets of data to send.
Serial Heartbeat Packet/Serial Heartbeat Packet Time/Serial Heartbeat Packet Content This function is
disabled by default. Users need to open it by themselves (check the serial port heartbeat package option), the serial
port heartbeat package time unit is seconds, the heartbeat content is the content that will be sent through 485, and
the hex check on the right means that The heartbeat content will be converted into hex format (hex format is rarely
used, if checked, the content in hex format will be sent). After opening, the device will send serial heartbeat
information through 485 every other serial heartbeat time.
Basic information area ------ WiFi parameter area (configured to take effect after restarting)
WIFI Mode/SSID/Password Parameters representing wifi, such as AP mode, ssid is test, password is
12345678(When entering a password, you can enter a lowercase "x" to set it as open WiFi), then the device is a
hotspot, which can be connected through wifi, the hotspot name is test, and the password is 12345678. If the STA
mode is set, the ssid is test, and the password is 9876543210, then the device will use the password of 9876543210
to connect to a router (hotspot) named test after restarting.
DHCP/Static IP/Subnet Mask/Routed Address The DHCP selection part can choose dynamic IP and static IP
mode (it works in STA mode). If it is dynamic IP, it is easy to understand, that is, after the device is connected to
the router (hotspot), the IP of the device is dynamically assigned to the device by the router (hotspot). Yes, so every
time you restart the device or reconnect to wifi, the address of the device may change. If it is static IP mode, you
can fill in the IP address you want to fix in the static IP below, but note that this cannot be filled in randomly, it
must be kept on the same network segment and this address is not assigned to other devices, for example, your
router is 192.168 .3.XXX network segment, your static IP can only be filled in such as 192.168.3.52. It cannot be
filled in across network segments. Generally, the following subnet masks do not need to be changed. The routing
address is the IP address of the router. In the correct case, every time the device is powered on and connected to the

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第9页
router, it will be this static IP.
DNS address The resolution address generally does not need to be changed
Basic information area------modbus parameter area (the configuration will take effect after restarting)
Modbus working mode The five types of simple protocol conversion/multi-host/storage type/configuration
type/active upload type can be set respectively. The default is disabled, that is, the modbus functional area is not
enabled. Change the option to any type, which is enabled. Note: enable After that, the modbus gateway will work
on link one, only support TCP interaction, and will actively close the other three links, please do not use the other
three links. The following briefly introduces several gateway modes:
Simple protocol conversion: the most commonly used, simple TCP-RTU conversion
Multi-host mode: that is, for example, both hosts A/B will access device information through modbus. If A/B
initiates an access request at the same time, for example, A has accessed, modbus will enter the busy state, and the
access information of B will be stored. Down, wait for the end of the interaction of host A, and then execute the
interaction of host B, thus avoiding the information conflict of multiple host modbus buses
Storage gateway: Since the interaction speed of the 485 interactive terminal is slower than that of the network
terminal, many bus waits originate from the slow side, and a storage gateway, such as the host accesses an
instruction, then the device as a modbus gateway will "remember" "This command, and keep polling, and save the
polling result in the device, then next time the host accesses this data again, the device as a modbus gateway will
not go to 485 to send the inquiry information, wait for the content to return, and then return the content. Instead, it
directly returns the polling content stored in the device to the host, making the interaction speed smoother.
Configuration gateway: Similar to storage gateway, but you can configure common query commands into the
device in advance, which means that the device does not need to be issued by the host, and directly remembers
these commands. The subsequent workflow is the same as the storage gateway.
Active upload: You can configure the command in the modbus command configuration (this command
configuration area is the configuration used by the configuration gateway and the active upload uniformly). After
the configuration, just like the configuration gateway, the device as a modbus gateway will send a query through
485 information, but after the query result is obtained here, it will be directly returned to the host through the
network.
Server Hex:not support
TCP Modbus:It is supported to not check this item when selecting multiple hosts, and check it at other times.
This is a common usage, which means that the default network terminal runs TCP type data, and then the device
acts as a modbus gateway to the RTU data run by the slave terminal.
Link configuration area

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第10
页
Working mode: When none is selected, it means the link is closed. When TCP/UDP transparent transmission is
selected, the above interface is used. At the same time, HTTP mode or a different MQTT mode can also be
selected.
When in TCP/UDP transparent transmission:
Connection type: TCPS/TCPC/UDPC/UDPS can be selected, representing the different roles of the device in
network communication. When in TCPS/UDPS, when the client connects, the device will remember the client
socket (records up to eight A), you can query the information of the currently connected client through the AT
command, see the AT manual for specific commands, and the interactive communication with the client also
supports protocol transmission. You can specify to send information to a certain client, or Can choose to broadcast
Server address/target address: When in TCPS/UDPS, fill in 192.168.1.1 uniformly (cannot fill in the blanks, in
fact, this parameter does not work in server mode, the device uses its own IP to open the server by default), when in
client mode (TCPC/ UDPC), this is the target IP address that the client wants to connect to
Server port/target port: When in server mode, this is the open port of the server, when in client mode, this is
the port opened by the target server.
Short connection time: This parameter does not matter, it is only useful in TCPC mode. The default value is 0,
which means the short connection is closed by default. For example, if you are in TCPS mode and set the short
connection time to 5, then this TCPC link After the connection with the server is obtained, the data is exchanged,
the link will be closed after 5S, and the connection with the server will be disconnected (if the interaction is
performed again within 5S, the time will be re-timed in 5S)
Registration package parameters (only useful for clients): Checking to enable the registration package means
that the registration package function is enabled. There are two registration methods. There is another registration
package to send. The other is that all the data sent later will have this registration package as the header. The
following data content is the content of the registration package. The Hex mode on the right is generally unchecked,
if checked That is, the data content is to be converted into hex mode.
Heartbeat packet parameters (only useful for clients): Check the heartbeat switch to enable the heartbeat
packet function, the heartbeat content is the content of the heartbeat packet sent, and the heartbeat time is the
heartbeat sending interval, such as 60, then this link is every 60S A heartbeat packet will be sent to the server (if
there is normal data interaction during this period, the heartbeat time will be reset).
When in HTTP mode

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第11 页
HTTP transmission mode: It is divided into POST and GET methods. When the HTTP information is set, the
information in the information area is directly written, and the device will automatically seal the data packet before
uploading to the network.
HTTP URL content: represents the URL part of the HTTP message body, such as the HTTP content part of the
test above.
(POST method URL)
/devices/505619290/datapoints
(GET method URL)
http://api.heclouds.com/devices/505619290/datapoints?datastream_id=test_stream
HTTP domain name: represents the IP address of the target HTTP server, such as 183.230.33.80 in the above test
content
HTTP port: represents the port number of the target HTTP server, such as the appeal 80, the general HTTP port
number is port 80
HTTP header content: represents the header part of HTTP, such as the appealed
api-key:SlxhH3MCLvuuvXJ0N=a14Yo6EAQ=\r\nHost:api.heclouds.com
After configuring the HTTP information, send
{"datastreams":[{"id":"test_stream","datapoints":[{"value":28}]}]} (post message)You can POST information to
the HTTP server, and send datastream _id=test stream to GET information from the HTTP server.

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第12
页
When in MQTT mode:
Support the connection of MQTT servers such as Alibaba Cloud, Baidu Cloud, ONENET and custom private
clouds
The following is an example of how to use Alibaba Cloud
First, create products and devices on the Alibaba Cloud IoT platform. If not, you can view the operation
method on the official website or Baidu, there are many tutorials on the Internet, the operation is simple, and then
find the device you created on the device, click View on the right, and then click MQTT Link the parameter item to
get the following interface.

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第13
页
Fill the above mqttHostUrl into the above address bar and post in the above port bar. However, the above three
columns such as clientID are ignored, because this is a packaged parameter, and our device will automatically
package it for you, so fill in the following content in the three columns of product key, device name, and device key,
and fill in the product to the device Name column, Productkey is filled in the product key column, DeviceSecret is
filled in the device secret column.
Then check the subscribe/publish option below, fill in the topic of subscription and publishing, select your
item in the product column, click View, and then find the content you want to subscribe and publish in the Topic
category list and fill it in.
Simple configuration of the device
1. Select the corresponding serial port and configure the baud rate parameters correctly. The factory default baud
rate is 115200, 8 data bits, 1 stop bit, and no parity bit (NONE);

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第14
页
2. Select the working mode of the device, the factory default AP mode, the following tests are carried out with
the factory parameters, if the factory parameters are not, it is recommended to restore the factory (after the
device enters the configuration according to the previous three steps and connects with the host computer,
click on the upper right to restore the factory settings) and then carry out;
3. Configure the SSID of the device (factory default: NA611-S) and Password (factory default: 88888888), here
do not modify the parameters that only query WiFi;
4. Configure the link parameters, the factory default is server mode (TCPS), the default IP (192.168.1.1), and the
port is 8888;
5. Turn off other advanced modes, the factory default is turned off.
2.4. AP mode communication test
1. Configure the computer Ethernet in the following ways, modify IPv4 to obtain IP automatically and obtain
DNS server address automatically;

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第15
页
2. Use the SSID obtained from the computer connection query, here is NA611-S, enter the wifi password, and
connect the device (the device LINKA is always on when the connection is successful);
3. Through the host computer configuration, open link 1, open the TCPS mode, the default (192.168.1.1, 8888
port), save the parameters and exit the configuration, LINKB is always on.
4. Open the network assistant and connect to the device server (192.168.1.1:8888). If you cannot connect
according to the above configuration, it is recommended to turn off the computer firewall;
5. The communication test uses the serial assistant to send "EBYTE_NA6111_S_TEST_UART", the network
assistant receives "EBYTE_NA6111_S_TEST_UART", the network assistant sends
"EBYTE_NA6111_S_TEST_NET", and the serial assistant receives "EBYTE_NA6111_S_TEST_NET";

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第16
页
2.5. Host computer configuration (used in STA mode)
1. Select the corresponding serial port, and configure the baud rate parameters correctly, the factory default baud
rate is 115200, 8 data bits, 1 stop bit, no parity bit (NONE);
2. Click to enter the configuration and read the parameters to obtain the current configuration parameters of the
device;

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第17
页
3. Select the WIFI working mode, turn on the STA mode, and the device automatically enables dynamic IP
(DHCP) when the STA mode is turned on for the first time;
4. Configure the WiFi name and password for the device to connect to;
5. Save the parameters, restart the device, wait for the device to restart, read the parameters to obtain the IP
address of the device;

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第18
页
6. Configure the link parameters, the factory default is server mode (TCPS), the IP is dynamically obtained by
the device, here is 192.168.10.152, and the local port is modified to 8888;
7. Click Save to restart the device;
2.6. STA mode communication test
Keep the computer and the device connected to the same router (the connection is successful and LINKA is
always on), the computer uses a dynamic IP (for the configuration method, refer to 2.4 AP mode communication
test), open the network assistant, and connect to the device server (192.168.10.152:8888, obtain the IP according to
the actual device) If the connection is successful, LINKB is always on), if you cannot connect according to the
above configuration, it is recommended to turn off the computer firewall;
The communication test uses the serial assistant to send "EBYTE_NA6111_S_TEST_UART", the network
assistant receives "EBYTE_NA6111_S_TEST_UART", the network assistant sends

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第19
页
"EBYTE_NA6111_S_TEST_NET", and the serial assistant receives "EBYTE_NA6111_S_TEST_NET";

Chengdu Ebyte Electronic Technology Co.,Ltd. NA611-S & NA611-SA User Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 第20
页
3. Introduction
3.1. Specification
Model
WiFi version
Power
Frequency
Ports
Temperature
NA611-S
802.11 b/g/n
DC 8~28V
2.412GHz ~2.472GHz
RS485
-40℃ ~+70℃
NA611-SA
AC 85~265V
RS485
3.2. Technical specification
Item
Parameter
Operating
Voltage
DC 8~28V / AC 85~265V
Communication
Interface
RS485
Working
frequency
2.412GHz ~2.472GHz
Maximum
transmit power
16dBm ~18.5dBm @2.412GHz
Emission current
90mA @12V 瞬时功耗(2.412GHz)
receive current
30mA @12V 接收的平均功耗(2.412GHz)
WiFi version
802.11 b/g/n
Operating
temperature
-40℃ ~+70℃
Product Size
92 * 66 * 30 mm(长*宽*高)
Weight
95 g ± 5 g
This manual suits for next models
1
Table of contents
Other Ebyte Modem manuals

Ebyte
Ebyte E95M-DTU User manual

Ebyte
Ebyte E870-W1 User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte ECAN-E01 User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte E18-DTU Series User manual

Ebyte
Ebyte NA111-A User manual

Ebyte
Ebyte ECAN-U01 User manual

Ebyte
Ebyte E831-RTU Series User manual

Ebyte
Ebyte E820-AIO User manual

Ebyte
Ebyte E70-DTU User manual

Ebyte
Ebyte E70-DTU User manual

Ebyte
Ebyte NB144 User manual

Ebyte
Ebyte E95-DTU User manual

Ebyte
Ebyte ECAN-U01S User manual

Ebyte
Ebyte NB124ES User manual

Ebyte
Ebyte EBT3002 T6 User manual

Ebyte
Ebyte E830 Series User manual

Ebyte
Ebyte E890-915LG12 User manual

Ebyte
Ebyte E95-DTU User manual