Ebyte NB114 User Manual
Hide thumbs Also See for NB114:

Advertisement

Quick Links

Chengdu Ebyte Electronic Technology Co., Ltd.
NB114 User Manual
Serial Port Ethernet
Serial Server
NB114
Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for Ebyte NB114

  • Page 1 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Serial Port Ethernet Serial Server NB114 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 2: Table Of Contents

    4.5.1. Simple protocol conversion mode ............... 36 4.5.2. Multi-host mode ......................39 4.5.3. Storage gateway ....................42 4.5.4. Configurable gateway ....................44 4.5.5. Automatic upload ....................46 4.6. Introduction to basic functions ..................48 4.6.1. Web page configuration ..................48 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 3 4.6.2. Restore factory settings ..................50 4.6.3. AT instruction configuration .................. 50 4.6.4. Configuration tool software settings ..............50 4.6.5. Random native port ....................51 4.6.6. Remote upgrade .....................51 Revision History ..........................57 About us ..............................57 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 4: Introduction

    Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual 1. Introduction NB114 is a serial port server that converts serial port data to Ethernet data; It has multiple Modbus gateway modes and MQTTC/HTTPC Internet of Things gateway modes, which can meet the networking functions of various serial port devices/PLCs;...
  • Page 5 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual  Support access to the Internet and LAN;  Support hardware restoration to factory settings;  Support online upgrade function. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 6: Quick Start

    The details are as follows: NB114 Network cable computer DC 12V switch power USB to RS485 Several cables supply [Note] This case uses RS485 interface for demonstration; 2.2. Equipment wiring Power wiring (DC 8~28V): Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 7 A of USB to RS485 converter, and device 485-B is connected to B of USB to RS485 converter (please use standard RS485 twisted-pair cable for a long distance, otherwise normal communication may not be possible due to excessive environmental interference); Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 8: Software Settings

    2.3.1.Network test environment To avoid server search failure and inability to open web pages and other related problems in the actual application process, it is recommended to check the relevant settings of the computer first. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 9: Default Parameters

    255.255.255.0, and the default gateway is 192.168.3.1. 2.3.2.Default parameters project 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 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 10: Data Transmission Test

    LINK light of the serial server is always on; (4) Open the serial port assistant, set the serial port baud rate to 115200, set the serial port parameter to 1/8/None, and click to open the serial port; Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 11 (network side) sends the test data, and the serial port assistant (serial port side) receives the test data. Realize duplex communication (i.e. local to network two-way data transmission and receiving); Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 12: Product Overview

    Chip 6-way 3.0~5.5V(DC) 17×19×4 TCP Server module TCP Client In-line 6-way 3.0~5.5V(DC) 35×22×30 UDP Server module NT1-B UDP Client NA111 8~28V(DC) MQTT Client 6-way 110×66×30 NA111-A 85~265V(AC) HTTP Client NB114 6-way 8~28V(DC) 102×84×25 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 13: Technical Parameter

    × eighty-four × 25mm (L × W × H) Product weight 126g ± 5g Working temperature and -40~+85 ℃, 5%~95% RH (no condensation) humidity Storage -40~+105 ℃, 5%~95% RH (no condensation) Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 14: Indicator And Interface Description

    B of RS-485 interface, T - sent by RS-422; interface RS422 interface (R+) R+received by RS-422; (R+) RS422 interface (R (R-) RS-422 received R -; Power on: the red light is on; Power indicator Power off: the light is off; Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 15 Press and hold for 5 seconds to restore the Reload equipment; Ethernet network interface Standard RJ45 interface; [Note] When the network cable is not connected, PWR, DATA and LINK are all on, and the device is in standby state. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 16: Mechanical Dimensions

    Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual 3.4. Mechanical dimensions Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 17: Installation Method

    Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual 3.5. Installation method The equipment is installed by locating holes. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 18: Product Function

    IP address, indicate the number of subnets, and determine whether the module is in the subnet. The subnet mask must be set. Our commonly used Class C subnet mask is 255.255.255.0, the network number is the first 24 digits, the host number is the last 8 digits, Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 19: Domain Name Resolution (Dns)

    [Note] If the port number is modified, the port number should be added in the address input column. For example, to modify the web page access port to 8080, you need to enter 192.168.3.7:8080 in the address column to connect to the web page configuration. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 20: Network Operation Mode

    To use the client, you need to configure the IP address/domain name and target port of the target accurately. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 21: Udp Server Mode

    In this mode, the target address is set to 255.255.255.255, and the transmitted data will be broadcast in the whole network segment, but the receiving and transmitting equipment needs to ensure the port consistency, and the equipment can also receive the broadcast data. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 22: Http Client Mode

    1. GET Use the HTTP mode of OneNET multi-protocol access to test the HTTP-GET request of the device, as shown in the following figure. (1) Return data configuration with header: Data return test: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 23 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual (2) Return data configuration without header: Data return test: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 24 NB114 User Manual 2. POST Use the HTTP mode of OneNET multi-protocol access to test the HTTP-POST request of the device, as shown in the following figure. (1) Return data configuration with header: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 25 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Data return test: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 26 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual (2) Return data configuration without header: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 27: Mqtt Client Mode

    (Qos 0, Qos 1), supports the ultra-long text configuration, and facilitates better access to network service operators (server address, three elements, subscription and publishing address support the configuration of up to 128 Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 28 Here, the standard MQTT3.1.1 connection takes Tencent's standard MQTT3.1.1 server as an example. The "three elements" described in the standard can be obtained from Tencent server as shown in the following figure: Parameter configuration (upper computer and web page) is described as follows: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 29 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Configure the corresponding subscription publishing address, and use the platform online debugging to send data for communication test: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 30 "Define Topic Class", configure the name as Cloud documentation for 1234, and grant publish and subscribe permissions (for data retrieval). Configure the device connection parameters, as shown in the following figure: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 31 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual "ProductKey": "a1GlhuTU1yN", "DeviceName": "DEV04", "DeviceSecret": "xxxxxxxxxxxxxxxxxxxxxxxxxx" ProductKey Alibaba Cloud server address: iot-as-mqtt.cn-shanghai.aliyuncs.com:1883 Topic of subscription and publication:/a1GlhuTU1yN/DEV04/user/1234 Alibaba Cloud MQTT platform communication test: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 32 Support the use of Baidu Cloud's "three elements" to directly connect to the server and obtain the "three elements" needed to connect to Baidu Cloud, as shown in the figure: Configure the device connection parameters, as shown in the following figure: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 33 Subscription and publishing require the establishment of a rule engine to achieve data retrieval. First, a message template needs to be established, as shown in the following figure: Create a rule engine for data retrieval, as shown in the following figure: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 34 Support the use of OneNET "three elements" to directly connect to the server and obtain the "three elements" required to connect to OneNET, as shown in the figure: Configure the device connection parameters, as shown in the following figure: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 35 Password: fill in the device name (MQTTS) and the user-defined key (MQTT for multi-protocol access); OneNET supports automatic generation of topics with subscription and publication attributes. Only the same address of subscription and publication is needed to realize data transmission. Communication test: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 36: Serial Port Parameters

    If the request times out and the set number of reconnections has not been successfully reconnected, the device will restart to prevent the network from being unable to recover after the device is disconnected. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 37: Timeout Restart Function

    The serial port receive cache is 1024 bytes, and the data received earlier will be overwritten by more than 1024 bytes. After Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 38: Heartbeat Packet Function

    The registration package supports the following modes: (1) Send MAC address when the network establishes a connection with the device (2) Send the data of the custom registration package when the network establishes Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 39: Modbus Gateway

    Simple protocol conversion can work in any mode (TCP client, TCP server, UDP client, UDP server, MQTT client, HTTP client). No matter what mode it works in, there can only be one Modbus master station. Upper computer/web page configuration: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 40 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Modbus Poll and Modbus Slave software debugging: Software connection settings: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 41 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Software register reading and simulation configuration: Poll menu, select Set up Read/Write Definition Select Set up Slave Definition from the Slave menu Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 42: Multi-Host Mode

    Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Communication demonstration: 4.5.2.Multi-host mode The multi-host mode can handle up to 6 Modbus TCP hosts. When multiple Modbus Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 43 TCP server mode, The slave can only be on the serial port, otherwise it cannot work normally. It is recommended to configure it as "simple protocol conversion" when there is no multi-channel host. Upper computer/web page configuration: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 44 Modbus Poll and Modbus Slave software debugging: Refer to "Simple Protocol Conversion" for software configuration and register configuration. Start multiple Modbus Poll software at the same time (for example, 3 channels can be supported up to 6 channels). Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 45: Storage Gateway

    Users can customize the instruction polling interval and instruction storage time of the storage area according to their needs. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 46 (5) The first command and control command (05, 06, 0F, 10 function code) will directly access RTU equipment; (6) Only 01, 02, 03 and 04 Modbus function code query results can be stored; Storage gateway host computer and web page configuration: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 47: Configurable Gateway

    (query the configured instructions). Because of the above characteristics, the serial port side of the configurable gateway can only connect to the Modbus slave station. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 48 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Instruction storage description (add, instruction error and format error cannot be added): Instruction storage description (delete): Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 49: Automatic Upload

    The feedback format (Modbus RTU format or Modbus TCP format) and the instruction polling interval (0-65535ms) can be selected according to the demand. Refer to "Configurable Gateway - Instruction Storage Description" for instruction pre-storage, and automatically upload the upper computer/web page configuration: Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 50 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual TCP client presentation (Modbus RTU format): Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 51: Introduction To Basic Functions

    The device has a built-in web server, which is convenient for users to set and query parameters through web pages. Web server port can be customized (2-65535), default: 80 Operation mode (Microsoft Edge version 94.0.992.50 as an example, Google Kernel Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 52  The progress bar prompts the configuration progress. Do not refresh the web page again after the configuration is completed (refresh the web page and enter the configuration mode again. You can enter the communication mode by restarting the Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 53: Restore Factory Settings

    The upper computer shields the wireless network card, so the upper computer must be connected to the network cable. The wireless network card can be configured through the web page. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 54: Random Native Port

    4.6.6.Remote upgrade In order to facilitate later maintenance and upgrade functions and replace different firmware, serial servers (NA11x series, NB114, NS1, NT1, etc.) support online upgrade. Users can upgrade or replace the current firmware through the upper computer through the upgrade firmware provided by our company.
  • Page 55 Step 3: In the pop-up "Device Network Upgrade Assistant" dialog box, click "Search Device" (the computer and device should be in the same network segment), and click "Stop Search" after finding the device; Step 4: Click "Select Firmware", select the corresponding firmware, and then click Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 56 Operating steps for serial port firmware upgrade: Step 1: download the upper computer and "product firmware" at the corresponding location on the official website; Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 57 Step 3: First connect the USB port of the computer, select the corresponding port number in the pop-up "Serial Port Upgrade Assistant" dialog box, and click "Open Serial Port"; Step 4: Click "Select Firmware", select the corresponding firmware, and then click "Open"; Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 58 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Step 5: Click "Start upgrading", the progress bar will start to change, and wait for the upgrade to complete. [Note] Power on again to trigger the upgrade. Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 59 Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual Copyright ©2012–2023,Chengdu Ebyte Electronic Technology Co., Ltd.
  • Page 60: Revision History

    Chengdu Ebyte Electronic Technology Co., Ltd. NB114 User Manual The final interpretation right belongs to Chengdu Ebyte Electronic Technology Co., Ltd. Revision History edition Revision date Revision description Maintainer 2021-06-28 Initial version Product upgrade and 2021-10-22 content revision Adapt "9013-2-xx"...

Table of Contents