Motor temperature detection method and device, electronic equipment and storage medium

By setting up two independent temperature detection circuits and a rotor temperature prediction model in the motor drive system, and using real-time operating parameters and weighting coefficients to calculate the motor temperature, the problem of temperature measurement deviation caused by sensor failure is solved, and the reliability and accuracy of motor temperature detection are achieved.

CN121664076APending Publication Date: 2026-03-13DONGFENG COMML VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-25
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing methods for measuring motor temperature are prone to deviations in temperature measurements when sensors, connectors, or wiring malfunction, leading to inaccurate motor temperature control.

Method used

The system employs two independent temperature detection circuits and a rotor temperature prediction model. It calculates the motor temperature based on real-time operating parameters and predicted rotor temperature, and uses weighted coefficients and temperature differences to identify abnormal temperatures, thereby improving detection accuracy.

Benefits of technology

By verifying the two independent temperature detection circuits and using the rotor temperature prediction model, the reliability and accuracy of motor temperature detection are improved, and measurement deviations caused by sensor failures are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121664076A_ABST
    Figure CN121664076A_ABST
Patent Text Reader

Abstract

The invention provides a motor temperature detection method and device, electronic equipment and a storage medium, and is applied to a motor driving system, the motor driving system comprises a first temperature detection circuit and a second temperature detection circuit which are independent, and the first temperature detection circuit and the second temperature detection circuit are both used for detecting the temperature of a motor stator; the method comprises the following steps: acquiring real-time operation parameters of a motor, and receiving a first detection temperature of a first temperature detection circuit and a second detection temperature of a second temperature detection circuit at the same moment; inputting the real-time operation parameters into a pre-constructed rotor temperature prediction model to obtain a predicted rotor temperature of the motor rotor; and when it is detected that no abnormal temperature exists in the first detection temperature and the second detection temperature, the motor temperature of the motor is calculated according to the first detection temperature, the second detection temperature and the predicted rotor temperature. The accuracy and reliability of motor temperature detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of motor control technology, and in particular to a method, device, electronic device and storage medium for detecting motor temperature. Background Technology

[0002] In the prior art, the measurement of motor rotor temperature mainly relies on installing a single temperature sensor on the motor stator and indirectly determining the rotor temperature by measuring the resistance of the circuit.

[0003] While existing measurement technologies are simple, they have the following problems: when sensors, connectors, or wiring malfunction, temperature measurements will deviate, leading to inaccurate motor temperature control.

[0004] Therefore, a new method for detecting motor temperature is urgently needed to solve the above problems. Summary of the Invention

[0005] In view of this, this application provides a method, apparatus, electronic device and storage medium for detecting motor temperature, which can improve the accuracy and reliability of motor temperature detection.

[0006] A first aspect of this application provides a motor temperature detection method applied to a motor drive system. The motor drive system includes two independent first temperature detection circuits and a second temperature detection circuit, both used to detect the temperature of the motor stator. The method includes: acquiring real-time operating parameters of the motor and receiving a first detected temperature from the first temperature detection circuit and a second detected temperature from the second temperature detection circuit at the same time; inputting the real-time operating parameters into a pre-built rotor temperature prediction model to obtain a predicted rotor temperature; detecting whether there is an abnormal temperature among the first and second detected temperatures; and if no abnormal temperature is detected among the first and second detected temperatures, calculating the motor temperature based on the first detected temperature, the second detected temperature, and the predicted rotor temperature.

[0007] In one possible implementation, detecting whether there is an abnormal temperature between the first detected temperature and the second detected temperature includes: calculating the temperature difference between the first detected temperature and the second detected temperature; detecting whether there is an abnormal temperature between the first detected temperature and the second detected temperature based on the relationship between the temperature difference and a preset temperature threshold; and calculating the motor temperature based on the first detected temperature, the second detected temperature, and the predicted rotor temperature when no abnormal temperature is detected between the first detected temperature and the second detected temperature includes: calculating the motor temperature based on the first detected temperature, the second detected temperature, and the predicted rotor temperature when the temperature difference is detected to be less than the preset temperature threshold.

[0008] In one possible implementation, when the detected temperature difference is greater than or equal to the preset temperature threshold, the method further includes: calculating a first temperature change rate of the first temperature detection circuit within a preset time period, a second temperature change rate of the second temperature detection circuit within the preset time period, and a predicted temperature change rate of the rotor temperature prediction model within the preset time period; calculating a first rate difference between the first temperature change rate and the predicted temperature change rate, and a second rate difference between the second temperature change rate and the predicted temperature change rate, respectively; determining an abnormal temperature between the first detected temperature and the second detected temperature based on the first rate difference, the second rate difference, and the preset rate threshold; and calculating the motor temperature based on the non-abnormal temperature between the first detected temperature and the second detected temperature, and the predicted rotor temperature.

[0009] In one possible implementation, determining the abnormal temperature between the first detected temperature and the second detected temperature based on the first rate of change difference, the second rate of change difference, and a preset rate of change threshold includes: determining the first detected temperature as the abnormal temperature when the first rate of change difference is greater than or equal to the preset rate of change threshold and the second rate of change difference is less than the preset rate of change threshold; calculating the motor temperature based on the non-abnormal temperature between the first detected temperature and the second detected temperature and the predicted rotor temperature includes: calculating the motor temperature according to the following formula: T = a·Tk + b·( (T2-Tk); where T is the motor temperature, Tk is the rotor temperature, T2 is the second detected temperature, and a and b are weighting coefficients; when the difference in the second rate of change is greater than or equal to the preset rate of change threshold and the difference in the first rate of change is less than the preset rate of change threshold, the second detected temperature is determined to be the abnormal temperature; the calculation of the motor temperature based on the non-abnormal temperature in the first detected temperature and the second detected temperature and the predicted rotor temperature includes: calculating the motor temperature according to the following formula: T=a·Tk+b·(T1-Tk); where T1 is the first detected temperature.

[0010] In one possible implementation, the method further includes: using the predicted rotor temperature as the motor temperature when the second rate of change difference is greater than or equal to the preset rate of change threshold and the first rate of change difference is greater than or equal to the preset rate of change threshold.

[0011] In one possible implementation, the real-time operating parameters include at least the motor's current, voltage, and speed.

[0012] In one possible implementation, calculating the motor temperature based on the first detected temperature, the second detected temperature, and the rotor temperature includes: calculating the motor temperature according to the following formula: T=a·Tk+ b·[(T1 + T2) / 2-Tk]; where T is the motor temperature, Tk is the rotor temperature, T1 is the first detected temperature, T2 is the second detected temperature, and a and b are weighting coefficients.

[0013] Secondly, embodiments of this application also provide a motor temperature detection device applied to a motor drive system. The motor drive system includes two independent first temperature detection circuits and second temperature detection circuits, both used to detect the temperature of the motor stator. The motor temperature detection device includes: an acquisition module, a receiving module, an input module, a detection module, and a calculation module. The acquisition module is used to acquire real-time operating parameters of the motor. The receiving module is used to receive a first detected temperature from the first temperature detection circuit and a second detected temperature from the second temperature detection circuit at the same time. The input module is used to input the real-time operating parameters into a pre-built rotor temperature prediction model to obtain a predicted rotor temperature of the motor rotor. The detection module is used to detect whether there is an abnormal temperature among the first and second detected temperatures. The calculation module is used to calculate the motor temperature based on the first detected temperature, the second detected temperature, and the predicted rotor temperature when the detection module detects that there is no abnormal temperature among the first and second detected temperatures.

[0014] Thirdly, embodiments of this application also provide an electronic device, the electronic device including a processor and a memory, the memory being used to store instructions, and the processor being used to call the instructions in the memory, causing the electronic device to execute the motor temperature detection method as described in the first aspect.

[0015] Fourthly, embodiments of this application also provide a computer-readable storage medium that stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the motor temperature detection method as described in the first aspect.

[0016] Compared with related technologies, the embodiments of this application have at least the following advantages: By setting up two independent first temperature detection circuits and second temperature detection circuits, the first detected temperature of the first temperature detection circuit and the second detected temperature of the second temperature detection circuit can be mutually verified. This allows for the determination of the operating environment of the motor drive system based on whether the first and second detected temperatures are abnormal, avoiding the situation where "temperature measurement values ​​deviate when sensors, connectors, or wiring malfunction, leading to inaccurate motor temperature control." When there is no abnormal temperature in either the first or second detected temperature, the motor temperature is calculated based on the first detected temperature, the second detected temperature, and the predicted rotor temperature, improving the reliability of the motor temperature calculation. Furthermore, the predicted rotor temperature is obtained through a pre-built rotor temperature prediction model, resulting in high accuracy in the predicted rotor temperature and thus improving the accuracy of the motor temperature calculated based on the predicted rotor temperature.

[0017] The technical effects achieved by the second, third, and fourth aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect, and will not be repeated here. Attached Figure Description

[0018] Figure 1 A flowchart illustrating the steps of a motor temperature detection method provided in an embodiment of this application; Figure 2 A flowchart illustrating another step of the motor temperature detection method provided in one embodiment of this application; Figure 3 This is a schematic diagram of the functional modules of a motor temperature detection device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0019] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0020] The following description sets forth many specific details to provide a full understanding of this application. The described embodiments are only some, not all, of the embodiments of this application.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application.

