NT1 UserManual EN V1.1
NT1 UserManual EN V1.1
module
NT1
Chengdu Ebyte Electronic Technology Co.,Ltd. NT1 user manual
Contents
Disclaimer.............................................................................................................................................. 3
1. Introduction to the product................................................................................................................. 1
2. Get started quickly..............................................................................................................................2
2.1 Use preparation.........................................................................................................................2
2.2 Module wiring.......................................................................................................................... 2
2.3 Software settings...................................................................................................................... 3
2.3.1 Network test environment............................................................................................. 3
2.3.2 The default parameter....................................................................................................3
2.3.3 Data transfer test............................................................................................................4
3. Product overview................................................................................................................................6
3.1 Product specifications...............................................................................................................6
3.2 Technical parameters................................................................................................................ 7
3.3 Interface description................................................................................................................. 8
3.4 Dimensions.............................................................................................................................10
4. Product features................................................................................................................................ 11
4.1 Introduction to the basic features........................................................................................... 11
4.1.1 Web configuration....................................................................................................... 11
4.1.2 Subnet mask /IP address.............................................................................................. 11
4.1.3 DNS server address..................................................................................................... 12
4.1.4 Restore factory settings............................................................................................... 12
4.2 The Socket feature..................................................................................................................13
4.2.1 TCP Server mode.........................................................................................................13
4.2.2 TCP Client mode......................................................................................................... 14
4.2.3 UDP Server mode........................................................................................................14
4.2.4 UDP Client mode........................................................................................................ 15
4.3 Serial function........................................................................................................................ 15
4.3.1 Serial basic parameters................................................................................................15
4.3.2 Serial data is sent and received....................................................................................16
4.4 Advanced features.................................................................................................................. 17
4.4.1 Heartbeat pack function...............................................................................................17
4.4.2 The registration package feature................................................................................. 17
4.4.3 Short connection function........................................................................................... 18
4.4.4 Timed-out restart function........................................................................................... 18
4.4.5 Cache cleanup..............................................................................................................18
4.4.6 Disconnect automatically re-connected.......................................................................19
4.4.7 Remote upgrade...........................................................................................................19
4.5 Modbus gateway functionality............................................................................................... 20
4.5.1 Simple protocol conversion.........................................................................................21
4.5.2 Multi-host mode.......................................................................................................... 21
4.5.3 Storage gateway.......................................................................................................... 22
4.5.4 Configurable gateway..................................................................................................23
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
third parties of this document or any part thereof without the express permission of
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
fitness for a particular purpose of the information. This document may be revised by
Features
Before using the Ethernet plug-in module ("Module"), you need to prepare network cable,
computer, DuPont cable,USB re-serial converter and other related accessories. Here's how it works:
Table 2- 1 Prepare the list
serial Device tools quantity
number
1 module 1
2 Cable 1
3 Computer 1
4 DuPont Line 1
5 USB re-serial 1
converter
Test serial-to-network data communication, direct the serial pins of the module through the
outside of the USB re-serial converter, and connect to the PC side.
Connect the module's mesh(RJ45)to the network port on the PC side with a network cable.
The connection diagram looks like this:
Avoid problems such as server search failures(pings not working) and the inability to open web
pages during real-world applications. Check your computer's settings first.
(1) Turn off your computer's fire walls and antivirus software.
(2) Configure the network card connected to the device.
(3) For PC directly connected device servers, you need to set up a static network segment
on the computer that is the same as the device.
port
Serial Port Rate 115200
Serial parameters None / 8 / 1
After the above procedure, follow the factory default parameters of the equipment, perform the
following actions, to achieve data transfer testing.
Here are the steps:
(1) Open the test TCP/IP debug assistant software.
(2) The network set-up selects the TCP client mode, corresponding to the server IP address
(module default target IP: 192.168.3.3). The server port number sets port 8887(module default port:
8887)for themodule, click Create .
(3) Wait for the computer module, LED2 foot output low after successful connection.
(4) Open serial assistant, serial port rate set to 115200, serial port parameter set to
None/8/1,click open, open serial port.
(5) Data transmission test, serial assistant (serial terminal) to send test data, network
debugging assistant (network side) received test data. The network debugging assistant (network side)
sends test data, and the serial assistant (serial terminal) receives test data. Real two-way
communication (i.e. local-to-network two-way data transceiver).
3. Product overview
3.4 Dimensions
Figures 3- 3 Dimension
4. Product features
The device has a built-in web server, which makes it easy for users to set and query parameters
by means of web pages.
The port of the Web server is customizable by default:80
How to do this:
Open the browser, the address bar enters the IP address of the device, for example
192.168.3.7 (IP address and computer need to maintain the same network segment),forget
that native IP can be queried through the AT instructions and configuration software.
The web page pops up the main interface to query the settings.
You can also open the configuration button by configuring the software's open web page
configuration.
Note: If the port number is modified, the address input bar should be added with the port
number, for example, if the page access port is 8080,the connection page configuration needs to enter
192.168.3.7:8080in the addressbar.
An IP address is the identity of a module in a local area network and is unique in a local area
network. Therefore, it cannot be duplicated with other devices on the same LOCAL network. The
IP address of the module is available in both static IP and DHCP.
(1) Static IP static IP is a scenario that requires the user to manually set up and pay attention to
writing to both ip,subnet mask, and gateway, and static IP is suitable for scenarios where IP and
device statistics need to be made and one-to-one correspondence is required.
Advantages: Access to devices that cannot assign IP addresses can be searched through the full
network segment broadcast mode, which is convenient for unified management
Cons: Different lanyane segments result in the inability to perform normal TCP/UDP
communication.
(2)The main role ofDHCP is to dynamically obtain information such as IP address,Gateway
address,DNS server address,etc. from the gateway host, eliminating the tedious steps of setting up IP
addresses. Suitable for scenarios where IP is not required or required to correspond to module
one by one.
Pros: Devices with DHCP Server, such as access routers, can communicate directly, reducing the
hassle of setting up IP address gateways and subnet masks.
Cons: Access to a network without DHCP Serve, such as directly connected to a computer, the
module will not function properly.
Subnet masks are mainly used to determine the network number and host number of IP
addresses, indicating the number of subnets, and determining whether the module is a sign within the
subnet.
Subnet masks must be set, we commonly use the Class C subnet
mask:255.255.255.0,thenetwork number is the first 24 bits, the host number is the last 8 bits, the
number of subnets is 255, the module IP is in the 255 range, the module IP is considered in this
subnet.
A gateway is the network number of the network on which the module's current IP address is
located. If a device such as a router is connected to an off-network connection, the gateway is the
route.
DNS servers are primarily used to convert domain names into network-recognized IP addresses.
DNS server addresses can be customized to enable domain name resolution in the event of a local
domain name server exception. Devices report resolution requests to custom DNS servers when
domain name is resolved, having easy and efficient use.
In DHCP mode,DNS server addresses are automatically obtained and cannot be modified.
In static IP mode,DNS server factory address default:114.114.114.114.
The RST pin of the module lasts for more than 5 seconds at a low level until the device is
restarted and the factory settings can be restored.
The following table parameters are modified to factory default after the factory settings are
restored
TCP Server is the TCP server. In TCP Server mode, the device listens to the native port, accepts
the client's connection request, and establishes a connection for data communication. When Modbus
is turned off, when the device serial receives serial data, it is sent to all client devices that have a
connection to the device at the same time, supporting up to six client connections.
Typically used for intra-local area network communication with TCP clients.
TCP Client is the TCP client. When the device is working, it proactively initiates a connection
request to the server and establishes a connection to enable the interaction between serial and server
data. According to the TCP Protocol,TCP Client is a connection and disconnect to ensure reliable
exchange of data. Typically used for data interaction between devices and servers, it is the most
common form of networked communication.
Setting the service-side mode requires an accurate configuration of the target's IP
address/domain name, destination port.
UDP Server is when a device makes it unverifiable the data source IP address when
communicating with the UDP protocol, and after each UDP packet is received, the source IP address
of the packet is saved and the source port is set to the destination IP and port, so the data sent by the
device sends packets only to the source IP address and port where the last device received the data.
This mode is typically used in scenarios where multiple network devices communicate with the
device and where the frequency is high and the TCP Server cannot meet the criteria.
Note: InUDP mode, the network should send less than 5 12Bit per package to the device,
otherwise data loss will result.
UDP Client is a connectionless transport protocol that provides a simple, unreliable information
delivery service for transactions, with no connection established and disconnected, and only ips and
ports are needed to send data to each other. Typically used for data transfer scenarios where packet
drop rates are not required, packets are small and sent more frequently, and data is passed to the
specified IP.
In UDP Client mode, the device communicates only with the target port of the target IP, and
data from other IPs will not be received by the device.
In this mode, the destination address is set to 255.255.255,and the sending data will be
broadcast across the network segment, but the sending and receiving device needs to ensure that the
ports are consistent, and the device can also receive broadcast data.
The basic parameters of serial port include: Baud rate, data bit, stop bit, check bit.
Baud rate: Serial communication rate, configurable
1200,2400,4800,9600,14400,19200,38400,57600,1 15200 、230400bps。
Data bits: The length of the data bits, ranges 5,6,7,8.
Stop bit: The range can be set from 1 to 2.
Check bit: The check bit of data communication, support none,Odd,Even,Mark,Space five
checks By setting the serial parameters, keeping the serial parameters consistent with the serial
connection device serial parameters can ensure that the pass is carried out normally.
The serial assistant (serial terminal) sends test data, and the network debugging assistant
(network side) receives the test data. The network debugging assistant (network side) sends test data,
and the serial assistant (serial terminal) receives test data. Real two-way communication (i.e.
local-to-network two-way data transceiver).
Under Network Transmission mode, the user can choose to send a heartbeat package and
customize the heartbeat package time. Heartbeat Package supports network heartbeat pack, serial
heartbeat bag.
Heartbeat package send mode:
(1) The default is to turn off heartbeat mode.
(2) Serial mode - > The device sends heartbeat content to the serial bus at a set heartbeat
interval.
(3) Mesh Mode - > Device sends heartbeat content to the mesh bus at a set heartbeat
interval.
Custom heartbeat content (up to 38 bytes (ASCII) data,19 bytes (HEX) data).
Custom heartbeat package send interval, set to 0 when the heartbeat function is turned off, set
value greater than zero to open the heartbeat function, open the range: (1-65536)seconds, the default
value is 0.
Under Network Transmission mode, users can choose to send a registration package and
customize the registration package time.
The registration package supports the following modes:
(1) Send the MAC address(OLMAC)when the networkestablishes a connection to the
device
(2) Sends a custom enrollment package(OLCSTM)when the networkestablishes a
connection to the device
(3) Once the network is connected to the device, each packet of data that the device sends to
the network is preceded by a MAC address (EMBMAC).
(4) Once the network is connected to the device, each packet of data that the device sends to
the network is preceded by custom registration packet data(EMBCSTM).
Custom registration package content (up to 38 bytes (ASCII) data,18 bytes (HEX) data).
Note: Sending MAC using a connection and sending a custom registration package mode using
the connection does not work.
Support for network short connections (which are turned off by default),TCP short connections
are primarily used to save server resource overhead and are typically used in multipoint (multi-client)
to point (server) scenarios.
TCP short connection function is applied to TCP Client mode, after turning on the short
connection function, only when sending information request to connect to the server, after the
successful connection, in the set time serial port did not receive guide data or network port no data
transmission, the device will automatically disconnect. It is important to note that in the case of
disconnection, the data sent, the first packet of data will activate the short connection mechanism,
and the first frame of data will be lost.
Turn off the short connection feature when the short link hold time is set to 0. When the
setting range is(2-255)seconds, the short connection function is turned on and the default hold time
is 0 seconds.
Note: Short connections only work in client mode, and server mode does not take effect.
Supports time-out restart (default:300 seconds), which is mainly used to ensure long-term
stable operation of the device, no data is sent or received within the set time-out timeout, and the
device will restart operations to avoid the impact of abnormal conditions on communication.
Time-out restart time Parameter range(60-65535)seconds, configured to 0 for off timeout
restart. The default is 300 seconds.
When the TCP connection is not established, the data received by the serial port is placed in the
cache, the serial receive cache is 512 bytes, and after the network connection is successful, the serial
cache can be selected by configuration to empty the serial cache or to send the cache over the
network.
Enabled: The device does not save the data received by the serial port before the connection is
established.
Disabled: The network will receive serial cached data after the connection is established.
After the network is disconnected, the device attempts to actively connect to the server or waits
for the client to connect at a specified time, and if the timeout is timed out and the reconnection is
successful, the device will automatically restart, preventing the network from regaining connectivity
after the device is disconnected.
Reconnection time: The interval between each attempt by the device to re-establish the network.
Reconnections: The number of times the device attempts to re-establish the network, the
cumulative number of reconnections reaches a preset value, and if the connection is not successful,
the device will automatically restart.
The actual re-start determination time is off-grid re-connect time multiplied by the number of
re-connections.
The recommended network restart time is configured as 5S,with 5 network resets.
In order to facilitate later maintenance and upgrade functions as well as replace different
firmware,NA,NS,NT is supported online upgrades, through our company to provide upgrades
Firmware users can easily upgrade and replace the current firmware via the upper machine.
Firmware upgrade procedure:
The first step: open the upper computer, select the device that needs to be upgraded, open the device
upgrade assistant in the menu bar;
Step 3: refresh the device and select the corresponding device that needs to be upgraded;
Step 4: Wait for the device upgrade to complete and restart the device.
A simple protocol conversion is the conversion of Modbus RTU data to Modbus TCP data, as
well as Modbus TCP data to Modbus RTU data, enabling the interoperability of Ethernet protocol
data with serial protocol data.
Simple protocol conversions can work in TCP server mode or in TCP client mode, where only
one Modbus primary station can exist, whether working on a TCP server or a TCP client.
The gateway works in TCP server mode:
When the Ethernet side is the Main Station of Modbus, you can only connect all the way to
the Socket(to prevent data conflicts);
Serial side as Modbus main station, can be connected up to 6 Modbus TCP from the
station;
The gateway works in TCP client mode:
Ethernet side as Modbus main station, serial side theoretically supports up to 128 RTU
fromslung;
For simple protocol conversions, only one Modbus master can exist, a functional upgrade is
made, and bus occupancy scheduling occurs when multiple hosts are accessing the Modbus gateway
at the same time, thus resolving bus conflicts (currently only 6 host connections are supported), only
working in TCP server mode.
Because of the bus conflict detection mechanism, every addition to the Modbus master has an
Based on the multi-host development of the optimized network side read speed gateway, the
storage network side issued read instructions, when the network side reads the stored instructions, the
gateway will replace the RTU device to quickly reply to the MODBUS TCP instruction, serial side
automatically poll the RTU device register during the instruction storage time, update the data.
As an upgrade to multi-host mode, the storage gateway also works only in TCP server mode,
increasing the responsiveness on the network side.
peculiarity:
(1) The gateway allocates a total of 5K of space for storing instructions and returning
results;
(2) RTU responds to timeouts by automatically deleting storage instructions to ensure the
authenticity of the data;
(3) The gateway polls the RTU device based on the instruction storage time used for the
configuration,theMODBUS host does not query the instruction again during the storage
time, and the gateway automatically deletes the storage instruction to free up memory;
(4) The first instruction is transmitted directly to the RTU device;
(5) Only 01,02,0 3,04MODBUS function code storage is only supported;
Serial ports automatically poll the RTU device register (only the configuration of theMODBUS
read instruction) based on the configured MODBUS instructions, and the unconfigured instructions
and control instructions operate directly on the RTU device. You can store frequently read
instructions in the gateway in advance, reducing response time (querying configured instructions).
Due to the above characteristics, the serial side of the storage gateway can only be connected to the
Modbus from the station.
Use web pages to configure only 14 storage instructions, and upsces and AT instructions to
configure 50 storage instructions.
It can improve the response speed of simple protocol conversion but has some effect on stability,
and it can be used in scenarios where real-time response is more demanding.
You can customize the settings by means of web settings. Open your browser, enter your device
IPin the address bar(default:192.168.3.7),go to thepage, query, set parameters, and finally click on
the Submit menu to wait for the page to return a successful prompt for it to take effect.
Note: Devices cannot use Web settings if they are connected to the server as client mode and
successfully connected as a server
Note: Web settings cannot be used with domain name resolution on or DHCP on without an IP
address.
As shown in the attached image.
Open the configuration tool software, search for devices, double-click on the recognized devices,
pop up the parameter query configuration interface. You can customize the relevant parameters
according to the needs, and then save the configuration, restart the device, complete the parameter
modification.
The relevant parameters of the module are queried and modified, which can be done through the
AT instruction configuration. For specific AT instructions, refer to serial server AT instruction sets.
6. Revised history
The final interpretation is owned by Chengdu ebyte Electronic Technology Co., Ltd.
7. About us