Fault detection method and device of motor controller, motor controller and medium

By calculating the difference between the control board temperature and the ambient temperature of the motor controller, the problem of being unable to detect the control board temperature sampling loop failure in the motor controller hardware design is solved, the detection accuracy is improved, and the normal operation of the motor controller is ensured.

CN118534868APending Publication Date: 2024-08-23BEIJING ELECTRIC VEHICLE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410250338.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing motor controller hardware design cannot effectively detect faults in the temperature sampling loop of the control board, resulting in insufficient detection accuracy.

Method used

By obtaining the difference between the control board temperature and the ambient temperature, and making a determination based on the absolute value of the difference and the temperature range, if the difference is greater than the preset threshold or the temperature is not within the preset range, fault detection is performed to determine the fault status of the motor controller. .

Benefits of technology

It improves the fault detection accuracy of the motor controller, ensures effective detection of the temperature sampling circuit of the control board, and reduces the fault rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534868A
    Figure CN118534868A
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, in particular to a fault detection method and device for a motor controller, the motor controller and a medium, and the method comprises the steps: obtaining the control panel temperature of a control panel temperature sampling loop and the environment temperature of an environment temperature sampling loop, and calculating the difference value between the control panel temperature and the environment temperature, if the absolute value of the difference value is larger than a preset verification threshold value, or the control panel temperature or the environment temperature is not in a preset temperature interval, fault detection is conducted on the motor controller according to the control panel temperature and the environment temperature, and a fault detection result of the motor controller is obtained. Therefore, the problem that fault detection cannot be carried out on a control panel temperature sampling loop through hardware design of a motor controller in the related technology is solved, and the obtained temperature interval where the control panel temperature or the environment temperature is located and the absolute value of the difference value of the control panel temperature or the environment temperature are judged; and a loop fault detection result of the control panel is obtained, so that the detection precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a motor controller fault detection method, device, motor controller and medium. Background Art

[0002] As a core performance indicator with market competitiveness in motor controller products, the motor controller has development trends such as high power density, high integration, safety and high voltage. Among them, high power density is one of the future technical development directions of motor controllers. Thermal conductivity is an important characteristic of motor controllers, and the failure rate of motor controllers will increase with the increase of operating temperature. Therefore, temperature detection of the motor controller control board is very necessary.

[0003] In the related art, NTC (Negative Temperature Coefficient) thermistors are usually used to detect the temperature information of the control board so that the motor controller can monitor the working status of the control board, thereby ensuring that the temperature of the control board remains within a normal working range.

[0004] However, the resistance of the thermistor in the related art will vary greatly with the temperature of the control board. Therefore, it is impossible to perform fault detection on the sampling circuit of the control board temperature in the hardware design of the motor controller, which urgently needs to be solved. Summary of the invention

[0005] The present application provides a motor controller fault detection method, device, motor controller and medium to solve the problem that the hardware design of the motor controller in the related art cannot perform fault detection on the control board temperature sampling circuit.

[0006] The first aspect of the present application provides a motor controller fault detection method, device, motor controller and medium, wherein the motor controller includes a control board temperature sampling loop and an ambient temperature sampling loop, and includes the following steps:

[0007] Acquire the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop;

[0008] Calculating the difference between the control panel temperature and the ambient temperature, and determining whether the control panel temperature or the ambient temperature is not within a preset temperature range; and

[0009] If the absolute value of the difference is greater than a preset verification threshold, or the control board temperature or the ambient temperature is not within the preset temperature range, a fault detection is performed on the motor controller based on the control board temperature and the ambient temperature to obtain a fault detection result of the motor controller.

[0010] According to one embodiment of the present invention, the acquiring the control board temperature of the control board temperature sampling circuit and the ambient temperature of the ambient temperature sampling circuit comprises:

[0011] Acquire a first sampling signal of the control board temperature sampling loop and a second sampling signal of the ambient temperature sampling loop;

[0012] The first sampling signal and the second sampling signal are filtered respectively to obtain the control board temperature and the ambient temperature.

