A control mode switching method, device, equipment and storage medium

By utilizing the switching of quadrature-axis current and direct-axis current in the motor control, combined with the weighted summation of the target error value and weight coefficient and the gradient descent method optimization, the problem of the deviation between the motor output torque and the vehicle demand torque is solved, and the vehicle's performance is improved. Stability and smoothness of mode switching.

CN118544839BActive Publication Date: 2024-10-29BYD CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410980499.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-29
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

When switching between torque mode and speed mode, there is a large deviation between the torque output by the motor and the torque required by the vehicle, resulting in poor vehicle stability.

Method used

Through control based on the output quadrature axis current and the output direct axis current, the motor mode is accurately switched to achieve stable torque output between the torque mode and the speed mode. The target error value and weight coefficient are used for weighted summation, and through the gradient The descent method optimizes the current value to meet the constraints of the permanent magnet synchronous motor.

Benefits of technology

It achieves accurate matching of motor output torque and vehicle demand torque, improves vehicle driving stability and smoothness of control mode switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118544839B_ABST
    Figure CN118544839B_ABST
Patent Text Reader

Abstract

The present application discloses a control mode switching method, device, equipment and storage medium, which relates to the field of vehicle control technology, and aims to solve the problem that in the process of control mode switching, the motor is controlled based on the quadrature axis current, which may cause a large deviation between the torque actually output by the motor and the torque required by the vehicle, resulting in poor stability of the vehicle. The control mode switching method includes: in response to an instruction indicating switching from a first control mode to a second control mode, based on the output quadrature axis current and the output direct axis current, controlling the motor to switch from the first control mode to the second control mode, wherein one of the first control mode and the second control mode is a torque mode, and the other is a speed mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a control mode switching method, device, equipment and storage medium. Background Art

[0002] At present, when switching between the torque mode and the speed mode, the motor output torque can be controlled by adjusting the quadrature axis current in the torque mode and the quadrature axis current in the speed mode, and the switching between the speed mode and the torque mode is achieved based on the torque.

[0003] However, in the above method, since the direct-axis current will change with the change of the quadrature-axis current, and the change of the direct-axis current will affect the actual output torque of the motor, therefore, controlling the motor based on the quadrature-axis current in the torque mode and the quadrature-axis current in the speed mode may cause a large deviation between the actual output torque of the motor and the torque required by the vehicle, resulting in poor vehicle stability. Summary of the invention

[0004] The purpose of the present application is to provide a control mode switching method, device, equipment and storage medium, aiming to solve the problem that during the control mode switching process, the motor is controlled based on the cross-axis current, which may cause a large deviation between the torque actually output by the motor and the torque required by the vehicle, resulting in poor stability of the vehicle.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a control mode switching method, comprising: in response to an instruction indicating switching from a first control mode to a second control mode, based on an output quadrature-axis current and an output direct-axis current, controlling a motor to switch from the first control mode to the second control mode, wherein one of the first control mode and the second control mode is a torque mode, and the other is a speed mode.

[0007] In the control mode switching method provided in the embodiment of the present application, since the torque output by the motor is determined based on the output direct-axis current and the output quadrature-axis current, in response to the instruction to switch from the first control mode to the second control mode, the motor is controlled based on the output quadrature-axis current and the output direct-axis current. The motor can accurately and stably output the torque required by the vehicle when the control mode is switched based on the output quadrature-axis current and the output direct-axis current, thereby accurately controlling the process of switching from the first control mode to the second control mode, thereby improving the driving stability of the vehicle.

[0008] In some embodiments, the above-mentioned control mode switching method also includes: in response to an instruction indicating switching from the first control mode to the second control mode, determining the output quadrature-axis current and the output direct-axis current based on the target control parameters corresponding to the first control mode and the target control parameters corresponding to the second control mode; the target control parameter corresponding to the speed mode is the target speed value, and the target control parameter corresponding to the torque mode is the target torque value.

[0009] In some embodiments, the above-mentioned response to the instruction indicating switching from the first control mode to the second control mode, based on the target control parameters corresponding to the first control mode and the target control parameters corresponding to the second control mode, determines the output cross-axis current and the output direct-axis current, specifically including: in response to the instruction indicating switching from the first control mode to the second control mode, determines the output cross-axis current and the output direct-axis current when the target error value is minimized; wherein the target error value is determined based on a speed error value and a torque error value, the speed error value is the difference between the target speed value and the actual speed value, and the torque error value is the difference between the target torque value and the actual torque value.

