Vehicle control method and device, vehicle and computer readable storage medium

By controlling the drive motor to lock and adjusting the output torque when the electric vehicle's anti-slope function is turned on, the problem of too long a slope distance and slow response speed when starting on a slope is solved and faster anti-slope control is achieved. and shorter slope distances.

CN118528811APending Publication Date: 2024-08-23GUANGDONG GOBAO INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410676309.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing electric vehicles have problems such as the sliding distance is too long when starting on a slope, the response speed of the anti-slope control is slow, and the braking force is insufficient when the drive motor is locked, causing the vehicle to slide down.

Method used

When it is detected that the anti-slide function is turned on, the drive motor is controlled to lock, and the output torque is adjusted according to the vehicle's displacement changes to adjust the output torque of the drive motor to resist the slope, ensuring that the vehicle remains stationary within the slope range and avoids sliding.

Benefits of technology

It achieves zero-displacement anti-slide control, improves the response speed of anti-slide control, shortens the slide distance, and avoids the slide caused by insufficient braking force when the drive motor locks up.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118528811A
    Figure CN118528811A
Patent Text Reader

Abstract

The invention is suitable for the technical field of vehicles, and provides a vehicle control method and device, a vehicle and a computer readable storage medium. The method comprises the steps that when it is detected that an anti-slip function is started, a driving motor is controlled to be locked, and under the condition that the driving motor is locked, if it is detected that the displacement of the vehicle changes, the anti-slip function is started; the output torque of the motor is adjusted to resist the vehicle from sliding on the slope. When it is detected that the anti-slip function is started, the driving motor is controlled to be locked to provide braking force for the vehicle, so that the vehicle is static within a certain gradient range, zero-displacement anti-slip is achieved, the vehicle is prevented from being controlled after sliding downwards by a certain distance, and the response speed of anti-slip control is increased; and under the condition that the braking force cannot enable the vehicle to be static, the output torque of the driving motor is further adjusted to confront the vehicle from sliding on the slope, so that the vehicle is prevented from sliding downwards due to insufficient braking force generated when the driving motor is locked, and the slope sliding distance of the vehicle in the hill starting process is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] When driving an electric vehicle, users may need to start on a slope. When starting on a slope, they usually squeeze the brakes first to make the vehicle stop on the slope, and then release the brakes to prepare for starting. At the moment of releasing the brakes, the vehicle may slide backwards. In order to improve the driving experience, electric vehicles are currently generally equipped with an anti-slope function to prevent the vehicle from sliding backwards when starting on a slope.

[0003] In the related art, the anti-slope function of electric vehicles mostly adopts a speed closed-loop proportional-integral-derivative control (PID) scheme. In this scheme, the anti-slope control is generally started after the electric vehicle slides down the slope, which easily causes the electric vehicle to slide down the slope for too long. Summary of the invention

[0004] The embodiments of the present application provide a vehicle control method, device, vehicle and computer-readable storage medium, which can solve the problem of excessively long rolling distance when an electric vehicle starts on a slope in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a vehicle control method, including:

[0006] When the anti-slope function of the vehicle is detected to be turned on, the driving motor of the vehicle is controlled to lock;

[0007] When the drive motor is locked, if a change in the displacement of the vehicle is detected, the output torque of the drive motor is adjusted, and the output torque is used to prevent the vehicle from rolling down the slope.

[0008] Further, adjusting the output torque of the driving motor includes:

[0009] When the drive motor has no output torque, the output torque of the drive motor is adjusted to a preset torque, where the preset torque is consistent with the braking torque generated when the drive motor is locked;

[0010] When the drive motor has output torque, the adjustment step length of the output torque is determined according to the driving data of the vehicle, and the output torque of the drive motor is adjusted according to the adjustment step length, and the driving data includes driving speed and / or acceleration.

[0011] Further, adjusting the step size includes adjusting the size and adjusting the direction;

[0012] According to the vehicle's driving data, the adjustment step length of the output torque is determined, including:

[0013] Determine the adjustment size according to the value of the driving speed;

[0014] The adjustment direction is determined according to the direction of the driving speed, the direction of the acceleration and the traveling direction of the vehicle.

[0015] Further, the adjustment direction is determined according to the direction of the driving speed, the direction of the acceleration and the traveling direction of the vehicle, including:

[0016] If the direction of the driving speed and the direction of the acceleration are both opposite to the moving direction of the vehicle, the adjustment direction is determined to be the positive direction;

[0017] If the direction of the driving speed and the direction of the acceleration are both the same as the traveling direction of the vehicle, the adjustment direction is determined to be a negative direction.

[0018] Further, adjusting the output torque of the driving motor includes:

[0019] If the direction of the vehicle's travel speed is opposite to the vehicle's traveling direction, and the direction of the vehicle's acceleration is the same as the vehicle's traveling direction, the output torque of the drive motor is not adjusted.

[0020] Furthermore, when it is detected that the anti-slope function of the vehicle is turned on, before controlling the drive motor of the vehicle to lock, the method further includes:

[0021] When the vehicle meets the preset conditions, the anti-slope function is turned on. The preset conditions include at least one of the following conditions: the drive motor is in a non-driving state, the vehicle is in a stationary state, the vehicle is in a braked state, and the duration of the vehicle in the braked state is greater than or equal to the preset duration.

[0022] Furthermore, when it is detected that the anti-slope function of the vehicle is turned on, after controlling the driving motor of the vehicle to lock, the method further includes:

[0023] Determine a handlebar torque of the vehicle, where the handlebar torque is an expected torque corresponding to a handlebar opening of the vehicle;

[0024] When the handlebar torque is greater than the vehicle's output torque, the anti-slope function of the vehicle is turned off.

[0025] In a second aspect, an embodiment of the present application provides a vehicle control device, including:

[0026] A control unit, used to control the vehicle's drive motor to lock when detecting that the vehicle's anti-slope function is turned on;

[0027] The regulating unit is used to regulate the output torque of the driving motor when a change in the displacement of the vehicle is detected when the driving motor is locked, and the output torque is used to prevent the vehicle from rolling down a slope.

[0028] In a third aspect, an embodiment of the present application provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect above when executing the computer program.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of the first aspect above is implemented.

[0030] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0031] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when the anti-slope function is detected to be turned on, the drive motor is first controlled to lock, and when the drive motor is locked, if the displacement of the vehicle is detected to have changed, the output torque of the motor is adjusted to counteract the vehicle from sliding down the slope. When the anti-slope function is detected to be turned on, the drive motor is controlled to lock to provide braking force to the vehicle, so that the vehicle is stationary within a certain slope range, and zero-displacement anti-slope is achieved, which avoids the vehicle from sliding down a certain distance before controlling the vehicle, and improves the response speed of the anti-slope control. In addition, when the braking force cannot stop the vehicle, the output torque of the drive motor is further adjusted to counteract the vehicle from sliding down the slope, which avoids the vehicle from sliding down due to insufficient braking force generated when the drive motor is locked, and helps to shorten the vehicle's sliding distance during the slope start process. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions 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.

[0033] Figure 1 is a flow chart of an implementation of a vehicle control method provided in an embodiment of the present application;

[0034] Figure 2 is a flow chart of an implementation of a vehicle control method provided in an embodiment of the present application;

[0035] Figure 3 is a flow chart of an implementation of a vehicle control method provided in an embodiment of the present application;

[0036] Figure 4 is a flow chart of an implementation of a vehicle control method provided in an embodiment of the present application;

[0037] Figure 5 is a structural block diagram of a vehicle control device provided in an embodiment of the present application;

[0038] Figure 6 It is a structural block diagram of a vehicle controller provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0040] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0041] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0042] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0043] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0044] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0045] See also Figure 1 , Figure 1 A flow chart of an implementation of a vehicle control method provided in an embodiment of the present application is shown, including:

[0046] Step 101: When it is detected that the anti-slope function of the vehicle is turned on, the driving motor of the vehicle is controlled to lock.

[0047] In the embodiment of the present application, the executing entity of the vehicle control method is usually a vehicle, specifically a vehicle controller in the vehicle. The vehicle provided in the embodiment of the present application may be an electric two-wheeled vehicle, an electric three-wheeled vehicle, an electric motorcycle, etc.

[0048] It should be noted that the anti-slope function can be a function to prevent the vehicle from sliding down when the vehicle starts on an inclined slope. Slope sliding refers to the phenomenon that when a vehicle is parked on an inclined slope and restarts, if the brake is released too quickly and the clutch does not keep up, the vehicle will slide down the slope. The drive motor can be a motor that converts electrical energy into mechanical energy to drive the vehicle.

[0049] It can be understood that when current passes through the stator winding in the motor, an attractive force will be generated between the magnetic field generated by the stator and the magnetic field of the rotor. By adjusting the current in the stator winding, the magnetic field distribution of the motor can be changed. When the magnetic flux of the stator and the magnetic flux of the rotor are in the same direction, a force field will be generated that hinders the rotation of the motor and locks the motor.

[0050] In practice, the vehicle controller can detect whether the vehicle's anti-slope function is turned on in a variety of ways.

[0051] As an example, the vehicle controller may determine that the anti-slope rolling function is turned on when receiving a signal indicating that the anti-slope rolling function is turned on.

