A vehicle control method and vehicle based on a resolver position sensor

By determining the rotor angle change in the vehicle control method using a resolver position sensor and stopping the motor operation or using a backup angle and speed when necessary, the rotor angle error caused by vibration of the resolver position sensor is solved, and more accurate vehicle control is achieved.

CN123104422APending Publication Date: 2026-11-17FANJI TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611546876.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-08
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The rotor angle error is large when the resolver position sensor changes its installation position when the vehicle vibrates, making it impossible to accurately control the vehicle's operation.

Method used

During the current speed control cycle, determine whether the rotor angle change output by the resolver position sensor exceeds the sum of the threshold and the deviation threshold. If it does, stop the motor and issue a fault warning. If it is within an acceptable range, use the spare angle and the previous speed to control the motor.

Benefits of technology

Protect the motor and vehicle, prevent sudden speed changes, improve the accuracy of vehicle control, and ensure stable vehicle operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123104422A_ABST
    Figure CN123104422A_ABST
Patent Text Reader

Abstract

This invention discloses a vehicle control method and vehicle based on a resolver position sensor. The method includes: in the current speed control cycle, when the change in the current rotor angle of the motor, determined according to the current rotor angle output by the decoder, is greater than the sum of a change threshold and a deviation threshold, controlling the motor to stop operation and issuing a fault warning; when the change in the current rotor angle is less than or equal to the sum of the change threshold and the deviation threshold, if the motor's speed in the previous speed control cycle was not zero, and the current rotor angle change is greater than the sum of the currently estimated change and the deviation threshold, then a spare angle is used as the current rotor angle, and the previous speed is used as the current speed; controlling the motor operation based on the current speed and the current rotor angle. The technical solution of this invention improves the accuracy of vehicle control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle control technology, and in particular to a vehicle control method and vehicle based on a resolver position sensor. Background Technology

[0002] A resolver position sensor is a type of absolute position encoder. Resolver position sensors are widely used due to their high accuracy, strong anti-interference capability, and long lifespan.

[0003] A resolver position sensor is an angle detection device based on the principle of electromagnetic induction. It accurately measures the absolute position and rotational speed of a rotor by outputting sine and cosine signals. Vehicle controllers typically integrate a dedicated resolver decoding chip. This chip acquires the sine and cosine signals fed back from the resolver position sensor and calculates the electrical angle of the motor rotor based on these signals. The motor driver in the controller can then control the motor according to the determined electrical angle.

[0004] However, when resolver position sensors are used, changes in the installation position caused by vehicle vibrations may occur, leading to sudden changes in the known rotor angle. This results in a large rotor angle error, making it impossible to accurately control vehicle operation. Summary of the Invention

[0005] This invention provides a vehicle control method and vehicle based on a resolver position sensor to improve the accuracy of vehicle control.

[0006] According to one aspect of the present invention, a vehicle control method based on a resolver position sensor is provided. The vehicle includes a motor and a controller, the motor being connected to the controller, the controller including a decoder, a resolver position sensor being mounted on the motor, and the resolver position sensor being connected to the decoder; the method is executed by the controller. The method includes: During the current speed control cycle, when the change in the current rotor angle of the motor, determined according to the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold, the motor is controlled to stop running and a fault prompt is issued. When the change in the current rotor angle is less than or equal to the sum of the change threshold and the deviation threshold, if the motor speed in the previous speed control cycle was not zero, and the change in the current rotor angle is greater than the sum of the current estimated change and the deviation threshold, then the spare angle is used as the current rotor angle, and the previous speed is used as the current speed. The motor is controlled to operate based on the current rotational speed and the current rotor angle.

[0007] Optionally, after controlling the motor operation based on the current rotational speed and the current rotor angle, the vehicle control method based on the resolver position sensor further includes: If the actual speed of the motor is not zero in the next speed control cycle, and the change in the next rotor angle of the motor determined according to the next rotor angle output by the decoder is greater than the sum of the next estimated change and the deviation threshold, then the motor will be controlled to stop running and a fault prompt will be issued.

[0008] Optionally, before the change in the current rotor angle of the motor, determined according to the current rotor angle output by the decoder, is greater than the sum of a change threshold and a deviation threshold, the vehicle control method based on the resolver position sensor further includes: The difference between the current rotor angle output by the decoder and the rotor angle of the previous speed control cycle is taken as the change in the current rotor angle. The threshold value of the change is determined based on the maximum speed of the motor, the number of pole pairs of the motor, and the speed control frequency.