[0010] In some embodiments, the above-mentioned control mode switching method also includes: determining the target error value based on the target speed value, the target torque value, a first constraint relationship and a second constraint relationship, the first constraint relationship is used to constrain the relationship between the actual speed value, the output quadrature-axis current and the output direct-axis current; the second constraint relationship is used to constrain the relationship between the actual torque value, the output quadrature-axis current and the output direct-axis current.

[0011] In some embodiments, the first constraint relationship is a voltage equation of the permanent magnet synchronous motor, and the second constraint relationship is an electromagnetic torque equation of the permanent magnet synchronous motor.

[0012] In some embodiments, the above-mentioned determination of the output cross-axis current and the output direct-axis current when the target error value is minimized specifically includes: solving the objective function to determine the minimum target error value by the gradient descent method, and obtaining the output cross-axis current and the output direct-axis current when the target error value is minimized.

[0013] In some embodiments, the target error value is calculated by weighted summing the speed error value and the torque error value based on a weight coefficient corresponding to the torque mode and a weight coefficient corresponding to the speed mode.

[0014] In some embodiments, the weight coefficient corresponding to the torque mode and the weight coefficient corresponding to the speed mode are determined according to a mode switching influence factor, and the mode switching influence factor is determined based on a switching time from the first control mode to the second control mode.

[0015] In some embodiments, the relationship between the above-mentioned mode switching influencing factor and the switching time satisfies a sigmoid function relationship.

[0016] In a second aspect, the present application provides a control mode switching device, comprising: a processing unit; the processing unit is used to control the motor to switch from the first control mode to the second control mode based on the output quadrature-axis current and the output direct-axis current in response to an instruction to switch from a first control mode to a second control mode.

[0017] In some embodiments, the control mode switching device also includes a determination unit, which is used to determine the output quadrature-axis current and the output direct-axis current in response to an instruction indicating switching from the first control mode to the second control mode, based on the target control parameters corresponding to the first control mode and the target control parameters corresponding to the second control mode; the target control parameter corresponding to the speed mode is a target speed value, and the target control parameter corresponding to the torque mode is a target torque value.

[0018] In some embodiments, the determination unit is specifically used to determine the output quadrature-axis current and the output direct-axis current when the target error value is minimized in response to an instruction indicating switching from the first control mode to the second control mode; wherein the target error value is determined based on a speed error value and a torque error value, the speed error value being the difference between the target speed value and the actual speed value, and the torque error value being the difference between the target torque value and the actual torque value.

[0019] In some embodiments, the determination unit is also specifically used to determine the target error value based on the target speed value, the target torque value, a first constraint relationship and a second constraint relationship, wherein the first constraint relationship is used to constrain the relationship between the actual speed value, the output quadrature-axis current and the output direct-axis current; the second constraint relationship is used to constrain the relationship between the actual torque value, the output quadrature-axis current and the output direct-axis current.

[0020] In some embodiments, the first constraint relationship is a voltage equation of the permanent magnet synchronous motor, and the second constraint relationship is an electromagnetic torque equation of the permanent magnet synchronous motor.

[0021] In some embodiments, the determination unit is further specifically used to solve the objective function of minimizing the target error value by a gradient descent method, and obtain the output quadrature-axis current and the output direct-axis current when the target error value is minimized.

[0022] In some embodiments, the target error value is calculated by weighted summing the speed error value and the torque error value based on a weight coefficient corresponding to the torque mode and a weight coefficient corresponding to the speed mode.

[0023] In some embodiments, the weight coefficient corresponding to the torque mode and the weight coefficient corresponding to the speed mode are determined according to a mode switching influence factor, and the mode switching influence factor is determined based on a switching time from the first control mode to the second control mode.

[0024] In some embodiments, the relationship between the mode switching impact factor and the switching time satisfies a sigmoid function relationship.

[0025] In a third aspect, the present application provides a control mode switching device, comprising: a processor and a memory configured to store processor executable instructions; wherein the processor is configured to execute the instructions to implement any one of the optional control mode switching methods in the first aspect above.

[0026] In a fourth aspect, the present application provides a vehicle, comprising the control mode switching device of the third aspect mentioned above.

[0027] In a fifth aspect, the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions in the computer-readable storage medium are executed by a control mode switching device, the control mode switching device is enabled to execute any one of the optional control mode switching methods in the first aspect described above.

[0028] In a sixth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a processor of a control mode switching device, the control mode switching device is enabled to execute an optional control mode switching method as described in any one of the first aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be 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 any creative work.

[0030] Figure 1 A schematic diagram of the structure of a control mode switching system provided in an embodiment of the present application;

[0031] Figure 2 A flow chart of a control mode switching method provided in an embodiment of the present application;

[0032] Figure 3 A flowchart of another control mode switching method provided in an embodiment of the present application;

[0033] Figure 4A schematic diagram of a control mode switching method provided in an embodiment of the present application;

[0034] Figure 5 A flowchart of another control mode switching method provided in an embodiment of the present application;

[0035] Figure 6 A schematic diagram of a sigmoid function provided in an embodiment of the present application;

[0036] Figure 7 A schematic diagram of the structure of a control mode switching device provided in an embodiment of the present application;

[0037] Figure 8 A block diagram of a control mode switching device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] In the description of this application, it should be understood that the terms "upper", "lower", "left", "right", "front", "back", "inside", "outside", etc. indicate directions or positional relationships based on the directions or relative positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on this application. Unless otherwise specified, the above-mentioned directional description can be flexibly set in the process of actual application under the condition that the relative positional relationship shown in the accompanying drawings is met.

[0040] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0041] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. It can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0042] In the present application, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, article or device including the element.

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

[0044] In the description of this specification, specific features, structures, materials or characteristics may be combined in an appropriate manner in any one or more embodiments or examples.

[0045] In the related art, the switching between the speed mode and the torque mode can be achieved by calculating the quadrature-axis current in the torque mode and the quadrature-axis current output by a proportional integral controller (PI) in the speed mode through the torque mode, that is, the throttle input.

[0046] This method converts the control targets of both the speed mode and the torque mode into the cross-axis current. However, in fact, the speed control mode is aimed at controlling the speed of the motor so that the motor maintains a certain speed, which corresponds to the voltage in the servo drive. The torque control mode is aimed at controlling the output torque of the motor, that is, controlling the current inside the motor. When the direct-axis current is not 0, the actual output torque will have a large deviation from the target torque. The stability and real-time performance of the method that only controls the current are difficult to meet the requirements of actual vehicle applications.

[0047] As described in the background technology, when the direct-axis current is not 0, controlling the motor based on the cross-axis current in the torque mode and the cross-axis current in the speed mode may cause a large deviation between the torque actually output by the motor and the torque required by the vehicle, resulting in poor stability of the vehicle. Based on this, the embodiments of the present application provide a control mode switching method, device, equipment and storage medium. Since the torque output by the motor is determined based on the output direct-axis current and the output cross-axis current, in response to the instruction to switch from the first control mode to the second control mode, the motor is controlled based on the output cross-axis current and the output direct-axis current. The motor can accurately and stably output the torque required by the vehicle when the control mode is switched based on the output cross-axis current and the output direct-axis current, thereby accurately controlling the process of switching from the first control mode to the second control mode, thereby improving the driving stability of the vehicle.

[0048] A control mode switching method, apparatus, device and storage medium provided in the embodiments of the present application can be applied to a control mode switching system, such as Figure 1 As shown, the control mode switching system includes a vehicle controller 101 , a mode switching controller 102 , a permanent magnet synchronous motor 103 , a control mechanical transmission device 104 and a wheel 105 .

[0049] Among them, the vehicle controller 101 is connected to the mode switching controller 102. The vehicle controller 101 receives the input throttle signal and the cruise control mode command, and then sends the throttle signal and the cruise control mode command to the mode switching controller 102. After the motor controller determines the output quadrature-axis current and the output direct-axis current, the output quadrature-axis current and the output direct-axis current can be sent to the permanent magnet synchronous motor 103. Through the permanent magnet synchronous motor 103, the mechanical transmission device 104 is controlled to drive the wheels 105 to operate.

