Motor detection method and device, computer equipment, storage medium and computer program product

By controlling the speed increase and decrease of the permanent magnet synchronous motor, recording the changes in resolver deviation, and performing out-of-tolerance verification within the preset range, the lack of robustness and fault tolerance of resolver deviation verification in the existing technology is solved. problems, improving detection accuracy and production efficiency.

CN118604606APending Publication Date: 2024-09-06CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410641833.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the existing technology, the resolver deviation check of permanent magnet synchronous motors has low robustness and fault tolerance, which results in some qualified motors being misjudged as unqualified during the vehicle off-line process, resulting in production shutdown and increased costs.

Method used

After receiving the resolver deviation calibration command, the motor to be tested performs speed increase and decrease control, records the resolver deviation changes, determines the resolver deviation to be calibrated, and performs out-of-tolerance verification within the preset range, based on the verification results Determine if the motor is qualified.

Benefits of technology

It improves the robustness and fault tolerance of motor detection, avoids production shutdowns and increased costs due to misjudgment, and ensures the normal delivery of qualified motors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604606A
    Figure CN118604606A
Patent Text Reader

Abstract

The invention relates to a motor detection method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: after a resolver deviation verification instruction is received, performing rotation speed increasing control on a to-be-tested motor, and recording the change of the resolver deviation in the rotation speed increasing process; when it is detected that the rotating speed is increased to the speed increasing target value, rotating speed reduction control is carried out on the to-be-detected motor, and the change of the resolver deviation in the rotating speed reduction process is recorded; determining the to-be-verified resolver deviation of the to-be-tested motor based on the change of the resolver deviation in the rotating speed increasing process and the change of the resolver deviation in the rotating speed reducing process; and under the condition that the to-be-verified resolver deviation of the to-be-tested motor is in a preset range, performing out-of-tolerance verification on the to-be-verified resolver deviation of the to-be-tested motor, and determining whether the to-be-tested motor is qualified based on an out-of-tolerance verification result. And the robustness and the fault tolerance are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric vehicles, and in particular to a motor detection method, device, computer equipment, storage medium and computer program product. Background Art

[0002] In recent years, permanent magnet synchronous motors have been widely used in hybrid and pure electric vehicle industries due to their advantages such as high power factor and high starting torque. It is very necessary to ensure high-precision control, high-efficiency production and high-quality operation of permanent magnet synchronous motors. The rotary transformer deviation to be verified of the permanent magnet synchronous motor to be tested is one of the important parameters in the electric drive control system, which directly determines the torque control accuracy and the performance of the motor to be tested.

[0003] In the prior art, in the vehicle end of line process (End of Line, EOL for short), after the motor to be tested is flashed with software and the rotor position is calibrated, the resolver deviation is checked. The threshold for passing the test is pre-specified in the end of line test specification. If the measured resolver deviation exceeds the threshold, the motor to be tested is considered to be unqualified and needs to be repaired, resulting in a temporary shutdown of the production line and delaying the production cycle. The above verification method has low robustness and fault tolerance. Summary of the invention

[0004] Based on this, it is necessary to provide a motor detection method, device, computer equipment, computer-readable storage medium and computer program product that can improve robustness and fault tolerance in response to the above technical problems.

[0005] In a first aspect, the present application provides a motor detection method, comprising:

[0006] After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded;

[0007] Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0008] When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

[0009] In one embodiment, the speed increase control of the motor to be tested includes: sending a first instruction to the motor to be tested to enter a speed increase phase, the first instruction carries a speed increase target value and a speed increase rate, so that the motor to be tested increases the speed to the speed increase target value according to the speed increase rate; the speed reduction control of the motor to be tested includes: sending a second instruction to the motor to be tested to enter a calculation phase, the second instruction carries a speed reduction target value and a speed reduction rate, so that the motor to be tested reduces the speed to the speed reduction target value according to the speed reduction rate; the method also includes: when it is detected that the speed has reduced to the speed reduction target value, sending a third instruction to the motor to be tested to enter an output phase to instruct the motor to be tested to reduce the speed to zero.

[0010] In one of the embodiments, the resolver deviation to be verified of the motor to be tested is determined based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process, including: searching for a first maximum resolver deviation value in the change of the resolver deviation during the speed increase process, searching for a second maximum resolver deviation value in the change of the resolver deviation during the speed decrease process, and taking the maximum value of the first maximum resolver deviation value and the second maximum resolver deviation value as the resolver deviation to be verified of the motor to be tested.

[0011] In one of the embodiments, the out-of-tolerance verification of the to-be-tested resolver deviation of the motor to be tested includes: cyclically executing the first operating condition test process N times, wherein the first operating condition test process includes: sending a peak speed command to the motor to be tested, wherein the peak speed command carries the peak speed and the speed-up time, so that the motor to be tested increases the speed from zero to the peak speed according to the speed-up time; and recording the change of the resolver deviation during the process of increasing the speed to the peak speed; when it is detected that the speed increases to the peak speed, sending a speed clearing command to the motor to be tested, The speed clearing instruction carries a deceleration time, so that the motor to be tested decelerates the speed to zero according to the deceleration time; and records the change of the resolver deviation in the process of decelerating the speed to zero; in the change of the resolver deviation in the process of increasing the speed to the peak speed, and in the change of the resolver deviation in the process of decreasing the speed to zero, find the maximum resolver deviation value; when the maximum resolver deviation value obtained in each cycle is less than the preset deviation threshold, update the speed increase time and the speed decrease time, if the maximum resolver deviation value obtained in each cycle after the update is still less than the preset threshold, it is determined that the out-of-tolerance verification is passed.

[0012] In one embodiment, the out-of-tolerance verification of the to-be-tested rotary transformer deviation of the motor to be tested includes: cyclically executing the second operating condition test process M times, the second operating condition test process including: sending a fixed speed command to the motor to be tested, the fixed speed command carrying a fixed speed value and a first speed-up time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed-up time, and when it is detected that the speed increases to the fixed speed value, sending a torque external characteristic command to the motor to be tested, the torque external characteristic command carrying a peak external characteristic and a growth time, so that the motor to be tested increases the torque to the peak external characteristic according to the growth time; when it is detected that the torque increases to the peak external characteristic When the test condition is met, a peak speed command is sent to the motor to be tested, and the peak speed command carries the peak speed, the second speed-up time and the peak maintenance time, so that the motor to be tested increases the speed from the speed constant to the peak speed according to the second speed-up time, and maintains the peak speed at the peak maintenance time; after detecting that the peak maintenance time is reached, a speed reset command and a torque reset command are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, records the torque accuracy change during the second working condition test, and searches for the minimum torque accuracy in the torque accuracy change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

[0013] In one embodiment, the out-of-tolerance verification of the to-be-tested rotary transformer deviation of the motor to be tested includes: cyclically executing the third operating condition test process P times, and the third operating condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carrying a fixed speed value, a first speed increase time, and a fixed value maintenance time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed increase time, and maintains the fixed value maintenance time, after detecting that the fixed value maintenance time is reached, sending a peak speed command and a torque external characteristic command to the motor to be tested, the peak speed command carrying a peak speed and a second speed increase time, the torque external characteristic command carrying a peak external characteristic and an increase time, to instruct the motor to be tested to increase the speed from the fixed speed value to the peak speed according to the second speed increase time, and maintain the fixed value maintenance time according to the increase time. The torque is increased to the peak external characteristic for a long time; when it is detected that the speed is increased to the peak speed, a speed reduction instruction is sent to the motor to be tested, and the speed reduction instruction carries the speed setting value and the speed reduction time, so that the motor to be tested reduces the speed from the peak speed to the speed setting value according to the speed reduction time; when it is detected that the speed is reduced to the speed setting value, a speed reset instruction and a torque reset instruction are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, and records the torque accuracy change and the rotational transformer deviation change during the third working condition test, and searches for the minimum torque accuracy in the torque accuracy change, and searches for the maximum rotational transformer deviation value in the rotational transformer deviation change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, and the maximum rotational transformer deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification is passed.

[0014] In a second aspect, the present application also provides a motor detection device, comprising:

[0015] The control module is used to, after receiving the resolver deviation verification instruction, perform speed increase control on the motor to be tested, and record the change of the resolver deviation during the speed increase process; when it is detected that the speed increases to the speed increase target value, perform speed reduction control on the motor to be tested, and record the change of the resolver deviation during the speed reduction process;

[0016] A determination module, used to determine the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0017] The out-of-tolerance verification module is used to perform out-of-tolerance verification on the resolver deviation of the motor to be tested when the resolver deviation of the motor to be tested is within a preset range, and determine whether the motor to be tested is qualified based on the out-of-tolerance verification result.

[0018] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0019] After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded;

[0020] Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0021] When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

[0022] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0023] After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded;

[0024] Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0025] When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

[0026] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0027] After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded;

[0028] Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0029] When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

[0030] The motor detection method, device, computer equipment, storage medium and computer program product described above, after receiving the resolver deviation verification instruction, perform speed increase control on the motor to be tested, and record the change of resolver deviation during the speed increase process; when the speed is detected to be increased to the speed increase target value, perform speed reduction control on the motor to be tested, and record the change of resolver deviation during the speed reduction process; based on the change of resolver deviation during the speed increase process and the change of resolver deviation during the speed reduction process, determine the resolver deviation to be verified of the motor to be tested; when the resolver deviation to be verified of the motor to be tested is within the preset range, perform out-of-tolerance verification on the resolver deviation to be verified of the motor to be tested, and determine whether the motor to be tested is qualified based on the out-of-tolerance verification result. The motors that do not affect the normal performance output can be screened out and shipped normally, which improves robustness and fault tolerance. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] FIG1 is a system framework diagram of a motor detection method in one embodiment;

[0033] Figure 2 is a schematic flow chart of a motor detection method in one embodiment;

[0034] Figure 3 A schematic diagram of a process flow of a vehicle off-line in one embodiment;

[0035] Figure 4 is a schematic diagram of detecting resolver deviation in another embodiment;

[0036] Figure 5 A schematic diagram of a flow chart of a solution for verifying a rotation deviation in one embodiment;

[0037] Figure 6 is a structural block diagram of a motor detection device in one embodiment;

[0038] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] The system framework of the motor detection method provided by the embodiment of the present application is shown in Figure 1. The system framework includes an offline test bench, a motor controller and a motor to be tested. The motor detection method provided by the embodiment of the present application can be executed by the motor controller. The offline test bench is used to send test instructions to the motor controller, such as rotor position calibration instructions, deviation verification instructions, and operating point test instructions. The motor controller is used to test the motor to be tested according to the corresponding test logic after receiving the test instruction to obtain the corresponding test result. In the embodiment of the present application, after the motor controller receives the rotary transformer deviation verification instruction sent by the offline test bench, the motor to be tested is controlled to increase the speed, and the change of the rotary transformer deviation during the speed increase process is recorded; when the speed is detected to increase the speed to the target value, the motor to be tested is controlled to decrease the speed, and the change of the rotary transformer deviation during the speed decrease process is recorded; based on the change of the rotary transformer deviation during the speed increase process and the change of the rotary transformer deviation during the speed decrease process, the rotary transformer deviation to be verified of the motor to be tested is determined; when the rotary transformer deviation to be verified of the motor to be tested is within the preset range, the rotary transformer deviation to be verified of the motor to be tested is verified for out-of-tolerance verification, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result. Compared with the prior art method of directly considering the motor to be tested as unqualified when the measured resolver deviation exceeds a preset threshold, the robustness and fault tolerance are improved. The motor detection method provided by the present application is described in detail below in conjunction with specific embodiments.

[0041] In an exemplary embodiment, Figure 2 As shown, a motor detection method is provided, which is described by taking the method applied to the motor controller in FIG. 1 as an example, and includes the following steps 202 to 206. Among them:

[0042] Step 202, after receiving the resolver deviation verification instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when it is detected that the speed increases to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded.

[0043] Optional, see Figure 3 As shown in the figure, the vehicle off-line process includes: sample to component flashing and writing off-line software, rotor position calibration, resolver deviation verification, operating point test, and qualified product delivery. The sample here is the motor to be tested.

[0044] In one possible implementation, after receiving the resolver deviation verification instruction, the motor controller can control the rotation of the motor to be tested according to preset rules. During the rotation of the motor to be tested, the change of the resolver deviation is recorded in real time, and the resolver deviation to be verified of the motor to be tested is subsequently determined based on the change of the resolver deviation.

[0045] In one possible implementation, after receiving the resolver deviation verification instruction, the motor controller can control the motor to be tested to increase the speed from zero to a fixed value at a certain rate, and record the change of the resolver deviation during the speed increase process; when it is detected that the speed has increased to a fixed value, the motor to be tested can be controlled to reduce the speed from the above-mentioned fixed value to another fixed value at a certain rate, and record the change of the resolver deviation during the speed reduction process.

[0046] Optionally, the change of the resolver deviation can be recorded in real time in the register during the speed increase process. Similarly, the change of the resolver deviation can also be recorded in real time in the register during the speed decrease process.

[0047] Step 204 , determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process.

[0048] Among them, when it is detected that the speed decreases to a preset fixed value, the resolver deviation to be verified of the motor to be tested can be determined based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process.

[0049] Optionally, the maximum resolver deviation value Agdiff can be found from the change in resolver deviation during speed increase and the change in resolver deviation during speed decrease. max , and use the maximum resolver deviation value as the resolver deviation to be verified of the motor to be tested.

