Electric vehicle control method, computer readable storage medium, and vehicle system

By obtaining the current attitude angle and mass of the electric vehicle, determining the target torque, and using the PI regulator for closed-loop control, the problem of poor slope control of the electric vehicle is solved, and more accurate and stable slope control is achieved.

CN118578900BActive Publication Date: 2024-11-29GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411041303.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-29
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

The slope control effect of existing electric vehicles is poor, and it is easy to cause problems such as accidentally entering the slope or sliding distance.

Method used

By obtaining the current attitude angle and mass of the target vehicle, determining the target torque according to the preset relationship, and using the PI regulator to perform closed-loop control of the motor torque, ensuring that the direction of the motor torque is opposite to the direction of the wheel rotation, so as to achieve slope control.

Benefits of technology

Effectively suppress the slope-sliding trend of vehicles, avoid slope-sliding phenomenon of vehicles, and improve the accuracy and stability of slope-slope control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118578900B_ABST
    Figure CN118578900B_ABST
Patent Text Reader

Abstract

The present application provides a control method for an electric vehicle, a computer-readable storage medium, and a vehicle system. The method includes: obtaining the current attitude angle and current mass of the target vehicle when the target vehicle meets the hill-holding condition during driving; determining the motor torque corresponding to the current attitude angle and current mass in the first preset relationship as the target torque according to the current attitude angle, the current mass, and the first preset relationship, wherein the first preset relationship represents the corresponding relationship between the attitude angle, the mass, and the motor torque required to control the parking of the vehicle; controlling the motor of the target vehicle to run at the target torque so that the target vehicle enters the hill-holding state, and using a PI regulator to perform closed-loop control on the torque of the motor, wherein the direction of the target torque is opposite to the direction of wheel rotation corresponding to the target vehicle when sliding down the slope. The hill-holding control effect of the electric vehicle of the present application is good.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric vehicle control, and in particular, to a control method for an electric vehicle, a computer-readable storage medium, and a vehicle system. Background Art

[0002] At present, the hill start and hill hold control systems of electric vehicles mainly rely on the driver to step on the brake pedal and the accelerator pedal to control the vehicle to start and hold on the slope. When the driver switches from the brake pedal to the accelerator pedal, the vehicle loses power and will slide backward for a distance under the action of gravity and inertia. The backward slide will affect the driving experience, and if the backward slide distance is long, there will be certain safety hazards.

[0003] The hill-holding function on electric vehicles is designed to solve this hidden danger. The principle of the hill-holding function is to control the motor to output an appropriate torque in the opposite direction of the wheel rotation after detecting that the vehicle is slipping backwards. Ideally, the vehicle will be fixed in place for a few seconds. When the given torque of the driver's accelerator is greater than the given torque of the hill-holding function, the vehicle can move forward normally. The current solution to achieve the hill-holding function has problems such as mistakenly entering the hill or a long slipping distance, resulting in poor hill-holding control effect. Summary of the invention

[0004] The main purpose of the present application is to provide a control method for an electric vehicle, a computer-readable storage medium and a vehicle system, so as to at least solve the problem of poor hill-holding control effect of electric vehicles in the prior art.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a control method of an electric vehicle is provided, comprising: when the target vehicle meets the hill-holding condition during driving, obtaining the current attitude angle and the current mass of the target vehicle; determining, according to the current attitude angle, the current mass and a first preset relationship, the motor torque corresponding to the current attitude angle and the current mass in the first preset relationship as the target torque, the first preset relationship representing the correspondence between the vehicle's attitude angle, the mass and the motor torque required to control the parking of the vehicle; controlling the motor of the target vehicle to operate at the target torque so that the target vehicle enters a hill-holding state, and using a PI (Proportional Integral) regulator to perform closed-loop control on the torque of the motor, the direction of the target torque being opposite to the wheel rotation direction corresponding to the target vehicle when sliding down the slope.

[0006] Optionally, obtaining the current mass of the target vehicle includes: estimating the engine output shaft torque of the target vehicle using a Kalman filter algorithm; obtaining acceleration data of the target vehicle; establishing a vehicle mass estimation model based on a longitudinal dynamic model, inputting the engine output shaft torque and the acceleration data into the vehicle mass estimation model, and estimating the output of the vehicle mass estimation model using a recursive least squares method to obtain the current mass.

[0007] Optionally, a PI regulator is used to perform closed-loop control on the torque of the motor, including: according to the current attitude angle and a second preset relationship, determining a PI parameter corresponding to the attitude angle range where the current attitude angle is located as a target parameter of the PI regulator, wherein the second preset relationship represents the corresponding relationship between the attitude angle range and the PI parameter, and the target parameter includes a proportional coefficient and an integral coefficient; according to the target parameter and the formula , determine the torque of the motor at the current moment and control the motor to run at the torque at the current moment, where t is the current moment, is the proportionality coefficient, is the integral coefficient, is the deviation value input to the PI regulator, is the torque at the current moment.

[0008] Optionally, before obtaining the current attitude angle and current mass of the target vehicle, the method further includes: when the target vehicle is started, obtaining the real-time three-axis attitude angle of the target vehicle collected by the sensor; determining whether the real-time three-axis attitude angle is valid, the effective conditions of the real-time three-axis attitude angle include at least part of the following: the difference between the real-time three-axis attitude angle and the historical three-axis attitude angle is less than a first set value, the real-time three-axis attitude angle is not greater than a second set value, the attitude angle change value of at least one axis is less than a third set value, the real-time operation information of the sensor does not include fault information, the historical three-axis attitude angle is the three-axis attitude angle corresponding to the previous moment of the real-time three-axis attitude angle corresponding to the moment, and when the target vehicle meets the hill-staying condition during driving, obtaining the current attitude angle and current mass of the target vehicle, including: when the real-time three-axis attitude angle is valid and meets the hill-staying condition, obtaining the three-axis attitude angle information and the current mass of the target vehicle; performing predetermined processing on the three-axis attitude angle information to obtain the current attitude angle, the predetermined processing including: taking the root mean square, taking the median and taking the average, and filtering processing.

[0009] Optionally, when the real-time three-axis attitude angle is invalid, the method further includes: when the target vehicle is traveling on a road with a known slope, acquiring attitude angle data collected by the sensor; calibrating the sensor according to the attitude angle data and the known slope; and determining that the attitude angle data collected by the calibrated sensor is valid.

[0010] Optionally, when the hill-holding condition is met during the driving process of the target vehicle and the real-time three-axis attitude angle is invalid, the method further includes: controlling the motor of the target vehicle to operate at a predetermined torque, and using the PI regulator with PI parameters as predetermined parameters to perform closed-loop control on the torque of the motor, and the predetermined torque is a torque determined when the target vehicle is unloaded.

[0011] Optionally, after using a PI regulator to perform closed-loop control on the torque of the motor, the method further includes: obtaining the hill-staying time and / or the motor controller temperature of the target vehicle once every predetermined time period; when the hill-staying time exceeds a preset time period and / or the motor controller temperature is greater than a predetermined temperature, controlling the target vehicle to exit the hill-staying state.

