background image

Chengdu Ebyte Electronic Technology Co., Ltd.

NB144 User Manual

Copyright ©2012

Chengdu Ebyte Electronic Technology Co., Ltd.

29

5.4.2 multi-host mode

Relatively simple protocol conversion can only have one Modbus master station, while the multi-host mode

can simultaneously access multiple Modbus TCP hosts. When multiple Modbus hosts access at the same time, the
Modbus gateway will perform bus occupancy scheduling (RS -485 The bus can only process one request at a time,
and the multi-host mode will sort and process according to the TCP request, and other links will wait), thus solving
the bus conflict problem (currently, 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 "storage gateway" ), it only
supports working in TCP server mode, and the slave can only be on the serial port, otherwise it cannot work
normally.

As the number of hosts increases, the Modbus timeout should be increased accordingly. If multiple hosts need

continuous high-speed requests, it is recommended to use "storage gateway", and it is recommended to configure
"simple protocol conversion" when there are no multiple hosts.

Summary of Contents for NB144

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

Page 2: ...rface 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...

Page 3: ...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...

Page 4: ...r 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...

Page 5: ...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 clien...

Page 6: ...twork port 2 NB1 44 serial port server 3 One DC12V 1A power adapter 4 a network cable 5 One USB to RS485 serial cable 6 The specific preparation of hardware equipment is shown in the following PC Ethe...

Page 7: ...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 Hardwar...

Page 8: ...t 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...

Page 9: ...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 se...

Page 10: ...he 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 Deb...

Page 11: ...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 addres...

Page 12: ...le 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 por...

Page 13: ...2 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 1...

Page 14: ...gative 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...

Page 15: ...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 L...

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

Page 17: ...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...

Page 18: ...set 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 Se...

Page 19: ...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...

Page 20: ...ackage 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 betwee...

Page 21: ...nction 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 chann...

Page 22: ...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 devic...

Page 23: ...n 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 paramete...

Page 24: ...onnect 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 To...

Page 25: ...y 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...

Page 26: ...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 accor...

Page 27: ...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...

Page 28: ...o 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 mo...

Page 29: ...NB144 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 sele...

Page 30: ...ently 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...

Page 31: ...y 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 st...

Page 32: ...omatically 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...

Page 33: ...ons 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...

Page 34: ...du 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 ca...

Page 35: ...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...

Page 36: ...ade 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 co...

Page 37: ...oads 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...

Page 38: ...nance 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 con...

Reviews: