Fault diagnosis method and device, electronic equipment and storage medium
By monitoring the absolute voltage and bias voltage of the motor controller and combining this with dynamic threshold judgment, the problem of misjudgment in short-circuit diagnosis of the motor controller is solved, improving the accuracy and reliability of diagnosis and reducing system costs.
Patent Information
- Application Number
- CN202511299720.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-11
- Publication Date
- 2025-11-14
AI Technical Summary
In the existing technology, the short circuit diagnosis method for motor controllers is easily affected by electromagnetic interference and noise, which may lead to misjudgment or inability to accurately distinguish between normal and fault states, and high-precision detection increases system costs.
By monitoring the absolute value of the voltage signal and the bias voltage when the motor controller processes the target signal, a dynamic threshold is set to determine short-circuit faults, avoiding relying solely on voltage amplitude for diagnosis.
This improves the accuracy and reliability of short-circuit diagnosis for motor controllers, reduces false alarms, and lowers system costs.
Smart Images

Figure CN120949751A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of fault diagnosis, and more specifically, to a fault diagnosis method, apparatus, electronic device, and storage medium. Background Technology
[0002] In fields such as electric vehicles and industrial servo systems, motor controllers are one of the core control components. Due to their complex operating environment, they are susceptible to external interference or internal component failure, leading to various malfunctions. Therefore, accurately diagnosing motor controller faults remains a challenge in related technologies. Summary of the Invention
[0003] In view of this, embodiments of this application propose a fault diagnosis method, apparatus, electronic device, and storage medium to improve the above-mentioned problems.
[0004] In a first aspect, embodiments of this application provide a fault diagnosis method, the method comprising: acquiring a voltage signal during the operation of a motor controller processing a target signal, as a first voltage signal; acquiring a bias voltage based on the first voltage signal; and determining that the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold, thereby determining that the motor controller has a short circuit fault.
[0005] Secondly, embodiments of this application provide a fault diagnosis device, the device comprising: a voltage signal acquisition module, a bias voltage acquisition module, and a short-circuit fault determination module. The voltage signal acquisition module is used to acquire a voltage signal during the operation of the motor controller processing a target signal, as a first voltage signal; the bias voltage acquisition module is used to acquire a bias voltage based on the first voltage signal; and the short-circuit fault determination module is used to determine that a short-circuit fault has occurred in the motor controller if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold.
[0006] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor performs the fault diagnosis method provided in the first aspect above.
[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the fault diagnosis method provided in the first aspect above.
[0008] In the solution of this application, the voltage signal during the operation of the motor controller processing the target signal is obtained as the first voltage signal, and the bias voltage is obtained based on the first voltage signal. When it is determined that the absolute value of the voltage of the first voltage signal is lower than the first target threshold and the bias voltage is lower than the second target threshold, a short circuit fault is determined to have occurred in the motor controller. Thus, when the motor controller is processing important target signals, the absolute value of the voltage signal and the bias voltage during the operation of the motor controller are monitored simultaneously to perform short circuit diagnosis on the motor controller. This effectively avoids misjudgment of short circuit diagnosis of the motor controller based solely on the amplitude of the voltage signal and improves the accuracy of short circuit diagnosis of the motor controller. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A flowchart illustrating a fault diagnosis method provided in an embodiment of this application is shown; Figure 2 A flowchart illustrating a fault diagnosis method provided in an embodiment of this application is shown; Figure 3 This paper shows a structural block diagram of a motor controller short-circuit diagnostic system according to an embodiment of the present application; Figure 4 A flowchart illustrating a fault diagnosis method provided in an embodiment of this application is shown; Figure 5 A block diagram of a fault diagnosis device provided in one embodiment of this application is shown; Figure 6 A block diagram of an electronic device according to an embodiment of the present application for performing a fault diagnosis method according to an embodiment of the present application is shown. Detailed Implementation
[0011] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0012] The implementation details of the technical solutions in the embodiments of this application are described in detail below: In fields such as electric vehicles and industrial servo systems, motor controllers are one of the core control components. As the requirements for vehicle functional safety become increasingly stringent, the high and low voltage environments of the vehicle are also becoming more complex, making the operating environment of motor controllers complex and susceptible to external interference or internal component failures, thus leading to various malfunctions.
[0013] One of the most common fault types in motor controllers is short-circuit faults. Traditional short-circuit detection methods are usually based on the amplitude of the voltage signal; that is, a short-circuit fault is determined when the detected voltage is below a certain threshold. However, in practical applications, due to the high switching frequency of the internal circuits of motor controllers (typically in the kHz to MHz range), electromagnetic interference and high-frequency noise in the system can severely pollute the voltage signal. Furthermore, when a short circuit occurs, the system may exhibit non-ideal voltage waveforms; for example, the voltage value may not completely drop to a low level, but rather show some fluctuations or a bias state. Also, some short-circuit thresholds may fall within the normal sampling range, in which case short-circuit determinations based on these thresholds will be invalid.
[0014] Therefore, relying solely on voltage amplitude thresholds to determine short circuits has several drawbacks. First, interference and noise can cause voltage signals to approach or even fall below the short-circuit fault threshold during normal operation, leading to false positives. Second, setting the threshold range too wide may overlap with the lowest voltage during normal operation, making it difficult to accurately distinguish between normal and fault states. Third, reporting short-circuit faults based on a low-level duration exceeding a threshold requires high sampling rate and accuracy from the hardware, increasing system costs. Therefore, related technologies suffer from low accuracy in short-circuit diagnosis of motor controllers.
[0015] To address the aforementioned problems, the inventors, through extensive research, have developed a fault diagnosis method, apparatus, electronic device, and storage medium as provided in the embodiments of this application. By simultaneously monitoring the absolute value of the voltage signal and the bias voltage during the operation of the motor controller while it processes important target signals, short-circuit diagnosis of the motor controller is performed. This effectively avoids misjudgments based solely on the amplitude of the voltage signal, thus improving the accuracy of short-circuit diagnosis of the motor controller. The specific fault diagnosis method will be described in detail in subsequent embodiments.
[0016] The embodiments involved in this application will now be described with reference to the accompanying drawings.
[0017] Please see Figure 1 , Figure 1 A flowchart illustrating a fault diagnosis method according to an embodiment of this application is shown. In a specific embodiment, this fault diagnosis method can be applied to, for example... Figure 5The fault diagnosis device 200 and the electronic device 100 equipped with the fault diagnosis device 200 are shown. Figure 6 The following will use an electronic device as an example to illustrate the specific process of this embodiment. Of course, it is understood that the electronic device used in this embodiment may include vehicles, in-vehicle terminals, diagnostic instruments, computers, etc., and is not limited thereto. The following will focus on... Figure 1 The process shown is described in detail, and the fault diagnosis method may specifically include the following steps: Step S110: Obtain the voltage signal during the operation of the motor controller processing the target signal, and use it as the first voltage signal.
[0018] In this embodiment, the electronic device can be used to diagnose faults in the motor controller. The motor control circuit can be applied to devices such as vehicles and robots. The electronic device can acquire a voltage signal generated during the motor controller's processing of a target signal, using this voltage signal as a first voltage signal. This target signal may include safety-related data such as temperature, speed, and torque. Therefore, the electronic device can perform fault diagnosis on the motor controller during its processing of the target signal, ensuring the safety of the motor operation and improving the safety of the equipment equipped with the motor controller.
[0019] In some implementations, the electronic device can acquire voltage signals at key nodes during the operation of the motor controller via a voltage sensor or sampling circuit, using these signals as the first voltage signal. Here, the key nodes during the operation of the motor controller can be understood as the process by which the motor controller processes the target signal.
[0020] In some implementations, the electronic device can filter and smooth the voltage analog signal acquired during the process of the motor controller processing the target signal to obtain a first voltage signal, thereby improving the reliability of signal acquisition.
[0021] Step S120: Obtain the bias voltage based on the first voltage signal.
[0022] In some implementations, considering that when a short circuit occurs in the motor controller, the bias voltage (DC component) during the processing of the target signal by the monitored motor controller will be significantly lowered due to excessive current or changes in system impedance. Based on this, in this embodiment, the electronic device can obtain the bias voltage based on the first voltage signal, and then determine whether a short circuit fault exists in the motor controller by performing DC bias analysis on the first voltage signal.
[0023] Step S130: If it is determined that the absolute value of the first voltage signal is lower than the first target threshold and the bias voltage is lower than the second target threshold, then it is determined that the motor controller has a short circuit fault.
[0024] In some implementations, after obtaining the first voltage signal, the electronic device can perform real-time analysis on the first voltage signal and calculate its absolute voltage value. Specifically, after obtaining the absolute voltage value of the first voltage signal and the bias voltage during the motor controller's processing of the target signal, the electronic device can compare the absolute voltage value of the first voltage signal with a first target threshold and the bias voltage with a second target threshold, and determine whether a short-circuit fault has occurred in the motor controller based on the comparison results.
[0025] Optionally, the electronic device may have a first target threshold and a second target threshold preset in advance. The first target threshold and the second target threshold may also be obtained by the electronic device from the associated cloud or electronic device. The first target threshold and the second target threshold may be obtained from third-party experimental data or may be set by the user. No limitation is made here.
[0026] For example, if the electronic device determines that the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold, it can determine that a short circuit fault has occurred in the motor controller.
[0027] As one feasible approach, after receiving a first voltage signal, the electronic device can calculate the absolute value of the first voltage signal and compare it with a first target threshold. If the absolute value of the first voltage signal is determined to be lower than the first target threshold, a bias voltage can be obtained based on the first voltage signal and compared with a second target threshold. If the bias voltage is determined to be lower than the second target threshold, a short-circuit fault is identified in the motor controller. Alternatively, if the electronic device determines that the absolute value of the first voltage signal is not lower than the first target threshold, it can be determined that no short-circuit fault has occurred in the motor controller; similarly, if the electronic device determines that the bias voltage is not lower than the second target threshold, it can be determined that no short-circuit fault has occurred in the motor controller. Therefore, after acquiring the voltage signal during the motor controller's operation, the absolute value of the voltage signal is first detected. When the absolute value of the voltage signal is lower than the first target threshold, a bias voltage detection is performed. If the bias voltage is determined to be lower than the second target threshold, a short-circuit fault is identified in the motor controller, improving the accuracy of short-circuit fault diagnosis and reducing the computational load.
[0028] As another feasible approach, after obtaining the first voltage signal, the electronic device can simultaneously calculate the absolute value of the first voltage signal and the bias voltage, and can compare the absolute value of the voltage with a first target threshold and the bias voltage with a second target threshold, and determine that a short circuit fault has occurred in the motor controller when it is determined that the absolute value of the voltage is lower than the first target threshold and the bias voltage is lower than the second target threshold, thereby improving both the accuracy and speed of short circuit fault diagnosis in the motor controller.
[0029] In some implementations, after determining that a short circuit fault has occurred in the motor controller, the electronic device can output an alarm message to indicate the short circuit. The method by which the electronic device outputs this alarm message includes indicator light prompts, voice prompts, and interface displays, etc., and is not limited here. This allows for timely reporting of the motor controller's fault diagnosis status, improving the safety and reliability of using the motor controller.
[0030] In some implementations, after determining that no short-circuit fault has occurred in the motor controller, the electronic device can continue to acquire the voltage signal during the motor controller's processing of the target signal in real time, update the first voltage signal and the bias voltage, and perform short-circuit detection on the motor controller based on the updated first voltage signal and bias voltage.
[0031] One embodiment of this application provides a fault diagnosis method that acquires a voltage signal during the operation of a motor controller processing a target signal as a first voltage signal, obtains a bias voltage based on the first voltage signal, and determines that a short circuit fault has occurred in the motor controller when the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold. This method simultaneously monitors the absolute value of the voltage signal and the bias voltage during the operation of the motor controller while it is processing an important target signal, thereby performing short circuit diagnosis on the motor controller. This effectively avoids misjudgments of short circuit diagnosis based solely on the amplitude of the voltage signal, improving the accuracy of short circuit diagnosis for the motor controller.
[0032] Please see Figure 2 , Figure 2 A flowchart illustrating a fault diagnosis method according to an embodiment of this application is shown. This method is applied to the aforementioned electronic device, and will be discussed below. Figure 2 The process shown is described in detail, and the fault diagnosis method may specifically include the following steps: Step S210: Obtain the voltage signal during the operation of the motor controller processing the target signal, as the first voltage signal, wherein the target signal includes a signal for detecting the temperature of the motor controller.
[0033] In some implementations, the target signals processed by the motor controller include, but are not limited to, signals that affect the safety of motor operation, such as signals for detecting the temperature of the motor controller, signals for detecting the temperature of the motor, signals for detecting the temperature of the internal chips of the motor controller, signals for detecting the motor speed, and signals for detecting the motor torque.
[0034] For example, the target signal includes a signal for detecting the temperature of the motor controller, which may carry temperature data such as the temperature value of the motor controller, the temperature value of the motor, and the temperature value of the internal chip of the motor controller. The electronic device may acquire the voltage signal generated during the motor controller's processing of the target signal, as a first voltage signal.
[0035] Step S220: Obtain the bias voltage based on the first voltage signal.
[0036] For a detailed description of step S220, please refer to the previous description of step S120, which will not be elaborated here.
[0037] Step S230: Obtain the operating mode of the motor controller.
[0038] In some implementations, electronic devices can acquire the operating mode of a motor controller during the process of diagnosing a motor controller fault. The operating mode of the motor controller can be either an operational mode or a non-operational mode. An operational mode can be understood as the motor controller being in a dynamic operating state (e.g., torque mode, 0 mode, etc.). It should be noted that in an operational mode, due to the complex environment, the voltage signal sampled from the motor controller exhibits significant fluctuations. A non-operational mode can be understood as the motor controller being in a static operating state (e.g., standby mode, fault mode, etc.). It should be noted that in a non-operational mode, the voltage signal sampled from the motor controller exhibits a relatively stable absolute voltage value compared to the voltage signal in an operational mode. Based on this, electronic devices can determine the operating mode of the motor controller during the fault diagnosis process by analyzing signal characteristics such as the distribution of the absolute voltage value and the fluctuation of the bias voltage in the sampled voltage signal during the motor controller's operation.
[0039] Step S240: Determine the first target threshold and the second target threshold according to the working mode.
[0040] In some implementations, after the electronic device obtains the operating mode of the motor controller, it can determine a first target threshold and a second target threshold for short-circuit diagnosis of the motor controller based on this operating mode. This adaptively switches the threshold for short-circuit diagnosis based on the operating state of the motor controller, improving the accuracy of short-circuit diagnosis.
[0041] In some implementations, considering that the absolute value of the voltage signal of the motor controller is relatively stable when the motor controller is in a static operating state, a smaller threshold can be used for short-circuit diagnosis to avoid missed detections. Conversely, considering that the voltage signal of the motor controller fluctuates significantly due to the complex environment when the motor controller is in a dynamic operating state, a threshold that is too low may lead to false shutdowns. Therefore, a higher threshold can be used for short-circuit diagnosis to avoid false alarms. Accordingly, the electronic device can be pre-set with two levels of thresholds for short-circuit diagnosis of the motor controller. The first level threshold corresponds to the operating mode of the motor controller, and the second level threshold corresponds to the non-operating mode. The first level threshold is greater than the second level threshold. The first level threshold may include a first threshold corresponding to the absolute voltage value and a second threshold corresponding to the bias voltage. The second level threshold may include a third threshold corresponding to the absolute voltage value and a fourth threshold corresponding to the bias voltage. The first threshold is greater than the third threshold, and the second threshold is greater than the fourth threshold.
[0042] In some implementations, the motor controller operates in either an operational mode or a non-operational mode. As one possible approach, if the electronic device determines that the motor controller is in an operational mode, it can determine a first threshold as a first target threshold and a second threshold as a second target threshold. Alternatively, if the electronic device determines that the motor controller is in a non-operational mode, it can determine a third threshold as a first target threshold and a fourth threshold as a second target threshold. The third threshold is lower than the first threshold, and the fourth threshold is lower than the second threshold. This allows for dynamic adjustment of the threshold range to adapt to changes in system characteristics under different operating states of the motor controller, avoiding misjudgments or omissions in motor controller fault diagnosis and improving the reliability and accuracy of motor controller fault diagnosis.
[0043] Step S250: If it is determined that the absolute value of the voltage is lower than the first target threshold and the bias voltage is lower than the second target threshold, then obtain the temperature value corresponding to the signal of the detected motor controller temperature.
[0044] In some implementations, considering that the target signal includes a signal for detecting the temperature of the motor controller, and that the temperature changes over time in the application scenario, in this embodiment, the electronic device can acquire the temperature value corresponding to the signal for detecting the temperature of the motor controller when it is determined that the absolute value of the voltage is lower than a first target threshold and the bias voltage is lower than a second target threshold. This allows for a comprehensive judgment of motor controller fault diagnosis based on the application scenario of temperature and the operating time of the motor controller, improving the reliability and accuracy of short-circuit detection of the motor controller.
[0045] The electronic device can convert the voltage value corresponding to the signal that detects the temperature of the motor controller into a temperature value, thereby obtaining the temperature value carried in the target signal, and combining the temperature value to perform short circuit detection of the motor controller.
[0046] Step S260: If the temperature value is determined to be within a preset range, then after the motor controller has been running for a preset period of time, the updated first voltage signal and the updated bias voltage corresponding to the motor controller are obtained.
[0047] In some implementations, after the electronic device obtains the temperature value corresponding to the target signal, it can compare the temperature value with a preset range and determine the subsequent operation for short-circuit diagnosis of the motor controller based on the comparison result. For example, if it is determined that the temperature value is within the preset range, the updated first voltage signal and the updated bias voltage corresponding to the motor controller can be obtained after the motor controller has been running continuously for a preset period of time, and then the updated first voltage signal and the updated bias voltage can be used to determine whether a short-circuit fault has occurred in the motor controller.
[0048] The preset range can be pre-set in the electronic device or obtained by the electronic device from a related cloud or electronic device. This preset range can be obtained through third-party experimental data or set by the user, without limitation. For example, the preset range can be set by the user to -40℃ to 105℃, or -40℃ to 85℃, etc. In this embodiment, the preset range can be understood as the normal operating temperature range, or the normal temperature range processed by the motor controller. When the temperature value is within the preset range, it can be determined that the short-circuit voltage of the temperature signal overlaps with the normal range. Furthermore, the electronic device can combine this with the motor controller's operating time to determine a short-circuit fault in the motor controller, thereby improving the reliability and accuracy of short-circuit fault detection.
[0049] The preset duration can be pre-set in the electronic device or obtained by the electronic device from the associated cloud or other electronic devices. The preset duration can be obtained through third-party experimental data or set by the user, and there is no limitation on this.
[0050] In some implementations, if the electronic device determines that the temperature value corresponding to the target signal is outside the preset range, it can determine that the short-circuit voltage of the temperature signal does not overlap with the normal range, and it can determine that a short-circuit fault has occurred in the motor controller. Thus, under high switching frequency and strong interference environment, the absolute value of the voltage signal, the bias voltage value, and the temperature value corresponding to the voltage signal are monitored simultaneously to detect short-circuit faults in the motor controller, thereby improving the reliability and accuracy of short-circuit fault detection in the motor controller.
[0051] Step S270: If it is determined that the absolute value of the updated first voltage signal is lower than the first target threshold and the updated bias voltage is lower than the second target threshold, then it is determined that the motor controller has a short circuit fault.
[0052] In some implementations, after the electronic device has been running the motor controller for a preset period of time and has obtained an updated first voltage signal and an updated bias voltage, it can compare the absolute value of the updated first voltage signal with a first target threshold, compare the updated bias voltage with a second target threshold, and determine whether a short circuit fault has occurred in the motor controller based on the comparison result.
[0053] For example, if the electronic device determines that the absolute value of the updated first voltage signal is lower than a first target threshold and the updated bias voltage is lower than a second target threshold, it can determine that a short circuit fault has occurred in the motor controller.
[0054] If the electronic device determines that the absolute value of the updated first voltage signal is not lower than the first target threshold, or the updated bias voltage is not lower than the second target threshold, then it can be determined that the motor controller has not experienced a short-circuit fault. Furthermore, even after determining that the motor controller has not experienced a short-circuit fault, the electronic device can continue to monitor the absolute value of the voltage signal, bias voltage, operating mode, and operating duration during the motor controller's processing of the target signal to perform short-circuit detection on the motor controller.
[0055] As an feasible approach, the electronic device can also acquire updated first voltage signals and updated bias voltages in real time during the continuous operation of the motor controller for a preset duration. The acquired updated first voltage signals can be compared with a first target threshold, and the acquired updated bias voltages can be compared with a second target threshold. If it is determined that the acquired updated first voltage signals within the preset duration all exceed the first target threshold, and the acquired updated bias voltages are all below the second target threshold, then a short-circuit fault in the motor controller can be determined. Conversely, if within the preset duration, the absolute value of the updated first voltage signal is not lower than the first target threshold, or the updated bias voltage is not lower than the second target threshold, then a short-circuit fault in the motor controller can be determined. Therefore, by comprehensively considering the absolute value of the voltage, bias voltage, operating mode, and operating time of the motor controller, short-circuit detection is performed, improving the reliability and accuracy of short-circuit detection.
[0056] Step S280: Control the motor controller to stop outputting.
[0057] In some implementations, after determining that a short circuit fault has occurred in the motor controller, the electronic device can trigger the protection mechanism of the motor controller to ensure the safety of the motor controller. For example, the electronic device can control the motor controller to stop output to protect the motor controller.
[0058] For example, please refer to the following: Figure 3 and Figure 4 , Figure 3 This paper shows a structural block diagram of a motor controller short-circuit diagnostic system according to an embodiment of this application. Figure 4A flowchart illustrating a fault diagnosis method according to an embodiment of this application is shown. The motor controller short-circuit diagnosis system includes a signal sampling circuit module, a signal conditioning circuit module, a data acquisition module, a diagnostic algorithm module, a protection execution module, and a storage module. The signal sampling circuit module can acquire the voltage value of the motor controller signal in real time and output the acquired voltage value to the signal conditioning circuit module. The signal conditioning circuit module can filter and smooth the voltage analog signal acquired by the signal sampling circuit module to obtain a voltage signal, which is then output to the data acquisition module to improve the reliability of signal acquisition. The data acquisition module can calculate the absolute voltage value and bias voltage of the voltage signal output by the signal conditioning circuit module and output the absolute voltage value and bias voltage value to the diagnostic algorithm module. The diagnostic algorithm module can analyze the absolute voltage value and bias voltage, and, combining whether the absolute voltage value is lower than a first target threshold and whether the bias voltage is lower than a second target threshold, determine whether a short-circuit fault exists in the motor controller, and output the result of the determined short-circuit fault to the protection execution module. The protection execution module can be used to execute corresponding protection mechanisms (such as shutting down the motor controller's output) after a short-circuit fault occurs in the motor controller. Simultaneously, the protection execution module can also output the result of the short-circuit fault in the motor controller to the storage module for storage and fault signal reporting.
[0059] The signal sampling circuit module obtains the raw output voltage signal from the motor controller through a sampling circuit. The signal conditioning circuit module then filters and smooths this raw voltage signal, extracts features, calculates the absolute voltage value, and analyzes the bias voltage.
[0060] The diagnostic algorithm module can also determine a first target threshold and a second target threshold for short-circuit detection based on the operating status of the motor controller. Furthermore, when the target signal includes a signal detecting the motor controller temperature, if the absolute value of the voltage is below the first target threshold and the bias voltage is below the second target threshold, the module acquires the temperature value corresponding to the signal detecting the motor controller temperature. If this temperature value is within a preset range, the module acquires the first voltage signal and the bias voltage after the motor controller has been running continuously for a preset duration. If the absolute value of the first voltage signal after the preset duration of continuous operation is below the first target threshold and the bias voltage after the preset duration of continuous operation is below the second target threshold, a short-circuit fault in the motor controller is determined. This combination of the absolute value of the voltage signal, the bias voltage, the operating status, and the operating duration enables short-circuit diagnosis of motor controllers in high-switching-frequency and high-interference environments, improving the accuracy and reliability of short-circuit diagnosis in complex environments. It also ensures timely reporting and protection when a short-circuit fault occurs in the motor controller, thus enhancing the safety of the motor controller.
[0061] The fault diagnosis method provided in one embodiment of this application is compared to... Figure 1 The fault diagnosis method shown in this embodiment includes a target signal for detecting the temperature of the motor controller. If the absolute value of the voltage is determined to be lower than a first target threshold and the bias voltage is determined to be lower than a second target threshold, then the temperature value corresponding to the signal detecting the motor controller temperature is obtained. If the temperature value is determined to be within a preset range, then after the motor controller has been running for a preset duration, the updated first voltage signal and the updated bias voltage corresponding to the motor controller are obtained. If the absolute value of the updated first voltage signal is determined to be lower than the first target threshold and the updated bias voltage is determined to be lower than the second target threshold, then a short circuit fault is determined in the motor controller. Therefore, for scenarios where the motor controller processes signals including temperature values, short circuit diagnosis of the motor controller is performed by combining the absolute value of the voltage signal, the bias voltage, and the running time, improving the accuracy and reliability of short circuit diagnosis of the motor controller.
[0062] Meanwhile, this embodiment can also obtain the operating mode of the motor controller before determining that a short circuit fault has occurred in the motor controller if the absolute value of the first voltage signal is lower than the first target threshold and the bias voltage is lower than the second target threshold; determine the first target threshold and the second target threshold according to the operating mode, thereby dynamically adjusting the short circuit fault conditions for short circuit diagnosis according to the operating mode of the motor controller, further improving the accuracy of short circuit diagnosis of the motor controller.
[0063] In addition, this embodiment can also control the motor controller to stop output after determining that the absolute value of the first voltage signal is lower than the first target threshold and the bias voltage is lower than the second target threshold, thereby triggering the protection mechanism in time when the motor controller fails, and improving the safety of the motor controller.
[0064] Please see Figure 5 , Figure 5 A block diagram of a fault diagnosis device according to an embodiment of this application is shown. This fault diagnosis device 200 is applied to the aforementioned electronic device, and will be discussed below. Figure 5 The process is described in detail below. The fault diagnosis device 200 includes: a voltage signal acquisition module 210, a bias voltage acquisition module 220, and a short-circuit fault determination module 230, wherein: The voltage signal acquisition module 210 is used to acquire the voltage signal during the operation of the motor controller processing the target signal, and use it as the first voltage signal.
[0065] The bias voltage acquisition module 220 is used to acquire the bias voltage based on the first voltage signal.
[0066] The short-circuit fault determination module 230 is used to determine that the motor controller has a short-circuit fault if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold.
[0067] Furthermore, the target signal includes a signal for detecting the temperature of the motor controller, and the short-circuit fault determination module 230 may include: a temperature value acquisition unit, a voltage signal update unit, and a short-circuit fault determination first unit, wherein: The temperature value acquisition unit is used to acquire the temperature value corresponding to the signal detecting the temperature of the motor controller if it is determined that the absolute value of the voltage is lower than the first target threshold and the bias voltage is lower than the second target threshold.
[0068] The voltage signal update unit is used to obtain the updated first voltage signal and the updated bias voltage of the motor controller after the motor controller has been running for a preset time, if it is determined that the temperature value is within a preset range.
[0069] The short-circuit fault determination first unit is used to determine that the motor controller has a short-circuit fault if the absolute value of the updated first voltage signal is lower than the first target threshold and the updated bias voltage is lower than the second target threshold.
[0070] Furthermore, the fault diagnosis device 200 may further include: a second unit for determining short-circuit faults, wherein: The short-circuit fault determination second unit is used to determine that the motor controller has a short-circuit fault if the temperature value is determined to be outside the preset range.
[0071] Furthermore, the fault diagnosis device 200 may further include: a third unit for determining short-circuit faults, wherein: The third unit for determining short-circuit faults is used to determine that the motor controller has not experienced a short-circuit fault if the absolute value of the updated first voltage signal is not lower than the first target threshold, or the updated bias voltage is not lower than the second target threshold.
[0072] Further, before determining that a short-circuit fault has occurred in the motor controller if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold, the fault diagnosis device 200 may further include: an operating mode acquisition unit and a threshold determination unit, wherein: The operating mode acquisition unit is used to acquire the operating mode of the motor controller.
[0073] A threshold determination unit is used to determine the first target threshold and the second target threshold according to the working mode.
[0074] Furthermore, the operating mode is either an operational mode or a non-operational mode, and the threshold determination unit may include: a first threshold determination unit and a second threshold determination unit, wherein: The threshold determination first unit is configured to determine a first threshold as the first target threshold and a second threshold as the second target threshold if the working mode is the operating mode.
[0075] The threshold determination second unit is used to determine a third threshold as the first target threshold and a fourth threshold as the second target threshold if the working mode is the non-operating mode, wherein the third threshold is less than the first threshold and the fourth threshold is less than the second threshold.
[0076] Further, after determining that a short-circuit fault has occurred in the motor controller if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold, the fault diagnosis device 200 may further include: a protection unit, wherein: A protection unit is used to control the motor controller to stop outputting.
[0077] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0078] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0079] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0080] Please see Figure 6 This document illustrates a structural block diagram of an electronic device according to an embodiment of this application. The electronic device 100 can be a vehicle, in-vehicle terminal, server, computer, or other device with processing capabilities. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs. The one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110. The one or more programs are configured to perform the methods described in the foregoing method embodiments.
[0081] The processor 110 may include one or more processing cores. The processor 110 connects to various parts of the vehicle 100 via various interfaces and lines, and performs various functions and processes data of the vehicle 100 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by calling data stored in the memory 120. Optionally, the processor 110 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 110 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 110 and may be implemented separately through a communication chip.
[0082] The memory 120 may include random access memory (RAM) or read-only memory (ROM). The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).
[0083] In this embodiment, a computer-readable medium stores program code, which can be called by a processor to execute the methods described in the above method embodiments.
[0084] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media includes non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0085] In this application, "multiple" refers to two or more.
[0086] In this application, unless otherwise expressly defined, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0087] The terms “first,” “second,” “third,” “fourth,” etc., in this application (if present) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0088] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0089] Unless otherwise specified, all steps in this application may be performed sequentially or randomly. For example, if the method includes steps A and B, it means that the method may include steps A and B performed sequentially, or it may include steps B and A performed sequentially. For example, if the method may also include step C, it means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or it may include steps A, C, and B, or it may include steps C, A, and B, etc.
[0090] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A fault diagnosis method, characterized in that, The method includes: The voltage signal during the process of the motor controller processing the target signal is acquired and used as the first voltage signal. The bias voltage is obtained based on the first voltage signal; If it is determined that the absolute value of the first voltage signal is lower than the first target threshold and the bias voltage is lower than the second target threshold, then it is determined that the motor controller has a short circuit fault.
2. The method according to claim 1, characterized in that, The target signal includes a signal for detecting the temperature of the motor controller. The step of determining that the motor controller has a short-circuit fault if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold includes: If it is determined that the absolute value of the voltage is lower than the first target threshold and the bias voltage is lower than the second target threshold, then the temperature value corresponding to the signal for detecting the temperature of the motor controller is obtained; If the temperature value is determined to be within a preset range, then after the motor controller has been running for a preset period of time, the updated first voltage signal and the updated bias voltage corresponding to the motor controller are obtained. If it is determined that the absolute value of the updated first voltage signal is lower than the first target threshold, and the updated bias voltage is lower than the second target threshold, then it is determined that the motor controller has a short circuit fault.
3. The method according to claim 2, characterized in that, The method further includes: If the temperature value is determined to be outside the preset range, then the motor controller is determined to have a short circuit fault.
4. The method according to claim 2, characterized in that, The method further includes: If it is determined that the absolute value of the updated first voltage signal is not lower than the first target threshold, or the updated bias voltage is not lower than the second target threshold, then it is determined that the motor controller has not experienced a short circuit fault.
5. The method according to claim 1, characterized in that, Before determining that a short-circuit fault has occurred in the motor controller if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold, the method further includes: Obtain the operating mode of the motor controller; The first target threshold and the second target threshold are determined based on the operating mode.
6. The method according to claim 5, characterized in that, The operating mode is either an operational mode or a non-operational mode, and determining the first target threshold and the second target threshold based on the operating mode includes: If the working mode is the operation mode, then a first threshold is determined as the first target threshold, and a second threshold is determined as the second target threshold; or If the operating mode is the non-operating mode, then a third threshold is determined as the first target threshold, and a fourth threshold is determined as the second target threshold, wherein the third threshold is less than the first threshold, and the fourth threshold is less than the second threshold.
7. The method according to any one of claims 1-6, characterized in that, After determining that a short-circuit fault has occurred in the motor controller if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold, the method further includes: The motor controller is controlled to stop outputting.
8. A fault diagnosis device, characterized in that, The device includes: The voltage signal acquisition module is used to acquire the voltage signal during the operation of the motor controller processing the target signal, and use it as the first voltage signal. A bias voltage acquisition module is used to acquire a bias voltage based on the first voltage signal; The short-circuit fault determination module is used to determine that the motor controller has a short-circuit fault if the absolute value of the first voltage signal is lower than a first target threshold and the bias voltage is lower than a second target threshold.
9. An electronic device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-7.