[0012] Optionally, when the target vehicle satisfies the hill-holding condition during driving, before obtaining the current attitude angle and current mass of the target vehicle, the method also includes: determining that the target vehicle satisfies the hill-holding condition during driving when one of the following is met: the gear position of the target vehicle is the forward gear, the parking brake is released, the openings of the accelerator pedal and the brake pedal are 0, and the slope of the road surface where the target vehicle is located is greater than a minimum hill-holding angle threshold; the gear position of the target vehicle is the reverse gear, the parking brake is released, the openings of the accelerator pedal and the brake pedal are 0, and the slope of the road surface where the target vehicle is located is greater than the minimum hill-holding angle threshold.

[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.

[0014] According to another aspect of the present application, a vehicle system is provided, comprising: an electric vehicle; a domain controller, comprising one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the methods described; a sensor, communicatively connected to the domain controller, the sensor being used to obtain attitude angle data of the electric vehicle.

[0015] By applying the technical solution of the present application, when the vehicle meets the hill-holding conditions, the motor torque corresponding to the current scenario is determined according to the current attitude angle and the current mass, and the motor is controlled to operate at the torque to suppress the vehicle's tendency to roll down the hill, thereby avoiding the vehicle from rolling down the hill. The hill-holding requirements of the vehicle under different working conditions can be met, and a PI regulator is used to perform closed-loop control of the motor torque, so that adaptive control of the hill-holding process can be achieved, ensuring that the vehicle has a strong dynamic response capability, making the vehicle more stable, and thus ensuring a better hill-holding control effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings constituting part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A hardware structure block diagram of a mobile terminal for executing a control method for an electric vehicle provided in an embodiment of the present application is shown;

[0018] Figure 2 A schematic diagram of a flow chart of a control method for an electric vehicle provided according to an embodiment of the present application is shown;

[0019] Figure 3 A schematic diagram of the structure of a power domain controller of a control method for running an electric vehicle provided according to an embodiment of the present application is shown;

[0020] Figure 4 A schematic diagram of a connection relationship between a sensor and a domain controller provided according to an embodiment of the present application is shown;

[0021] Figure 5 A schematic diagram showing the connection relationship of a vehicle controller for a control method for running an electric vehicle provided in an embodiment of the present application is shown;

[0022] Figure 6 A force analysis diagram of a longitudinal dynamics model of a vehicle provided according to an embodiment of the present application is shown;

[0023] Figure 7 A control flow diagram of an electric vehicle provided according to an embodiment of the present application is shown;

[0024] Figure 8 A structural block diagram of a control device for an electric vehicle provided according to an embodiment of the present application is shown.

[0025] The drawings include the following reference numerals:

[0026] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION

[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] As introduced in the background technology, the hill-holding control effect of electric vehicles in the prior art is relatively poor. To solve the above technical problems, the embodiments of the present application provide a control method for an electric vehicle, a computer-readable storage medium and a vehicle system.

[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0032] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a control method for an electric vehicle according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the electric vehicle in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the method described is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0034] In this embodiment, a control method for an electric vehicle running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0035] Figure 2 FIG. 1 is a flow chart of a control method for an electric vehicle according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0036] Step S201, when the target vehicle meets the hill-holding condition during driving, obtaining the current attitude angle and current mass of the target vehicle;

[0037] Specifically, the target vehicle is an electric vehicle. The hill-staying condition is determined based on some signals collected during the driving process of the target vehicle, such as the gear position, throttle, brake, slope of the location of the target vehicle, etc. The current mass is the mass of the target vehicle when the hill-staying condition is met, and the current attitude angle is the attitude angle of the target vehicle when the hill-staying condition is met, and the attitude angle includes the inclination angle of the target vehicle in the x, y, and z directions.

[0038] Step S202, determining, according to the current posture angle, the current mass, and a first preset relationship, a motor torque corresponding to the current posture angle and the current mass in the first preset relationship as a target torque, wherein the first preset relationship represents a corresponding relationship between the posture angle and mass of the vehicle and the motor torque required for controlling the parking of the vehicle;

[0039] Specifically, the first preset relationship is a pre-stored correspondence between the attitude angle, mass and motor torque of the vehicle, and the motor torque is the torque required to keep the electric vehicle stopped on the ramp when the electric vehicle of the mass is located on a ramp with a slope corresponding to the attitude angle. The first preset relationship can be obtained through multiple experimental verifications, or it can be set according to empirical values. The first preset relationship can be stored in a table form or in other forms. The target torque is the motor torque corresponding to the attitude angle that is the same as the current attitude angle and the mass that is the same as the current mass in the first preset relationship.

[0040] Step S203, controlling the motor of the target vehicle to run at the target torque so that the target vehicle enters a hill-holding state, and using a PI regulator to perform closed-loop control on the torque of the motor, wherein the direction of the target torque is opposite to the wheel rotation direction corresponding to the target vehicle when sliding down the slope.

[0041] Specifically, the hill-staying state is a state where the target vehicle stops on the current slope. The direction of the target torque is specifically opposite to the wheel rotation direction corresponding to the case where the target vehicle slides down the current slope, so as to control the target vehicle not to slide down the current slope.

[0042] Through the embodiment, when the target vehicle meets the hill-staying condition during driving, first obtain the current attitude angle and current mass of the target vehicle; then, according to the current attitude angle, the current mass and the first preset relationship that characterizes the correspondence between the attitude angle, mass and motor torque of the vehicle, determine the motor torque corresponding to the current attitude angle and current mass in the first preset relationship as the target torque; finally, control the motor of the target vehicle to run at the target torque so that the vehicle enters the hill-staying state, and use the PI regulator to perform closed-loop control on the torque of the motor so that the vehicle maintains the hill-staying state. In the present application, when the vehicle meets the hill-staying condition, the motor torque corresponding to the current scenario is determined according to the current attitude angle and the current mass, and the motor is controlled to run at the torque to suppress the vehicle's tendency to slide down the slope, thereby avoiding the vehicle from sliding down the slope, which can meet the hill-staying requirements of the vehicle under different working conditions, and then use the PI regulator to perform closed-loop control on the torque of the motor, which can realize adaptive control of the hill-staying process, ensure the strong dynamic response capability of the vehicle, make the vehicle more stable, and thus ensure a better hill-staying control effect.

[0043] The method can be applied to a vehicle's power DCU (Domain controller unit), such as Figure 3 As shown, the power domain controller integrates the motor control subsystem, vehicle control subsystem, energy distribution subsystem and battery management main control subsystem. These subsystems exchange data through the internal registers of the DCU multi-core main control chip, which is equivalent to turning the original motor control ECU (Electronic Control Unit), vehicle control ECU, energy distribution ECU and battery management main control ECU into one ECU unit. The main control chip of DCU is a multi-core chip, so it can control multiple subsystems. Compared with the original distributed vehicle power system communicating through the CAN bus, in the DCU architecture of the present application, the information exchange between each subsystem is intra-core communication, which has the advantages of low latency and low interference. In addition, the controller with DCU architecture also has the advantages of saving costs, increasing integration and reducing volume.

