Chapter 1 Product Introduction NB124E 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.
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 NB124E serial server device are shown in the table below.
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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.
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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:...
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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;...
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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 14
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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;...
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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;...
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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.
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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.
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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 20
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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...
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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 22
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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 23
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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):...
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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).
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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.
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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).
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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.
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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...
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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).
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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 32
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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".
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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.
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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 35
Chengdu Ebyte Electronic Technology Co.,Ltd NB124E_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.
Need help?
Do you have a question about the NB124E and is the answer not in the manual?
Questions and answers