[0009] Optionally, determining the change threshold based on the maximum speed of the motor, the number of pole pairs of the motor, and the speed control frequency includes: The product of the maximum rotational speed and the number of pole pairs is divided by the rotational speed control frequency to obtain the threshold value of the change.

[0010] Optionally, if the previous rotational speed of the motor is not zero, and the change in the current rotor angle is greater than the sum of the current estimated change and the deviation threshold, then before using the spare angle as the current rotor angle and using the previous rotational speed of the previous rotational speed control cycle as the current rotational speed, the vehicle control method based on the resolver position sensor further includes: The current estimated change is determined based on the previous speed of the motor, the number of pole pairs of the motor, and the speed control frequency. The spare angle is determined based on the rotor angle of the previous speed control cycle.

[0011] Optionally, determining the spare angle based on the rotor angle of the previous speed control cycle includes: The sum of the previous rotor angle and the current estimated change is used as the backup angle.

[0012] Optionally, the vehicle control method based on a resolver position sensor further includes: In the current speed control cycle, if the previous speed of the motor was zero, then when the current rotor angle change is greater than the deviation threshold, the inverter circuit connected to the motor is controlled to stop outputting voltage and issue a fault warning.

[0013] Optionally, the vehicle control method based on a resolver position sensor further includes: During the current speed control cycle, if fault information is received from the decoder, the first fault count value is incremented by one. If the first fault count value is greater than the first threshold, the inverter circuit connected to the motor is controlled to stop outputting voltage and a fault prompt is issued. If the first fault count value is less than or equal to the first threshold, then the first fault count value is set to zero.

[0014] Optionally, the vehicle control method based on a resolver position sensor further includes: During the current speed control cycle, if fault information is received from the decoder, the second fault count value is incremented by one. If the current cycle count value reaches the query cycle threshold, then when the second fault count value is greater than the second threshold, the motor is controlled to stop running and a fault prompt is issued; wherein, the query cycle threshold is the product of the query cycle duration and the speed control frequency; wherein, the speed control frequency is greater than 1Hz; When the second fault count value is less than or equal to the second threshold, the second fault count value is set to zero.

[0015] According to another aspect of the present invention, a vehicle is provided, the vehicle including a motor and a controller, the motor being connected to the controller, the controller including a decoder, a resolver position sensor mounted on the motor and connected to the decoder; the controller is used to execute the vehicle control method based on a resolver position sensor according to any embodiment of the present invention.

[0016] The technical solution of this invention, in the current speed control cycle, when the change in the current rotor angle of the motor, determined according to the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold, controls the motor to stop running and issues a fault warning. This achieves the effect of protecting the motor and the vehicle, avoiding excessively sudden changes in motor speed when controlling the motor based on a large change in rotor angle, which could lead to the vehicle lurching off course or stopping abruptly. This allows for more accurate vehicle control. When the change in the current rotor angle is less than or equal to the sum of the change threshold and the deviation threshold, if the motor speed in the previous speed control cycle was not zero, and the current rotor angle change is greater than the sum of the current estimated change and the deviation threshold, it indicates that the current rotor angle change is large but within an acceptable range. In this case, a spare angle is used as the current rotor angle, and the previous speed is used as the current speed. The motor is then controlled based on the current speed and the current rotor angle. This avoids the problem of sudden changes in motor speed when the current rotor angle change is large, allowing for more accurate vehicle control and improving the accuracy of vehicle control.

[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of a vehicle control method based on a resolver position sensor provided in an embodiment of the present invention; Figure 2 This is a flowchart of another vehicle control method based on a resolver position sensor provided in an embodiment of the present invention; Figure 3 This is a flowchart of another vehicle control method based on a resolver position sensor provided in an embodiment of the present invention; Figure 4 This is a flowchart of another vehicle control method based on a resolver position sensor provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the circuit structure of a vehicle provided in an embodiment of the present invention. Detailed Implementation

[0020] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0022] This invention provides a vehicle control method based on a resolver position sensor. The vehicle includes a motor and a controller, which are connected. The controller includes a decoder, and a resolver position sensor is mounted on the motor and connected to the decoder. The controller may also include a motor driver connected to the decoder. The vehicle control method based on the resolver position sensor can be executed by the vehicle's controller (e.g., by the motor driver within the controller). The vehicle can be an electric vehicle, such as an electric industrial vehicle. The resolver position sensor is an absolute position encoder. A resolver position sensor (full name: resolver-type position sensor) is an electromagnetic sensor used to accurately measure rotation angle and angular velocity. The resolver position sensor includes a sine winding and a cosine winding. When the motor rotor rotates, the two windings of the resolver position sensor induce voltage signals related to the rotor angle. The sine winding outputs a sine signal, and the cosine winding outputs a cosine signal. The decoder includes a resolver decoding chip, which can acquire the sine and cosine signals fed back by the resolver position sensor and calculate the electrical angle of the motor rotor based on the sine and cosine signals.

