Loopback communication bus open circuit diagnosis system and method
Through the daisy chain loop structure and the data diagnosis module of the bus safety controller, the problem of difficulty in troubleshooting interrupts in multi-point wired bus communication is solved, and the cost of breaking points is achieved is achieved at low cost and fast positioning of breaking points and ensuring communication safety, reducing equipment communication costs .
Patent Information
- Application Number
- CN202411326061.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-12-10
AI Technical Summary
In multi-point wired bus communication, it is difficult to troubleshoot line circuit breakers, traditional methods are costly and cannot quickly locate the circuit breakers, which seriously threatens communication security.
The daisy chain loop structure is adopted to determine the position of the circuit breaker through the bus safety controller and the data diagnosis module, and data transmission is carried out when the circuit is disconnected to ensure that communication is not interrupted.
It realizes low-cost and rapid positioning of breakpoints, ensures communication security, reduces equipment communication costs, and avoids the need to backup buses.
Smart Images

Figure CN119109727A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a loopback communication bus disconnection diagnosis system and method. Background Art
[0002] At present, multi-point wired bus communications mostly use daisy chain linear wiring. Once a circuit breaker fault occurs in the line, it is very difficult to troubleshoot the fault point, and the disconnected points cannot communicate normally, which seriously threatens communication security.
[0003] The traditional approach is to preset a backup communication line and related switching equipment, and immediately switch to another backup line when a short circuit occurs in the line. The above method will be costly due to the existence of backup communication equipment, and it is impossible to quickly locate the circuit breaker point. Summary of the invention
[0004] In view of the problems existing in the prior art, a loopback communication bus disconnection diagnosis system and method are provided. By establishing a daisy chain loop and adding data diagnosis to the loop, the location of the disconnection point in the loop can be accurately determined.
[0005] The first aspect of the present invention provides a loopback communication bus disconnection diagnosis system, comprising:
[0006] Multiple devices are connected in series in a daisy chain loopback form, and both ends of the daisy chain loopback bus are led out;
[0007] A bus safety controller provides a first bus interface and a second bus interface, wherein the first bus interface and the second bus interface are respectively connected to two ends of a daisy chain loop bus; the bus safety controller determines whether there is a breakpoint in the daisy chain loop and determines the position of the breakpoint according to the data receiving and sending conditions of the first bus interface and the second bus interface; and after determining that there is a breakpoint, transparently transmits data to a corresponding device through the bus safety controller.
[0008] As a preferred solution, the bus safety controller also includes a data diagnostic module, a data exchange module, a first bus transceiver, and a second bus transceiver; the first bus transceiver is respectively connected to the first bus interface and the data diagnostic module, and the second bus transceiver is respectively connected to the second bus interface and the data diagnostic module, forming a loop consisting of the data diagnostic module, the first bus transceiver, the second bus transceiver, and multiple devices; at the same time, the first bus transceiver is connected to the second bus transceiver through the data exchange module; wherein the data diagnostic module is used to determine whether there is a break point in the daisy chain loop and determine the position of the break point according to the interaction between the first bus transceiver, the second bus transceiver and multiple devices; the data exchange module is used to transparently transmit data and forward it to the corresponding device when a break occurs in the daisy chain loop.
[0009] As a preferred solution, in the data diagnosis module, the specific process of judging whether there is a breakpoint in the daisy chain loop and determining the position of the breakpoint includes:
[0010] The data diagnosis module obtains all devices connected to the first bus transceiver and the second bus transceiver. If all devices connected to the first bus transceiver and the second bus transceiver are the same, it means that there is no breakpoint in the daisy chain loop; if the first bus transceiver is missing some devices and the second bus transceiver is missing another part of the devices, it means that the breakpoint exists between the terminal device connected to the first bus transceiver and the terminal device connected to the second bus transceiver.
[0011] As a preferred solution, after determining that there is a breakpoint, transparently transmitting the missing data and exchanging the bus interface for transmission specifically include:
[0012] When there is a breakpoint, the devices on both sides of the breakpoint will transmit the data to be sent to the bus safety controller, complete the data transparent transmission through the internal data exchange module, and send it to the corresponding device by the corresponding bus transceiver.
[0013] As a preferred solution, the daisy chain loop bus is implemented using a communication bus including a CAN communication bus, a 485 communication bus, an SPI communication bus, and a network communication line.
[0014] A second aspect of the present invention provides a loopback communication bus disconnection diagnosis method, comprising:
[0015] Connect multiple devices in series in the form of a daisy chain loop, and connect the two ends of the daisy chain loop bus to the bus safety controller; the bus safety controller is used to obtain data from multiple connected devices and provide a transparent transmission function;
[0016] The devices connected through the two interfaces in the bus safety controller determine whether there is a circuit break point in the daisy chain loop and determine the position of the circuit break point;
[0017] When there is a breakpoint in the daisy chain loop, data is transparently transmitted in the bus safety controller and sent to the corresponding device.
[0018] As a preferred solution, the multiple devices and the bus safety controller are connected by a communication bus; wherein the communication bus includes a CAN communication bus, a 485 communication bus, an SPI communication bus, and a network communication line.
[0019] As a preferred solution, the specific method for determining whether there is a breakpoint in the daisy chain loop includes:
[0020] Determine whether the devices connected to the two interfaces are the same. If they are the same, it means that there is no circuit break. If they are different and there is a missing device, it means that there is a circuit break in the daisy chain loop.
[0021] As a preferred solution, the specific method for determining the position of the breaking point includes:
[0022] If some devices are missing from the devices connected to the first interface of the bus safety controller and some devices are missing from the devices connected to the second interface, it means that the breakpoint exists between the terminal device connected to the first interface and the terminal device connected to the second interface.
[0023] As a preferred solution, the transparent transmission of data in the bus safety controller and the exchange of interfaces to send to corresponding devices specifically include:
[0024] When there is a breakpoint, the devices on both sides of the breakpoint send the data to be sent to the bus safety controller. After the data is transparently transmitted inside the bus safety controller, it is forwarded to the required device through the corresponding interface.
[0025] Compared with the prior art, the beneficial effects of the above technical solution are: the present invention can realize the design requirements of normal communication even if the loop bus is disconnected and accurately locate the fault point in a low-cost manner. In addition, it does not require a backup bus and related equipment, further reducing the communication cost of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of a loop communication bus disconnection diagnosis system proposed in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar modules or modules with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be construed as limitations on the present application. On the contrary, the embodiments of the present application include all changes, modifications and equivalents that fall within the spirit and connotation of the appended claims.
[0028] Example 1
[0029] In order to quickly locate the bus break point at low cost, the design requirement is that the disconnected part can still communicate normally. The embodiment of the present invention proposes a loop communication bus break diagnosis system, which mainly includes a bus safety controller and multiple devices connected to it. Please refer to Figure 1The bus safety controller provides a first bus interface and a second bus interface; multiple devices are connected in series in a daisy chain loopback manner, and after connection, the two ends of the daisy chain loopback are connected to the first bus interface and the second bus interface respectively. In actual use, the bus safety controller determines whether there is a breakpoint in the daisy chain loopback and determines the location of the breakpoint based on the data receiving and sending conditions of the first bus interface and the second bus interface; at the same time, after determining that there is a breakpoint, the bus safety controller transparently transmits data to the corresponding device.
[0030] Please continue to refer to Figure 1 The bus safety controller also includes a data diagnosis module, a data exchange module, a first bus transceiver, and a second bus transceiver; the first bus transceiver is respectively connected to the first bus interface and the data diagnosis module, and the second bus transceiver is respectively connected to the second bus interface and the data diagnosis module, forming a loop consisting of the data diagnosis module, the first bus transceiver, the second bus transceiver, and multiple devices; at the same time, the first bus transceiver is connected to the second bus transceiver through the data exchange module; wherein the data diagnosis module is used to determine whether there is a break point in the daisy chain loop and determine the position of the break point according to the interaction between the first bus transceiver, the second bus transceiver and multiple devices; the data exchange module is used to complete data transparent transmission inside the bus safety controller when a break occurs in the daisy chain loop.
[0031] Specifically, the data diagnostic module obtains all devices connected to the first bus transceiver and the second bus transceiver. If all devices connected to the first bus transceiver and the second bus transceiver are the same, it means that there is no breakpoint in the daisy chain loop; if the first bus transceiver is missing some devices, and the second bus transceiver is missing another part of the devices, it means that the breakpoint exists between the terminal device connected to the first bus transceiver and the terminal device connected to the second bus transceiver. For example, the data diagnostic module detects that the first bus transceiver is connected to devices 1 to n, and device n+1 is missing, and the second bus transceiver is connected to device n+1, and devices 1 to n are missing; at this time, the terminal device connected to the first bus transceiver is device n, and the terminal device connected to the second bus transceiver is device n+1, which means that the breakpoint is between device n and device n+1.
[0032] In another embodiment, the device numbering method in the daisy chain loop is a numbering method that increases by 1 from small to large. When the data diagnostic module finds that the data of the first bus transceiver and the second bus transceiver are inconsistent, it means that there is a circuit break in the daisy chain loop at this time, and the data exchange module is turned on. At this time, the data diagnostic module will count the device numbers of the first bus transceiver and the second bus transceiver sending signals through the data exchange module respectively, so that it can be found that the total number of devices passing through the first bus transceiver is n, and the starting number of the signal passing through the second bus transceiver is n+1, so it can be determined that the breakpoint is between devices n and n+1. In this embodiment, there will be a relative lag time from the discovery of the circuit break to the diagnosis of the position of the circuit break.
[0033] Furthermore, when there is a circuit break, the devices on both sides of the circuit break transmit the data to be sent to the bus safety controller, and the data is transparently transmitted through the internal data exchange module, and sent to the corresponding device by the corresponding bus transceiver. In one embodiment, the data diagnosis module can quickly find out between which two devices the circuit break is located by statistical methods. Through this solution, the loopback bus meets the design requirements that the bus communication is not affected in the event of a circuit break and the fault point can be quickly located.
[0034] The following is a daisy chain loop consisting of n+1 devices to further illustrate the diagnosis and transparent transmission process in this embodiment. The first bus transceiver and the second bus transceiver data are respectively given to the data diagnosis module and the data exchange module. When a circuit is broken between any line segments in the daisy chain loop bus, please refer to Figure 1 If a circuit break occurs between the DE segments, at this time, the first bus transceiver can only connect all devices between the AD segments to the data diagnostic module, and the second bus transceiver can only connect all devices between the EF segments to the data diagnostic module. At this time, the data diagnostic module can find that the first bus transceiver is missing the device of the DF segment and the second bus transceiver is missing the device of the AD segment. It can accurately determine that there is a circuit break in the daisy chain loop and locate the circuit break between DF.
[0035] After the breakpoint is found, the data exchange module can be started immediately, and the data to be sent through the DE segment can be forwarded through the data exchange module. For example, if device n wants to send data to device n+1, when there is no breakpoint in the loopback DE segment, the transmission can be completed directly through the DE segment bus. If there is a break in the DE segment, device n sends the data to the first bus transceiver through the first bus interface, and then transparently transmits it to the second bus transceiver through the data exchange module. At this time, the second bus transceiver can send the data to device n+1 through the second bus interface, so that even if the loopback bus line is broken, normal communication can still be achieved.
[0036] In this embodiment, a loop communication bus disconnection diagnosis system is proposed. By maintaining two sets of bus transceivers to monitor the bus and transparently transmitting data through a data exchange module, the design requirement of being able to communicate normally even if the loop bus is disconnected and accurately locate the fault point is achieved in a low-cost manner. Backup buses and related equipment are no longer required, further reducing equipment communication costs.
[0037] Example 2
[0038] This embodiment provides a loopback communication bus disconnection diagnosis method, including:
[0039] Step 1: connect multiple devices in series in a daisy chain loopback form, and connect both ends of the daisy chain loopback bus to a bus safety controller.
[0040] In this embodiment, the bus safety controller is used to obtain data of multiple connected devices and provide diagnostic and transparent transmission functions. Specifically, the bus safety controller also includes a data diagnostic module, a data exchange module, a first bus transceiver, and a second bus transceiver; the first bus transceiver is connected to the first bus interface and the data diagnostic module respectively, and the second bus transceiver is connected to the second bus interface and the data diagnostic module respectively, forming a loop composed of the data diagnostic module, the first bus transceiver, the second bus transceiver, and multiple devices; at the same time, the first bus transceiver is connected to the second bus transceiver through the data exchange module; wherein the data diagnostic module is used to determine whether there is a breakpoint in the daisy chain loop and determine the position of the breakpoint according to the interaction between the first bus transceiver, the second bus transceiver and multiple devices; the data exchange module is used to complete data transparent transmission inside the bus safety controller when a break occurs in the daisy chain loop.
[0041] In one embodiment, multiple devices and bus safety controllers are connected using a communication bus; wherein the communication bus includes a CAN communication bus, a 485 communication bus, an SPI communication bus, a network communication line, etc.
[0042] Step 2: In the bus safety controller, the devices connected through the two interfaces determine whether there is a breakpoint in the daisy chain loop and determine the position of the breakpoint.
[0043] In this embodiment, the method for determining whether there is a circuit break is to determine whether the devices connected to the two interfaces are the same. If they are the same, it means that there is no circuit break. If they are different and there is a missing device, it means that there is a circuit break in the daisy chain loop. In practical applications, it is possible to quickly find out whether there is a circuit break by using statistical methods. Furthermore, if some devices are missing in the devices connected to the first interface of the bus safety controller, and another part of the devices are missing in the devices connected to the second interface, it means that the circuit break exists between the terminal device connected to the first interface and the terminal device connected to the second interface.
[0044] Step 3: When there is a breakpoint in the daisy chain loop, the data is transparently transmitted in the bus safety controller and sent to the corresponding device.
[0045] In this embodiment, when a breakpoint exists, the devices on both sides of the breakpoint send the data to be sent to the bus safety controller, and after the data is transparently transmitted inside the bus safety controller, it is forwarded to the required device through the corresponding interface.
[0046] The loopback communication bus disconnection diagnosis method proposed in this embodiment realizes the design requirement of enabling normal communication even when the loopback bus line is disconnected and accurately locating the fault point in a low-cost manner.
[0047] It should be noted that in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "setting" and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances; the drawings in the embodiments are used to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations.
[0048] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A loop communication bus disconnection diagnosis system, characterized in that: include: Multiple devices are connected in series in a daisy chain loopback form, and both ends of the daisy chain loopback bus are led out; A bus safety controller, providing a first bus interface and a second bus interface, wherein the first bus interface and the second bus interface are respectively connected to two ends of a daisy chain loop bus; The bus safety controller determines whether there is a breakpoint in the daisy chain loop and determines the position of the breakpoint according to the data receiving and sending conditions of the first bus interface and the second bus interface; at the same time, after determining that there is a breakpoint, the bus safety controller transparently transmits data to the corresponding device.
2. The loopback communication bus disconnection diagnosis system according to claim 1, characterized in that: The bus safety controller also includes a data diagnosis module, a data exchange module, a first bus transceiver, and a second bus transceiver; the first bus transceiver is connected to the first bus interface and the data diagnosis module respectively, and the second bus transceiver is connected to the second bus interface and the data diagnosis module respectively, forming a loop consisting of the data diagnosis module, the first bus transceiver, the second bus transceiver, and multiple devices; at the same time, the first bus transceiver is connected to the second bus transceiver through the data exchange module; wherein the data diagnosis module is used to determine whether there is a break point in the daisy chain loop and determine the position of the break point according to the interaction between the first bus transceiver, the second bus transceiver and multiple devices; the data exchange module is used to complete data transparent transmission inside the bus safety controller when a break occurs in the daisy chain loop.
3. The loopback communication bus disconnection diagnosis system according to claim 2, characterized in that: In the data diagnosis module, the specific process of judging whether there is a breakpoint in the daisy chain loop and determining the position of the breakpoint includes: The data diagnosis module obtains all devices connected to the first bus transceiver and the second bus transceiver. If all devices connected to the first bus transceiver and the second bus transceiver are the same, it means that there is no breakpoint in the daisy chain loop; if the first bus transceiver is missing some devices and the second bus transceiver is missing another part of the devices, it means that the breakpoint exists between the terminal device connected to the first bus transceiver and the terminal device connected to the second bus transceiver.
4. The loopback communication bus disconnection diagnosis system according to claim 2 or 3, characterized in that: The transparent transmission of missing data after determining that there is a breakpoint and exchanging bus interfaces for transmission specifically include: When there is a breakpoint, the devices on both sides of the breakpoint will transmit the data to be sent to the bus safety controller, complete the data transparent transmission through the internal data exchange module, and send it to the corresponding device by the corresponding bus transceiver.
5. The loopback communication bus disconnection diagnosis system according to claim 1, characterized in that: The daisy chain loop bus is implemented by a communication bus including a CAN communication bus, a 485 communication bus, an SPI communication bus, and a network communication line.
6. A loopback communication bus disconnection diagnosis method, characterized in that: include: Connect multiple devices in series in the form of a daisy chain loop, and connect the two ends of the daisy chain loop bus to the bus safety controller; the bus safety controller is used to obtain data from multiple connected devices and provide a transparent transmission function; In the bus safety controller, devices connected through two interfaces determine whether there is a breakpoint in the daisy chain loop and determine the position of the breakpoint; When there is a breakpoint in the daisy chain loop, data is transparently transmitted in the bus safety controller and sent to the corresponding device.
7. The loopback communication bus disconnection diagnosis method according to claim 6, characterized in that: The multiple devices and the bus safety controller are connected by a communication bus; wherein the communication bus includes a CAN communication bus, a 485 communication bus, an SPI communication bus, and a network communication line.
8. The loopback communication bus disconnection diagnosis method according to claim 6, characterized in that: The specific method for determining whether there is a breakpoint in the daisy chain loop includes: Determine whether the devices connected to the two interfaces are the same. If they are the same, it means that there is no circuit break. If they are different and there is a missing device, it means that there is a circuit break in the daisy chain loop.
9. The loopback communication bus disconnection diagnosis method according to claim 6, characterized in that: The specific method for determining the position of the breaking point includes: If some devices are missing from the devices connected to the first interface of the bus safety controller and some devices are missing from the devices connected to the second interface, it means that the breakpoint exists between the terminal device connected to the first interface and the terminal device connected to the second interface.
10. The loopback communication bus disconnection diagnosis method according to claim 6, characterized in that: The transparent transmission of data in the bus safety controller and the exchange of interfaces to send to corresponding devices specifically include: When there is a breakpoint, the devices on both sides of the breakpoint send the data to be sent to the bus safety controller. After the data is transparently transmitted inside the bus safety controller, it is forwarded to the required device through the corresponding interface.
