A system fault detection method, device, apparatus and storage medium
By acquiring and analyzing intermediate state signal sets and communication signals in the control system, faults in automated warehousing systems can be detected and located, solving the problem of fault detection in control systems and improving the reliability and safety of the system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING GEEKPLUS TECH CO LTD
- Filing Date
- 2023-07-07
- Publication Date
- 2026-07-14
AI Technical Summary
In automated warehousing systems, it is difficult to locate the fault location and cause in a timely and accurate manner during the process from receiving a trigger signal from a human input to issuing control commands to the robot.
By acquiring the intermediate state signal set and communication signals in the control system, it detects whether there are abnormal signals in the preset fault type set and generates fault information, including the description and location of the fault type.
It enables timely detection and accurate location of control system faults, and can identify transmission interface faults, communication connection faults and control logic faults, thereby improving the reliability and security of the system.
Smart Images

Figure CN116880346B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automation technology, and in particular to a system fault detection method, apparatus, device, and storage medium. Background Technology
[0002] Automated warehousing is an intelligent warehousing model that uses autonomous mobile robots (AMRs) (hereinafter referred to as "robots") to handle and pick goods. In practical implementation scenarios, hundreds or even thousands of robots can be accommodated in a warehouse environment to perform tasks together. In order to maintain the safety between the robots and to intervene in unexpected states of the robots in a timely manner, it is necessary to issue control commands to the robots in some cases, such as controlling the robots to enter a safe stop state through the control system.
[0003] However, since the control system goes through multiple signal transmissions and processes from receiving the trigger signal from human input to issuing control commands to the robot, and involves multiple devices, it is quite difficult to detect the location and cause of the fault if a failure occurs.
[0004] Therefore, how to detect faults in robot control systems in a timely and accurate manner is a research topic in this field. Summary of the Invention
[0005] This application provides a system fault detection method, apparatus, device, and storage medium for detecting and locating the location and cause of a fault when the control system malfunctions in controlling a robot. Specifically, this application discloses the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a system fault detection method applied to a control system, the control system comprising at least two front-end devices, a master station device, and multiple slave station devices connected in the direction of signal transmission, the method comprising:
[0007] During the generation of the target control signal, the intermediate state signal set of the target control signal in the control system and the communication signal between the master station device and the multiple slave station devices are acquired. The intermediate state signal set includes the input signal and output signal of each of the at least two front-end devices and the master station device.
[0008] Detect whether the signal corresponding to the target fault type in the intermediate state signal set and the communication signal contains an abnormal signal, wherein the target fault type belongs to a preset fault type set;
[0009] If the signal corresponding to the target fault type contains an abnormal signal, fault information is generated based on the abnormal signal. The fault information includes a description of the target fault type and the location of the fault in the control system.
[0010] In conjunction with the first aspect, in one possible implementation of the first aspect, the pre-set set of fault types includes:
[0011] A first fault type is used to indicate a transmission interface fault present in the at least two front-end devices;
[0012] The second fault type is used to indicate a communication connection failure between the master station device and the plurality of slave station devices;
[0013] The third fault type is used to indicate a control logic fault in any of the at least two front-end devices.
[0014] In conjunction with the first aspect, in one possible implementation of the first aspect, if the target fault type includes the first fault type, detecting whether the intermediate state signal set and the signal corresponding to the target fault type in the communication signal include abnormal signals includes: detecting whether the intermediate state signal set includes abnormal signals; the input signal of each front-end device includes a first input initial control signal and a second input initial control signal, and detecting whether the intermediate signal set includes abnormal signals includes:
[0015] For any one of the at least two front-end devices and the main station device, detect whether the signal value of the first input initial control signal and the signal value of the second input initial control signal of the device are the same;
[0016] If they are different, the different signals are abnormal signals among the signals corresponding to the first fault type.
[0017] In conjunction with the first aspect, in one possible implementation of the first aspect, generating fault information based on the abnormal signal includes:
[0018] A first fault information is generated based on the different signals, and the first fault information includes: a description of the first fault type and the fault location;
[0019] The description of the first fault type is that the interface is disconnected;
[0020] The fault location includes the input interface of the device and the output interface of the device above it.
[0021] In conjunction with the first aspect, in one possible implementation of the first aspect, if the target fault type includes the second fault type, the second fault type corresponds to second fault information, and the second fault information includes:
[0022] The number of slave devices with abnormal communication signals and their identifiers.
[0023] In conjunction with the first aspect, in one possible implementation of the first aspect, if the target fault type includes the third fault type, the signal corresponding to the target fault type includes an abnormal signal, including:
[0024] For any front-end device, if there are no abnormalities in the input signals of the front-end device, the front-end device has no output signal.
[0025] In conjunction with the first aspect, in one possible implementation of the first aspect, the target fault type includes the first fault type and the second fault type.
[0026] Secondly, embodiments of this application also provide a system fault detection device applied to a control system, the control system including at least two front-end devices, a master station device, and multiple slave station devices connected in the direction of signal transmission, the device comprising:
[0027] The acquisition module is used to acquire, during the generation of the target control signal, the intermediate state signal set of the target control signal in the control system, and the communication signal between the master station device and the plurality of slave station devices, wherein the intermediate state signal set includes the input signal and output signal of each of the at least two front-end devices and the master station device;
[0028] The detection module is used to detect whether the signal corresponding to the target fault type in the intermediate state signal set and the communication signal contains an abnormal signal, wherein the target fault type belongs to a preset fault type set;
[0029] The generation module is used to generate fault information based on the abnormal signal if the signal corresponding to the target fault type contains an abnormal signal. The fault information includes a description of the target fault type and the location of the fault in the control system.
[0030] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory; the memory for storing computer-executable instructions; and the processor for reading instructions from the memory and executing the instructions to implement the aforementioned first aspect and any implementation thereof.
[0031] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer instructions for causing the computer to perform the methods of the first aspect and any implementation thereof.
[0032] In addition, embodiments of this application also provide a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the method in any implementation of the first aspect described above.
[0033] The system fault detection method provided in this application is applied to a control system. The control system includes at least two front-end devices, a master station device, and multiple slave station devices connected in the signal transmission direction. During the generation of a target control signal, each device in the control system generates its own signal and transmits the generated signal to the next device to ultimately generate the target control signal. Based on this, during the generation of the target control signal, this application embodiment can obtain an intermediate state signal set of the target control signal in the control system, as well as the communication signals between the master station device and the multiple slave station devices. The intermediate state signal set includes the input and output signals of each of the at least two front-end devices and the master station device. Furthermore, in this application embodiment, a fault type set can be preset. Then, based on the intermediate state signal set and the communication signals, it is possible to detect whether there are abnormal signals in the signals corresponding to the target fault type in the preset fault type set. If the signals corresponding to the target fault type contain abnormal signals, fault information is generated based on the abnormal signals. The fault information includes a description of the target fault type and the location of the fault in the control system. As can be seen, the embodiments of this application can use each device in the control system as an input / output node to obtain the status of the input and output signals of each device. Then, by detecting whether the signals corresponding to pre-set fault types contain abnormal signals, the existence of a corresponding type of fault in the control system can be detected, and fault information containing fault type description information and fault location can be generated. This not only enables targeted detection of the control system for corresponding faults according to pre-configured fault types, but also allows for the location of the fault during the detection process. Attached Figure Description
[0034] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 A schematic diagram of an exemplary control system provided in this application embodiment;
[0036] Figure 2 A flowchart illustrating an exemplary system fault detection method provided in this application embodiment;
[0037] Figure 3 A schematic diagram of the structure of an exemplary programmable logic controller (PLC) system provided for embodiments of this application;
[0038] Figure 4 A schematic diagram of an exemplary signal acquisition scenario provided in this application embodiment;
[0039] Figure 5 This is a schematic diagram of the structure of a system fault detection device provided in an embodiment of this application;
[0040] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0041] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, and to make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0042] While exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the embodiments of the present application can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the embodiments of the present application and to fully convey the scope of the embodiments of the present application to those skilled in the art.
[0043] It should be noted that, unless otherwise stated, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by those skilled in the art to which the embodiments of this application pertain.
[0044] The implementation scenarios and related technologies involved in the embodiments of this application are described below.
[0045] This application relates to robot control technology in AMR (Autonomous Mobile Robot) scenarios. The control system involved in this application may include at least two front-end devices, a master station device, and multiple slave station devices connected in the signal transmission direction. Each of the multiple slave station devices is used to control one robot. In some implementations, the control system involved in this application may be a PLC system.
[0046] like Figure 1 As shown, Figure 1 An exemplary control system is shown, which may include at least two front-end devices, a master station device, and multiple slave devices deployed on the robot. The at least two front-end devices and the master station device may be in a multi-level serial structure in the direction of signal transmission, while the master station device and the multiple slave devices may be in a parallel connection structure. The at least two front-end devices and the master station device may be electrically connected, and the master station device and each of the multiple slave devices may be wirelessly connected.
[0047] In this configuration, each front-end device provides a trigger button. Upon receiving a user-input trigger via this button, the front-end device generates an initial control signal using its optical grating, shielded sensors, and other components. This initial control signal is then transmitted to the next-level front-end device. The next-level device continues to transmit the initial control signal step-by-step until it reaches the master station device.
[0048] In practical implementation scenarios, users can trigger control of the robot by activating at least one of the two front-end devices.
[0049] It should be noted that, in this embodiment, the control signal triggered by the user's intent is defined as the target control signal. Before the master station device sends the target control signal to the slave station device, all signals transmitted between the front-end devices are defined as initial control signals. In some implementations, the initial control signal includes a first initial control signal and a second initial control signal, which are transmitted through two separate channels.
[0050] Furthermore, after receiving the first and second initial input control signals, the master station device can detect whether the signal values of the first and second initial input control signals are the same. The first and second initial input control signals are transmitted by front-end devices directly connected to the master station device. As described above, these first and second initial input control signals are transmitted through two separate channels. If the signal values of the first and second initial input control signals are the same, either the first or second initial input control signal is transmitted wirelessly as the target control signal to each slave station device, enabling the slave station devices to control the corresponding robots.
[0051] Clearly, from the control system receiving user triggers via the button box of the front-end device, to the front-end device responding to the user triggers to generate and transmit the initial control signal, and the master station sending the target control signal to each slave station device, the signal needs to be transmitted and processed through multiple levels of front-end devices and the master station device. Therefore, in the event of a control system failure, in order to achieve timely detection and accurate location of the fault, the control system proposed in this application embodiment can possess a fault detection function.
[0052] In some implementations, this fault detection function can be implemented by a fault detection device. For example, see again... Figure 1 The control system may also include a fault detection device, which can be connected to at least two front-end devices and a master station device to implement the following examples of system fault detection methods in the embodiments of this application.
[0053] The system fault detection method of this application embodiment will be described below.
[0054] See Figure 2 , Figure 2 This is a flowchart illustrating a system fault detection method provided in an embodiment of this application. This system fault detection method can, for example, be applied to... Figure 1 The illustrated control system. The fault detection method for this system includes the following steps:
[0055] Step S101: During the generation of the target control signal, the intermediate state signal set of the target control signal in the control system and the communication signals between the master station device and multiple slave station devices are acquired.
[0056] The intermediate state signal set may include the input and output signals of each of the at least two front-end devices and the master station device.
[0057] Optionally, in this embodiment of the application, fault detection can obtain the above-mentioned signals through the Modbus TCP interface.
[0058] Combination Figure 1 In the corresponding implementation, for any front-end device, the input signals of the front-end device may include: a first input initial control signal, a second input initial control signal, etc.; the output signals of the front-end device may include: a first output initial control signal, a second output initial control signal.
[0059] In some implementations, depending on the signal transmission direction, if the front-end device is the first of the at least two front-end devices to receive user triggering, the first input initial control signal of the front-end device may include: a first button initial control signal generated by the user triggering the button in the front-end device.
[0060] In other implementations, depending on the signal transmission direction, if the front-end device is the i-th level front-end device in the signal transmission hierarchy, and the front-end device also receives user triggers, the first input initial control signal of the front-end device may include: the first output initial control signal of the (i-1)-th level front-end device, and the first button initial control signal generated by the user triggering the button in the i-th level front-end device. Here, i is an integer greater than or equal to 2.
[0061] In some implementations, depending on the signal transmission direction, if the front-end device is the i-th level front-end device in the signal transmission hierarchy, but the front-end device has not received a user trigger, the first input initial control signal in the front-end device may include: the first output initial control signal of the (i-1)-th level front-end device.
[0062] The second input initial control signal of the front-end device is a signal with the same nature as the first input initial control signal but a different transmission channel. Therefore, corresponding to different implementations of the front-end device, the content of the second input initial control signal of the front-end device is similar to the content of the first input initial control signal mentioned above, and will not be repeated here.
[0063] The input signals of the master station equipment may include: the first output initial control signal and the second output initial control signal of the front-end equipment connected to the master station equipment. The output signals of the master station equipment may include: the target control signals output by the master station equipment to each slave station equipment.
[0064] The communication signals between the master station device and multiple slave station devices can be implemented, for example, as the communication status of each slave station device among the multiple slave station devices.
[0065] It should be understood that the above descriptions of the input and output signals of various devices are illustrative and do not constitute a limitation on the content of the input and output signals of the devices involved in the embodiments of this application. In some other implementations, the input signals of the front-end device may also include, for example, a reset input signal, a grating signal, and a sensor signal, and the output signal of the front-end device may also include, for example, a reset output signal, etc. These will not be described in detail here.
[0066] Step S102: Detect whether the signal corresponding to the target fault type in the intermediate state signal set and communication signal contains an abnormal signal.
[0067] The target fault type belongs to a pre-set set of fault types.
[0068] It should be noted that, in order to facilitate the detection and location of faults that occur relatively frequently, and to narrow down the scope of fault detection and location, a set of fault types can be preset in the embodiments of this application. Each fault type in the set of fault types can be a fault corresponding to a certain type of equipment or a certain type of signal in the control system.
[0069] For example, the pre-defined set of fault types may include:
[0070] A first fault type is used to indicate a transmission interface fault present in the at least two front-end devices;
[0071] The second fault type is used to indicate a communication connection failure between the master station device and the plurality of slave station devices;
[0072] The third fault type is used to indicate a control logic fault in any of the at least two front-end devices.
[0073] It should be understood that the set of fault types involved in the embodiments of this application may include more fault types, which will not be listed here.
[0074] In some implementation scenarios, the failure rate of the front-end device interface and the communication connection between the master device and multiple slave devices may be relatively high. Based on this, in some implementation methods, the target failure type includes a first failure type and a second failure type.
[0075] As described above regarding different fault types, the detected signals for different fault types are not the same. Therefore, if the target fault type includes the first fault type, detecting whether the intermediate state signal set and the communication signal corresponding to the target fault type include abnormal signals can be implemented as follows: detecting whether the intermediate state signal set includes abnormal signals. Specifically, for any one of at least two front-end devices and the master station device, it can be detected whether the signal values of the first input initial control signal and the second input initial control signal of that device are the same. If they are different, the different signals indicate a fault of the first fault type, and the different signals can be considered abnormal signals of the first fault type. If they are the same, it indicates that the device's signal is normal, that is, the device does not have a fault of the first fault type.
[0076] If the target fault type includes a second fault type, detecting whether the intermediate state signal set and the communication signal corresponding to the target fault type include abnormal signals can be implemented by detecting whether the communication signal includes abnormal signals. Specifically, it can be implemented by detecting whether the communication signal between each slave device and the master device is normal. If the communication signal between any slave device and the master device is abnormal, it indicates that the communication connection between the corresponding slave device and the master device is broken, i.e., an anomaly exists.
[0077] If the target fault type includes a third fault type, detecting whether the intermediate state signal set and the signal corresponding to the target fault type in the communication signal include abnormal signals can be achieved by detecting whether the input signal and output signal of any front-end device are abnormal.
[0078] For example, taking a PLC system as an example, the relevant signals in the PLC system can be logic signals, represented by logic high-level signals (signal value 1) and logic low-level signals (signal value 0). In this embodiment, for example, a signal value of 1 for the initial control signal can be determined as a normal signal, and a signal value of 0 for the initial control signal can be determined as an abnormal signal; similarly, a signal value of 0 for the reset signal can be determined as a normal signal, and a signal value of 1 for the initial control signal can be determined as an abnormal signal. Specifically, whether each signal is abnormal or not can be determined by the actual implementation, which will not be detailed here.
[0079] Step S103: If the signal corresponding to the target fault type contains an abnormal signal, generate fault information based on the abnormal signal.
[0080] The fault information includes a description of the target fault type and the location of the fault in the control system.
[0081] In some implementations, when the target fault type is the first fault type, first fault information is generated based on the aforementioned different first input initial control signal and second input initial control signal. The descriptive information in the first fault information may be, for example, "interface disconnected"; the fault location in the first fault information may be, for example, "input interface of the aforementioned device and output interface of the corresponding next-level device".
[0082] An exemplary presentation method of the first fault information is shown in Table 1:
[0083] Table 1
[0084]
[0085] In other implementations, when the target fault type is a second fault type, this second fault type corresponds to second fault information, which may include: the number of slave devices with abnormal communication signals and the slave device identifiers. The number of slave devices with abnormal communication signals can be descriptive information of the second fault type, and the slave device identifiers can be used to indicate the location of the second fault.
[0086] An exemplary method for presenting second fault information is shown in Table 2:
[0087] Table 2
[0088]
[0089] In some implementations, when the target fault type is the third fault type, for any front-end device, if there are no abnormalities in the input signals of the front-end device and the front-end device has no output signal, it is considered that the front-end device has a fault of the third fault type.
[0090] Table 3 shows an example of how fault information for a third fault type is presented:
[0091] Table 3
[0092]
[0093]
[0094] It should be understood that Tables 1 to 3 above are exemplary presentations of fault information and do not constitute a limitation on the fault information involved in the embodiments of this application. For fault information of other fault types in the embodiments of this application, the presentation format and content can be flexibly set, and are not limited here.
[0095] In addition, in some other implementations, in order to facilitate further analysis of the fault, if the signal corresponding to the target fault type contains an abnormal signal, the embodiment of this application can also obtain the error log in the main station equipment operation log.
[0096] In summary, the embodiments of this application can treat each device in the control system as an input / output node to acquire the status of the input and output signals of each device. Then, by detecting whether the signals corresponding to pre-set fault types contain abnormal signals, the existence of a corresponding type of fault in the control system can be detected, and fault information containing fault type description information and fault location can be generated. This not only enables targeted detection of the control system for corresponding faults according to pre-configured fault types, but also allows for the location of the fault during the detection process.
[0097] The embodiments of this application are described below with reference to examples.
[0098] The following example uses a PLC system as the control system. Figure 3 This is a schematic diagram of an exemplary PLC system provided in an embodiment of this application. The PLC system may include n front-end PLCs, a master PLC, multiple slave PLCs deployed on the robot, and a fault detection device. n is an integer greater than or equal to 2. The front-end PLCs may be, for example, […]. Figure 1 One implementation method for slave devices in a system, where the master PLC can be, for example, a... Figure 1 One implementation method for the master station equipment is as follows: the slave station PLC can be, for example, Figure 1 One implementation method for the central master station equipment.
[0099] Correspondingly, the connection relationships between the n front-end PLCs and the master PLC, the connection relationships between the master PLC and multiple slave PLCs, and the functions of the n front-end PLCs, master PLC, and multiple slave PLCs can be found in [reference needed]. Figure 1 The implementation method shown in the illustration will not be described in detail here.
[0100] In this example, the target control signal is, for example, an emergency stop signal, which is used to control the robot to enter a safe stop state.
[0101] See you again Figure 3 Each of the n front-end PLCs includes a button box, a grating, and a sensor. Since the n front-end PLCs in the PLC system transmit initial control signals through dual channels, the button box is used to generate button control signal 1 (equivalent to the first button input signal in the above embodiment) and button control signal 2 (equivalent to the first button input signal in the above embodiment) in response to user triggers. The grating is used to generate grating signal 1 and grating signal 2 in response to user triggers, and the sensor is used to generate sensor signal 1 and sensor signal 2 in response to user triggers.
[0102] See you again Figure 3 The fault detection device can collect intermediate state signals between n front-end PLCs and the master PLC when generating emergency stop signals via a Modbus TCP interface. An exemplary signal acquisition scenario is as follows: Figure 4 As shown.
[0103] For any front-end PLC, the fault detection device can, for example, collect the input emergency stop signal 1, input emergency stop signal 2, reset input signal, output emergency stop signal 1, output emergency stop signal 2, and reset output signal of that front-end PLC. If the front-end PLC receives a user trigger, the fault detection device can also, for example, collect the button box emergency stop input signal 1, button box emergency stop input signal 2, button box reset input signal, grating signal 1, grating signal 2, sensor signal 1, and sensor signal 2 of that front-end PLC.
[0104] For the master PLC, the fault detection device can collect, for example, the input emergency stop signal 1, input emergency stop signal 2, reset input signal, communication connection status signals between the master PLC and multiple slave PLCs, reset output signal, and the unique verification value of the master PLC.
[0105] For example, the signals collected by the fault detection device may include some or all of those in Table 4.
[0106] Table 4
[0107]
[0108]
[0109] For example, the various emergency stop signals in Table 4 are as follows: Under normal conditions, the signal level is high (signal value 1), indicating the ability to trigger an emergency stop; under abnormal conditions, the signal level is low (signal value 0), indicating the inability to trigger an emergency stop. Various reset signals are as follows: Under normal conditions, the signal level is low (signal value 0), indicating the reset button is not pressed; under abnormal conditions, the signal level is high (signal value 1), indicating the reset button is pressed. Raster and sensor signals are as follows: Under normal conditions, the signal level is high (signal value 1), representing no triggering or not entering a shielded state; under triggering conditions, the signal level is low (signal value 0), representing triggering or entering a shielded state. Communication connection status: This can be determined by the safety connection monitoring variable between the master PLC and slave PLC, which the master PLC can read in real time. The master PLC's unique audit value is used to identify whether the program in the master PLC has been accessed.
[0110] Furthermore, the fault detection device can detect whether the signals of the first fault type and the third fault type are abnormal based on the signals in Table 4. For example, the fault information in Tables 5 and 6 can be obtained respectively.
[0111] Table 5
[0112]
[0113] Table 6
[0114]
[0115]
[0116] In summary, the system fault detection method provided in this application is applied to a control system. The control system includes at least two front-end devices, a master station device, and multiple slave devices connected in the signal transmission direction. During the generation of the target control signal, each device in the control system generates its own signal and transmits the generated signal to the next device to ultimately generate the target control signal. Based on this, during the generation of the target control signal, this application can obtain the intermediate state signal set of the target control signal in the control system, as well as the communication signals between the master station device and the multiple slave devices. The intermediate state signal set includes the input and output signals of each of the at least two front-end devices and the master station device. Furthermore, in this application, a fault type set can be preset. Then, based on the intermediate state signal set and the communication signals, it is possible to detect whether there are abnormal signals in the signals corresponding to the target fault type in the preset fault type set. If the signals corresponding to the target fault type contain abnormal signals, fault information is generated based on the abnormal signals. The fault information includes the description information of the target fault type and the location of the fault in the control system. As can be seen, the embodiments of this application can use each device in the control system as an input / output node to obtain the status of the input and output signals of each device. Then, by detecting whether the signals corresponding to pre-set fault types contain abnormal signals, the existence of a corresponding type of fault in the control system can be detected, and fault information containing fault type description information and fault location can be generated. This not only enables targeted detection of the control system for corresponding faults according to pre-configured fault types, but also allows for the location of the fault during the detection process.
[0117] The following describes an apparatus embodiment corresponding to the aforementioned method embodiments.
[0118] This application also provides a system fault detection device, such as... Figure 5 As shown, the device includes: an acquisition module 501, a detection module 502, and a generation module 503. This fault detection device can be applied to... Figure 1 or Figure 3 In the fault detection equipment, used to perform Figure 2 and Figure 4 The illustrated embodiment shows a system fault detection method.
[0119] For example, the acquisition module 501 is used to acquire, during the generation of the target control signal, an intermediate state signal set of the target control signal in the control system, and communication signals between the master station device and the plurality of slave station devices, wherein the intermediate state signal set includes the input and output signals of each of the at least two front-end devices and the master station device; the detection module 502 is used to detect whether the signals corresponding to the target fault type in the intermediate state signal set and the communication signals contain abnormal signals, wherein the target fault type belongs to a preset fault type set; the generation module 503 is used to generate fault information based on the abnormal signals if the signals corresponding to the target fault type contain abnormal signals, wherein the fault information includes the description information of the target fault type and the location of the fault in the control system.
[0120] Optionally, the preset set of fault types includes: a first fault type, used to indicate a transmission interface fault in the at least two front-end devices; a second fault type, used to indicate a communication connection fault between the master station device and the plurality of slave station devices; and a third fault type, used to indicate a control logic fault in any of the at least two front-end devices.
[0121] Optionally, if the target fault type includes the first fault type, the detection module 502 is further configured to detect whether the intermediate state signal set includes an abnormal signal. The input signal of each front-end device includes a first input initial control signal and a second input initial control signal. The detection module 502 is further configured to, for any one of the at least two front-end devices and the main station device, detect whether the signal values of the first input initial control signal and the second input initial control signal of the device are the same; if they are different, the different signals are abnormal signals in the signals corresponding to the first fault type.
[0122] Optionally, the generation module 503 is further configured to generate first fault information based on the different signals, the first fault information including: a description of the first fault type and a fault location; the description of the first fault type is an interface disconnection; the fault location includes the input interface of the device and the output interface of the device above the device.
[0123] Optionally, if the target fault type includes the second fault type, the second fault type corresponds to second fault information, and the second fault information includes: the number of slave devices with abnormal communication signals and the slave device identifier.
[0124] Optionally, if the target fault type includes the third fault type, the signal corresponding to the target fault type includes an abnormal signal, including: for any front-end device, if there is no abnormality in the input signal of the front-end device, the front-end device has no output signal.
[0125] Optionally, the target fault type includes the first fault type and the second fault type.
[0126] The system fault detection device and the system fault detection method provided in this application are based on the same inventive concept and have the same beneficial effects as the methods used, run or implemented by the applications stored in this application.
[0127] In a specific implementation, this application also provides an electronic device, which may be the fault detection device in the foregoing embodiments, used to implement all or part of the steps in the foregoing fault detection method.
[0128] like Figure 6 The diagram shown is a structural schematic of an electronic device provided in an embodiment of this application. It includes a processor 600, a memory 601, a bus 602, and a communication interface 603. The processor 600, communication interface 603, and memory 601 are connected via the bus 602. The memory 601 stores a computer program that can run on the processor 600. When the processor 600 runs the computer program, it executes the system fault detection method provided in any of the foregoing embodiments of this disclosure.
[0129] The memory 601 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 603 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network.
[0130] Bus 602 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The memory 601 is used to store programs. After receiving an execution instruction, the processor 600 executes the program. The system fault detection method disclosed in any of the foregoing embodiments of this disclosure can be applied to the processor 600, or implemented by the processor 600.
[0131] The processor 600 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 600 or by instructions in software form. The processor 600 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 601. Processor 600 reads the information in memory 601 and, in conjunction with its hardware, completes the steps of the above method.
[0132] The electronic devices provided in this disclosure and the system fault detection methods provided in this disclosure are based on the same inventive concept and have the same beneficial effects as the methods they employ, operate, or implement.
[0133] This disclosure also provides a computer-readable storage medium corresponding to the system fault detection method provided in the foregoing embodiments. The computer-readable storage medium may be, for example, an optical disc, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it executes the system fault detection method provided in any of the foregoing embodiments.
[0134] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical and magnetic storage media, which will not be elaborated here.
[0135] Furthermore, this application also provides a computer program product for storing computer-readable program instructions, which, when executed by a processor, can implement a system fault detection method as described in the foregoing embodiments.
[0136] It should be noted that in this application, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0137] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0138] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).
[0139] For the purposes of this specification, "computer-readable medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0140] The above embodiments of this application do not constitute a limitation on the scope of protection of the embodiments of this application.
Claims
1. A system fault detection method, characterized in that, The method is applied to a control system, which includes at least two front-end devices, a master station device, and multiple slave station devices connected in the direction of signal transmission. During the generation of the target control signal, the intermediate state signal set of the target control signal in the control system and the communication signal between the master station device and the multiple slave station devices are acquired. The intermediate state signal set includes the input signal and output signal of each of the at least two front-end devices and the master station device. Detect whether the signal corresponding to the target fault type in the intermediate state signal set and the communication signal contains an abnormal signal, wherein the target fault type belongs to a preset fault type set; If the signal corresponding to the target fault type contains an abnormal signal, fault information is generated based on the abnormal signal. The fault information includes a description of the target fault type and the location of the fault in the control system. If the abnormal signal is an input signal of front-end device x, the location of the fault in the control system includes the control signal output interface of front-end device x-1 and the control signal input interface of front-end device x, where x is a positive integer. If the abnormal signal is an input signal of master station device, the location of the fault in the control system includes the control signal output interface of the front-end device connected to the master station device and the control signal input interface of the master station device.
2. The system fault detection method according to claim 1, characterized in that, The preset set of fault types includes: A first fault type is used to indicate a transmission interface fault present in the at least two front-end devices; The second fault type is used to indicate a communication connection failure between the master station device and the plurality of slave station devices; The third fault type is used to indicate a control logic fault in any of the at least two front-end devices.
3. The system fault detection method according to claim 2, characterized in that, If the target fault type includes the first fault type, detecting whether the signal corresponding to the target fault type in the intermediate state signal set and the communication signal includes an abnormal signal includes: Detecting whether the intermediate signal set includes abnormal signals; the input signals of each front-end device include a first input initial control signal and a second input initial control signal, and detecting whether the intermediate signal set includes abnormal signals includes: For any one of the at least two front-end devices and the main station device, detect whether the signal value of the first input initial control signal and the signal value of the second input initial control signal of the device are the same; If they are different, the different signals are abnormal signals among the signals corresponding to the first fault type.
4. The system fault detection method according to claim 3, characterized in that, Fault information is generated based on the abnormal signals, including: A first fault information is generated based on the different signals, and the first fault information includes: a description of the first fault type and the fault location; The description of the first fault type is that the interface is disconnected; The fault location includes the input interface of the device and the output interface of the device above it.
5. The system fault detection method according to claim 2, characterized in that, If the target fault type includes the second fault type, the second fault type corresponds to second fault information, and the second fault information includes: The number of slave devices with abnormal communication signals and their identifiers.
6. The system fault detection method according to claim 2, characterized in that, If the target fault type includes the third fault type, the signal corresponding to the target fault type contains an abnormal signal, including: For any front-end device, if there are no abnormalities in the input signals of the front-end device, the front-end device has no output signal.
7. The system fault detection method according to claim 2, characterized in that, The target fault type includes the first fault type and the second fault type.
8. A system fault detection device, characterized in that, include: The device is applied to a control system, which includes at least two front-end devices, a master station device, and multiple slave station devices connected in the direction of signal transmission. The device includes: The acquisition module is used to acquire, during the generation of the target control signal, the intermediate state signal set of the target control signal in the control system, and the communication signal between the master station device and the plurality of slave station devices, wherein the intermediate state signal set includes the input signal and output signal of each of the at least two front-end devices and the master station device; The detection module is used to detect whether the signal corresponding to the target fault type in the intermediate state signal set and the communication signal contains an abnormal signal, wherein the target fault type belongs to a preset fault type set; The generation module is configured to generate fault information based on the abnormal signal if the signal corresponding to the target fault type contains an abnormal signal. The fault information includes a description of the target fault type and the location of the fault in the control system. If the abnormal signal is an input signal of a front-end device x, the location of the fault in the control system includes the control signal output interface of front-end device x-1 and the control signal input interface of front-end device x, where x is a positive integer. If the abnormal signal is an input signal of a master station device, the location of the fault in the control system includes the control signal output interface of the front-end device connected to the master station device and the control signal input interface of the master station device.
9. An electronic device, comprising: Processor and memory, characterized in that, The memory is used to store computer-executable instructions; The processor is configured to read the instructions from the memory and execute the instructions to implement the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores computer program instructions, which, when read by a computer, execute the method as described in any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.