Control system fault detection and data channel switching method, device and electronic equipment

The redundant control system receives channel signals to determine the fault and generates early warning prompts, and automatically switches the data channel, solving the problems of fault positioning and data switching of the magnetic levitation train owner control system, ensuring the stable operation of the system.

CN115065586BActive Publication Date: 2024-11-12QILU ZHONGKE ELECTRICAL ADVANCED ELECTROMAGNETIC DRIVE TECH RES INST +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210604877.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2024-11-12
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

When the control system of the magnetic levitation train owner fails, it is impossible to quickly locate and perform hot data switching, which affects the stable operation of the train.

Method used

A redundant control system is adopted to determine the channel status by receiving channel signals, generate a fault warning prompt, and automatically switch the data channel based on the fault information to ensure the stable operation of the system.

Benefits of technology

It realizes rapid and accurate positioning and processing of faulty nodes and switches, avoids greater losses caused by failures, and ensures stable operation of the system without external perception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115065586B_ABST
    Figure CN115065586B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention relates to a fault detection method, device, electronic device and storage medium of a control system, which receives channel signals of all channels; determines the channel status of the corresponding channel according to each channel signal; determines the node status of other preset nodes except the first preset node and the status of at least two switches according to the channel status of all channels; when it is determined that the node status of the second preset node is a fault, and / or when it is determined that the status of the first switch among at least two switches is a fault, generates a fault warning prompt corresponding to the faulty device. The faulty device is the first preset node or the first switch. In this way, the node where the fault occurs can be accurately located, and the corresponding fault warning prompt is given, which is convenient for equipment maintenance personnel to accurately locate the faulty node and perform maintenance in time to avoid greater losses caused by the fault.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control technology, and more particularly to a method, device, electronic device and storage medium for fault detection and data channel switching of a control system. Background Art

[0002] Maglev trains have the advantages of being fast, low-energy, environmentally friendly and safe, so they have a very broad prospect. At present, the speed of maglev trains can reach 500 to 600 kilometers per hour. Its high speed makes it superior to flying in the travel distance between 1000 and 1500 kilometers, but also puts higher requirements on its safety and reliability.

[0003] At present, the main station control system of the maglev train is composed of two independent master-slave control systems. The two systems control the primary equipment and collect the primary equipment data through two independent Ethernet communication channels respectively. Users view the data and function control through the workstation.

[0004] However, when some important nodes of the main control system fail, the problem cannot be located quickly and accurately, and the server needs to be stopped for manual maintenance, which affects the stable operation of the train. Summary of the invention

[0005] The present application provides a method, device and electronic device for control system fault detection and data channel switching to solve the problem in the prior art that when a main control system fails, it is impossible to quickly locate and perform data hot switching.

[0006] In a first aspect, the present application provides a method for fault detection of a control system, the method being applied to a redundant control system, the control system comprising a terminal device, a plurality of preset nodes of different types, and at least two switches; channels are established between the preset nodes, or channels are established between the preset nodes through the switches;

[0007] The method is executed by a first preset node, and the method includes:

[0008] Receive channel signals of all channels;

[0009] Determine, according to each channel signal among all channel signals, a channel state of a channel corresponding to the channel signal;

[0010] Determine the node status of other preset nodes except the first preset node and the status of at least two switches according to the channel status of all channels;

[0011] When it is determined that the node status of the second preset node is faulty, and / or when it is determined that the status of the first switch among the at least two switches is faulty, a fault warning prompt corresponding to the faulty device is generated, wherein the first preset node and the second preset node are any one of the multiple preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of the at least two switches, and the faulty device is the first preset node or the first switch.

[0012] Through the above method, by judging the channel status of multiple channels connected to the preset node, the node where the fault occurs is determined and the corresponding fault warning prompt is issued, which makes it easy for equipment maintenance personnel to quickly find the faulty node and handle it in time to avoid greater losses due to the fault.

[0013] Optionally, the channel signal is a heartbeat signal, and judging the channel state of a channel corresponding to the channel signal according to each channel signal among all the channel signals includes:

[0014] Periodically obtain heartbeat signals;

[0015] When the number of heartbeat signals acquired within a preset time is less than a first preset threshold, confirming that the channel state corresponding to the heartbeat signal is faulty;

[0016] Alternatively, when the number of heartbeat signals within a preset time is greater than or equal to a first preset threshold, it is confirmed that the channel status corresponding to the heartbeat signal is normal.

[0017] Through the above method, the state of the channel can be accurately judged according to the number of heartbeat signals of the receiving node, thereby improving the accuracy of the judgment.

[0018] Optionally, determining whether the node status of the second preset node is faulty specifically includes:

[0019] When the channel status of all channels connected to the preset node is faulty, and the channel status of other channels is normal, it is confirmed that the node status of the preset node is faulty.

[0020] In the above manner, the state of the preset node connected to the channel can be accurately determined by the channel state.

[0021] Optionally, determining whether the state of the first switch is faulty specifically includes:

[0022] When the channel status of the channel connected through the first switch is faulty and the channel status of other channels is normal, it is confirmed that the status of the first switch is faulty.

[0023] Through the above method, when the state of the switch cannot be directly determined, the state of the switch can be indirectly determined by determining the channel connected through the switch. When the switch fails, the faulty switch can be located quickly and accurately.

[0024] In a second aspect, the present application provides a method for switching a data channel, which is applied to a redundant control system, the control system comprising a terminal device, a plurality of preset nodes of different types, and at least two switches, wherein channels are established between the preset nodes, or channels are established between the preset nodes through the switches; the method is executed by the terminal device, and the method comprises:

[0025] Obtaining fault information of a faulty device, where the faulty device is a preset node or switch that has failed and is determined by the method provided in the first aspect;

[0026] Determine the data channel switching strategy based on the type of faulty equipment and fault information;

[0027] According to the data channel switching strategy, the switching operation corresponding to the faulty device is performed.

[0028] Through the above method, when a node fails, it automatically switches to other normal nodes corresponding to the faulty device according to the type and fault information of the faulty device, ensuring the stable operation of the system without external perception.

[0029] Optionally, the preset node includes a master server and multiple slave servers, and the switch includes multiple switches. According to the faulty device, a switching operation corresponding to the faulty device is performed, specifically including:

[0030] When the faulty device is the first switch, the first data channel is switched to the second data channel, wherein the first data channel is a data channel between the main server and the first switch, the second data channel is a data channel formed by the main server and other switches except the first switch, and the first switch is any one of the multiple switches;

[0031] When the failed device is a master server, the first data channel is switched to a third data channel, wherein the third data channel is a data channel established between the first slave server and the first switch, and the first slave server is any one of the multiple slave servers;

[0032] When the failed devices are the master server and the first switch, the first data channel is switched to the fourth data channel, wherein the fourth data channel is a data channel formed by the first slave server and other switches except the first switch.

[0033] In the above manner, when a node fails, it switches to other normal nodes corresponding to the failed device according to the type and fault information of the failed device, thereby ensuring the stable operation of the system.

[0034] In a third aspect, the present application provides a device for controlling system fault detection, the device comprising:

[0035] A receiving module, used for receiving channel signals of all channels;

[0036] A judging module, used for judging the channel state of a channel corresponding to the channel signal according to each channel signal among all the channel signals;

[0037] A determination module, configured to determine the node states of other preset nodes except the first preset node and the states of at least two switches according to the channel states of all channels;

[0038] The processing module is used to generate a fault warning prompt corresponding to the faulty device when it is determined that the node status of the second preset node is faulty and / or when it is determined that the status of the first switch among the at least two switches is faulty, wherein the first preset node and the second preset node are any one of the multiple preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of the at least two switches, and the faulty device is the first preset node or the first switch.

[0039] Optionally, also include:

[0040] An acquisition module is used to periodically acquire heartbeat signals;

[0041] A confirmation module is used to confirm that the channel status corresponding to the heartbeat signal is faulty when the number of heartbeat signals obtained within a preset time is less than a first preset threshold; or to confirm that the channel status corresponding to the heartbeat signal is normal when the number of heartbeat signals within the preset time is greater than or equal to the first preset threshold.

[0042] Optionally, also include:

[0043] The confirmation module is further used to confirm that the node status of the preset node is faulty when the channel status of all channels connected to the preset node is faulty and the channel status of other channels is normal, and to confirm that the status of the first switch is faulty when the channel status of the channel connected through the first switch is faulty and the channel status of other channels is normal.

[0044] In a fourth aspect, the present application provides a device for switching a data channel, the device comprising:

[0045] An acquisition module, used to acquire fault information of a faulty device, where the faulty device is a preset node or switch that has failed and is determined by the method of the first aspect;

[0046] A determination module, used to determine a data channel switching strategy according to the type of faulty equipment and fault information;

[0047] The execution module is used to execute the switching operation corresponding to the faulty device according to the data channel switching strategy.

[0048] Optionally, also include:

[0049] A switching module is used to switch the first data channel to the second data channel when the faulty device is the first switch, wherein the first data channel is the data channel between the master server and the first switch, and the second data channel is the data channel formed by the master server and other switches except the first switch; when the faulty device is the master server, switch the first data channel to the third data channel, wherein the third data channel is the data channel established between the first slave server and the first switch, and the first slave server is any slave server among any slave servers; when the faulty devices are the master server and the first switch, switch the first data channel to the fourth data channel, wherein the fourth data channel is the data channel formed by the first slave server and other switches except the first switch.

[0050] In a fifth aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0051] Memory, used to store computer programs;

[0052] The processor is used to implement the steps of the control system fault detection method as in any embodiment of the first aspect, or the steps of the data channel switching method as in any embodiment of the second aspect when executing the program stored in the memory.

[0053] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for control system fault detection as in any embodiment of the first aspect are implemented, or the steps of the method for data channel switching as in any embodiment of the second aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic flow chart of a method for fault detection of a control system provided by an embodiment of the present invention;

[0055] Figure 2 A schematic diagram of the structure of a master-slave control system provided by the present invention;

[0056] Figure 3 A schematic diagram of the structure of a redundant device provided by the present invention;

[0057] Figure 4 A schematic flow chart of another control system fault detection method provided by an embodiment of the present invention;

[0058] Figure 5 A schematic diagram of the architecture of a control system provided by an embodiment of the present invention;

[0059] Figure 6 A schematic flow chart of a method for switching a data channel provided by an embodiment of the present invention;

[0060] Figure 7 A schematic diagram of the structure of a terminal device provided by the present invention;

[0061] Figure 8 A schematic flow chart of another method for switching data channels provided by an embodiment of the present invention;

[0062] Fig. 9 A schematic diagram of the structure of a control system fault detection device provided by an embodiment of the present invention;

[0063] Fig.10 A schematic diagram of the structure of a data channel switching device provided by an embodiment of the present invention;

[0064] Fig.11 A schematic diagram of the structure of an electronic device is provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0066] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0067] In view of the technical problems mentioned in the background technology, the embodiment of the present application provides a method for fault detection of a control system, which is applied to a redundant control system, the control system comprising a terminal device, a plurality of preset nodes of different types and at least two switches; channels are established between the preset nodes, or channels are established between the preset nodes through switches; the preset nodes can be a master server, a slave server or a redundant device. The method is executed by the first preset node, see Figure 1 As shown, Figure 1 A schematic flow chart of a method for fault detection of a control system provided by an embodiment of the present invention, the method comprising the following steps:

[0068] Step 110: Receive channel signals of all channels.

[0069] Specifically, the channel is a channel directly established between preset nodes or a channel established between preset nodes through a switch, and the preset nodes send and receive channel signals to each other through the directly established channel or through the channel established through the switch.

[0070] In an alternative example, for example Figure 2 In the master-slave control system shown, the preset nodes are the master server, the slave server and the redundant device. The master server, the slave server, the redundant device and other terminal devices are connected through the Ethernet port of the first switch to form a master LAN. The master server, the slave server, the redundant device and other terminal devices are connected through the Ethernet port of the second switch to form a slave LAN. The master LAN and the slave LAN form a master-slave redundant control system.

[0071] During the operation of the control system, when a control system fails, it is necessary to quickly locate the fault and issue an early warning so that equipment maintenance personnel can quickly find the faulty equipment. However, the current switch does not have the function of sending and receiving channel signals, and the status of the switch cannot be directly judged through the channel. Therefore, redundant equipment needs to be introduced. Through the communication port of the redundant equipment, channels can be established between different nodes or through the switch, so that all nodes have corresponding channels to establish connections, so as to achieve the goal of accurate positioning when any node or switch fails.

[0072] The redundant device can be constructed as follows Figure 3 As shown, Figure 3 A schematic diagram of the structure of a redundant device in an application scenario is shown, including network port 1, network port 2, Bluetooth, a microcontroller unit (MCU) chip and an early warning device. Network port 1 and network port 2 can be Ethernet ports for establishing a connection with a switch.

[0073] exist Figure 2In the master-slave control system shown, the master server, slave server, and redundant device all have two Ethernet ports (port 1 and port 2) and Bluetooth. The specific channel connection methods include but are not limited to the following connection methods, which are specifically referred to as follows:

[0074] The master server and the slave server establish a first signal channel (channel 1) through the first switch, the master server and the slave server establish a second signal channel (channel 2) through the second switch, the master server and the redundant device establish a third signal channel (channel 3) through the first switch, the slave server and the redundant device establish a fourth signal channel (channel 4) through the second switch, the master server and the redundant device directly establish a fifth signal channel (channel 5), the slave server directly establishes a sixth signal channel (channel 6) through the redundant device, the first switch and the second switch establish communication connections with the master server, the slave server and the redundant device through the Ethernet port, and the redundant device establishes communication connections with the master server and the slave server through Bluetooth.

[0075] The main server, slave server and redundant device are three preset nodes, which send and receive channel signals through the signal channel. Each preset node can directly or indirectly receive channel signals of all channels. For example, the main server can directly receive the signal of the connected channel 1, and can also indirectly receive the channel signal of channel 6 forwarded by the slave server through channel 1.

[0076] It should be noted that, for the convenience of description, Figure 2 The embodiment is only for the case of one slave server. In actual application, it can also support the case of multiple slave servers. The connection of multiple channels can be achieved by adding communication ports or adding redundant devices. The principle is consistent with the master-slave control system of one slave server.

[0077] Step 120: According to each channel signal, determine the channel state of the corresponding channel.

[0078] Specifically, when the channel signal received by the preset node meets the preset target, the channel signal is judged to be a normal channel signal, and its corresponding channel state is normal. When the channel signal received by the preset node does not meet the preset target, the channel signal is judged to be an abnormal channel signal, and its corresponding channel state is faulty. The preset target can be the number of signals received within a preset time period, or it can be that the received channel signal meets a certain rule. As long as it can determine whether the channel signal is normal, no excessive restrictions are made here.

[0079] Step 130: Determine the node status of other preset nodes except the first preset node and the status of at least two switches according to the channel status of all channels.

[0080] Specifically, each preset node can obtain channel signals of all channels, and can determine the status of other preset nodes through the channel status, and indirectly, can also determine the status of the switch connected to the preset node.

[0081] In an alternative example, for example Figure 2 In the master-slave control system shown, the master server can determine the status of the slave server and the redundant device, the slave server can determine the status of the master server and the redundant device, and the redundant device can also determine the status of the master server and the slave server. At the same time, the master server, the slave server and the redundant device can also determine the status of the first switch through the channel connected to the first switch, and determine the status of the second switch through the channel connected to the second switch.

[0082] Step 140: When it is determined that the node status of the second preset node is faulty, and / or when it is determined that the status of the first switch among the at least two switches is faulty, a fault warning prompt corresponding to the faulty device is generated.

[0083] Specifically, the first preset node and the second preset node are any one of a plurality of preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of at least two switches, and the faulty device is the first preset node or the first switch. When it is determined that other preset nodes other than the first preset node are faulty, a fault warning prompt corresponding to the faulty node is generated according to a pre-configured warning rule, or, when it is determined that the first switch is faulty, a fault warning prompt corresponding to the first switch is generated according to a pre-configured warning rule. Further, if multiple devices fail at the same time, for example, when it is determined that multiple preset nodes in the second preset node and the switch are faulty or multiple switches are faulty, according to the pre-configured rules, warning prompts corresponding to multiple faulty devices can be generated at the same time, or the warning prompt of the device that fails later can cover the warning prompt of the device that fails earlier, which can be determined according to the actual situation.

[0084] In an alternative example, for example Figure 2 In the control system shown, the master server, slave server and redundant device are all equipped with an early warning device, which can make corresponding prompts for different faulty nodes or switches. For example, it can be a speaker that gives prompts by playing music, or it can be a light, such as a light emitting diode lamp or other equipment, which gives prompts through light color, flashing frequency or a distinguishable form of expression.

[0085] When the main server fails, the slave server and the redundant device generate a fault warning prompt corresponding to the main server failure. When the slave server fails, the main server and the redundant device generate a fault warning prompt corresponding to the slave server. When the redundant device fails, the main server and the slave server generate a fault warning prompt corresponding to the redundant device.

[0086] Through the above method, the status of multiple channels connected to the node is judged, the faulty node is located and the corresponding fault warning prompt is given, which makes it easy for maintenance personnel to quickly find the faulty node and perform corresponding fault processing.

[0087] Further optionally, determining whether a node state of the second preset node fails specifically includes:

[0088] When the channel status of all channels connected to the preset node is faulty, and the channel status of other channels is normal, it is confirmed that the node status of the preset node is faulty.

[0089] Specifically, the status of the preset node can be determined by the status of the channels connected to the preset node. When all channels connected to a preset node are faulty and the status of other channels is normal, it can be confirmed that the preset node is faulty.

[0090] In an alternative example, for example Figure 2 In the control system shown in FIG. 1 , although the master server, slave server and redundant device cannot judge their own faults, they can judge the status of other nodes through the six channels described in step 110. The specific judgment and fault warning methods are as follows: Figure 4 The process diagram is shown as follows:

[0091] If channel 1, channel 2, channel 3, and channel 5 fail, and other channels are normal, the main server is determined to be faulty, and the slave server and redundant device both play level 1 alarm music through their respective speakers.

[0092] If channel 1, channel 2, channel 4, and channel 6 fail, and other channels are normal, the slave server is determined to be faulty, and the main server and redundant module both play secondary alarm music through their respective speakers.

[0093] If channel 3, channel 4, channel 5, and channel 6 fail, and other channels are normal, the redundant module is determined to be faulty, and both the master server and the slave server play the third-level alarm music through their respective speakers.

[0094] Through the above method, the state of the node is accurately judged by the state of the channel connected to the node, and corresponding reminders are given for faults according to different nodes, so that maintenance personnel can accurately locate the faulty node.

[0095] Optionally, determining whether a node state of the first switch fails specifically includes:

[0096] When the channel status of the channel connected through the first switch is faulty and the channel status of other channels is normal, it is confirmed that the status of the first switch is faulty.

[0097] Specifically, because the current switches do not have the function of sending and receiving channel signals, the state of the switch can be indirectly judged based on the channel signals of the channels composed of other nodes connected through the switch. When the channel states of all channels connected through the first switch are faulty and the channel states of other channels are normal, it can be judged that the state of the first switch is faulty.

[0098] In an alternative example, for example Figure 2 In the control system shown in FIG. 1 , the master server, the slave server and the redundant device can judge the state of the switch according to the state of the channel connected through the switch through the 6 channels as described in step 110, and generate corresponding fault warning prompts. The specific judgment and fault warning prompt methods are as follows: Figure 4 The process diagram shown is as follows:

[0099] If channel 1 and channel 4 fail and other channels are normal, the first switch is determined to be faulty, and the main server, slave server, and redundant module all play level 4 alarm music through their respective speakers.

[0100] If channel 2 and channel 3 fail and other channels are normal, the second switch is determined to be faulty, and the main server, slave server, and redundant module all play level 5 alarm music through their respective speakers.

[0101] It should be noted that the alarm music is only a form of early warning prompt. The first, second, third, fourth and fifth levels are only for distinguishing different settings. There is no order of precedence. In actual applications, different music prompts can be set according to actual conditions, for example, according to the importance of the equipment.

[0102] Through the above method, the status of the switch is accurately judged by the status of the channel connected to the switch, so that the equipment maintenance personnel can accurately locate the faulty switch and perform maintenance in time.

[0103] Optionally, the channel signal is a heartbeat signal, and judging the channel state of a channel corresponding to the channel signal according to each channel signal among all the channel signals includes:

[0104] Periodically obtain heartbeat signals;

[0105] When the number of heartbeat signals acquired within a preset time is less than a first preset threshold, confirming that the channel state corresponding to the heartbeat signal is faulty;

[0106] Alternatively, when the number of heartbeat signals within a preset time is greater than or equal to a first preset threshold, it is confirmed that the channel status corresponding to the heartbeat signal is normal.

[0107] Specifically, the channel signal may be a heartbeat signal, which sends a data to the other connected device at regular intervals, and determines whether the communication link between the two connected devices has been disconnected based on the other party's reply.

[0108] In an optional example, for example, if mutual communications are performed 3 times or more within 1 second, the channel signal is judged to be a normal channel signal, and the channel state corresponding to the channel signal is a normal state. When mutual communications are performed less than 3 times within 1 second, the channel signal is judged to be an abnormal channel signal, and the channel state corresponding to the channel signal is a fault state. Of course, other methods can also be adopted, such as counting method, adding a fixed number to each reply, such as 1, and judging the state of the channel signal by judging the reply data. This technology is relatively mature, and examples are not given here one by one. It can be determined according to the actual situation.

[0109] Through the above method, the state of the channel can be accurately determined according to the number of heartbeat signals received by the node.

[0110] The above is a method for determining faults of each node and switch of the control system. When a fault occurs, in order to ensure the stable operation of the system, it is also necessary to switch the data channel of the node where the fault occurs to a normal node. Therefore, the present application also provides a method for switching data channels. The method is applied to a redundant control system. The control system includes a terminal device, a plurality of preset nodes of different types, and at least two switches. Channels are established between the preset nodes, or channels are established between the preset nodes through the switches. The method is executed by the terminal device. Before introducing the steps of the method, a specific architecture to which the method can be applied is first introduced, such as Figure 5 As shown, the server layer is Figure 1 The architecture of the control system fault detection method shown in the figure, and the related functions have been described in detail above. The client layer includes a terminal device, and the terminal device includes at least one, each terminal device is connected to the first switch through a first network port to access the main local area network, and is connected to the second switch through a second network port to access the slave local area network, wherein the first network port and the second network port are two different Ethernet ports of the terminal device, respectively. When a system node of the server layer fails, the terminal device controls each node to perform a data channel switching operation, specifically including the following: Figure 6 The method steps shown:

[0111] Step 610: Obtain fault information of the faulty device.

[0112] Specifically, the faulty device is Figure 1 The control system fault detection method shown determines a preset node or switch where a fault has occurred.

[0113] In an alternative example, for example in Figure 5 In the architectural diagram of the control system shown, the faulty device may be one or more of the main server, the slave server, the first switch, the second switch and the redundant module. The terminal device can monitor the working status of each node device in the service layer in real time or periodically through Ethernet or other communication methods. When a device fails, the fault information of the faulty device can be obtained.

[0114] Step 620: Determine a data channel switching strategy based on the type of the faulty device and the fault information.

[0115] Specifically, in an optional example, when the type of the faulty device is the main server, the data channel switching strategy corresponding to the main server is determined based on the fault information of the main server; when the type of the faulty device is the first switch, the data channel switching strategy corresponding to the first switch is determined. Other nodes also have corresponding data channel switching strategies. The principle is to switch to a node device with the same function as the faulty device type, which can replace all functions of the faulty device.

[0116] Step 630: Execute a switching operation corresponding to the faulty device according to the data channel switching strategy.

[0117] Specifically, the failover strategy execution device may be: Figure 7 The terminal device shown includes a display unit and a fault logic processing unit. The fault logic processing unit is an execution module of the terminal device, which switches the data channel to a node device corresponding to the faulty device according to a data channel switching strategy.

