background image

Copyright ©2012

Chengdu Ebyte Electronic Technology Co., Ltd.

1

NB144ES

Four Serial Ports

Serial Server

User manual

Summary of Contents for NB144ES

Page 1: ...Copyright 2012 Chengdu Ebyte Electronic Technology Co Ltd 1 NB144ES Four Serial Ports Serial Server User manual ...

Page 2: ...terface Description 11 3 4 Dimensions 15 4 Functions 16 4 1 Correspondence between channel and serial port 16 4 2 Local network parameters 16 4 2 1 Local IP 16 4 2 2 DNS domain name resolution 16 4 2 3 Network disconnection reconnection cycle 17 4 2 4 Timeout restart no data restart 17 4 3 Hardware factory reset 17 4 4 Device working mode 17 4 4 1 TCP Server 17 4 4 2 TCP Client 18 4 4 3 UDP Server...

Page 3: ...er Manual Copyright 2012 Chengdu Ebyte Electronic Technology Co Ltd 2 5 4 3 storage gateway 30 5 4 4 Configurable Gateway 31 5 4 5 automatic upload 32 5 5 Firmware upgrade 33 5 5 1 UDP upgrade 34 5 5 2 Serial upgrade 35 6 Revision history 37 Contact us 37 ...

Page 4: ... or implied to use any intellectual property rights The test data obtained in this article are all obtained by the Ebyte laboratory test and the actual results may be slightly different All trade names trademarks and registered trademarks mentioned herein are the property of their respective owners and are hereby acknowledged Ebyte Electronic Technology Co Ltd Note Due to product version upgrade o...

Page 5: ...ndent configuration of four channels does not affect each other Support DNS domain name resolution domain name resolution server can be configured Support DHCP to dynamically obtain IP subnet mask default gateway DNS server address Support multiple working modes TCP client TCP server UDP client UDP server MQTT client HTTP client 4 way server mode can be turned on at the same time supporting 12 cli...

Page 6: ... serial port server 3 One DC12V 1A power adapter not necessary if there is a POE switch 4 a network cable 5 One USB to RS485 serial cable 6 The specific preparation of hardware equipment is shown in the following PC Ethernet cable NB144ES DC 12V1A USB to RS45 wires Note This chapter only uses one RS485 interface for demonstration and the other interfaces can use the corresponding USB converter ...

Page 7: ...rts For example the factory configured channel 1 corresponds to port 8001 and channel 4 corresponds to port 8004 For details see the chapter Channel and Serial Port Correspondence 2 3 1 Connecting Hardware 1 Connect the serial port server network port and the computer network port with a network cable 2 Use a USB to RS485 serial cable to connect the USB port of the computer to any RS 4 85 port of ...

Page 8: ...uct data transparent transmission tests The default parameters of N B1 44 serial port server equipment are shown in the table below project 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 Local port for channel 1 8 001 Serial baud rate 1 15200 Serial parameters NONE 8 1 NONE Make sure that the computer IP and serial server I...

Page 9: ... 3 Turn off the computer firewall If the communication is unsuccessful the user can try to turn off the firewall on the computer and try again 2 3 4 Open the Serial Debug Assistant Select the correct serial port number configure the correct serial port parameters 115200 8N1 and open the serial port as shown in the figure below ...

Page 10: ... the TCP client mode configure the remote IP as 1 92 168 3 7 and configure the remote port as 8 001 as shown in the figure below 2 3 6 Send and receive data test Click the Send button on the Network Debug Assistant and Serial Port Debug Assistant respectively to realize the transparent transmission of network and serial port data as shown in the figure below ...

Page 11: ...CP Server default TCP Client UDP Server UDP Client HTTP Client MQTT Client Network protocol TCP IP UDP MQTT HTTP IPv4 I CMP APR D HCP D NS IP acquisition method DHCP static IP default DNS Support address can be configured configuration method Parameter configuration host computer AT command IP address 192 168 3 7 customizable local port Channel 1 4 8 001 800 4 can be customized subnet mask 255 255...

