CN220629487U - Repeater capable of expanding multiple hosts - Google Patents

Repeater capable of expanding multiple hosts Download PDF

Info

Publication number
CN220629487U
CN220629487U CN202322269643.3U CN202322269643U CN220629487U CN 220629487 U CN220629487 U CN 220629487U CN 202322269643 U CN202322269643 U CN 202322269643U CN 220629487 U CN220629487 U CN 220629487U
Authority
CN
China
Prior art keywords
repeater
hosts
communication
baud rate
interface module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202322269643.3U
Other languages
Chinese (zh)
Inventor
许云峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Enjoy Technology Co ltd
Original Assignee
Shenzhen Enjoy Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Enjoy Technology Co ltd filed Critical Shenzhen Enjoy Technology Co ltd
Priority to CN202322269643.3U priority Critical patent/CN220629487U/en
Application granted granted Critical
Publication of CN220629487U publication Critical patent/CN220629487U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The application discloses relay of scalable a plurality of hosts, including the controller, modbus communication processing analysis module and RS485 interface module, the RS485 interface module is connected to Modbus communication processing analysis module, and the relay passes through RS485 interface module and is connected with a plurality of hosts and a plurality of slaves respectively, and wherein, a plurality of hosts pass through two at least RS485 interface module and are connected with the relay communication, and a plurality of slaves pass through one RS485 interface module and are connected with the relay communication, and the relay passes through first baud rate communication with a plurality of slaves, and relay passes through second baud rate communication with a plurality of hosts, and first baud rate is greater than the second baud rate, has solved the unable problem of accessing the hardware restriction of many hosts of single Modbus network, has increased the flexibility of the access scheme of hardware, compatibility, and the equipment of a host interface also can link a plurality of hosts normal use.

Description

Repeater capable of expanding multiple hosts
Technical Field
The utility model relates to the technical field of industrial control communication, in particular to a repeater capable of expanding a plurality of hosts based on a Modbus protocol.
Background
In the technical field of communication, the Modbus protocol is one of mature and widely applied communication protocols, and common hardware interfaces are RS485-Modbus and TCP/IP-Modbus communication interfaces. When in use, the protocol adopts the equipment ID number to distinguish equipment, and uses the register address to access, read and write data. In the host mode, a serial port can be adopted to communicate with a plurality of slave devices at the same time, so that the method is convenient and efficient; however, in the slave mode, one communication port can only communicate with one host communication port, so that when the expansion communication port of the unit is the slave port (the expansion com port of the energy storage industry is generally the slave port), only one host expansion peripheral can be accessed, otherwise, collision can be generated. When a plurality of peripheral devices are required to be accessed, the unit can only be provided with a plurality of slave expansion ports, and the use of Modbus peripheral ports is limited by the characteristics.
Disclosure of Invention
Aiming at the technical problems, the embodiment of the utility model provides a repeater capable of expanding a plurality of hosts.
The embodiment of the utility model provides a repeater capable of expanding a plurality of hosts, which comprises a controller, a Modbus communication processing analysis module and an RS485 interface module, wherein the Modbus communication processing analysis module is connected with the RS485 interface module, the repeater is respectively connected with the plurality of hosts and a plurality of slaves through the RS485 interface module, the plurality of hosts are in communication connection with the repeater through at least two RS485 interface modules, the plurality of slaves are in communication connection with the repeater through one RS485 interface module, the repeater is in communication with the plurality of slaves through a first baud rate, the repeater is in communication with the plurality of hosts through a second baud rate, and the first baud rate is larger than the second baud rate.
Optionally, the repeater includes a repeater main body, a first side surface of the repeater main body is provided with one RS485 interface module for connecting a plurality of slaves, and a second side surface of the repeater main body is provided with a plurality of RS485 interface modules for connecting a plurality of masters.
Optionally, a man-machine interaction module is arranged on one surface adjacent to the first side surface and the second side surface respectively, and the man-machine interaction module is a touch screen.
Optionally, a display screen is disposed on a surface adjacent to the first side surface and the second side surface, and an interactive button is disposed below the display screen.
Optionally, the first baud rate is set to be the highest frequency allowed by the repeater and the slave, and the second baud rate is set according to preset requirements of the master.
Optionally, the first baud rate is 921600bps and the second baud rate is 9600bps.
Optionally, the system further comprises a communication recording module, which is used for recording the communication log of the master machine or the slave machine.
Optionally, the repeater communicates with a plurality of masters and a plurality of slaves respectively via a Modbus protocol.
Optionally, the RS485 interface module is a standard RS485 interface module.
Optionally, a power module is further included, and the power module provides power for the repeater.
In the technical scheme that this embodiment provided, the repeater passes through the RS485 interface module and is connected with a plurality of hosts and a plurality of slave computers respectively, wherein, a plurality of hosts pass through two at least the RS485 interface module with the repeater communication is connected, and a plurality of slave computers pass through one the RS485 interface module with the repeater communication is connected, the repeater passes through first baud rate communication with a plurality of slave computers, and the repeater passes through second baud rate communication with a plurality of hosts, and first baud rate is greater than the second baud rate. Compared with the prior art, the method and the device realize the expansion of the communication port of the single slave, solve the problem that a single Modbus network cannot access the hardware limitation of multiple hosts, increase the flexibility and compatibility of an access scheme of the hardware, and enable equipment of one host interface to be capable of being linked with the multiple hosts for normal use.
Drawings
Fig. 1 is a schematic structural diagram of a repeater capable of expanding a plurality of hosts.
Fig. 2 is a schematic diagram of a connection structure of a repeater capable of expanding a plurality of hosts.
Fig. 3 is an external configuration diagram of a repeater capable of expanding a plurality of hosts according to the present application.
Fig. 4 is a flow chart of a communication method of a repeater capable of expanding a plurality of hosts.
Fig. 5 is a flow chart of the communication method of the present application when the buffering is not allowed.
Fig. 6 is a schematic diagram of a control method of a Modbus protocol read register of a repeater according to the present application.
Detailed Description
The following description of the embodiments of the present utility model will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present utility model, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the utility model without making any inventive effort, are intended to fall within the scope of the utility model.
Referring to fig. 1, the present utility model provides a repeater capable of expanding a plurality of hosts, the repeater includes a controller 10, a Modbus communication processing analysis module 30 and an RS485 interface module 20, the Modbus communication processing analysis module 30 is connected to the RS485 interface module 20, the repeater is respectively connected to the plurality of hosts and a plurality of slaves through the RS485 interface module 20, wherein the plurality of hosts are communicatively connected to the repeater through at least two RS485 interface modules 20, the plurality of slaves are communicatively connected to the repeater through one RS485 interface module 20, the repeater is communicatively connected to the plurality of slaves through a first baud rate, the repeater is communicatively connected to the plurality of hosts through a second baud rate, and the first baud rate is greater than the second baud rate.
The repeater capable of expanding a plurality of hosts realizes the expansion of communication ports of a single slave, solves the problem that a single Modbus network cannot access hardware limitation of a plurality of hosts, increases the flexibility and compatibility of an access scheme of the hardware, and can be used normally by linking equipment of one host interface with a plurality of hosts.
In this application, the repeater includes the repeater main part, and the first side of repeater main part is provided with and is used for connecting a plurality of RS485 interface module of following the machine, is provided with a plurality of RS485 interface module that are used for connecting a plurality of hosts on the second side of repeater main part. And the plurality of master computers and the plurality of slave computers are connected with the repeater through the RS485 interface module. The interfaces of the RS485 interface modules are standard RS485, a plurality of hosts are in communication connection with the repeater through at least two RS485 interface modules, a plurality of slaves are in communication connection with the repeater through one RS485 interface module, and a host channel is matched with data received by the slaves through the RS485 interface modules. And the RS485 interface module is simultaneously communicated with the controller for data transmission. The Modbus communication processing analysis module is a program module and is connected with the RS485 interface module through an interface of the controller.
In the application, the first baud rate of the slave port is set to be the highest frequency allowed by the repeater and the slave together, and the second baud rate of the host port is set according to the preset requirement of the host. The master port and the slave port can adopt different baud rates (communication bandwidths), so that the conflict of different port protocols is solved, meanwhile, the baud rate of the master port is adjusted to the maximum, the baud rate of the slave port is reduced, the purpose of reducing communication conflicts and realizing overall communication rate matching can be achieved, for example, the slave port of the repeater can set the baud rate to 921600bps, but a plurality of master ports can only be set to 9600bps, the communication rate of the slave port is wasted, the repeater can time-divide and multiplex bandwidth resources to a plurality of expansion ports, and the occupation conflict time of a plurality of peripheral devices to the same port is greatly reduced.
In one embodiment of the present utility model, a human-computer interaction module 40 is disposed on a surface adjacent to the first side surface and the second side surface, and the human-computer interaction module 40 is a touch screen. The man-machine interaction module 40 is used for signal distribution conversion, and can also be used for selecting the number of host channels, setting fault information, displaying fault information, inquiring fault information and the like.
Referring to fig. 3, in another embodiment of the present utility model, a slave port 1 is provided on a first side of the repeater, an RS485 interface module is provided in the slave port for connecting with the slave, a plurality of host ports are provided on a second side of the repeater, for example, the repeater may include a host port 1, a host port 2 and a host port 3, an RS485 interface module is provided in each host port for connecting with a plurality of hosts, a display screen is provided on a side adjacent to the first side and the second side, and an interactive button is provided below the display screen. The display screen is used for signal distribution conversion, and can also be used for selecting the number of host channels, setting fault information, displaying the fault information, inquiring the information of the faults and the like.
The repeater capable of expanding a plurality of hosts according to the present utility model further comprises a communication recording module 60 and a power module 50, wherein the communication recording module 60 is used for recording the communication log of the host or the slave, and the power module 50 provides power for the repeater. The repeater communicates with a plurality of masters and a plurality of slaves, respectively, via a Modbus protocol.
The present application further provides a communication method of a repeater capable of expanding a plurality of hosts, where the repeater includes the repeater described in any of the above embodiments, please refer to fig. 4, and the method includes:
step S100, the repeater receives a command of the host computer for reading the slave computer, and judges whether a slave computer port is in an idle state or not;
step S200, if the slave port is in an idle state, the slave acquires data;
step S300, if the slave port is in a busy state, data is acquired from the local cache, if the local cache is not available, the slave port continues to wait for acquiring the data until the data is acquired or the slave port waits for overtime to return to a fault.
In one embodiment of the present utility model, referring to fig. 5, when buffering is not allowed, the method further includes:
step S10, a host port receives an access command sent by a host, and a Modbus communication processing analysis module judges whether a slave port is communicating or not;
step S20, if the slave port is communicating, waiting for the slave port until the slave port is idle in a preset time, sending a read command and receiving reply data of the slave;
in step S30, if the slave port is idle, the master port directly accesses the slave port.
In this application, a control method of a Modbus protocol reading register of a repeater is also disclosed, please refer to fig. 6, which specifically includes the following steps:
step S11, a roll call sent by a host port is received, and whether a slave port is busy is judged;
step S21, if the slave port is busy, acquiring data required by the host port from the register buffer area;
step S31, judging whether the register buffer area has the needed data, if so, acquiring the data from the buffer area, replying to the host port, and if not, waiting for the slave port to be idle.
Step S41, if the slave port is idle, directly accessing the slave port to acquire response data;
in step S51, the response data is recorded in the register buffer area, and the roll call of the host port is replied.
The Modbus communication method and device can realize Modbus communication between multiple hosts and slaves, simplify communication flow, improve reliability, and have wide applicability and good market prospect; meanwhile, the utility model can combine the number of host channels required to be set on site, and set through a human-computer interface, so that the operation is simple, and the use is convenient and flexible; furthermore, the device disclosed by the utility model is simple in structure, convenient to use and maintain and high in stability and reliability.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process or method comprising such element.
The above embodiments are only for illustrating the technical solution of the present utility model, and are not limiting; although the utility model has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present utility model.