[0118] The display unit of the terminal device can display the fault when a node device fails, making it easier for equipment maintenance personnel to view specific fault information.

[0119] In the above manner, when a node fails, it switches to other normal nodes corresponding to the failed device according to the type and fault information of the failed device, thereby ensuring the stable operation of the system.

[0120] Optionally, the preset node includes a master server and multiple slave servers, and the switch includes multiple switches. According to the faulty device, a switching operation corresponding to the faulty device is performed, specifically including:

[0121] When the faulty device is the first switch, the first data channel is switched to the second data channel, wherein the first data channel is a data channel between the main server and the first switch, the second data channel is a data channel formed by the main server and other switches except the first switch, and the first switch is any one of the multiple switches;

[0122] When the failed device is a master server, the first data channel is switched to a third data channel, wherein the third data channel is a data channel established between the first slave server and the first switch, and the first slave server is any one of the multiple slave servers;

[0123] When the failed devices are the master server and the first switch, the first data channel is switched to the fourth data channel, wherein the fourth data channel is a data channel formed by the first slave server and other switches except the first switch.

[0124] Specifically, in an optional example, for example, Figure 5 In the control system architecture shown in FIG. 1 , the specific data channel switching strategy is as follows: Figure 8 As shown, when the switch of the main LAN, i.e., the first switch, fails, the data channel is switched to the data channel of the second switch; when the main server fails, the data channel is switched to the data channel of the slave server of the main LAN; when the main server and the first switch fail at the same time, the data channel is switched to the data channel of the slave server of the slave LAN. When the slave server fails or the second switch fails, there is no need to switch the data channel, and the main LAN composed of the main server and the first switch can be used. It is only necessary to issue a fault warning prompt to the faulty equipment so that the maintenance personnel can locate and repair it. The specific method has been described above.

[0125] In the above manner, when a node fails, it switches to other normal nodes corresponding to the failed device according to the type and fault information of the failed device, thereby ensuring the stable operation of the system.

[0126] The above is an embodiment of the method for switching data channels provided by the present application.

[0127] The following are other embodiments of the method for control system fault detection provided by the present application, please refer to the following for details.

[0128] Fig. 9 A control system fault detection device provided by an embodiment of the present invention includes:

[0129] The receiving module 901 is used to receive channel signals of all channels;

[0130] The judging module 902 is used to judge the channel state of the corresponding channel according to each channel signal;

[0131] A determination module 903, configured to determine the node states of other preset nodes except the first preset node and the states of at least two switches according to the channel states of all channels;

[0132] The processing module 904 is used to generate a fault warning prompt corresponding to the faulty device when it is determined that the node status of the second preset node is faulty and / or when it is determined that the status of the first switch among the at least two switches is faulty, wherein the first preset node and the second preset node are any one of multiple preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of the at least two switches, and the faulty device is the first preset node or the first switch.

[0133] Optionally, the device further includes an acquisition module 905 and a confirmation module 906 .

[0134] An acquisition module 905 is used to periodically acquire a heartbeat signal;

[0135] Confirmation module 906 is used to confirm that the channel status corresponding to the heartbeat signal is faulty when the number of heartbeat signals obtained within the preset time is less than the first preset threshold; or, when the number of heartbeat signals within the preset time is greater than or equal to the first preset threshold, confirm that the channel status corresponding to the heartbeat signal is normal.

[0136] Optionally, the device further comprises:

[0137] The confirmation module 906 is further configured to confirm that the node status of the preset node is faulty when the channel status of all channels connected to the preset node is faulty and the channel status of other channels is normal.

[0138] Optionally, the device further comprises:

[0139] The confirmation module 906 is further configured to confirm that the state of the first switch is faulty when the channel state of the channel connected through the first switch is faulty and the channel states of other channels are normal.

[0140] The functions performed by the various components in the control system fault detection device provided by the embodiment of the present invention have been described in detail in any of the above method embodiments, and will not be repeated here.

[0141] The control system fault detection device provided by the embodiment of the present invention receives channel signals of all channels; according to each channel signal in all channel signals, determines the channel state of the channel corresponding to the channel signal; according to the channel state of all channels, determines the node state of other preset nodes except the first preset node, and the state of at least two switches; when it is determined that the node state of the second preset node is faulty, and / or when it is determined that the state of the first switch in at least two switches is faulty, generates a fault warning prompt corresponding to the faulty device, wherein the first preset node and the second preset node are any one of a plurality of preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of at least two switches, and the faulty device is the first preset node or the first switch. In the above manner, the states of the plurality of channels connected by the nodes are judged, the nodes with faults are located, and corresponding fault warning prompts are given, so that maintenance personnel can quickly find the faulty nodes and perform corresponding fault processing.

[0142] Fig.10 A data channel switching device provided in an embodiment of the present invention includes:

[0143] The acquisition module 1001 is used to acquire fault information of a faulty device, where the faulty device is a preset node or switch that has failed and is determined by the method of the first aspect;

[0144] A determination module 1002, configured to determine a data channel switching strategy according to the type of the faulty device and the fault information;

[0145] The execution module 1003 is used to execute the switching operation corresponding to the faulty device according to the data channel switching strategy.

[0146] Optionally, the device further includes a switching module 1004 .

[0147] The switching module 1004 is used for switching the first data channel to the second data channel when the faulty device is the first switch, wherein the first data channel is the data channel between the master server and the first switch, and the second data channel is the data channel formed by the master server and other switches except the first switch; when the faulty device is the master server, switching the first data channel to the third data channel, wherein the third data channel is the data channel established between the first slave server and the first switch, and the first slave server is any one of the slave servers; when the faulty devices are the master server and the first switch, switching the first data channel to the fourth data channel, wherein the fourth data channel is the data channel formed by the first slave server and other switches except the first switch.

[0148] The data channel switching device provided by the embodiment of the present invention obtains the fault information of the faulty device, where the faulty device is a preset node or switch that has failed and is determined by the method of the first aspect; determines the data channel switching strategy according to the type and fault information of the faulty device; and executes the switching operation corresponding to the faulty device according to the data channel switching strategy. In this way, when any node of the main control system fails, the data channel can be switched to the corresponding normal node to ensure the stable operation of the system.

[0149] like Fig.11 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0150] Memory 113, used for storing computer programs;

[0151] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the above Figure 1 A method for control system fault detection provided by any one of the method embodiments shown includes: receiving channel signals of all channels; judging the channel state of the channel corresponding to the channel signal according to each channel signal in all the channel signals; determining the node states of other preset nodes except the first preset node and the states of at least two switches according to the channel states of all the channels; when it is determined that the node state of the second preset node is faulty, and / or when it is determined that the state of the first switch among the at least two switches is faulty, generating a fault warning prompt corresponding to the faulty device, wherein the first preset node and the second preset node are both any one of a plurality of preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of the at least two switches, and the faulty device is the first preset node or the first switch.

[0152] Optionally, the channel signal is a heartbeat signal, and judging the channel state of a channel corresponding to the channel signal according to each channel signal among all the channel signals includes:

[0153] Periodically obtain heartbeat signals;

[0154] When the number of heartbeat signals acquired within a preset time is less than a first preset threshold, confirming that the channel state corresponding to the heartbeat signal is faulty;

[0155] Alternatively, when the number of heartbeat signals within a preset time is greater than or equal to a first preset threshold, it is confirmed that the channel status corresponding to the heartbeat signal is normal.

[0156] Optionally, determining whether a node state of the second preset node fails specifically includes:

[0157] When the channel status of all channels connected to the preset node is faulty, and the channel status of other channels is normal, it is confirmed that the node status of the preset node is faulty.

[0158] Optionally, determining whether a node state of the first switch fails specifically includes:

[0159] When the channel status of the channel connected through the first switch is faulty and the channel status of other channels is normal, it is confirmed that the status of the first switch is faulty.

[0160] Alternatively, implement the above Figure 6 The method for data channel switching provided by any one of the method embodiments shown includes:

[0161] Obtaining fault information of a faulty device, where the faulty device is a preset node or switch that has failed and is determined by the method provided in the first aspect;

[0162] Determine the data channel switching strategy based on the type of faulty equipment and fault information;

[0163] According to the data channel switching strategy, the switching operation corresponding to the faulty device is performed.

[0164] Optionally, according to the faulty device, performing a switching operation corresponding to the faulty device, specifically including:

[0165] When the faulty device is the first switch, the first data channel is switched to the second data channel, wherein the first data channel is a data channel between the main server and the first switch, and the second data channel is a data channel formed by the main server and other switches except the first switch;

[0166] When the failed device is a master server, the first data channel is switched to a third data channel, wherein the third data channel is a data channel established between the first slave server and the first switch, and the first slave server is any one of the multiple slave servers;

[0167] When the failed devices are the master server and the first switch, the first data channel is switched to the fourth data channel, wherein the fourth data channel is a data channel formed by the first slave server and other switches except the first switch.

[0168] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 The steps of the control system fault detection method provided by any method or Figure 6 The steps of the method for data channel switching provided by any one of the method embodiments.

[0169] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0170] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features applied herein.

Claims

1. A control system fault detection method, characterized in that: The method is applied to a redundant control system, the control system comprising a terminal device, a plurality of preset nodes of different types and at least two switches; the preset nodes comprising a master server, a plurality of slave servers and a redundant device, channels are established between the preset nodes, or channels are established between the preset nodes through the switches; The method is executed by a first preset node, where the first preset node is any one of a plurality of preset nodes of different types, and the method includes: directly or indirectly receiving channel signals of all the channels; According to each channel signal, determine the channel status of the corresponding channel; Determine the node status of other preset nodes except the first preset node and the status of at least two of the switches according to the channel status of all the channels; When it is determined that the node status of the second preset node is faulty, and / or when it is determined that the status of the first switch among the at least two switches is faulty, a fault warning prompt corresponding to the faulty device is generated, wherein the first preset node and the second preset node are any one of the plurality of preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of the at least two switches, and the faulty device is the first preset node or the first switch; Determining whether the state of the first switch is a fault specifically includes: When the channel status of the channel connected through the first switch is faulty and the channel status of other channels is normal, it is confirmed that the status of the first switch is faulty.

2. The method according to claim 1, characterized in that The channel signal is a heartbeat signal, and judging the channel state of the corresponding channel according to each channel signal includes: Periodically acquiring the heartbeat signal; When the number of the heartbeat signals acquired within a preset time is less than a first preset threshold, confirming that the channel state of the channel corresponding to the heartbeat signal is faulty; Alternatively, when the number of the heartbeat signals within a preset time is greater than or equal to a first preset threshold, it is confirmed that the channel state of the channel corresponding to the heartbeat signal is normal.

3. The method according to claim 1 or 2, characterized in that: The determining whether the node status of the second preset node is a fault specifically includes: When the channel status of all the channels connected to the second preset node is faulty, and the channel status of other channels is normal, it is confirmed that the node status of the second preset node is faulty.

4. A data channel switching method for a control system, characterized in that: The method is applied to a control system, the control system includes a terminal device, a plurality of preset nodes of different types and at least two switches, the method is executed by the terminal device, and the method includes: Obtaining fault information of a faulty device, wherein the faulty device is a preset node or switch that has failed as determined by the method according to any one of claims 1 to 3; Determining a data channel switching strategy according to the type of the faulty device and the fault information; According to the data channel switching strategy, a switching operation corresponding to the faulty device is performed.

5. The method according to claim 4, characterized in that The preset node includes a master server, multiple slave servers and a redundant device, the switch includes multiple switches, and the switching operation corresponding to the faulty device is performed according to the faulty device, specifically including: When the faulty device is the first switch, the first data channel is switched to the second data channel, wherein the first data channel is the data channel between the main server and the first switch, the second data channel is the data channel formed by the main server and other switches except the first switch, and the first switch is any one of the multiple switches; When the faulty device is the master server, switching the first data channel to a third data channel, wherein the third data channel is a data channel established between a first slave server and the first switch, and the first slave server is any one of the multiple slave servers; When the faulty devices are the master server and the first switch, the first data channel is switched to a fourth data channel, wherein the fourth data channel is a data channel formed by the first slave server and other switches except the first switch.

6. A fault detection device for a control system, characterized in that: Applied to a redundant control system, the control system includes a terminal device, a plurality of preset nodes of different types and at least two switches; the preset nodes include a master server, a plurality of slave servers and a redundant device, channels are established between the preset nodes, or channels are established between the preset nodes through the switches; The device is located at a first preset node, which is any one of a plurality of different types of preset nodes; the device comprises: A receiving module, used for directly or indirectly receiving channel signals of all channels; A judgment module, used for judging the channel state of the corresponding channel according to each channel signal; A determination module, configured to determine the node states of other preset nodes except the first preset node and the states of at least two switches according to the channel states of all the channels; a processing module, configured to generate a fault warning prompt corresponding to the faulty device when it is determined that the node state of the second preset node is faulty and / or when it is determined that the state of the first switch among the at least two switches is faulty, wherein the first preset node and the second preset node are any one of the plurality of preset nodes, and the first preset node and the second preset node are different preset nodes, the first switch is any one of the at least two switches, and the faulty device is the first preset node or the first switch; The confirmation module is used to confirm that the state of the first switch is faulty when the channel state of the channel connected through the first switch is faulty and the channel states of other channels are normal.

7. A data channel switching device for a control system, characterized in that: The device comprises: An acquisition module, used to acquire fault information of a faulty device, wherein the faulty device is a preset node or switch that has failed as determined by the method according to any one of claims 1 to 3; A determination module, used to determine a data channel switching strategy according to the type of the faulty device and the fault information; An execution module is used to execute a switching operation corresponding to the faulty device according to the data channel switching strategy.

8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the steps of the control system fault detection method described in any one of claims 1-3 or the control system data channel switching method described in any one of claims 4-5 when executing the program stored in the memory.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the fault detection method of the control system described in any one of claims 1 to 3 or the steps of the data channel switching method of the control system described in any one of claims 4 to 5 are implemented.

Citation Information

Patent Citations

  • SDN network service recovery device, system and method and master controller

    CN108270669A

  • Method and device for detecting network connectivity of data center and electronic equipment

    CN110830324A

  • Network fault positioning method and device for cloud storage system and electronic equipment

    CN110932894A

  • Network path adjusting method, system and device, electronic equipment and storage medium

    CN112491700A

  • Method and device for positioning terminal equipment with abnormal communication, and electronic equipment

    CN114401207A