[0050] Step 206, when the resolver deviation to be verified of the motor to be tested is within a preset range, perform an out-of-tolerance verification on the resolver deviation to be verified of the motor to be tested, and determine whether the motor to be tested is qualified based on the out-of-tolerance verification result.

[0051] Among them, the offline detection specification will predefine the threshold value Agdiff for passing the detection. 0 In some embodiments, if the resolver deviation of the motor to be tested is greater than Agdiff 0 , it is considered that the motor under test is of unqualified quality and needs to be repaired. In fact, due to the influence of factors such as mechanical structure and electrical characteristics, a small part of the resolver deviation of the motor under test will exceed the limit after assembly, that is, exceed Agdiff 0However, some of the motors to be tested do not affect the normal performance output. If all of them are returned to the factory, it will undoubtedly increase the cost and production cycle. To this end, this application proposes an out-of-tolerance verification scheme and stipulates the resolver deviation range corresponding to the out-of-tolerance verification, that is, the preset range in this step. For the convenience of description, the preset range is marked as (Agdiff 0 , Agdiff 1 ).

[0052] Specifically, when the resolver deviation to be verified of the motor to be tested is (Agdiff 0 , Agdiff 1 ), the deviation of the to-be-tested resolver of the to-be-tested motor is verified for out-of-tolerance, and whether the to-be-tested motor is qualified is determined based on the out-of-tolerance verification result. The qualification here refers to whether the resolver deviation verification is qualified. If the resolver deviation verification is qualified, the operating point test is continued. Only when the operating point test passes, the motor to be tested is considered qualified as a whole.

[0053] In the above embodiment, after receiving the resolver deviation verification instruction, the motor to be tested is controlled to increase the speed, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed target value, the motor to be tested is controlled to decrease the speed, and the change of the resolver deviation during the speed decrease process is recorded; then, based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process, the resolver deviation to be verified of the motor to be tested is determined; finally, when the resolver deviation to be verified of the motor to be tested is within the preset range, the resolver deviation to be verified of the motor to be tested is verified for out-of-tolerance, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result. The motors that do not affect the normal performance output can be screened out and shipped normally, which improves robustness and fault tolerance.

[0054] In some embodiments, after receiving the rotary transformer deviation verification instruction, the motor controller can perform speed increase control and speed decrease control on the motor to be tested in the following manner. Specifically, the speed increase control of the motor to be tested can be performed in the following manner: a first instruction to enter the speed increase phase is sent to the motor to be tested, the first instruction carries a speed increase target value and a speed increase rate, so that the motor to be tested increases the speed to the speed increase target value according to the speed increase rate. The speed decrease control of the motor to be tested is performed in the following manner: a second instruction to enter the calculation phase is sent to the motor to be tested, the second instruction includes a speed decrease target value and a speed decrease rate, so that the motor to be tested decreases the speed to the speed decrease target value according to the speed decrease rate. In addition, when it is detected that the speed decreases to the speed decrease target value, the motor controller can also send a third instruction to the motor to be tested to enter the output phase to instruct the motor to be tested to reduce the speed to zero.

[0055] See also Figure 4 As shown in the figure, after receiving the resolver deviation verification instruction, the motor controller sends the first instruction to the motor to be tested to enter the speed-up stage. The first instruction carries the speed-up target value and the speed-up rate. After receiving the first instruction, the motor to be tested enters the first stage (MCU_STATE=1). In the first stage, the motor to be tested increases the speed from zero to the speed-up target value Spd carried in the first instruction according to the speed-up rate carried in the first instruction. max When the speed is detected to increase to the speed increase target value, a second instruction is sent to the motor to enter the calculation phase. The second instruction carries the speed reduction target value and the speed reduction rate. After receiving the second instruction, the motor to be tested enters the second phase (MCU_STATE=2). In the second phase, the motor to be tested reduces the speed from Spd to 0 according to the speed reduction rate carried in the second instruction. max Reduce speed to the speed reduction target value Spd carried in the second instruction end When it is detected that the speed is reduced to the speed reduction target value, a third instruction is sent to the motor to enter the output stage. The third instruction carries the speed reduction rate. After receiving the third instruction, the motor to be tested enters the third stage (MCU_STATE=3). In the third stage, the motor to be tested reduces the speed from Spd to 0 according to the speed reduction rate carried in the second instruction. end Speed ​​reduction to zero.

[0056] In the above embodiment, a specific method for speed increase control and speed decrease control of the motor to be tested is provided. Through this control, the change of the resolver deviation of the motor to be tested during the speed increase process and the change of the resolver deviation during the speed decrease process can be obtained, and the maximum resolver deviation value is used as the resolver deviation to be verified of the motor to be tested, which has higher accuracy.

[0057] In some embodiments, the motor controller detects that the speed changes from Spd max Reduce speed to the speed reduction target value Spd carried in the second instruction end The resolver deviation to be verified of the motor to be tested can be determined in the following manner: a first maximum resolver deviation value is found in the change of the resolver deviation during the speed increase process, and a second maximum resolver deviation value is found in the change of the resolver deviation during the speed decrease process, and the maximum value of the first maximum resolver deviation value and the second maximum resolver deviation value is used as the resolver deviation to be verified of the motor to be tested.

[0058] In the above embodiment, a specific method for detecting resolver deviation is provided, that is, the maximum resolver deviation value is found from the change of resolver deviation during the speed increase process and the change of resolver deviation during the speed decrease process, and the maximum resolver deviation value is used as the resolver deviation to be verified of the motor to be tested. The resolver deviation detected in this way is more accurate.

[0059] In some embodiments, the out-of-tolerance verification can be performed in the following manner: looping the first working condition test process N times, the first working condition test process comprising: sending a peak speed command to the motor to be tested, the peak speed command carrying the peak speed and the speed-up time, so that the motor to be tested increases the speed from zero to the peak speed according to the speed-up time; and recording the change of the resolver deviation during the process of the speed increasing to the peak speed; when it is detected that the speed increases to the peak speed, sending a speed clearing command to the motor to be tested, the speed clearing command carrying the speed reduction time, so that the motor to be tested reduces the speed to zero according to the speed reduction time; and recording the change of the resolver deviation during the process of the speed reducing to zero; in the change of the resolver deviation during the process of the speed increasing to the peak speed, and in the change of the resolver deviation during the process of the speed reducing to zero, searching for the maximum resolver deviation value; when the maximum resolver deviation value obtained in each cycle is less than the preset deviation threshold, updating the speed-up time and the speed reduction time, if the maximum resolver deviation value obtained in each cycle after the update is still less than the preset threshold, it is determined that the out-of-tolerance verification is passed.

