Ebyte NT1-B User manual

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
1
NT1-B User Manual
Serial ⇌Ethernet
Serial Server

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. I
CONTENTS
Disclaimer .......................................................................................................................................................................1
1 Product Overview ........................................................................................................................................................2
1.1 Brief Introduction .............................................................................................................................................2
1.2 Feature .............................................................................................................................................................. 2
2 Quick Start ...................................................................................................................................................................3
2.1 Preparation for use ........................................................................................................................................... 3
2.2 Device wiring ................................................................................................................................................... 3
2.3 Software Settings ............................................................................................................................................. 4
2.3.1 Network test environment .....................................................................................................................4
2.3.2 Default parameters ................................................................................................................................ 5
2.3.3 Data transmission test ........................................................................................................................... 5
3 Product Overview ........................................................................................................................................................7
3.1 Technical parameters ........................................................................................................................................7
3.2 Interface and Indicator Description ................................................................................................................. 8
3.3 Dimensions .......................................................................................................................................................9
4 Functional Introduction ............................................................................................................................................. 10
4.1 Serial port parameters .................................................................................................................................... 10
4.2 Introduction to basic functions .......................................................................................................................10
4.2.1 Web page configuration ...................................................................................................................... 10
4.2.2 Subnet mask/IP address .......................................................................................................................12
4.2.3 Domain Name Resolution (DNS) ....................................................................................................... 13
4.2.4 Restore factory settings .......................................................................................................................13
4.3 Socket function ...............................................................................................................................................13
4.3.1 TCP server mode ................................................................................................................................. 13
4.3.2 TCP Client Mode ................................................................................................................................ 13
4.3.3 UDP Server Mode ............................................................................................................................... 13
4.3.4 UDP Client Mode ................................................................................................................................14
4.3.5 HTTP Client Mode ..............................................................................................................................14
4.3.6 MQTT Client mode .............................................................................................................................16
4.4 Advanced Features ......................................................................................................................................... 19
4.4.1 Random native port .............................................................................................................................19
4.4.2 Heartbeat Packet Function .................................................................................................................. 19
4.4.3 Registration package function .............................................................................................................20
4.4.4 Short connection function ................................................................................................................... 20
4.4.5 Timeout restart function ...................................................................................................................... 20
4.4.6 Cache cleaning function ......................................................................................................................21
4.4.7 Network disconnection and reconnection ...........................................................................................21
4.4.8 Remote upgrade .................................................................................................................................. 21
4.5 Modbus Gateway ........................................................................................................................................... 22
4.5.1 Modbus RTU and Modbus TCP protocol conversion ........................................................................ 22
4.5.2 Simple Protocol Conversion Mode .....................................................................................................23
4.5.3 Multi-host mode ..................................................................................................................................23

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. II
4.5.4 Storage Gateway ................................................................................................................................. 24
4.5.5 Configurable Gateway ........................................................................................................................ 24
4.5.6 Automatic upload ................................................................................................................................ 25
5 Configuration Mode .................................................................................................................................................. 27
5.1 Web Settings ...................................................................................................................................................27
5.2 Configuration tool software settings ..............................................................................................................27
5.3 AT command configuration ............................................................................................................................27
Revision history ............................................................................................................................................................28
About us ........................................................................................................................................................................28

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 1
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.
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
EBYTE at any time. For most recent documents, visit www.ebyte.com.
Note:
The contents of this manual are subject to change due to product version upgrades or other reasons.Chengdu
Ebyte Electronic Technology Co.,Ltd. reserves the right to make changes to the contents of this manual without
notice or suggestion.This manual serves only as a user guide and Chengdu Ebyte Electronic Technology Co.,Ltd.
endeavours to provide accurate information in this manual, but Chengdu Billionaire Electronics Co., Ltd. does not
ensure that the contents are completely error-free and that all statements, information and suggestions in this
manual do not constitute any express or implied warranty.

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 2
1 Product Overview
1.1 Brief Introduction
NT1-B is a module (also known as "super network port") that realizes serial data ⇌
Ethernet data transmission, and is packaged with 2.54mm pitch pins;
Support multiple Modbus gateways and IoT gateways (MQTT and HTTP);
It can meet the networking functions of various TTL level serial devices and MCUs;
1.2 Feature
RJ45 adaptive 10/100M Ethernet interface;
Support multiple working modes (TCP Server, TCP Client, UDP Server, UDP Client, HTTPC, MQTTC);
Support three configuration methods: configuration tool, web page and AT command;
Server mode supports multiple socket connections;
Support multiple baud rates;
Support multiple check (None, Odd, Even, Mark, Space);
Support multiple serial flow control configurations (NONE,CTS/RTS, DSR/DTR, XON/XOFF);
Support DHCP function;
Support DNS (domain name resolution), and custom domain name resolution server;
Support multiple Modbus gateways (simple protocol conversion, multi-host mode, storage gateway,
configurable gateway, etc.);
Supports quick access to Alibaba Cloud, Baidu Cloud, OneNET, Huawei Cloud, and standard MQTT
servers of version 3.1;
Support HTTP protocol (GET/POST request)
Support virtual serial port;
Support timeout restart function, time can be customized;
Support short connection function, short connection interval time customization;
Support heartbeat package and registration package function;
Support serial port cache cleaning function;
Support access to external network and local area network;
Support hardware reset to factory settings;
Support online upgrade function.

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 3
2 Quick Start
2.1 Preparation for use
Before using the serial server (hereinafter referred to as "device"), you need to prepare network cables,
computers, USB-to-serial converters and other related accessories. details as follows:
NT1-B
Cable
Computer
USB to TLL(E15-USB-T2)
Dupont Line
2.2 Device wiring
Step 1: Connect the USB to serial port to provide power for the device and serial port data conversion, the
TXD of the conversion tool is connected to the RXD of the device, the RXD of the conversion tool is connected to

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 4
the TXD of the device, and the GND is connected correspondingly (the GND connection cannot be omitted);
Step 2: Connect the RJ45, the device is in the network cable detection mode when the network cable is not
connected, and does not enter the working state;
2.3 Software Settings
2.3.1 Network test environment
Avoid server search failures and inability to open web page configuration and other related problems in the
actual application process. Check the computer settings first .
(1) Turn off the firewall and anti-virus software of the computer;
(2) Configure the network card connected to the device;
(3) In this case, the PC is directly connected to the computer, and the static IP of the computer needs to be
configured. The static IP of the computer, refer to the PC direct connection configuration) or the router needs to
ensure that the device and the PC are on the same network end (for example: 192.168.3.xxx);
(4) Here, configure the static IP of the PC as 192.168.3.3 (the factory default destination IP of the serial port
server), configure the subnet mask as 255.255.255.0, and configure the default gateway as 192.168.3.1;

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 5
2.3.2 Default parameters
Item
default parameters
IP Address
192.168.3.7
Default local port
8887
subnet mask
255.255.255.0
default gateway
192.168.3.1
Default working mode
TCP Server
Default destination IP
192.168.3.3
Default destination port
8888
Serial port baud rate
115200
Serial port parameters
None / 8 / 1
2.3.3 Data transmission test
After the above operation steps, follow the factory default parameters of the device and perform the following
operations to realize the transparent transmission test of data.
The operation steps are as follows:
(1) Open the test TCP/IP debugging assistant software.
(2) Select the TCP client mode (TCP Client) in the "Network Setting Area", corresponding to the remote host
address (the default local IP of the device: 192.168.3.7). The remote host port corresponds to the factory port 8887
of the device, click Connect.
(3) Wait for the computer to connect to the serial server. After the connection is completed, the LINK light of
the serial server is always on.
(4) Open the serial port assistant, select the corresponding serial port, set the baud rate to 115200, set other
serial port parameters to None/8/1, and click "Open Serial Port".

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 6
Data transmission test, the serial port assistant (serial port side) sends the 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 port assistant (serial port) receives test data. Realize duplex communication (that is, two-way data sending
and receiving from local to network).

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 7
3 Product Overview
3.1 Technical parameters
Item
Instruction
Operating Voltage
3.0 ~5.5V(DC)
current drain
9mA @ 5V
Interface
TTL(2.54 mm Pin)
Ethernet port (RJ45)
Work Mode
TCP Server、TCP Client、UDP Server、UDP Client、HTTP Client、
MQTT Client(default TCP Server)
Socket connection
Support 6-way client connection (TCP server mode)
Network protocol
IPv4、TCP/UDP、HTTP、MQTT
How to get IP
DHCP、Static IP (default static IP)
DNS
Support
DNS server
Customizable (default 114.114.114.114)
Configuration method
Web pages, configuration tools, AT commands
IP address
Customizable (default 192.168.3.7)
local port
Customizable (default 8887)
subnet mask
Customizable (default 255.255.255.0)
gateway
Customizable (default 192.168.3.1)
target IP
Customizable (default 192.168.3.3)
destination port
Customizable (default 8888)
Serial port cache
1024Byte
Packaging mechanism
512 Byte
Serial port baud rate
1200 ~230400 bps(default 115200)
data bits
5、6、7、8(default 8)
stop bit
1、2(default 1)
Check Digit
None、Odd、Even、Mark、Space(default None)
Flow Control
NONE、CTS/RTS、DSR/DTR、XON/XOFF(default None)
Product Size
35mm * 22mm * 21mm (length*width*height)
product weight
8.8g ± 1g
Working temperature
and humidity
-40 ~+85℃、5% ~95%RH(no condensation)
Storage temperature
and humidity
-40 ~+105℃、5% ~95%RH(no condensation)

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 8
3.2 Interface and Indicator Description
No.
Pins
Function
Instruction
1,2,3,4,13
NC
Reserve
This pin is left floating by default
5,7
GND
Ground
Common ground end, power negative input.
6
VCC
Power
Power forward input, support 3to5.5V input.
8
RX_LED
Serial input
feedback
Serial receiver indicator output, default output high, low output
when data input, continuous data output cycle 80ms,low 20ms
square wave signal.
9
TX_LED
Serial output
feedback
Serial send indicator output, default output high, low output
when data output, continuous data output cycle 80ms,low 20ms
square wave signal.
10
IO_RST
Factory
setting pins
Recover factory pin, need external reset button, low level
effective.
11
LED1
Running
feedback
Run the LED, and after the module is initialized, the foot
outputs a 5hz square wave.
12
LED2
Link status
feedback
The network port link indicator output, the default output high
level, the output low level after the connection is successful
under the TCP protocol, and the default output low level under
the UDP protocol;
14
RST
External reset
input
External reset input, low active.
15
CTS
Flow control
pin
MODEM input signal for UART0, clear send.

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 9
16
485_EN
Soft control
enable pin
The RS485 software enables the control pin, which is high-level
output when the serial port sends data and low output by
default.
17
RXD
Serial signal
input
serial data entry, data communication serial port, Available for
firmware upgrades.
18
TXD
Serial signal
output
serial data output, data communication serial port, can be used
for firmware upgrades.
19
RTS
Flow control
pin
MODEM output signal, requested to be sent.
20
RUN
Running
lights
Periodically flashes when the running indicator is working
21
PWR
Power light
Power input indicator
3.3 Dimensions

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 10
4 Functional Introduction
4.1 Serial port parameters
The basic parameters of the serial port include: baud rate, data bits, stop bits, and parity bits.
Baud rate: serial communication rate, configurable 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600,
115200, 230400bps.
Data Bits: The length of the data bits, the range is 5, 6, 7, 8.
Stop bit: range 1, 2 can be set.
Check digit: The check digit of data communication, supports five check modes: None, Odd, Even, Mark,
Space.
Flow Control: NONE、CTS/RTS、DSR/DTR、XON/XOFF
4.2 Introduction to basic functions
4.2.1 Web page configuration
The device has a built-in web server, which is convenient for users to set and query parameters through web
pages.
The port of the web server can be customized (2-65535), default: 80
Operation method (Microsoft Edge version 94.0.992.50 is an example, it is recommended to use Google
kernel browser, IE kernel browser is not supported):
Step 1: Open the browser, enter the IP address of the device in the address bar, for example 192.168.3.7 (the
IP address and the computer need to keep the same network segment), if you forget the IP of the machine, you can
query it through AT commands and configuration software

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 11
Step 2: The webpage pops up the main interface, and you can query and set relevant parameters;
Step 3: Click Submit to save the configuration parameters after entering the correct key. The factory default
key is: 123456;
Step 4: The progress bar indicates the configuration progress. Do not refresh the web page again after the
configuration is completed (refresh the web page to enter the configuration mode again, you can restart the device
or submit it again to enter the communication mode);

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 12
It can also be opened through the Open Web Configuration button of the configuration software.
[Note] If the port number is modified, the port number should be added to the address input field. For example,
if you modify the web page access port to 8080, you need to enter 192.168.3.7:8080 in the address bar to connect to
the web page configuration.
4.2.2 Subnet mask/IP address
The IP address is the identification of the module in the local area network and is unique in the local area
network. Therefore, it cannot be duplicated with other devices on the same local area network. There are two ways
to obtain the IP address of the module, static IP and DHCP.
(1) Static IP: Static IP needs to be set manually by the user. In the process of setting, pay attention to writing IP,
subnet mask and gateway at the same time. Static IP is suitable for scenarios where IP and device statistics are
required and one-to-one correspondence is required.
Advantages: Access to devices that cannot be assigned IP addresses can be searched through the broadcast
mode of the entire network segment, which is convenient for unified management;
Disadvantages: Different network segments in different LANs, resulting in normal TCP/UDP communication.
(2) Dynamic DHCP: The main function of DHCP is to dynamically obtain the IP address, gateway address,
DNS server address and other information from the gateway host, thereby eliminating the tedious steps of setting
the IP address. It is suitable for scenarios where there is no requirement for IP, and there is no mandatory
one-to-one correspondence between IP and modules.
Advantages: devices with DHCP Server such as access routers can communicate directly, reducing the trouble
of setting IP address gateway and subnet mask.
Disadvantage: Connecting to a network without DHCP Server, such as direct connection with a computer, the
module will not work properly. The subnet mask is mainly used to determine the network number and host number
of the IP address, to indicate the number of subnets, and to determine whether the module is in the subnet. The
subnet mask must be set. Our commonly used class C subnet mask: 255.255.255.0, the network number is the first
24 bits, the host number is the last 8 bits, the number of subnets is 255, and the module IP is in the range of 255
within this subnet, the module IP is considered to be in this subnet. Gateway refers to the network number of the
network where the current IP address of the module is located. If a device such as a router is connected to the
external network, the gateway is the router

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 13
4.2.3 Domain Name Resolution (DNS)
Domain name resolution translates domain names into network-recognized IP addresses through Domain
Name Resolution (DNS) servers. The domain name resolution (DNS) server address of the serial port server
supports user definition, and can realize domain name resolution through a custom domain name resolution server
in the event of an abnormal domain name server. The device will report the resolution to the custom domain name
resolution (DNS) server during domain name resolution. Request, return the device connection parameters (usually
the IP address) after the parsing is completed.
In DHCP mode, the domain name resolution (DNS) server address is automatically obtained (synchronized
with the router's domain name resolution address) and cannot be modified.
In static IP mode, the factory default address of the Domain Name Resolution (DNS) server is
114.114.114.114.
4.2.4 Restore factory settings
Press and hold the Reload pin of the device until the LED indicator lights up to release the key.
4.3 Socket function
4.3.1 TCP server mode
TCP Server is the TCP server. In TCP Server mode, the device listens to the local port, accepts the client's
connection request and establishes a connection for data communication. When the Modbus gateway function is
turned off, the device sends the data received by the serial port to all client devices that establish connections with
the device, and supports connecting up to 6 clients. After the Modbus gateway function is enabled, the non-Modbus
data will be cleared and not forwarded.
Typically used for communication with TCP clients within a local area network.
4.3.2 TCP Client Mode
TCP Client is the TCP client. When the device is working, it will actively initiate a connection request to the
server and establish a connection to realize the interaction between serial port data and server data.
To use the client, you need to configure the target IP address/domain name and target port accurately.
4.3.3 UDP Server Mode
UDP Server means that the device does not verify the IP address of the data source when communicating with
the UDP protocol. After receiving a UDP data packet, it saves the source IP address and source port of the data
packet, and sets it as the destination IP and port, so The data sent by the device only sends data packets to the
source IP address and port where the device received data last time .

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 14
This mode is usually used in scenarios where multiple network devices communicate with this device, and the
frequency is high, and the TCP Server cannot meet the conditions.
Using UDP Server requires the remote UDP device to send data first, otherwise the data cannot be sent
normally.
[Note] In UDP mode, the data sent by the network to the device should be less than 512Bit per packet,
otherwise it will cause data loss
4.3.4 UDP Client Mode
UDP Client is a connectionless transmission protocol that provides transaction-oriented simple and unreliable
information transmission services. There is no connection establishment and disconnection, and data can be sent to
the other party only by configuring the destination IP and destination port. It is usually used in data transmission
scenarios where there is no requirement for the packet loss rate, the data packets are small and the transmission
frequency is fast, and the data is to be transmitted to the specified IP.
In UDP Client mode, the device will only communicate with the configured (target IP and target port) remote
UDP devices.
In this mode, the target address is set to 255.255.255.255, and the sent data will be broadcast on the entire
network segment, but the transceiver device needs to ensure that the ports are consistent, and the device can also
receive broadcast data.
4.3.5 HTTP Client Mode
This mode can realize the function of HTTP grouping. It provides two modes: GET and POST. Customers can
configure URL, Header and other parameters by themselves, and the device (serial port server) will send packets to
realize fast communication between the serial port device and the HTTP server. In HTTP client mode, it is
recommended to use random ports and enable short connections to save HTTP server resources.

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 15
Configure the local network parameters and the HTTP server address and port(You are advised to enable
DHCP and random ports), As shown in the figure below(Above is the upper computer, below is the web page):
Return standard HTTP frame data (left image) and only valid data (right image):
Parameter configuration description as shown in the figure (GET on, POST is under):

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 16
4.3.6 MQTT Client mode
The serial port server supports quick access to standard MQTT3.1.1 protocol servers (OneNET, Baidu Cloud,
Huawei Cloud, user-built and other server types) and Alibaba Cloud servers, supports service quality level
configuration (QoS 0, QoS 1), and supports super long text Configuration, convenient and better access to network
service operators (server address, three elements, subscription and publishing addresses support up to 128
characters of configuration).

Chengdu Ebyte Electronic Technology Co.,Ltd. NT1-B_User_Manual
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd. 17
To use MQTT function, advanced Settings such as short links should be turned off as shown in the figure
below (upper computer and webpage configuration as shown below) :
1) standard MQTT3.1.1 and Baidu Cloud and Huawei Cloud and OneNET(Left: software, right: web page)
Table of contents
Other Ebyte Control Unit manuals

Ebyte
Ebyte E32-400T20S User manual

Ebyte
Ebyte E01-2G4M01S1B User manual

Ebyte
Ebyte E104-BT5032A User manual

Ebyte
Ebyte E78-400M22S User manual

Ebyte
Ebyte E22-400T33S User manual

Ebyte
Ebyte E31-400M17S User manual

Ebyte
Ebyte E22-900M30S User manual

Ebyte
Ebyte E108-GN02D User manual

Ebyte
Ebyte E220-400M30S User manual

Ebyte
Ebyte E180-Z5812SP User manual

Ebyte
Ebyte E78-900M22S1A User manual

Ebyte
Ebyte E79-900DM2005S User manual

Ebyte
Ebyte E840-TTL-NB03 User manual

Ebyte
Ebyte E180-Z5812SX User manual

Ebyte
Ebyte E18 Series User manual

Ebyte
Ebyte E78-915LN22S (6601) User manual

Ebyte
Ebyte E19-868M20S User manual

Ebyte
Ebyte E104-BT06 User manual

Ebyte
Ebyte E22-400T22D User manual

Ebyte
Ebyte E820-AIO User manual