[0013] According to one embodiment of the present invention, the step of acquiring the first sampling signal of the control board temperature sampling loop and the second sampling signal of the ambient temperature sampling loop includes:

[0014] Collecting a first voltage value corresponding to the control board temperature sampling circuit and a second voltage value corresponding to the ambient temperature sampling circuit;

[0015] Based on the mapping relationship between the first voltage value and the control board temperature signal, the first voltage value is converted into a temperature signal to obtain the first sampling signal, and based on the mapping relationship between the second voltage value and the ambient temperature signal, the second voltage value is converted into a temperature signal to obtain the second sampling signal.

[0016] According to an embodiment of the present invention, the determining whether the control panel temperature or the ambient temperature is within a preset temperature range includes:

[0017] Determine whether the control panel temperature or the ambient temperature is greater than an upper limit of the preset temperature range, or whether the control panel temperature or the ambient temperature is less than a lower limit of the preset temperature range;

[0018] When the control board temperature or the ambient temperature is greater than the upper limit value, or when the control board temperature or the ambient temperature is less than the lower limit value, it is determined that the control board temperature or the ambient temperature is not within the preset temperature range.

[0019] According to one embodiment of the present invention, after calculating the difference between the control board temperature and the ambient temperature and determining whether the control board temperature or the ambient temperature is within the preset temperature range, the method further includes:

[0020] If the absolute value of the difference is less than or equal to the preset verification threshold, and the control board temperature and the ambient temperature are both within the preset temperature range, it is determined that the motor controller does not meet the fault detection condition.

[0021] According to the fault detection method of the motor controller of the embodiment of the present application, the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop are obtained, and the difference between the control board temperature and the ambient temperature is calculated. If the absolute value of the difference is greater than the preset verification threshold, or the control board temperature or the ambient temperature is not in the preset temperature range, the motor controller is fault-detected according to the control board temperature and the ambient temperature to obtain the fault detection result of the motor controller. Thus, the problem that the hardware design of the motor controller in the related art cannot perform fault detection on the control board temperature sampling loop is solved. By determining the temperature range in which the acquired control board temperature or ambient temperature is located and the absolute value of the difference between the control board temperature or ambient temperature, the circuit fault detection result of the control board is obtained, thereby improving the detection accuracy.

[0022] A second aspect of the present application provides a fault detection device for a motor controller, wherein the motor controller includes a control board temperature sampling circuit and an ambient temperature sampling circuit, including:

[0023] An acquisition module, used for acquiring the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop;

[0024] a judgment module, used for calculating the difference between the control panel temperature and the ambient temperature, and judging whether the control panel temperature or the ambient temperature is not within a preset temperature range; and

[0025] A detection module is used to perform fault detection on the motor controller according to the control board temperature and the ambient temperature to obtain a fault detection result of the motor controller if the absolute value of the difference is greater than a preset verification threshold, or the control board temperature or the ambient temperature is not within the preset temperature range.

[0026] According to an embodiment of the present invention, the acquisition module is specifically used to:

[0027] Acquire a first sampling signal of the control board temperature sampling loop and a second sampling signal of the ambient temperature sampling loop;

[0028] The first sampling signal and the second sampling signal are filtered respectively to obtain the control board temperature and the ambient temperature.

[0029] According to an embodiment of the present invention, the acquisition module is specifically used to:

[0030] Collecting a first voltage value corresponding to the control board temperature sampling circuit and a second voltage value corresponding to the ambient temperature sampling circuit;

[0031] Based on the mapping relationship between the first voltage value and the control board temperature signal, the first voltage value is converted into a temperature signal to obtain the first sampling signal, and based on the mapping relationship between the second voltage value and the ambient temperature signal, the second voltage value is converted into a temperature signal to obtain the second sampling signal.

[0032] According to an embodiment of the present invention, the judgment module is specifically used to:

[0033] Determine whether the control panel temperature or the ambient temperature is greater than an upper limit of the preset temperature range, or whether the control panel temperature or the ambient temperature is less than a lower limit of the preset temperature range;

