background image

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 .

Содержание NT1-B

Страница 1: ...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 ...

Страница 2: ... 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 Pa...

Страница 3: ...2 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 ...

Страница 4: ... 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...

Страница 5: ...s 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 ...

Страница 6: ... 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 ...

Страница 7: ...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 ...

Страница 8: ...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 888...

Страница 9: ...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 ...

Страница 10: ...14 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 ra...

Страница 11: ...l 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 f...

Страница 12: ...ds 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 ...

Страница 13: ...heck 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 recomme...

Страница 14: ...ant 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...

Страница 15: ...ement 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...

Страница 16: ...ket 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 connectin...

Страница 17: ...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...

Страница 18: ...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 ...

Страница 19: ...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 ...

Страница 20: ...te 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 ...

Страница 21: ...a topic for communication testing Select the corresponding product go to Custom Topic under the Topic class list for details please refer to the Alibaba Cloud documentation click Define Topic Class set the name to 1234 and grant publish and subscribe permissions for data return pass Configure the device connection parameters as shown in the following figure ProductKey a1GlhuTU1yN DeviceName DEV04 ...

Страница 22: ...when configuring the TCP client HTTP client and MQTT client modes 4 4 2 Heartbeat Packet Function In client mode users can choose to send heartbeat packets and set the time of heartbeat packets by themselves The heartbeat packet can be selected in two modes network heartbeat packet and serial port heartbeat packet It supports hexadecimal and ASCII transmission This heartbeat packet is not MQTT hea...

Страница 23: ...vice to the network is prepended with custom registration packet data EMBCSTM Custom registration package content maximum support 40 bytes ASCII data 20 bytes HEX data 4 4 4 Short connection function In client mode short network connection is supported this function is disabled by default TCP short connection is mainly used to save server resource overhead and is generally used in multi point mult...

Страница 24: ...the device from disconnecting from the network Unable to restore connection Disconnection and reconnection time The time interval between each attempt of the device to re establish the network Number of reconnections The number of times the device tries to re establish the network and the cumulative number of requests reaches the preset value If the connection is not successful the device will aut...

Страница 25: ...o be upgraded Step 4 Click to start the upgrade the device indicator flashes and wait for the upgrade to complete Note When the device is just powered on click Search Device in the upgrade assistant the device will enter the firmware burning state and it will return to normal mode after power off and restart 4 5 Modbus Gateway 4 5 1 Modbus RTU and Modbus TCP protocol conversion ...

Страница 26: ...t is working in there can only be one Modbus master station Simple protocol conversion configuration TCP server mode as an example the upper computer on the left web page on the right 4 5 3 Multi host mode There is only one Modbus master station for relatively simple protocol conversion while the multi master mode can handle up to 6 Modbus TCP masters One request is processed at a time while the m...

Страница 27: ...ts 2 The RTU response time out automatically clears the cache to ensure the real time and authenticity of the data 3 The polling interval can be customized 0 65535ms 4 The gateway will poll the RTU device according to the storage time of the instruction used for configuration If the MODBUS host does not query the instruction again during the storage time the gateway will automatically delete the s...

Страница 28: ...configuration Left picture software right picture web page 4 5 6 Automatic upload In client mode TCP client UDP client etc the gateway will automatically poll the instructions in the stored instruction table and upload it to the server and the feedback format Modbus RTU format or Modbus TCP format can be selected according to the requirements and the command polling interval 0 65535ms For instruct...

Страница 29: ...ngdu Ebyte Electronic Technology Co Ltd NT1 B_User_Manual Copyright 2012 2022 Chengdu Ebyte Electronic Technology Co Ltd 26 TCP client demo Modbus RTU format on the left and Modbus TCP format on the right ...

Страница 30: ...mpatibility mode QQ browser compatibility mode and other browsers using IE core are not supported to use web page configuration 5 2 Configuration tool software settings Open the configuration tool software search for devices double click the identified device and the parameter query configuration interface will pop up You can customize and modify relevant parameters according to your needs then sa...

Страница 31: ...13 Content revision LZX 1 2 2022 02 12 Adapt to 9013 2 xx firmware LC 1 3 2022 07 29 Change manual illustration LC 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 t...

Отзывы: