Bus communication module based on four serial ports

By designing a bus communication module based on four serial ports, the support and fault monitoring and alarm functions of multiple bus communication methods are realized, which solves the problems of insufficient bus communication flexibility and fault monitoring in the existing technology, and improves the safety and applicability of the bus.

CN222980014UActive Publication Date: 2025-06-13CHONGQING CHUANYI AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422071123.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2025-06-13
Estimated Expiration
2034-08-26

AI Technical Summary

Technical Problem

The prior art is difficult to meet the bus communication needs in different scenarios, especially in multiple bus configuration modes, fault monitoring and alarm functions are insufficient.

Method used

A bus communication module based on four serial ports is designed. Through the settings of four serial ports, a variety of bus communication methods such as single bus, redundant bus, single ring bus and redundant ring bus are realized, and a bus controller is equipped for monitoring and alarm.

Benefits of technology

It realizes the support of multiple bus communication methods, can accurately report faulty equipment or buses, improves the security and strong applicability of the fieldbus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222980014U_ABST
    Figure CN222980014U_ABST
Patent Text Reader

Abstract

The utility model provides a bus communication module based on four serial ports. The bus communication module comprises four serial ports, a plurality of buses, a bus controller and a plurality of external devices, the plurality of external devices and the four serial ports are arranged on the multi-channel bus so as to realize single-bus communication, redundant bus communication, single-ring bus communication or redundant-ring bus communication; and the bus controller is used for monitoring communication data of the serial port so as to carry out communication fault monitoring on the external equipment and the bus. According to the bus communication module based on the four serial ports, through the arrangement of the four serial ports, bus communication in various modes is achieved, and the bus communication requirements in different scenes are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of bus communication, in particular to a bus communication module based on four serial ports. Background Art

[0002] Bus communication refers to a technology that provides common data transmission and control signals for multiple devices in a computer system. The main feature of bus communication is that it can share signals and data among multiple devices without each device having its own signal and data lines. Bus communication has a very wide range of applications. It can be used for various devices in a computer system, including computers, networks, storage devices, and peripherals such as printers, monitors, etc.

[0003] Therefore, for different bus communication requirements, different bus configuration methods need to be constructed to achieve different bus communications. Summary of the Utility Model

[0004] In view of the above-mentioned disadvantages of the prior art, the purpose of the present utility model is to provide a bus communication module based on four serial ports. By setting four serial ports, various bus communications are realized, meeting the bus communication requirements in different scenarios.

[0005] To achieve the above purpose and other related purposes, the present utility model provides a bus communication module based on four serial ports, including four serial ports, a multi-channel bus, a bus controller, and multiple external devices; the multiple external devices and the four serial ports are arranged on the multi-channel bus to achieve single-bus communication, redundant bus communication, single-ring bus communication, or redundant ring bus communication; the bus controller is used to monitor the communication data of the serial ports to monitor communication faults of the external devices and the bus.

[0006] In an embodiment of the present utility model, when using the single-bus communication, the four serial ports are respectively connected to four buses in one-to-one correspondence, and each external device is connected to two signal lines of one bus.

[0007] In an embodiment of the present utility model, the bus controller is used to extract the communication data of the external devices on the corresponding bus for each serial port, and issue a communication fault alarm for the single external device when the communication of a single external device fails, and issue a communication fault alarm for the bus when the communication of all external devices on the bus fails.

[0008] In an embodiment of the present utility model, when using the redundant bus communication, the four serial ports are respectively connected to four buses in one-to-one correspondence, two buses form a bus group, and one external device is connected to two signal lines belonging to different buses in a bus group to form two communication links.

[0009] In one embodiment of the present utility model, the bus controller is used to extract the communication data of external devices on the corresponding bus for each serial port, and when the communication of a single external device fails, extract the communication data of the single external device from another serial port and issue a communication fault alarm for the single external device, and issue a communication fault alarm for the bus when the communication of all external devices on the bus fails.

[0010] In one embodiment of the present utility model, when the single-loop bus communication is adopted, two serial ports are used as a serial port group, one serial port group is arranged on one bus, and each external device is connected to two signal lines of one bus.

[0011] In one embodiment of the present utility model, one of the serial port groups is a master serial port and the other is a slave serial port; the bus controller is used to extract the communication data of external devices on the corresponding bus for the master serial port, and issue a communication fault alarm for the single external device when the communication of a single external device fails, and obtain the faulty external device based on the slave serial port and issue a communication fault alarm for the faulty external device when the communication of all communication devices after the single device on the bus fails.

[0012] In one embodiment of the present utility model, when the redundant-loop bus communication is adopted, two serial ports are used as a serial port group, one serial port group is arranged on one bus, and one external device is connected to two signal lines belonging to different buses in two buses to form two communication links.

[0013] In one embodiment of the present utility model, the bus controller is used to obtain the communication data of external devices on one bus, and when the communication data of the external devices cannot be obtained on the one bus, obtain the communication data of the external devices based on the other bus and issue a communication fault alarm for the corresponding external devices.

[0014] In one embodiment of the present utility model, the bus adopts the RS485 bus.

[0015] As described above, the bus communication module based on four serial ports of the present utility model has the following beneficial effects:

[0016] (1) Through the setting of four serial ports, various bus communication modes are realized;

[0017] (2) Various bus communication modes such as single bus, redundant bus, single-loop bus, and redundant-loop bus are realized, and the faulty devices or buses can be accurately reported, greatly improving the safety of the field bus;

[0018] (3) In the ring communication, when a break occurs, communication can be carried out from the other end, and in the redundant communication, when one bus fails, the other bus can be used for communication, thus providing a safer bus mode for field devices;

[0019] (4) Meets the bus communication requirements in different scenarios and has strong applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It shows a schematic structural diagram of the bus communication module based on four serial ports of the present invention in the first embodiment;

[0021] Figure 2 It shows a schematic architecture diagram of the bus communication module based on four serial ports of the present invention in the second embodiment;

[0022] Figure 3 It shows a schematic architecture diagram of the bus communication module based on four serial ports of the present invention in the third embodiment;

[0023] Figure 4 It shows a schematic architecture diagram of the bus communication module based on four serial ports of the present invention in the fourth embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0024] The following specific embodiments illustrate the implementation manners of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification.

[0025] It should be noted that the structures, ratios, sizes, etc. shown in the drawings of this specification are only used to cooperate with the content disclosed in the specification for those skilled in the art to understand and read, and are not used to limit the limited conditions under which the present invention can be implemented. Therefore, they do not have a technical essence. Any modification of the structure, change of the proportional relationship, or adjustment of the size, without affecting the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope that can be covered by the technical content disclosed in the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle", and "one" cited in this specification are only for the convenience of clear description and are not used to limit the scope under which the present invention can be implemented. The change or adjustment of their relative relationships, without substantial change in the technical content, should also be regarded as the scope under which the present invention can be implemented.

[0026] The bus communication module based on four serial ports of the present invention realizes various bus communications such as single bus, redundant bus, single-ring bus, and redundant ring bus through the setting of four serial ports, thereby meeting the bus communication requirements in different scenarios and having high practicality.

[0027] In one embodiment, the bus communication module based on four serial ports of the present invention includes four serial ports, multiple buses, a bus controller, and multiple external devices.

[0028] The multiple external devices and the four serial ports are arranged on the multi-channel bus to achieve single-bus communication, redundant-bus communication, single-ring bus communication, or redundant-ring bus communication.

[0029] The bus controller is used to monitor the communication data of the serial port to monitor communication faults of the external device and the bus.

[0030] Preferably, the bus adopts an RS485 bus.

[0031] I. Single-bus communication mode

[0032] As Figure 1 shown, in an embodiment, the four serial ports are respectively serial port 1, serial port 2, serial port 3, and serial port 4, and a total of four buses are adopted, namely bus 1, bus 2, bus 3, and bus 4. Each bus includes two signal lines. Among them, serial port 1, serial port 2, serial port 3, and serial port 4 are respectively connected to the four buses in one-to-one correspondence. External devices Dev1-1, Dev1-2... Dev1-N are connected to bus 1; external devices Dev2-1, Dev2-2... Dev2-N are connected to bus 2; external devices Dev3-1, Dev3-2... Dev3-N are connected to bus 3; external devices Dev4-1, Dev4-2... Dev4-N are connected to bus 4.

[0033] It should be noted that the single-bus communication mode is mainly applied to establish communication with external devices that have only one communication link. Each serial port can be used separately and the same parameters can be set, such as: baud rate, data bits, stop bits, parity bits, timeout, communication period, etc.

[0034] The bus controller extracts the communication data of the external devices on the corresponding bus for each serial port. If a single external device fails to communicate, a communication fault alarm for the single external device is issued; if all external devices on the bus fail to communicate, a communication fault alarm for the bus is issued.

[0035] II. Redundant-bus communication mode

[0036] As Figure 2 shown, in an embodiment, the four serial ports are respectively serial port 1, serial port 2, serial port 3, and serial port 4, and a total of four buses are adopted, namely bus 1, bus 2, bus 3, and bus 4. Each bus includes two signal lines. Among them, serial port 1, serial port 2, serial port 3, and serial port 4 are respectively connected to the four buses in one-to-one correspondence. Bus 1 and bus 2 form a bus group; bus 3 and bus 4 form a bus group. An external device is connected to two signal lines belonging to different buses in a bus group to form two communication links.