[0060] Among them, N can be flexibly set according to actual conditions. For example, N can be 5, 10, 20, etc. The embodiment of the present application takes N as 5 as an example.

[0061] Exemplarily, the speed-up time can be set to 5s first, and a peak speed command is sent to the motor to be tested, the peak speed command carries the peak speed and the speed-up time (5s), and the motor to be tested increases the speed from zero to the peak speed according to the speed-up time. When it is detected that the speed has increased to the peak speed, a speed reset command is sent to the motor to be tested, and the speed reset command carries the speed reduction time (5s). The motor to be tested reduces the speed to zero according to the speed reduction time, and the change of the resolver deviation during the whole process is recorded, and the maximum resolver deviation value is found therein; the above process is repeated 5 times, and the maximum resolver deviation value obtained in each cycle is less than the preset deviation threshold value Agdiff 1 In the case of , the speed-up time is updated to 10s, and the above process is repeated 5 times. If the maximum resolver deviation value obtained in each cycle is still less than the preset deviation threshold Agdiff 1 In the case of , the speed-up time is updated to 20s, and the above process is repeated 5 times. If the maximum resolver deviation value obtained in each cycle is still less than the preset deviation threshold Agdiff 1 , then it is determined that the out-of-tolerance verification has passed.

[0062] The above embodiment provides an out-of-tolerance verification solution, in which the deviation of the resolver to be verified of the motor to be tested is (Agdiff 0 , Agdiff 1), this method is used to verify the out-of-tolerance deviation of the resolver of the motor to be tested, so that the motors that do not affect the normal performance output can be screened out and shipped normally, thereby improving the robustness and fault tolerance.

[0063] In some embodiments, the out-of-tolerance verification can be performed in the following manner: looping the second operating condition test process M times, the second operating condition test process comprising: sending a constant speed instruction to the motor to be tested, the constant speed instruction carrying a speed constant and a first speed-up time, so that the motor to be tested increases the speed from zero to the speed constant according to the first speed-up time; when it is detected that the speed increases to the speed constant, sending a torque external characteristic instruction to the motor to be tested, the torque external characteristic instruction carrying a peak external characteristic and a growth time, so that the motor to be tested increases the torque to the peak external characteristic according to the growth time; when it is detected that the torque increases to the peak external characteristic, sending a torque external characteristic instruction to the motor to be tested The measured motor sends a peak speed command, and the peak speed command carries the peak speed, the second speed-up time and the peak maintenance time, so that the measured motor increases the speed from the speed constant to the peak speed according to the second speed-up time, and maintains the peak speed at the peak speed for the peak maintenance time; after detecting that the peak maintenance time is reached, sending a speed reset command and a torque reset command to the measured motor, so that the measured motor resets the speed and torque, records the torque accuracy change during the second working condition test, and searches for the minimum torque accuracy in the torque accuracy change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

[0064] Exemplarily, the speed setting value can be flexibly set according to actual conditions. Exemplarily, the speed setting value can be set to 1000 rpm / min. The motor controller can send a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value (1000rpm / min) and a first speed-up time, the motor to be tested increases the speed from zero to 1000rpm / min according to the first speed-up time, and when it is detected that the speed increases to the fixed speed value, the motor controller further sends a torque external characteristic command to the motor to be tested, the torque external characteristic command carries a peak external characteristic and a growth time, the motor to be tested increases the torque to the peak external characteristic according to the growth time, and when it is detected that the torque increases to the peak external characteristic, a peak speed command is sent to the motor to be tested, the peak speed command carries a peak speed, a second speed-up time and a peak maintenance time, the motor to be tested increases the speed from 1000 rpm / min to the peak speed according to the second speed-up time, and maintains the peak maintenance time at the peak speed; after it is detected that the peak maintenance time is reached, a speed reset command and a torque reset command are sent to the motor to be tested, and the motor to be tested resets the speed and torque. Record the torque accuracy changes during the entire process and find the minimum torque accuracy. Repeat the process 5 times (M=5). If the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, the out-of-tolerance verification is determined to be passed.

[0065] Among them, the first speed increase duration, the growth duration, the second speed increase duration, and the peak maintenance duration can all be flexibly set according to actual conditions, and the embodiments of the present application do not limit this.

[0066] The above embodiment provides an out-of-tolerance verification solution, in which the deviation of the resolver to be verified of the motor to be tested is (Agdiff 0 , Agdiff 1 ), this method is used to verify the out-of-tolerance deviation of the resolver of the motor to be tested, so that the motors that do not affect the normal performance output can be screened out and shipped normally, thereby improving the robustness and fault tolerance.

[0067] In some embodiments, the out-of-tolerance verification can be performed in the following manner: a third operating condition test process is executed cyclically P times, and the third operating condition test process includes: sending a constant speed instruction to the motor to be tested, the constant speed instruction carries a speed constant, a first speed increase time, and a constant value maintenance time, so that the motor to be tested increases the speed from zero to the speed constant according to the first speed increase time, and maintains the constant value maintenance time; after detecting that the constant value maintenance time is reached, sending a peak speed instruction and a torque external characteristic instruction to the motor to be tested, the peak speed instruction carries a peak speed and a second speed increase time, and the torque external characteristic instruction carries a peak external characteristic and a growth time, so as to instruct the motor to be tested to increase the speed from the speed constant to the peak speed according to the second speed increase time; after detecting that the constant value maintenance time is reached, When it is detected that the speed increases to the peak speed, a speed reduction instruction is sent to the motor to be tested, and the speed reduction instruction carries the speed setting value and the speed reduction duration, so that the motor to be tested reduces the speed from the peak speed to the speed setting value according to the speed reduction duration; when it is detected that the speed is reduced to the speed setting value, a speed reset instruction and a torque reset instruction are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, and records the torque accuracy change and the resolver deviation change during the third working condition test, and searches for the minimum torque accuracy in the torque accuracy change, and searches for the maximum resolver deviation value in the resolver deviation change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, and the maximum resolver deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification is passed.

[0068] Exemplarily, the speed constant can be set to 1000rpm / min. The motor controller can send a constant speed command to the motor to be tested, the constant speed command carries the speed constant, the first speed increase time and the constant value maintenance time, the motor to be tested increases the speed from zero to the 1000rpm / min according to the first speed increase time, and maintains the constant value maintenance time, after detecting that the constant value maintenance time is reached, the peak speed command and the torque external characteristic command are sent to the motor to be tested, the peak speed command carries the peak speed and the second speed increase time, the torque external characteristic command carries the peak external characteristic and the growth time, the motor to be tested increases the speed from the 1000rpm / min to the peak speed according to the second speed increase time. Speed, increase the torque to the peak external characteristic according to the growth time; when the speed is detected to increase to the peak speed, send a speed reduction command to the motor to be tested, the speed reduction command carries the speed constant and the deceleration time, the motor to be tested decelerates the speed from the peak speed to the 1000rpm / min according to the deceleration time, when the speed is detected to decrease to the 1000rpm / min, send a speed reset command and a torque reset command to the motor to be tested, the motor to be tested resets the speed and torque, and records the change in torque accuracy and the change in resolver deviation during the whole process, and finds the minimum torque accuracy and the maximum resolver deviation value. The above process is repeated 5 times (P=5), and when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, and the maximum resolver deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