Page 12: ...male 2 TXD 3 RXD 5 GND 2 R S232 3 Serial port 3 RS232 interface Standard DB9 female 2 TXD 3 RXD 5 GND 3 R S232 2 Serial port 2 RS232 interface Standard DB9 female 2 TXD 3 RXD 5 GND 4 R S232 1 Serial port 1 RS232 interface Standard DB9 female 2 TXD 3 RXD 5 GND 5 RS422 1 R Serial port 1 RS422 interface R 3 81mm Phoenix terminal 6 RS422 1 R Serial port 1 RS422 interface R 3 81mm Phoenix terminal 7 GN...

Page 13: ...422 2 T A Serial port 2 RS422 interface T Serial port 2 RS485 interface A 3 81mm Phoenix terminal 15 RS422 2 T B Serial port 2 RS422 interface T Serial port 2 RS485 interface B 3 81mm Phoenix terminal 16 GND Serial port 2 ground terminal 3 81mm Phoenix terminal 17 RS422 3 R Serial port 3 RS422 interface R 3 81mm Phoenix terminal 18 RS422 3 R Serial port 3 RS422 interface R 3 81mm Phoenix terminal ...

Page 14: ...Negative pole of DC 8 28 V DC 8 28 V 5 08 mm Phoenix terminal 30 Positive pole of DC 8 28 V DC 8 28 V 5 08 mm Phoenix terminal 31 DC IN DC power input DC 8 28V Outer diameter 5 5mm inner diameter 2 0 mm in line round hole 32 Ethernet _ Ethernet interface Standard R J45 Ethernet interface 33 re load factory reset button After long pressing for 5s N ET is always on for 5s and the device is restored ...

Page 15: ...l the indicator light is always on UDP mode the indicator light is always on DATA3 Channel 3 Status Indicator Data sending and receiving flashes when the network or serial port sends and receives data LINK4 Channel 4 status indicator No link connection the indicator light is off The link connection is successful the indicator light is always on UDP mode the indicator light is always on DATA4 Chann...

Page 16: ...Chengdu Ebyte Electronic Technology Co Ltd NB144ES User Manual Copyright 2012 Chengdu Ebyte Electronic Technology Co Ltd 15 3 4 Dimensions ...

Page 17: ...k parameters 4 2 1 Local IP STATIC static IP users can define configuration IP subnet mask default gateway domain name resolution server D NS server DHCP dynamic IP acquisition The device logs in to the server to automatically obtain the IP address subnet mask gateway address and DNS server address parameters assigned by the server and configure them for use 4 2 2 DNS domain name resolution When t...

Page 18: ...reset Reload pin of the device for 5s until the N ET indicator light stops flashing keep the NET indicator on for 5s and the device is restored to factory 4 4 Device working mode 4 4 1 TCP Server TCP Server is the TCP server In TCP Server mode the device listens to the local port accepts the connection request from the client and establishes a connection for data communication When the Modbus gate...

Page 19: ...y 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 5 12B it per packet otherwise it will cause data loss 4 4 ...

Page 20: ... package function and provides two methods of GET and POST Customers can configure URL Header and other parameters by themselves and the device will send the package to realize fast communication between serial port data and HTTP server URL and Header It supports up to 128 bytes of data and the 4 channels can independently open the HTTP client mode without affecting each other The HTTP request dat...

Page 21: ...function to avoid the device IP abnormality caused by wrong configuration network segment error IP conflict etc it needs to be used in the configuration The channel of the HTTP function supports 4 channels to configure the HTTP client mode at the same time Here is an example of requesting the Baidu webpage through GET URL empty H EADER Host www baidu com target domain name www baidu com target por...

Page 22: ...nt to get the web page POST description the header data configured as POST request method does not need to configure the header data with a separate data length 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 at most Support 1 28 bytes data configuration ...

Page 23: ...ion Alibaba Cloud product key 6 4 characters 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 parameter Standard MQTT3 3 1 Baidu cloud One NET Equipment name Client ID Client ID DeviceKey device ID username Device name User Name IoTCoreId DeviceKe y Product ID password Device secret Password _ Devic...

Page 24: ... connect to the server to obtain the three elements needed to connect to Alibaba Cloud as shown in the figure only for demonstration cases users need to use self built parameters to connect Configure Topic for communication test Configuration theme description Select the corresponding product click Customize To pic under the Topic class list please refer to the Alibaba Cloud documentation for deta...

Page 25: ...tly configured port listening Using a random port connection can quickly re establish the connection when the device is accidentally disconnected from the server preventing the server from rejecting the connection due to four waved incomplete It is recommended to use a random port in client mode When the device configures the TCP client HTTP client and MQTT client mode at AT it will automatically ...

Page 26: ...e Alibaba Cloud manual recommends using 120s Heartbeat packet sending mode 1 The default is to turn off the heartbeat packet mode 2 Serial mode The device sends heartbeat content to the serial bus according to the set heartbeat time interval 3 Network port mode The device sends heartbeat content to the network port bus according to the set heartbeat time interval Customize the content of the heart...

Page 27: ...t TCP short connections are mainly used to save server resource overhead and are generally used in multi point multi client to one point server scenarios The TCP short connection function is applied in the TCP Client mode After the short connection function is turned on it only requests to connect with the server when sending information After the connection is successful the serial port does not ...

Page 28: ... 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 Simple protocol conversion can work in any mode TCP client TCP server UDP client UDP server MQTT client This gateway mode does not support multi host operation If you need multiple hosts please use storage gateway and multi host mode Simple pr...

Page 29: ... NB144ES User Manual Copyright 2012 Chengdu Ebyte Electronic Technology Co Ltd 28 Software register reading and emulation configuration Poll menu selection Set up Read Write Definition S slave menu select Set up Slave Definition Newsletter Demo ...

Page 30: ...rrently it supports up to 9 Modbus channels in single server mode TCP host connection multi channel host access at the same time should pay attention to the matching of the request interval and timeout time otherwise the transmission rate of the serial port is much lower than the transmission rate of the Ethernet resulting in packet loss If you need a fast response it is recommended to use a stora...

Page 31: ...way The storage gateway not only arbitrates the bus data but also stores repeated read instructions When different hosts request the same data the gateway does not need to ask the RTU device register status multiple times but directly returns the data cached in the storage area which is extremely It greatly improves the multi host request processing capability of the gateway and also shortens the ...

Page 32: ...utomatically delete the storage command to release the cache 5 The first instruction and control instruction 05 06 0F 10 function code will directly access the RTU device 6 Only support 0 1 0 2 0 3 0 4M od bus function code query result storage 5 4 4 Configurable Gateway The gateway automatically polls the RTU device registers according to the pre configured MODBUS commands only supports the confi...

Page 33: ...tions delete 5 4 5 automatic 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 and command polling interval 0 65535ms Instruction pre storage refers to Configurable ...

Page 34: ...ngdu Ebyte Electronic Technology Co Ltd 33 automatically uploads the host computer webpage configuration TCP client demo Modbus RTU format TCP client demo Modbus TCP format 5 5 Firmware upgrade Users can upgrade the firmware of the device through the Ebyte Network Configuration Tool ...

Page 35: ...n Step 2 Select the firmware to be used which needs to be obtained from the Related Downloads of the corresponding product details on the official website www ebyte com The demo firmware is not provided on the official website Step 3 Click Search Device the device list will display the currently found device click Stop Search again After selecting the device to be upgraded click Start to upgrade a...

Page 36: ...grade using the serial port When the network upgrade fails or the network environment is complicated it is recommended to use the serial port to upgrade Step 1 Make sure the device is powered off and connect to serial port 1 correctly Step 2 Open Ebyte Network Configuration Tool select Serial Port Upgrade Assistant under the Menu option select the corresponding serial port and click Open Serial Po...

Page 37: ...nloads of the corresponding product details on the official website www ebyte com The demo firmware is not provided on the official website Step 4 Click Start Upgrading press and hold Re load on N B1 44 then turn on the power of the device wait for the firmware upgrade to complete and click Cancel to end the serial port upgrade ...

Page 38: ...tenance man 1 0 2022 11 14 initial version LYL Contact 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 Fax 028 64146160 Web https www cdebyte com Address B5 Mould Industrial Park 199 Xiqu Ave High tech Zone Chengdu Sichuan China ...

Reviews: