Fault diagnosis methods, devices, computer equipment, readable storage media and program products
By determining the target fault type of the motor based on motor parameters and preset fault conditions, and controlling the switching of motor protection modes by combining flag bit values, the problem of misjudgment of overcurrent faults caused by three-phase short circuits in permanent magnet synchronous motors in electric vehicles is solved, thereby improving fault handling efficiency and vehicle safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, permanent magnet synchronous motors in electric vehicles are prone to misdiagnosis of overcurrent faults caused by short circuits in the three-phase lines, resulting in low efficiency in vehicle fault handling.
Based on motor parameters and preset fault conditions, the target fault type of the motor is determined, and the target flag bit value is determined in the correspondence between the fault type and the flag bit value. This controls the switching of the motor protection mode, clears the preset fault latch in a timely manner, and ensures the accurate identification and handling of the fault type.
It improves the efficiency of vehicle fault handling, ensures vehicle safety and stability, and avoids potential risks caused by misjudgment.
Smart Images

Figure CN120363719B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle safety technology, and in particular to a fault diagnosis method, apparatus, computer equipment, readable storage medium, and program product. Background Technology
[0002] With technological advancements, permanent magnet synchronous motors (PMSMs) will be increasingly widely used in electric vehicles. These motors are favored for their high efficiency and superior performance. They achieve efficient energy conversion through the interaction of the magnetic field generated by the internal permanent magnets and stator coils, exhibiting high power density and low energy consumption. When used in conjunction with a high-efficiency motor controller, the control strategy can be flexibly adjusted according to vehicle conditions, ensuring safe and stable operation.
[0003] In related technologies, the motor controller adjusts the corresponding working mode according to the vehicle's status signal. However, when the motor switches to the three-phase short-circuit ASC mode due to a non-overcurrent level 3 fault, there is voltage on all three phase lines during normal operation. Directly short-circuiting the three phase lines will cause transient ASC current, which may trigger an overcurrent fault. This may lead to misjudgment of the vehicle's fault type and result in low efficiency in handling vehicle faults. Summary of the Invention
[0004] Therefore, it is necessary to provide a fault diagnosis method, device, computer equipment, readable storage medium, and program product to address the above-mentioned technical problems, which can promptly determine the type of fault and improve the efficiency of vehicle fault handling.
[0005] Firstly, this 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 fault type and 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, the operation of clearing the preset fault latch is determined based on the value of the target flag bit.
[0009] In one embodiment, the motor parameters include at least the real-time motor speed, and the step of determining to perform the operation of clearing the preset fault latch based on the target flag value during the switch from the first motor protection mode to the second motor protection mode includes:
[0010] When in the first motor protection mode, if the mode switching conditions for switching from the first motor protection mode to the second motor protection mode are met, and the target flag bit value is a preset value, then the operation of clearing the preset fault latch is not performed; 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 met, and if the target flag value is not the preset value, the operation of clearing the preset fault latch is performed.
[0012] In one embodiment, the motor parameters further include motor speed, and the method further includes:
[0013] If the motor speed exceeds the first speed threshold, the system switches to the first motor protection mode and re-detects the motor speed to obtain the real-time motor speed.
[0014] In one embodiment, the motor parameters include at least one or more of motor current parameters, motor temperature parameters, motor speed, and other motor operating parameters. The determination of the target fault type of the motor based on the motor parameters and preset fault conditions includes:
[0015] If the motor current parameter is greater than the current threshold, then the motor parameter is determined to 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 operating parameters meet the abnormal operating conditions, then the motor parameters are determined to meet the preset fault conditions, and the target fault type of the motor is determined to be another level three fault; or,
[0017] If the motor speed is greater than the second speed threshold, then the motor parameters are determined to 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 value includes at least a first value, a second value, and a third value, wherein the first value is a preset value, and the first value is inconsistent with both the second value and the third value. Determining the target flag bit value corresponding to the target fault type in the correspondence between fault types and flag bit values includes:
[0019] If the target fault type is the overcurrent fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the first value; or,
[0020] If the target fault type is one of the other level three faults, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the second value; or,
[0021] If the target fault type is the overspeed fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the third value.
[0022] In one embodiment, the method further includes:
[0023] If no signal command is detected within a preset time period, the system switches to the second motor protection mode.
[0024] If the received signal command meets the preset operating conditions, the system switches from the second motor protection mode to the normal driving mode.
[0025] Secondly, this application also provides a fault diagnosis device, comprising:
[0026] The first determining module is used to determine the target fault type of the motor based on motor parameters and preset fault conditions;
[0027] The second determining module is used to determine the target flag bit value corresponding to the target fault type in the correspondence between fault type and flag bit value;
[0028] The third determining module is used to determine, based on the value of the target flag bit, to perform the operation of clearing the preset fault latch during the process of switching from the first motor protection mode to the second motor protection mode.
[0029] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0030] Based on motor parameters and preset fault conditions, determine the target fault type of the motor;
[0031] In the correspondence between fault type and flag bit value, determine the target flag bit value corresponding to the target fault type;
[0032] During the process of switching from the first motor protection mode to the second motor protection mode, the operation of clearing the preset fault latch is determined based on the value of the target flag bit.
[0033] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0034] Based on motor parameters and preset fault conditions, determine the target fault type of the motor;
[0035] In the correspondence between fault type and flag bit value, determine the target flag bit value corresponding to the target fault type;
[0036] During the process of switching from the first motor protection mode to the second motor protection mode, the operation of clearing the preset fault latch is determined based on the value of the target flag bit.
[0037] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0038] Based on motor parameters and preset fault conditions, determine the target fault type of the motor;
[0039] In the correspondence between fault type and 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, the operation of clearing the preset fault latch is determined based on the value of the target flag bit.
[0041] The aforementioned fault diagnosis methods, devices, computer equipment, readable storage media, and program products determine the target fault type of the motor and the target flag value corresponding to the target fault type by using motor parameters and preset fault conditions. When switching from the first motor protection mode to the second motor fault protection mode, the system can determine whether to clear the preset fault latch based on the target flag value. This ensures that the overcurrent fault latch can be cleared in a timely manner when switching motor protection modes, and the type of fault can be determined promptly, thereby improving the efficiency of vehicle fault handling and ensuring vehicle safety. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 This is a flowchart illustrating a fault diagnosis method in one embodiment;
[0044] Figure 2 This is a flowchart illustrating a vehicle mode switching method in one embodiment;
[0045] Figure 3 This is a structural block diagram of a fault diagnosis device in one embodiment;
[0046] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0048] In one exemplary embodiment, such as Figure 1 As shown, a fault diagnosis method is provided. Taking the application of this method to the motor controller in a vehicle controller as an example, this embodiment includes the following steps:
[0049] Step 101: Based on the motor parameters and preset fault conditions, determine the target fault type of the motor.
[0050] The motor parameters may include physical quantities or operating status parameters of the motor, such as motor speed, motor temperature, motor current, power, etc. The preset fault conditions are logical judgment conditions used to determine the type of motor fault; these logical judgment conditions may determine the relationship between the motor parameters and preset thresholds. Optionally, the motor may be a permanent magnet synchronous motor.
[0051] Specifically, the motor controller can acquire motor parameters in real time or periodically. The motor controller can compare these parameters with preset fault conditions, obtain the comparison result, determine the preset fault conditions that the motor parameters must meet based on the comparison result, and then determine the target fault type of the motor based on the fault conditions met by the motor parameters.
[0052] Step 102: Determine the target flag bit value corresponding to the target fault type in the correspondence between fault type and flag bit value.
[0053] Specifically, the motor controller can pre-set the correspondence between fault types and flag bit values. The motor controller can then determine the target flag bit value corresponding to the target fault type based on this correspondence.
[0054] Step 103: During the process of switching from the first motor protection mode to the second motor protection mode, based on the target flag value, determine to perform the operation of clearing the preset fault latch.
[0055] The first motor protection mode protects the motor from damage caused by high speed and high current through a short-circuit circuit. The second motor protection mode disconnects the motor from the controller to prevent other safety issues caused by responding to vehicle control commands. For example, the first motor protection mode can be an Active Short Circuit (ASC) mode, and the second motor protection mode can be a Six Pack Off (SPO) mode. Preset fault latching can be implemented in the motor controller, where, upon detecting an overcurrent fault signal, the overcurrent fault state is locked and stored through a specific circuit or software mechanism. Preset fault latching can be fault latching caused by overcurrent faults. Overcurrent faults may be caused by a level 3 overcurrent fault or a non-level 3 overcurrent fault. An overcurrent fault caused by a non-level 3 overcurrent fault might occur when the motor enters the three-phase short-circuit ASC mode due to a non-level 3 overcurrent fault. Because there is voltage on all three phases during normal operation, directly short-circuiting the three phases will cause a transient ASC current, which may trigger the overcurrent fault flag and latch the fault.
[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, based on the target flag 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 value is an overcurrent fault, the operation of clearing the overcurrent fault latch is not performed; if the target fault type corresponding to the target flag value is a non-overcurrent fault, the operation of clearing the overcurrent fault latch is performed.
[0057] Alternatively, clearing the preset fault latch can be achieved by setting a reset signal input terminal in the fault detection module of the motor controller and sending a high-level signal to this input terminal. Upon receiving the high-level reset signal, the fault detection module will clear the preset fault latch. For example, sending a high-level signal to this reset signal input terminal can be achieved by pulling the input / output (I / O) terminals of the motor controller high to output a high-level signal. Clearing the preset fault latch can also include clearing the overcurrent fault flag.
[0058] The above-mentioned fault diagnosis method determines the target fault type of the motor by using motor parameters and preset fault conditions, and determines the target flag value corresponding to the target fault type. When switching from the first motor protection mode to the second motor fault protection mode, it can determine whether to perform the operation of clearing the preset fault latch based on the target flag value. This ensures that the overcurrent fault latch can be cleared in time when switching motor protection modes, the fault type can be determined in time, the efficiency of vehicle fault handling can be improved, and thus the safety of the vehicle can be guaranteed.
[0059] In an exemplary embodiment, the specific implementation process of step 103, "during the switching from the first motor protection mode to the second motor protection mode, determining to perform the operation of clearing the preset fault latch based on the target flag bit value," may include:
[0060] When in the first motor protection mode, if the mode switching conditions for switching from the first motor protection mode to the second motor protection mode are met, and the target flag bit value is a preset value, then the operation of clearing the preset fault latch is not performed; or, when in the first motor protection mode, if the mode switching conditions for switching from the first motor protection mode to the second motor protection mode are met, and the target flag bit value is not a preset value, then 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] Among them, the motor parameters include at least the real-time motor speed.
[0062] Specifically, when the motor controller is in the first motor protection mode, if the real-time motor speed is detected to be 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 met. If the number of target identifier bits stored in the motor controller is a 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 the real-time motor speed is detected to be less than the first speed threshold, the motor controller determines that the mode switching conditions for switching from the first motor mode to the second motor mode are met. If the target flag value stored in the motor controller is not a preset value, the motor controller determines that the fault is not caused by an 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 switching process from the first motor protection mode to the second motor protection mode, the value of the target identifier bit is judged to determine whether to perform the fault latch clearing operation, so as to determine the type of fault in a timely manner, improve the efficiency of vehicle fault handling, and thus ensure vehicle safety.
[0065] In one exemplary embodiment, the fault diagnosis method further includes:
[0066] If the motor speed exceeds the first speed threshold, the system switches to the first motor protection mode and re-detects the motor speed to obtain the real-time motor speed.
[0067] Among the motor parameters is the motor speed.
[0068] Specifically, in the correspondence between fault types and flag bit values, 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. In the first motor protection mode, the motor controller 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, the switch from the first motor protection mode to the second motor protection mode is satisfied.
[0069] In the correspondence between fault type and 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, different motor protection modes are switched according to the relationship between the motor speed and the first speed threshold to ensure the normal operation of the motor, thereby improving the safety of motor control and the driver's driving experience.
[0071] In an exemplary embodiment, step 101, "determining the target fault type of the motor based on motor parameters and preset fault conditions," may include the following three cases:
[0072] Scenario 1: If the motor current parameter is greater than the current threshold, then the motor parameter is determined to meet the preset fault conditions, and the target fault type of the motor is determined to be an overcurrent fault.
[0073] Scenario 2: If other motor operating parameters meet the abnormal operating conditions, then the motor parameters are determined to meet the preset fault conditions, and the target fault type of the motor is determined to be other level three faults.
[0074] Scenario 3: If the motor speed is greater than the second speed threshold, then the motor parameters are determined to meet the preset fault conditions, and the target fault type of the motor is determined to be an overspeed fault.
[0075] The motor parameters include at least one or more of the following: motor current parameters, motor speed, and other motor operating parameters. Other motor operating parameters may include one or more of the following: motor temperature parameters, motor voltage parameters, communication interval duration of the motor controller, current balance in the motor, resolver excitation voltage value, and high-frequency amplitude-modulated orthogonal analog signal of the motor. The communication interval duration of the motor controller refers to the time it takes for the motor controller to receive communication messages from the vehicle controller (or other key nodes). Current balance in the motor reflects whether a phase of the three-phase current is missing. The resolver excitation voltage value can be the voltage signal acquired by the analog-to-digital converter (ADC) in the motor. The high-frequency amplitude-modulated orthogonal analog signal of the motor can be used to determine the position and angle of the motor rotor. Other level-three faults may include one or more of the following: over-temperature fault, over-voltage fault, communication timeout fault, phase loss fault, resolver over-voltage / under-voltage fault, and resolver-related faults. Resolver-related faults may include signal loss, abnormal amplitude, 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 parameter meets the preset fault conditions and determines the target fault type of the motor as an overcurrent fault (overcurrent fault caused by non-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 operating conditions, the motor parameter meets the preset fault conditions, and the target fault type of the motor is an over-temperature fault.
[0078] If the motor voltage parameters are greater than the voltage threshold, the motor controller determines that the motor voltage parameters meet the abnormal operating conditions, that the motor parameters meet the preset fault conditions, and that the target fault type of the motor is an overvoltage fault.
[0079] If the motor controller receives communication data sent by the vehicle controller (or other key nodes) within a preset time threshold, it is determined that the communication time of the motor controller exceeds the preset time threshold, meets the abnormal operation conditions, and the communication time meets the preset fault conditions. The target fault type of the motor is determined to be a communication timeout fault.
[0080] If the current balance in the motor exceeds the preset balance threshold, it is determined that one phase of the three-phase current in the motor is missing, which meets the abnormal operation conditions. It is also determined that the current balance meets the preset fault conditions, and the target fault type of the motor is determined to be a phase loss fault.
[0081] If the motor resolver excitation voltage value exceeds the preset voltage threshold range, it is determined that the motor resolver excitation voltage value in the motor meets the abnormal operating conditions, and the motor parameters meet the preset fault conditions. The target fault type of the motor is determined to be resolver overvoltage / undervoltage fault.
[0082] If the high-frequency amplitude modulation orthogonal analog signal of the motor is abnormal (signal loss, abnormal signal amplitude, or signal phase deviation), it is determined that the high-frequency amplitude modulation orthogonal analog signal in the motor meets the abnormal operating conditions, and the motor parameters meet the preset fault conditions. The target fault type of the motor is determined to be a 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 conditions and that the target fault type of the motor is an 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 can then detect whether the motor temperature parameter is greater than the temperature threshold, or 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 of the motor controller, the current balance in the motor, the excitation voltage value of the motor resolver, and the orthogonal analog signal of the high-frequency amplitude modulation of the motor are all abnormal, then it can detect whether the motor speed is greater than the speed threshold. If all the motor parameters are within the threshold range, then the second motor protection mode will continue 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 an overcurrent fault, the fault identifier is determined to be an overcurrent fault identifier; when the target fault type is an overtemperature fault, the fault identifier is determined to be an overtemperature fault identifier; when the target fault type is an overvoltage fault, the fault identifier is determined to be an overvoltage fault identifier; when the target fault type is a communication timeout fault, the fault identifier is determined to be a communication timeout fault identifier; when the target fault type is a phase loss fault, the fault identifier is determined to be a phase loss fault identifier; when the target fault type is a resolver overvoltage / undervoltage fault, the fault identifier is determined to be a resolver overvoltage / undervoltage fault identifier; when the target fault type is a resolver-related fault, the fault identifier is determined to be a resolver-related fault identifier; and when the target fault type is an overspeed fault, the fault identifier is determined to be an overspeed fault identifier.
[0086] Optionally, other level 3 faults refer to faults that seriously affect the motor, potentially impacting its normal operation or even causing damage. The thresholds for each type of fault can be determined based on the actual type of motor, design parameters, or the specific application scenario. Overcurrent and overspeed faults also fall under the category of level 3 motor faults.
[0087] In this embodiment, fault diagnosis of the motor is achieved by determining the parameters of each motor, thereby improving the efficiency and accuracy of motor fault diagnosis.
[0088] In an exemplary embodiment, the specific implementation process of step 102, "determining the target flag bit value corresponding to the target fault type in the correspondence between fault type and flag bit value," may include:
[0089] If the target fault type is an overcurrent fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the first value; or, if the target fault type is another level three fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the second value; or, if the target fault type is an overspeed fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the third value.
[0090] The flag values include at least a first value, a second value, and a third value. The first value is a preset value, and it is different from both the second and third values. The second and third values may or may not be the same. For example, the first value can be 1, and the second and third values can be 0.
[0091] Specifically, if the target fault type is an overcurrent fault, the motor controller determines the target flag bit value to be 1 in the correspondence between fault type and flag bit value. If the target fault type is another level three fault, the motor controller determines the target flag bit value to be 0 in the correspondence between fault type and flag bit value. If the target fault type is an overspeed fault, the motor controller determines the target flag bit value to be 1 in the correspondence between fault type and flag bit value.
[0092] In this embodiment, the corresponding flag bit value is determined by different target types to determine whether the fault is an overcurrent fault caused by ACS mode, thereby improving the accuracy of fault detection.
[0093] In one exemplary embodiment, the fault diagnosis method further includes:
[0094] If the received signal command meets the preset operating conditions, the system will switch from the second motor protection mode to the normal driving mode.
[0095] The signal commands can be operation control commands sent by the vehicle controller to the motor controller. For example, the signal commands can include at least one or more of the following: Insulated Gate Bipolar Transistor (IGBT) turn-on signal, torque mode, and torque command.
[0096] Specifically, if the motor controller receives a signal command from the vehicle controller and the signal command meets the preset operating conditions, it switches from the second motor protection mode to the normal driving mode.
[0097] Optionally, when the motor controller does not receive any instructions from the vehicle controller, it will automatically switch to the shut-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 is faulty, the signal command sent by the vehicle controller will not be executed even if it meets the preset operating conditions.
[0099] In this embodiment, by detecting whether a signal command can be received, the specific mode of the motor is determined, thereby eliminating the potential risks caused by the motor continuing to operate without a command, protecting the motor, and ensuring the normal operation of the vehicle.
[0100] In one exemplary embodiment, the safety mode switching of the motor controller mainly includes switching between three-phase short-circuit ASC mode, shut-off SPO mode, and normal driving mode. For example... Figure 2 As shown, Figure 2 This is a flowchart illustrating a vehicle mode switching method, which includes the following steps:
[0101] When the motor controller does not receive any instructions from the vehicle controller, it will automatically switch to the IGBT off SPO mode; when the motor controller receives the IGBT on signal, torque mode and torque command from the vehicle controller, the motor controller will switch to normal driving mode.
[0102] In terms of fault detection, the motor controller first performs a three-level overcurrent fault diagnosis. If an overcurrent fault is detected (i.e., overcurrent caused by a non-three-phase short-circuit ASC mode), the motor controller sets the overcurrent flag to 1 and selects the switching mode by determining whether the motor speed exceeds a predetermined threshold. If the motor speed is greater than the threshold, the controller switches to the three-phase short-circuit ASC mode; if the motor speed is less than the threshold, it switches back to the shut-off SPO mode. If no overcurrent fault is detected, the motor controller then performs other three-level fault diagnoses (e.g., overtemperature, overvoltage). In the presence of other three-level faults, the motor controller sets the overcurrent flag to 0, and determines the switching mode based on the motor speed; if the motor speed is higher than the threshold, the motor controller switches to the three-phase short-circuit ASC mode; if the speed is lower than the threshold, it switches to the shut-off SPO mode. In addition, the motor controller also performs a three-level overspeed fault diagnosis. If the motor speed is detected to be greater than the second speed threshold, the motor controller sets the overcurrent flag to 0 and switches to the three-phase short-circuit ASC mode. When the motor controller is in three-phase short-circuit ASC mode, it monitors the real-time motor speed. If the real-time motor speed is lower than the speed threshold, the motor controller will determine whether the entry into this mode is due to overcurrent. If the overcurrent flag is 1, it is determined that the overcurrent is the cause, and the overcurrent fault clearing operation is not performed, switching back to the shut-off SPO mode; if the overcurrent flag is not 1, the overcurrent fault clearing operation is performed, and switching back to the shut-off SPO mode is performed.
[0103] In this embodiment, during the operation of an electric vehicle, in response to three-level faults (overspeed, overtemperature, overcurrent, and overvoltage) occurring at high speeds, the system can promptly switch to 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, ensuring rapid and safe switching of operating modes when a fault occurs by accurately determining the fault type and motor speed, significantly reducing the risk of misjudgment caused by residual overcurrent fault flag bits. Simultaneously, the system enhances the fault handling capability of the motor controller through comprehensive monitoring of multiple key factors such as transient current, overtemperature, overvoltage, overcurrent, and overspeed, ensuring high efficiency and safe performance even in complex operating environments.
[0104] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0105] Based on the same inventive concept, this application also provides a fault diagnosis device for implementing the fault diagnosis method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more fault diagnosis device embodiments provided below can be found in the limitations of the fault diagnosis method described above, and will not be repeated here.
[0106] In one exemplary embodiment, such as Figure 3 As shown, a fault diagnosis device 30 is provided, including: a first determining module 31, a second determining module 32, and a third determining module 33, wherein:
[0107] The first determining module 31 is used to determine the target fault type of the motor based on motor parameters and preset fault conditions;
[0108] The second determining module 32 is used to determine the target flag bit value corresponding to the target fault type in the correspondence between fault type and flag bit value;
[0109] The third determining module 33 is used to determine, based on the target flag bit value, to perform the operation of clearing the preset fault latch during the process of switching from the first motor protection mode to the second motor protection mode.
[0110] In one embodiment, the third determining module 33 is configured to, when in the first motor protection mode, if the mode switching conditions for switching from the first motor protection mode to the second motor protection mode are met, and the target flag bit value is a preset value, then not perform the operation of clearing the preset fault latch; or...
[0111] When in the first motor protection mode, if the mode switching conditions for switching from the first motor protection mode to the second motor protection mode are met, and the target flag value is not a preset value, then the operation of clearing the preset fault latch is executed. The mode switching condition is that the real-time motor speed is less than the first speed threshold.
[0112] In one embodiment, the third determining module 33 is further configured to switch to the first motor protection mode and re-detect the motor speed to obtain the real-time motor speed if the motor speed exceeds the first speed threshold.
[0113] In one embodiment, the first determining module 31 is configured to determine that the motor parameters meet preset fault conditions if the motor current parameters are greater than a current threshold, and to determine that the target fault type of the motor is an overcurrent fault; or,
[0114] If other motor operating parameters meet the abnormal operating conditions, then the motor parameters are determined to meet the preset fault conditions, and the target fault type of the motor is determined to be another level three fault; or,
[0115] If the motor speed is greater than the second speed threshold, the motor parameters are determined to meet the preset fault conditions, and the target fault type of the motor is determined to be an overspeed fault.
[0116] In one embodiment, the second determining module 32 is configured to, if the target fault type is an overcurrent fault, determine, in the correspondence between fault types and flag bit values, that the target flag bit value corresponding to the target fault type is a first value; or,
[0117] If the target fault type is another level three fault, then in the correspondence between fault type and flag bit value, determine the target flag bit value corresponding to the target fault type as the second value; or,
[0118] If the target fault type is an overspeed fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the third value.
[0119] In one embodiment, the first determining module 31 is further configured to switch to the second motor protection mode if no signal command is detected within a preset time period.
[0120] If the received signal command meets the preset operating conditions, the system will switch from the second motor protection mode to the normal driving mode.
[0121] Each module in the aforementioned fault diagnosis device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0122] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, 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 is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0123] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0124] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0125] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0126] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[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 used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0128] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media 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), magnetic 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 take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0129] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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, they should be considered to be within the scope of this application.
[0130] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A fault diagnosis method, characterized in that, The method includes: Based on motor parameters and preset fault conditions, determine the target fault type of the motor; In the correspondence between fault type and flag bit value, determine 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 value of the target flag bit, it is determined to perform the operation of clearing the preset fault latch; The motor parameters include at least the real-time motor speed. During the switch from the first motor protection mode to the second motor protection mode, based on the target flag value, determining to perform the operation of clearing the preset fault latch includes: When in the first motor protection mode, if the mode switching conditions for switching from the first motor protection mode to the second motor protection mode are met, and the target flag bit value is a preset value, then 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 met, and the value of the target flag bit is not the preset value, then 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.
2. The method according to claim 1, characterized in that, The motor parameters also include motor speed, and the method further includes: If the motor speed exceeds the first speed threshold, the system switches to the first motor protection mode and re-detects the motor speed to obtain the real-time motor speed.
3. The method according to claim 1, characterized in that, The motor parameters include at least one or more of the following: motor current parameters, motor speed, and other motor operating parameters. Based on the motor parameters and preset fault conditions, the target fault type of the motor is determined, including: If the motor current parameter is greater than the current threshold, then the motor parameter is determined to meet the preset fault conditions, and the target fault type of the motor is determined to be an overcurrent fault; or, If the other motor operating parameters meet the abnormal operating conditions, then the motor parameters are determined to meet the preset fault conditions, and the target fault type of the motor is determined to be another level three fault; or, If the motor speed is greater than the second speed threshold, then the motor parameters are determined to meet the preset fault conditions, and the target fault type of the motor is determined to be an overspeed fault.
4. The method according to claim 3, characterized in that, The flag bit value includes at least 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 and third values. Determining the target flag bit value corresponding to the target fault type in the correspondence between fault types and flag bit values includes: If the target fault type is the overcurrent fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the first value; or, If the target fault type is one of the other level three faults, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the second value; or, If the target fault type is the overspeed fault, then in the correspondence between fault type and flag bit value, the target flag bit value corresponding to the target fault type is determined to be the third value.
5. The method according to claim 1, characterized in that, The method further includes: If the received signal command meets the preset operating conditions, the system switches from the second motor protection mode to the normal driving mode.
6. A fault diagnosis device, characterized in that, The device includes: The first determining module is used to determine the target fault type of the motor based on motor parameters and preset fault conditions; The second determining module is used to determine the target flag bit value corresponding to the target fault type in the correspondence between fault type and flag bit value; The third determining module is used to determine, based on the value of the target flag bit, to perform the operation of clearing the preset fault latch during the process of switching from the first motor protection mode to the second motor protection mode. The motor parameters include at least the real-time motor speed. The third determining module is configured to, when in the first motor protection mode, if the mode switching conditions for switching from the first motor protection mode to the second motor protection mode are met, and the target flag bit value is a preset value, then not perform the operation of clearing 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 met, and the value of the target flag bit is not the preset value, then 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.
7. The apparatus according to claim 6, characterized in that, The motor parameters also include the motor speed. The third determining module is further configured to switch to the first motor protection mode and re-detect the motor speed if the motor speed exceeds the first speed threshold, so as to obtain the real-time motor speed.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Motor system fault processing method and processor
CN102929272A
Fault diagnosis method and device of vehicle motor system, motor controller and vehicle
CN118528785A
Fault processing method and apparatus, vehicle terminal and storage medium
WO2024222126A1