[0023] Figure 1 This is a flowchart of a vehicle control method based on a resolver position sensor provided in an embodiment of the present invention, referred to as... Figure 1 Vehicle control methods based on resolver position sensors include: S110. In the current speed control cycle, determine whether the change in the current rotor angle of the motor, determined by the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold. If yes, proceed to step S120; otherwise, proceed to step S130.

[0024] During motor operation, a speed control cycle is executed cyclically, that is, a speed control cycle is executed periodically, and steps S110 to S140 are executed in each speed control cycle.

[0025] Specifically, based on the current rotor angle output by the decoder, the change in the current rotor angle of the motor within the current speed control cycle can be determined. For example, the change in the current rotor angle is the change between the current rotor angle in the current speed control cycle and the rotor angle in the previous speed control cycle, which is the change in rotor angle within one speed control cycle. When determining whether the change in the current rotor angle of the motor, determined based on the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold, the change in the current rotor angle can be defaulted to zero when the current speed control cycle is the first speed control cycle.

[0026] The change threshold is either the preset maximum change value of the rotor angle, or the change in rotor angle within a speed control cycle determined based on the motor's maximum speed; no specific limitation is imposed here. The deviation threshold is a preset allowable deviation. By setting the deviation threshold, a fault is not automatically identified when the current rotor angle change is slightly greater than the threshold, thus avoiding false alarms.

[0027] S120: Control the motor to stop running and issue a fault warning.

[0028] Specifically, if the current rotor angle change of the motor is greater than the sum of the change threshold and the deviation threshold, it indicates that the current rotor angle change is too large. This may be due to changes in the installation position of the resolver position sensor caused by vehicle vibration, leading to a sudden change in the determined rotor angle and thus a large rotor angle error. In this case, a fault is identified, the motor is stopped, and a fault warning is issued. This effectively protects both the motor and the vehicle, preventing excessively large changes in motor speed caused by controlling the motor based on large electrical angle fluctuations, which could lead to the vehicle overshooting or other problems. This allows for more accurate vehicle control.

[0029] S130. If the motor speed in the previous speed control cycle was not zero, and the current rotor angle change is greater than the sum of the current estimated change and the deviation threshold, then the spare angle is used as the current rotor angle, and the previous speed is used as the current speed.

[0030] The current estimated change is the change in the rotor's electrical angle within one speed control cycle, calculated based on the motor's previous speed. The previous speed is the motor speed determined in the previous speed control cycle.

[0031] Specifically, when the current rotor angle change of the motor is less than or equal to the sum of the change threshold and the deviation threshold, it indicates that the current rotor angle change is within an acceptable range. At this point, if the current motor speed is not zero (i.e., the vehicle is in motion), and the current rotor angle change is greater than the sum of the estimated change and the deviation threshold, it indicates a large change in the current rotor angle. In this case, a spare angle is used as the current rotor angle, and the speed from the previous speed control cycle is used as the current speed. This allows the determination of the current rotor angle and current speed for the current speed control cycle. Controlling the motor operation according to the current rotor angle and current speed avoids the problem of sudden changes in motor speed when the current rotor angle change is large, enabling more accurate vehicle control and improving vehicle control accuracy.

[0032] The spare angle can be a preset angle. Alternatively, the spare angle can be a rotor angle determined based on the rotor angle of the previous speed control cycle, allowing the motor to continue operating according to the rotor angle and speed of the previous speed control cycle, thus avoiding sudden changes in motor speed. For example, when using the spare angle as the current rotor angle and the previous speed as the current speed, such as when the current speed control cycle is the first speed control cycle, both the previous speed and the previous rotor angle are zero.

[0033] S140: Control the motor operation based on the current speed and current rotor angle.