[0022] It should be further noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0023] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.

[0024] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0025] For ease of understanding, some concepts related to the embodiments of this application are illustrated and explained by way of example for reference.

[0026] Motor rotor and motor stator: The motor rotor and motor stator are the core components of a motor, working together as rotating and stationary parts, respectively. The motor stator consists of a stator core, stator windings, and a frame, used to generate a magnetic field and support the mechanical structure; the motor rotor consists of a rotor core, shaft, and bearings, generating torque and outputting mechanical power through electromagnetic induction. The air gap design between the two affects the motor's starting performance and heat dissipation efficiency.

[0027] A temperature sensor is a device that converts the physical quantity of temperature into a usable electrical signal. Its core principle is based on the temperature-sensitive physical properties of materials (such as the changes in resistance, voltage, volume, and frequency with temperature). According to the detection method, temperature sensors can be divided into two main categories: contact temperature sensors and non-contact temperature sensors.

[0028] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the steps of an embodiment of the motor temperature detection method of this application. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

[0029] It should be noted that the motor temperature detection method in this application embodiment is applied in a vehicle driving scenario, and its execution subject can be a motor temperature detection device. For example, during vehicle travel, the motor temperature can be detected by the motor temperature detection device. Of course, the motor temperature detection method can also be applied to other scenarios that require motor temperature detection, and this application does not specifically limit it.

[0030] It is worth noting that the motor temperature detection method in this embodiment is applied to a motor drive system. The motor drive system includes two independent first temperature detection circuits and second temperature detection circuits. Both the first temperature detection circuit and the second temperature detection circuit are used to detect the temperature of the motor stator.

[0031] Specifically, the first temperature detection circuit and the second temperature detection circuit transmit signals through two independent circuits, and both the first temperature detection circuit and the second temperature detection circuit are equipped with temperature sensors.

[0032] The specific process of this embodiment is as follows: Figure 1 As shown, it includes the following steps: S101, obtain the real-time operating parameters of the motor.

[0033] In some embodiments, the real-time operating parameters of the motor include at least the motor's current, voltage, and speed.

[0034] Specifically, real-time operating parameters of the motor are acquired through various sensors connected to the motor. These sensors include any one or more of the following: temperature sensor, tachometer, ammeter, voltmeter, and torque sensor.

[0035] It is understandable that real-time data of the motor during operation is collected by different sensors connected to the motor, thereby providing reliable and effective data for the rotor temperature prediction model.

[0036] S102, receiving the first detected temperature from the first temperature detection circuit and the second detected temperature from the second temperature detection circuit at the same time.

[0037] Specifically, while acquiring real-time operating parameters, the first detection temperature and the second detection temperature are obtained based on the temperature sensors set on the first temperature detection circuit and the second temperature detection circuit.

[0038] S103 inputs the real-time operating parameters into the pre-built rotor temperature prediction model to obtain the predicted rotor temperature of the motor rotor.

[0039] In some embodiments, the rotor temperature prediction model is constructed by: inputting preprocessed historical operating parameters of the motor into an initial temperature prediction model for training to obtain an initial prediction result; determining the total loss based on the initial prediction result and the actual temperature; and optimizing the initial temperature prediction model based on the total loss to obtain a temperature prediction model. Specifically, the initial temperature prediction model is built based on a GRU (Gated Recurrent Unit) network. The GRU network addresses the vanishing and exploding gradient problems by introducing gates. GRU has only two gates (reset gate and update gate) and no memory unit. The reset gate controls the retention rate of historical information, while the update gate controls the input of current information. Through the control of these two gates, GRU can selectively retain or forget historical information, thereby better capturing long-term dependencies.

[0040] S104, detect whether there is an abnormal temperature between the first detection temperature and the second detection temperature. If no abnormal temperature is detected between the first detection temperature and the second detection temperature, calculate the motor temperature based on the first detection temperature, the second detection temperature and the predicted rotor temperature.

[0041] In some embodiments, detecting whether there is an abnormal temperature between the first detection temperature and the second detection temperature includes: calculating the temperature difference between the first detection temperature and the second detection temperature; detecting whether there is an abnormal temperature between the first detection temperature and the second detection temperature based on the relationship between the temperature difference and a preset temperature threshold; and calculating the motor temperature of the motor based on the first detection temperature, the second detection temperature, and the predicted rotor temperature when no abnormal temperature is detected, including: calculating the motor temperature based on the first detection temperature, the second detection temperature, and the predicted rotor temperature when the temperature difference is detected to be less than the preset temperature threshold.

[0042] In some embodiments, the size of the preset temperature threshold is not specifically limited, and can be set according to the actual situation.

[0043] In some embodiments, calculating the motor temperature based on the first detection temperature, the second detection temperature, and the rotor temperature includes: calculating the motor temperature according to the following formula: T=a·Tk + b·[(T1 + T2) / 2-Tk]; where T is the motor temperature, Tk is the rotor temperature, T1 is the first detection temperature, T2 is the second detection temperature, and a and b are weighting coefficients.

[0044] In some embodiments, the weighting coefficients a and b can be determined by fitting actual operating data of the motor and optimizing using machine learning methods.

[0045] It is worth noting that by using weighted coefficients (a and b) based on actual data fitting and machine learning, the final motor temperature is more accurate and adaptable to temperature changes under different operating conditions.

[0046] The calculation of motor temperature in the event of abnormal temperatures in the first and second detection temperatures is described in detail in subsequent embodiments, and will not be repeated here to avoid repetition.

[0047] Compared with related technologies, the embodiments of this application have at least the following advantages: By setting up two independent first temperature detection circuits and second temperature detection circuits, the first detected temperature of the first temperature detection circuit and the second detected temperature of the second temperature detection circuit can be mutually verified. This allows for the determination of the operating environment of the motor drive system based on whether the first and second detected temperatures are abnormal, avoiding the situation where "temperature measurement values ​​deviate when sensors, connectors, or wiring malfunction, leading to inaccurate motor temperature control." When there is no abnormal temperature in either the first or second detected temperature, the motor temperature is calculated based on the first detected temperature, the second detected temperature, and the predicted rotor temperature, improving the reliability of the motor temperature calculation. Furthermore, the predicted rotor temperature is obtained through a pre-built rotor temperature prediction model, resulting in high accuracy in the predicted rotor temperature and thus improving the accuracy of the motor temperature calculated based on the predicted rotor temperature.

[0048] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the steps of one embodiment of the motor temperature detection method of this application. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted. This motor temperature detection method can be applied to the aforementioned motor temperature detection device, but is not limited thereto, and the embodiments of this application do not limit it in this regard.

[0049] This embodiment is a detailed description of the foregoing embodiment, mainly illustrating how to calculate the motor temperature when there is an abnormal temperature between the first and second detection temperatures. This method can further improve the reliability of motor temperature detection.

[0050] The specific process of this embodiment is as follows: Figure 2 As shown, it includes the following steps: S201, obtain the real-time operating parameters of the motor.

[0051] S202, receiving the first detected temperature from the first temperature detection circuit and the second detected temperature from the second temperature detection circuit at the same time.

[0052] S203 inputs real-time operating parameters into a pre-built rotor temperature prediction model to obtain the predicted rotor temperature of the motor rotor.

[0053] S204, detect whether there is an abnormal temperature between the first detection temperature and the second detection temperature. If no abnormal temperature is detected between the first detection temperature and the second detection temperature, proceed to S205; otherwise, proceed to S206.

[0054] S205 calculates the motor temperature based on the first detected temperature, the second detected temperature, and the predicted rotor temperature.

[0055] S201 to S205 of this embodiment are similar to S101 to S104 of the previous embodiment. To avoid repetition, they will not be described again here.

[0056] S206, calculate the first temperature change rate of the first temperature detection circuit within a preset time period, the second temperature change rate of the second temperature detection circuit within a preset time period, and the predicted temperature change rate of the rotor temperature prediction model within a preset time period.

[0057] In some embodiments, the preset duration is not specifically limited and can be set according to actual needs.

[0058] It is worth noting that by performing short-time temperature trend analysis on the first temperature detection circuit, the second temperature detection circuit, and the rotor temperature prediction model, abnormal temperature sensors in the first and second temperature detection circuits can be quickly and accurately identified, thereby further improving the reliability of the motor temperature calculated subsequently.

[0059] S207, calculate the difference between the first rate of change of the first temperature change and the predicted rate of change of the first temperature change, and the difference between the second rate of change of the second temperature change and the predicted rate of change of the second temperature change.

[0060] S208, determine the abnormal temperature in the first detection temperature and the second detection temperature based on the first change rate difference, the second change rate difference, and the preset change rate threshold.

[0061] S209, calculate the motor temperature based on the non-abnormal temperature in the first and second detection temperatures and the predicted rotor temperature.

[0062] Regarding S208 and S209, specifically, if the first rate of change difference is greater than or equal to a preset rate of change threshold and the second rate of change difference is less than a preset rate of change threshold, the first detected temperature is determined to be an abnormal temperature; the motor temperature is calculated based on the non-abnormal temperature among the first and second detected temperatures and the predicted rotor temperature, including: calculating the motor temperature according to the following formula: T = a·Tk + b·(T2-Tk); where T is the motor temperature, Tk is the rotor temperature, T2 is the second detection temperature, and a and b are weighting coefficients.

[0063] If the second rate of change difference is greater than or equal to a preset rate of change threshold, and the first rate of change difference is less than the preset rate of change threshold, the second detected temperature is determined to be an abnormal temperature. The motor temperature is calculated based on the non-abnormal temperature from the first and second detected temperatures and the predicted rotor temperature, including: calculating the motor temperature according to the following formula: T = a·Tk + b·(T1-Tk); where T1 is the first detection temperature.

[0064] In some embodiments, the preset rate of change threshold is not specifically limited and can be set according to actual needs.

[0065] In some embodiments, if the second rate of change difference is greater than or equal to a preset rate of change threshold and the first rate of change difference is greater than or equal to a preset rate of change threshold, the predicted rotor temperature is used as the motor temperature.

[0066] Compared with related technologies, the embodiments of this application have at least the following advantages: By setting up two independent first temperature detection circuits and second temperature detection circuits, the first detected temperature of the first temperature detection circuit and the second detected temperature of the second temperature detection circuit can be mutually verified. This allows for the determination of the operating environment of the motor drive system based on whether the first and second detected temperatures are abnormal, avoiding the situation where "temperature measurement values ​​deviate when sensors, connectors, or wiring malfunction, leading to inaccurate motor temperature control." When there is no abnormal temperature in either the first or second detected temperature, the motor temperature is calculated based on the first detected temperature, the second detected temperature, and the predicted rotor temperature, improving the reliability of the motor temperature calculation. Furthermore, the predicted rotor temperature is obtained through a pre-built rotor temperature prediction model, resulting in high accuracy in the predicted rotor temperature and thus improving the accuracy of the motor temperature calculated based on the predicted rotor temperature.

[0067] Based on the same idea as the motor temperature detection method in the above embodiments, this application also provides a motor temperature detection device, which can be used to perform the above motor temperature detection method. For ease of explanation, the structural schematic diagram of the motor temperature detection device embodiment only shows the parts related to the embodiments of this application. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0068] The motor temperature detection device is applied to a motor drive system, which includes two independent temperature detection circuits: a first temperature detection circuit and a second temperature detection circuit. Both the first and second temperature detection circuits are used to detect the temperature of the motor stator. Figure 3As shown, the motor temperature detection device 30 includes an acquisition module 301, a receiving module 302, an input module 303, a detection module 304, and a calculation module 305. In some embodiments, the above modules can be programmable software instructions stored in memory and executable by a processor. It is understood that in other embodiments, the above modules can also be program instructions or firmware embedded in the processor.

[0069] The acquisition module 301 is used to acquire the real-time operating parameters of the motor; The receiving module 302 is used to receive the first detected temperature of the first temperature detection circuit and the second detected temperature of the second temperature detection circuit at the same time. Input module 303 is used to input the real-time operating parameters into a pre-built rotor temperature prediction model to obtain the predicted rotor temperature of the motor rotor; Detection module 304 is used to detect whether there is an abnormal temperature between the first detection temperature and the second detection temperature; The calculation module 305 is used to calculate the motor temperature of the motor based on the first detection temperature, the second detection temperature, and the predicted rotor temperature when the detection module 304 detects that there is no abnormal temperature among the first detection temperature and the second detection temperature.

[0070] The motor temperature detection device 30 provided in the above embodiments can realize the technical solutions described in the above motor temperature detection method embodiments. The specific implementation principles of each module or unit can be found in the corresponding content in the above motor temperature detection method embodiments, and will not be repeated here.

[0071] Please refer to Figure 4 , Figure 4 This is a schematic diagram of an embodiment of the electronic device of this application. In this embodiment of the invention, the electronic device 400 includes a processor 601, a memory 402, and a display 403. Figure 4 Only some components of the electronic device 400 are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.

[0072] In some embodiments, processor 401 may be a central processing unit (CPU), microprocessor, or other data processing chip, used to run program code stored in memory 402 or process data, such as the motor temperature detection method of the present invention.

[0073] In some embodiments, processor 401 may be a single server or a group of servers. The server group may be centralized or distributed. In some embodiments, processor 401 may be local or remote. In some embodiments, processor 401 may be implemented on a cloud platform. In one embodiment, the cloud platform may include a private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, intranet, multi-cloud, etc., or any combination thereof.