[0069] The above embodiment provides an out-of-tolerance verification solution, in which the deviation of the resolver to be verified of the motor to be tested is (Agdiff 0 , Agdiff 1 ), this method is used to verify the out-of-tolerance deviation of the resolver of the motor to be tested, so that the motors that do not affect the normal performance output can be screened out and shipped normally, thereby improving the robustness and fault tolerance.

[0070] It should be noted that the above embodiment introduces three out-of-tolerance verification schemes, which can be used individually or in combination. For example, the above three out-of-tolerance verification schemes are used in combination. In this case, the motor to be tested is considered qualified only when all three out-of-tolerance verification schemes are passed.

[0071] In some embodiments, see Figure 5 As shown in the figure, a resolver deviation verification scheme is provided. After receiving the resolver deviation verification instruction, the motor controller executes Figure 5 The logic shown in the figure first performs resolver deviation detection, that is, the resolver deviation to be verified of the motor to be tested is determined by sampling the method provided in the above embodiment, and then the resolver deviation to be verified Agdiff is determined.max Is it less than Agdiff? 0 If it is less than, continue to test the operating point. If the test passes, the motor to be tested is qualified and shipped out of the factory. max In (Agdiff 0 , Agdiff 1 ), the resolver deviation out-of-tolerance verification is performed by the method provided in the above embodiment. When all indicators are met, that is, when the out-of-tolerance verification is passed, the operating point test is performed. max Greater than or equal to Agdiff 1 , or if the out-of-tolerance verification fails, the motor to be tested is considered unqualified and needs to be returned to the factory for repair.

[0072] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0073] Based on the same inventive concept, the embodiment of the present application also provides a motor detection device for implementing the motor detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more motor detection device embodiments provided below can refer to the limitations on the motor detection method above, and will not be repeated here.

[0074] In an exemplary embodiment, Figure 6 As shown, a motor detection device is provided, comprising:

[0075] The control module 601 is used to, after receiving the resolver deviation verification instruction, perform speed increase control on the motor to be tested, and record the change of the resolver deviation during the speed increase process; when it is detected that the speed increases to the speed increase target value, perform speed reduction control on the motor to be tested, and record the change of the resolver deviation during the speed reduction process;

[0076] A determination module 602, configured to determine the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0077] The out-of-tolerance verification module 603 is used to perform out-of-tolerance verification on the resolver deviation of the motor to be tested when the resolver deviation of the motor to be tested is within a preset range, and determine whether the motor to be tested is qualified based on the out-of-tolerance verification result.

[0078] In some embodiments, the control module 601 is specifically used to send a first instruction to the motor to be tested to enter a speed-up phase, wherein the first instruction carries a speed-up target value and a speed-up rate, so that the motor to be tested increases the speed to the speed-up target value according to the speed-up rate; send a second instruction to the motor to be tested to enter a calculation phase, wherein the second instruction carries a speed-down target value and a speed-down rate, so that the motor to be tested reduces the speed to the speed-down target value according to the speed-down rate; and when it is detected that the speed has reduced to the speed-down target value, send a third instruction to the motor to be tested to enter an output phase, so as to instruct the motor to be tested to reduce the speed to zero.

[0079] In some embodiments, the determination module 602 is specifically used to find the first maximum resolver deviation value in the change of the resolver deviation during the speed increase process, and to find the second maximum resolver deviation value in the change of the resolver deviation during the speed decrease process, and to use the maximum value of the first maximum resolver deviation value and the second maximum resolver deviation value as the resolver deviation to be verified of the motor to be tested.

[0080] In some embodiments, the out-of-tolerance verification module 603 is specifically used to loop through the first operating condition test process N times, wherein the first operating condition test process includes: sending a peak speed instruction to the motor to be tested, wherein the peak speed instruction carries the peak speed and the speed-up time, so that the motor to be tested increases the speed from zero to the peak speed according to the speed-up time; and recording the change of the rotary transformer deviation during the process of increasing the speed to the peak speed; when it is detected that the speed increases to the peak speed, sending a speed clearing instruction to the motor to be tested, wherein the speed clearing instruction carries the speed reduction time, so that the motor to be tested reduces the speed to zero according to the speed reduction time; and recording the change of the rotary transformer deviation during the process of reducing the speed to zero; searching for the maximum rotary transformer deviation value in the change of the rotary transformer deviation during the process of increasing the speed to the peak speed and in the change of the rotary transformer deviation during the process of reducing the speed to zero; when the maximum rotary transformer deviation value obtained in each cycle is less than the preset deviation threshold, updating the speed-up time and the speed reduction time, and if the maximum rotary transformer deviation value obtained in each cycle after the update is still less than the preset threshold, it is determined that the out-of-tolerance verification is passed.

[0081] In some embodiments, the out-of-tolerance verification module 603 is specifically used to cyclically execute the second operating condition test process M times, and the second operating condition test process includes: sending a fixed speed instruction to the motor to be tested, the fixed speed instruction carries a fixed speed value and a first speed-up time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed-up time; when it is detected that the speed increases to the fixed speed value, sending a torque external characteristic instruction to the motor to be tested, the torque external characteristic instruction carries a peak external characteristic and a growth time, so that the motor to be tested increases the torque to the peak external characteristic according to the growth time; when it is detected that the torque increases to the peak external characteristic, sending a torque external characteristic instruction to the motor to be tested. The measured motor sends a peak speed command, and the peak speed command carries the peak speed, the second speed-up time and the peak maintenance time, so that the measured motor increases the speed from the speed constant to the peak speed according to the second speed-up time, and maintains the peak speed at the peak speed for the peak maintenance time; after detecting that the peak maintenance time is reached, sending a speed reset command and a torque reset command to the measured motor, so that the measured motor resets the speed and torque, records the torque accuracy change during the second working condition test, and searches for the minimum torque accuracy in the torque accuracy change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