[0052] As another example, the vehicle controller may determine that the anti-slope rollback function is turned on when detecting that a switch of the anti-slope rollback function is switched to an on state.

[0053] As another example, the vehicle controller may determine that the anti-slope rolling function is turned on when the state parameter corresponding to the anti-slope rolling function is set to a first value, wherein the first value is used to indicate that the anti-slope rolling function is turned on.

[0054] In actual applications, the vehicle controller can control the locking of the drive motor by adjusting the current of the stator winding in the drive motor, or by adjusting the voltage of the motor, or by other methods, which are not limited in this embodiment.

[0055] In one example, when the vehicle controller determines that the anti-slope function is turned on, the current of the stator winding in the drive motor can be adjusted to a preset calibration current. Since the current of the stator winding in the drive motor is adjusted to the preset calibration current, the magnetic flux of the stator and the magnetic flux of the rotor are in the same direction, a force field that hinders the rotation of the motor will be generated to lock the drive motor. When the drive motor is locked, a braking force will be generated to prevent the vehicle from sliding down. If the braking force is greater than the component of the vehicle's gravity on the slope, the vehicle will stop on the slope.

[0056] It should be noted that the preset calibration current can be a pre-calibrated winding current that can lock the drive motor. The calibration parameters of the preset calibration current include at least one of the following: the rated power of the drive motor, the heat dissipation parameters of the controller, and the vehicle model parameters. Among them, the heat dissipation parameters include but are not limited to: heat dissipation power, heat dissipation area, and heat dissipation efficiency.

[0057] In practice, there are many ways to calibrate the preset calibration current.

[0058] As an example, first, the above calibration parameters of the vehicle are obtained. Secondly, under the above calibration parameters, the motor temperature of the drive motor and the braking force generated after the drive motor is locked are measured by experiment when different currents are passed through the stator winding. Then, the current of the stator winding at which the motor temperature is lower than the preset temperature and the braking force is greater than the preset braking force is determined as the preset calibration current.

[0059] As another example, first, the above calibration parameters of the vehicle are obtained. Then, based on the above calibration parameters, the motor temperature and braking force under different currents are simulated by software simulation. Finally, the current of the stator winding at which the motor temperature is lower than the preset temperature and the braking force is greater than the preset braking force is determined as the preset calibration current.

[0060] Because the vehicle controller generates heat during operation, the heat dissipation capacity of the vehicle controller is crucial. During the current calibration process, the heat dissipation parameters of the vehicle controller are taken into account to ensure that the vehicle controller can effectively dissipate heat when running at high loads to avoid overheating and system failure. The rated power of the drive motor is the upper limit of the power that the drive motor can continuously output. During the current calibration process, taking the rated power of the drive motor into account can ensure that the current is set within a safe range to avoid overloading and causing the motor to overheat or damage. Vehicle parameters will affect the overall performance of the electric vehicle system. Different vehicle designs may require different calibration currents. For example, heavy vehicles may require a larger current output to provide sufficient attraction. Therefore, during the current calibration process, the vehicle parameters are taken into account to meet the needs of different vehicles.

[0061] Step 102: When the drive motor is locked, if it is detected that the displacement of the vehicle changes, the output torque of the drive motor is adjusted, and the output torque is used to prevent the vehicle from sliding down the slope.

[0062] It is understandable that the change in displacement may be caused by the vehicle moving on a slope.

[0063] In practice, the vehicle controller can detect whether the displacement of the vehicle changes in a variety of ways.

[0064] As an example, the vehicle controller obtains the position of the Hall sensor, and if the position of the Hall sensor changes, it is determined that the displacement of the vehicle has changed.

[0065] As another example, the vehicle controller obtains the speed of the vehicle, and if the speed of the vehicle is not 0, it is determined that the displacement of the vehicle has changed.

[0066] It should be pointed out that after the drive motor is locked, a certain braking force will be generated. If the braking force is greater than the component of the vehicle's gravity in the direction of the slope, the vehicle can be stopped on the slope. When the drive motor is locked, if the displacement of the vehicle changes, it means that the braking force generated by the locked drive motor is less than the braking force required to stop the vehicle on the slope. At this time, the vehicle controller further adjusts the output torque of the drive motor to prevent the vehicle from sliding down the slope. The way to adjust the output torque of the drive motor includes: adjusting the current input to the motor and adjusting the armature voltage.

[0067] In one example, when the vehicle controller detects that the anti-slope function is turned on, it adjusts the current of the stator winding to control the locking of the drive motor. Then, when the drive motor is locked, the vehicle controller detects whether the displacement of the vehicle changes. If the displacement of the vehicle does not change, it indicates that the braking force generated by the locked drive motor can stop the vehicle on the slope, and the vehicle controller continues to control the locking of the drive motor. If the displacement of the vehicle changes, it indicates that the braking force generated when the drive motor is locked cannot stop the vehicle on the slope, and the vehicle controller further adjusts the output torque of the drive motor, so that the drive motor switches from the locked state to the torque output state.