[0074] In some embodiments, memory 402 may be an internal storage unit of electronic device 400, such as a hard disk or memory of electronic device 400. In other embodiments, memory 402 may also be an external storage device of electronic device 400, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on electronic device 400.

[0075] Furthermore, the memory 402 may include both internal storage units of the electronic device 400 and external storage devices. The memory 402 is used to store application software and various types of data installed on the electronic device 400.

[0076] In some embodiments, display 403 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 403 is used to display information from electronic device 400 and to display visual user applications. Components 401-403 of electronic device 400 communicate with each other via a system bus.

[0077] In one embodiment, when the processor 401 executes the motor temperature detection program in the memory 402, the following steps can be implemented: The system acquires the real-time operating parameters of the motor and receives the first detected temperature from the first temperature detection circuit and the second detected temperature from the second temperature detection circuit at the same time. The real-time operating parameters are input into a pre-built rotor temperature prediction model to obtain the predicted rotor temperature of the motor rotor. Detect whether there is an abnormal temperature between the first detection temperature and the second detection temperature; If no abnormal temperature is detected in either the first detected temperature or the second detected temperature, the motor temperature is calculated based on the first detected temperature, the second detected temperature, and the predicted rotor temperature.

[0078] It should be understood that when the processor 401 executes the motor temperature detection program in the memory 402, in addition to the functions mentioned above, it can also perform other functions, as detailed in the description of the corresponding method embodiments above.

[0079] Furthermore, this embodiment of the invention does not specifically limit the type of electronic device 400 mentioned. Electronic device 400 can be a mobile phone, tablet computer, personal digital assistant (PDA), wearable device, laptop computer, or other portable electronic device. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices running iOS, Android, Microsoft, or other operating systems. The aforementioned portable electronic device can also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the invention, electronic device 400 may not be a portable electronic device, but rather a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0080] Furthermore, in this embodiment of the invention, the type of electronic device 400 mentioned is preferably an automotive electronic control unit (ECU) or a vehicle controller (VCU). This embodiment does not specifically limit the type of electronic device 400, and it can be set according to actual needs.

[0081] Accordingly, this application also provides a computer-readable storage medium for storing a computer-readable program or instruction. When the program or instruction is executed by a processor, it can implement the steps or functions of the motor temperature detection method provided in the above-described method embodiments.

[0082] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.), and the computer program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.

[0083] The above provides a detailed description of the motor temperature detection method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for detecting motor temperature, characterized in that, Applied to a motor drive system, the motor drive system includes two independent first temperature detection circuits and second temperature detection circuits, both of which are used to detect the temperature of the motor stator. The method includes: The system acquires the real-time operating parameters of the motor and receives the first detected temperature from the first temperature detection circuit and the second detected temperature from the second temperature detection circuit at the same time. The real-time operating parameters are input into a pre-built rotor temperature prediction model to obtain the predicted rotor temperature of the motor rotor. Detect whether there is an abnormal temperature between the first detection temperature and the second detection temperature; If no abnormal temperature is detected in either the first detected temperature or the second detected temperature, the motor temperature is calculated based on the first detected temperature, the second detected temperature, and the predicted rotor temperature.

2. The motor temperature detection method according to claim 1, characterized in that, The detection of whether there is an abnormal temperature between the first detection temperature and the second detection temperature includes: Calculate the temperature difference between the first detection temperature and the second detection temperature; Based on the relationship between the temperature difference and the preset temperature threshold, detect whether there is an abnormal temperature between the first detection temperature and the second detection temperature; The step of calculating the motor temperature based on the first detected temperature, the second detected temperature, and the predicted rotor temperature when no abnormal temperature is detected between the first detected temperature and the second detected temperature includes: If the detected temperature difference is less than the preset temperature threshold, the motor temperature is calculated based on the first detected temperature, the second detected temperature, and the predicted rotor temperature.

3. The motor temperature detection method according to claim 2, characterized in that, If the detected temperature difference is greater than or equal to the preset temperature threshold, the method further includes: Calculate the first temperature change rate of the first temperature detection circuit within a preset time period, the second temperature change rate of the second temperature detection circuit within the preset time period, and the predicted temperature change rate of the rotor temperature prediction model within the preset time period. Calculate the first difference between the first temperature change rate and the predicted temperature change rate, and the second difference between the second temperature change rate and the predicted temperature change rate, respectively. The abnormal temperature in the first detection temperature and the second detection temperature is determined based on the first change rate difference, the second change rate difference, and the preset change rate threshold. The motor temperature is calculated based on the non-abnormal temperature from the first and second detected temperatures, as well as the predicted rotor temperature.

4. The motor temperature detection method according to claim 3, characterized in that, The step of determining the abnormal temperature in the first detection temperature and the second detection temperature based on the first rate of change difference, the second rate of change difference, and a preset rate of change threshold includes: If the first rate of change difference is greater than or equal to the preset rate of change threshold, and the second rate of change difference is less than the preset rate of change threshold, the first detected temperature is determined to be the abnormal temperature. The step of calculating the motor temperature based on the non-abnormal temperature from the first and second detected temperatures and the predicted rotor temperature includes: The motor temperature is calculated using the following formula: T = a·Tk + b·(T2-Tk); where T is the motor temperature, Tk is the rotor temperature, T2 is the second detection temperature, and a and b are weighting coefficients; If the second rate of change difference is greater than or equal to the preset rate of change threshold and the first rate of change difference is less than the preset rate of change threshold, the second detected temperature is determined to be the abnormal temperature. The step of calculating the motor temperature based on the non-abnormal temperature from the first and second detected temperatures and the predicted rotor temperature includes: The motor temperature is calculated using the following formula: T = a·Tk + b·(T1-Tk); where T1 is the first detection temperature.

5. The motor temperature detection method according to claim 4, characterized in that, The method further includes: If the second rate of change difference is greater than or equal to the preset rate of change threshold, and the first rate of change difference is greater than or equal to the preset rate of change threshold, the predicted rotor temperature is taken as the motor temperature.

6. The motor temperature detection method according to claim 1, characterized in that, The real-time operating parameters include at least the motor's current, voltage, and speed.

7. The motor temperature detection method according to claim 1, characterized in that, The step of calculating the motor temperature based on the first detected temperature, the second detected temperature, and the rotor temperature includes: The motor temperature is calculated using the following formula: T = a·Tk + b·[(T1 + T2) / 2-Tk]; where T is the motor temperature, Tk is the rotor temperature, T1 is the first detection temperature, T2 is the second detection temperature, and a and b are weighting coefficients.

8. A motor temperature detection device, characterized in that, Applied to a motor drive system, the motor drive system includes two independent first temperature detection circuits and second temperature detection circuits, both of which are used to detect the temperature of the motor stator. The motor temperature detection device includes: an acquisition module, a receiving module, an input module, a detection module, and a calculation module; The acquisition module is used to acquire the real-time operating parameters of the motor; The receiving module is used to receive the first detected temperature of the first temperature detection circuit and the second detected temperature of the second temperature detection circuit at the same time. The input module is used to input the real-time operating parameters into a pre-built rotor temperature prediction model to obtain the predicted rotor temperature of the motor rotor. The detection module is used to detect whether there is an abnormal temperature between the first detection temperature and the second detection temperature; The calculation module is used to calculate the motor temperature of the motor based on the first detection temperature, the second detection temperature, and the predicted rotor temperature when the detection module detects that there is no abnormal temperature among the first detection temperature and the second detection temperature.

9. An electronic device, the electronic device comprising a processor and a memory, characterized in that, The memory is used to store instructions, and the processor is used to call the instructions in the memory to cause the electronic device to execute the motor temperature detection method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the motor temperature detection method as described in any one of claims 1 to 7.