Method, device, equipment and medium for offline fault detection of electromechanical equipment
By detecting the connection between the host and the signal collector, generating and sending start commands and access protocol messages, analyzing feedback signals, the problem of low detection efficiency of motor equipment in the prior art is solved, and the effect of quickly obtaining fault information is achieved.
Patent Information
- Application Number
- CN202411084530.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-08
AI Technical Summary
In the prior art, the efficiency of motor equipment detection is low, and communication with the vehicle control system is required through the vehicle OBD system, resulting in low detection efficiency.
By detecting the connection between the host and the signal collector, the low-voltage power supply port is electrically connected to the electromechanical equipment to be tested, generating a start command and sending it to the device, receiving feedback signals, and generating access protocol messages based on the preset message sending and receiving policies and fault resolution rules and terminate instructions, parse data packets to obtain fault codes and data streams, and obtain matching fault guidance files from the maintenance database.
It realizes intelligent generation of access protocol messages and data messages analysis, quickly obtains fault information, and improves the efficiency of offline detection of electromechanical equipment.
Smart Images

Figure CN118604508B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent detection technology, and in particular to a method, device, equipment and medium for offline fault detection of electromechanical equipment. Background Art
[0002] At present, to detect the various electromechanical devices in the three-electric system of new energy vehicles, it is necessary to use the vehicle OBD (On-Board Diagnostics, on-board automatic diagnostic system) diagnostic port and use the corresponding manufacturer's communication protocol to communicate with the vehicle control system (VCU) of the vehicle to obtain the fault status of the three-electric system. After that, maintenance personnel need to make fault judgments and repairs based on experience according to vehicle faults. As a result, the efficiency of detecting motor equipment in the three-electric system is low. Therefore, the detection method for motor equipment in the existing technical methods has the problem of low detection efficiency. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, equipment and medium for offline fault detection of electromechanical equipment, aiming to solve the problem of low detection efficiency in the detection method for motor equipment in the prior art.
[0004] In a first aspect, an embodiment of the present invention provides a method for offline fault detection of electromechanical equipment, wherein the detection host is communicatively connected with a signal collector to realize data information transmission, a low-voltage power supply port is electrically connected with the electromechanical equipment to be tested through the signal collector, and a high-voltage power supply port is directly electrically connected with the electromechanical equipment to be tested, and the detection method comprises:
[0005] Generate a corresponding start instruction according to the input detection information and send it to the electromechanical device to be tested through the signal collector to receive a feedback signal output by the electromechanical device to be tested;
[0006] Sending a corresponding access protocol message to the electromechanical device to be tested according to a preset message sending and receiving strategy, the detection information and the feedback signal;
[0007] If a data message fed back by the signal collector is received, the data message is parsed according to a preset fault analysis rule to obtain corresponding message analysis information; the message analysis information includes a fault code and a data stream;
[0008] If the input termination information is received, a termination instruction corresponding to the detection information is generated according to the message receiving and sending strategy, and sent to the electromechanical device to be tested to terminate the detection;
[0009] A fault guidance file matching the message parsing information and the detection information is obtained from a preset maintenance database.
[0010] In a second aspect, the embodiment of the present application further provides a fault offline detection device for electromechanical equipment, wherein the detection device is configured in a detection host, the detection host is communicatively connected with a signal collector to realize the transmission of data information, the low-voltage power supply port is electrically connected to the electromechanical equipment to be tested through the signal collector, and the high-voltage power supply port is directly electrically connected to the electromechanical equipment to be tested, and the detection device includes:
[0011] A start instruction sending unit, used to generate a corresponding start instruction according to the input detection information and send it to the electromechanical device to be tested through the signal collector, so as to receive a feedback signal output by the electromechanical device to be tested;
[0012] An access protocol message sending unit, used for sending a corresponding access protocol message to the electromechanical device to be tested according to a preset message sending and receiving strategy, the detection information and the feedback signal;
[0013] A message parsing information acquisition unit, for parsing the data message fed back by the signal collector according to a preset fault parsing rule to acquire corresponding message parsing information if the data message fed back by the signal collector is received; the message parsing information includes a fault code and a data stream;
[0014] A termination instruction sending unit, configured to generate a termination instruction corresponding to the detection information according to the message sending and receiving strategy if the input termination information is received, and send the termination instruction to the electromechanical device to be tested to terminate the detection;
[0015] The fault guidance file acquisition unit is used to acquire a fault guidance file matching the message parsing information and the detection information from a preset maintenance database.
[0016] In a third aspect, an embodiment of the present application further provides a computer device, the computer device 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;
[0017] Memory, used to store computer programs;
[0018] The processor is used to implement the offline fault detection method for electromechanical equipment as described in the first aspect above when executing the program stored in the memory.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for offline fault detection of electromechanical equipment as described in the first aspect are implemented.
[0020] The embodiment of the present invention provides a method, device, equipment and medium for offline fault detection of electromechanical equipment, the method comprising: generating a corresponding start instruction according to the input detection information and sending it to the electromechanical equipment to be tested to receive the corresponding feedback signal; generating an access protocol message corresponding to the feedback signal and the detection information to the electromechanical equipment to be tested; parsing the received data message according to the fault analysis rule to obtain the corresponding message analysis information; if the input termination information is received, generating a termination instruction corresponding to the termination information according to the message receiving and sending strategy and sending it to the electromechanical equipment to be tested to terminate the detection; obtaining a fault guidance file matching the message analysis information from a preset maintenance database. The above detection method can intelligently generate an access protocol message and parse the feedback data message to obtain the message analysis information and the fault guidance file, and can quickly obtain the fault information, thereby improving the efficiency of offline detection of electromechanical equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0022] Figure 1 A method flow chart of a method for offline fault detection of electromechanical equipment provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of an application scenario of a method for offline fault detection of electromechanical equipment provided by an embodiment of the present invention;
[0024] Figure 3 A schematic block diagram of a fault offline detection device for electromechanical equipment provided by an embodiment of the present invention;
[0025] Figure 4 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0028] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0029] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0030] See also Figure 1 , as shown in the figure, the embodiment of the present application discloses a method for offline fault detection of electromechanical equipment; Figure 2As shown, the method is applied to the detection host 10, and the method is executed by the application software installed in the detection host 10; the detection host 10 is communicatively connected with the signal collector 20 to realize the transmission of data information, the low-voltage power supply port 30 is electrically connected to the electromechanical device 40 to be tested through the signal collector 20, and the high-voltage power supply port 50 is directly electrically connected to the electromechanical device 40 to be tested. Among them, the detection host 10 is a terminal host with multiple detection functions. The detection host 10 can be a terminal host dedicated to new energy vehicle equipment that integrates detection functions such as oscilloscopes, multimeters, insulation detection and current clamps. The detection host 10 is equipped with a display screen and buttons. The display screen is used to display data information for users to view, and the buttons are used for users to press and input corresponding command information to the detection host 10; the signal collector 20 can be a VCI (Vehicle Communication Interface) device. The signal collector 20 is used to connect the low-voltage signal communication interface of the electromechanical device to be tested and collect data and then send it to the detection host 10 for analysis; the low-voltage power supply port 30 is also the port in the power adapter for outputting low-voltage (usually 12V) DC power, and the high-voltage power supply port 50 is also the port in the high-voltage power supply device for outputting high-voltage (usually 330V-600V) DC power. The electromechanical device 40 to be tested is also the three-electric device in the new energy vehicle. The electromechanical device 40 to be tested can be an air-conditioning compressor, a motor controller, a battery pack and other electromechanical devices. The detection host 10 and the signal collector 20 transmit data information by wired connection (such as USB connection cable) or wireless connection (such as Wi-Fi connection). The signal collector 20 has a specific connection structure for electrically connecting the low-voltage power supply port 30 with the electromechanical device to be tested 40, and a specific connection structure for electrically connecting the high-voltage power supply port 50 with the electromechanical device to be tested 40. Figure 2 As shown. Figure 1 As shown, the method includes steps S110 to S150.
[0031] S110 , generating a corresponding start instruction according to the input detection information and sending the instruction to the electromechanical device under test through the signal collector to receive a feedback signal output by the electromechanical device under test.
[0032] A corresponding start instruction is generated according to the input detection information and sent to the electromechanical equipment to be tested through the signal collector to receive the feedback signal output by the electromechanical equipment to be tested. The user can input the detection information to the detection host, and the detection host generates a corresponding start instruction according to the received detection information. The detection host sends the start instruction to the signal collector, and the signal collector sends the start instruction to the electromechanical equipment to be tested, so that the space start instruction controls the start test of the electromechanical equipment to be tested. Among them, the detection information includes information such as test items, equipment categories, manufacturers, applicable models, accessory models, power, power supply methods, and start methods. The low-voltage power supply port of a specific voltage and the high-voltage power supply port of a specific voltage can be connected through the power supply method to power the electromechanical equipment to be tested.
[0033] According to the detection information, the corresponding start command can be matched and sent. The start command includes a frame identifier and an open message. The frame identifier is used to distinguish the sending and receiving status of the command signal. For example, a test item is S-1, the equipment category is a motor controller, the manufacturer is XXX, the applicable vehicle model is AA, the accessory model is BB, the power is 5KV, and the opening method is LIN. According to the detection information, the start command obtained by matching is 0x22-194CFFFF00C08CF3, where "0x22" is the frame identifier, which is used to indicate the identification information of the signal sent out, and "194CFFFF00C08CF3" is the opening message.
[0034] After the electromechanical equipment under test receives the start-up instruction, it starts working according to the start-up instruction and records the data information generated during the working process to generate a corresponding feedback signal. The electromechanical equipment under test outputs the feedback signal to the signal collector, and the signal collector sends the feedback signal to the detection host. The detection host can then obtain the feedback signal output by the electromechanical equipment under test.
[0035] S120 , sending a corresponding access protocol message to the electromechanical device to be tested according to a preset message sending and receiving strategy, the detection information and the feedback signal.
[0036] According to the preset message receiving and sending strategy, the detection information and the feedback signal, the corresponding access protocol message is sent to the electromechanical device under test. If the electromechanical device under test works normally, it will send a feedback signal to the signal collector, and the signal collector will forward the feedback signal to the detection host. The detection host is configured with a message receiving and sending strategy, which can generate a corresponding access protocol message based on the message receiving and sending strategy and the detection information and feedback information, and access the data message in the electromechanical device under test through the access protocol message.
[0037] In a specific embodiment, step S120 includes the steps of: identifying the signal frequency of the feedback signal; obtaining an access protocol message template matching the detection information from the message sending and receiving strategy; generating an access protocol message corresponding to the signal frequency according to the access protocol message template and sending it to the electromechanical equipment to be tested.
[0038] Specifically, the signal frequency of the feedback signal is identified. The signal frequency is also the baud rate. The signal frequency is also the number of code symbols transmitted per unit time, which is used to indicate the data transmission rate. For example, the signal frequency of a feedback signal is 19200 Hz.
[0039] The access protocol message template that matches the detection information is obtained from the message sending and receiving strategy, wherein the access protocol message template includes a frame identifier and a frame content. The frame identifier is the identification information used to indicate the signal sent outward, and the frame content is the string used to access the electromechanical device under test. Different equipment categories, different manufacturers, and different applicable models correspond to different access protocol message templates.
[0040] An access protocol message corresponding to the signal frequency is generated according to the access protocol message template, that is, the access protocol message can be sent based on the signal frequency.
[0041] S130: If a data message fed back by the signal collector is received, the data message is parsed according to a preset fault analysis rule to obtain corresponding message analysis information.
[0042] If a data message fed back by the signal collector is received, the data message is parsed according to the preset fault analysis rules to obtain the corresponding message analysis information. After the electromechanical equipment to be tested receives the access protocol message, it can feed back the corresponding data message to the signal collector, and the data message is sent to the signal collector with a certain sending period (such as 100 milliseconds or 200 milliseconds); the signal collector receives the data message and sends it to the detection host. After receiving the data message, the detection host can parse the data message according to the fault analysis rules to obtain the message analysis information; then the detection host can periodically obtain multiple groups of data messages sent by the signal collector, and the interval between the receiving time of two adjacent groups of data messages is the sending period. Among them, the message analysis information includes fault codes and data streams.
[0043] In a specific embodiment, step S130 includes the steps of: obtaining a parsing template in the fault analysis rule that matches the detection information; parsing each of the data messages separately according to the parsing template to obtain corresponding message frame data; sequentially combining the message frame data to obtain a corresponding data stream; numerically matching the data stream according to the fault matching information in the fault analysis rule to obtain a corresponding fault code.
[0044] Obtain a parsing template that matches the detection information in the fault parsing rule. The fault parsing rule contains multiple templates. A template that matches the detection information can be obtained from the fault parsing rule and used as a parsing template. Parse each data message according to the parsing template to obtain the message frame data in the data message, and further sequentially combine the message frame data to obtain the corresponding data stream, which includes multiple groups of numerical information recorded sequentially over time.
[0045] The fault analysis rules include fault matching information, which is used to perform numerical matching with the data stream to obtain the fault code in the fault matching information that matches the data stream. Each fault code in the fault matching information corresponds to a numerical interval, and it can be determined whether the value contained in the data stream is within the corresponding numerical interval, thereby determining whether the data stream matches a certain fault code.
[0046] For example, the numerical range corresponding to fault code 1 is f 1 <f max ; The numerical range corresponding to fault code 2 is f 2 >f min , the numerical range corresponding to fault code 3 is f 3 <f r , the numerical range corresponding to fault code 4 is f 4 ≥fp max ≥f 5 , f 1 、f 2 、f 3 , f 4 and f 5 are all pre-set fixed values, f max is the maximum value in the data stream, f min is the minimum value in the data stream, f r The average value of the data stream, fp max It is the maximum value of the difference between adjacent values in the data stream.
[0047] If the data stream matches a certain fault code, the fault code is obtained and added to the message parsing information; the message parsing information may contain zero, one or more fault codes.
[0048] In a specific embodiment, each of the data packets is parsed according to the parsing template in the fault analysis rule to obtain corresponding message frame data, including: segmenting and intercepting the data packet according to the bit sequence in the parsing template to obtain corresponding frame identifiers and frame contents; converting the frame contents to obtain corresponding message frame data.
[0049] The specific process of parsing the data message includes segmenting the data message according to the bit sequence in the parsing template, and the parsing template contains the bit sequence corresponding to each segment in the data message, for example, the bit sequence corresponding to the frame identifier is 01-04, and the bit sequence corresponding to the frame content is 05-20. The data message can be segmented and intercepted by the bit sequence in the parsing template to obtain the corresponding frame identifier and frame content, and the frame content is converted to obtain the message frame data, and the message frame data includes the acquisition time of the value and the corresponding value.
[0050] In a specific embodiment, after the data message is segmented and intercepted according to the parsing template to obtain the corresponding frame identifier and frame content, it also includes: performing combined calculation on the frame identifier and the frame content to obtain a corresponding combined calculation value; calculating a calculation code corresponding to the combined calculation value according to the calculation formula in the fault analysis rule; judging whether the calculation code is the same as the check code corresponding to the check bit in the parsing template to obtain a check result of whether it passes; if the check result is passed, executing the step of converting the frame content to obtain the corresponding message frame data.
[0051] During the process of sending and receiving data messages, errors may occur due to external interference or signal fluctuations. Furthermore, to ensure the accuracy of the data message content, after the data message is segmented and intercepted through the parsing template, the frame identifier and frame content in the data message can be verified to obtain the corresponding verification result. The verification result is passed or failed. If the verification result is passed, the subsequent steps will be continued; if the verification result is failed, the frame content in the data message will not be converted, that is, the subsequent detection process will be terminated and the detection abnormality will be prompted.
[0052] Specifically, the frame identifier and the frame content can be combined and calculated. For example, if the frame identifier is "0x27" and the frame content is "8D55 00 90 55 4C 4C FF", the specific data "27" (0x is a base symbol) in the frame identifier is obtained and added to the double-bit data in the frame content to obtain a corresponding combined calculation value; the calculation process is 27+8D+55+00+90+55+4C+4C+FF.
[0053] The calculation code corresponding to the combined calculation value is further calculated according to the calculation formula in the fault analysis rule; specifically, the lower eight-bit value in the combined calculation value (that is, the values corresponding to the last two digits) is obtained. For example, if the combined calculation value is 0385, the lower eight-bit value is "85". The lower eight-bit value is inverted according to the calculation formula to obtain the corresponding calculation code.
[0054] The parsing template contains a check digit and a check code corresponding to the check digit. It can be used to determine whether the calculated code is the same as the check code corresponding to the check digit. If they are the same, it indicates that no transmission error occurred during the transmission of the data message, and the obtained check result is passed; if the calculated code is different from the check code, it indicates that a transmission error occurred during the transmission of the data message, and a failed check result is obtained.
[0055] In a specific embodiment, the message parsing information also includes a key frame, and the data stream is numerically matched according to the fault matching information in the fault analysis rule to obtain a corresponding fault code, including: determining time information corresponding to the fault code; and intercepting corresponding message frame data from the data stream as the key frame according to the time information.
[0056] The time information corresponding to the fault code can be determined, and the message frame data corresponding to the time information can be intercepted from the data stream according to the time information and saved as a key frame. The key frame can be used to record the value of a specific data stream at a certain moment for verification. Among them, the time information can be a time point or a time period, and the acquisition time of the intercepted message frame data corresponds to the time point, or the acquisition time of the intercepted message frame data is within the time period. The intercepted key frame is added to the message parsing information.
[0057] S140: If the input termination information is received, a termination instruction corresponding to the detection information is generated according to the message receiving and sending strategy, and sent to the electromechanical device to be tested to terminate the detection.
[0058] If the input termination information is received, a termination instruction corresponding to the detection information is generated according to the message receiving and sending strategy, and sent to the electromechanical device to be tested to terminate the detection. During the detection process, the user can input termination information, and the termination information can be input by the user through a key. Then the detection host generates a termination instruction corresponding to the detection information according to the message receiving and sending strategy, and sends the termination instruction to the electromechanical device to be tested. When the electromechanical device to be tested receives the termination instruction, it stops running and terminates the detection process.
[0059] In a specific embodiment, step S140 includes the steps of: acquiring termination message information matching the detection information from the message sending and receiving strategy; and generating a corresponding termination instruction according to the termination message information.
[0060] Specifically, the termination message information matching the detection information can be obtained from the message sending and receiving strategy. The obtained termination message information is also the specific message content. A frame identifier is further added in front of the termination message information to generate a corresponding termination instruction. Among them, the frame identifier of the termination instruction is the same as the frame identifier of the start instruction, and there is a difference in the specific message content of the two.
[0061] S150: Acquire a fault guidance file that matches the message parsing information and the detection information from a preset maintenance database.
[0062] A fault guidance file matching the message parsing information and the detection information is obtained from a preset maintenance database. Furthermore, a maintenance database is pre-configured in the detection host, and a fault guidance matching the message parsing information and the detection information can be obtained from the maintenance database. Specifically, it can be first determined whether the message parsing information contains a fault code. If so, the guidance file in the maintenance database is matched through the detection information to screen out an alternative guidance file matching the detection information; further determine whether the fault code in each alternative guidance file matches a certain fault code contained in the message parsing information. If so, the alternative guidance file is determined to be a fault guidance file matching the message parsing information and the detection information. There can be one or more fault guidance files matching a fault code in the message parsing information, and the message parsing information can contain zero, one or more fault codes. If the message parsing information contains a fault code, the final fault guidance file can be one or more. The fault guidance file includes specific information such as fault alarm inspection information, fault troubleshooting process, circuit schematic diagram, etc.
[0063] For example, if a fault code is "B2ABA-1C" and the alternative guidance file containing the fault code is "internal low voltage power supply failure", then the guidance file of "internal low voltage power supply failure" is determined to be the matching fault guidance file.
[0064] The method for offline fault detection of electromechanical equipment disclosed in the above embodiment includes: generating a corresponding start instruction according to the input detection information and sending it to the electromechanical equipment to be tested to receive the corresponding feedback signal; generating an access protocol message corresponding to the feedback signal and the detection information to the electromechanical equipment to be tested; parsing the received data message according to the fault analysis rule to obtain the corresponding message analysis information; if the input termination information is received, generating a termination instruction corresponding to the termination information according to the message receiving and sending strategy and sending it to the electromechanical equipment to be tested to terminate the detection; obtaining a fault guidance file matching the message analysis information from a preset maintenance database. The above detection method can intelligently generate an access protocol message and parse the feedback data message to obtain the message analysis information and the fault guidance file, and can quickly obtain fault information, thereby improving the efficiency of offline detection of electromechanical equipment.
[0065] The embodiment of the present invention also provides a fault offline detection device for electromechanical equipment, which can be configured in a detection host, the detection host is connected to the signal collector for communication to achieve data information transmission, the low-voltage power supply port is electrically connected to the electromechanical equipment to be tested through the signal collector, and the high-voltage power supply port is directly electrically connected to the electromechanical equipment to be tested. The fault offline detection device for electromechanical equipment is used to execute any embodiment of the above-mentioned fault offline detection method for electromechanical equipment. Specifically, please refer to Figure 3 , Figure 3 A schematic block diagram of a fault offline detection device for electromechanical equipment provided by an embodiment of the present invention.
[0066] like Figure 3 As shown, the fault offline detection device 100 for electromechanical equipment includes a start instruction sending unit 110, an access protocol message sending unit 120, a message parsing information acquiring unit 130, a termination instruction sending unit 140 and a fault guidance file acquiring unit 150.
[0067] The start instruction sending unit 110 is used to generate a corresponding start instruction according to the input detection information and send it to the electromechanical device under test through the signal collector to receive the feedback signal output by the electromechanical device under test.
[0068] The access protocol message sending unit 120 is used to send the corresponding access protocol message to the electromechanical device under test according to a preset message sending and receiving strategy, the detection information and the feedback signal.
[0069] The message parsing information acquisition unit 130 is used to parse the data message fed back by the signal collector according to preset fault parsing rules to obtain corresponding message parsing information when receiving the data message fed back by the signal collector; the message parsing information includes a fault code and a data stream.
[0070] The termination instruction sending unit 140 is used to generate a termination instruction corresponding to the detection information according to the message sending and receiving strategy if the input termination information is received, and send the termination instruction to the electromechanical device to terminate the detection.
[0071] The fault guidance file acquisition unit 150 is used to acquire a fault guidance file matching the message parsing information and the detection information from a preset maintenance database.
[0072] The offline fault detection device for electromechanical equipment provided in the embodiment of the present invention applies the above-mentioned offline fault detection method for electromechanical equipment, generates a corresponding start instruction according to the input detection information and sends it to the electromechanical equipment to be tested to receive the corresponding feedback signal; generates an access protocol message corresponding to the feedback signal and the detection information to the electromechanical equipment to be tested; parses the received data message according to the fault analysis rule to obtain the corresponding message analysis information; if the input termination information is received, generates a termination instruction corresponding to the termination information according to the message sending and receiving strategy and sends it to the electromechanical equipment to be tested to terminate the detection; obtains a fault guidance file matching the message analysis information from a preset maintenance database. The above-mentioned detection method can intelligently generate an access protocol message and parse the feedback data message to obtain the message analysis information and the fault guidance file, and can quickly obtain the fault information, thereby improving the efficiency of offline detection of electromechanical equipment.
[0073] The above-mentioned offline fault detection device for electromechanical equipment can be implemented in the form of a computer program, and the computer program can be run on a computer device.
[0074] See also Figure 4 , Figure 4 The computer device provided by the embodiment of the present invention is a schematic block diagram. The computer device may be a detection host for executing the offline fault detection method for electromechanical equipment to realize offline fault detection of the electromechanical equipment.
[0075] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a communication interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0076] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute a method for offline fault detection of electromechanical equipment, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0077] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0078] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a fault offline detection method for electromechanical equipment.
[0079] The communication interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will appreciate that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0080] The processor 502 is used to run a computer program 5032 stored in the memory to implement the corresponding functions of the above-mentioned offline fault detection method for electromechanical equipment.
[0081] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 4 The embodiments shown are consistent and will not be described again here.
[0082] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0083] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the above-mentioned method for offline fault detection of electromechanical equipment are implemented.
[0084] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0085] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0087] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.
[0089] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for offline fault detection of electromechanical equipment, the method is applied to a detection host, the detection host is connected to a signal collector for communication to achieve data information transmission, a low-voltage power supply port is electrically connected to the electromechanical equipment to be tested through the signal collector, and a high-voltage power supply port is directly electrically connected to the electromechanical equipment to be tested, characterized in that: The detection method comprises: Generate a corresponding start instruction according to the input detection information and send it to the electromechanical device under test through the signal collector to receive a feedback signal output by the electromechanical device under test; Sending a corresponding access protocol message to the electromechanical device to be tested according to a preset message sending and receiving strategy, the detection information and the feedback signal; If a data message fed back by the signal collector is received, the data message is parsed according to a preset fault analysis rule to obtain corresponding message analysis information; the message analysis information includes a fault code and a data stream; If the input termination information is received, a termination instruction corresponding to the detection information is generated according to the message receiving and sending strategy, and sent to the electromechanical device to be tested to terminate the detection; Acquire a fault guidance file matching the message parsing information and the detection information from a preset maintenance database; The sending of the corresponding access protocol message to the electromechanical device to be tested according to the preset message sending and receiving strategy, the detection information and the feedback signal includes: identifying a signal frequency of the feedback signal; Acquire an access protocol message template matching the detection information from the message sending and receiving strategy; Generate an access protocol message corresponding to the signal frequency according to the access protocol message template and send it to the electromechanical device to be tested; The step of parsing the data message according to a preset fault analysis rule to obtain corresponding message analysis information includes: Obtaining a parsing template in the fault parsing rule that matches the detection information; Parsing each of the data messages according to the parsing template to obtain corresponding message frame data; Sequentially combining the message frame data to obtain a corresponding data stream; Performing numerical matching on the data stream according to the fault matching information in the fault analysis rule to obtain a corresponding fault code; The parsing of each of the data messages according to the parsing template in the fault parsing rule to obtain corresponding message frame data includes: The data message is segmented and intercepted according to the bit sequence in the parsing template to obtain corresponding frame identifiers and frame contents; Convert the frame content to obtain corresponding message frame data; After the data message is segmented and intercepted according to the parsing template to obtain the corresponding frame identifier and frame content, the method further includes: Performing combined calculation on the frame identifier and the frame content to obtain a corresponding combined calculation value; Calculate a calculation code corresponding to the combined calculation value according to a calculation formula in the fault analysis rule; Determine whether the calculated code is the same as the check code corresponding to the check bit in the parsing template, and obtain a check result of whether it passes; If the verification result is passed, executing the step of converting the frame content to obtain corresponding message frame data; The message parsing information also includes a key frame, and the data stream is numerically matched according to the fault matching information in the fault parsing rule to obtain a corresponding fault code, including: Determining time information corresponding to the fault code; According to the time information, corresponding message frame data is intercepted from the data stream as the key frame.
2. The method for offline fault detection of electromechanical equipment according to claim 1, characterized in that: The generating a termination instruction corresponding to the termination information according to the message sending and receiving strategy includes: Acquire termination message information matching the detection information from the message sending and receiving strategy; Generate a corresponding termination instruction according to the termination message information.
3. A fault offline detection device for electromechanical equipment, characterized in that: The detection device is configured in the detection host, the detection host is connected to the signal collector for communication to achieve data information transmission, the low-voltage power supply port is electrically connected to the electromechanical device to be tested through the signal collector, and the high-voltage power supply port is directly electrically connected to the electromechanical device to be tested. The detection device includes: A start instruction sending unit, used to generate a corresponding start instruction according to the input detection information and send it to the electromechanical device under test through the signal collector, so as to receive a feedback signal output by the electromechanical device under test; An access protocol message sending unit, used for sending a corresponding access protocol message to the electromechanical device to be tested according to a preset message sending and receiving strategy, the detection information and the feedback signal; A message parsing information acquisition unit, for parsing the data message fed back by the signal collector according to a preset fault parsing rule to acquire corresponding message parsing information if the data message fed back by the signal collector is received; the message parsing information includes a fault code and a data stream; A termination instruction sending unit, configured to generate a termination instruction corresponding to the detection information according to the message sending and receiving strategy if the input termination information is received, and send the termination instruction to the electromechanical device to be tested to terminate the detection; A fault guidance file acquisition unit, used to acquire a fault guidance file matching the message parsing information and the detection information from a preset maintenance database; The sending of the corresponding access protocol message to the electromechanical device to be tested according to the preset message sending and receiving strategy, the detection information and the feedback signal includes: identifying a signal frequency of the feedback signal; Acquire an access protocol message template matching the detection information from the message sending and receiving strategy; Generate an access protocol message corresponding to the signal frequency according to the access protocol message template and send it to the electromechanical device to be tested; The step of parsing the data message according to a preset fault analysis rule to obtain corresponding message analysis information includes: Obtaining a parsing template in the fault parsing rule that matches the detection information; Parsing each of the data messages according to the parsing template to obtain corresponding message frame data; Sequentially combining the message frame data to obtain a corresponding data stream; Performing numerical matching on the data stream according to the fault matching information in the fault analysis rule to obtain a corresponding fault code; The parsing of each of the data messages according to the parsing template in the fault parsing rule to obtain corresponding message frame data includes: The data message is segmented and intercepted according to the bit sequence in the parsing template to obtain corresponding frame identifiers and frame contents; Convert the frame content to obtain corresponding message frame data; After the data message is segmented and intercepted according to the parsing template to obtain the corresponding frame identifier and frame content, the method further includes: Performing combined calculation on the frame identifier and the frame content to obtain a corresponding combined calculation value; Calculate a calculation code corresponding to the combined calculation value according to a calculation formula in the fault analysis rule; Determine whether the calculated code is the same as the check code corresponding to the check bit in the parsing template, and obtain a check result of whether it passes; If the verification result is passed, executing the step of converting the frame content to obtain corresponding message frame data; The message parsing information also includes a key frame, and the data stream is numerically matched according to the fault matching information in the fault parsing rule to obtain a corresponding fault code, including: Determining time information corresponding to the fault code; According to the time information, corresponding message frame data is intercepted from the data stream as the key frame.
4. A computer device, characterized in that: The computer device 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 via the communication bus; Memory, used to store computer programs; The processor is used to implement the offline fault detection method for electromechanical equipment as claimed in claim 1 or 2 when executing the program stored in the memory.
5. 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 method for offline fault detection of electromechanical equipment according to claim 1 or 2 are implemented.