[0050] Exemplarily, the control mode switching device for executing the present solution may be a mode switching controller 102 , and the mode switching controller 102 may run in a motor controller of a vehicle.

[0051] The control mode switching method, apparatus, device and storage medium provided in the embodiments of the present application are applied to the scenario of mode switching during vehicle driving. When an instruction to switch from a first control mode to a second control mode is received, the output quadrature-axis current and the output direct-axis current can be determined based on the target control parameters corresponding to the first control mode and the target control parameters corresponding to the second control mode, and then the motor can be controlled to switch from the first control mode to the second control mode based on the output quadrature-axis current and the output direct-axis current.

[0052] Combination Figure 1 The control mode switching system shown in FIG. Figure 2 As shown, the control mode switching method includes S201.

[0053] S201 . In response to an instruction to switch from a first control mode to a second control mode, control a motor to switch from a first control mode to a second control mode based on an output quadrature-axis current and an output direct-axis current.

[0054] Among them, one of the first control mode and the second control mode is a torque mode, and the other is a speed mode.

[0055] It should be understood that the output quadrature-axis current can be used as the quadrature-axis input current of the motor, and the output direct-axis current can be used as the direct-axis input current of the motor to control the motor to switch from the first control mode to the second control mode.

[0056] It can be understood that the voltage of the motor can be determined based on the output quadrature-axis current and the output direct-axis current, and then the torque of the motor can be accurately controlled based on the voltage.

[0057] In the embodiment of the present application, since the torque output by the motor is determined based on the output direct-axis current and the output quadrature-axis current, in response to the instruction to switch from the first control mode to the second control mode, the motor is controlled based on the output quadrature-axis current and the output direct-axis current. The motor can accurately and stably output the torque required by the vehicle when the control mode is switched based on the output quadrature-axis current and the output direct-axis current, thereby accurately controlling the process of switching from the first control mode to the second control mode, thereby improving the driving stability of the vehicle.

[0058] Combination Figure 2 ,like Figure 3 As shown, in an implementation of the embodiment of the present application, before controlling the motor to switch from the first control mode to the second control mode based on the output quadrature-axis current and the output direct-axis current, the control mode switching method further includes S301.

[0059] S301 , in response to an instruction to switch from a first control mode to a second control mode, determine an output quadrature-axis current and an output direct-axis current based on a target control parameter corresponding to the first control mode and a target control parameter corresponding to the second control mode.

[0060] The target control parameter corresponding to the speed mode is the target speed value, and the target control parameter corresponding to the torque mode is the target torque value.

[0061] It should be understood that the speed mode is used to instruct the motor to operate based on the target speed value, and the torque mode is used to instruct the motor to operate based on the target torque value.

[0062] It can be understood that the target control parameter may be a control parameter after switching, or may be a control parameter used by the vehicle before switching.

[0063] Exemplarily, when switching from a speed mode to a torque mode, the target speed value is the speed value currently corresponding to the speed mode before switching, and the target torque value is the torque value that should be achieved after switching.

[0064] In one implementation of the embodiment of the present application, when the vehicle is in a speed mode and receives a throttle signal, it can be determined that an instruction to switch from the speed mode to the torque mode is received, and at this time, the target torque value can be obtained from the throttle signal. Alternatively, when the vehicle is in a torque mode and receives a cruise control instruction, it can be determined that an instruction to switch from the torque mode to the speed mode is received, and at this time, the target speed value can be obtained from the cruise control instruction.

[0065] It should be noted that the motor is a permanent magnet synchronous motor, which controls the speed of the motor by voltage and controls the torque of the motor by current.

[0066] It should be understood that the output quadrature axis current is the current of the q axis in the dq coordinate system, and the output direct axis current is the current of the d axis in the dq coordinate system. The voltage and current of the motor are both determined based on the direct axis current and the quadrature axis current.

[0067] In one implementation of the embodiment of the present application, the output quadrature-axis current and the output direct-axis current at each moment in the process of switching from the first control mode to the second control mode may be determined based on the target speed value and the target torque value.

[0068] Exemplary, combined Figure 1 ,like Figure 4 As shown, after the mode switching controller 102 receives the target speed value or the target torque value, it can obtain the output quadrature-axis current and the output direct-axis current, and then respectively subtract the actual quadrature-axis current and the actual direct-axis current obtained after the third processing and the second processing, and input them into the first PI controller 401 and the second PI controller 402, so as to obtain the quadrature-axis voltage and the direct-axis voltage, and after the first processing and space vector pulse width modulation (SVPWM) are performed on the quadrature-axis voltage and the direct-axis voltage, they are finally input into the permanent magnet synchronous motor 103 after passing through the three-phase inverter 403.

[0069] It should be noted that the first process is Park inverse transform, the second process is Park transform, and the third process is Clark transform.

[0070] It should be understood that since the output direct-axis current and the output quadrature-axis current are determined based on the target torque and the target speed, the torque error value between the torque obtained by the motor based on the voltage and the target torque is small, and the speed error value between the speed obtained based on the current and the target speed is small.

[0071] Combination Figure 3 ,like Figure 5 As shown, the above S301 can be specifically implemented through S501.

[0072] S501 : In response to an instruction to switch from a first control mode to a second control mode, determine an output quadrature-axis current and an output direct-axis current when a target error value is minimized.

[0073] The target error value is determined according to the speed error value and the torque error value. The speed error value is the difference between the target speed value and the actual speed value, and the torque error value is the difference between the target torque value and the actual torque value.

[0074] It should be understood that the speed of the motor when it is operating based on the target torque value may be different from the target speed value. In the process of switching from the first control mode to the second control mode, there is a deviation between the actual speed value of the motor and the target speed value, and there is also a deviation between the actual torque value of the motor and the target torque value. At this time, in order to achieve the optimal switching, the minimum target error value can be determined.

[0075] It can be understood that the target error value is the smallest, which means that the sum of the torque error value and the speed error value is the smallest. At this time, the change between the motor speed (or torque) and the speed (or torque) before the vehicle switch is small, and the difference between the torque (or speed) after the switch is also small, which can achieve smoothness in the process of switching the vehicle control mode.

[0076] In one implementation of the embodiment of the present application, the target error value may be determined based on the relationship between the motor speed, torque, quadrature-axis current, and direct-axis current. Specifically, the target error value may be determined based on the target speed value, the target torque value, the first constraint relationship, and the second constraint relationship.

[0077] The first constraint relationship is used to constrain the relationship between the actual rotational speed value, the output quadrature-axis current and the output direct-axis current; the second constraint relationship is used to constrain the relationship between the actual torque value, the output quadrature-axis current and the output direct-axis current.

[0078] It should be understood that based on the first constraint relationship, the actual speed value can be converted into output quadrature-axis current and output direct-axis current, and based on the second constraint relationship, the actual torque value can be converted into output quadrature-axis current and output direct-axis current, and then the target error value can be obtained based on the output quadrature-axis current, output direct-axis current, target speed value, and target torque value.

[0079] In an implementation of the embodiment of the present application, the first constraint relationship may be a voltage equation of the permanent magnet synchronous motor, and the second constraint relationship may be an electromagnetic torque equation of the permanent magnet synchronous motor.

[0080] Optionally, the voltage equation of the permanent magnet synchronous motor satisfies the following formula 1:

[0081] Formula 1.

[0082] in, u s = [ u d , u q ] T , Indicates the transpose of the matrix. represents the direct-axis voltage and quadrature-axis voltage, represents the direct axis voltage, represents the quadrature axis voltage, Represents resistance, i s = [ i d , i q ] T , represents the direct-axis current and quadrature-axis current, represents the direct axis current, represents the quadrature axis current, L = [ L d 0 0 L q ] , represents the d-axis inductance component and the q-axis inductance component, represents the value of the d-axis inductance component, represents the value of the q-axis inductance component, represents the rate of change of current, represents the current difference between the next moment and the previous moment, Indicates the time difference between the next moment and the previous moment. Indicates the actual speed of the motor. is a constant, j = [ 0 1 − 1 0 ] , ψ p = [ ψ f , 0 ] T , represents the plane vector of the permanent magnet flux linkage, Represents the value of the permanent magnet flux.