[0034] When the control board temperature or the ambient temperature is greater than the upper limit value, or when the control board temperature or the ambient temperature is less than the lower limit value, it is determined that the control board temperature or the ambient temperature is not within the preset temperature range.

[0035] According to one embodiment of the present invention, after calculating the difference between the control board temperature and the ambient temperature and determining whether the control board temperature or the ambient temperature is within the preset temperature range, the determination module is further configured to:

[0036] If the absolute value of the difference is less than or equal to the preset verification threshold, and the control board temperature and the ambient temperature are both within the preset temperature range, it is determined that the motor controller does not meet the fault detection condition.

[0037] According to the fault detection device of the motor controller of the embodiment of the present application, the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop are obtained, and the difference between the control board temperature and the ambient temperature is calculated. If the absolute value of the difference is greater than the preset verification threshold, or the control board temperature or the ambient temperature is not in the preset temperature range, the motor controller is fault-detected according to the control board temperature and the ambient temperature to obtain the fault detection result of the motor controller. Thus, the problem that the hardware design of the motor controller in the related art cannot perform fault detection on the control board temperature sampling loop is solved. By determining the temperature range in which the acquired control board temperature or ambient temperature is located and the absolute value of the difference between the control board temperature or ambient temperature, the circuit fault detection result of the control board is obtained, thereby improving the detection accuracy.

[0038] A third aspect of the present application provides a motor controller, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the fault detection method of the motor controller as described in the above embodiment.

[0039] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the fault detection method for the motor controller as described in the above embodiment.

[0040] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0042] Figure 1 A flowchart of a fault detection method for a motor controller provided according to an embodiment of the present application;

[0043] Figure 2 A schematic diagram of a control board temperature sampling circuit fault detection circuit structure according to an embodiment of the present application;

[0044] Figure 3 A flow chart of a control panel temperature sampling circuit fault processing according to an embodiment of the present application;

[0045] Figure 4 is a block diagram of a fault detection device for a motor controller according to an embodiment of the present application;

[0046] Figure 5 Schematic diagram of the structure of a motor controller according to an embodiment of the present application. DETAILED DESCRIPTION

[0047] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0048] The following describes the fault detection method, device, motor controller and medium of the motor controller of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the hardware design of the motor controller in the related art mentioned in the above background technology cannot perform fault detection on the control board temperature sampling loop, the present application provides a fault detection method for the motor controller, in which the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop are obtained, and the difference between the control board temperature and the ambient temperature is calculated. If the absolute value of the difference is greater than the preset verification threshold, or the control board temperature or the ambient temperature is not in the preset temperature range, the motor controller is fault detected according to the control board temperature and the ambient temperature to obtain the fault detection result of the motor controller. Thus, the problem that the hardware design of the motor controller in the related art cannot perform fault detection on the control board temperature sampling loop is solved. By determining the temperature range in which the acquired control board temperature or ambient temperature is located and the absolute value of the difference between the control board temperature or ambient temperature, the circuit fault detection result of the control board is obtained, thereby improving the detection accuracy.

[0049] As the control center of the drive motor system, the motor controller is mainly composed of a control module, a drive module, a power module, a sensor, and a cooling fan. At present, the motor controller shows a development trend of high power density, high integration, safety, and high voltage. Among them, high power density is one of the future technical development directions of the motor controller, and it is also the core performance indicator of the market competitiveness of motor controller products. The control board of the motor controller supports the functions of all drive devices, control devices, and power devices and provides circuit connection pressure. If the temperature at one end of the control board is higher, the energy will be transferred to the lower temperature end. When high-speed particles collide with low-speed particles, net energy will be transferred with the low-speed particles, which reflects the thermal conductivity of the control board.

[0050] It is important to understand that all types of devices will generate heat during operation, and the failure rate of the controller will increase exponentially with the increase in operating temperature. Under normal circumstances, an increase in temperature will reduce the resistance value, and an increase in junction temperature will rapidly increase the current amplification factor of the transistor, leading to an increase in collector current, which will further increase the junction temperature, ultimately causing the component failure temperature to be too high, which can easily cause problems such as thickening of the IMC (Inter Metallic Compound) of the solder joint alloy, brittle solder joints, and reduced mechanical strength.

[0051] Therefore, it is very necessary to detect the temperature of the control board of the motor controller. The fault detection of the sampling circuit of the control board temperature is discussed in detail below according to specific embodiments.

[0052] Specifically, Figure 1 A schematic flow chart of a fault detection method for a motor controller provided in an embodiment of the present application.

[0053] like Figure 1 As shown, the motor controller includes a control board temperature sampling loop and an ambient temperature sampling loop, and the fault detection method of the motor controller includes the following steps:

[0054] In step S101, the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop are acquired.

[0055] According to one embodiment of the present invention, obtaining the control board temperature of a control board temperature sampling loop and the ambient temperature of an ambient temperature sampling loop includes: obtaining a first sampling signal of the control board temperature sampling loop and a second sampling signal of the ambient temperature sampling loop; filtering the first sampling signal and the second sampling signal respectively to obtain the control board temperature and the ambient temperature.

[0056] According to one embodiment of the present invention, obtaining a first sampling signal of a control board temperature sampling loop and a second sampling signal of an ambient temperature sampling loop includes: acquiring a first voltage value corresponding to the control board temperature sampling loop and a second voltage value corresponding to the ambient temperature sampling loop; based on a mapping relationship between the first voltage value and the control board temperature signal, converting the first voltage value into a temperature signal to obtain a first sampling signal; and based on a mapping relationship between the second voltage value and the ambient temperature signal, converting the second voltage value into a temperature signal to obtain a second sampling signal.

[0057] Specifically, in order to solve the problem that the sampling circuit of the control board temperature cannot be fault-detected in the hardware design of the motor controller, the embodiment of the present application needs to first build a fault detection circuit of the control board temperature sampling circuit, such as Figure 2 As shown, first, a control board temperature sampling circuit, that is, a control board temperature detection circuit, is arranged at the position where the control board has the highest heat, and an ambient temperature sampling circuit, that is, an ambient temperature detection circuit, is arranged at the position where the control board has the lowest heat, wherein the temperature detection circuit consists of a voltage acquisition circuit and a low-pass filter circuit.

[0058] Secondly, in the voltage acquisition circuit, one end of the NTC thermistor R0 is connected to one end of the resistor R1, the other end of the resistor R1 is connected to the reference power supply, the other end of the NTC thermistor R0 is grounded, and its rear end is connected to a low-pass filter circuit. The low-pass filter circuit is composed of a filter resistor R2 and a capacitor C1 connected to the NTC thermistor R0, that is, the rear end of the NTC thermistor R0 is connected to one end of the filter resistor R2, the other end of the filter resistor R2 is connected to one end of the capacitor C1, and the other end of the capacitor C1 is grounded.

[0059] Therefore, the fault detection circuit of the control board temperature sampling loop can provide detection conditions for fault detection of the control board.

[0060] Furthermore, the embodiment of the present application performs fault detection on the motor controller based on the fault detection circuit of the control board temperature sampling loop.

[0061] Specifically, in the embodiment of the present application, firstly, a first voltage value corresponding to the temperature sampling circuit of the control board and a second voltage value corresponding to the ambient temperature sampling circuit are collected, so as to detect the temperature sampling circuit of the control board based on the first voltage value and to detect the ambient temperature sampling circuit based on the second voltage value; secondly, the first voltage value and the second voltage value are respectively converted into a temperature correspondence relationship, that is, based on the mapping relationship between the first voltage value and the temperature signal of the control board, the first voltage value is converted into a temperature signal to obtain a first sampling signal V b , and based on the mapping relationship between the second voltage value and the ambient temperature signal, the second voltage value is converted into a temperature signal to obtain a second sampling signal V e Finally, the first sampling signal and the second sampling signal are filtered to obtain the control board temperature T b and ambient temperature T e .

[0062] In step S102, the difference between the control board temperature and the ambient temperature is calculated, and it is determined whether the control board temperature or the ambient temperature is not within a preset temperature range.

