Vehicle control method, system and equipment and vehicle
By using a proportional integral controller in new energy vehicles to adjust the torque according to the difference between the actual motor speed and the target speed, the problem of dynamic adjustment of torque in the existing technology is solved, and effective anti-slope control under different working conditions is achieved , improve driving safety.
Patent Information
- Application Number
- CN202411101659.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-12
AI Technical Summary
In the anti-sliding control, existing new energy vehicles cannot dynamically adjust torque according to the actual status and environmental conditions of the vehicle in real time, resulting in difficult control of the back slip distance on steep slopes or slippery roads, affecting safety.
The proportional integral controller (PI controller) is used to adjust the output torque in real time according to the difference between the actual motor speed and the target speed, ensuring that sufficient traction is provided under different working conditions to prevent the vehicle from slipping behind.
By dynamically adjusting the torque, the vehicle can be quickly stabilized in a harsh environment, significantly shortening the rear sliding distance, and improving the vehicle's driving safety on steep ramps or slippery roads.
Smart Images

Figure CN118928062A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of new energy vehicle technology, and in particular to a vehicle control method, system, device and vehicle. Background Art
[0002] As the popularity of new energy vehicles increases, people have higher and higher requirements for their safety and comfort. Among them, the anti-slope function is one of the main concerns. Unlike traditional fuel vehicles, new energy vehicles are generally not equipped with hill-holding brakes. Therefore, it is necessary to rely on the anti-slope algorithm to control the motor to achieve the anti-slope function, ensuring that the vehicle does not slide backward on the slope or the sliding distance is less than 20cm, thereby improving the safety of the vehicle.
[0003] At present, semi-open-loop control is usually used to solve the anti-slope sliding problem. During the design stage, engineers will preset a set of torque values based on experience or experimental data, which correspond to different working conditions. When the vehicle is detected to be sliding backward, the preset torque value is activated. The preset torque value is sent to the motor controller to prevent the vehicle from sliding backward. Once the preset parameters are determined, they cannot be dynamically adjusted according to the current actual state of the vehicle. For example, if the vehicle encounters a steeper slope or a more slippery road surface than expected in actual use, the vehicle's backward sliding speed increases, and the preset torque value may not be enough to prevent the vehicle from sliding backward. Therefore, it is currently impossible to achieve precise anti-slope sliding control under various working conditions. Summary of the invention
[0004] Based on the above problems, the present application provides a vehicle control method, system, device and vehicle, which are used to achieve anti-slope control under various working conditions through dynamic adjustment of the vehicle's anti-slope torque.
[0005] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:
[0006] A first aspect of the present application provides a vehicle control method, comprising:
[0007] Obtain vehicle operating status data;
[0008] When the running state data of the vehicle indicates that the vehicle meets the start condition of the anti-slope mode, adjusting the motor target speed of the proportional-integral controller to a first value, wherein the first value is used to ensure that in the anti-slope mode, the anti-slope torque output by the proportional-integral controller based on the difference between the motor target speed and the motor actual speed is a positive number;
[0009] Obtaining the anti-slope rolling torque proportional to the slope rolling speed of the vehicle output by the proportional-integral controller according to the difference between the motor target speed and the motor actual speed;
[0010] The vehicle is controlled based on the anti-hill rolling torque output by the proportional-integral controller.
[0011] In a possible implementation, the anti-slope mode activation condition includes:
[0012] When the control mode is the torque mode, the motor controller is in an enabled state, the handbrake is not pulled up, the vehicle is in a forward gear, and the motor speed is less than at least one of the second value.
[0013] In a possible implementation, the method for determining the anti-slope torque includes:
[0014] The proportional-integral controller determines an error value according to a difference between the motor target speed and the motor actual speed;
[0015] Multiplying the error value by the proportional gain to obtain a proportional link result;
[0016] Performing an integration operation on the error value until the calculated integral is greater than the maximum speed limit of the motor, and obtaining an integration link result, wherein the integration link result is the sum of the error accumulated over time;
[0017] The proportional link result and the integral link result are added together to obtain an anti-slope torque for preventing the vehicle from sliding backward.
[0018] In a possible implementation, the method further includes:
[0019] When the motor speed is greater than the third value, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit, and the anti-slope mode is exited.
[0020] In a possible implementation, the method further includes:
[0021] When the vehicle is in the anti-slope mode, the vehicle is shifting gears or the handbrake is in the pulled-up state, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit, and the anti-slope mode is exited.
[0022] In a possible implementation, the method further includes:
[0023] When the vehicle is in the anti-slope mode for longer than a preset time, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit within the preset time, and the anti-slope mode is exited.
[0024] In a possible implementation, controlling the vehicle based on the anti-slope torque output by the proportional-integral controller includes:
[0025] The anti-slope torque is superimposed on the initial torque of the vehicle to obtain the total output torque of the vehicle, where the initial torque of the vehicle is the torque required for the vehicle to perform a driving task;
[0026] A vehicle is controlled based on the total output torque.
[0027] A second aspect of the present application provides a vehicle control system, comprising:
[0028] A first acquisition unit, used to acquire running status data of the vehicle;
[0029] a first adjustment unit, configured to adjust a motor target speed of a proportional-integral controller to a first value when the running state data of the vehicle indicates that the vehicle meets a start condition of an anti-slope mode, wherein the first value is used to ensure that in the anti-slope mode, an anti-slope torque output by the proportional-integral controller based on a difference between the motor target speed and the motor actual speed is a positive number;
[0030] A second acquisition unit, used for acquiring the anti-slope torque proportional to the actual motor speed of the vehicle output by the proportional-integral controller according to the difference between the motor target speed and the motor actual speed;
[0031] A control unit is used to control the vehicle based on the anti-slope torque output by the proportional-integral controller.
[0032] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the vehicle control method described in the first aspect is implemented.
[0033] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions. When the instructions are executed on a terminal device, the terminal device executes the vehicle control method as described in the first aspect above.
[0034] A fifth aspect of the present application provides a vehicle, comprising a central electronic control module, wherein the central electronic control module is used to execute the vehicle control method as described in the first aspect above.
[0035] Compared with the prior art, this application has the following beneficial effects:
[0036] The output torque is adjusted in real time according to the difference between the actual motor speed of the vehicle and the target motor speed through the proportional-integral controller, so when the vehicle begins to have a tendency to slide backward, the controller can immediately respond and increase the output torque to prevent the backward slide. For example, in actual use, the vehicle encounters a steeper slope or a more slippery road than expected. As the backward slide speed increases, the actual motor speed increases, and the torque output by the proportional-integral controller will also increase accordingly, which means that even in a relatively harsh working environment, the proportional-integral controller can calculate and provide sufficient traction to stabilize the vehicle faster, thereby greatly shortening the backward slide distance. Therefore, the use of the proportional-integral controller and the first value ensures that sufficient traction can be provided to stabilize the vehicle in different environments, effectively preventing the vehicle from sliding backward. This method significantly improves the driving safety of the vehicle on steep slopes or slippery roads. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art 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 creative work.
[0038] Figure 1 A flow chart of a vehicle control method provided in an embodiment of the present application;
[0039] Figure 2 A framework diagram for determining the anti-slope torque provided in an embodiment of the present application;
[0040] Figure 3 A flowchart of another vehicle control method provided in an embodiment of the present application;
[0041] Figure 4 A structural diagram of a vehicle control system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] 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 are within the scope of protection of this application.
[0043] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the professional terms involved in the embodiments of the present application will be explained below.
[0044] Proportional-integral controller: also known as speed loop PI controller, where P refers to the proportional link and I refers to the integral link. The proportional-integral controller is a closed-loop control with the actual speed and target speed as input and torque as output. The controller will output a torque through the proportional link and the integral link according to the actual speed and the target speed.
[0045] Speed loop integral saturation: When the actual speed cannot keep up with the target speed, the integral link of the PI controller will continue to accumulate, causing the integral link to be infinite.
[0046] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application will be described below.
[0047] As mentioned above, in the prior art, the open-loop control method to achieve vehicle anti-slope control mainly relies on preset torque parameters and vehicle status monitoring, rather than real-time feedback adjustment. Manufacturers will preset a series of torque parameters based on the vehicle's dynamic characteristics, motor performance, and common slope conditions. When the vehicle is detected to be sliding backward, the preset torque value is activated. The preset torque value is sent to the motor controller to prevent the vehicle from sliding backward.
[0048] The preset torque value is often based on the engineer's experience or limited experimental data, which may lead to inaccurate parameter settings or failure to cover all possible operating conditions. Different vehicles, road conditions, slopes, and loads will affect the required torque value, and semi-open-loop control has difficulty adapting to these changes in real time. Once the preset parameters are determined, the system cannot dynamically adjust according to the current actual state of the vehicle. For example, if the vehicle encounters a steeper slope or a more slippery road than expected in actual use, the preset torque value may not be enough to prevent the vehicle from sliding backwards, so the vehicle's sliding distance may not be accurately controlled. In some cases, the sliding distance may exceed the safe range, increasing safety risks.
[0049] In addition, in order to ensure that the preset torque value is suitable for various working conditions, engineers need to perform a lot of calibration work during the design phase. This includes experiments under different slopes, road conditions and loads to collect enough data to optimize parameter settings. This process is not only time-consuming and labor-intensive, but also costly. Since different batches of vehicles may have manufacturing differences, each batch of vehicles requires separate calibration work. This further increases the cost and time of debugging. During use, if the vehicle or road conditions change (such as motor performance degradation, tire wear, etc.), the preset torque value may need to be recalibrated. This increases the complexity and cost of subsequent maintenance.
[0050] In order to solve the above problems, a vehicle control method is provided in an embodiment of the present application, which determines whether the vehicle is in a situation where an anti-slope mode needs to be activated based on the acquired vehicle operating status data. Once it is determined that the anti-slope mode needs to be activated, the system will adjust the motor target speed of the PI controller to a first value. The first value is a preset, sufficiently small positive value (or zero value), and its purpose is to ensure that in the anti-slope mode, the PI controller always outputs a positive anti-slope torque based on the difference between the motor target speed and the actual motor speed. This positive torque will be used to prevent the vehicle from sliding backward. The PI controller calculates the anti-slope torque to be applied based on the difference between the adjusted motor target speed and the actual motor speed, as well as the preset proportional gain and integral gain. This torque is dynamically adjusted and can respond to changes in vehicle status and environmental conditions in real time, thereby providing a more stable and precise control effect.
[0051] It should be noted that the vehicle control method, system, device and vehicle provided in this application can be applied to the field of new energy vehicle technology. The above is only an example and does not limit the application field of the vehicle control method, system, device and vehicle provided in this application.
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, 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 are within the scope of protection of this application.
[0053] The following describes a vehicle control method provided by the present application through an embodiment. Figure 1 ,Should Figure 1 A flow chart of a vehicle control method provided in an embodiment of the present application, wherein the execution subject may be a controller, and the method includes:
[0054] S101. Obtain vehicle operation status data.
[0055] For example, the motor controller can obtain the current running status data of the whole vehicle. The motor controller (MCU) plays a vital role in electric vehicles or hybrid vehicles. It is responsible for receiving signals from various sensors of the vehicle and controlling the operation of the motor according to these signals and preset control strategies.
[0056] Among them, the operating status data may include motor speed, gear signal, control mode signal, MCU enable signal, and handbrake signal.
[0057] The control mode signal represents the current control mode of the vehicle, such as torque mode, speed mode, etc.
[0058] The handbrake signal is used to indicate whether the vehicle's handbrake has been pulled up.
[0059] The gear signal represents the current gear position of the vehicle, including forward gear, reverse gear and neutral gear.
[0060] The motor speed is used to determine whether the vehicle is sliding backward or forward. By monitoring the motor speed in real time, the controller can understand the current working status of the motor and adjust the motor's output torque or power as needed to achieve functions such as acceleration, deceleration, or maintaining a constant speed. In addition, the motor speed is also used to calculate key information such as the vehicle's driving speed and mileage.
[0061] The MCU enable signal indicates whether the motor controller is activated and ready to receive control instructions. When this signal is activated, the motor controller starts to receive and process input signals and output control signals to drive the motor. Conversely, when this signal is disabled, the motor controller stops working and enters standby mode.
[0062] S102: When the running status data of the vehicle indicates that the vehicle meets the start-up condition of the anti-slope mode, adjusting the motor target speed of the proportional-integral controller to a first value.
[0063] The first value is used to ensure that in the anti-slope mode, the anti-slope torque output by the proportional-integral controller based on the difference between the motor target speed and the motor actual speed is a positive number.
[0064] That is, according to the vehicle running status data obtained in the above steps, the system performs a logical judgment to determine whether the start condition of the anti-slope mode is met, for example, the vehicle is going uphill or the speed of the vehicle starts to decrease.
[0065] Once the anti-slope mode is entered, the system adjusts the motor target speed of the PI controller to a first value. The first value is used to ensure that in the anti-slope mode, no matter how the actual motor speed of the vehicle changes, the PI controller can output a positive anti-slope torque based on the difference between the motor target speed and the motor actual speed to resist the backward sliding tendency of the vehicle. Exemplarily, the first value can be set to a value slightly greater than zero, or set to zero, to ensure that the controller always has power output to prevent backward sliding.
[0066] And the anti-slope torque is calculated based on the difference between the target speed of the motor and the actual speed of the motor. Generally, the greater the speed of the vehicle's backward sliding, the greater the speed of the vehicle's motor will be. This is because the vehicle needs to overcome gravity and friction to stop sliding during the backward sliding process, which requires the motor to provide more driving force. The driving force provided by the motor is determined by the speed of the motor. Therefore, the greater the speed of the vehicle's backward sliding, the greater the speed of the motor. That is, the torque value is proportional to the actual speed of the vehicle's motor, which means that as the speed of the vehicle's backward sliding increases, the torque output by the controller will also increase accordingly, which can stabilize the vehicle faster and prevent the vehicle from sliding backward.
[0067] In a possible implementation, the anti-slope mode activation condition includes:
[0068] When the control mode is the torque mode, the motor controller is in an enabled state, the handbrake is not pulled up, the vehicle is in a forward gear, and the motor speed is less than at least one of the second value.
[0069] Among them, the control mode is torque mode, which means that the current working condition requires precise control of torque. The motor controller is in the enabled state, that is, the MCU enable signal is 1, indicating that the motor controller is activated and can receive and execute control instructions. The handbrake is not pulled up, that is, the handbrake signal is 0, indicating that the handbrake is not pulled up, and the vehicle may slide backward due to gravity. The vehicle is in forward gear, that is, the gear signal is D gear. The second value can be adaptively adjusted according to actual needs and application scenarios. For example, the second value can be set to -15rpm. The motor speed is less than the second value, that is, the current motor speed is a negative value (<-15rpm), indicating that the current vehicle is sliding backward.
[0070] When at least one of the above conditions is met, it can be determined that the vehicle is at risk of rolling backwards and automatically enters the anti-rolling mode. In the anti-rolling mode, the motor controller can increase the output torque according to the preset dynamic adjustment strategy to offset the vehicle's backward rolling tendency and ensure that the vehicle is safely parked on the slope.
[0071] S103, obtaining the anti-slope torque proportional to the actual motor speed of the vehicle output by the proportional-integral controller according to the difference between the motor target speed and the motor actual speed.
[0072] In one possible implementation, the anti-slope torque is determined based on a PI controller, see Figure 2 , Figure 2The anti-slope torque determination framework diagram provided in the embodiment of the present application includes a proportional link and an integral link. The special speed loop PI controller is a closed-loop control for adjusting the output torque according to the motor target speed (Rev_speed_Ref) and the current speed fitting value (speed_fit) to achieve speed control or prevent the vehicle from sliding backward. The anti-slope torque determination method includes:
[0073] Step A1: The proportional-integral controller determines an error value according to a difference between the motor target speed and the motor actual speed.
[0074] That is, Rev_Speed_Error=-(Rev_speed_Ref)-(speed_fit).
[0075] Among them, Rev_Speed_Error refers to the error, which is determined based on the difference between the motor target speed (Rev_speed_Ref) and the motor actual speed (speed_fit). The error value represents the deviation between the current state and the expected state.
[0076] There is a minus sign in front of Rev_speed_Ref in the above expression to ensure that when Rev_speed_Ref is positive (expected to move forward) and speed_fit is negative (actually moving backward), the error is positive, thus triggering a positive torque output to prevent backward slip.
[0077] Step A2: multiply the error value by the proportional gain to obtain a proportional link result.
[0078] Among them, the proportional gain is Kp, and the proportional link result is Rev_Speed_Error*Kp. The proportional gain is an adjustable parameter that determines the direct influence of the error value on the controller output (i.e., the anti-slope torque).
[0079] Step A3, performing an integration operation on the error value until the calculated integral is greater than the maximum speed limit of the motor, thereby obtaining an integration link result.
[0080] The controller will integrate the error value until the calculated integral exceeds the maximum torque limit of the motor. The result of the integral link is the sum of the accumulated errors over time, which reflects the situation that the vehicle deviates from the motor target speed for a long time. The integral time constant is used to adjust the strength of the integral effect, that is, to affect the size of the integral link result.
[0081] In a possible implementation, the result of the integration link may be obtained by integrating the error value according to an integration time constant, where the integration time constant is used to characterize the intensity of the integration effect.
[0082] Step A4: Add the proportional link result and the integral link result to obtain an anti-slope torque for preventing the vehicle from sliding backward.
[0083] That is, Rev_Speed_OutPut=Rev_Speed_Error*Kp+integral term.
[0084] Among them, Rev_Speed_OutPut refers to the output anti-slope torque, and the controller can add the result of the proportional link and the result of the integral link to obtain the final anti-slope torque. The proportional term (Kp*Rev_Speed_Error) provides immediate response, while the integral term accumulates the error to eliminate the steady-state error.
[0085] In the anti-slip mode, speed_fit<0. And because the reference speed Rev_speed_Ref has been adjusted to 0, and the actual speed is negative, Rev_Speed_OutPut is a positive value (proportional to the error and proportional gain Kp), and as the slip speed increases, the error will also increase, so the output torque will also increase. Because it is a closed-loop control, the torque output can be automatically adjusted according to the change of the slip speed, so the torque can be controlled more accurately, the slip distance can be reduced, and the safety can be improved.
[0086] When the vehicle is running normally, speed_fit>0, because the reference speed Rev_speed_Ref has been adjusted to the maximum speed of the motor. As the vehicle speed increases, that is, the speed_fit increases, the absolute value of the error decreases, and the output of the proportional term decreases accordingly, until it finally approaches 0. That is, Rev_Speed_OutPut will gradually decrease until it is 0. This closed-loop control helps to smoothly transition to the normal driving state, reduces the shaking phenomenon that may occur when the vehicle exits the anti-slope mode, and improves driving comfort.
[0087] S104: Control the vehicle based on the anti-hill rolling torque output by the proportional-integral controller.
[0088] That is, the controller obtains the anti-slope torque output by the proportional-integral controller to realize the control of the vehicle power system. As a result, the vehicle can obtain enough power to overcome gravity and road resistance, thereby maintaining a stable driving state and avoiding the occurrence of backward sliding accidents.
[0089] In a possible implementation, controlling the vehicle based on the anti-slope torque output by the proportional-integral controller includes:
[0090] The anti-slope torque is superimposed on the initial torque of the vehicle to obtain a total output torque of the vehicle; and the vehicle is controlled according to the total output torque.
[0091] The initial torque of the vehicle is the torque required for the vehicle to perform a driving task, and the torque may be the torque provided by a vehicle control unit (VCU).
[0092] In the anti-slope mode, the speed loop PI controller will generate an additional anti-slope torque, which will act on the vehicle together with the torque originally given by the VCU, so that the vehicle has enough driving force to prevent backward sliding. This design can effectively protect the safety of the vehicle when the vehicle goes uphill or encounters other situations that may cause backward sliding.
[0093] The vehicle still needs to continuously obtain operating status data in the anti-slope mode. If the acquired data meets the conditions for exiting the anti-slope mode, such as the motor speed is too high, the vehicle is shifting gears or the handbrake is pulled up, the anti-slope mode lasts too long, etc., then the speed loop PI controller will cancel the anti-slope torque and restore the vehicle to normal working mode.
[0094] In a possible implementation, the method further includes:
[0095] When the motor speed is greater than the third value, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit, and the anti-slope mode is exited.
[0096] That is, the exit condition based on the motor speed is set based on the motor speed. If the motor speed exceeds a preset third value, where the third value can be set according to the specific situation and design requirements of the vehicle, the controller can determine that the vehicle has escaped the risk of sliding backwards, or the driver has actively intervened in the movement of the vehicle by stepping on the accelerator. At this time, the motor target speed of the proportional-integral controller will be adjusted to the maximum torque limit of the motor to ensure that the vehicle can accelerate or continue to drive smoothly, and exit the anti-slope mode at the same time.
[0097] In a possible implementation, the method further includes:
[0098] When the vehicle is in the anti-slope mode, the vehicle is shifting gears or the handbrake is in the pulled-up state, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit, and the anti-slope mode is exited.
[0099] That is, the driver's active operation is used as the condition for exiting the anti-slope mode. If the driver performs a gear shift operation (whether upshifting or downshifting) or pulls the handbrake while the vehicle is in the anti-slope mode, the controller can determine that the driver has taken measures to control the vehicle's motion state. At this time, in response to the driver's operation, the motor target speed of the proportional-integral controller will be adjusted to the maximum torque limit of the motor, and the anti-slope mode will be exited so that the vehicle can drive according to the driver's intention.
[0100] In a possible implementation, the method further includes:
[0101] When the vehicle is in the anti-slope mode for longer than a preset time, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit within the preset time, and the anti-slope mode is exited.
[0102] That is, time is used as the condition for exiting the anti-slope mode. If the vehicle is in the anti-slope mode for longer than a preset time, which can be set according to the specific conditions and design requirements of the vehicle, the controller can determine that the vehicle has escaped the risk of backward sliding or the tendency of backward sliding has been effectively controlled even without the driver's active intervention. At this time, in order to avoid unnecessary impact on the vehicle caused by the controller being in a special control mode for a long time, the motor target speed of the proportional-integral controller is adjusted to the maximum torque limit of the motor, and the anti-slope mode is gradually exited within the next preset time, so that the vehicle returns to normal working mode.
[0103] For the overall process of the above steps, please refer to Figure 3 , Figure 3 A flow chart of another vehicle control method provided in an embodiment of the present application includes:
[0104] S201, adjusting the motor target speed to the maximum speed.
[0105] During normal vehicle operation, the controller sets the motor target speed of the proportional-integral controller to a speed corresponding to the maximum speed of the motor to maximize the acceleration and operating performance of the vehicle.
[0106] S202, the output torque of the proportional-integral controller is superimposed on the VCU torque.
[0107] The torque output from the proportional-integral controller (PI Controller) is superimposed with the torque value calculated by the vehicle control unit (VCU). This helps to precisely control the vehicle's drive torque for smoother acceleration and speed control.
[0108] S203: Determine whether to enter the anti-slope mode.
[0109] The controller checks whether it is necessary to enter the anti-slope mode based on the current road conditions and / or the vehicle status to prevent the vehicle from rolling down the slope.
[0110] S204, adjusting the motor target speed to 0.
[0111] If it is determined that the anti-slope mode needs to be entered, the motor target speed of the proportional-integral controller is adjusted to 0, that is, the vehicle will try to stop moving to maintain the current position.
[0112] S205, determine whether the motor speed is >150rpm.
[0113] After the vehicle enters the anti-slope mode, it checks whether the current speed of the motor exceeds 150 revolutions per minute (rpm) to determine whether the vehicle has started to move or is in a dynamic state.
[0114] S206: The motor target speed is adjusted to the motor maximum speed.
[0115] If the motor speed is greater than 150rpm, the controller can determine that the vehicle is no longer at risk of rolling back, or that the driver has actively intervened in the vehicle's movement by stepping on the accelerator, etc. At this point, the motor target speed of the proportional-integral controller will be adjusted to the maximum torque limit of the motor to ensure that the vehicle can accelerate or continue driving smoothly and exit the anti-rollover mode at the same time.
[0116] S207: Determine whether to change gears / apply the handbrake.
[0117] S208, the motor target speed is set to the motor maximum speed.
[0118] If the driver changes gears (either upshifting or downshifting) or pulls the handbrake while the vehicle is in the anti-slope mode, the controller can determine that the driver has taken measures to control the vehicle's motion. At this time, in response to the driver's operation, the motor target speed of the proportional-integral controller will be adjusted to the motor's maximum torque limit, and the anti-slope mode will be exited so that the vehicle can drive as the driver intended.
[0119] S209, judging whether the slope dwelling time is greater than 5S.
[0120] S210: The motor target speed increases linearly from 0 to the motor maximum speed within 5 seconds.
[0121] If the vehicle is in the anti-slope mode for a period of time exceeding a preset time, which can be set according to the specific conditions and design requirements of the vehicle, the controller can determine that the vehicle has escaped the risk of backward sliding or the tendency of backward sliding has been effectively controlled even without the driver's active intervention. At this time, in order to avoid unnecessary impact on the vehicle caused by the controller being in a special control mode for a long time, the motor target speed of the proportional-integral controller is adjusted to the maximum torque limit of the motor, and the anti-slope mode is gradually exited within the next preset time, so that the vehicle returns to normal working mode.
[0122] For example, the above three conditions for exiting the anti-slope mode may be in a sequential order, that is, the motor speed, gear shifting / handbrake pulling, and hill holding time are judged in sequence. During the judgment process, if the vehicle meets any of the conditions for exiting the anti-slope mode, no subsequent judgment is performed, and after adjusting the motor target speed, step S212 is executed to maintain the normal driving state.
[0123] In another possible implementation, the above three conditions for exiting the anti-slope mode can be performed simultaneously, that is, the vehicle operation data is simultaneously obtained to determine whether the motor speed, gear shifting / handbrake pulling, and hill holding time meet the conditions for exiting the anti-slope mode. During the judgment process, if the vehicle meets any of the conditions for exiting the anti-slope mode, no subsequent judgment is performed, and after adjusting the motor target speed, step S212 is executed to maintain the normal driving state.
[0124] S211, maintain the hill-standing state.
[0125] That is, if any of the above three conditions for exiting the anti-slope rolling mode are not met, the vehicle will continue to maintain the current slope-stayed state to ensure the stability of the vehicle.
[0126] S212. Maintain normal driving status.
[0127] After determining through the above-mentioned judgment methods that the current vehicle has no need to prevent slope rollback or has successfully completed the slope rollback operation, the vehicle returns to normal driving state and controls the vehicle speed according to the driver's instructions and road conditions.
[0128] In summary, the method provided in the embodiments of the present application has the following beneficial effects compared with the prior art:
[0129] First, the open-loop or semi-open-loop control adopted in the prior art cannot adjust the hill-holding torque according to the vehicle state and environmental conditions in real time, resulting in the size of the initial hill-holding torque needing to be repeatedly calibrated on the actual vehicle. This is not only time-consuming and labor-intensive, but also difficult to ensure that the best hill-holding effect can be obtained in all cases. The present application introduces a PI controller and dynamically adjusts its motor target speed, so that the system can output the correct anti-slope torque in real time according to the difference between the actual motor speed of the vehicle and the motor target speed, thereby solving the problem of the uncertainty of the initial hill-holding torque.
[0130] Second, open-loop or semi-open-loop control is unable to sense and adjust the output in real time, resulting in limited control effect and slow response time. When the vehicle enters or exits the hill-holding state, the shortcomings of this control method are particularly obvious, which may cause the vehicle to shake and slide back too far. This application adopts a closed-loop control strategy of the PI controller, which can sense the changes in the vehicle state in real time and adjust the output torque quickly and in real time accordingly, thereby improving the control effect and response time, and reducing vehicle shaking and sliding back distance.
[0131] Third, in the prior art, the hill-holding torque is often a fixed value obtained through calibration, which has poor adaptability to different vehicles or the same vehicle under different usage conditions. Different batches of vehicles may require different hill-holding torque parameters due to manufacturing differences, which increases the complexity and cost of the calibration work. The present application uses the dynamic adjustment mechanism of the PI controller to enable the system to automatically adapt to changes between different vehicles and the same vehicle under different usage conditions, thereby improving the robustness of the system.
[0132] Fourth, the prior art requires repeated calibration on the actual vehicle to determine the initial hill-holding torque and the cumulative torque at each speed range, which results in high debugging costs. This application reduces the reliance on calibration work and reduces debugging costs and time by introducing a PI controller and a dynamic adjustment mechanism.
[0133] The above are some specific implementations of the vehicle control method provided in the embodiment of the present application. Based on this, the present application also provides a corresponding system for vehicle control. The system provided in the embodiment of the present application will be introduced from the perspective of functional modularization. Figure 4 A structural diagram of a vehicle control system provided in an embodiment of the present application.
[0134] The system comprises:
[0135] A first acquisition unit 110 is used to acquire running status data of the vehicle;
[0136] A first adjustment unit 111 is used for adjusting the motor target speed of the proportional-integral controller to a first value when the running state data of the vehicle indicates that the vehicle meets the start condition of the anti-slope mode, wherein the first value is used to ensure that in the anti-slope mode, the anti-slope torque output by the proportional-integral controller based on the difference between the motor target speed and the motor actual speed is a positive number;
[0137] A second acquisition unit 112 is used to acquire the anti-slope torque proportional to the actual motor speed of the vehicle output by the proportional-integral controller according to the difference between the motor target speed and the motor actual speed;
[0138] The control unit 113 is used to control the vehicle based on the anti-hill rolling torque output by the proportional integral controller.
[0139] In a possible implementation, the anti-slope mode activation condition includes:
[0140] When the control mode is the torque mode, the motor controller is in an enabled state, the handbrake is not pulled up, the vehicle is in a forward gear, and the motor speed is less than at least one of the second value.
[0141] In a possible implementation, the method for determining the anti-slope torque includes:
[0142] The proportional-integral controller determines an error value according to a difference between the motor target speed and the motor actual speed;
[0143] Multiplying the error value by the proportional gain to obtain a proportional link result;
[0144] Performing an integration operation on the error value until the calculated integral is greater than the maximum speed limit of the motor, and obtaining an integration link result, wherein the integration link result is the sum of the error accumulated over time;
[0145] The proportional link result and the integral link result are added together to obtain an anti-slope torque for preventing the vehicle from sliding backward.
[0146] In a possible implementation, the system further includes:
[0147] The second adjustment unit is used to adjust the motor target speed of the proportional-integral controller to the maximum speed limit of the motor and exit the anti-slope mode when the motor speed is greater than a third value.
[0148] In a possible implementation, the system further includes:
[0149] The first exit unit is used to adjust the motor target speed of the proportional-integral controller to the maximum motor speed limit and exit the anti-slope mode when the vehicle is in the anti-slope mode and the vehicle is shifting gears or the handbrake is in the pulled-up state.
[0150] In a possible implementation, the system further includes:
[0151] The second exit unit is used to adjust the motor target speed of the proportional-integral controller to the maximum motor speed limit within the preset time and exit the anti-slope mode when the vehicle is in the anti-slope mode for more than a preset time.
[0152] In a possible implementation manner, the control unit is specifically configured to:
[0153] The anti-slope torque is superimposed on the initial torque of the vehicle to obtain the total output torque of the vehicle, where the initial torque of the vehicle is the torque required for the vehicle to perform a driving task;
[0154] A vehicle is controlled based on the total output torque.
[0155] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the vehicle control method provided in the embodiments of the present application.
[0156] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the vehicle control method described in any embodiment of the present application.
[0157] The computer storage medium stores codes, and when the codes are executed, a device executing the codes implements the vehicle control method described in any embodiment of the present application.
[0158] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0159] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0160] It should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0161] It should be noted that, unless otherwise clearly specified and limited, the terms "installed", "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 a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection 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 the present invention can be understood according to specific circumstances.
[0162] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0163] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0164] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A vehicle control method, characterized in that: include: Obtain vehicle operating status data; When the running state data of the vehicle indicates that the vehicle meets the start condition of the anti-slope mode, adjusting the motor target speed of the proportional-integral controller to a first value, wherein the first value is used to ensure that in the anti-slope mode, the anti-slope torque output by the proportional-integral controller based on the difference between the motor target speed and the motor actual speed is a positive number; Obtaining the anti-slope rolling torque proportional to the slope rolling speed of the vehicle output by the proportional-integral controller according to the difference between the motor target speed and the motor actual speed; The vehicle is controlled based on the anti-hill rolling torque output by the proportional-integral controller.
2. The method according to claim 1, characterized in that The anti-slope mode start-up conditions include: When the control mode is the torque mode, the motor controller is in an enabled state, the handbrake is not pulled up, the vehicle is in a forward gear, and the motor speed is less than at least one of the second value.
3. The method according to claim 1, characterized in that: The method for determining the anti-slope torque includes: The proportional-integral controller determines an error value according to a difference between the motor target speed and the motor actual speed; Multiplying the error value by the proportional gain to obtain a proportional link result; Performing an integration operation on the error value until the calculated integral is greater than the maximum speed limit of the motor, and obtaining an integration link result, wherein the integration link result is the sum of the error accumulated over time; The proportional link result and the integral link result are added together to obtain an anti-slope torque for preventing the vehicle from sliding backward.
4. The method according to claim 1, characterized in that: The method further comprises: When the motor speed is greater than the third value, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit, and the anti-slope mode is exited.
5. The method according to claim 1, characterized in that The method further comprises: When the vehicle is in the anti-slope mode, the vehicle is shifting gears or the handbrake is in the pulled-up state, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit, and the anti-slope mode is exited.
6. The method according to claim 1, characterized in that The method further comprises: When the vehicle is in the anti-slope mode for longer than a preset time, the motor target speed of the proportional-integral controller is adjusted to the motor maximum speed limit within the preset time, and the anti-slope mode is exited.
7. The method according to claim 1, characterized in that The method of controlling the vehicle based on the anti-slope torque output by the proportional-integral controller includes: The anti-slope torque is superimposed on the initial torque of the vehicle to obtain the total output torque of the vehicle, where the initial torque of the vehicle is the torque required for the vehicle to perform a driving task; A vehicle is controlled based on the total output torque.
8. A vehicle control system, characterized in that: The system comprises: A first acquisition unit, used to acquire running status data of the vehicle; a first adjustment unit, configured to adjust a motor target speed of a proportional-integral controller to a first value when the running state data of the vehicle indicates that the vehicle meets a start condition of an anti-slope mode, wherein the first value is used to ensure that in the anti-slope mode, an anti-slope torque output by the proportional-integral controller based on a difference between the motor target speed and the motor actual speed is a positive number; A second acquisition unit, used for acquiring the anti-slope torque proportional to the actual motor speed of the vehicle output by the proportional-integral controller according to the difference between the motor target speed and the motor actual speed; A control unit is used to control the vehicle based on the anti-slope torque output by the proportional-integral controller.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the vehicle control method according to any one of claims 1 to 7 is implemented.
10. A vehicle, characterized in that: The vehicle includes a central electronic control module, and the central electronic control module is used to execute the vehicle control method described in any one of claims 1-7.