[0044] It should be noted that the lower the delay, the more timely the vehicle's slope sliding control is, which can avoid the problem of the vehicle sliding back a certain distance caused by the delay, and further ensure that the vehicle's slope holding control effect is better.

[0045] The current attitude angle can be acquired by a sensor installed in the target vehicle. The sensor can be a three-axis acceleration sensor, a three-axis gyroscope or other angle detection sensor. Figure 4As shown, the sensor and the DCU communicate with each other using SPI (4-wire) / IIC (2-wire) communication. Resistors R1, R2, R3 and R4 are pull-up resistors. If the IO interface of the DCU can be configured as an internal pull-up, no pull-up resistor is required. The interface can select an SPI / IIC module, or use a general IO port to simulate the SPI / IIC protocol. In addition, the sensor needs a power supply VCC to power it, and a corresponding filter capacitor C1 needs to be added to the power supply VCC for filtering. One end of the filter capacitor C1 is connected to the power supply VCC, and the other end is grounded GND. In an exemplary embodiment, the DCU can select the TC275 three-core chip, and the sensor can select the AIS2IH chip.

[0046] In addition, the method can also be applied to Figure 5 In the vehicle controller shown, a sensor is integrated in the vehicle controller to detect the current attitude angle; the vehicle controller communicates with the motor controller through the CAN bus to achieve control of the motor; the motor controller is connected to the motor through a three-phase output line to control the motor.

[0047] The slope of the target vehicle, or the inclination angle of the target vehicle, can be calculated through the attitude angle.

[0048] In order to obtain a more accurate vehicle mass, in an optional solution, the current mass of the target vehicle is obtained, including: using a Kalman filter algorithm to estimate the engine output shaft torque of the target vehicle; obtaining the acceleration data of the target vehicle; establishing a vehicle mass estimation model based on a longitudinal dynamics model, inputting the engine output shaft torque and the acceleration data into the vehicle mass estimation model, and using the recursive least squares (RLS) method to estimate the output of the vehicle mass estimation model to obtain the current mass. In the embodiment, the engine output shaft torque is estimated by the Kalman filter algorithm and used as the input of the vehicle mass estimation algorithm. The vehicle mass is estimated based on the recursive least squares method, so that the current mass of the target vehicle can be obtained more accurately.

[0049] Specifically, during the movement of the vehicle, the vehicle can be regarded as a rigid body. The longitudinal acceleration of the moving vehicle is caused by the combined effects of rolling resistance, acceleration resistance, ramp resistance, air resistance, driving force, etc. The longitudinal dynamics model of the vehicle is as follows: Figure 6 As shown. The longitudinal dynamic equation of the vehicle can be simplified as:

[0050] (1);

[0051] In formula (1), m is the vehicle mass; is the longitudinal acceleration of the vehicle; g is the acceleration due to gravity; is the vehicle speed; Providing driving force for the vehicle; is the road slope angle; is the air density; is the air resistance coefficient; A is the frontal area of ​​the vehicle; f is the rolling resistance coefficient.

[0052] The vehicle acceleration can be transformed from equation (1) into:

[0053] (2);

[0054] Under normal circumstances, the road surface slope is very small ( ≈1), according to the vehicle driving dynamics equation, we have:

[0055] (3);

[0056] (4);

[0057] From equations (3) and (4), we can get (5), where and are the driving forces at the previous and next moments respectively; and are the accelerations at the two moments before and after respectively.

[0058] In order to better estimate the vehicle mass, considering the actual situation of the vehicle, the vehicle should have a better state input when the vehicle is driving. Therefore, the vehicle mass estimation is carried out at a low speed. At this time, the tire side slip characteristics are within the linear range. The linear two-degree-of-freedom vehicle model is used for analysis. The vehicle mass estimation model is as follows:

[0059] (5);

[0060] In the formula, is the lateral acceleration; is the distance from the front axle to the center of mass; is the distance from the rear axle to the center of mass; is the total cornering stiffness of the front wheel; is the total cornering stiffness of the rear wheel; is the longitudinal acceleration; is the yaw angular velocity; is the sideslip angle of the center of mass; is the front wheel turning angle.

[0061] The RLS input-output recursion equation is as follows:

[0062] (6);

[0063] (7);

[0064] (8);

[0065] (9);

[0066] In the formula, y(k) is the output; u(k) is the input; e(k) is the error caused by modeling or observation noise; , (i=1,2,…,n) is the parameter to be identified; n is the total number of parameters to be identified; is a vector of parameters to be estimated.

[0067] When using the RLS method for parameter estimation, It can be simplified to the vehicle lateral acceleration calculated each time, It can be simplified to vehicle mass. Next, we estimate the vehicle mass based on the vehicle mass estimation model (Equation (5)).

[0068] The parameter identification gain is: (10);

[0069] according to The k-1 moment data and sensor measurement data pair The k-time data is predicted and updated, and its expression is as follows: (11);

[0070] The parameter identification covariance is (12);

[0071] Where I is the unit matrix, whose order is equal to the number of identification parameters. As long as the initial value N and , we can deduce the k-th moment The state estimate of the vehicle (i.e., the mass of the vehicle).

[0072] The Kalman filter algorithm is an algorithm that uses the linear system state equation to optimally estimate the system state through the system input and output observation data. The Kalman filter algorithm can be divided into two parts: the prediction process and the state observation update process.

[0073] Prediction process:

[0074] (13); (14);

[0075] Status observation update process:

[0076] (15); (16);

[0077] (17);

[0078] In the formula, For the predicted value: is the estimated value; A is the state transfer matrix; B is the input gain matrix; For system input, is the prediction error covariance matrix; is the estimation error covariance matrix; Q is the process noise covariance matrix; R is the observation noise covariance matrix; is the Kalman gain matrix; H is the measurement matrix. This is repeated, and each time only the previous state is used without using all the previous states. Usually, when the observation noise covariance matrix R and the process noise covariance matrix Q are constant, the estimated error covariance matrix With the Kalman gain matrix will quickly stabilize and remain constant, so you can first determine and This can significantly reduce the amount of data calculation and ensure the accuracy of data estimation.

[0079] The process requires the target vehicle to run continuously for a period of time (≥30s) to obtain a more reasonable mass, so the current mass calculated only when the above conditions are met is considered valid. If the door is detected to be opened during the non-power-off period or the target vehicle is driven continuously for less than 30s after starting, the current mass data is considered invalid.