[0034] Specifically, motor operation can be controlled using speed loops and current loops. The current loop can include a direct-axis current loop and a quadrature-axis current loop. The direct axis is the d-axis in a two-phase rotating coordinate system, and the quadrature axis is the q-axis. The speed loop, direct-axis current loop, and quadrature-axis current loop can all employ proportional-integral (PI) control strategies. The current speed and the current speed command for the current speed control cycle are input to the speed loop. The output value of the speed loop serves as the current target quadrature-axis current for the quadrature-axis current loop. Based on the current rotor angle, the current current of the motor is transformed to obtain the actual quadrature-axis current and the actual direct-axis current. The actual quadrature-axis current and the current target quadrature-axis current are input to the quadrature-axis current loop, and the actual direct-axis current and the current target direct-axis current are input to the direct-axis current loop. The output values ​​of the direct-axis current loop and the quadrature-axis current loop are transformed and then pulse-width modulated to obtain the control signal for the inverter circuit connected to the motor. This control signal is output to the inverter circuit, controlling the voltage output from the inverter circuit to the motor, thereby controlling the motor speed and ultimately controlling the vehicle. The current speed command can be a target speed determined based on the travel of the accelerator pedal, where the accelerator pedal travels as it is depressed. The accelerator pedal travel corresponds to the motor's target speed; for example, when the accelerator pedal travel is zero, the target speed is zero; when the accelerator pedal travel is 100%, the target speed is the motor's maximum speed. For example, the current target direct-axis current and the current target quadrature-axis current may be equal, but this is not explicitly limited here.

[0035] In this case, the motor is a three-phase motor. The current current of the motor is transformed according to the current rotor angle to obtain the actual quadrature-axis current and the actual direct-axis current of the motor. Specifically, the current current of the motor (three-phase current) is transformed into a two-phase stationary coordinate system by Clark transformation, and then transformed into a two-phase rotating coordinate system according to the current rotor angle to obtain the actual quadrature-axis current and the actual direct-axis current.

[0036] The inverter circuit is connected between the battery and the motor. It converts the direct current (DC) output from the battery into three-phase alternating current (AC) output to the motor. The inverter circuit may include power transistors, and control signals output to it can control the conduction time of these transistors, thereby controlling the output voltage of the inverter circuit.

[0037] The technical solution of this embodiment, in the current speed control cycle, when the change in the current rotor angle of the motor, determined according to the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold, controls the motor to stop running and issues a fault warning. This achieves the effect of protecting the motor and the vehicle, avoiding excessively sudden changes in motor speed when controlling the motor based on a large change in rotor angle, which could lead to the vehicle lurching off course or stopping abruptly. This allows for more accurate vehicle control. When the change in the current rotor angle is less than or equal to the sum of the change threshold and the deviation threshold, if the motor speed in the previous speed control cycle was not zero, and the current rotor angle change is greater than the sum of the current estimated change and the deviation threshold, it indicates that the current rotor angle change is large but within an acceptable range. In this case, a spare angle is used as the current rotor angle, and the previous speed is used as the current speed. The motor is then controlled based on the current speed and the current rotor angle. This avoids the problem of sudden changes in motor speed when the current rotor angle change is large, allowing for more accurate vehicle control and improving the accuracy of vehicle control.

[0038] Based on the above technical solutions, Figure 2 This is a flowchart of another vehicle control method based on a resolver position sensor provided in an embodiment of the present invention. Optionally, refer to... Figure 2 Vehicle control methods based on resolver position sensors include: S210. In the current speed control cycle, determine whether the change in the current rotor angle of the motor, determined by the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold. If yes, proceed to step S220; otherwise, proceed to step S230.

[0039] S220: Control the motor to stop running and issue a fault warning.

[0040] S230. If the motor speed in the previous speed control cycle was not zero, and the current rotor angle change is greater than the sum of the current estimated change and the deviation threshold, then the spare angle is used as the current rotor angle, and the previous speed is used as the current speed.

[0041] S240: Control the motor operation based on the current speed and current rotor angle.

[0042] S250. If the actual speed of the motor is not zero in the next speed control cycle, and the change in the next rotor angle of the motor determined by the next rotor angle output by the decoder is greater than the sum of the next estimated change and the deviation threshold, then the motor will be stopped and a fault warning will be issued.

[0043] Specifically, in the current speed control cycle, after controlling the motor to run based on the current speed and the current rotor angle, the next speed control cycle begins. If, in the next speed control cycle, the actual speed of the motor is not zero, and the change in the next rotor angle of the motor, determined by the next rotor angle output by the decoder, is greater than the sum of the next estimated change and the deviation threshold, it indicates that the change in the rotor angle of the motor is continuously large. In this case, it is determined that there may be a fault, so the motor is controlled to stop running and a fault prompt is issued.

[0044] The actual motor speed can be the current speed of the current speed control cycle. For example, if the current speed control cycle is the m-th speed control cycle and the next speed control cycle is the (m+1)-th speed control cycle, then the actual motor speed can be the current speed determined in the m-th speed control cycle. Here, m is a positive integer. The next rotor angle change is determined based on the current rotor angle determined in the m-th speed control cycle and the next rotor angle output by the decoder. The next estimated change is determined based on the current speed determined in the m-th speed control cycle.

[0045] Optionally, if the actual speed of the motor is not zero in the next speed control cycle, and the change in the next rotor angle of the motor determined by the next rotor angle output by the decoder is less than or equal to the sum of the next estimated change and the deviation threshold, then the next speed of the motor can be calculated based on the next rotor angle output by the decoder in the next speed control cycle, and the motor can be controlled to run based on the next speed and the next rotor angle.

[0046] Based on the above technical solutions, Figure 3 This is a flowchart of another vehicle control method based on a resolver position sensor provided in an embodiment of the present invention. Optionally, refer to... Figure 3 Vehicle control methods based on resolver position sensors include: S310. In the current speed control cycle, the difference between the current rotor angle output by the decoder and the rotor angle of the previous speed control cycle is used as the change in the current rotor angle.

[0047] Specifically, the previous rotor angle is the rotor angle determined in the previous speed control cycle. The difference between the current rotor angle output by the decoder and the previous rotor angle can be used as the change in the current rotor angle, which is the change in rotor angle within one speed control cycle. For example, if the current speed control cycle is the j-th speed control cycle, and the current rotor angle is θ... (j) The previous rotor angle is θ (j-1) The current change in rotor angle is θ. (j) -θ (j-1) Where j is a positive integer, for example, when j is 1, the current rotor angle change is zero.

[0048] S320. Determine the threshold value of the change amount based on the maximum speed of the motor, the number of pole pairs of the motor, and the speed control frequency.

[0049] Among them, the speed control frequency is the frequency of the speed control cycle, which is the reciprocal of the cycle length of one speed control cycle.

[0050] Specifically, based on the motor's maximum speed, number of pole pairs, and speed control frequency, the maximum electrical angle change within one speed control cycle can be determined, which is the change threshold. Thus, it can be determined whether the current rotor angle change exceeds the maximum electrical angle change, thereby determining whether the current rotor angle change is excessive.

[0051] S330. In the current speed control cycle, determine whether the change in the current rotor angle of the motor, determined by the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold. If yes, proceed to step S340; otherwise, proceed to step S350.

[0052] S340: Control the motor to stop running and issue a fault warning.

[0053] S350. If the motor speed in the previous speed control cycle was not zero, and the current rotor angle change is greater than the sum of the current estimated change and the deviation threshold, then the spare angle is used as the current rotor angle, and the previous speed is used as the current speed.

[0054] S360: Controls motor operation based on current speed and current rotor angle.

[0055] S370. If the actual speed of the motor is not zero in the next speed control cycle, and the change in the next rotor angle of the motor determined by the next rotor angle output by the decoder is greater than the sum of the next estimated change and the deviation threshold, then the motor will be stopped and a fault warning will be issued.

[0056] Optionally, the threshold value for the change is determined based on the motor's maximum speed, the number of pole pairs, and the speed control frequency, including: The threshold value of the change is obtained by multiplying the maximum speed by the number of pole pairs and dividing by the speed control frequency.

[0057] For example, if the maximum speed is Spd_max, the number of pole pairs of the motor is MPA, and the speed control frequency is F, then the change threshold is Spd_max × MPA / F. In this way, the maximum change in the electrical angle of the motor rotor within one speed control cycle can be determined, which is the change threshold.

[0058] Based on the above technical solutions, Figure 4This is a flowchart of another vehicle control method based on a resolver position sensor provided in an embodiment of the present invention. Optionally, refer to... Figure 4 Vehicle control methods based on resolver position sensors include: S410. In the current speed control cycle, the difference between the current rotor angle output by the decoder and the rotor angle of the previous speed control cycle is used as the change in the current rotor angle.

[0059] S420. Determine the threshold value of the change amount based on the maximum speed of the motor, the number of pole pairs of the motor, and the speed control frequency.

[0060] S430. In the current speed control cycle, determine whether the change in the current rotor angle of the motor, determined by the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold. If yes, proceed to step S440; otherwise, proceed to step S450.

[0061] S440: Control the motor to stop running and issue a fault warning.

[0062] S450. Determine the current estimated change based on the previous motor speed, the number of pole pairs of the motor, and the speed control frequency.

