Braking stroke threshold value self-learning method of double-path braking signals and storage medium
By self-learning and saving the brake stroke threshold after the vehicle is powered on, the problem of inconsistent braking signal judgment caused by the difference in the brake pedal's empty stroke is solved, and the accuracy and robustness of the driver's braking intentions are improved, ensuring that The stability of vehicle motion control.
Patent Information
- Application Number
- CN202411030518.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-15
AI Technical Summary
The difference in the physical values of the brake pedals of different vehicles leads to inconsistent judgment results in the dual-path braking signal judgment results, which may lead to misjudgment of the driver's true braking intentions, affecting the stability of vehicle motion control and electronic application functions.
After the vehicle is powered on, if the dual-path brake signal meets the preset self-learning conditions, the initial self-learning value will be obtained and set it as an effective learning value within the reasonable threshold range, increase the effective learning times, and reach the cumulative number of preset times. After that, the brake stroke threshold is calculated and saved to judge the braking state and avoid misjudgment.
It effectively eliminates the misjudgment of braking status caused by brake pedal manufacturing process and installation errors, improves the accuracy and robustness of braking intention judgment, and provides guarantees for the driving safety of the vehicle.
Smart Images

Figure CN118965164A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle braking, and in particular to a self-learning method and storage medium for a braking stroke threshold of a dual-path braking signal. Background Art
[0002] The braking state of a vehicle, as a signal reflecting the driver's driving intention, has important and extensive applications in the vehicle's driving, braking and other electronic control systems. In the current market, in order to ensure efficient and stable acquisition of the braking state signal, the braking state signal is usually acquired through two channels, such as Figure 1 As shown, the principle of dual-channel acquisition of brake status signals is that the ECU determines whether the brake switch signal of the first channel is pressed, and the ECU determines whether the brake stroke signal of the second channel is greater than or equal to the brake stroke threshold. When the brake switch signal is pressed, or the brake stroke signal is greater than or equal to the brake stroke threshold, the ECU determines that the vehicle's brake status is pressed.
[0003] Although the above scheme can ensure the normal acquisition of the braking status and improve the robustness of the braking status acquisition when a single-channel braking status signal fails, it is subject to the manufacturing process and installation errors of the brake pedal components. The physical values of the brake idle travel of different vehicles are different, which leads to inconsistent judgment results of the first and second brake signals, thereby causing misjudgment of the driver's actual braking intention. This misjudgment may further affect the vehicle's motion control and even cause some electronic application functions to fail or malfunction. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a self-learning method and storage medium for the brake stroke threshold of a dual-path brake signal, which can effectively eliminate the misjudgment of the braking state caused by the manufacturing process and installation errors of the brake pedal components, thereby improving the accuracy of the judgment of the driver's braking intention and the robustness of the brake signal, providing basic protection for the driving safety of the vehicle.
[0005] The present invention provides a self-learning method for a brake stroke threshold of a dual-path brake signal, the method comprising: after a vehicle is powered on, if the dual-path brake signal meets a preset self-learning condition, a self-learning initial value is obtained according to the brake stroke; when the self-learning initial value is within a reasonable threshold range of the brake stroke, the self-learning initial value is set as a valid learning value, and the number of valid learning times in this power-on cycle is increased once; when the number of valid learning times in this power-on cycle is greater than or equal to a preset number, the brake stroke threshold is obtained according to a plurality of the valid learning values in this power-on cycle.
[0006] In one embodiment, after the vehicle is powered on, if the dual-path brake signal meets the preset self-learning condition, the self-learning initial value is obtained according to the braking stroke, including: when the state of the brake switch on the first path is pressed, and the stroke change rate of the braking stroke of the second path is within a preset range, it is determined that the dual-path brake signal meets the preset self-learning condition.
[0007] In one embodiment, when the self-learning initial value is within a reasonable threshold range of the braking stroke, the self-learning initial value is set to a valid learning value, and the number of valid learning times in this power-on cycle is increased once, followed by: determining whether the state of the brake switch is not pressed; if so, determining whether the number of valid learning times in this power-on cycle is greater than or equal to a preset number; if not, continuing to determine whether the state of the brake switch is not pressed.
[0008] In one embodiment, the method includes: when the self-learning initial value is not within a reasonable threshold range of the braking stroke, setting the self-learning initial value to an invalid learning value, and entering a step of determining whether the state of the brake switch is not pressed.
[0009] In one embodiment, the method includes: when the number of effective learning times in the current power-on cycle is not greater than or equal to a preset number, continuing to determine whether the dual-path braking signal satisfies the preset self-learning condition, and when the dual-path braking signal satisfies the preset self-learning condition, obtaining the self-learning initial value according to the braking stroke.
[0010] In one embodiment, when the number of valid learning times in the current power-on cycle is greater than or equal to a preset number, obtaining the braking stroke threshold based on the multiple valid learning values in the current power-on cycle includes: obtaining the braking stroke threshold based on the average value of the multiple valid learning values in the current power-on cycle.
[0011] In one embodiment, when the number of valid learning times in the current power-on cycle is greater than or equal to a preset number, a braking stroke threshold is obtained based on multiple valid learning values in the current power-on cycle, and then it also includes: saving the braking stroke threshold to a storage medium, and setting the flag of the braking stroke threshold self-learning to successful learning.
[0012] In one embodiment, the method further includes: when the vehicle is powered on, if the flag position of the self-learning of the braking stroke threshold is successful learning, then based on the braking stroke threshold, the braking state of the braking stroke of the second path is judged; when the vehicle is powered on, if the flag position of the self-learning of the braking stroke threshold is unsuccessful learning, then based on a preset braking stroke threshold, the braking state of the braking stroke of the second path is judged.
[0013] In one embodiment, the method includes: when the vehicle is powered off, discarding the valid learning value in the current power-on cycle.
[0014] The present invention also provides a storage medium storing a computer program. When the computer program is executed by a processor, the steps of the self-learning method for the braking stroke threshold of the dual-path braking signal are implemented.
[0015] The present invention provides a self-learning method and storage medium for the brake stroke threshold of a dual-path brake signal. After the vehicle is powered on, if the dual-path brake signal meets the preset self-learning conditions, a self-learning initial value is obtained according to the brake stroke. When the self-learning initial value is within the reasonable threshold range of the brake stroke, the self-learning initial value is set to a valid learning value, and the number of valid learning times in this power-on cycle is increased once. When the number of valid learning times in this power-on cycle is greater than or equal to the preset number, the brake stroke threshold is obtained according to multiple valid learning values in this power-on cycle. This can solve the problem of inconsistent judgment results of the brake state of the first path compared with the brake state of the second path due to different brake pedal idle strokes of different vehicles and changes in the brake pedal idle stroke after long-term use, avoids the possibility of misjudgment of the driver's actual braking intention, and provides stable and accurate brake state input for vehicle motion control. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a structural diagram of dual-channel acquisition of braking status signals.
[0017] Figure 2 Flow chart of the braking stroke threshold self-learning method of dual-path braking signals according to the first embodiment of the present invention.
[0018] Figure 3 Flow chart of a method for self-learning a brake stroke threshold value of a dual-path brake signal according to a second embodiment of the present invention. DETAILED DESCRIPTION
[0019] The above and other technical contents, features and effects of the present invention will be clearly presented in the following detailed description of the preferred embodiments with reference to the drawings. Through the description of the specific implementation methods, the technical means and effects adopted by the present invention to achieve the predetermined purpose can be more deeply and specifically understood. However, the drawings are only for reference and explanation purposes and are not used to limit the present invention.
[0020] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the present invention is described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0021] like Figure 1As shown, the present invention also determines the braking state of the vehicle based on the collected dual-path braking state signals, which is specifically as follows:
[0022] Based on the acquired brake switch signal, the brake state Brk_st1 of the first brake switch is acquired.
[0023] Specifically, when the brake switch signal is pressed, Brk_st1 = True; when the brake switch signal is not pressed, Brk_st1 = False.
[0024] Based on the acquired brake stroke signal, the brake state Brk_st2 of the brake stroke of the second path is acquired.
[0025] Specifically, when the braking stroke signal Brk_dis is greater than or equal to the braking stroke limit S_thd, the braking state of the braking stroke is determined to be pressed, Brk_st2=True; when the braking stroke signal Brk_dis is less than the braking stroke limit S_thd, the braking state of the braking stroke is determined to be not pressed, Brk_st2=False.
[0026] When either the braking state Brk_st1 of the first brake switch or the braking state Brk_st2 of the second brake stroke is pressed, the braking state Brk_st of the vehicle is pressed, that is, Brk_st = (Brk_st1)||(Brk_st2). Based on the braking state Brk_st of the vehicle, it can be known whether the driver has a braking intention.
[0027] Figure 2 Flow chart of the braking stroke threshold self-learning method of dual-path braking signals according to the first embodiment of the present invention.
[0028] like Figure 2 As shown, the braking stroke threshold self-learning method of the dual-path braking signal provided in this embodiment includes the following steps:
[0029] Step S21: After the vehicle is powered on, if the dual-path braking signal meets the preset self-learning conditions, the self-learning initial value is obtained according to the braking stroke.
[0030] Specifically, after the vehicle is powered on, if the state of the first brake switch is pressed, and the travel change rate of the second brake stroke is within a preset range, it is determined that the dual-path brake signal meets the preset self-learning conditions, and the self-learning initial value is obtained according to the current second brake stroke signal.
[0031] Specifically, the travel change rate Brk_rate of the braking stroke is obtained according to the braking stroke signal. When Brk_rate≥0, it is the process of the brake pedal being pressed, i.e., a positive change rate. When Brk_rate<0, it is the process of the brake pedal being released, i.e., a negative change rate. When 0<Brk_rate≤Rate_max, it is determined that the travel change rate of the second braking stroke is within a preset range. Among them, Rate_max is a threshold for determining whether the brake pedal meets the requirement of slow pressing, which is a calibrable value, such as 10 mm / s.
[0032] Step S22: When the self-learning initial value is within a reasonable threshold range of the braking stroke, the self-learning initial value is set as a valid learning value, and the number of valid learning times in this power-on cycle is increased once.
[0033] Specifically, when S_low<S_pre≤S_hi, it is determined that the initial self-learning value S_pre is within the reasonable threshold range of the brake stroke, and the initial self-learning value S_pr is set to the effective learning value S_Cyc, and the effective learning times cnt in this power-on cycle are increased once. S_low is the lower limit of the reasonable threshold range of the brake stroke calculated based on the brake pedal manufacturing process and installation error, for example, 2mm, and S_hi is the upper limit of the reasonable threshold range of the brake stroke calculated based on the brake pedal manufacturing process and installation error, for example, 7mm. The power-on cycle refers to the entire process of the vehicle starting and maintaining power supply once, that is, the period from the vehicle powering on (ignition) to the vehicle powering off (turning off). After the vehicle is powered off, a new power-on cycle will start when it is powered on again.
[0034] Step S23: when the number of valid learning times in the current power-on cycle is greater than or equal to a preset number, obtaining a braking stroke threshold value according to a plurality of the valid learning values in the current power-on cycle.
[0035] Specifically, when the number of valid learning times cnt in this power-on cycle is greater than or equal to the preset number (for example, cnt≥3), it means that multiple valid learning values S_Cyc have been obtained in this power-on cycle, and the braking stroke threshold S_set is obtained based on the average value of the multiple valid learning values obtained in this power-on cycle.
[0036] Specifically, after the braking stroke threshold S_set is acquired, the braking stroke limit S_thd is updated based on the braking stroke threshold S_set, so that the ECU can determine whether the braking state of the braking stroke is pressed based on the braking stroke limit S_thd and the braking stroke signal Brk_dis.
[0037] Specifically, when the vehicle is powered off, all valid learning values in the current power-on cycle are discarded.
[0038] The present invention provides a self-learning method for the brake stroke threshold of a dual-path brake signal. After the vehicle is powered on, if the dual-path brake signal meets the preset self-learning conditions, a self-learning initial value is obtained according to the brake stroke. When the self-learning initial value is within the reasonable threshold range of the brake stroke, the self-learning initial value is set to a valid learning value, and the number of valid learning times in this power-on cycle is increased once. When the number of valid learning times in this power-on cycle is greater than or equal to the preset number, the brake stroke threshold is obtained according to multiple valid learning values in this power-on cycle. This can solve the problem of inconsistent judgment results of the brake state of the first path compared with the brake state of the second path due to different brake pedal idle strokes of different vehicles and changes in the brake pedal idle stroke after long-term use, avoids the possibility of misjudgment of the driver's actual braking intention, and provides stable and accurate brake state input for vehicle motion control.
[0039] Figure 3 Flow chart of a method for self-learning a brake stroke threshold value of a dual-path brake signal according to a second embodiment of the present invention.
[0040] like Figure 3 As shown, the braking stroke threshold self-learning method of the dual-path braking signal provided in this embodiment includes the following steps:
[0041] Step S31: Determine whether the flag bit of the brake stroke threshold self-learning is successful.
[0042] Specifically, when the flag of the self-learning of the braking stroke threshold is successful learning, enter step S32: obtain the braking stroke limit based on the braking stroke threshold; when the flag of the self-learning of the braking stroke threshold is not successful learning, enter step S33: obtain the braking stroke limit based on the preset braking stroke threshold.
[0043] Step S34: Determine whether the state of the first brake switch is pressed.
[0044] Specifically, based on the acquired brake switch signal of the first path, determine whether the braking state of the brake switch of the first path is pressed; when the state of the brake switch of the first path is pressed, enter step S35: determine whether the stroke change rate of the braking stroke of the second path is within a preset range; when the state of the brake switch of the first path is not pressed, continue to execute step S34: determine whether the state of the brake switch of the first path is pressed.
[0045] Specifically, based on the obtained second-path brake stroke signal, the stroke change rate Brk_rate of the brake stroke is obtained; when 0<Brk_rate≤Rate_max, it is determined that the stroke change rate of the second-path brake stroke is within the preset range, and then the process proceeds to step S36: the self-learning initial value is obtained according to the current second-path brake stroke signal; when the stroke change rate Brk_rate of the brake stroke does not satisfy 0<Brk_rate≤Rate_max, it is determined that the stroke change rate of the second-path brake stroke is not within the preset range, and then the process returns to step S34: it is determined whether the state of the first-path brake switch is stepped on. Among them, Rate_max is a threshold for determining whether the brake pedal meets the condition of slow stepping, which is a calibrable value, such as 10mm / s, and Brk_rate≥0 indicates that the current state of the brake pedal is in the process of stepping on.
[0046] Step S36: Obtaining a self-learning initial value according to the current second-path braking stroke signal.
[0047] Step S37: Determine whether the self-learning initial value is within a reasonable threshold range of the braking stroke.
[0048] Specifically, when the self-learning initial value S_pre satisfies S_low<S_pre≤S_hi, it is determined that the self-learning initial value S_pre is within the reasonable threshold range of the braking stroke, and the process goes to step S38: the self-learning initial value is set as the effective learning value, and the number of effective learning times in this power-on cycle is increased once; when the self-learning initial value S_pre does not satisfy S_low<S_pre≤S_hi, it is determined that the self-learning initial value S_pre is not within the reasonable threshold range of the braking stroke, and the process goes to step S39: the self-learning initial value is determined to be invalid. S_low is the lower limit of the reasonable threshold range of the braking stroke calculated based on the manufacturing process and installation error of the brake pedal, for example, 2mm, and S_hi is the upper limit of the reasonable threshold range of the braking stroke calculated based on the manufacturing process and installation error of the brake pedal, for example, 7mm.
[0049] Specifically, when it is determined that the self-learning initial value is invalid, the self-learning initial value is set to an invalid learning value.
[0050] Specifically, when the brake switch is not pressed, enter step S311: determine whether the number of valid learning times in this power-on cycle is greater than or equal to the preset number; when the brake switch is pressed, continue to execute step S310: determine whether the brake switch is not pressed.
[0051] Specifically, when the number of valid learning times in this power-on cycle is greater than or equal to the preset number, the process proceeds to step S312: obtaining the brake stroke threshold value according to multiple valid learning values in this power-on cycle; when the number of valid learning times in this power-on cycle is not greater than or equal to the preset number, the process returns to step S34: determining whether the state of the brake switch of the first path is pressed. The preset number can be set according to the required brake stroke threshold accuracy. The greater the preset number, the higher the brake stroke threshold accuracy. The preset number in this application is preferably 3.
[0052] Specifically, the braking stroke threshold is obtained according to an average value of a plurality of valid learning values obtained in this power-on cycle.
[0053] Step S313: The braking stroke threshold is saved in a storage medium, and a flag of the braking stroke threshold self-learning is set to indicate successful learning.
[0054] Specifically, the braking stroke threshold is saved in a storage medium, and the flag of the braking stroke threshold self-learning is set to successful learning, so that the ECU can update the braking stroke limit based on the braking stroke threshold and the flag of the braking stroke threshold self-learning, and determine whether the braking state of the braking stroke is pressed based on the braking stroke limit and the braking stroke signal, thereby improving the accuracy of judging the braking state of the braking stroke of the second road.
[0055] Specifically, when the vehicle is powered off, all valid learning values in the current power-on cycle are discarded.
[0056] Specifically, in another embodiment, step S38 is replaced by setting the self-learning initial value as a valid learning value, and step S311 is replaced by determining whether the number of valid learning values in this power-on cycle is greater than or equal to a preset number of times.
[0057] Specifically, each of the above numerical parameters can be changed or set according to the actual needs of the application scenario.
[0058] The present invention also provides a storage medium storing a computer program. When the computer program is executed by a processor, the steps of the self-learning method for the braking stroke threshold of the dual-path braking signal are implemented.
[0059] The present invention provides a self-learning method and storage medium for the brake stroke threshold of a dual-path brake signal. After the vehicle is powered on, if the dual-path brake signal meets the preset self-learning conditions, a self-learning initial value is obtained according to the brake stroke. When the self-learning initial value is within the reasonable threshold range of the brake stroke, the self-learning initial value is set to a valid learning value, and the number of valid learning times in this power-on cycle is increased once. When the number of valid learning times in this power-on cycle is greater than or equal to the preset number, the brake stroke threshold is obtained according to multiple valid learning values in this power-on cycle. This can solve the problem of inconsistent judgment results of the brake state of the first path compared with the brake state of the second path due to different brake pedal idle strokes of different vehicles and changes in the brake pedal idle stroke after long-term use, avoids the possibility of misjudgment of the driver's actual braking intention, and provides stable and accurate brake state input for vehicle motion control.
[0060] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a portion of the steps in the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0061] Through the description of the above implementation methods, those skilled in the art can clearly understand that the embodiments of the present invention can be implemented by means of software plus necessary general hardware platforms. Based on such an understanding, the technical solution of the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the embodiments of the present invention.
[0062] The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of equivalent changes through the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A self-learning method for brake stroke threshold of dual-path brake signal, characterized in that: The method comprises: After the vehicle is powered on, if the dual-channel braking signals meet the preset self-learning conditions, the self-learning initial value is obtained according to the braking stroke; When the self-learning initial value is within a reasonable threshold range of the braking stroke, the self-learning initial value is set as a valid learning value, and the number of valid learning times in this power-on cycle is increased once; When the number of valid learning times in the current power-on cycle is greater than or equal to a preset number, a braking stroke threshold is obtained according to a plurality of the valid learning values in the current power-on cycle.
2. The braking stroke threshold self-learning method of dual-path braking signal according to claim 1, characterized in that: After the vehicle is powered on, if the dual-path brake signal meets the preset self-learning condition, the self-learning initial value is obtained according to the braking stroke, including: When the state of the first-path brake switch is pressed, and the stroke change rate of the second-path brake stroke is within a preset range, it is determined that the dual-path brake signal meets the preset self-learning condition.
3. The braking stroke threshold self-learning method of dual-path braking signal according to claim 2, characterized in that: When the self-learning initial value is within the reasonable threshold range of the braking stroke, the self-learning initial value is set as the effective learning value, and the effective learning times in this power-on cycle are increased once, and then the following steps are included: Determining whether the brake switch is in a state of not being pressed; If yes, determine whether the number of valid learning times in the current power-on cycle is greater than or equal to the preset number; If not, continue to determine whether the state of the brake switch is not pressed.
4. The braking stroke threshold self-learning method of dual-path braking signal according to claim 3, characterized in that: The method comprises: When the self-learning initial value is not within the reasonable threshold range of the braking stroke, the self-learning initial value is set to an invalid learning value, and the process proceeds to a step of determining whether the state of the brake switch is not pressed.
5. The braking stroke threshold self-learning method of dual-path braking signal according to claim 1, characterized in that: The method comprises: When the number of effective learning times in this power-on cycle is not greater than or equal to the preset number of times, continue to determine whether the dual-path braking signal satisfies the preset self-learning condition, and when the dual-path braking signal satisfies the preset self-learning condition, obtain the self-learning initial value according to the braking stroke.
6. The braking stroke threshold self-learning method of dual-path braking signal according to claim 1, characterized in that: When the number of valid learning times in the current power-on cycle is greater than or equal to a preset number, obtaining a braking stroke threshold according to a plurality of the valid learning values in the current power-on cycle includes: A braking stroke threshold is obtained according to an average value of a plurality of the valid learning values in the current power-on cycle.
7. The self-learning method for brake stroke threshold of dual-path brake signal according to claim 1, characterized in that: When the number of valid learning times in the current power-on cycle is greater than or equal to the preset number of times, a braking stroke threshold is obtained according to a plurality of the valid learning values in the current power-on cycle, and then the method further includes: The braking stroke threshold is saved in a storage medium, and a flag bit of the braking stroke threshold self-learning is set to indicate successful learning.
8. The braking stroke threshold self-learning method of dual-path braking signal according to claim 1, characterized in that: The method further comprises: When the vehicle is powered on, if the flag bit of the self-learning of the brake stroke threshold is learning success, the brake state of the brake stroke of the second road is determined based on the brake stroke threshold; When the vehicle is powered on, if the flag bit of the self-learning of the braking stroke threshold is unsuccessful learning, the braking state of the braking stroke of the second road is determined based on a preset braking stroke threshold.
9. The braking stroke threshold self-learning method of dual-path braking signal according to claim 1, characterized in that: The method comprises: When the vehicle is powered off, the effective learning value in the current power-on cycle is discarded.
10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the self-learning method for the brake stroke threshold of a dual-path brake signal according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Push rod zero-position self-learning method of electronic booster for automobile and electronic equipment
CN115285093A