[0068] In another example, the motor will heat up due to the long-term locking of the drive motor or the output torque to resist rolling. When the temperature of the motor rises, the resistance of the motor phase line will increase, resulting in more heat energy generation. In addition, when the motor heats up, the magnetic flux of the magnet will decrease, resulting in a decrease in the braking force and output torque generated when the motor is locked. In severe cases, the drive motor may be damaged. In order to reduce the risk of damage to the drive motor, the vehicle controller detects the controller temperature through the controller temperature sensor and detects the motor temperature through the motor temperature sensor. When the controller temperature and / or the motor temperature is greater than or equal to the preset temperature, the vehicle controller reduces the current of the drive motor according to the preset gradient, and controls the vehicle to exit the anti-rolling mode when the current of the drive motor is less than the preset current. After the vehicle exits the anti-rolling mode, the vehicle controller does not allow the anti-rolling function to be reopened until the controller temperature and the motor temperature are less than the preset safety temperature.

[0069] In some optional implementations, the above-mentioned adjustment of the output torque of the driving motor can be achieved through the following steps:

[0070] Step 1021: When the drive motor has no output torque, the output torque of the drive motor is adjusted to a preset torque, where the preset torque is consistent with the braking torque generated when the drive motor is locked.

[0071] It can be understood that the upward force along the ramp generated when the drive motor outputs the preset torque is equal to the braking force generated when the drive motor is locked.

[0072] In one example, when the drive motor is locked, if the vehicle controller detects that the displacement of the vehicle has changed, the vehicle controller controls the drive motor to switch from an attraction mode in a locked state to a torque mode for outputting torque, and adjusts the output torque of the drive motor to a preset torque. Then, the vehicle controller controls the drive motor to adjust the output torque starting from the preset torque.

[0073] Step 1022: When the drive motor has output torque, determine the adjustment step of the output torque according to the vehicle's driving data, and adjust the output torque of the drive motor according to the adjustment step, the driving data including driving speed and / or acceleration.

[0074] It can be understood that the adjustment step size can be the change amplitude of the output torque each time the output torque of the driving motor is adjusted.

[0075] In practice, determining the adjustment step length of the output torque according to the driving data of the vehicle may include: determining the direction of the adjustment step length according to the direction of the driving speed, the direction of the acceleration, and the direction of travel of the vehicle. The value found in the mapping relationship table according to the driving speed value and the acceleration value is used as the value of the adjustment step length. The mapping relationship table may be used to store the correspondence between the driving speed value and the acceleration value and the adjustment step length value.

[0076] In one example, first, when the vehicle controller detects that the anti-slope function of the vehicle is turned on, the vehicle controller controls the vehicle's drive motor to lock. Secondly, when the drive motor is locked, the vehicle controller detects whether the displacement of the vehicle changes. If there is no change, the drive motor is controlled to remain locked. If there is a change, the output torque of the drive motor is adjusted to a preset torque. Then, the vehicle controller determines the adjustment step size of the output torque according to the vehicle's driving speed and acceleration, further adjusts the output torque of the drive motor according to the adjustment step size, and continues to detect whether the vehicle's displacement changes. If so, the vehicle controller continues to determine the adjustment step size according to the current driving speed and current acceleration, and continues to adjust the output torque of the drive motor according to the adjustment step size based on the current output torque until the vehicle's displacement does not change.

[0077] It should be noted that, in this embodiment, when the braking force generated by the locked driving motor is insufficient to stop the vehicle on a slope, the output torque of the driving motor is adjusted based on the preset torque. The output torque of the driving motor is not adjusted from zero, but from a preset torque that is relatively matched with various parameters of the vehicle. While solving the problem of insufficient braking force when the driving motor is locked, it also solves the problem of lack of braking force during the switching of the braking mode, which helps to shorten the distance to prevent slope slip.

[0078] In some optional implementations, before step 101 above, it may also include: when the vehicle meets preset conditions, turning on the anti-slope function, the preset conditions include at least one of the following conditions: the drive motor is in a non-driving state, the vehicle is in a stationary state, the vehicle is in a braked state, and the duration of the vehicle in the braked state is greater than or equal to a preset duration.

[0079] It is understood that the drive motor does not output torque in the non-driving state. The brake stop state may be a state in which the vehicle is stopped by the brake system. The duration may be the duration of the vehicle being in a stationary state after the vehicle is braked. The preset duration may be a pre-set duration for determining whether to turn on the anti-slope mode.

[0080] In practice, the vehicle controller can determine whether the vehicle is stationary in a variety of ways.

[0081] As an example, if the vehicle's speed is zero, the vehicle controller determines that the vehicle is at rest.

[0082] As another example, if the speed of the drive motor is zero, the vehicle controller determines that the vehicle is stationary.

[0083] In one example, when the vehicle controller detects that the vehicle is stationary, it detects whether the drive motor is in a non-driving state. If so, the vehicle controller determines whether the vehicle is in a brake stop state. If in a brake stop state, the vehicle controller further obtains the duration of the vehicle being in the brake stop state, and turns on the anti-slope function when the duration is greater than or equal to a preset duration.

[0084] In another example, when the vehicle controller detects that the drive motor is in a non-driving state, it determines whether the vehicle is in a stationary state. If so, the time is accumulated when the brake signal is valid to obtain the duration of the effective brake signal. When the duration is greater than or equal to the preset duration, the vehicle controller turns on the anti-slope mode.

[0085] The method provided in this embodiment, when it is detected that the anti-slope rolling function is turned on, first controls the drive motor to lock, and when the drive motor is locked, if it is detected that the displacement of the vehicle has changed, the output torque of the motor is adjusted to resist the vehicle from rolling down the slope. When it is detected that the anti-slope rolling function is turned on, the drive motor is controlled to lock to provide braking force to the vehicle, so that the vehicle is stationary within a certain slope range, and zero displacement anti-slope rolling is achieved, which avoids the vehicle from sliding down a certain distance before controlling the vehicle, and improves the response speed of the anti-slope rolling control. In addition, when the braking force cannot stop the vehicle, the output torque of the drive motor is further adjusted to resist the vehicle from rolling down the slope, which avoids the vehicle from sliding down due to insufficient braking force generated when the drive motor is locked, and helps to shorten the vehicle's rolling distance during the slope start process.

[0086] In the optional implementation of each embodiment of the present application, the above adjustment step includes an adjustment size and an adjustment direction. Figure 2 The above-mentioned determination of the adjustment step of the output torque according to the driving data of the vehicle may include the following steps 201-202.

[0087] Step 201: Determine the adjustment size according to the value of the driving speed.

[0088] It can be understood that the value of the driving speed can be the rate value of the driving speed. The adjustment size can be the value of the adjustment step. The adjustment direction can be the direction of the adjustment step, and the adjustment direction includes a positive direction and a negative direction. The value of the driving speed is positively correlated with the adjustment size. For example, the value of the driving speed is multiplied by the adjustment coefficient to obtain the adjustment size, and the value found in the mapping relationship table according to the value of the driving speed is used as the adjustment size of the adjustment step. The adjustment coefficient can be a preset constant. The smaller the adjustment coefficient, the greater the control accuracy of the anti-slipping, but it may cause the slipping distance to become longer. The larger the adjustment coefficient, the faster the response speed of the anti-slipping control, but due to the reduction of control accuracy, it may cause a small amplitude jitter. Specifically, in order to take into account the control accuracy and response speed, while improving the response speed and shortening the slipping distance, the adjustment coefficient can be calibrated based on the requirements of control accuracy and control response speed. The calibration method includes test measurement calibration and software simulation calibration.

[0089] Step 202: Determine the adjustment direction according to the direction of the driving speed, the direction of the acceleration and the traveling direction of the vehicle.

[0090] It is understandable that the traveling direction may be the direction in which the vehicle is traveling.

[0091] As an implementation method, the direction of the driving speed and the direction of the acceleration are compared with the moving direction of the vehicle, and the adjustment direction is determined based on the comparison result.

[0092] In some optional implementations, refer to Figure 3 , the implementation of the above step 202 may include the following steps:

[0093] Step 2021: If the direction of the driving speed and the direction of the acceleration are both opposite to the moving direction of the vehicle, then the adjustment direction is determined to be a positive direction.

[0094] It can be understood that the positive adjustment direction means that the output torque of the drive motor is increased. The direction of the driving speed and the direction of the acceleration are opposite to the direction of the vehicle's travel, indicating that the vehicle is sliding down and the force generated by the output torque of the drive motor on the slope is less than the component of gravity on the slope, and the positive adjustment direction is determined to increase the output torque of the drive motor.

[0095] Step 2022: If the direction of the driving speed and the direction of the acceleration are both the same as the moving direction of the vehicle, then the adjustment direction is determined to be a negative direction.

[0096] It can be understood that the negative adjustment direction means that the output torque of the drive motor is adjusted to decrease. The direction of the driving speed and the direction of the acceleration are both the same as the direction of travel of the vehicle, indicating that the output torque of the drive motor is too large, causing the vehicle to move forward, and the negative adjustment direction is determined to reduce the output torque of the drive motor.