[0063] Specifically, based on the motor's previous speed, the number of pole pairs, and the speed control frequency, the change in electrical angle of the motor within one speed control cycle can be calculated from the previous speed; this is the current estimated change. For example, the current estimated change can be obtained by multiplying the previous speed by the number of pole pairs and dividing by the speed control frequency.

[0064] S460: Determine the standby angle based on the rotor angle of the previous speed control cycle.

[0065] Specifically, a spare angle is determined based on the previous rotor angle of the previous speed control cycle, and the spare angle is used as the current rotor angle. The current rotor angle can be determined based on the previous rotor angle. That is, when the change in the current rotor angle is large, the current rotor angle is determined based on the previous rotor angle. This ensures that when the motor is controlled according to the current rotor angle, the motor speed will not change abruptly. This avoids using electrical angle control with large changes and large errors, thus enabling more accurate control of vehicle operation.

[0066] S470. If the motor speed in the previous speed control cycle was not zero, and the current rotor angle change is greater than the sum of the current estimated change and the deviation threshold, then the spare angle is used as the current rotor angle, and the previous speed is used as the current speed.

[0067] S480: Control the motor operation based on the current speed and current rotor angle.

[0068] Optionally, the standby angle is determined based on the rotor angle of the previous speed control cycle, including: The sum of the previous rotor angle and the current estimated change is used as the spare angle.

[0069] Specifically, the current estimated change is determined based on the previous speed in the previous speed control cycle. Therefore, a spare angle can be determined based on the previous speed and rotor angle in the previous speed control cycle. This allows the current rotor angle to be determined based on the previous speed and rotor angle when the current rotor angle change is large. This ensures that the motor speed does not change abruptly when the motor is controlled according to the current rotor angle. For example, if the current speed control cycle is the j-th speed control cycle, the current estimated change is Δθ_ref, and the previous rotor angle is θ... (j-1) The spare angle is then △θ_ref+θ (j-1) .

[0070] Based on the above technical solutions, the vehicle control method based on the resolver position sensor may optionally include: In the current speed control cycle, if the previous speed of the motor was zero, then when the current rotor angle change is greater than the deviation threshold, the inverter circuit connected to the motor will stop outputting voltage and issue a fault warning (for example, this step can be performed before step S110 or after step S120, and is not limited here).

[0071] Specifically, when the previous speed of the motor is zero, it indicates that the vehicle is in a parking state. At this time, the current rotor angle change should be close to or equal to zero. If the current rotor angle change is greater than the deviation threshold, a fault is determined, and the inverter circuit connected to the motor stops outputting voltage to avoid damage to the motor. A fault prompt is also issued to remind the user in a timely manner.

[0072] It should be noted that when the motor speed is zero, i.e., when the vehicle is in a parking position, the inverter circuit connected to the motor may need to output voltage to the motor so that the motor's output torque provides the parking force. This means the motor's output torque is needed to counteract friction and vehicle weight. Therefore, if the current rotor angle change exceeds the deviation threshold when the motor's previous speed was zero, the inverter circuit connected to the motor still needs to stop outputting voltage. This ensures the motor does not run, improving the accuracy of vehicle control.

[0073] Optionally, the vehicle control method based on a resolver position sensor further includes: Step a1: In the current speed control cycle, if a fault information is received from the decoder, the first fault count value is incremented by one.

[0074] For example, the sum of the squares of the sine and cosine signals output by the resolver position sensor is close to or equal to 1. After the decoder acquires the sine and cosine signals output by the resolver position sensor, if it determines that the difference between the sum of the squares of the sine and cosine signals and 1 is large, for example, greater than a preset difference, then it determines that the resolver position sensor is faulty and outputs a fault signal to the motor driver in the controller. Alternatively, if the decoder determines that the signals (sine and / or cosine signals) are lost, it will output a fault signal to the motor driver in the controller.

[0075] Specifically, the decoder makes fault judgments based on the sine and cosine signals output by the resolver position sensor. When the decoder determines that the resolver position sensor has a fault and outputs the fault information to the electric driver in the controller, the motor driver in the controller will increment the first fault count value by one, thereby realizing fault counting to determine whether there are continuous faults in the resolver position sensor.

[0076] Step a2: If the first fault count value is greater than the first threshold, the inverter circuit connected to the motor will stop outputting voltage and issue a fault warning.

[0077] Specifically, if the first fault count value is greater than the first threshold, it indicates that the resolver position sensor has been continuously faulty for a long time. Therefore, a resolver position sensor fault can be determined, and the inverter circuit connected to the motor will stop outputting voltage, thus stopping the motor and issuing a fault warning. This achieves the effect of protecting both the motor and the vehicle, and avoids false alarms.

[0078] Step a3: If the first fault count value is less than or equal to the first threshold, then set the first fault count value to zero.

[0079] Specifically, if the first fault count is less than or equal to the first threshold, it indicates that the continuous fault time of the resolver position sensor is short, and the resolver position sensor may not be faulty. In this case, the first fault count is set to zero, and the counting restarts. This avoids misjudgments caused by occasional transmission errors between the decoder and the motor driver in the controller, or occasional judgment errors by the decoder. It also avoids sudden changes in motor speed and vehicle speed caused by misjudgments, achieving a more accurate vehicle control effect.

[0080] For example, steps a1 to a3 can be performed before step S110, and step S110 can be performed after the first fault count value is set to zero.

[0081] Optionally, the vehicle control method based on a resolver position sensor further includes: Step b1: If a fault message is received from the decoder during the current speed control cycle, increment the second fault count value by one.

[0082] Specifically, when the decoder determines that the resolver position sensor has a fault and outputs the fault information to the electric driver in the controller, the motor driver in the controller will increment the second fault count value by one, thereby realizing fault counting to determine whether there is an accumulated fault in the resolver position sensor.

[0083] Step b2: If the current cycle count value reaches the query cycle threshold, then when the second fault count value is greater than the second threshold, control the motor to stop running and issue a fault prompt; wherein, the query cycle threshold is the product of the query cycle duration and the speed control frequency; wherein, the speed control frequency is greater than 1Hz.

[0084] The query cycle threshold is the product of the query cycle duration and the speed control frequency, which is the number of speed control cycles executed within one query cycle.

[0085] The current cycle count value is the number of times the current speed control cycle has been executed in the current speed control cycle.

[0086] After executing step b1, if the query cycle is reached (i.e., the current cycle count value reaches the query cycle threshold), then step b2 or b3 is executed; otherwise, step S110 continues to be executed. That is, the query cycle is executed periodically according to the frequency of the query cycle. One query cycle includes multiple speed control cycles, and only after multiple speed control cycles are executed will a query cycle be executed, i.e., the operation of determining whether the second fault count value is greater than the second threshold is performed.

[0087] For example, if the cycle duration of the query cycle is t and the speed control frequency is F, then the query cycle threshold e is t×F. The cycle count value is counted cyclically from zero to e. When the cycle count value corresponding to the current speed control cycle (i.e., the current cycle count value) reaches e, it is determined whether the second fault count value is greater than the second threshold.

[0088] Specifically, when the current cycle count value reaches the query cycle threshold, it is determined whether the second fault count value is greater than the second threshold. If the second fault count value is greater than the second threshold, the inverter circuit connected to the motor is controlled to stop outputting voltage, i.e., the motor is controlled to stop running, and a fault prompt is issued. If the second fault count value is less than or equal to the second threshold, the second fault count value is set to zero, and the cycle count value is reset to zero, restarting the counting process.

[0089] Step b3: When the second fault count value is less than or equal to the second threshold, set the second fault count value to zero.

[0090] Specifically, if the first fault count is less than or equal to the first threshold, it indicates that the resolver position sensor has accumulated fewer faults within a query cycle, suggesting that the resolver position sensor may not be faulty. In this case, the second fault count is set to zero, and the counting restarts. This avoids sudden changes in motor speed and vehicle speed caused by misjudgments, achieving more accurate vehicle control.

[0091] For example, steps b1 to b3 can be executed before step S110, and step S110 can be executed after the second fault count value is set to zero. For example, steps b1 to b3 can be executed after steps a1 to a3 and before step S110, which is not limited here.

[0092] This invention also provides a vehicle. Figure 5 This is a schematic diagram of the circuit structure of a vehicle provided in an embodiment of the present invention, for reference. Figure 5 The vehicle includes a motor 100 and a controller 200, which are connected. The controller 200 includes a decoder 201. A resolver position sensor 101 is mounted on the motor 100 and is connected to the decoder 201. The controller 200 is used to execute the vehicle control method based on the resolver position sensor provided in any embodiment of the present invention.

[0093] The controller 200 may include an inverter circuit, through which the motor 100 is connected to the battery. The controller 200 may also include a motor driver, which is connected to both the decoder 201 and the inverter circuit. The motor driver can obtain information such as the motor's rotor angle and fault information from the decoder 201. The motor driver can execute the vehicle control method based on a resolver position sensor provided in any embodiment of the present invention to control the motor operation and thus control the vehicle operation.

[0094] Since the controller 200 in the vehicle of this embodiment is used to execute the vehicle control method based on the resolver position sensor provided in any embodiment of the present invention, the vehicle of this embodiment has the same beneficial effects as the vehicle control method based on the resolver position sensor provided in any embodiment of the present invention, and will not be described again here.

[0095] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0096] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A vehicle control method based on a resolver position sensor, characterized in that, The vehicle includes a motor and a controller, the motor being connected to the controller, the controller including a decoder, and a resolver position sensor mounted on the motor, the resolver position sensor being connected to the decoder; The method is executed by the controller; The method includes: During the current speed control cycle, when the change in the current rotor angle of the motor, determined according to the current rotor angle output by the decoder, is greater than the sum of the change threshold and the deviation threshold, the motor is controlled to stop running and a fault prompt is issued. When the change in the current rotor angle is less than or equal to the sum of the change threshold and the deviation threshold, if the motor speed in the previous speed control cycle was not zero, and the change in the current rotor angle is greater than the sum of the current estimated change and the deviation threshold, then the spare angle is used as the current rotor angle, and the previous speed is used as the current speed. The motor is controlled to operate based on the current rotational speed and the current rotor angle.

2. The method according to claim 1, characterized in that, After controlling the motor to operate based on the current rotational speed and the current rotor angle, the method further includes: If the actual speed of the motor is not zero in the next speed control cycle, and the change in the next rotor angle of the motor determined according to the next rotor angle output by the decoder is greater than the sum of the next estimated change and the deviation threshold, then the motor will be controlled to stop running and a fault prompt will be issued.

3. The method according to claim 1, characterized in that, Before the change in the current rotor angle of the motor, determined based on the current rotor angle output by the decoder, is greater than the sum of a change threshold and a deviation threshold, the method further includes: The difference between the current rotor angle output by the decoder and the rotor angle of the previous speed control cycle is taken as the change in the current rotor angle. The threshold value of the change amount is determined based on the maximum speed of the motor, the number of pole pairs of the motor, and the speed control frequency.

4. The method according to claim 3, characterized in that, Determining the change threshold based on the maximum speed of the motor, the number of pole pairs of the motor, and the speed control frequency includes: The product of the maximum rotational speed and the number of pole pairs is divided by the rotational speed control frequency to obtain the threshold value of the change.

5. The method according to claim 1, characterized in that, Before using a spare angle as the current rotor angle and the previous speed of the previous speed control cycle as the current speed, if the previous speed of the motor was not zero and the change in the current rotor angle is greater than the sum of the current estimated change and the deviation threshold, the method further includes: The current estimated change is determined based on the previous speed of the motor, the number of pole pairs of the motor, and the speed control frequency. The spare angle is determined based on the rotor angle of the previous speed control cycle.

6. The method according to claim 5, characterized in that, Determining the spare angle based on the rotor angle of the previous speed control cycle includes: The sum of the previous rotor angle and the current estimated change is used as the backup angle.

7. The method according to claim 1, characterized in that, The method further includes: In the current speed control cycle, if the previous speed of the motor was zero, then when the current rotor angle change is greater than the deviation threshold, the inverter circuit connected to the motor is controlled to stop outputting voltage and issue a fault warning.

8. The method according to claim 1, characterized in that, The method further includes: During the current speed control cycle, if fault information is received from the decoder, the first fault count value is incremented by one. If the first fault count value is greater than the first threshold, the inverter circuit connected to the motor is controlled to stop outputting voltage and a fault prompt is issued. If the first fault count value is less than or equal to the first threshold, then the first fault count value is set to zero.

9. The method according to claim 1, characterized in that, The method further includes: During the current speed control cycle, if fault information is received from the decoder, the second fault count value is incremented by one. If the current cycle count value reaches the query cycle threshold, then when the second fault count value is greater than the second threshold, the motor is controlled to stop running and a fault prompt is issued; wherein, the query cycle threshold is the product of the query cycle duration and the speed control frequency; wherein, the speed control frequency is greater than 1Hz; When the second fault count value is less than or equal to the second threshold, the second fault count value is set to zero.

10. A vehicle, characterized in that, The vehicle includes a motor and a controller, the motor being connected to the controller, the controller including a decoder, a resolver position sensor mounted on the motor and connected to the decoder; the controller is used to execute the vehicle control method based on a resolver position sensor as described in any one of claims 1-9.