A communication system for fault self-diagnosis and a method for fault self-diagnosis

By using the MCU in the 485 communication node to connect a fully integrated isolated data transceiver chip and a communication fault self-diagnosis disengagement circuit, the automatic disengagement of the fault node is realized, solving the problem of network paralysis after failure, and improving system reliability and automation level .

CN112180906BActive Publication Date: 2024-11-05WALSH LOOP CONTROL ENG (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011167224.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-11-05
Estimated Expiration
2040-10-26

AI Technical Summary

Technical Problem

The existing 485 communication nodes cannot automatically leave the bus after a failure, resulting in the entire network being paralyzed and the troubleshooting is cumbersome, affecting production recovery.

Method used

The MCU is used to connect a fully integrated isolated data transceiver chip and a communication fault self-diagnosis and disengagement circuit, including a double-knife double-throw signal relay and a protection circuit, to realize the functions of self-diagnosis and automatic disengagement of the bus.

Benefits of technology

It realizes that the faulty node automatically disconnects from the bus, improves system reliability, reduces the workload of users to troubleshoot faults, improves the level of factory automation, and avoids failures affecting the communication of other equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112180906B_ABST
    Figure CN112180906B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication system for fault self-diagnosis and a fault self-diagnosis method thereof. The system includes an MCU, a fully integrated isolated data transceiver chip connected to the MCU, a protection circuit connected to the fully integrated isolated data transceiver chip, and a communication fault self-diagnosis disconnection circuit connected to the MCU; the MCU is connected to the fully integrated isolated data transceiver chip, the communication fault self-diagnosis disconnection circuit, and the fully integrated isolated data transceiver chip is connected to the protection circuit, so that all nodes on the field bus have built-in self-diagnosis logic. When there is a problem with the communication line of the communication node, the communication node will automatically disconnect from the bus to avoid paralysis of the entire bus, greatly improving system reliability. The fault self-diagnosis method can realize that when a fault occurs, the fault node can automatically disconnect from the field bus network without affecting other normal devices, and can automatically judge and confirm the fault.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bus diagnosis, and in particular to a fault self-diagnosis communication system and a fault self-diagnosis method thereof. Background Art

[0002] In the current technology, the communication line of the 485 communication node directly connects the 485 communication interface chip to the 485 field bus (such as Figure 1 As shown in the figure, some lines will add protection circuits to improve reliability before connecting to the communication bus. However, when a 485 node fails, no node can know whether it is a faulty node, nor can it automatically detach the faulty node from the field bus, causing the entire 485 network to be paralyzed. On the other hand, many 485 node damages may be caused by static electricity, lightning strikes, and other reasons. After completing a communication, a normal 485 node will exit the communication process under the control of the MCU and release the communication bus so that other 485 nodes can use the communication bus for communication. The symptoms of many 485 node damages are: the output of the node is no longer controlled by the MCU of the communication node, and the node occupies the communication bus for a long time or randomly, causing other 485 nodes to be unable to communicate or be disturbed, causing the entire field bus network to be abnormal or even collapse.

[0003] The design of traditional communication nodes does not deal well with the above problems. It only adds anti-damage protection circuits, but does not automatically handle damaged 485 nodes. When this happens, users can only manually troubleshoot faulty nodes. Since all 485 nodes are connected in parallel on the field bus, they need to be eliminated one by one. Because sometimes several nodes may be damaged, the number and location of the damaged nodes are also location-dependent. The workload is very large, and the troubleshooting method is also very cumbersome, which will greatly affect the rapid recovery of production.

[0004] The information disclosed in this background technology section is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0005] In order to meet the above requirements, the object of the present invention is to provide a communication system for fault self-diagnosis and a fault self-diagnosis method thereof.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] On the one hand, an embodiment of the present application proposes a communication system for fault self-diagnosis, including an MCU, a fully integrated isolated data transceiver chip connected to the MCU, a protection circuit connected to the fully integrated isolated data transceiver chip, and a communication fault self-diagnosis disconnection circuit connected to the MCU;

[0008] The communication fault self-diagnosis disconnection circuit comprises a double-pole double-throw signal relay connected to the MCU, two static contacts of the double-pole double-throw signal relay are connected to the bus, and the energized coil of the double-pole double-throw signal relay connected to the MCU is connected in series with a diode;

[0009] The model of the fully integrated isolated data transceiver chip is ADM2587E. The A pin and the B pin of the fully integrated isolated data transceiver chip are connected to the protection circuit. The output end of the protection circuit is connected to the two moving contacts of the double-pole double-throw signal relay.

[0010] In a possible implementation manner, two static contacts of the double-pole double-throw signal relay are connected to the bus through a signal output terminal.

[0011] In a possible implementation, the protection circuit includes a common mode inductor.

[0012] In a possible implementation manner, the model of the common mode inductor is B80S513N.

[0013] In a possible implementation manner, the Y pin of the fully integrated isolated data transceiver chip is connected to a node between the B pin and the common mode inductor.

[0014] In a possible implementation manner, the Y pin of the fully integrated isolated data transceiver chip is connected to the A pin.

[0015] In one possible implementation, the enable receiving end of the fully integrated isolated data transceiver chip is connected to the enable output end of the MCU; the enable transmitting end of the fully integrated isolated data transceiver chip is connected to the enable receiving end of the MCU; the data receiving end of the fully integrated isolated data transceiver chip is connected to the data transmitting end of the MCU; the data transmitting end of the fully integrated isolated data transceiver chip is connected to the data receiving end of the MCU.

[0016] On the other hand, the embodiment of the present application further proposes a fault self-diagnosis method of a communication system as described in any one of the above items, comprising the following steps:

[0017] Use MCU to control the double-pole double-throw signal relay to keep the moving contact and the static contact separated;

[0018] Clear the interrupt flag generated by the MCU;

[0019] The MCU is used to keep the enabled receiving end of the fully integrated isolated data transceiver chip at a low voltage and the enabled transmitting end at a high voltage, so that the data receiving end and the data transmitting end of the fully integrated isolated data transceiver chip can work at the same time;

[0020] Send a specified signal to the data receiving end of the fully integrated isolated data transceiver chip through the MCU;

[0021] Determine whether the data received by the data receiving end of the MCU is consistent with the specified signal. If consistent, it is determined that there is no abnormality. If inconsistent, it is determined that there is a fault.

[0022] In a possible implementation, the method further includes, if it is detected that a universal asynchronous receiver / transmitter of the MCU generates a highest priority interrupt, determining whether it is a BI or FE fault;

[0023] If so, execute in sequence, use MCU to control the double-pole double-throw signal relay to keep the moving contact and the static contact separated; clear the interrupt flag generated by MCU; use MCU to keep the enable receiving end of the fully integrated isolated data transceiver chip at a low voltage and the enable sending end at a high voltage, so as to ensure that the data receiving end and the data sending end of the fully integrated isolated data transceiver chip keep working at the same time; send a specified signal to the data receiving end of the fully integrated isolated data transceiver chip through MCU; judge whether the data received by the data receiving end of MCU is consistent with the specified signal, if consistent, judge that there is no abnormality, if inconsistent, judge that there is a fault;

[0024] If not, the process ends.

[0025] In a possible implementation, the step of determining that there is no abnormality includes using the MCU to control a double-pole double-throw signal relay to connect a moving contact with a static contact; the step of determining that there is a fault includes the MCU starting an alarm indicator light and keeping it disconnected from the bus.

[0026] Compared with the prior art, the beneficial effects of the present invention are: based on the communication system proposed in the present application, the fully integrated isolated data transceiver chip and the communication fault self-diagnosis disconnection circuit are connected through the MCU, and the fully integrated isolated data transceiver chip is connected to the protection circuit, so that all nodes on the field bus have built-in self-diagnosis logic. When there is a problem with the communication line of the communication node, the communication node will automatically disconnect from the bus to avoid the paralysis of the entire bus, greatly improving the reliability of the system. The fault self-diagnosis method proposed in the present application can enable the faulty node to automatically disconnect from the field bus network when a fault occurs, so that the system does not affect the other normal devices after a fault occurs, and can automatically judge and confirm the fault, reduce the workload of users in troubleshooting, and improve the level of factory automation. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0028] Figure 1 It is a circuit connection diagram of the communication line of the 485 communication node of the prior art;

[0029] Figure 2 A circuit schematic diagram of a communication system for fault self-diagnosis according to an embodiment of the present invention;

[0030] Figure 3 A schematic diagram of a specific embodiment of the fault self-diagnosis method proposed in an embodiment of the present invention;

[0031] Figure 4 This is a flow chart of another embodiment of the fault self-diagnosis method proposed in an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0034] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0035] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0036] refer to Figure 2 , Figure 2 A circuit schematic diagram of a fault self-diagnosis communication system proposed in an embodiment of the present invention; a fault self-diagnosis communication system, comprising an MCU, a fully integrated isolated data transceiver chip connected to the MCU, a protection circuit A connected to the fully integrated isolated data transceiver chip, and a communication fault self-diagnosis disconnection circuit B connected to the MCU;

[0037] The communication fault self-diagnosis disconnection circuit B includes a double-pole double-throw signal relay RELAY1 connected to the MCU, two static contacts of the double-pole double-throw signal relay RELAY1 are connected to the bus, and the MCU is connected to the energized coil of the double-pole double-throw signal relay RELAY1 connected in series with a diode D3, and the diode D3 can play a role in protecting components to ensure stable operation of the circuit;

[0038] The model of the fully integrated isolated data transceiver chip is ADM2587E. The A pin and the B pin of the fully integrated isolated data transceiver chip are connected to the protection circuit. The output end of the protection circuit A is connected to the two moving contacts of the double-pole double-throw signal relay RELAY1.

[0039] The output ends of the protection circuit A are RS485A and RE485B, respectively, which can be connected as shown in the figure. Specifically, the two static contacts of the double-pole double-throw signal relay RELAY1 are connected to the 485 bus through the signal output terminal J1. The protection circuit A includes a common-mode inductor, the model of which is B80S513N, which can effectively suppress electromagnetic interference and ensure signal transmission.

[0040] In one embodiment, the Y pin of the fully integrated isolated data transceiver chip is connected to the node between the B pin and the common mode inductor, the Y pin of the fully integrated isolated data transceiver chip is connected to the A pin, the enable receiving end RE of the fully integrated isolated data transceiver chip is connected to the enable output end of the MCU, the enable transmitting end DE of the fully integrated isolated data transceiver chip is connected to the enable receiving end of the MCU, the data receiving end RxD of the fully integrated isolated data transceiver chip is connected to the data transmitting end of the MCU, and the data transmitting end TxD of the fully integrated isolated data transceiver chip is connected to the data receiving end of the MCU.

[0041] refer to Figure 3 , Figure 3 A flowchart of a method for self-diagnosis of a communication system for self-diagnosis of faults as described above is provided in an embodiment of the present application, and includes the following steps:

[0042] Step S101, using MCU to control the double-pole double-throw signal relay to keep the moving contact and the static contact separated;

[0043] Step S102, clearing the interrupt flag generated by the MCU;

[0044] Step S103, using the MCU to keep the enabled receiving end of the fully integrated isolated data transceiver chip at a low voltage and the enabled transmitting end at a high voltage, so as to ensure that the data receiving end and the data transmitting end of the fully integrated isolated data transceiver chip remain working at the same time;

[0045] Step S104, sending a designated signal to the data receiving end of the fully integrated isolated data transceiver chip through the MCU;

[0046] Specifically, the designated signal sent to the TXD pin of U13 by the MCU is 0x55.

[0047] Step S105, determine whether the data received by the data receiving end of the MCU is consistent with the specified signal. If they are consistent, it is determined that there is no abnormality; if they are inconsistent, it is determined that there is a fault.

[0048] The step of judging whether the data received by the data receiving end of the MCU is consistent with the specified signal includes detecting whether the signal of the RXD pin of the MCU UART receiving register is: 0x55.

[0049] In this embodiment, the step of judging that there is no abnormality includes using the MCU to control the double-pole double-throw signal relay to connect the moving contact with the static contact; the step of judging that there is a fault includes the MCU starting the alarm indicator light and keeping it disconnected from the bus, that is, the MCU starts the alarm indicator light and keeps the 485 line of this device in the cut-off state.

[0050] Specifically, based on Figure 2As shown in the circuit diagram, the fully integrated isolated data transceiver chip (485 communication chip) converts the communication signal sent by the MCU and passes it through the protection circuit A, and then connects it to the 485 bus through the fault self-diagnosis circuit B. Under normal circumstances, when the device is disconnected from the 485 bus, when the RE signal of chip U13 is enabled, the RXD pin can receive the same signal as the TXD pin. During the power-on process of the node equipment in the communication system, a self-test will be performed before the bus access operation is performed to avoid malfunctions caused by the access of new equipment. The self-diagnosis principle is as follows: Use the double-pole double-throw signal relay realy1 to disconnect the 485 communication line (RS485A, RE485B) inside the communication node from the external 485 bus, and control U13 to automatically send and receive a special character 0x55. By comparing whether the characters received from the RXD pin are consistent with the sent characters, it is determined whether the communication device or line of the communication node itself is normal. After discovering that the communication node itself has a problem, the communication node is kept disconnected from the bus and an alarm signal is given to prevent the entire 485 communication bus from being affected by the failure of the communication node. The 485 communication node that has no problems in self-diagnosis will automatically connect to the bus to complete the entire fault self-diagnosis process.

[0051] refer to Figure 4 , Figure 4 A flowchart of another embodiment of a fault self-diagnosis method proposed in an embodiment of the present application, during the operation of the communication node, when a communication failure occurs, the UART (universal asynchronous receiver / transmitter) of the MCU will generate an RLS interrupt (wherein the UART RLS interrupt is the highest priority interrupt, and as long as the UART Rx input generates any of the four error conditions (overflow error OE, parity error PE, frame error FE, and interval interrupt BI), this bit will be set. The UART Rx error condition that generates the interrupt can be obtained by checking U0LSR[4:1]. When the LSR is read, the interrupt will be cleared). When it is detected that it is due to a BI (Break interrupt) or FE (framing interrupt), the interrupt will be cleared. When an RLS interruption is caused by an error) interruption, the communication node starts the self-diagnosis program: the double-pole double-throw signal relay realy1 is used to disconnect the 485 communication line inside the communication node from the external 485 bus, and U13 is controlled to send and receive a special character 0x55 by itself. By comparing whether the characters received from the RXD pin are consistent with the sent characters, it is determined whether there is a problem with the communication device or line of the communication node itself, or a problem with the external bus. After the communication node itself is found to have a problem, the communication node is kept disconnected from the bus, and an alarm signal is given to prevent the entire 485 communication bus from being affected by the failure of the communication node. The communication node that has no problems in self-diagnosis will automatically connect to the bus again.

[0052] The control flow is as follows: if it is detected that the MCU's universal asynchronous receiver and transmitter generates a highest priority interrupt, it is determined whether it is a BI or FE fault;

[0053] If yes, execute steps S201-S207 in sequence;

[0054] If not, the process ends.

[0055] pass Figure 3 as well as Figure 4 The steps shown realize automatic separation of the faulty device from the field bus, avoiding bus paralysis caused by one or several faulty devices and affecting the normal communication of other devices; since the faulty device detects the fault through self-diagnosis, the difficulty of fault finding is reduced, and the requirements for system maintenance personnel are reduced; it can also reduce the time required for users to handle faults, and can realize fault handling without stopping the machine.

[0056] In summary, based on the communication system proposed in this application, the fully integrated isolated data transceiver chip and the communication fault self-diagnosis disconnection circuit are connected through the MCU, and the fully integrated isolated data transceiver chip is connected to the protection circuit, so that all nodes on the field bus have built-in self-diagnosis logic. When there is a problem with the communication line of the communication node, the communication node will automatically disconnect from the bus to avoid the paralysis of the entire bus, greatly improving the reliability of the system. The fault self-diagnosis method proposed in this application can enable the faulty node to automatically disconnect from the field bus network when a fault occurs, so that the system will not affect the other normal devices after a fault occurs, and can automatically judge and confirm the fault, reduce the workload of users in troubleshooting, and improve the level of factory automation.

[0057] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. A communication system for fault self-diagnosis, characterized in that: It includes an MCU, a fully integrated isolated data transceiver chip connected to the MCU, a protection circuit connected to the fully integrated isolated data transceiver chip, and a communication fault self-diagnosis disconnection circuit connected to the MCU; The communication fault self-diagnosis disconnection circuit comprises a double-pole double-throw signal relay connected to the MCU, two static contacts of the double-pole double-throw signal relay are connected to the bus, and the energized coil of the double-pole double-throw signal relay connected to the MCU is connected in series with a diode; The model of the fully integrated isolated data transceiver chip is ADM2587E, the A pin and the B pin of the fully integrated isolated data transceiver chip are connected to the protection circuit, and the output end of the protection circuit is connected to the two moving contacts of the double-pole double-throw signal relay; The enable receiving end of the fully integrated isolated data transceiver chip is connected to the enable output end of the MCU; the enable sending end of the fully integrated isolated data transceiver chip is connected to the enable receiving end of the MCU; the data receiving end of the fully integrated isolated data transceiver chip is connected to the data sending end of the MCU; the data sending end of the fully integrated isolated data transceiver chip is connected to the data receiving end of the MCU.

2. The fault self-diagnosis communication system according to claim 1, characterized in that: The two static contacts of the double-pole double-throw signal relay are connected to the bus through the signal output terminal.

3. The fault self-diagnosis communication system according to claim 1, characterized in that: The protection circuit includes a common mode inductor.

4. The fault self-diagnosis communication system according to claim 3, characterized in that: The model of the common mode inductor is B80S513N.

5. The fault self-diagnosis communication system according to claim 4, characterized in that: The Y pin of the fully integrated isolated data transceiver chip is connected to a node between the B pin and the common mode inductor.

6. The fault self-diagnosis communication system according to claim 5, characterized in that: The Y pin of the fully integrated isolated data transceiver chip is connected to the A pin.

7. A fault self-diagnosis method for a communication system according to any one of claims 1 to 6, characterized in that: The following steps are involved: Use MCU to control the double-pole double-throw signal relay to keep the moving contact and the static contact separated; Clear the interrupt flag generated by the MCU; The MCU is used to keep the enabled receiving end of the fully integrated isolated data transceiver chip at a low voltage and the enabled transmitting end at a high voltage, so that the data receiving end and the data transmitting end of the fully integrated isolated data transceiver chip can work at the same time; Send a specified signal to the data receiving end of the fully integrated isolated data transceiver chip through the MCU; Determine whether the data received by the data receiving end of the MCU is consistent with the specified signal. If consistent, it is determined that there is no abnormality. If inconsistent, it is determined that there is a fault.

8. The fault self-diagnosis method according to claim 7, characterized in that: The method further includes, if it is detected that the universal asynchronous receiver / transmitter of the MCU generates a highest priority interrupt, determining whether it is a BI or FE fault; If so, execute in sequence, use MCU to control the double-pole double-throw signal relay to keep the moving contact and the static contact separated; clear the interrupt flag generated by MCU; use MCU to keep the enable receiving end of the fully integrated isolated data transceiver chip at a low voltage and the enable sending end at a high voltage, so as to ensure that the data receiving end and the data sending end of the fully integrated isolated data transceiver chip keep working at the same time; send a specified signal to the data receiving end of the fully integrated isolated data transceiver chip through MCU; judge whether the data received by the data receiving end of MCU is consistent with the specified signal, if consistent, judge that there is no abnormality, if inconsistent, judge that there is a fault; If not, the process ends.

9. The fault self-diagnosis method according to claim 8, characterized in that: The step of judging that there is no abnormality includes using the MCU to control the double-pole double-throw signal relay to connect the moving contact with the static contact; the step of judging that there is a fault includes the MCU starting the alarm indicator light and keeping it disconnected from the bus.