Fault diagnosis method and device, computer equipment, readable storage medium and program product
Through the correspondence between motor parameters and flag values, the motor fault type and latch are determined and the latch is cleared, which solves the problem of misjudgment of motor faults in electric vehicles and improves the fault handling efficiency and safety.
Patent Information
- Application Number
- CN202510608539.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-05-13
AI Technical Summary
In the prior art, when a permanent magnet synchronous motor fails to three-phase short-circuit ASC mode in an electric vehicle due to non-overcurrent three-stage failure, it may lead to overcurrent failure misjudgment, resulting in low vehicle fault handling efficiency.
By determining the target fault type based on motor parameters and preset fault conditions, and determining the target flag value in the correspondence between the fault type and the flag value, the preset fault latch is cleared when switching the motor protection mode to ensure accurate judgment of the fault type.
Improve vehicle fault handling efficiency, ensure vehicle safety and driving experience, and reduce safety risks caused by misjudgment.
Smart Images

Figure CN120363719A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle safety, and particularly to a fault diagnosis method, device, computer device, readable storage medium, and program product. Background Art
[0002] With the progress of technology, the application of permanent magnet synchronous motors in electric vehicles will become increasingly widespread. This motor is favored for its high efficiency and excellent performance. Through the interaction between the internal permanent magnets and the magnetic field generated by the stator coils, it achieves efficient energy conversion and has the characteristics of high power density and low energy consumption. When used in conjunction with an efficient motor controller, it can flexibly adjust the control strategy according to the vehicle state to ensure safe and stable operation.
[0003] In the related art, the motor controller adjusts the corresponding working mode according to the state signal of the vehicle. However, when the motor switches to the three-phase short-circuit ASC mode due to a non-overcurrent three-level fault, since there is voltage on all three-phase lines during normal operation, directly short-circuiting the three-phase lines will result in a transient ASC current, which may trigger an overcurrent fault and misjudge the type of vehicle fault, leading to a low processing efficiency of vehicle faults. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a fault diagnosis method, device, computer device, readable storage medium, and program product that can timely determine the type of fault and improve the processing efficiency of vehicle faults.
[0005] In a first aspect, the present application provides a fault diagnosis method, including:
[0006] Based on motor parameters and preset fault conditions, determine the target fault type of the motor;
[0007] In the correspondence between the fault type and the flag bit value, determine the target flag bit value corresponding to the target fault type;
[0008] During the process of switching from the first motor protection mode to the second motor protection mode, based on the target flag bit value, determine to perform an operation to clear the preset fault latch.
[0009] In one embodiment, the motor parameters at least include the real-time motor speed. During the process of switching from the first motor protection mode to the second motor protection mode, based on the target flag bit value, determining to perform an operation to clear the preset fault latch includes:
[0010] When in the first motor protection mode, if the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied and the target flag bit value is a preset value, do not perform the operation to clear the preset fault latch; or,
[0011] When in the first motor protection mode, if the real-time motor speed is less than the first speed threshold, it is determined that the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied, and if the value of the target flag bit is not the preset value, an operation of clearing the preset fault latch is performed.
[0012] In one embodiment, the motor parameters further include the motor speed, and the method further includes:
[0013] If the motor speed exceeds the first speed threshold, switch to the first motor protection mode and re-detect the motor speed to obtain the real-time motor speed.
[0014] In one embodiment, the motor parameters at least include one or more of motor current parameters, motor temperature parameters, motor speed, and other motor operation parameters. Based on the motor parameters and preset fault conditions, determining the target fault type of the motor includes:
[0015] If the motor current parameter is greater than the current threshold, it is determined that the motor parameters meet the preset fault conditions, and the target fault type of the motor is determined to be an overcurrent fault; or,
[0016] If the other motor operation parameters meet the abnormal operation conditions, it is determined that the motor parameters meet the preset fault conditions, and the target fault type of the motor is determined to be other third-level faults; or,
[0017] If the motor speed is greater than the second speed threshold, it is determined that the motor parameters meet the preset fault conditions, and the target fault type of the motor is determined to be an overspeed fault.
[0018] In one embodiment, the flag bit values at least include a first value, a second value, and a third value. The first value is the preset value, and the first value is inconsistent with the second value and the third value. In the correspondence between the fault type and the flag bit value, determining the target flag bit value corresponding to the target fault type includes:
[0019] If the target fault type is the overcurrent fault, in the correspondence between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the first value; or,
[0020] If the target fault type is the other third-level faults, in the correspondence between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the second value; or,
[0021] If the target fault type is the overspeed fault, in the correspondence between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the third value.
[0022] In one embodiment, the method further includes:
[0023] If no signal instruction is detected within a preset duration, switch to the second motor protection mode;
[0024] If the received signal instruction meets the preset operating conditions, switch from the second motor protection mode to the normal driving mode.
[0025] In a second aspect, the present application further provides a fault diagnosis device, including:
[0026] A first determination module, configured to determine the target fault type of the motor based on the motor parameters and the preset fault conditions;
[0027] A second determination module, configured to determine the target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value;
[0028] A third determination module, configured to determine to perform an operation of clearing the preset fault latch based on the target flag bit value during the process of switching from the first motor protection mode to the second motor protection mode.
[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0030] Determine the target fault type of the motor based on the motor parameters and the preset fault conditions;
[0031] Determine the target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value;
[0032] Determine to perform an operation of clearing the preset fault latch based on the target flag bit value during the process of switching from the first motor protection mode to the second motor protection mode.
[0033] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0034] Determine the target fault type of the motor based on the motor parameters and the preset fault conditions;
[0035] Determine the target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value;
[0036] During the process of switching from the first motor protection mode to the second motor protection mode, an operation of clearing a preset fault latch is determined based on the value of the target flag bit.
[0037] In a fifth aspect, the present application further provides a computer program product, including a computer program, which when executed by a processor implements the following steps:
[0038] Determine the target fault type of the motor based on the motor parameters and preset fault conditions;
[0039] In the correspondence relationship between the fault type and the flag bit value, determine the target flag bit value corresponding to the target fault type;
[0040] During the process of switching from the first motor protection mode to the second motor protection mode, an operation of clearing a preset fault latch is determined based on the value of the target flag bit.
[0041] The above-mentioned fault diagnosis method, device, computer device, readable storage medium and program product determine the target fault type of the motor through the motor parameters and preset fault conditions, and determine the target flag bit value corresponding to the target fault type. When switching from the first motor protection mode to the second motor fault protection mode, it is possible to determine whether to perform an operation of clearing the preset fault latch based on the target flag bit value, ensuring that the overcurrent fault latch can be cleared in time when switching the motor protection mode, determining the type of the fault in time, improving the processing efficiency of vehicle faults, and thus ensuring the safety of the vehicle. Description of the Drawings
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0043] Figure 1 It is a schematic flowchart of a fault diagnosis method in an embodiment;
[0044] Figure 2 It is a schematic flowchart of a vehicle mode switching method in an embodiment;
[0045] Figure 3 It is a structural block diagram of a fault diagnosis device in an embodiment;
[0046] Figure 4 It is an internal structure diagram of a computer device in an embodiment. Detailed Embodiments
[0047] To make the objectives, technical solutions, and advantages of this application clearer and more understandable, the following further details this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely used to explain this application and are not used to limit this application.
[0048] In an exemplary embodiment, as Figure 1 shown, a fault diagnosis method is provided. Taking the case where this method is applied to a motor controller in a vehicle controller as an example, in this embodiment, the method includes the following steps:
[0049] Step 101: Determine the target fault type of the motor based on the motor parameters and preset fault conditions.
[0050] Among them, the motor parameters may include physical quantities or operating state parameters of the motor. For example, motor speed, motor temperature, motor current, power, etc. The preset fault condition is a logical judgment condition for judging the fault type of the motor, and the content of this logical judgment condition may be to judge the relationship between the motor parameters and the preset threshold. Optionally, the motor may be a permanent magnet synchronous motor.
[0051] Specifically, the motor controller may obtain the motor parameters of the motor in real time or periodically. The motor controller may compare the motor parameters with the preset fault conditions to obtain a comparison result, and determine the preset fault conditions satisfied by the motor parameters according to the comparison result, and determine the target fault type of the motor based on the fault conditions satisfied by the motor parameters.
[0052] Step 102: Determine the target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value.
[0053] Specifically, the motor controller may pre-set the correspondence between the fault type and the flag bit value. The motor controller may determine the target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value.
[0054] Step 103: During the process of switching from the first motor protection mode to the second motor protection mode, determine to perform an operation to clear the preset fault latch based on the target flag bit value.
[0055] Among them, the first motor protection mode protects the motor from high speed and high current through a short - circuit loop. The second motor protection mode cuts off the connection between the motor and the controller to avoid other safety problems caused by responding to vehicle control instructions. For example, the first motor protection mode can be the Active Short Circuit (ASC) mode, and the second motor protection mode can be the Six Pack Off (SPO) mode. The preset fault latch can be in the motor controller. When an over - current fault signal is detected, the over - current fault state is locked and stored through a specific circuit or software mechanism. The preset fault latch can be a fault latch caused by an over - current fault. The over - current fault may be caused by an over - current level - 3 fault or a non - over - current level - 3 fault. The over - current fault caused by a non - over - current level - 3 fault may occur when the motor enters the three - phase short - circuit ASC mode due to a non - over - current level - 3 fault. Since there is voltage on all three - phase lines during normal operation, directly short - circuiting the three - phase lines will result in a transient ASC current, and an over - current fault flag may be set and the fault latched.
[0056] Specifically, when the motor controller is in the first motor protection mode, if the motor parameters meet the mode - switching conditions, it switches from the first motor protection mode to the second motor protection mode. During the switching process of the motor protection mode, according to the target flag - bit value stored in the motor controller, it is determined whether to perform the operation of clearing the preset fault latch. If the target fault type corresponding to the target flag - bit value is an over - current fault, the operation of clearing the over - current fault latch is not performed. If the target fault type corresponding to the target flag - bit data is a non - over - current fault, the operation of clearing the over - current fault latch is performed.
[0057] In addition, the specific operation of clearing the preset fault latch can be to set a reset signal input terminal in the fault - detection module of the motor controller, send a high - level signal to this reset signal input terminal, and after the fault - detection module receives the high - level reset signal, the preset fault latch is cleared. For example, sending a high - level signal to this reset signal input terminal can be achieved by pulling up the input / output (IO) terminal of the motor controller to output a high - level signal. The operation of clearing the preset fault latch can also include clearing the over - current fault identifier.
[0058] The above - mentioned fault diagnosis method determines the target fault type of the motor through motor parameters and preset fault conditions, and determines the target flag - bit value corresponding to the target fault type. When switching from the first motor protection mode to the second motor fault protection mode, it can be judged whether to perform the operation of clearing the preset fault latch based on the target flag - bit value, ensuring that when switching the motor protection mode, the over - current fault latch can be cleared in time, the type of the fault can be determined in time, the processing efficiency of vehicle faults is improved, and thus the safety of the vehicle is guaranteed.
[0059] In an exemplary embodiment, the specific implementation process of step 103, "During the process of switching from the first motor protection mode to the second motor protection mode, determine to perform the operation of clearing the preset fault latch based on the value of the target flag bit", may include:
[0060] When in the first motor protection mode, if the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied and the value of the target flag bit is the preset value, the operation of clearing the preset fault latch is not performed; or, when in the first motor protection mode, if the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied and the value of the target flag bit is not the preset value, the operation of clearing the preset fault latch is performed. The mode switching condition is that the real-time motor speed is less than the first speed threshold.
[0061] Wherein, the motor parameters at least include the real-time motor speed.
[0062] Specifically, when the motor controller is in the first motor protection mode, if it detects that the real-time motor speed is less than the first speed threshold, the motor controller determines that the mode switching condition for switching from the first motor mode to the second motor mode is satisfied. If the value of the target identification bit stored in the motor controller is the preset value, the motor controller determines that the fault is caused by an overcurrent fault, does not perform the operation of clearing the preset fault latch, and switches to the second motor protection mode.
[0063] When the motor controller is in the first motor protection mode, if it detects that the real-time motor speed is less than the first speed threshold, the motor controller determines that the mode switching condition for switching from the first motor mode to the second motor mode is satisfied. If the value of the target identification bit stored in the motor controller is not the preset value, the motor controller determines that the fault is caused by a non-overcurrent fault, performs the operation of clearing the preset fault latch, and switches to the second motor protection mode.
[0064] In this embodiment, during the process of switching from the first motor protection mode to the second motor protection mode, by judging the value of the target identification bit to determine whether to perform the operation of clearing the fault latch, the type of the fault is determined in a timely manner, the processing efficiency of vehicle faults is improved, and thus the safety of the vehicle is ensured.
[0065] In an exemplary embodiment, the fault diagnosis method further includes:
[0066] If the motor speed exceeds the first speed threshold, switch to the first motor protection mode and re-detect the motor speed to obtain the real-time motor speed.
[0067] Wherein, the motor parameters further include the motor speed.
[0068] Specifically, in the correspondence between the fault type and the flag bit value, after the motor controller determines the target flag bit value corresponding to the target fault type, if the motor speed exceeds the first speed threshold, it switches to the first motor protection mode. When the motor controller is in the first motor protection mode, it re-detects the motor speed in real time to obtain the real-time motor speed. If the real-time motor speed is less than the first speed threshold, it meets the condition for switching from the first motor protection mode to the second motor protection mode.
[0069] In the correspondence between the fault type and the flag bit value, after the motor controller determines the target flag bit value corresponding to the target fault type, if the motor speed does not exceed the first speed threshold, it switches to the second motor protection mode.
[0070] In this embodiment, according to the relationship between the motor speed and the first speed threshold, it switches to different motor protection modes to ensure the normal operation of the motor, improving the safety of motor control and the driving experience of the driver.
[0071] In an exemplary embodiment, step 101, "Based on the motor parameters and the preset fault conditions, determine the target fault type of the motor", may include the following three cases:
[0072] Case 1: If the motor current parameter is greater than the current threshold, it is determined that the motor parameters meet the preset fault conditions, and the target fault type of the motor is determined to be an overcurrent fault.
[0073] Case 2: If other motor operating parameters meet the abnormal operating conditions, it is determined that the motor parameters meet the preset fault conditions, and the target fault type of the motor is determined to be other third-level faults.
[0074] Case 3: If the motor speed is greater than the second speed threshold, it is determined that the motor parameters meet the preset fault conditions, and the target fault type of the motor is determined to be an overspeed fault.
[0075] Among them, the motor parameters at least include one or more of the motor current parameter, the motor speed, and other motor operating parameters. The other motor operating parameters may include one or more of the motor temperature parameter, the motor voltage parameter, the communication interval duration of the motor controller, the current balance degree in the motor, the resolver excitation voltage value of the motor, and the quadrature analog signal of the high-frequency amplitude modulation of the motor. The communication interval duration of the motor controller refers to the time when the motor controller receives the communication message from the vehicle controller (or other key nodes). The current balance degree in the motor can reflect whether there is a missing phase in the three-phase current of the motor. The resolver excitation voltage value of the motor may be the voltage signal collected by the analog-to-digital converter (ADC) in the motor. The quadrature analog signal of the high-frequency amplitude modulation of the motor can be used to determine the position and angle of the motor rotor. The other third-level faults may include one or more of the over-temperature fault, the over-voltage fault, the communication timeout fault, the phase loss fault, the resolver over-voltage and under-voltage fault, and the resolver-related fault. The resolver-related fault may include the signal loss of the motor, the abnormal amplitude, the phase deviation, etc. The second speed threshold is greater than the first speed threshold.
[0076] Specifically, if the motor current parameter is greater than the current threshold, the motor controller determines that the motor parameters meet the preset fault conditions and determines that the target fault type of the motor is the overcurrent fault (the overcurrent fault not caused by the ASC mode).
[0077] If the motor temperature parameter is greater than the temperature threshold, the motor controller determines that the motor temperature parameter meets the abnormal operation conditions, determines that the motor parameters meet the preset fault conditions, and determines that the target fault type of the motor is the over-temperature fault.
[0078] If the motor voltage parameter is greater than the voltage threshold, the motor controller determines that the motor voltage parameter meets the abnormal operation conditions, determines that the motor parameters meet the preset fault conditions, and determines that the target fault type of the motor is the over-voltage fault.
[0079] If the motor controller receives the communication data sent by the vehicle controller (or other key nodes) within the preset duration threshold, it determines that the communication duration of the motor controller exceeds the preset duration threshold, meets the abnormal operation conditions, and determines that the communication duration meets the preset fault conditions, and determines that the target fault type of the motor is the communication timeout fault.
[0080] If the current balance degree in the motor exceeds the preset balance degree threshold, it is determined that there is a missing phase in the three-phase current of the motor, which meets the abnormal operation conditions, and it is determined that the current balance degree meets the preset fault conditions, and the target fault type of the motor is determined to be the phase loss fault.
[0081] If the resolver excitation voltage value of the motor exceeds the preset voltage threshold range, it is determined that the resolver excitation voltage value in the motor meets the abnormal operation condition, and it is determined that the motor parameters meet the preset fault condition, and the target fault type of the motor is determined to be the resolver overvoltage and undervoltage fault.
[0082] If the orthogonal analog signal of the high-frequency amplitude modulation of the motor appears abnormally (the signal is lost, the signal amplitude is abnormal, or the signal phase has a deviation), it is determined that the orthogonal analog signal of the high-frequency amplitude modulation in the motor meets the abnormal operation condition, and it is determined that the motor parameters meet the preset fault condition, and the target fault type of the motor is determined to be the resolver-related fault.
[0083] If the motor speed is greater than the second speed threshold, the motor controller determines that the motor parameters meet the preset fault condition, and determines that the target fault type of the motor is the overspeed fault.
[0084] In addition, the motor controller can first detect whether the motor current parameter is greater than the current threshold. If the motor current parameter is not greater than the current threshold, it detects whether the motor temperature parameter is greater than the temperature threshold, or detects whether the motor voltage parameter is greater than the voltage threshold. If the motor temperature parameter is not greater than the temperature threshold and the motor voltage parameter is not greater than the voltage threshold, and the communication interval duration of the motor controller of the motor, the current balance degree in the motor, the resolver excitation voltage value of the motor, and the orthogonal analog signal of the high-frequency amplitude modulation of the motor do not appear abnormally, it detects whether the motor speed is greater than the speed threshold. If all the motor parameters of the motor are within the threshold range, the second motor protection mode is continued to be maintained.
[0085] After the motor controller detects the target fault type of the motor, the fault detection module in the motor controller can generate a corresponding fault identifier based on the target fault type. For example, when the target fault type is the overcurrent fault, it is determined that the fault identifier is the overcurrent fault identifier; when the target fault type is the overtemperature fault, it is determined that the fault identifier is the overtemperature fault identifier; when the target fault type is the overvoltage fault, it is determined that the fault identifier is the overvoltage fault identifier; when the target fault type is the communication timeout fault, it is determined that the fault identifier is the communication timeout fault identifier; when the target fault type is the phase loss fault, it is determined that the fault identifier is the phase loss fault identifier; when the target fault type is the resolver overvoltage and undervoltage fault, it is determined that the fault identifier is the resolver overvoltage and undervoltage fault identifier; when the target fault type is the resolver-related fault, it is determined that the fault identifier is the resolver-related fault identifier; when the target fault type is the overspeed fault, it is determined that the fault identifier is the overspeed fault identifier.
[0086] Optionally, other third-level faults refer to faults that have a serious impact on the motor and may affect the normal operation of the motor or even cause damage to the motor. The thresholds for determining various faults can be determined based on the actual type, design parameters, or actual application scenario of the motor. The overcurrent fault and the overspeed fault also belong to the motor third-level faults.
[0087] In this embodiment, the fault diagnosis of the motor is realized by determining the parameters of each motor, thereby improving the efficiency and accuracy of the motor fault diagnosis.
[0088] In an exemplary embodiment, the specific implementation process of step 102, "determine the target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value", may include:
[0089] If the target fault type is an overcurrent fault, then in the correspondence between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the first value; or, if the target fault type is other three-level faults, then in the correspondence between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the second value; or, if the target fault type is an overspeed fault, then in the correspondence between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the third value.
[0090] Among them, the flag bit values at least include the first value, the second value, and the third value. The first value is a preset value, and the first value is inconsistent with both the second value and the third value. The second value and the third value may be the same or different. For example, the first value may be 1, and the second value and the third value may be 0.
[0091] Specifically, if the target fault type is an overcurrent fault, then in the correspondence between the fault type and the flag bit value, the motor controller determines that the target flag bit value corresponding to the target fault type is 1. If the target fault type is other three-level faults, the motor controller then determines that the target flag bit value corresponding to the target fault type is 0 in the correspondence between the fault type and the flag bit value. If the target fault type is an overspeed fault, the motor controller then determines that the target flag bit value corresponding to the target fault type is 1 in the correspondence between the fault type and the flag bit value.
[0092] In this embodiment, by determining the corresponding flag bit values for different target types, it is determined whether the fault is an overcurrent fault caused by the ACS mode, improving the accuracy of fault detection.
[0093] In an exemplary embodiment, the fault diagnosis method further includes:
[0094] If the received signal instruction meets the preset operating conditions, then switch from the second motor protection mode to the normal driving mode.
[0095] Among them, the signal instruction can be an operation control instruction sent by the vehicle controller to the motor controller. For example, the signal instruction can at least include one or more of an Insulated Gate Bipolar Transistor (IGBT) turn-on signal, a torque mode, and a torque instruction.
[0096] Specifically, if the motor controller receives a signal instruction sent by the vehicle controller and the signal instruction meets the preset operation conditions, it will switch from the second motor protection mode to the normal driving mode.
[0097] Optionally, when the motor controller does not receive any instruction from the vehicle controller, it will automatically switch to the turn-off SPO mode to cut off the current between the motor and the controller.
[0098] In addition, if the motor controller is in the second motor protection mode and the current motor has a fault, even if the received signal instruction from the vehicle controller meets the preset operation conditions, the signal instruction will not be executed.
[0099] In this embodiment, by detecting whether a signal instruction can be received to determine the specific mode of the motor, the potential risk brought by the continuous operation of the motor in the absence of an instruction is realized, the protection of the motor is achieved, and the normal operation of the vehicle is realized.
[0100] In an exemplary embodiment, the safety mode switching of the motor controller mainly includes the switching among the three-phase short-circuit ASC mode, the turn-off SPO mode, and the normal driving mode. As Figure 2 shown, Figure 2 is a schematic flow chart of a vehicle mode switching method, which specifically includes the following steps:
[0101] When the motor controller does not receive any instruction from the vehicle controller, it will automatically switch to the turn-off SPO mode; when the motor controller receives the IGBT turn-on signal, torque mode, and torque instruction sent by the vehicle controller, the motor controller will switch to the normal driving mode.
[0102] In terms of fault detection, the motor controller will first perform overcurrent three-level fault diagnosis. If an overcurrent fault is detected (i.e., an overcurrent not caused by the three-phase short-circuit ASC mode), the motor controller will set the overcurrent flag bit = 1 and select a switching mode by determining whether the motor speed exceeds a predetermined threshold. If the motor speed is greater than the threshold, the controller will switch to the three-phase short-circuit ASC mode; if the motor speed is less than the threshold, it will switch back to the switch tube SPO mode. If no overcurrent fault is detected, the motor controller will then perform other three-level fault diagnoses (such as over-temperature, over-voltage, etc.). In the presence of other three-level faults, the motor controller sets the overcurrent flag bit = 0, and the motor controller determines the switching mode through speed judgment; if the motor speed is higher than the threshold, the motor controller will switch to the three-phase short-circuit ASC mode; if the speed is lower than the threshold, it will switch to the switch tube SPO mode. In addition, the motor controller will also perform overspeed three-level fault diagnosis. If it is detected that the motor speed is greater than the second speed threshold, the motor controller will set the overcurrent flag bit = 0 and switch to the three-phase short-circuit ASC mode. When the motor controller is in the three-phase short-circuit ASC mode, the motor controller will continuously monitor the real-time motor speed of the motor. If the real-time motor speed is lower than the speed threshold, the motor controller will determine whether it enters this mode due to overcurrent. If the overcurrent flag bit = 1, it is determined that it is caused by overcurrent, and the overcurrent fault clearing operation is not performed and it switches back to the switch tube SPO mode; if the overcurrent flag bit ≠ 1, the overcurrent fault clearing operation is performed and it switches back to the switch tube SPO mode.
[0103] In this embodiment, during the operation of the electric vehicle, in the face of three-level faults such as overspeed, over-temperature, overcurrent, and over-voltage that occur during high-speed driving, it can be timely switched to the three-phase short-circuit ASC mode to effectively prevent uncontrollable power caused by excessive back electromotive force, thereby avoiding potential safety risks. This solution introduces a more optimized control strategy. By accurately judging the fault type and motor speed, it ensures that the working mode can be quickly and safely switched when a fault occurs, significantly reducing the misjudgment risk caused by the residue of the triggered overcurrent fault flag bit. At the same time, the system comprehensively monitors multiple key factors such as transient current, over-temperature, over-voltage, overcurrent, and overspeed, improving the fault handling ability of the motor controller and ensuring high-efficiency and safe performance in a complex operating environment.
[0104] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0105] Based on the same inventive concept, an embodiment of the present application also provides a fault diagnosis device for implementing the above-mentioned fault diagnosis method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the following fault diagnosis devices can refer to the limitations on the fault diagnosis method in the above text, and will not be repeated here.
[0106] In an exemplary embodiment, as Figure 3 shown, a fault diagnosis device 30 is provided, including: a first determination module 31, a second determination module 32, and a third determination module 33, where:
[0107] The first determination module 31 is configured to determine a target fault type of the motor based on motor parameters and preset fault conditions;
[0108] The second determination module 32 is configured to determine a target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value;
[0109] The third determination module 33 is configured to determine an operation of clearing a preset fault latch based on the target flag bit value during the process of switching from the first motor protection mode to the second motor protection mode.
[0110] In one of the embodiments, the third determination module 33 is configured to, when in the first motor protection mode, if the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied and the target flag bit value is a preset value, not perform the operation of clearing the preset fault latch; or,
[0111] When in the first motor protection mode, if the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied and the target flag bit value is not the preset value, perform the operation of clearing the preset fault latch, and the mode switching condition is that the real-time motor speed is less than the first speed threshold.
[0112] In one embodiment, the third determination module 33 is further configured to, if the motor speed exceeds the first speed threshold, switch to the first motor protection mode and re-detect the motor speed to obtain the real-time motor speed.
[0113] In one embodiment, the first determination module 31 is configured to, if the motor current parameter is greater than the current threshold, determine that the motor parameter meets the preset fault condition and determine that the target fault type of the motor is an overcurrent fault; or,
[0114] if other motor operating parameters meet the abnormal operating condition, determine that the motor parameter meets the preset fault condition and determine that the target fault type of the motor is other third-level faults; or,
[0115] if the motor speed is greater than the second speed threshold, determine that the motor parameter meets the preset fault condition and determine that the target fault type of the motor is an overspeed fault.
[0116] In one embodiment, the second determination module 32 is configured to, if the target fault type is an overcurrent fault, determine that the target flag bit value corresponding to the target fault type is the first value in the correspondence between the fault type and the flag bit value; or,
[0117] if the target fault type is other third-level faults, determine that the target flag bit value corresponding to the target fault type is the second value in the correspondence between the fault type and the flag bit value; or,
[0118] if the target fault type is an overspeed fault, determine that the target flag bit value corresponding to the target fault type is the third value in the correspondence between the fault type and the flag bit value.
[0119] In one embodiment, the first determination module 31 is further configured to, if no signal instruction is detected within the preset duration, switch to the second motor protection mode;
[0120] If a signal instruction that meets the preset operating condition is received, switch from the second motor protection mode to the normal driving mode.
[0121] Each module in the above fault diagnosis device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or be independent of it, or be stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0122] In an exemplary embodiment, a computer device is provided. The computer device can be a terminal, and its internal structure diagram can be as Figure 4As shown in the figure. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a fault diagnosis method. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0123] Those skilled in the art can understand that Figure 4 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0124] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0126] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0127] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data that have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data need to comply with the relevant regulations.
[0128] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., and are not limited thereto. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., and are not limited thereto.
[0129] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this application.
[0130] The above-described embodiments merely represent several implementation manners of this application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of this application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application shall be subject to the appended claims.
Claims
1. A fault diagnosis method, characterized in that The method includes: Based on motor parameters and preset fault conditions, determining the target fault type of the motor; In the correspondence relationship between the fault type and the flag bit value, determining the target flag bit value corresponding to the target fault type; During the process of switching from the first motor protection mode to the second motor protection mode, based on the target flag bit value, determining to perform an operation to clear the preset fault latch.
2. The method according to claim 1, characterized in that, The motor parameters at least include the real-time motor speed. During the process of switching from the first motor protection mode to the second motor protection mode, based on the target flag bit value, determining to perform an operation to clear the preset fault latch includes: When in the first motor protection mode, if the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied and the target flag bit value is a preset value, then do not perform the operation to clear the preset fault latch; or, When in the first motor protection mode, if the mode switching condition for switching from the first motor protection mode to the second motor protection mode is satisfied and the target flag bit value is not the preset value, then perform the operation to clear the preset fault latch, where the mode switching condition is that the real-time motor speed is less than the first speed threshold.
3. The method according to claim 2, characterized in that, The motor parameters further include the motor speed. The method further includes: If the motor speed exceeds the first speed threshold, then switch to the first motor protection mode and re-detect the motor speed to obtain the real-time motor speed.
4. The method according to claim 1, wherein The motor parameters at least include one or more of motor current parameters, motor speed, and other motor operating parameters. Based on the motor parameters and preset fault conditions, determining the target fault type of the motor includes: If the motor current parameter is greater than the current threshold, then determine that the motor parameters meet the preset fault conditions and determine that the target fault type of the motor is an overcurrent fault; or, If the other motor operating parameters meet the abnormal operating conditions, then determine that the motor parameters meet the preset fault conditions and determine that the target fault type of the motor is other third-level faults; or, If the motor speed is greater than the second speed threshold, then determine that the motor parameters meet the preset fault conditions and determine that the target fault type of the motor is an overspeed fault.
5. The method according to claim 4, wherein The flag bit value at least includes a first value, a second value, and a third value. The first value is a preset value, and the first value is inconsistent with both the second value and the third value. In the correspondence relationship between the fault type and the flag bit value, determining the target flag bit value corresponding to the target fault type includes: If the target fault type is the overcurrent fault, then in the correspondence relationship between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the first value; or, If the target fault type is the other third-level faults, then in the correspondence relationship between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the second value; or, If the target fault type is the overspeed fault, in the correspondence between the fault type and the flag bit value, determine that the target flag bit value corresponding to the target fault type is the third value.
6. The method according to claim 1, characterized in that, The method further includes: If a signal instruction is received and meets the preset operating conditions, switch from the second motor protection mode to the normal driving mode.
7. A fault diagnosis device, characterized in that, The device includes: A first determination module, configured to determine a target fault type of the motor based on motor parameters and preset fault conditions; A second determination module, configured to determine a target flag bit value corresponding to the target fault type in the correspondence between the fault type and the flag bit value; A third determination module, configured to determine to perform an operation of clearing a preset fault latch based on the target flag bit value during the process of switching from the first motor protection mode to the second motor protection mode.
8. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Motor system fault processing method and processor
CN102929272A
Motor monitoring method and device, electronic equipment and storage medium
CN113253110A
Fault diagnosis method and device of vehicle motor system, motor controller and vehicle
CN118528785A
Motor controller control method and device, equipment, medium, vehicle and motor
CN118810445A
Fault processing method and apparatus, vehicle terminal and storage medium
WO2024222126A1