[0083] Optionally, when the motor is running, the motor is in a steady state condition, at which time the rate of change of the current is approximately 0, and it can be assumed that , then at this time, the actual speed value of the motor satisfies the following formula 2:

[0084] w e = [ j ( Li s + ψ p )] − 1 [ u s − R s i s ] Formula 2.

[0085] Optionally, the first constraint condition mentioned above may also be Formula 2.

[0086] Optionally, the electromagnetic torque equation of the permanent magnet synchronous motor satisfies the following formula 3:

[0087] Formula three.

[0088] in, Indicates the actual torque value of the motor.

[0089] In one implementation of an embodiment of the present application, the above-mentioned determination of the output cross-axis current and the output direct-axis current when the target error value is minimized can be specifically: solving the objective function for determining the minimum target error value through the gradient descent method, and obtaining the output cross-axis current and the output direct-axis current when the target error value is minimized.

[0090] Optionally, the objective function for minimizing the target error value satisfies the following formula 4:

[0091] min J = ( [ w e r ] k − [ w e ] k ) 2 + ( [ T e r ] k − [ T e ] k ) 2 Formula 4.

[0092] in, represents the target error value, Represents the minimum value of the target error value, Indicates the target speed value, Indicates the target torque value, Indicates time.

[0093] It should be understood that based on the above formula 1 (or formula 2) and formula 3, by solving the minimum value of formula 4 through the gradient descent algorithm, the minimum target error value and the output quadrature-axis current and the output direct-axis current corresponding to the minimum target error value can be obtained.

[0094] In one implementation of the embodiment of the present application, the target error value is calculated by weighted summing the speed error value and the torque error value based on a weight coefficient corresponding to the torque mode and a weight coefficient corresponding to the speed mode.

[0095] Optionally, the objective function for minimizing the target error value also satisfies the following formula 5:

[0096] min J = σ ( [ w e r ] k − [ w e ] k ) 2 + ( 1 − σ ) ( [ T e r ] k − [ T e ] k ) 2 Formula five.

[0097] in, Indicates the weight coefficient of the speed error value.

[0098] It can be understood that by adjusting the weight of the first control mode and the weight of the second control mode, switching from the first control mode to the second control mode can be achieved.

[0099] In one implementation of the embodiment of the present application, the weight coefficient corresponding to the above-mentioned torque mode and the weight coefficient corresponding to the above-mentioned speed mode are determined according to the mode switching influence factor, and the mode switching influence factor is determined based on the switching time from the first control mode to the second control mode.

[0100] It can be understood that in the process of switching from the first control mode to the second control mode, the weight of the first control mode decreases over time (from 1 to 0), and the weight of the second control mode increases over time (from 0 to 1), so that the control mode conversion can be achieved, and when the control mode is completely switched to the second control mode, the error value of the second control mode is the smallest.

[0101] Optionally, in combination with the above formula 5, the mode switching impact factor can be understood as .when When , it indicates that the target error value is determined based on the torque error value. , it indicates that the target error value is determined based only on the speed error value.

[0102] Optionally, the relationship between the above-mentioned mode switching influencing factor and the switching time satisfies a sigmoid function relationship.

[0103] Optionally, the mode switching impact factor satisfies the following formula 6:

[0104] Formula six.

[0105] in, represents the mode switching impact factor, represents the time constant, and e represents the base of the natural logarithm.

[0106] For example, Figure 6 A schematic diagram of the sigmoid function.

[0107] like Figure 6 As shown, assuming that σ is the weight coefficient of the second control mode, the value of x is 0 to 8, that is, the switch from the first control mode to the second control mode is completed within 8 seconds. From the 0th second to the 3rd second, the weight of the second control mode is less than 0.2 and changes slowly. From the 5th second to the 8th second, the weight of the second control mode is greater than 0.8 and changes slowly.

[0108] In the embodiment of the present application, since the relationship between the mode switching influence factor and the switching time satisfies the sigmoid function relationship, controlling the first control mode to switch to the second control mode based on the mode switching influence factor can achieve stability in the initial and later stages of the control mode switching, thereby improving the stability of the vehicle.

[0109] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the control mode switching device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0110] The embodiment of the present application can exemplarily divide the functional modules of the control mode switching device according to the above method. For example, the control mode switching device can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0111] Figure 7 A possible structural diagram of the control mode switching device involved in the above embodiment is shown. Figure 7 , the control mode switching device 70 includes: a processing unit 701.

[0112] The processing unit 701 is used to control the motor to switch from the first control mode to the second control mode based on the output quadrature-axis current and the output direct-axis current in response to an instruction to switch from the first control mode to the second control mode.

[0113] Optionally, the control mode switching device 70 further includes a determining unit 702 .

[0114] The determination unit 702 is used to determine the output quadrature-axis current and the output direct-axis current in response to an instruction indicating switching from the first control mode to the second control mode, based on the target control parameters corresponding to the first control mode and the target control parameters corresponding to the second control mode; the target control parameter corresponding to the speed mode is the target speed value, and the target control parameter corresponding to the torque mode is the target torque value.

[0115] Optionally, the determination unit 702 is specifically used to determine the output quadrature-axis current and the output direct-axis current when the target error value is minimized in response to an instruction indicating switching from the first control mode to the second control mode; wherein the target error value is determined based on a speed error value and a torque error value, the speed error value being the difference between the target speed value and the actual speed value, and the torque error value being the difference between the target torque value and the actual torque value.

[0116] Optionally, the determination unit 702 is also specifically used to determine the target error value based on the target speed value, the target torque value, a first constraint relationship and a second constraint relationship, the first constraint relationship being used to constrain the relationship between the actual speed value, the output quadrature-axis current and the output direct-axis current; the second constraint relationship being used to constrain the relationship between the actual torque value, the output quadrature-axis current and the output direct-axis current.

[0117] Optionally, the first constraint relationship is a voltage equation of the permanent magnet synchronous motor, and the second constraint relationship is an electromagnetic torque equation of the permanent magnet synchronous motor.

[0118] Optionally, the determination unit 702 is further specifically configured to solve the objective function with the minimum target error value by using a gradient descent method, and obtain the output quadrature-axis current and the output direct-axis current when the target error value is minimized.

[0119] Optionally, the target error value is calculated by weighted summing the speed error value and the torque error value based on a weight coefficient corresponding to the torque mode and a weight coefficient corresponding to the speed mode.

[0120] Optionally, the weight coefficient corresponding to the torque mode and the weight coefficient corresponding to the speed mode are determined according to a mode switching influence factor, and the mode switching influence factor is determined based on a switching time from the first control mode to the second control mode.

[0121] Optionally, the relationship between the mode switching influencing factor and the switching time satisfies a sigmoid function relationship.

[0122] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0123] Figure 8 FIG. 4 is a block diagram of the control mode switching device involved in the above embodiment. Figure 8 As shown, the control mode switching device 80 includes but is not limited to: a processor 801 and a memory 802 .

[0124] The memory 802 is used to store executable instructions of the processor 801. It can be understood that the processor 801 is configured to execute instructions to implement the control mode switching method in the above embodiment.

[0125] It should be noted that those skilled in the art can understand that Figure 8 The control mode switching device structure shown in the figure does not constitute a limitation on the control mode switching device. The control mode switching device may include Figure 8 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.

[0126] The processor 801 is the control center of the control mode switching device. It uses various interfaces and lines to connect the various parts of the entire control mode switching device. By running or executing the software programs and / or modules stored in the memory 802, and calling the data stored in the memory 802, it performs various functions of the control mode switching device and processes data, thereby monitoring the control mode switching device as a whole. The processor 801 may include one or more processing units. Optionally, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.

[0127] The memory 802 may be used to store software programs and various data. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional module (such as a determination unit, a processing unit, etc.), etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0128] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 802 including instructions, and the above instructions can be executed by a processor 801 of the control mode switching device 80 to implement the method in the above embodiment.

[0129] In actual implementation, Figure 7 The functions of the processing unit 701 and the determining unit 702 in Figure 8 The processor 801 in the embodiment calls the computer program stored in the memory 802. The specific execution process can refer to the description of the method part in the above embodiment, which will not be repeated here.

[0130] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage control mode switching device, etc.

[0131] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 801 of the control mode switching device to complete the method in the above embodiment.

[0132] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the control mode switching device, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect as the above-mentioned method can be achieved. To avoid repetition, they will not be repeated here.