[0080] In some other embodiments of the present application, a PI regulator is used to perform closed-loop control on the torque of the motor, including: determining, according to the current attitude angle and a second preset relationship, a PI parameter corresponding to the attitude angle range in which the current attitude angle is located as a target parameter of the PI regulator, wherein the second preset relationship represents the corresponding relationship between the attitude angle range and the PI parameter, and the target parameter includes a proportional coefficient and an integral coefficient; according to the target parameter and the formula , determine the torque of the motor at the current moment and control the motor to run at the torque at the current moment, where t is the current moment, is the proportionality coefficient, is the integral coefficient, is the deviation value input to the PI regulator, which is the difference between the target speed and the actual speed. is the torque at the current moment. In the embodiment, different groups of PI parameters are selected according to the different slope ranges of the target vehicle, further ensuring that the PI regulator has strong adaptability to working conditions; the PI regulator is used for adaptive adjustment, and when the deviation between the target motor speed and the real-time motor speed during the hill-holding control process is large, it can be quickly tracked to reduce the deviation; when the deviation is small, the static difference can be eliminated, making the system fast and stable, with good dynamic and steady-state performance, and strong anti-disturbance ability, etc.

[0081] In order to further ensure a better hill-holding control effect, according to some other optional embodiments of the present application, before obtaining the current attitude angle and current mass of the target vehicle, the method also includes: when the target vehicle is started, obtaining the real-time three-axis attitude angle of the target vehicle collected by the sensor; determining whether the real-time three-axis attitude angle is valid, and the effective conditions of the real-time three-axis attitude angle include at least part of the following: the difference between the real-time three-axis attitude angle and the historical three-axis attitude angle is less than a first set value, the real-time three-axis attitude angle is not greater than a second set value, the attitude angle change value of at least one axis is less than a third set value, and the sensor The real-time operation information of the device does not include fault information, the historical three-axis attitude angle is the three-axis attitude angle corresponding to the previous moment of the corresponding moment of the real-time three-axis attitude angle, and when the target vehicle meets the hill-staying condition during driving, the current attitude angle and current quality of the target vehicle are obtained, including: when the real-time three-axis attitude angle is valid and meets the hill-staying condition, the three-axis attitude angle information and the current quality of the target vehicle are obtained; the three-axis attitude angle information is processed in a predetermined manner to obtain the current attitude angle, and the predetermined processing includes: taking the root mean square, taking the median and taking the average, and filtering. In this embodiment, before obtaining the current attitude angle and current quality data to control the vehicle to stay on the hill, it is first determined whether the obtained sensor data is valid to determine whether the sensor is operating normally. When the sensor data is determined to be valid, the above data is obtained, which can provide accurate data support for subsequent control. In addition, the acquired attitude angle data needs to be processed in the predetermined manner before being used as the current attitude angle data, which can avoid the influence of some abnormal data on subsequent control.

[0082] Specifically, if the sensor is in the power-on state, the real-time three-axis attitude angle is compared with the data last saved before the last power-off, that is, the historical three-axis attitude angle at this time is the latest three-axis attitude angle data saved before the sensor was last powered off; if the sensor is not in the power-on state, the real-time three-axis attitude angle is compared with the data at the previous moment, that is, the historical three-axis attitude angle at this time is the three-axis attitude angle data at the previous moment.

[0083] Those skilled in the art can flexibly set the specific values ​​of the first setting value, the second setting value and the third setting value according to actual needs.

[0084] In the actual application process, when the target vehicle is in the driving state, the attitude angles of the two axes related to the vehicle's forward direction should change, and the attitude angle data of the remaining axis should remain basically unchanged. In addition, the changes in the attitude angles of the two axes that have changed should be consistent with the mathematical geometric angle relationship of the corresponding two axes in space.

[0085] Optionally, in the case where the real-time three-axis attitude angle is invalid, the method further includes: when the target vehicle is traveling on a road with a known slope, obtaining attitude angle data collected by the sensor; calibrating the sensor according to the attitude angle data and the known slope; and determining that the attitude angle data collected by the calibrated sensor is valid. In the case where the three-axis attitude angle data is determined to be invalid, it can be considered that the sensor has been moved and the installation has been significantly changed. In this case, after the vehicle travels up and down a slope, the deviation from the initial calibration benchmark is obtained, and the sensor is automatically recalibrated, thereby further ensuring the validity of the sensor data.

[0086] In some further exemplary schemes of the present application, when the target vehicle satisfies the hill-holding condition during driving, and the real-time three-axis attitude angle is invalid or the current mass is invalid, the method further includes: controlling the motor of the target vehicle to run at a predetermined torque, and using the PI regulator with PI parameters as predetermined parameters to perform closed-loop control on the torque of the motor, wherein the predetermined torque is a torque determined when the target vehicle is unloaded, and the direction of the predetermined torque is opposite to the direction of wheel rotation corresponding to the target vehicle when sliding down a slope, that is, the predetermined torque is in the same direction as the target torque. In the case where the three-axis attitude angle data is invalid, in order to further achieve hill-holding control of the vehicle, the motor is given a predetermined torque to operate to suppress the vehicle's tendency to slide down a slope, thereby further avoiding the vehicle from sliding down a slope, and further ensuring that the hill-holding control effect of the electric vehicle is better.

[0087] Optionally, after the PI regulator is used to perform closed-loop control on the torque of the motor, the method further includes: obtaining the hill-staying time and / or the motor controller temperature of the target vehicle once every predetermined time; when the hill-staying time exceeds the preset time and / or the motor controller temperature is greater than a predetermined temperature, controlling the target vehicle to exit the hill-staying state. In the embodiment, when the hill-staying time is long or the motor controller temperature is high, it is necessary to exit the hill-staying state to avoid problems such as overheating damage to components of the target vehicle or affecting the lifespan.

[0088] It should be noted that, when the target vehicle exits the hill-holding state and the target vehicle still meets the hill-holding condition, the method further includes: controlling the target vehicle to exit the hill-holding state for a period of time and then controlling the target vehicle to enter the hill-holding state. That is, when the hill-holding time exceeds a preset time and / or the temperature of the motor controller is greater than a predetermined temperature, the target vehicle is stopped and rolled down the hill for a certain distance before being controlled to park, thereby further ensuring driving safety.

[0089] In addition, when the target vehicle does not meet the hill-holding condition, the method further includes: controlling the target vehicle to exit the hill-holding state. When the hill-holding condition is not met, such as the driver's brake opening is large, the accelerator output torque is greater than the hill-holding output torque, the hill-holding condition is exited and the hill-holding process is ended.

[0090] Furthermore, when the target vehicle meets the hill-staying condition during driving, before obtaining the current attitude angle and current mass of the target vehicle, the method further includes: determining that the target vehicle meets the hill-staying condition during driving when one of the following conditions is met: the gear of the target vehicle is the forward gear, the parking brake is released, the opening of the accelerator pedal and the brake pedal is 0, and the slope of the road where the target vehicle is located is greater than the minimum hill-staying angle threshold; the gear of the target vehicle is the reverse gear, the parking brake is released, the opening of the accelerator pedal and the brake pedal is 0, and the slope of the road where the target vehicle is located is greater than the minimum hill-staying angle threshold. By judging whether the vehicle meets the hill-staying condition by the gear of the target vehicle, whether the parking brake is released, the opening and slope of the accelerator pedal and the brake pedal, it is possible to accurately determine whether the vehicle currently needs to enter the hill-staying state, thereby avoiding driving hazards such as abnormal noise of the transmission gear or even forward rush caused by the vehicle mistakenly entering the hill.