[0097] In some optional implementations, the above-mentioned adjustment of the output torque of the drive motor can be achieved by the following steps: if the direction of the vehicle's driving speed is opposite to the direction of the vehicle's travel, and the direction of the vehicle's acceleration is the same as the direction of the vehicle's travel, the output torque of the drive motor is not adjusted.

[0098] It can be understood that the direction of the driving speed is opposite to the direction of travel and the direction of acceleration is the same as the direction of travel, indicating that the force generated by the output torque of the drive motor on the ramp is greater than the component of gravity on the ramp, that is, the speed of the vehicle sliding down the ramp is decreasing. At this time, the drive motor is controlled to keep the output torque unchanged.

[0099] In one example, for example, the preset duration is 3 seconds, the vehicle controller detects that the drive motor is in a non-driving state and the vehicle is in a stationary state, and continues to detect whether the vehicle's brake signal is valid. If it is valid, the vehicle controller further obtains the duration of the brake signal being valid. If the duration is greater than or equal to 3 seconds, the anti-slip mode is turned on and the vehicle's drive motor is controlled to lock. When the drive motor is locked, if the vehicle controller detects that the displacement of the vehicle has changed, the value of the driving speed is multiplied by the adjustment coefficient to obtain the adjustment size. When the direction of the driving speed and the direction of the acceleration are both opposite to the direction of travel, the vehicle controller determines that the adjustment direction is the positive direction, and further adjusts the drive motor according to the adjustment size to increase the output torque. When the direction of the driving speed and the direction of the acceleration are both the same as the direction of travel, the vehicle controller determines that the adjustment direction is the negative direction, and further adjusts the drive motor according to the adjustment size to reduce the output torque. In the process of adjusting the output torque of the drive motor, if the direction of the driving speed is opposite to the direction of travel of the vehicle and the acceleration is the same as the direction of travel, the vehicle controller does not adjust the output torque of the drive motor, thereby avoiding overshooting and causing excessive bottom rebound force to cause poor experience. This embodiment adjusts the output torque of the drive motor only when the displacement of the vehicle changes, thereby avoiding unnecessary intervention. In the process of adjusting the output torque of the drive motor, the driving speed, acceleration and the direction of travel of the vehicle are taken into account, and the increase or decrease of the output torque of the drive motor is determined according to the direction of acceleration, the direction of driving speed and the direction of travel, thereby improving the stability of the vehicle.

[0100] The method provided in this embodiment determines the size of the adjustment step according to the value of the driving speed. The slower the speed, the smaller the adjustment step, and the faster the speed, the larger the adjustment step, thereby improving the response speed of the anti-slope control. The adjustment direction is determined according to the relationship between the direction of the driving speed, the direction of the acceleration, and the direction of travel of the vehicle, further solving the problem of excessive or insufficient torque output by the drive motor, being able to adapt to anti-slope control under different slopes, improving the accuracy of the anti-slope control, and helping to shorten the slope distance.

[0101] In the optional implementation of each embodiment of the present application, referring to step 4, after the above step 101, the following steps may be further included:

[0102] Step 301: Determine the handlebar torque of the vehicle, where the handlebar torque is the expected torque corresponding to the handlebar opening of the vehicle.

[0103] It can be understood that the handlebar is the speed regulating component of the electric vehicle, and the user controls the speed of the vehicle by turning the handlebar. The internal structure of the handlebar mainly includes Hall elements, magnets and potentiometers. When the user turns the handlebar, the position of the magnet changes, causing the magnetic field strength sensed by the Hall element to change, thereby generating different voltage signals. These voltage signals are transmitted to the vehicle controller. The vehicle controller determines the user's intention based on the received signal, thereby controlling the output torque of the motor and adjusting the vehicle speed. The handlebar opening can be the angle or position at which the handlebar is turned. The expected torque can be the torque expected to be output by the electric vehicle.

[0104] It should be pointed out that there is a mapping relationship between the throttle opening and the expected torque, and the vehicle controller determines the expected torque corresponding to the throttle opening based on the mapping relationship.

[0105] Step 302: When the handlebar torque is greater than the output torque of the vehicle, the anti-slope function of the vehicle is controlled to be turned off.

[0106] In one example, when the anti-slope function of the vehicle is turned on, the vehicle controller obtains the throttle opening and determines the expected torque based on the mapping relationship between the throttle opening and the torque. If the expected torque is greater than the output torque of the drive motor, the vehicle controller controls the anti-slope function to be turned off and controls the output of the motor based on the throttle opening.