[0133] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0134] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0135] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0137] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.

[0138] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A control mode switching method, It is characterized in that The method comprises: In response to an instruction indicating switching from a first control mode to a second control mode, an output quadrature-axis current and an output direct-axis current are determined based on a target control parameter corresponding to the first control mode and a target control parameter corresponding to the second control mode; wherein one of the first control mode and the second control mode is a torque mode and the other is a speed mode; the target control parameter corresponding to the speed mode is a target speed value, and the target control parameter corresponding to the torque mode is a target torque value; Based on the output quadrature-axis current and the output direct-axis current, controlling the motor to switch from the first control mode to the second control mode; The step of determining the output quadrature-axis current and the output direct-axis current based on a target control parameter corresponding to the first control mode and a target control parameter corresponding to the second control mode in response to an instruction indicating switching from the first control mode to the second control mode comprises: In response to an instruction indicating switching from the first control mode to the second control mode, the output quadrature-axis current and the output direct-axis current are determined when a target error value is minimized; wherein the target error value is determined based on a speed error value and a torque error value, the speed error value being the difference between the target speed value and the actual speed value, and the torque error value being the difference between the target torque value and the actual torque value.

2. The method according to claim 1, It is characterized in that The method further comprises: The target error value is determined based on the target speed value, the target torque value, a first constraint relationship and a second constraint relationship, wherein the first constraint relationship is used to constrain the relationship between the actual speed value, the output quadrature-axis current and the output direct-axis current; and the second constraint relationship is used to constrain the relationship between the actual torque value, the output quadrature-axis current and the output direct-axis current.

3. The method according to claim 2, It is characterized in that The first constraint relationship is a voltage equation of the motor, and the second constraint relationship is an electromagnetic torque equation of the motor.

4. The method according to claim 2, It is characterized in that The determining the output quadrature-axis current and the output direct-axis current when the target error value is minimized includes: The objective function of determining the minimum target error value is solved by the gradient descent method, and the output quadrature-axis current and the output direct-axis current are obtained when the target error value is minimized.

5. The method according to claim 1, It is characterized in that The target error value is calculated by weighted summing the speed error value and the torque error value based on the weight coefficient corresponding to the torque mode and the weight coefficient corresponding to the speed mode.

6. The method according to claim 5, It is characterized in that The weight coefficient corresponding to the torque mode and the weight coefficient corresponding to the speed mode are determined according to a mode switching influence factor, and the mode switching influence factor is determined based on a switching time from the first control mode to the second control mode.

7. The method according to claim 6, It is characterized in that The relationship between the mode switching influencing factor and the switching time satisfies a sigmoid function relationship.

8. A control mode switching device, It is characterized in that include: Processing unit; The processing unit is configured to determine an output quadrature-axis current and an output direct-axis current based on a target control parameter corresponding to the first control mode and a target control parameter corresponding to the second control mode in response to an instruction indicating switching from the first control mode to the second control mode; Based on the output quadrature-axis current and the output direct-axis current, controlling the motor to switch from the first control mode to the second control mode; The processing unit is specifically used to determine the output quadrature-axis current and the output direct-axis current when the target error value is minimized in response to an instruction indicating switching from the first control mode to the second control mode; wherein the target error value is determined based on a speed error value and a torque error value, the speed error value is the difference between the target speed value and the actual speed value, and the torque error value is the difference between the target torque value and the actual torque value.

9. A control mode switching device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 7.

10. A vehicle, It is characterized in that Comprising the control mode switching device as claimed in claim 9.

11. A computer-readable storage medium, It is characterized in that When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of a control mode switching device, the control mode switching device can perform the method according to any one of claims 1 to 7.

12. A computer program product comprising computer instructions, It is characterized in that When the computer instructions are executed on a processor of a control mode switching device, the control mode switching device is enabled to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Motor starting control method and system of vehicle

    CN107508523A

  • Interior permanent magnet synchronous motor base speed region and weak magnetic region smooth switching control method

    CN108377115A

  • Motor drive control method integrated with multifunctional application

    CN113858971A

  • Control method and system of permanent magnet synchronous motor, electronic equipment and storage medium

    CN116455280A

  • Accelerator operation response control method for automobile equipped with electric motor

    WO2013081121A1