[0091] When the real-time three-axis attitude angle is invalid, the present application still maintains the basic hill-holding function. If the gear is detected to be the forward gear or the reverse gear, the parking brake has been released, the opening of the accelerator pedal and the brake pedal is 0 (the driver does not step on the accelerator and the brake in time), and the rear-slip speed is detected, and the rear-slip speed is detected for a continuous period of time, it is determined that the hill-holding conditions are met.

[0092] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the control method of the electric vehicle of the present application will be described in detail below in combination with specific embodiments.

[0093] This embodiment relates to a specific control method for an electric vehicle. The method is applied to Figure 3 In the DCU architecture shown, the three-axis acceleration sensor is integrated in the DCU and is connected to the DCU for communication, such as Figure 7As shown, the method comprises the following steps:

[0094] Step S1: The vehicle control subsystem in the DCU obtains data such as angles and fault information. After the vehicle is started and powered on, the internal program of the main control chip of the DCU starts running and periodically communicates with the three-axis acceleration sensor to obtain the corresponding x, y, z-axis angle information, internal fault information, etc.; then enters step S2;

[0095] Step S2: Data validity judgment and further data processing; the data validity judgment is as follows: when the vehicle is just started and has no speed, the maximum angle swing position of each axis is not allowed to exceed the actual set threshold, there is no fault information, and it is compared with the previous sampling data; if it is in the power-on state, it is compared with the last saved data before the last power-off. If there is basically no deviation or the deviation is small, the data validity is considered to be true; when entering the driving state, the two-axis angle related to the vehicle's forward direction should change; the sampled two-axis angle change is consistent with the mathematical geometric angle relationship in the corresponding two-axis space, and the last axis angle change If the deviation is not large and is located near the reference angle, the data validity is considered to be true; if it is not satisfied, it can be considered that the vehicle controller has been moved and the installation has changed significantly, and it is necessary to obtain the deviation from the initial calibrated reference data after the vehicle travels up and down a slope, and automatically recalibrate; before the calibration is completed, the data validity is false, and after the calibration is completed and the above judgment conditions are met, the data validity is true; if the data validity is false, then proceed to step S6; after the data validity is true, appropriate data processing is performed, such as limiting, taking the root mean square value, the median value, the first-order filtering and other combined processing methods, and then proceed to step S3;

[0096] Step S3: The vehicle's throttle, brake, gear, handbrake and other hard-wired signals are directly sampled and processed by the vehicle control subsystem, so the vehicle control subsystem can judge the driver's intention most quickly and accurately; combined with the motor speed calculated by the motor control subsystem and the effective angle value processed in step S2, it can immediately judge whether the hill-holding condition is met; taking the vehicle going uphill as an example, if it is detected that the gear is the forward gear, the handbrake is invalid, the opening of the accelerator pedal and the brake pedal is 0 (the driver did not step on the accelerator and brake in time), the horizontal angle of the road surface is greater than the minimum hill-holding angle threshold, and the motor speed is 0, then the hill-holding condition is met, and then enter step S4, otherwise return to step S1;

[0097] Step S4: When the vehicle is moving forward, the method for estimating the total mass of the vehicle in real time is as follows: a vehicle mass estimation algorithm is proposed based on the longitudinal dynamics model, the vehicle acceleration is calculated by the motor speed received in real time by the vehicle control subsystem, the Kalman filter algorithm is used to take the motor output torque as the input of the vehicle mass estimation algorithm, and the recursive least squares method is used to iteratively fit the multiple calculation results. After testing, a relatively accurate result can be obtained; this method requires the vehicle to run continuously for a period of time (30s) to obtain a more reasonable mass, then the estimated total mass is considered valid, and then enter step S5; if the vehicle control subsystem detects that the vehicle door is opened or the vehicle is started after the continuous driving time is less than 30s during the non-power-off period, the estimated total mass is considered invalid, and then enter step S7;

[0098] Step S5: After entering the hill-holding state and successfully estimating the vehicle mass, the vehicle control subsystem searches the calibrated MAP table according to the relationship between the current estimated mass and the slope, gives a torque to let the motor control subsystem output a given torque first, so that the vehicle does not produce or delays the backward sliding tendency, and then commands the motor control subsystem to enter the hill-holding state, and then enters step S7;

[0099] Step S6: In the case of abnormal angle detection, the basic hill-holding function is still maintained. Taking the vehicle going uphill as an example, if the gear is detected to be the forward gear, the handbrake is invalid, the opening of the accelerator pedal and the brake pedal is 0 (the driver does not step on the accelerator and the brake in time), and the rear-slip speed is detected, and the rear-slip speed is detected for a period of time, the motor controller subsystem determines that the hill-holding condition is met and enters step S7; if the hill-holding condition is not met, the two are in a normal driving state and return to step S1;

[0100] Step S7: Enter the hill-holding condition, and adjust the output torque through the PI algorithm. If the angle and the estimated mass are valid, the starting torque is the preset torque of step S5, and different groups of PI parameters are selected according to different slope ranges; if the angle and mass estimation are invalid, the starting torque is a smaller torque that matches the whole vehicle no-load, and a set of default PI parameters; during the adjustment process, periodically check whether the hill-holding timeout motor and motor controller are overheated. If there is no abnormality, maintain the hill-holding state in step S7; if timeout or overheating occurs, or the driver's brake opening is large or the accelerator output torque is greater than the hill-holding output torque, then exit the hill-holding condition and end the hill-holding process.

[0101] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0102] The embodiment of the present application also provides a control device for an electric vehicle. It should be noted that the control device for an electric vehicle in the embodiment of the present application can be used to execute the control method for an electric vehicle provided in the embodiment of the present application. The device is used to implement the embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0103] The following is an introduction to the control device of the electric vehicle provided in the embodiment of the present application.

[0104] Figure 8 Schematic diagram of a control device for an electric vehicle according to an embodiment of the present application. Figure 8 As shown, the device comprises:

[0105] A first acquisition unit 10 is used to acquire a current attitude angle and a current mass of the target vehicle when the target vehicle meets a hill-holding condition during driving;

[0106] Specifically, the target vehicle is an electric vehicle. The hill-staying condition is determined based on some signals collected during the driving process of the target vehicle, such as the gear position, throttle, brake, slope of the location of the target vehicle, etc. The current mass is the mass of the target vehicle when the hill-staying condition is met, and the current attitude angle is the attitude angle of the target vehicle when the hill-staying condition is met, and the attitude angle includes the inclination angle of the target vehicle in the x, y, and z directions.

[0107] A first determining unit 20, configured to determine, according to the current posture angle, the current mass, and a first preset relationship, a motor torque corresponding to the current posture angle and the current mass in the first preset relationship as a target torque, wherein the first preset relationship represents a corresponding relationship between the posture angle and mass of the vehicle and the motor torque required for controlling the parking of the vehicle;