[0063] According to one embodiment of the present invention, determining whether the control board temperature or the ambient temperature is within a preset temperature range includes: determining whether the control board temperature or the ambient temperature is greater than an upper limit value of the preset temperature range, or whether the control board temperature or the ambient temperature is less than a lower limit value of the preset temperature range; when the control board temperature or the ambient temperature is greater than the upper limit value, or the control board temperature or the ambient temperature is less than the lower limit value, determining that the control board temperature or the ambient temperature is not within the preset temperature range.

[0064] Among them, the preset temperature range can be a temperature range set by technical personnel in this field according to actual detection requirements, or a temperature range set after a limited number of calculation simulations, and is not specifically limited here.

[0065] Specifically, after obtaining the control board temperature and the ambient temperature, the embodiment of the present application needs to further perform power threshold determination on the control board temperature and the ambient temperature and verify the absolute value of the difference between the control board temperature and the ambient temperature, so as to analyze whether a circuit fault occurs on the motor controller control board.

[0066] Specifically, as an achievable method, Figure 3As shown, first, it is determined whether the control panel temperature or the ambient temperature is greater than the upper limit of the preset temperature range, or whether the control panel temperature or the ambient temperature is less than the lower limit of the preset temperature range, that is, it is determined whether the control panel temperature or the ambient temperature is greater than the upper threshold T of the power supply short circuit or open circuit. h , or whether the control board temperature or the ambient temperature is less than the lower threshold T of the power supply short circuit or open circuit l ; Secondly, when the control board temperature or the ambient temperature is greater than the upper limit value, or the control board temperature or the ambient temperature is less than the lower limit value, that is, the control board temperature or the ambient temperature is greater than the upper threshold value T of the power supply short circuit or disconnection h , or less than the lower threshold T of power short circuit or disconnection l At this time, it is determined that the control panel temperature or the ambient temperature is not within the preset temperature range.

[0067] In step S103, if the absolute value of the difference is greater than the preset verification threshold, or the control board temperature or the ambient temperature is not in the preset temperature range, the motor controller is fault detected according to the control board temperature and the ambient temperature to obtain a fault detection result of the motor controller.

[0068] Among them, the preset verification threshold can be a threshold set by technical personnel in this field according to actual detection requirements, or a threshold set after a limited number of calculation simulations, and is not specifically limited here.

[0069] Furthermore, as another feasible method, the difference between the control board temperature and the ambient temperature is calculated, and the difference between the control board temperature and the ambient temperature is verified. If the absolute value of the difference between the control board temperature and the ambient temperature is greater than a preset verification threshold △T, or the control board temperature or the ambient temperature is not within a preset temperature range, a fault detection is performed on the motor controller, and it is determined that a detection circuit fault occurs in the motor controller control board.

[0070] According to one embodiment of the present invention, after calculating the difference between the control board temperature and the ambient temperature, and determining whether the control board temperature or the ambient temperature is within a preset temperature range, it also includes: if the absolute value of the difference is less than or equal to a preset verification threshold, and both the control board temperature and the ambient temperature are within the preset temperature range, it is determined that the motor controller does not meet the fault detection condition.

[0071] Specifically, in an embodiment of the present application, if the calculated absolute value of the difference between the control board temperature and the ambient temperature is less than or equal to a preset verification threshold, and the control board temperature and the ambient temperature are both within a preset temperature range, it is determined that the motor controller does not meet the fault detection conditions, that is, the motor controller control board does not have a detection circuit fault.

[0072] According to the fault detection method of the motor controller of the embodiment of the present application, the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop are obtained, and the difference between the control board temperature and the ambient temperature is calculated. If the absolute value of the difference is greater than the preset verification threshold, or the control board temperature or the ambient temperature is not in the preset temperature range, the motor controller is fault-detected according to the control board temperature and the ambient temperature to obtain the fault detection result of the motor controller. Thus, the problem that the hardware design of the motor controller in the related art cannot perform fault detection on the control board temperature sampling loop is solved. By determining the temperature range in which the acquired control board temperature or ambient temperature is located and the absolute value of the difference between the control board temperature or ambient temperature, the circuit fault detection result of the control board is obtained, thereby improving the detection accuracy.

[0073] Next, a fault detection device for a motor controller according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0074] Figure 4 It is a block diagram of a fault detection device for a motor controller according to an embodiment of the present application.

[0075] like Figure 4 As shown, the motor controller includes a control board temperature sampling loop and an ambient temperature sampling loop, and the fault detection device 10 of the motor controller includes: an acquisition module 100 , a judgment module 200 and a detection module 300 .

[0076] Wherein, the acquisition module 100 is used to acquire the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop;

[0077] A determination module 200, for calculating the difference between the control panel temperature and the ambient temperature, and determining whether the control panel temperature or the ambient temperature is not within a preset temperature range; and

[0078] The detection module 300 is used to perform fault detection on the motor controller according to the control board temperature and the ambient temperature to obtain a fault detection result of the motor controller if the absolute value of the difference is greater than a preset verification threshold, or the control board temperature or the ambient temperature is not within a preset temperature range.

[0079] According to one embodiment of the present invention, the acquisition module 100 is specifically used for:

[0080] Acquire a first sampling signal of a control board temperature sampling loop and a second sampling signal of an ambient temperature sampling loop;

[0081] The first sampling signal and the second sampling signal are filtered respectively to obtain the control board temperature and the ambient temperature.

[0082] According to one embodiment of the present invention, the acquisition module 100 is specifically used for:

[0083] Collecting a first voltage value corresponding to a temperature sampling circuit of a control board and a second voltage value corresponding to an ambient temperature sampling circuit;

[0084] Based on the mapping relationship between the first voltage value and the control board temperature signal, the first voltage value is converted into a temperature signal to obtain a first sampling signal, and based on the mapping relationship between the second voltage value and the ambient temperature signal, the second voltage value is converted into a temperature signal to obtain a second sampling signal.

[0085] According to one embodiment of the present invention, the determination module 200 is specifically configured to:

[0086] Determine whether the control panel temperature or the ambient temperature is greater than the upper limit of a preset temperature range, or whether the control panel temperature or the ambient temperature is less than the lower limit of a preset temperature range;

[0087] When the control panel temperature or the ambient temperature is greater than the upper limit value, or the control panel temperature or the ambient temperature is less than the lower limit value, it is determined that the control panel temperature or the ambient temperature is not within the preset temperature range.

[0088] According to one embodiment of the present invention, after calculating the difference between the control board temperature and the ambient temperature and determining whether the control board temperature or the ambient temperature is within a preset temperature range, the determination module 200 is further configured to:

[0089] If the absolute value of the difference is less than or equal to the preset verification threshold, and the control board temperature and the ambient temperature are both within the preset temperature range, it is determined that the motor controller does not meet the fault detection condition.

[0090] According to the fault detection device of the motor controller of the embodiment of the present application, the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop are obtained, and the difference between the control board temperature and the ambient temperature is calculated. If the absolute value of the difference is greater than the preset verification threshold, or the control board temperature or the ambient temperature is not in the preset temperature range, the motor controller is fault-detected according to the control board temperature and the ambient temperature to obtain the fault detection result of the motor controller. Thus, the problem that the hardware design of the motor controller in the related art cannot perform fault detection on the control board temperature sampling loop is solved. By determining the temperature range in which the acquired control board temperature or ambient temperature is located and the absolute value of the difference between the control board temperature or ambient temperature, the circuit fault detection result of the control board is obtained, thereby improving the detection accuracy.

[0091] Figure 5 A schematic diagram of the structure of a motor controller provided in an embodiment of the present application. The motor controller may include:

[0092] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .

[0093] When the processor 502 executes the program, the fault detection method of the motor controller provided in the above embodiment is implemented.

[0094] Furthermore, the motor controller further comprises:

[0095] The communication interface 503 is used for communication between the memory 501 and the processor 502 .

[0096] The memory 501 is used to store computer programs that can be executed on the processor 502 .

[0097] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0098] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0099] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.