[0082] In some embodiments, the out-of-tolerance verification module 603 is specifically used to cyclically execute the third operating condition test process P times, and the third operating condition test process includes: sending a constant speed command to the motor to be tested, the constant speed command carries a speed constant, a first speed increase time, and a constant value maintenance time, so that the motor to be tested increases the speed from zero to the speed constant according to the first speed increase time, and maintains the constant value maintenance time; after detecting that the constant value maintenance time is reached, sending a peak speed command and a torque external characteristic command to the motor to be tested, the peak speed command carries a peak speed and a second speed increase time, and the torque external characteristic command carries a peak external characteristic and a growth time, so as to instruct the motor to be tested to increase the speed from the speed constant to the peak speed according to the second speed increase time, and increase the torque according to the growth time. to the peak external characteristic; when it is detected that the speed increases to the peak speed, a speed reduction instruction is sent to the motor to be tested, and the speed reduction instruction carries the speed setting value and the speed reduction duration, so that the motor to be tested reduces the speed from the peak speed to the speed setting value according to the speed reduction duration; when it is detected that the speed is reduced to the speed setting value, a speed reset instruction and a torque reset instruction are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, and records the torque accuracy change and the rotational transformer deviation change during the third working condition test, and searches for the minimum torque accuracy in the torque accuracy change, and searches for the maximum rotational transformer deviation value in the rotational transformer deviation change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, and the maximum rotational transformer deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification is passed.

[0083] Each module in the above motor detection device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0084] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a motor detection method is implemented.

[0085] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0086] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0087] After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded;

[0088] Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0089] When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

[0090] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0091] A first instruction for entering a speed-up phase is sent to the motor to be tested, wherein the first instruction carries a speed-up target value and a speed-up rate, so that the motor to be tested increases its speed to the speed-up target value according to the speed-up rate; when it is detected that the speed increases to the speed-up target value, a second instruction for entering a calculation phase is sent to the motor to be tested, wherein the second instruction carries a speed-down target value and a speed-down rate, so that the motor to be tested decreases its speed to the speed-down target value according to the speed-down rate; when it is detected that the speed decreases to the speed-down target value, a third instruction for entering an output phase is sent to the motor to be tested, so as to instruct the motor to be tested to reduce its speed to zero.

[0092] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0093] A first maximum resolver deviation value is found in the change of the resolver deviation during the speed increase process, and a second maximum resolver deviation value is found in the change of the resolver deviation during the speed decrease process, and the maximum value of the first maximum resolver deviation value and the second maximum resolver deviation value is used as the resolver deviation to be verified of the motor to be tested.

[0094] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0095] The first working condition test process is executed N times in a loop, and the first working condition test process includes: sending a peak speed command to the motor to be tested, the peak speed command carries the peak speed and the speed-up time, so that the motor to be tested increases the speed from zero to the peak speed according to the speed-up time; and recording the change of the resolver deviation in the process of the speed increasing to the peak speed; when it is detected that the speed increases to the peak speed, sending a speed clearing command to the motor to be tested, the speed clearing command carries the speed reduction time, so that the motor to be tested reduces the speed to zero according to the speed reduction time; and recording the change of the resolver deviation in the process of the speed reducing to zero; in the change of the resolver deviation in the process of the speed increasing to the peak speed, and in the change of the resolver deviation in the process of the speed reducing to zero, finding the maximum resolver deviation value; when the maximum resolver deviation value obtained in each cycle is less than the preset deviation threshold, updating the speed-up time and the speed reduction time, if the maximum resolver deviation value obtained in each cycle after the update is still less than the preset threshold, it is determined that the out-of-tolerance verification is passed.

[0096] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0097] The second working condition test process is executed in a loop M times, and the second working condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value and a first speed-up time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed-up time; when it is detected that the speed increases to the fixed speed value, sending a torque external characteristic command to the motor to be tested, the torque external characteristic command carries a peak external characteristic and a growth time, so that the motor to be tested increases the torque to the peak external characteristic according to the growth time; when it is detected that the torque increases to the peak external characteristic, sending a peak speed command to the motor to be tested. The peak speed instruction carries the peak speed, the second speed-up time and the peak maintenance time, so that the motor to be tested increases the speed from the speed constant to the peak speed according to the second speed-up time, and maintains the peak maintenance time at the peak speed; after detecting that the peak maintenance time is reached, sending a speed reset instruction and a torque reset instruction to the motor to be tested, so that the motor to be tested resets the speed and torque, records the torque accuracy change during the second working condition test, and searches for the minimum torque accuracy in the torque accuracy change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

[0098] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0099] The third operating condition test process is executed P times in a loop, and the third operating condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value, a first speed increase time and a fixed value maintenance time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed increase time, and maintains the fixed value maintenance time; after detecting that the fixed value maintenance time is reached, sending a peak speed command and a torque external characteristic command to the motor to be tested, the peak speed command carries a peak speed and a second speed increase time, and the torque external characteristic command carries a peak external characteristic and a growth time, so as to instruct the motor to be tested to increase the speed from the fixed speed value to the peak speed according to the second speed increase time, and increase the torque to the peak external characteristic according to the growth time; after detecting that the fixed value maintenance time is reached, When it is detected that the speed increases to the peak speed, a speed reduction instruction is sent to the motor to be tested, and the speed reduction instruction carries the speed setting value and the speed reduction duration, so that the motor to be tested reduces the speed from the peak speed to the speed setting value according to the speed reduction duration; when it is detected that the speed is reduced to the speed setting value, a speed reset instruction and a torque reset instruction are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, and records the torque accuracy change and the resolver deviation change during the third working condition test, and searches for the minimum torque accuracy in the torque accuracy change, and searches for the maximum resolver deviation value in the resolver deviation change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, and the maximum resolver deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification is passed.

[0100] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0101] After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded;

[0102] Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0103] When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

[0104] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0105] A first instruction for entering a speed-up phase is sent to the motor to be tested, wherein the first instruction carries a speed-up target value and a speed-up rate, so that the motor to be tested increases its speed to the speed-up target value according to the speed-up rate; a second instruction for entering a calculation phase is sent to the motor to be tested, wherein the second instruction carries a speed-down target value and a speed-down rate, so that the motor to be tested reduces its speed to the speed-down target value according to the speed-down rate; when it is detected that the speed has reduced to the speed-down target value, a third instruction for entering an output phase is sent to the motor to be tested, so as to instruct the motor to be tested to reduce its speed to zero.

[0106] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0107] A first maximum resolver deviation value is found in the change of the resolver deviation during the speed increase process, and a second maximum resolver deviation value is found in the change of the resolver deviation during the speed decrease process, and the maximum value of the first maximum resolver deviation value and the second maximum resolver deviation value is used as the resolver deviation to be verified of the motor to be tested.