[0107] In the method provided in this embodiment, when the expected torque corresponding to the handlebar opening is greater than the output torque of the drive motor, the anti-slope mode is controlled to be turned off, so that the vehicle can be switched to the normal control mode in time when the vehicle starts, which helps to improve the smoothness and safety of starting on a hill.

[0108] See also Figure 5 , Figure 5400 is a structural block diagram of a vehicle control device 400 provided in an embodiment of the present application. In this embodiment, the vehicle control device includes various units for executing Figure 1-Figure 4 For details, please refer to the steps in the corresponding embodiment. Figure 1-Figure 4 as well as Figure 1-Figure 4 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 4 , the vehicle control device 400 includes:

[0109] The control unit 401 is used to control the driving motor of the vehicle to lock when it is detected that the anti-slope function of the vehicle is turned on;

[0110] The regulating unit 402 is used to regulate the output torque of the driving motor when a displacement change of the vehicle is detected in the case where the driving motor is locked, and the output torque is used to prevent the vehicle from sliding down a slope.

[0111] As an embodiment of the present application, in the adjustment unit 402, the output torque of the drive motor is adjusted, including: when the drive motor has no output torque, adjusting the output torque of the drive motor to a preset torque, the preset torque being consistent with the braking torque generated when the drive motor is locked; when the drive motor has output torque, determining the adjustment step of the output torque according to the driving data of the vehicle, and adjusting the output torque of the drive motor according to the adjustment step, the driving data including the driving speed and / or acceleration.

[0112] As an embodiment of the present application, in the adjustment unit 402, the adjustment step includes an adjustment size and an adjustment direction. The adjustment step of the output torque is determined according to the driving data of the vehicle, including: determining the adjustment size according to the value of the driving speed; determining the adjustment direction according to the direction of the driving speed, the direction of acceleration and the direction of travel of the vehicle.

[0113] As an embodiment of the present application, in the adjustment unit 402, the adjustment direction is determined according to the direction of the driving speed, the direction of the acceleration and the direction of travel of the vehicle, including: if the direction of the driving speed and the direction of the acceleration are opposite to the direction of travel of the vehicle, then the adjustment direction is determined to be a positive direction; if the direction of the driving speed and the direction of the acceleration are the same as the direction of travel of the vehicle, then the adjustment direction is determined to be a negative direction.

[0114] As an embodiment of the present application, in the adjustment unit 402, adjusting the output torque of the drive motor also includes: if the direction of the vehicle's driving speed is opposite to the vehicle's traveling direction, and the direction of the vehicle's acceleration is the same as the vehicle's traveling direction, then the output torque of the drive motor is not adjusted.

[0115] As an embodiment of the present application, the device also includes an activation unit (not shown in the figure), which is used to activate the anti-slope function when the vehicle meets preset conditions. The preset conditions include at least one of the following conditions: the drive motor is in a non-driving state, the vehicle is in a stationary state, the vehicle is in a braked state, and the duration of the vehicle in the braked state is greater than or equal to a preset duration.

[0116] As an embodiment of the present application, the device also includes a closing unit (not shown in the figure), which is used to determine the vehicle's handlebar torque, where the handlebar torque is the expected torque corresponding to the vehicle's handlebar opening; when the handlebar torque is greater than the vehicle's output torque, the vehicle's anti-slope function is controlled to be closed.

[0117] The device provided in this embodiment, when detecting that the anti-slope rolling function is turned on, first controls the drive motor to lock, and when the drive motor is locked, if it is detected that the displacement of the vehicle changes, then adjusts the output torque of the motor to resist the vehicle from sliding down the slope. When detecting that the anti-slope rolling function is turned on, the drive motor is controlled to lock to provide braking force to the vehicle, so that the vehicle is stationary within a certain slope range, and zero displacement anti-slope rolling is achieved, avoiding the need to control the vehicle after the vehicle slides down a certain distance, and improving the response speed of the anti-slope rolling control. In addition, when the braking force cannot stop the vehicle, the output torque of the drive motor is further adjusted to resist the vehicle from sliding down the slope, avoiding the vehicle from sliding down due to insufficient braking force generated when the drive motor is locked, which helps to shorten the vehicle's sliding distance during the slope start process.

[0118] It should be understood that Figure 5 In the structural block diagram of the vehicle control device shown, each unit is used to execute Figure 1-Figure 4 The steps in the corresponding embodiments, and for Figure 1-Figure 4 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figure 1-Figure 4 as well as Figure 1-Figure 4 The relevant descriptions in the corresponding embodiments are not repeated here.