[0100] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0101] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the fault detection method of the motor controller as described above is implemented.

[0102] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0103] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0104] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0105] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0106] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0107] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0108] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0109] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A fault detection method for a motor controller, characterized in that: The motor controller includes a control board temperature sampling loop and an ambient temperature sampling loop, and includes the following steps: Acquire the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop; Calculating the difference between the control panel temperature and the ambient temperature, and determining whether the control panel temperature or the ambient temperature is not within a preset temperature range; and If the absolute value of the difference is greater than a preset verification threshold, or the control board temperature or the ambient temperature is not within the preset temperature range, a fault detection is performed on the motor controller based on the control board temperature and the ambient temperature to obtain a fault detection result of the motor controller.

2. The method according to claim 1, characterized in that The step of obtaining the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop comprises: Acquire a first sampling signal of the control board temperature sampling loop and a second sampling signal of the ambient temperature sampling loop; The first sampling signal and the second sampling signal are filtered respectively to obtain the control board temperature and the ambient temperature.

3. The method according to claim 2, characterized in that The step of obtaining the first sampling signal of the control board temperature sampling loop and the second sampling signal of the ambient temperature sampling loop comprises: Collecting a first voltage value corresponding to the control board temperature sampling circuit and a second voltage value corresponding to the ambient temperature sampling circuit; Based on the mapping relationship between the first voltage value and the control board temperature signal, the first voltage value is converted into a temperature signal to obtain the first sampling signal, and based on the mapping relationship between the second voltage value and the ambient temperature signal, the second voltage value is converted into a temperature signal to obtain the second sampling signal.

4. The method according to claim 1, characterized in that: The determining whether the control panel temperature or the ambient temperature is within a preset temperature range includes: Determine whether the control panel temperature or the ambient temperature is greater than an upper limit of the preset temperature range, or whether the control panel temperature or the ambient temperature is less than a lower limit of the preset temperature range; When the control board temperature or the ambient temperature is greater than the upper limit value, or when the control board temperature or the ambient temperature is less than the lower limit value, it is determined that the control board temperature or the ambient temperature is not within the preset temperature range.

5. The method according to claim 1, characterized in that After calculating the difference between the control panel temperature and the ambient temperature and determining whether the control panel temperature or the ambient temperature is within the preset temperature range, the method further includes: If the absolute value of the difference is less than or equal to the preset verification threshold, and the control board temperature and the ambient temperature are both within the preset temperature range, it is determined that the motor controller does not meet the fault detection condition.

6. A fault detection device for a motor controller, characterized in that: The motor controller includes a control board temperature sampling loop and an ambient temperature sampling loop, including: An acquisition module, used for acquiring the control board temperature of the control board temperature sampling loop and the ambient temperature of the ambient temperature sampling loop; a judgment module, used for calculating the difference between the control panel temperature and the ambient temperature, and judging whether the control panel temperature or the ambient temperature is not within a preset temperature range; and A detection module is used to perform fault detection on the motor controller according to the control board temperature and the ambient temperature to obtain a fault detection result of the motor controller if the absolute value of the difference is greater than a preset verification threshold, or the control board temperature or the ambient temperature is not within the preset temperature range.

7. The device according to claim 6, characterized in that The acquisition module is specifically used for: Acquire a first sampling signal of the control board temperature sampling loop and a second sampling signal of the ambient temperature sampling loop; The first sampling signal and the second sampling signal are filtered respectively to obtain the control board temperature and the ambient temperature.

8. The device according to claim 7, characterized in that The acquisition module is specifically used for: Collecting a first voltage value corresponding to the control board temperature sampling circuit and a second voltage value corresponding to the ambient temperature sampling circuit; Based on the mapping relationship between the first voltage value and the control board temperature signal, the first voltage value is converted into a temperature signal to obtain the first sampling signal, and based on the mapping relationship between the second voltage value and the ambient temperature signal, the second voltage value is converted into a temperature signal to obtain the second sampling signal.

9. A motor controller, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the fault detection method for the motor controller as described in any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the fault detection method of the motor controller as described in any one of claims 1 to 5.