[0037] Specifically, external devices Dev1-1, Dev1-2... Dev1-N are connected to bus 1 and bus 2; external devices Dev2-1, Dev2-2... Dev2-N are connected to bus 3 and bus 4. Both Dev1-1, Dev1-2... Dev1-N and Dev2-1, Dev2-2... Dev2-N can be configured with two communication links. Among them, Dev1-1, Dev1-2... Dev1-N are connected to the first signal line of bus 1 and the first signal line of bus 2 to form a first communication link, and are connected to the second signal line of bus 1 and the second signal line of bus 2 to form a second communication link. Dev2-1, Dev2-2... Dev2-N are connected to the first signal line of bus 3 and the first signal line of bus 4 to form a first communication link, and are connected to the second signal line of bus 3 and the second signal line of bus 4 to form a second communication link.

[0038] It should be noted that the redundant bus communication method is mainly applied to establish communication with external devices equipped with two communication links. The two serially-connected ports with redundant configuration are used in combination and set with the same parameters, such as: baud rate, data bits, stop bits, parity bits, timeout, communication cycle, etc.

[0039] Among them, the bus controller is used to extract the communication data of the external devices on the corresponding bus for each serial port, and when the communication of a single external device fails, extract the communication data of the single external device from another serial port and issue a communication failure alarm for the single external device, and issue a communication failure alarm for the bus when the communication of all external devices on the bus fails. For example, serial port 1 and serial port 2 are redundant buses, and serial port 1 and serial port 2 run synchronously. The bus controller preferentially selects the communication data of serial port 1. If there is a communication failure between serial port 1 and a single device, the bus controller will extract the communication data of the device on serial port 2 and report the communication failure alarm with the device at the same time. If all communication devices on the serial port cannot communicate, the communication failure alarm of the bus will be reported.

[0040] III. Single-loop bus communication method

[0041] As Figure 3 shown, in an embodiment, the four serial ports are respectively serial port 1, serial port 2, serial port 3 and serial port 4, and a total of two buses are used, namely bus 1 and bus 2. Each bus includes two signal lines. Among them, serial port 1 and serial port 2 form a serial port group; serial port 3 and serial port 4 form a serial port group. Serial port 1 and serial port 2 are set on bus 1, and serial port 3 and serial port 4 are set on bus 2.

[0042] Specifically, external devices Dev1-1, Dev1-2... Dev1-N are connected to bus 1; external devices Dev2-1, Dev2-2... Dev2-N are connected to bus 2.

[0043] It should be noted that the single-loop bus communication mode is mainly applied to establish communication with devices having only one communication link. Two serial ports in a single-loop configuration are used in combination and set with the same parameters, such as: baud rate, data bits, stop bits, parity bits, timeout, communication cycle, etc.

[0044] In one embodiment, one of the serial ports in the serial port group is the main serial port and the other is the slave serial port; the bus controller is used to extract the communication data of external devices on the corresponding bus for the main serial port, and issue a communication fault alarm for the single external device when the communication of a single external device fails, and obtain the faulty external device based on the slave serial port and issue a communication fault alarm for the faulty external device when the communication of all communication devices after a single device on the bus fails. Specifically, configure serial port 1 and serial port 2 as a single-loop bus, serial port 1 operates normally, and serial port 2 only performs reception listening. When starting to run, the bus controller preferentially selects the communication data of serial port 1. If there is a communication fault between serial port 1 and a single device, the bus controller will report a communication fault alarm for that device. If all communication devices after a single device on serial port 1 cannot communicate, the information of the faulty device will be obtained on serial port 2, and at the same time, a communication fault alarm for that device will be reported.

[0045] IV. Redundant-loop bus communication mode

[0046] As Figure 4 shown, in one embodiment, the four serial ports are respectively serial port 1, serial port 2, serial port 3 and serial port 4, and a total of two buses are adopted, namely bus 1 and bus 2. Each bus includes two signal lines. Among them, serial port 1 and serial port 2 form a serial port group; serial port 3 and serial port 4 form a serial port group. Serial port 1 and serial port 2 are set on bus 1, and serial port 3 and serial port 4 are set on bus 2.

[0047] Among them, an external device is connected to two signal lines belonging to different buses among the two buses to form two communication links. Specifically, external devices Dev1-1, Dev1-2... Dev1-N are connected to the first signal line of bus 1 and the first signal line of bus 2 to form a first communication link, and are connected to the second signal line of bus 1 and the second signal line of bus 2 to form a second communication link.

[0048] It should be noted that the redundant-loop bus communication mode is mainly applied to establish communication with devices equipped with two communication links. The redundant-loop bus requires four serial ports to be used in combination and set with the same parameters, such as: baud rate, data bits, stop bits, parity bits, timeout, communication cycle, etc.

[0049] In one embodiment, the bus controller is configured to obtain communication data of external devices on one bus, and when the communication data of the external devices cannot be obtained on the one bus, obtain the communication data of the external devices based on another bus and issue a communication fault alarm for the corresponding external devices. Specifically, after the redundant ring communication is configured, the serial port 1 and the serial port 2 form a ring bus A, and the serial port 3 and the serial port 4 form a ring bus B, and they operate synchronously in a single-ring mode. The bus controller preferentially selects the communication data on the ring bus A, and obtains the communication data of the external devices that cannot be obtained on the ring bus A from the ring bus B, and at the same time reports the communication fault alarm of the external devices.

[0050] In summary, the bus communication module based on four serial ports of the present utility model realizes multi-mode bus communication through the setting of four serial ports; it realizes various bus communications such as single bus, redundant bus, single-ring bus, and redundant ring bus, and can accurately report faulty devices or buses, greatly improving the safety of the field bus; in the ring communication, if there is a break, communication can be carried out from the other end, and in the redundant communication, if one bus fails, the other bus can be used for communication, thus providing a safer bus mode for field devices; it meets the bus communication requirements in different scenarios and has strong applicability. Therefore, the present utility model effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0051] The above embodiments are only illustrative of the principles and effects of the present utility model and are not intended to limit the present utility model. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present utility model. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed by the present utility model should still be covered by the claims of the present utility model.

Claims

1. A bus communication module based on four serial ports, characterized in that: Includes four serial ports, multiplexed buses, bus controllers, and multiple external devices; The plurality of external devices and the four serial ports are arranged on the multi-channel bus to realize single bus communication, redundant bus communication, single ring bus communication or redundant ring bus communication; The bus controller is used to monitor the communication data of the serial port to monitor the communication failure between the external device and the bus.

2. The bus communication module based on four serial ports according to claim 1, characterized in that: When the single bus communication is adopted, the four serial ports are connected to the four buses in a one-to-one correspondence, and each external device is connected to two signal lines of one bus.

3. The bus communication module based on four serial ports according to claim 2, characterized in that: The bus controller is used to extract the communication data of the external device on the corresponding bus for each serial port, and issue a communication failure alarm for a single external device when the communication of the single external device fails, and issue a communication failure alarm for the bus when all external devices on the bus fail to communicate.

4. The bus communication module based on four serial ports according to claim 1, characterized in that: When the redundant bus communication is adopted, the four serial ports are connected to the four buses one by one, two buses are used as a bus group, and an external device is connected to two signal lines belonging to different buses in a bus group to form two communication links.

5. The bus communication module based on four serial ports according to claim 4, characterized in that: The bus controller is used to extract the communication data of the external device on the corresponding bus for each serial port, and when the communication of a single external device fails, extract the communication data of the single external device from another serial port and issue a communication failure alarm for the single external device, and when all external devices on the bus fail to communicate, issue a communication failure alarm for the bus.

6. The bus communication module based on four serial ports according to claim 1, characterized in that: When the single-ring bus communication is adopted, two serial ports are used as a serial port group, one serial port group is arranged on one bus, and each external device is connected to two signal lines of one bus.

7. The bus communication module based on four serial ports according to claim 6, characterized in that: One of the serial port groups is a master serial port, and the other is a slave serial port; the bus controller is used to extract communication data of external devices on the corresponding bus for the master serial port, and issue a communication failure alarm for the single external device when communication of the single external device fails, and obtain the faulty external device based on the slave serial port and issue a communication failure alarm for the faulty external device when communication of all communication devices after the single device on the bus fails.

8. The bus communication module based on four serial ports according to claim 1, characterized in that: When the redundant ring bus is used for communication, two serial ports are used as a serial port group, one serial port group is set on one bus, and an external device is connected to two signal lines belonging to different buses in the two buses to form two communication links.

9. The bus communication module based on four serial ports according to claim 8, characterized in that: The bus controller is used to obtain communication data of an external device on one bus, and when the communication data of the external device cannot be obtained on the one bus, obtain the communication data of the external device based on another bus and issue a communication failure alarm for the corresponding external device.

10. The bus communication module based on four serial ports according to claim 1, characterized in that: The bus adopts RS485 bus.