[0119] Figure 6 is a structural block diagram of a vehicle controller provided by another embodiment of the present application. Figure 6 As shown, the vehicle controller 500 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501, such as a program of a vehicle control method. When the processor 501 executes the computer program 503, the steps in each embodiment of the above-mentioned vehicle control method are implemented, such as Figure 1 Alternatively, the processor 501 executes the computer program 503 to implement the above Figure 5 The functions of each unit in the corresponding embodiment are, for example, Figure 5 For details on the functions of the units 401 to 402 shown, please refer to Figure 5 The relevant descriptions in the corresponding embodiments are not repeated here.

[0120] Exemplarily, the computer program 503 may be divided into one or more units, one or more units are stored in the memory 502, and are executed by the processor 501 to complete the present application. One or more units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 503 in the vehicle controller 500. For example, the computer program 503 may be divided into a control unit, an adjustment unit, an opening unit, and a closing unit, and the specific functions of each unit are as described above.

[0121] The vehicle controller may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 The vehicle controller 500 is merely an example and does not constitute a limitation of the vehicle controller 500 , and may include more or less components than those shown in the figure, or may combine certain components, or may have different components.

[0122] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0123] The memory 502 may be an internal storage unit of the vehicle controller 500, such as a hard disk or memory of the vehicle controller 500. The memory 502 may also be an external storage device of the vehicle controller 500, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the vehicle controller 500. Further, the memory 502 may also include both an internal storage unit of the vehicle controller 500 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the vehicle controller. The memory 502 may also be used to temporarily store data that has been output or is to be output.

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

[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Among them, the computer-readable storage medium can be non-volatile or volatile. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in computer-readable storage media can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable storage media do not include electrical carrier signals and telecommunication signals.

[0126] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A vehicle control method, It is characterized in that The method comprises: When it is detected that the anti-slope function of the vehicle is turned on, controlling the driving motor of the vehicle to lock; In the case where the drive motor is locked, if a change in the displacement of the vehicle is detected, the output torque of the drive motor is adjusted, and the output torque is used to resist the vehicle from rolling down a slope.

2. The method according to claim 1, It is characterized in that The step of adjusting the output torque of the driving motor comprises: When the drive motor has no output torque, adjusting the output torque of the drive motor to a preset torque, wherein the preset torque is consistent with the braking torque generated when the drive motor is locked; When the drive motor has output torque, an adjustment step of the output torque is determined according to driving data of the vehicle, and the output torque of the drive motor is adjusted according to the adjustment step, wherein the driving data includes driving speed and / or acceleration.

3. The method according to claim 2, It is characterized in that The adjustment step size includes an adjustment size and an adjustment direction; Determining the adjustment step length of the output torque according to the driving data of the vehicle includes: Determining the adjustment size according to the value of the driving speed; The adjustment direction is determined according to the direction of the driving speed, the direction of the acceleration, and the traveling direction of the vehicle.

4. The method according to claim 3, It is characterized in that The determining the adjustment direction according to the direction of the driving speed, the direction of the acceleration and the traveling direction of the vehicle comprises: If the direction of the driving speed and the direction of the acceleration are both opposite to the traveling direction of the vehicle, determining that the adjustment direction is a positive direction; If the direction of the driving speed and the direction of the acceleration are both the same as the traveling direction of the vehicle, the adjustment direction is determined to be a negative direction.

5. The method according to claim 1, It is characterized in that The step of adjusting the output torque of the driving motor comprises: If the direction of the driving speed of the vehicle is opposite to the traveling direction of the vehicle, and the direction of the acceleration of the vehicle is the same as the traveling direction of the vehicle, the output torque of the driving motor is not adjusted.

6. The method according to any one of claims 1 to 5, It is characterized in that When the anti-slope function of the vehicle is detected to be turned on, before controlling the drive motor of the vehicle to lock, the method further includes: When the vehicle meets preset conditions, the anti-slope rolling function is turned on, and the preset conditions include at least one of the following conditions: the drive motor is in a non-driving state, the vehicle is in a stationary state, the vehicle is in a braked state, and the duration of the vehicle in the braked state is greater than or equal to the preset duration.

7. The method according to any one of claims 1 to 5, It is characterized in that After the driving motor of the vehicle is controlled to lock when the anti-slope function of the vehicle is detected to be turned on, the method further includes: Determining a handlebar torque of the vehicle, the handlebar torque being an expected torque corresponding to a handlebar opening of the vehicle; When the handlebar torque is greater than the output torque of the vehicle, the anti-slope rolling function of the vehicle is controlled to be turned off.

8. A vehicle control device, It is characterized in that The vehicle control device comprises: A control unit, configured to control the drive motor of the vehicle to lock when detecting that the anti-slope function of the vehicle is turned on; The regulating unit is used to regulate the output torque of the driving motor when a displacement change of the vehicle is detected in the case where the driving motor is locked, wherein the output torque is used to resist the vehicle from rolling down a slope.

9. A vehicle comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.