[0108] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0109] The first working condition test process is executed N times in a loop, and the first working condition test process includes: sending a peak speed command to the motor to be tested, the peak speed command carries the peak speed and the speed-up time, so that the motor to be tested increases the speed from zero to the peak speed according to the speed-up time; and recording the change of the resolver deviation in the process of the speed increasing to the peak speed; when it is detected that the speed increases to the peak speed, sending a speed clearing command to the motor to be tested, the speed clearing command carries the speed reduction time, so that the motor to be tested reduces the speed to zero according to the speed reduction time; and recording the change of the resolver deviation in the process of the speed reducing to zero; in the change of the resolver deviation in the process of the speed increasing to the peak speed, and in the change of the resolver deviation in the process of the speed reducing to zero, finding the maximum resolver deviation value; when the maximum resolver deviation value obtained in each cycle is less than the preset deviation threshold, updating the speed-up time and the speed reduction time, if the maximum resolver deviation value obtained in each cycle after the update is still less than the preset threshold, it is determined that the out-of-tolerance verification is passed.

[0110] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0111] The second working condition test process is executed in a loop M times, and the second working condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value and a first speed-up time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed-up time; when it is detected that the speed increases to the fixed speed value, sending a torque external characteristic command to the motor to be tested, the torque external characteristic command carries a peak external characteristic and a growth time, so that the motor to be tested increases the torque to the peak external characteristic according to the growth time; when it is detected that the torque increases to the peak external characteristic, sending a peak speed command to the motor to be tested. The peak speed instruction carries the peak speed, the second speed-up time and the peak maintenance time, so that the motor to be tested increases the speed from the speed constant to the peak speed according to the second speed-up time, and maintains the peak maintenance time at the peak speed; after detecting that the peak maintenance time is reached, sending a speed reset instruction and a torque reset instruction to the motor to be tested, so that the motor to be tested resets the speed and torque, records the torque accuracy change during the second working condition test, and searches for the minimum torque accuracy in the torque accuracy change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

[0112] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0113] The third operating condition test process is executed P times in a loop, and the third operating condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value, a first speed increase time and a fixed value maintenance time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed increase time, and maintains the fixed value maintenance time; after detecting that the fixed value maintenance time is reached, sending a peak speed command and a torque external characteristic command to the motor to be tested, the peak speed command carries a peak speed and a second speed increase time, and the torque external characteristic command carries a peak external characteristic and a growth time, so as to instruct the motor to be tested to increase the speed from the fixed speed value to the peak speed according to the second speed increase time, and increase the torque to the peak external characteristic according to the growth time; after detecting that the fixed value maintenance time is reached, When it is detected that the speed increases to the peak speed, a speed reduction instruction is sent to the motor to be tested, and the speed reduction instruction carries the speed setting value and the speed reduction duration, so that the motor to be tested reduces the speed from the peak speed to the speed setting value according to the speed reduction duration; when it is detected that the speed is reduced to the speed setting value, a speed reset instruction and a torque reset instruction are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, and records the torque accuracy change and the resolver deviation change during the third working condition test, and searches for the minimum torque accuracy in the torque accuracy change, and searches for the maximum resolver deviation value in the resolver deviation change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, and the maximum resolver deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification is passed.

[0114] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0115] After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded;

[0116] Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process;

[0117] When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

[0118] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0119] A first instruction for entering a speed-up phase is sent to the motor to be tested, wherein the first instruction carries a speed-up target value and a speed-up rate, so that the motor to be tested increases its speed to the speed-up target value according to the speed-up rate; a second instruction for entering a calculation phase is sent to the motor to be tested, wherein the second instruction carries a speed-down target value and a speed-down rate, so that the motor to be tested reduces its speed to the speed-down target value according to the speed-down rate; when it is detected that the speed has reduced to the speed-down target value, a third instruction for entering an output phase is sent to the motor to be tested, so as to instruct the motor to be tested to reduce its speed to zero.

[0120] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0121] A first maximum resolver deviation value is found in the change of the resolver deviation during the speed increase process, and a second maximum resolver deviation value is found in the change of the resolver deviation during the speed decrease process, and the maximum value of the first maximum resolver deviation value and the second maximum resolver deviation value is used as the resolver deviation to be verified of the motor to be tested.

[0122] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0123] The first working condition test process is executed N times in a loop, and the first working condition test process includes: sending a peak speed command to the motor to be tested, the peak speed command carries the peak speed and the speed-up time, so that the motor to be tested increases the speed from zero to the peak speed according to the speed-up time; and recording the change of the resolver deviation in the process of the speed increasing to the peak speed; when it is detected that the speed increases to the peak speed, sending a speed clearing command to the motor to be tested, the speed clearing command carries the speed reduction time, so that the motor to be tested reduces the speed to zero according to the speed reduction time; and recording the change of the resolver deviation in the process of the speed reducing to zero; in the change of the resolver deviation in the process of the speed increasing to the peak speed, and in the change of the resolver deviation in the process of the speed reducing to zero, finding the maximum resolver deviation value; when the maximum resolver deviation value obtained in each cycle is less than the preset deviation threshold, updating the speed-up time and the speed reduction time, if the maximum resolver deviation value obtained in each cycle after the update is still less than the preset threshold, it is determined that the out-of-tolerance verification is passed.

[0124] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0125] The second working condition test process is executed in a loop M times, and the second working condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value and a first speed-up time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed-up time; when it is detected that the speed increases to the fixed speed value, sending a torque external characteristic command to the motor to be tested, the torque external characteristic command carries a peak external characteristic and a growth time, so that the motor to be tested increases the torque to the peak external characteristic according to the growth time; when it is detected that the torque increases to the peak external characteristic, sending a peak speed command to the motor to be tested. The peak speed instruction carries the peak speed, the second speed-up time and the peak maintenance time, so that the motor to be tested increases the speed from the speed constant to the peak speed according to the second speed-up time, and maintains the peak maintenance time at the peak speed; after detecting that the peak maintenance time is reached, sending a speed reset instruction and a torque reset instruction to the motor to be tested, so that the motor to be tested resets the speed and torque, records the torque accuracy change during the second working condition test, and searches for the minimum torque accuracy in the torque accuracy change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

[0126] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0127] The third operating condition test process is executed P times in a loop, and the third operating condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value, a first speed increase time and a fixed value maintenance time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed increase time, and maintains the fixed value maintenance time; after detecting that the fixed value maintenance time is reached, sending a peak speed command and a torque external characteristic command to the motor to be tested, the peak speed command carries a peak speed and a second speed increase time, and the torque external characteristic command carries a peak external characteristic and a growth time, so as to instruct the motor to be tested to increase the speed from the fixed speed value to the peak speed according to the second speed increase time, and increase the torque to the peak external characteristic according to the growth time; after detecting that the fixed value maintenance time is reached, When it is detected that the speed increases to the peak speed, a speed reduction instruction is sent to the motor to be tested, and the speed reduction instruction carries the speed setting value and the speed reduction duration, so that the motor to be tested reduces the speed from the peak speed to the speed setting value according to the speed reduction duration; when it is detected that the speed is reduced to the speed setting value, a speed reset instruction and a torque reset instruction are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, and records the torque accuracy change and the resolver deviation change during the third working condition test, and searches for the minimum torque accuracy in the torque accuracy change, and searches for the maximum resolver deviation value in the resolver deviation change; when the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, and the maximum resolver deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification is passed.

[0128] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0130] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A motor detection method, characterized in that: The method comprises: After receiving the resolver deviation calibration instruction, the speed of the motor to be tested is controlled to increase, and the change of the resolver deviation during the speed increase process is recorded; when the speed is detected to increase to the speed increase target value, the speed of the motor to be tested is controlled to decrease, and the change of the resolver deviation during the speed decrease process is recorded; Determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process; When the resolver deviation of the motor to be tested is within a preset range, an out-of-tolerance verification is performed on the resolver deviation of the motor to be tested, and whether the motor to be tested is qualified is determined based on the out-of-tolerance verification result.

2. The method according to claim 1, characterized in that The speed increase control of the motor to be tested comprises: Sending a first instruction to the motor to be tested to enter a speed-up phase, wherein the first instruction carries a speed-up target value and a speed-up rate, so that the motor to be tested increases its speed to the speed-up target value according to the speed-up rate; The speed reduction control of the motor to be tested includes: Sending a second instruction to the motor to be tested to enter a calculation phase, wherein the second instruction carries a speed reduction target value and a speed reduction rate, so that the motor to be tested reduces the speed to the speed reduction target value according to the speed reduction rate; The method further comprises: When it is detected that the rotation speed is reduced to the speed reduction target value, a third instruction for entering the output phase is sent to the motor to be tested to instruct the motor to reduce the rotation speed to zero.

3. The method according to claim 1, characterized in that The method of determining the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process includes: A first maximum resolver deviation value is found in the change of the resolver deviation during the speed increase process, and a second maximum resolver deviation value is found in the change of the resolver deviation during the speed decrease process, and the maximum value of the first maximum resolver deviation value and the second maximum resolver deviation value is used as the resolver deviation to be verified of the motor to be tested.

4. The method according to claim 1, characterized in that: The step of performing out-of-tolerance verification on the resolver deviation to be verified of the motor to be tested includes: The first working condition test process is executed N times in a loop, wherein the first working condition test process includes: sending a peak speed command to the motor to be tested, wherein the peak speed command carries the peak speed and the speed increase duration, so that the motor to be tested increases the speed from zero to the peak speed according to the speed increase duration; and recording the change of the resolver deviation during the process of the speed increase to the peak speed; when it is detected that the speed increases to the peak speed, sending a speed clearing command to the motor to be tested, wherein the speed clearing command carries the speed reduction duration, so that the motor to be tested reduces the speed to zero according to the speed reduction duration; and recording the change of the resolver deviation during the process of the speed reduction to zero; finding the maximum resolver deviation value in the change of the resolver deviation during the process of the speed increase to the peak speed and the change of the resolver deviation during the process of the speed reduction to zero; When the maximum resolver deviation value obtained in each cycle is less than the preset deviation threshold, the speed-up time and the speed-down time are updated. If the maximum resolver deviation value obtained in each cycle after the update is still less than the preset threshold, it is determined that the out-of-tolerance verification has passed.

5. The method according to claim 1, characterized in that The step of performing out-of-tolerance verification on the resolver deviation to be verified of the motor to be tested includes: The second working condition test process is executed M times in a loop, and the second working condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carries a fixed speed value and a first speed-up time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed-up time, and when it is detected that the speed increases to the fixed speed value, sending a torque external characteristic command to the motor to be tested, the torque external characteristic command carries a peak external characteristic and a growth time, so that the motor to be tested increases the torque to the peak external characteristic according to the growth time; when it is detected that the torque increases to the peak external characteristic, When the characteristic is detected, a peak speed instruction is sent to the motor to be tested, the peak speed instruction carries the peak speed, the second speed-up time and the peak maintenance time, so that the motor to be tested increases the speed from the speed constant to the peak speed according to the second speed-up time, and maintains the peak maintenance time at the peak speed; after detecting that the peak maintenance time is reached, a speed reset instruction and a torque reset instruction are sent to the motor to be tested, so that the motor to be tested resets the speed and torque, records the torque accuracy change during the second working condition test, and searches for the minimum torque accuracy in the torque accuracy change; When the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

6. The method according to claim 1, characterized in that The step of performing out-of-tolerance verification on the resolver deviation to be verified of the motor to be tested includes: The third working condition test process is executed P times in a loop, and the third working condition test process includes: sending a fixed speed command to the motor to be tested, the fixed speed command carrying a fixed speed value, a first speed increase time and a fixed value maintenance time, so that the motor to be tested increases the speed from zero to the fixed speed value according to the first speed increase time, and maintains the fixed value maintenance time; after detecting that the fixed value maintenance time is reached, sending a peak speed command and a torque external characteristic command to the motor to be tested, the peak speed command carrying a peak speed and a second speed increase time, and the torque external characteristic command carrying a peak external characteristic and a growth time, so as to instruct the motor to be tested to increase the speed from the fixed speed value to the peak speed according to the second speed increase time. value speed, increase the torque to the peak external characteristic according to the growth time; when it is detected that the speed is increased to the peak speed, send a speed reduction instruction to the motor to be tested, the speed reduction instruction carries the speed setting value and the speed reduction time, so that the motor to be tested reduces the speed from the peak speed to the speed setting value according to the speed reduction time; when it is detected that the speed is reduced to the speed setting value, send a speed reset instruction and a torque reset instruction to the motor to be tested, so that the motor to be tested resets the speed and torque, records the torque accuracy change and the resolver deviation change during the third working condition test, finds the minimum torque accuracy in the torque accuracy change, and finds the maximum resolver deviation value in the resolver deviation change; When the minimum torque accuracy obtained in each cycle is greater than the preset accuracy threshold and the maximum resolver deviation value is less than the preset accuracy threshold, it is determined that the out-of-tolerance verification has passed.

7. A motor detection device, characterized in that: The device comprises: The control module is used to, after receiving the resolver deviation verification instruction, perform speed increase control on the motor to be tested, and record the change of the resolver deviation during the speed increase process; when it is detected that the speed increases to the speed increase target value, perform speed reduction control on the motor to be tested, and record the change of the resolver deviation during the speed reduction process; A determination module, used to determine the resolver deviation to be verified of the motor to be tested based on the change of the resolver deviation during the speed increase process and the change of the resolver deviation during the speed decrease process; The out-of-tolerance verification module is used to perform out-of-tolerance verification on the resolver deviation of the motor to be tested when the resolver deviation of the motor to be tested is within a preset range, and determine whether the motor to be tested is qualified based on the out-of-tolerance verification result.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.