Claims (10)

1. The utility model provides a repeater of scalable a plurality of hosts, its characterized in that, the repeater includes the controller, modbus communication processing analysis module and RS485 interface module, the Modbus communication processing analysis module is connected RS485 interface module, the repeater is connected with a plurality of hosts and a plurality of slaves respectively through the RS485 interface module, and wherein, a plurality of hosts pass through two at least RS485 interface module with the repeater communication is connected, a plurality of slaves pass through one RS485 interface module with the repeater communication is connected, the repeater passes through first baud rate communication with a plurality of slaves, and the repeater passes through second baud rate communication with a plurality of hosts, and first baud rate is greater than the second baud rate.
2. The repeater of claim 1, wherein the repeater comprises a repeater body, a first side of the repeater body is provided with one RS485 interface module for connecting a plurality of slaves, and a second side of the repeater body is provided with a plurality of RS485 interface modules for connecting a plurality of hosts.
3. The repeater of claim 2, wherein a human-machine interaction module is disposed on a side of the repeater adjacent to the first side and the second side, respectively, and the human-machine interaction module is a touch screen.
4. The repeater of claim 2, wherein a display screen is disposed on a side adjacent to the first side and the second side, respectively, and an interactive button is disposed below the display screen.
5. The repeater of claim 1, wherein the first baud rate is set to a highest frequency allowed by the repeater and the slaves together, and the second baud rate is set according to a preset requirement of the master.
6. The scalable multiple host repeater of claim 5, wherein the first baud rate is 921600bps and the second baud rate is 9600bps.
7. The repeater of claim 1, further comprising a communication logging module for logging communication logs of the master or slave.
8. The repeater of claim 1, wherein the repeater communicates with a plurality of hosts and a plurality of slaves, respectively, via a Modbus protocol.
9. The repeater of claim 1, wherein the RS485 interface module is a standard RS485 interface module.
10. The repeater of claim 1, further comprising a power module that provides power to the repeater.
CN202322269643.3U 2023-08-23 2023-08-23 Repeater capable of expanding multiple hosts Active CN220629487U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202322269643.3U CN220629487U (en) 2023-08-23 2023-08-23 Repeater capable of expanding multiple hosts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202322269643.3U CN220629487U (en) 2023-08-23 2023-08-23 Repeater capable of expanding multiple hosts

