Advertisement

Quick Links

NB124ES
Dual Serial Port Server User Manual
NB124
Dual serial port server User Manual
Copyright ©2012–2023,
Chengdu Ebyte Electronic Technology Co.,Ltd

Advertisement

Table of Contents
loading

Summary of Contents for Ebyte NB124ES

  • Page 1 NB124ES Dual Serial Port Server User Manual NB124 Dual serial port server User Manual Copyright ©2012–2023, Chengdu Ebyte Electronic Technology Co.,Ltd...
  • Page 2: Table Of Contents

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Content Chapter 1 Product Introduction ........................... 1 1.1 Functions and Features ............................1 Chapter 2 Quick Start ..............................2 2.1 Hardware preparation ............................2 2.2 Software Preparation ............................2 2.3 Device default parameter test steps ........................3 2.3.1 Hardware connection ..........................3...
  • Page 3 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 5.4.3 Storage gateway ............................26 5.4.4 Configurable Gateway ..........................27 5.4.5 Automatically upload ..........................29 5.5 Firmware upgrade ............................30 5.5.1 UDP upgrade ............................30 5.5.2 Serial upgrade ............................32 Revision History ................................34 About Us ..................................34 Copyright ©2012–2023,...
  • Page 4: Chapter 1 Product Introduction

    Chapter 1 Product Introduction NB124ES is a 2-way serial port server that supports POE power supply. It integrates the TCP/IP protocol stack inside, which can realize data transparent transmission from the 2-way serial port to the Ethernet port. The device has the function of ModBus gateway, supports Modbus TCP to RTU, and supports automatic polling.
  • Page 5: Chapter 2 Quick Start

    【Note】 Only use one RS485 interface for demonstration, and please use the corresponding USB converter for other interfaces; 2.2 Software Preparation Serial port debugging assistant (XCOM), network debugging assistant (TCP/IP debugging assistant), Ebyte network configuration tool (configuration host computer), official website address: www.cdebyte.com, product Copyright ©2012–2023,...
  • Page 6: Device Default Parameter Test Steps

    In order to let users have a simple understanding of the serial server, we use the default parameters of the serial server to conduct data transparent transmission tests. The default parameters of NB124ES serial server device are shown in the table below.
  • Page 7: Turn Off The Computer Firewall

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Item no. Default parameters IP address 192.168.3.7 Subnet mask 255.255.255.0 gateway 192.168.3.1 Channel 1 working mode TCP_SERVER Channel 1 local port 8001 Serial port baud rate 115200 Serial port parameters NONE/8/1/NONE Make sure that the computer IP and serial server IP are in the same network segment and cannot conflict.
  • Page 8: Open "Serial Port Assist

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 2.3.4 Open “serial port assist” Choose correct COM number, configure correct serial port parameters(115200-8N1) ,open the serial port, as shown in the below: 2.3.5 Open Net assist Choose“TCP Client”,set remote IP as“192.168.3.7”,set remote port as“8001”as shown in below:...
  • Page 9: Tx, Rx Data Test

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 2.3.6 TX, RX data Test Click the 【send】botton on the “Net assist”and “Serial port asssit” respectively,it can do transparent transmission between net and serial port successfully, as shown in the below picture: Copyright ©2012–2023,...
  • Page 10: Chapter 3 Product Review

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Chapter 3 Product Review 3.1 Technical Parameters Port Item Instructions Crimp terminal DC 8~28 power supply; Crimp terminal: 5.08mm Phoenix terminal Power supply DC female head DC female head: straight plug-in round hole, OD 5.5mm, ID 2.0mm;...
  • Page 11: Interface Description

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Storage temperature and -40 ~ +105℃、5% ~ 95%RH(no condensation) humidity 3.2 Interface description 序号 名称 功能 说明 Standard DB9 female head,2-TXD、3-RXD、 RS232-2 Serial port 2-RS232 5-GND Standard DB9 female head,2-TXD、3-RXD、 RS232-1 Serial port 1-RS232...
  • Page 12: Indicator Light Description

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Serial port 1-RS422 -T+ RS422-1-T+/A 3.81mm Phoenix terminal Serial port 1-RS485 A Serial port 1-RS422 -T- RS422-1-T-/B 3.81mm Phoenix terminal Serial port 1-RS485 B RS422-2-R+ Serial port 2-RS422 -R+ 3.81mm Phoenix terminal RS422-2-R- Serial port 2-RS422 -R- 3.81mm Phoenix terminal...
  • Page 13 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Channel 1 data Data sending and receiving: flashes when the network or DATA1 indicator serial port sends and receives data; No link connection: the indicator light is off; Channel 2 Status LINK2 With link connection: the indicator light is always on;...
  • Page 14: Size

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 3.4 Size Copyright ©2012–2023, Chengdu Ebyte Electronic Technology Co.,Ltd...
  • Page 15: Chapter 4 Basic Functions

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Chapter 4 Basic functions 4.1 Correspondence between channel and serial port Baud rate:2400、4800、9600、14400、19200、38400、57600、76800、115200bps; Data bit:Only supports 8 bits; Parity bit: support no parity (NONE), odd parity (ODD), even parity (EVEN); Hardware flow control: not supported;...
  • Page 16: Timeout Restart (Restart Without Data)

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual reconnection request. Therefore, the "disconnection reconnection time" will not affect the connection establishment time under normal circumstances. The user can customize the reconnection request period, and the default is 5s. 4.2.4 Timeout restart (restart without data) The device monitors data sending and receiving.
  • Page 17: Tcp Client

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 4.4.2 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.
  • Page 18: Http Client

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual broadcast on the entire network segment, but the sending and receiving devices need to ensure that the ports are consistent, and ensure the device can also receive broadcast data. 【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.
  • Page 19 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Configuration instructions: Turn on the upper computer, search for the device and enter the device configuration interface, configure the "network parameters" first, it is recommended to use the DHCP function to avoid incorrect configurations that cause device IP exceptions (network segment errors, IP conflicts, etc.), and then configure the...
  • Page 20: Mqtt Client

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Instructions for POST, in the header data configured as a POST request, there is no need to configure the header of the data length separately (for example: Content-length: 2729), the device will automatically calculate the data length and group the packet to send, other header data needs to be manually configured, and support up to 128 bytes data configuration.
  • Page 21 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual (1) 、 To select the standard MQTT3.1.1, Baidu Cloud, OneNET, and Huawei Cloud configurations, you can refer to the following table to fill in the parameters: Standard Parameters Baidu Cloud OneNET MQTT3.3.1 Device name...
  • Page 22 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual (2) 、 Ali Cloud It supports the use of Ali Cloud's "three elements" to directly connect to the server. To obtain the "three elements", as shown in the figure (only for demonstration cases, users need to use self-built parameters to connect):...
  • Page 23: Channel Port

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Ali Cloud MQTT platform communication test: 4.6 Channel port Random Port: TCP client, UDP client, HTTP client, MQTT client can configure the local port as 0 (use random local port), server mode cannot use random port, otherwise the client cannot establish the connection correctly (The device is not properly listening on the port).
  • Page 24: Chapter 5 Advanced Features

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Chapter 5 Advanced Features 5.1 Heartbeat package and registration package 5.1.1 Heartbeat package In client mode, users can choose to send heartbeat packets and customize the heartbeat packet time. The heartbeat packet can choose network heartbeat packet and serial port heartbeat packet. It supports hexadecimal and ASCII code sending.
  • Page 25: Short Connection

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual registration package (OLCSTM) is sent. 3. After the connection between the network and the device is established, each packet of data sent by the device to the network will be preceded by a MAC address (EMBMAC).
  • Page 26: Modbus Gateway

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 5.4 Modbus gateway 5.4.1 Simple Protocol Conversion Convert Modbus RTU data to Modbus TCP data, or convert Modbus TCP data to Modbus RTU data, and realize the mutual conversion between Ethernet Modbus data and serial port Modbus data.
  • Page 27 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Software register reading and emulation configuration: Poll menu selection SetupRead/Write Definition Slave menu selection SetupSlave Definition Communication demo: Copyright ©2012–2023, Chengdu Ebyte Electronic Technology Co.,Ltd...
  • Page 28: Multi-Host Mode

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 5.4.2 Multi-host mode Relatively simple protocol conversion can only have one Modbus master station, while the multi-host mode can access multiple Modbus TCP hosts at the same time. When multiple Modbus hosts access at the same time, the...
  • Page 29: Storage Gateway

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Refer to "Simple Protocol Conversion" for software configuration and register configuration, and open multiple Modbus Poll software at the same time (3 channels as an example, and a single server model can support up to 9 channels).
  • Page 30: Configurable Gateway

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual directly returns the data cached in the storage area, which greatly To a certain extent, the multi-host request processing capability of the gateway is improved, and the time consumed by the entire request process is also shortened.
  • Page 31 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual table will directly operate the RTU device, and the frequently read commands can be stored in the gateway in advance, which can shorten the Response time (command to query configuration), the data will not be sent directly to the server and will only be returned after the request of the Modbus host, which is similar to the use method of "simple protocol conversion".
  • Page 32: Automatically Upload

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 5.4.5 Automatically upload In the client mode (TCP client, UDP client, MQTT client, HTTP client) the gateway will automatically poll the instructions stored in the instruction table and upload them to the server. You can choose the feedback format (Modbus RTU format or Modbus TCP format) according to your needs.
  • Page 33: Firmware Upgrade

    Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual 5.5 Firmware upgrade Users can upgrade the firmware of the device through the "亿佰特网络配置工具". 5.5.1 UDP upgrade Step 1: Open the "亿佰特网络配置工具", and select "Device Upgrade Assistant" under the "Menu" option; Step 2: Select the firmware to be used, which needs to be obtained from the "Related Downloads"...
  • Page 34 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual Step 3: Click "Search Device", the device list will display the currently found device, click "Stop Search". After selecting the device to be upgraded, click Start to upgrade, and wait for the host computer to display that the upgrade is complete.
  • Page 35: Serial Upgrade

    Step 4: Click "Start Upgrading", press the button Reload of NB124ES and then turn on the power of the device, wait for the firmware upgrade to complete, click "Cancel" to end the serial port Copyright ©2012–2023,...
  • Page 36 Chengdu Ebyte Electronic Technology Co.,Ltd NB124ES_User Manual upgrade; Copyright ©2012–2023, Chengdu Ebyte Electronic Technology Co.,Ltd...
  • Page 37: Revision History

    Initial version About Us Technical support: support@cdebyte.com Documents and RF Setting download link::https://www.cdebyte.com Thank you for using Ebyte products! Please contact us with any questions or suggestions: info@cdebyte.com ---------------------------------------------------------------------------------------------------------------------------------- Official hotline:028-61399028 Web: https://www.cdebyte.com Address: B5 Mould Park, 199# Xiqu Ave, High-tech District, Sichuan, China Copyright ©2012–2023,...

Table of Contents