[0108] Specifically, the first preset relationship is a pre-stored correspondence between the attitude angle, mass and motor torque of the vehicle, and the motor torque is the torque required to keep the electric vehicle stopped on the ramp when the electric vehicle of the mass is located on a ramp with a slope corresponding to the attitude angle. The first preset relationship can be obtained through multiple experimental verifications, or it can be set according to empirical values. The first preset relationship can be stored in a table form or in other forms. The target torque is the motor torque corresponding to the attitude angle that is the same as the current attitude angle and the mass that is the same as the current mass in the first preset relationship.

[0109] The first control unit 30 is used to control the motor of the target vehicle to operate at the target torque so that the target vehicle enters a hill-holding state, and uses a PI regulator to perform closed-loop control on the torque of the motor. The direction of the target torque is opposite to the direction of wheel rotation corresponding to the target vehicle when sliding down the slope.

[0110] Specifically, the hill-staying state is a state where the target vehicle stops on the current slope. The direction of the target torque is specifically opposite to the wheel rotation direction corresponding to the case where the target vehicle slides down the current slope, so as to control the target vehicle not to slide down the current slope.

[0111] Through the embodiment, when the target vehicle meets the hill-staying condition during driving, the current attitude angle and current mass of the target vehicle are obtained through the first acquisition unit; the motor torque corresponding to the current attitude angle and current mass in the first preset relationship is determined as the target torque by the first determination unit according to the current attitude angle, the current mass and the first preset relationship between the attitude angle, mass and motor torque that characterize the vehicle; the motor of the target vehicle is controlled to run at the target torque by the first control unit, so that the vehicle enters the hill-staying state, and the PI regulator is used to perform closed-loop control on the torque of the motor, so that the vehicle maintains the hill-staying state. In the present application, when the vehicle meets the hill-staying condition, the motor torque corresponding to the current scenario is determined according to the current attitude angle and the current mass, and the motor is controlled to run at the torque to suppress the vehicle's tendency to slide down the slope, thereby avoiding the vehicle from sliding down the slope, which can meet the hill-staying requirements of the vehicle under different working conditions, and then the PI regulator is used to perform closed-loop control on the torque of the motor, so that the adaptive control of the hill-staying process can be realized, which ensures that the dynamic response capability of the vehicle is strong, and the vehicle stability is good, thereby ensuring a good hill-staying control effect.

[0112] The device can be applied to the power DCU of a vehicle, such as Figure 3 As shown, the power domain controller integrates the motor control subsystem, vehicle control subsystem, energy distribution subsystem and battery management main control subsystem. These subsystems exchange data through the internal registers of the DCU multi-core main control chip, which is equivalent to turning the original four ECUs, namely the motor control ECU, vehicle control ECU, energy distribution ECU and battery management main control ECU, into one ECU unit. The main control chip of the DCU is a multi-core chip, so it can control multiple subsystems. Compared with the original distributed vehicle power system communicating through the CAN bus, in the DCU architecture of the present application, the information exchange between each subsystem is intra-core communication, which has the advantages of low latency and low interference. In addition, the controller with the DCU architecture also has the advantages of saving costs, increasing integration and reducing volume.

[0113] It should be noted that the lower the delay, the more timely the vehicle's slope sliding control is, which can avoid the problem of the vehicle sliding back a certain distance due to the delay, and further ensure that the vehicle's slope holding control effect is better.

[0114] The current attitude angle can be acquired by a sensor installed in the target vehicle. The sensor can be a three-axis acceleration sensor, a three-axis gyroscope or other angle detection sensor. Figure 4 As shown, the sensor and the DCU communicate with each other using SPI (4-wire) / IIC (2-wire) communication. Resistors R1, R2, R3 and R4 are pull-up resistors. If the IO interface of the DCU can be configured as an internal pull-up, no pull-up resistor is required. The interface can select an SPI / IIC module, or use a general IO port to simulate the SPI / IIC protocol. In addition, the sensor needs a power supply VCC to power it, and a corresponding filter capacitor C1 needs to be added to the power supply VCC for filtering. One end of the filter capacitor C1 is connected to the power supply VCC, and the other end is grounded GND. In an exemplary embodiment, the DCU can select the TC275 three-core chip, and the sensor can select the AIS2IH chip.

[0115] In addition, the device can also be used for Figure 5 In the vehicle controller shown, a sensor is integrated in the vehicle controller to detect the current attitude angle; the vehicle controller communicates with the motor controller via the CAN bus, thereby realizing control of the motor.

[0116] The slope of the target vehicle, or the inclination angle of the target vehicle, can be calculated through the attitude angle.

[0117] In order to obtain a more accurate vehicle mass, in an optional solution, the first acquisition unit includes: an estimation module for estimating the engine output shaft torque of the target vehicle using a Kalman filter algorithm; a first acquisition module for acquiring acceleration data of the target vehicle; and an establishment module for establishing a vehicle mass estimation model based on a longitudinal dynamics model, inputting the engine output shaft torque and the acceleration data into the vehicle mass estimation model, and estimating the output of the vehicle mass estimation model using a recursive least squares method to obtain the current mass. In the embodiment, the engine output shaft torque is estimated using a Kalman filter algorithm and used as the input of the vehicle mass estimation algorithm. The vehicle mass is estimated based on the recursive least squares method, and the current mass of the target vehicle can be obtained more accurately.

[0118] The process requires the target vehicle to run continuously for a period of time (≥30s) to obtain a more reasonable mass, so the current mass calculated only when the above conditions are met is considered valid. If the door is detected to be opened during the non-power-off period or the target vehicle is driven continuously for less than 30s after starting, the current mass data is considered invalid.

[0119] In some other embodiments of the present application, the first control unit includes: a first determination module, which is used to determine, according to the current attitude angle and a second preset relationship, that a PI parameter corresponding to the attitude angle range in which the current attitude angle is located is a target parameter of the PI regulator, wherein the second preset relationship represents the corresponding relationship between the attitude angle range and the PI parameter, and the target parameter includes a proportional coefficient and an integral coefficient; a second determination module, which is used to determine, according to the target parameter and the formula , determine the torque of the motor at the current moment and control the motor to run at the torque at the current moment, where t is the current moment, is the proportionality coefficient, is the integral coefficient, is the deviation value input to the PI regulator, which is the difference between the target speed and the actual speed. is the torque at the current moment. In the embodiment, different groups of PI parameters are selected according to the different slope ranges of the target vehicle, further ensuring that the PI regulator has strong adaptability to working conditions; the PI regulator is used for adaptive adjustment, and when the deviation between the target motor speed and the real-time motor speed during the hill-holding control process is large, it can be quickly tracked to reduce the deviation; when the deviation is small, the static difference can be eliminated, making the system fast and stable, with good dynamic and steady-state performance, and strong anti-disturbance ability, etc.

[0120] In order to further ensure a better hill-holding control effect, according to some other optional embodiments of the present application, the device also includes: a second acquisition unit, used to obtain the real-time three-axis attitude angle of the target vehicle collected by the sensor when the target vehicle is started before obtaining the current attitude angle and current mass of the target vehicle; a second determination unit, used to determine whether the real-time three-axis attitude angle is valid, and the validity conditions of the real-time three-axis attitude angle include at least part of the following: the difference between the real-time three-axis attitude angle and the historical three-axis attitude angle is less than a first set value, the real-time three-axis attitude angle is not greater than a second set value, and at least one axis is The attitude angle change value is less than the third set value, the real-time operation information of the sensor does not include fault information, the historical three-axis attitude angle is the three-axis attitude angle corresponding to the previous moment of the real-time three-axis attitude angle, and the first acquisition unit includes: a second acquisition module, which is used to obtain the three-axis attitude angle information and the current quality of the target vehicle when the real-time three-axis attitude angle is valid and meets the slope-holding condition; a processing module, which is used to perform predetermined processing on the three-axis attitude angle information to obtain the current attitude angle, and the predetermined processing includes: taking the root mean square, taking the median and taking the average, and filtering. In this embodiment, before obtaining the current attitude angle and current quality data to control the vehicle to stay on the slope, first determine whether the obtained sensor data is valid to determine whether the sensor is operating normally. When the sensor data is determined to be valid, the above data is obtained, which can provide accurate data support for subsequent control. In addition, the acquired attitude angle data needs to be used as the current attitude angle data after the predetermined processing, which can avoid the influence of some abnormal data on subsequent control.

[0121] Specifically, if the sensor is in the power-on state, the real-time three-axis attitude angle is compared with the data last saved before the last power-off, that is, the historical three-axis attitude angle at this time is the latest three-axis attitude angle data saved before the sensor was last powered off; if the sensor is not in the power-on state, the real-time three-axis attitude angle is compared with the data at the previous moment, that is, the historical three-axis attitude angle at this time is the three-axis attitude angle data at the previous moment.

[0122] Those skilled in the art can flexibly set the specific values ​​of the first setting value, the second setting value and the third setting value according to actual needs.

[0123] In the actual application process, when the target vehicle is in the driving state, the attitude angles of the two axes related to the vehicle's forward direction should change, and the attitude angle data of the remaining axis should remain basically unchanged. In addition, the changes in the attitude angles of the two axes that have changed should be consistent with the mathematical geometric angle relationship of the corresponding two axes in space.

[0124] Optionally, the device further includes: a third acquisition unit, used to acquire the attitude angle data collected by the sensor when the real-time three-axis attitude angle is invalid and when the target vehicle is traveling on a road with a known slope; a calibration unit, used to calibrate the sensor according to the attitude angle data and the known slope; and a third determination unit, used to determine that the attitude angle data collected by the calibrated sensor is valid. When it is determined that the three-axis attitude angle data is invalid, it can be considered that the sensor has been moved and the installation has been significantly changed. In this case, after the vehicle travels up and down a slope, the deviation from the initial calibration benchmark is obtained, and the sensor is automatically recalibrated, thereby further ensuring the validity of the sensor data.

[0125] In some further exemplary schemes of the present application, the device further includes: a second control unit, which is used to control the motor of the target vehicle to run at a predetermined torque when the target vehicle meets the hill-holding condition during driving, and when the real-time three-axis attitude angle is invalid or the current mass is invalid, and to use the PI regulator with PI parameters as predetermined parameters to perform closed-loop control on the torque of the motor, wherein the predetermined torque is a torque determined when the target vehicle is unloaded, and the direction of the predetermined torque is opposite to the direction of wheel rotation corresponding to the target vehicle when it is sliding down a slope, that is, the predetermined torque is in the same direction as the target torque. In the case where the three-axis attitude angle data is invalid, in order to further achieve hill-holding control of the vehicle, the motor is given a predetermined torque to operate to suppress the vehicle's tendency to slide down a slope, thereby further avoiding the vehicle from sliding down a slope, and further ensuring that the hill-holding control effect of the electric vehicle is better.

[0126] Optionally, the device further includes: a fourth acquisition unit, which is used to acquire the hill-staying time and / or the motor controller temperature of the target vehicle once every predetermined time after the PI regulator is used to perform closed-loop control on the torque of the motor; and a third control unit, which is used to control the target vehicle to exit the hill-staying state when the hill-staying time exceeds a preset time and / or the motor controller temperature is greater than a predetermined temperature. In the embodiment, when the hill-staying time is long or the motor controller temperature is high, it is necessary to exit the hill-staying state to avoid problems such as overheating and damage to components of the target vehicle or affecting their lifespan.

[0127] It should be noted that the device further includes: a fourth control unit, which is used to control the target vehicle to exit the hill-holding state for a period of time and then control the target vehicle to enter the hill-holding state when the target vehicle exits the hill-holding state and the target vehicle still meets the hill-holding condition. That is, when the hill-holding time exceeds a preset time and / or the temperature of the motor controller is greater than a predetermined temperature, the target vehicle is stopped from parking and sliding down the slope for a certain distance before the vehicle is controlled to park, thereby further ensuring driving safety.

[0128] In addition, the device further comprises: a fifth control unit, which is used to control the target vehicle to exit the hill-holding state when the target vehicle does not meet the hill-holding condition. When the hill-holding condition is not met, such as the driver's brake opening is large, the accelerator output torque is greater than the hill-holding output torque, the hill-holding condition is exited and the hill-holding process is ended.

[0129] Furthermore, the device further includes: a third determination unit, which is used to determine that the target vehicle meets the hill-staying condition during the driving process before obtaining the current attitude angle and current mass of the target vehicle, if one of the following conditions is met: the gear position of the target vehicle is the forward gear, the parking brake is released, the opening of the accelerator pedal and the brake pedal is 0, and the slope of the road where the target vehicle is located is greater than the minimum hill-staying angle threshold; the gear position of the target vehicle is the reverse gear, the parking brake is released, the opening of the accelerator pedal and the brake pedal is 0, and the slope of the road where the target vehicle is located is greater than the minimum hill-staying angle threshold. By judging whether the vehicle meets the hill-staying condition by the gear position of the target vehicle, whether the parking brake is released, the opening and slope of the accelerator pedal and the brake pedal, it is possible to accurately determine whether the vehicle currently needs to enter the hill-staying state, thereby avoiding driving hazards such as abnormal noise of the transmission gear or even forward rush caused by the vehicle mistakenly entering the hill.

[0130] When the real-time three-axis attitude angle is invalid, the present application still maintains the basic hill-holding function. If the gear is detected to be the forward gear or the reverse gear, the parking brake has been released, the opening of the accelerator pedal and the brake pedal is 0 (the driver does not step on the accelerator and the brake in time), and the rear-slip speed is detected, and the rear-slip speed is detected for a continuous period of time, it is determined that the hill-holding conditions are met.

[0131] The control device of the electric vehicle includes a processor and a memory, the first acquisition unit, the first determination unit, the first control unit, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.

[0132] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be provided, and the problem of poor hill-holding control effect of electric vehicles in the prior art can be at least solved by adjusting kernel parameters.

[0133] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0134] An embodiment of the present application also provides a vehicle system, comprising: an electric vehicle; a domain controller, comprising one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the methods described; a sensor, communicatively connected to the domain controller, the sensor being used to obtain attitude angle data of the electric vehicle.

[0135] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the control method of the electric vehicle.

[0136] An embodiment of the present invention provides a processor, which is used to run a program, wherein the control method of the electric vehicle is executed when the program is run.

[0137] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0138] Step S201, when the target vehicle meets the hill-holding condition during driving, obtaining the current attitude angle and current mass of the target vehicle;

[0139] Step S202, determining, according to the current posture angle, the current mass, and a first preset relationship, a motor torque corresponding to the current posture angle and the current mass in the first preset relationship as a target torque, wherein the first preset relationship represents a corresponding relationship between the posture angle and mass of the vehicle and the motor torque required for controlling the parking of the vehicle;

[0140] Step S203, controlling the motor of the target vehicle to run at the target torque so that the target vehicle enters a hill-holding state, and using a PI regulator to perform closed-loop control on the torque of the motor, wherein the direction of the target torque is opposite to the wheel rotation direction corresponding to the target vehicle when sliding down the slope.

[0141] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0142] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement at least the following method steps:

[0143] Step S201, when the target vehicle meets the hill-holding condition during driving, obtaining the current attitude angle and current mass of the target vehicle;

[0144] Step S202, determining, according to the current posture angle, the current mass, and a first preset relationship, a motor torque corresponding to the current posture angle and the current mass in the first preset relationship as a target torque, wherein the first preset relationship represents a corresponding relationship between the posture angle and mass of the vehicle and the motor torque required for controlling the parking of the vehicle;

[0145] Step S203, controlling the motor of the target vehicle to run at the target torque so that the target vehicle enters a hill-holding state, and using a PI regulator to perform closed-loop control on the torque of the motor, wherein the direction of the target torque is opposite to the wheel rotation direction corresponding to the target vehicle when sliding down the slope.

[0146] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0147] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0148] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0151] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0152] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0153] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0154] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0155] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A control method for an electric vehicle, characterized in that: include: When the target vehicle meets the hill-holding condition during driving, obtaining the current attitude angle and current mass of the target vehicle; According to the current posture angle, the current mass and a first preset relationship, determining the motor torque corresponding to the current posture angle and the current mass in the first preset relationship as the target torque, wherein the first preset relationship represents the corresponding relationship between the posture angle and mass of the vehicle and the motor torque required for controlling the parking of the vehicle; The motor of the target vehicle is controlled to operate at the target torque so that the target vehicle enters a hill-holding state, and a PI regulator is used to perform closed-loop control on the torque of the motor, wherein the direction of the target torque is opposite to the direction of rotation of the wheels corresponding to the target vehicle when the vehicle is sliding down the slope. Obtain the current mass of the target vehicle, including: Using a Kalman filter algorithm to estimate the engine output shaft torque of the target vehicle; Acquiring acceleration data of the target vehicle; Based on the longitudinal dynamics model, a vehicle mass estimation model is established, the engine output shaft torque and the acceleration data are input into the vehicle mass estimation model, and the output of the vehicle mass estimation model is estimated by using a recursive least squares method to obtain the current mass. A PI regulator is used to perform closed-loop control on the torque of the motor, including: According to the current attitude angle and a second preset relationship, determining a PI parameter corresponding to the attitude angle range in which the current attitude angle is located as a target parameter of the PI regulator, wherein the second preset relationship represents a corresponding relationship between the attitude angle range and the PI parameter, and the target parameter includes a proportional coefficient and an integral coefficient; According to the target parameters and formula , determine the torque of the motor at the current moment and control the motor to run at the torque at the current moment, where t is the current moment, is the proportionality coefficient, is the integral coefficient, is the deviation value input to the PI regulator, is the torque at the current moment.

2. The method according to claim 1, characterized in that Before obtaining the current attitude angle and current mass of the target vehicle, the method further includes: when the target vehicle is started, obtaining the real-time three-axis attitude angle of the target vehicle collected by the sensor; determining whether the real-time three-axis attitude angle is valid, and the effective conditions of the real-time three-axis attitude angle include at least part of the following: the difference between the real-time three-axis attitude angle and the historical three-axis attitude angle is less than a first set value, the real-time three-axis attitude angle is not greater than a second set value, the attitude angle change value of at least one axis is less than a third set value, the real-time operation information of the sensor does not include fault information, and the historical three-axis attitude angle is the three-axis attitude angle corresponding to the previous moment of the real-time three-axis attitude angle. When the target vehicle meets the hill-holding condition during driving, the current attitude angle and the current mass of the target vehicle are obtained, including: when the real-time three-axis attitude angle is valid and the hill-holding condition is met, the three-axis attitude angle information and the current mass of the target vehicle are obtained; the three-axis attitude angle information is subjected to predetermined processing to obtain the current attitude angle, and the predetermined processing includes: taking the root mean square, taking the median and taking the average, and filtering processing.

3. The method according to claim 2, characterized in that When the real-time three-axis attitude angle is invalid, the method further includes: When the target vehicle is traveling on a road with a known slope, acquiring attitude angle data collected by the sensor; Calibrate the sensor according to the attitude angle data and the known slope; It is determined that the attitude angle data collected by the calibrated sensor is valid.

4. The method according to claim 2, characterized in that: When the target vehicle meets the hill-holding condition during driving and the real-time three-axis attitude angle is invalid, the method further includes: The motor of the target vehicle is controlled to run at a predetermined torque, and the torque of the motor is closed-loop controlled by using the PI regulator whose PI parameter is a predetermined parameter, wherein the predetermined torque is a torque determined when the target vehicle is unloaded.

5. The method according to claim 1, characterized in that After the PI regulator is used to perform closed-loop control on the torque of the motor, the method further includes: Obtaining the hill-staying time and / or the motor controller temperature of the target vehicle once every predetermined time period; When the hill-staying time exceeds a preset time and / or the temperature of the motor controller is greater than a predetermined temperature, the target vehicle is controlled to exit the hill-staying state.

6. The method according to claim 1, characterized in that When the target vehicle meets the hill-holding condition during driving, before obtaining the current attitude angle and current mass of the target vehicle, the method further includes: In the case where one of the following is met, it is determined that the target vehicle meets the hill-staying condition during the driving process: The gear position of the target vehicle is the forward gear, the parking brake is released, the opening of the accelerator pedal and the brake pedal is 0, and the slope of the road where the target vehicle is located is greater than the minimum slope angle threshold; The gear position of the target vehicle is the reverse gear, the parking brake has been released, the openings of the accelerator pedal and the brake pedal are 0, and the slope of the road where the target vehicle is located is greater than the minimum slope-holding angle threshold.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 6.

8. A vehicle system, characterized in that: include: Electric vehicles; A domain controller, comprising one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of claims 1 to 6; A sensor is communicatively connected to the domain controller, and the sensor is used to obtain attitude angle data of the electric vehicle.

Citation Information

Patent Citations

  • Vehicle mass identification method and device

    CN102486400A

  • Vehicle hill-start assist control method and device, vehicle and storage medium

    CN113928319A