Publications (1)

Publication Number Publication Date
CN220629487U true CN220629487U (en) 2024-03-19

Family

ID=90215261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202322269643.3U Active CN220629487U (en) 2023-08-23 2023-08-23 Repeater capable of expanding multiple hosts

Country Status (1)

Country Link
CN (1) CN220629487U (en)

Similar Documents

Publication Publication Date Title
US4845609A (en) Computer communications subsystem using an embedded token-passing network
CN108733604B (en) 485 bus intelligent expansion method and device based on modbus communication protocol
JPH04233055A (en) Server architecture for terminal apparatus
CN102253914B (en) Data transmitting and processing method and device and equipment interface
CN107562672A (en) A kind of system and method for improving vector network analyzer message transmission rate
CN106873541A (en) A kind of EtherCAT Distributed Servo kinetic control systems based on DSP
US9116881B2 (en) Routing switch apparatus, network switch system, and routing switching method
CN210324188U (en) Integrated circuit bus IIC master-slave competition automatic switching equipment and system thereof
CN108667706B (en) Ethernet serial server with dynamically adjustable serial number and data transmission method thereof
CN103885910B (en) The method that many equipment carry out IIC communications under holotype
CN220629487U (en) Repeater capable of expanding multiple hosts
WO2021042972A1 (en) Smart card management apparatus and method
CN105472290A (en) Processing method and device for data transmitting and receiving operation modes
DE60311799T2 (en) DMA CONTROL SYSTEM WITH REAL TIME DATA TRANSMISSION OPTIONS
JPH07143202A (en) Method for constituting system, method for constituting device, controller and system
CN117221042A (en) Modbus protocol-based repeater and communication method
EP0607375B1 (en) A centralized management system utilizing a bus interface unit
CN111930649B (en) Multi-channel CAN communication board card and communication method
EP1794953B1 (en) Method and system for using an in-line credit extender with a host bus adapter
CN113971148A (en) PCIE real-time network card data transmission method and device based on linux real-time operating system
CN111224877A (en) VL query method and device of AFDX switch
KR100278306B1 (en) Optical transmission device operation management system and method
CN110825684A (en) Serial port interface integrated output system
WO2023115635A1 (en) Ate tester frame-type equipment and serial port unified collection method thereof
CN215120794U (en) Power carrier communication system of photovoltaic power station

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant