Method and system for determining state of brake pedal, vehicle and storage medium
By acquiring the first braking signal and braking parameters from the brake sensor, and combining redundant sensors and target rules to determine the brake pedal state, the problem of inaccurate state feedback caused by brake sensor failure is solved, achieving more accurate braking state judgment and improving vehicle safety.
Patent Information
- Application Number
- CN202411175690.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-22
AI Technical Summary
In the existing technology, the brake pedal status substitute value caused by brake sensor failure cannot accurately reflect the driver's operation, resulting in abnormal vehicle function and endangering driver safety.
By acquiring the first braking signal and braking parameters from the brake sensor during vehicle operation, redundant brake sensors and target rules are used to determine sensor faults, dynamically determining the brake pedal state and avoiding the use of fixed substitute values.
It improves the accuracy of braking status, reduces vehicle safety issues caused by sensor malfunctions, and ensures that the vehicle can still drive safely in the event of a malfunction.
Smart Images

Figure CN118991723A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of automobile technology, and in particular, relates to a method, system, vehicle and storage medium for determining a brake pedal state. Background Art
[0002] In actual application scenarios, the implementation of various vehicle functions or device operations will use the brake pedal status as key input information. Therefore, accurately obtaining the brake pedal status has become one of the important factors to ensure safe driving of the vehicle.
[0003] In the related art, the brake pedal state of the vehicle is obtained through the brake sensor. In order to ensure that the vehicle can drive normally, the brake pedal state is defined as the stepped state according to the function of the brake pedal state used inside the vehicle. When a brake sensor failure is detected, the output signal of the brake sensor is replaced by the state value corresponding to the stepped state, so that the vehicle can drive safely even when the brake sensor fails.
[0004] However, no matter how the substitute value is defined, the substitute value of the brake pedal status cannot truly reflect whether the driver has stepped on the brake pedal. Therefore, using the substitute value to replace the brake pedal status signal cannot guarantee the normal operation of the functions in the vehicle, which may cause unpredictable consequences and endanger the driver's safety. Summary of the invention
[0005] The purpose of the present application is to provide a method, system, vehicle and storage medium for determining the state of a brake pedal, aiming to solve the problem of endangering driver safety due to failure of traditional brake sensors.
[0006] A first aspect of an embodiment of the present application provides a method for determining a brake pedal state, the method comprising:
[0007] During the driving of the vehicle, a first braking signal and a braking parameter are obtained, wherein the first braking signal is a sensor signal detected by a braking sensor of the vehicle;
[0008] When it is detected that a brake sensor fault flag of the vehicle is activated, determining a state of a brake pedal of the vehicle based on the brake parameter;
[0009] When it is detected that a brake sensor fault flag of the vehicle is not activated, a state of a brake pedal of the vehicle is determined based on the first brake signal.
[0010] In some embodiments, the braking parameters include a brake master cylinder pressure value and an energy recovery torque value; and determining the state of the brake pedal of the vehicle based on the braking parameters includes:
[0011] When the master cylinder pressure value is greater than a preset pressure value, or when the energy recovery torque value is less than a preset torque value, determining that the state of the brake pedal of the vehicle is a depressed state;
[0012] When the master cylinder pressure value is not less than the preset pressure value, and when the energy recovery torque value is not less than the preset torque value, it is determined that the state of the brake pedal of the vehicle is a non-pressed state.
[0013] In some embodiments, detecting a brake sensor fault flag of the vehicle includes:
[0014] acquiring a second brake signal, wherein the second brake signal is a sensor signal detected by a redundant brake sensor of the vehicle, and the first brake signal and the second brake signal are sensor signals indicating the same state of a brake pedal of the vehicle based on a target rule;
[0015] A fault flag of the brake sensor is determined based on the first brake signal, the second brake signal, and a target judgment condition corresponding to the target rule.
[0016] In some embodiments, the target rule is that the first brake signal and the second brake signal represent the same state of the brake pedal through opposite numbers; the determining of the fault flag of the brake sensor based on the target judgment condition corresponding to the first brake signal, the second brake signal and the target rule includes:
[0017] When the sum of the first brake signal and the second brake signal is not a preset value, activating a brake sensor fault flag of the vehicle;
[0018] When the sum of the first brake signal and the second brake signal is a preset value, a brake sensor fault flag of the vehicle is not activated.
[0019] A second aspect of an embodiment of the present application provides a system for determining a brake pedal state, the system comprising: a brake sensor fault determination module and a brake pedal state determination module; the brake sensor fault determination module and the brake pedal state determination module are communicatively connected;
[0020] The brake sensor fault judgment module is connected to the first brake sensor and the second brake sensor, and is used to receive a first brake signal sent by the first brake sensor, and receive a second brake signal sent by the second brake sensor, determine the state of a sensor fault flag based on the first brake signal and the second brake signal, and send the state of the sensor fault flag to the brake pedal state judgment module; wherein the first brake signal and the second brake signal are sensor signals indicating the same state of the brake pedal of the vehicle based on a target rule;
[0021] The brake pedal state judgment module is used to receive a first brake signal, brake parameters and the state of the sensor fault flag. When the state of the sensor fault flag is activated, the state of the brake pedal is determined based on the brake parameters. When the state of the sensor fault flag is inactive, the state of the brake pedal is determined based on the first brake signal, and the brake pedal state signal is output.
[0022] In some embodiments, the braking parameters include a brake master cylinder pressure value and an energy recovery torque value; the brake pedal state judgment module is used to determine that the state of the vehicle's brake pedal is a pressed state when the brake master cylinder pressure value is greater than a preset pressure value, or when the energy recovery torque value is less than a preset torque value; when the brake master cylinder pressure value is not less than the preset pressure value, and when the energy recovery torque value is not less than the preset torque value, determine that the state of the vehicle's brake pedal is a not pressed state.
[0023] In some embodiments, the target rule is that the first brake signal and the second brake signal represent the same state of the brake pedal by opposite numbers, and the brake sensor fault judgment module is used to activate the brake sensor fault flag of the vehicle when the sum of the first brake signal and the second brake signal is not a preset value; when the sum of the first brake signal and the second brake signal is a preset value, not activating the brake sensor fault flag of the vehicle.
[0024] In some embodiments, the brake sensor obtains the first brake signal and the second brake signal through hard-line input, and the brake pedal state judgment signal obtains the brake parameter through a controller area network bus CAN.
[0025] A third aspect of 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 for determining the state of a brake pedal as described above when executing the computer program.
[0026] A fourth aspect of 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 for determining the state of a brake pedal as described above is implemented.
[0027] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0028] In an embodiment of the present application, by simultaneously acquiring a first brake signal detected by a brake sensor and other brake parameters for determining the braking state of the vehicle during vehicle driving, when the brake sensor of the vehicle fails, the first brake signal can be used to determine the braking state of the vehicle, and when a brake sensor failure of the vehicle is detected, the braking state of the vehicle is promptly determined by the brake parameters of the vehicle. This avoids the use of a fixed substitute value to replace the braking state of the vehicle when the brake sensor of the vehicle fails, and instead dynamically judges the braking state of the vehicle according to the driving state of the vehicle, so that when the brake sensor fails, the substitute value of the braking state of the vehicle is closer to the actual state, so that the vehicle can also more accurately determine the braking state of the vehicle, reducing vehicle safety issues caused by sensor failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of a system for determining a brake pedal state provided by an exemplary embodiment is shown;
[0030] Figure 2 A schematic flow chart of a method for determining a brake pedal state provided by an exemplary embodiment is shown;
[0031] Figure 3 A schematic flow chart of a method for determining a brake pedal state provided by an exemplary embodiment is shown;
[0032] Figure 4 It is a schematic diagram of the structure of a vehicle provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0035] With the development of electronic control technology for new energy vehicles, the control method of vehicle braking control by using the brake pedal has also changed from traditional wire-pull control to control by the electronic control unit. For example, the driver controls the vehicle braking through the cooperation between sensors, controllers and actuators. In actual application scenarios, the brake pedal status is used as key input information for the realization of various functions or device operations of the vehicle. Therefore, accurately obtaining the brake pedal status has become one of the important factors to ensure the safe driving of the vehicle. As the core device for judging the status of the brake pedal, the vehicle controller (VCU) needs to ensure the accuracy of the obtained brake pedal status. Therefore, a strict monitoring strategy is designed for the brake sensor to ensure the normal operation of the function while ensuring the safety of the driver.
[0036] In some embodiments, two mutually redundant brake sensors are provided to simultaneously detect the state of the brake pedal, and the two brake sensors output opposite Boolean quantities to represent the same state of the brake pedal. After receiving the brake signals output by the two sensors, the vehicle controller detects the brake sensors based on the brake signals output by the two sensors. When it is found that the brake signals output by the two brake sensors are not opposite numbers, the brake sensor is determined to be faulty. In the event of a brake sensor failure, in order to ensure that the vehicle drives as safely as possible, the brake pedal state will be defined as a stepped state based on the function of the brake pedal state used inside the vehicle. When a brake sensor failure is detected, the output signal of the brake sensor is replaced by a state value corresponding to the stepped state, so that the vehicle can drive safely even when the brake sensor fails.
[0037] However, in actual applications, since the torque function path, gear function path and external controller all use the brake pedal status as key input information, no matter how the substitute value is defined, the substitute value of the brake pedal status cannot truly reflect whether the driver steps on the brake pedal. Therefore, using a substitute value to replace the brake pedal status signal cannot guarantee the normal operation of the functions in the vehicle, which may cause unexpected consequences and endanger the driver's safety.
[0038] The present application provides a method, system, vehicle and storage medium for determining the state of a brake pedal. By simultaneously acquiring a first brake signal detected by a brake sensor and other brake parameters for determining the brake state of a vehicle during vehicle driving, when the brake sensor of the vehicle fails, the first brake signal can be used to determine the brake state of the vehicle, and when the brake sensor failure of the vehicle is detected, the brake state of the vehicle is determined in a timely manner by the brake parameters of the vehicle, thereby avoiding the use of a fixed substitute value to replace the brake state of the vehicle when the brake sensor of the vehicle fails, and dynamically judging the brake state of the vehicle according to the driving state of the vehicle, so that in the case of a brake sensor failure, the substitute value of the brake state of the vehicle is closer to the actual state, so that the vehicle can also more accurately determine the brake state of the vehicle, reducing vehicle safety issues caused by sensor failure.
[0039] See also Figure 1 , which shows a schematic diagram of a system for determining a brake pedal state provided by an exemplary embodiment. Figure 1 The system for determining the state of the brake pedal comprises: a brake sensor fault judgment module 10 and a brake pedal state judgment module 20; the brake sensor fault judgment module 10 and the brake pedal state judgment module 20 are communicatively connected; the brake sensor fault judgment module 10 is connected to the first brake sensor and the second brake sensor, and is used to receive a first brake signal sent by the first brake sensor, and receive a second brake signal sent by the second brake sensor, determine the state of the sensor fault flag based on the first brake signal and the second brake signal, and send the state of the sensor fault flag to the brake pedal state judgment module 20; wherein the first brake signal and the second brake signal are sensor signals representing the same state of the brake pedal of the vehicle based on the target rule; the brake pedal state judgment module 20 is used to receive the first brake signal, the brake parameter and the state of the sensor fault flag, and when the state of the sensor fault flag is an activated state, determine the state of the brake pedal based on the brake parameter, and when the state of the sensor fault flag is inactivated, determine the state of the brake pedal based on the first brake signal, and output the state signal of the brake pedal.
[0040] See also Figure 1In some embodiments, the brake sensor fault judgment module 10 is connected to the first brake sensor and the second brake sensor through a hard-line input, wherein the first brake sensor and the second brake sensor are both used to detect the state of the brake pedal, and generate a brake signal based on the state of the brake pedal, and send the first brake signal and the second brake signal to the brake sensor fault judgment module 10 respectively. In some embodiments, the first brake sensor and the second brake sensor are connected to the brake sensor fault judgment module 10 through a hard line. Accordingly, the brake sensor obtains the first brake signal and the second brake signal through a hard-line input.
[0041] In some embodiments, the brake sensor fault judgment module 10 is further used to judge whether the brake sensor fails according to the first brake signal and the second brake signal. When the brake sensor fails, the state of the sensor fault flag is determined to be an activated state; when the brake sensor does not fail, the state of the sensor fault flag is determined to be an inactivated state.
[0042] In some embodiments, the target rule is that the first brake signal and the second brake signal represent the same state of the brake pedal by opposite numbers, and the brake sensor fault judgment module 10 is used to activate the brake sensor fault flag of the vehicle when the sum of the first brake signal and the second brake signal is not a preset value; when the sum of the first brake signal and the second brake signal is a preset value, not activating the brake sensor fault flag of the vehicle.
[0043] In an embodiment of the present application, the first brake signal and the second brake signal represent the same state of the brake pedal through a target rule. The target rule can be set as needed, and in an embodiment of the present application, the target rule is not specifically limited. For example, the target rule is that the first brake signal and the second brake signal are set to opposite values to represent the same state of the brake pedal. Accordingly, the brake sensor fault judgment module 10 is used to activate the brake sensor fault flag of the vehicle when the sum of the first brake signal and the second brake signal is not a preset value; when the sum of the first brake signal and the second brake signal is a preset value, the brake sensor fault flag of the vehicle is not activated.
[0044] The preset value may be determined according to the target rule and the value of the brake signal. For example, if the target rule is that the first brake signal and the second brake signal represent the same state of the brake pedal by using opposite values, the preset value is 0. Alternatively, if the target rule is that the first brake signal and the second brake signal are 1 or 0, and the first brake signal and the second brake signal represent the same state of the brake pedal by using different values, the preset value is 1.
[0045] It should be noted that the correspondence between the state of the brake pedal and the value of the brake signal can be set as needed. In the embodiment of the present application, the correspondence between the state of the brake pedal and the value of the brake signal is not specifically limited. For example, when the brake pedal is in the stepped state, the first brake signal is 1 and the second brake signal is -1; when the brake pedal is not stepped on, the first brake signal is -1 and the second brake signal is 1. Alternatively, when the brake pedal is in the stepped state, the first brake signal is 1 and the second brake signal is 0; when the brake pedal is not stepped on, the first brake signal is 0 and the second brake signal is 1.
[0046] The brake pedal state judgment module 20 is used to determine whether the vehicle's brake sensor is faulty based on the sensor fault flag. When the state of the sensor fault flag is activated, it is determined that the brake sensor is faulty. When the state of the sensor fault flag is inactivated, it is determined that the brake sensor is not faulty.
[0047] The state of the sensor fault flag can be identified according to a preset tag value. In the embodiment of the present application, the correspondence between the state of the sensor fault flag and the tag value is not specifically limited. For example, when the sensor fault flag is in an activated state, the tag value can be 1, and when the sensor fault flag is in an inactivated state, the tag value can be 0.
[0048] When the brake pedal state determination module 20 determines that the sensor fault flag is in an inactive state, a brake pedal state signal is output based on the first brake signal. When the brake pedal state determination module 20 determines that the sensor fault flag is in an inactive state, it is determined that the brake sensor is not faulty, and therefore, the state of the brake pedal can be determined based on the first brake signal sent by the brake sensor.
[0049] When the brake pedal state module determines that the sensor fault flag is in an activated state, the brake pedal state signal is determined based on the brake parameters. In some embodiments, the brake parameters include a brake master cylinder pressure value and an energy recovery torque value; the brake pedal state judgment module 20 is used to determine that the state of the vehicle's brake pedal is a stepped state when the brake master cylinder pressure value is greater than a preset pressure value, or when the energy recovery torque value is less than a preset torque value; when the brake master cylinder pressure value is not less than the preset pressure value, and when the energy recovery torque value is not less than the preset torque value, determine that the state of the vehicle's brake pedal is a not stepped state.
[0050] The braking parameter may be a parameter sent by an Electronic Stability Program (ESP) connected to the brake pedal state judgment module 20, wherein the EPS is connected to the brake pedal state judgment module 20 via a controller area network (CAN). Accordingly, the brake pedal state judgment signal obtains the braking parameter via the controller area network (CAN).
[0051] The preset pressure value and the preset torque value can be set as needed. In the embodiment of the present application, the preset pressure value and the preset torque value are not specifically limited. For example, the preset pressure value can be 2 bar, 2.5 or 1.5 bar, etc. The preset torque value can be -2 Nm, -2.5 Nm or -1.5 Nm, etc.
[0052] In an embodiment of the present application, by simultaneously acquiring a first brake signal detected by a brake sensor and other brake parameters for determining the braking state of the vehicle during vehicle driving, when the brake sensor of the vehicle fails, the first brake signal can be used to determine the braking state of the vehicle, and when a brake sensor failure of the vehicle is detected, the braking state of the vehicle is promptly determined by the brake parameters of the vehicle. This avoids the use of a fixed substitute value to replace the braking state of the vehicle when the brake sensor of the vehicle fails, and instead dynamically judges the braking state of the vehicle according to the driving state of the vehicle, so that when the brake sensor fails, the substitute value of the braking state of the vehicle is closer to the actual state, so that the vehicle can also more accurately determine the braking state of the vehicle, reducing vehicle safety issues caused by sensor failure.
[0053] The following is an explanation of this scheme in combination with a specific method. Figure 2 , which shows a flow chart of a method for determining a brake pedal state provided by an exemplary embodiment. As an example and not a limitation, the method is applied to a vehicle, which is provided with the above-mentioned system for determining a brake pedal state.
[0054] S201, during the driving of a vehicle, the vehicle obtains a first braking signal and braking parameters, where the first braking signal is a sensor signal detected by a braking sensor of the vehicle.
[0055] The first brake signal is a brake signal generated by the first brake sensor of the vehicle based on the state of the brake pedal of the vehicle. The first brake signal is related to the working state of the first brake sensor. For example, when the first brake sensor is working normally, if the brake pedal is in a stepped state, the first brake signal is 1, and if the brake pedal is not stepped on, the first brake signal is -1; and when the first brake sensor fails, the brake sensor may generate any value in the stepped or not stepped state, and this is not specifically limited in the embodiment of the present application.
[0056] The braking parameter may be a parameter sent by an electronic stability program (ESP) connected to the brake pedal state judgment module. The braking parameter is a parameter that can dynamically represent the current driving state of the vehicle. For example, the braking parameter may include parameters such as a brake master cylinder pressure value and an energy recovery torque value.
[0057] During the driving process of the vehicle, the brake sensor is also monitored in real time to see if there is any fault. In some embodiments, in addition to obtaining the first brake signal, the vehicle also obtains a second brake signal. The second brake signal is a sensor signal detected by the redundant brake sensor of the vehicle, and the first brake signal and the second brake signal are sensor signals that represent the same state of the brake pedal of the vehicle based on the target rule. The state of the fault flag of the vehicle's brake sensor is determined based on the first brake signal and the second brake signal. When the state of the fault flag is an activated state, step S202 is executed, and when the state of the fault flag is an inactivated state, step S203 is executed. The vehicle determines the state of the fault flag of the vehicle's brake sensor based on the first brake signal and the second brake signal, which can be achieved by the following steps S2011-S2012, see. Figure 3 ,include:
[0058] S2011, the vehicle obtains a second brake signal, where the second brake signal is a sensor signal detected by a redundant brake sensor of the vehicle, and the first brake signal and the second brake signal are sensor signals representing the same state of a brake pedal of the vehicle based on a target rule.
[0059] The first brake signal and the second brake signal represent the same state of the brake pedal through a target rule. The target rule can be set as needed. In the embodiment of the present application, the target rule is not specifically limited. For example, the target rule is that the first brake signal and the second brake signal are set to opposite values to represent the same state of the brake pedal. Alternatively, the target rule is that the first brake signal and the second brake signal are 1 or 0.
[0060] S2012: The vehicle determines a fault flag of the brake sensor based on the first brake signal, the second brake signal and a target judgment condition corresponding to the target rule.
[0061] The vehicle determines whether the brake sensor fails according to the first brake signal and the second brake signal. When the brake sensor fails, the state of the sensor fault flag is determined to be an activated state; when the brake sensor does not fail, the state of the sensor fault flag is determined to be an inactivated state.
[0062] In some embodiments, the first brake signal and the second brake signal represent the same state of the brake pedal through a target rule. The target rule can be set as needed, and in the embodiment of the present application, the target rule is not specifically limited. For example, the target rule is that the first brake signal and the second brake signal are set to opposite values to represent the same state of the brake pedal. Accordingly, the brake sensor fault judgment module is used to activate the brake sensor fault flag of the vehicle when the sum of the first brake signal and the second brake signal is not a preset value; when the sum of the first brake signal and the second brake signal is a preset value, the brake sensor fault flag of the vehicle is not activated.
[0063] The preset value may be determined according to the target rule and the value of the brake signal. For example, if the target rule is that the first brake signal and the second brake signal represent the same state of the brake pedal by using opposite values, the preset value is 0. Alternatively, if the target rule is that the first brake signal and the second brake signal are 1 or 0, and the first brake signal and the second brake signal represent the same state of the brake pedal by using different values, the preset value is 1.
[0064] It should be noted that the correspondence between the state of the brake pedal and the value of the brake signal can be set as needed. In the embodiment of the present application, the correspondence between the state of the brake pedal and the value of the brake signal is not specifically limited. For example, when the brake pedal is in the stepped state, the first brake signal is 1 and the second brake signal is -1; when the brake pedal is not stepped on, the first brake signal is -1 and the second brake signal is 1. Alternatively, when the brake pedal is in the stepped state, the first brake signal is 1 and the second brake signal is 0; when the brake pedal is not stepped on, the first brake signal is 0 and the second brake signal is 1.
[0065] The brake pedal state judgment module is used to determine whether the vehicle's brake sensor is faulty based on the sensor fault flag. When the state of the sensor fault flag is activated, it is determined that the brake sensor is faulty. When the state of the sensor fault flag is inactivated, it is determined that the brake sensor is not faulty.
[0066] S202, when it is detected that the brake sensor fault flag of the vehicle is activated, the vehicle determines the state of the brake pedal of the vehicle based on the braking parameters.
[0067] When the brake pedal state module determines that the sensor fault flag is in an activated state, the brake pedal state signal is determined based on the brake parameters. In some embodiments, the brake parameters include a brake master cylinder pressure value and an energy recovery torque value; the brake pedal state judgment module is used to determine that the state of the vehicle's brake pedal is a stepped state when the brake master cylinder pressure value is greater than a preset pressure value, or when the energy recovery torque value is less than a preset torque value; when the brake master cylinder pressure value is not less than the preset pressure value, and when the energy recovery torque value is not less than the preset torque value, determine that the state of the vehicle's brake pedal is a not stepped state.
[0068] Among them, the preset pressure value and the preset torque value can be set as needed. In the embodiment of the present application, the preset pressure value and the preset torque value are not specifically limited. For example, the preset pressure value can be 2bar, 2.5 or 1.5bar, etc. The preset torque value can be -2Nm, -2.5Nm or -1.5Nm, etc. Correspondingly, when the preset pressure value is 2bar and the preset torque value is -2Nm, when the brake master cylinder pressure value is greater than 2bar or the brake energy recovery torque value is less than -2Nm, it is determined that the brake pedal state is pressed, and when the brake master cylinder pressure value is less than 2bar and the brake energy recovery torque value is greater than -2Nm, it is determined that the brake pedal state is not pressed.
[0069] S203: When it is detected that a brake sensor fault flag of the vehicle is not activated, the vehicle determines a state of a brake pedal of the vehicle based on the first brake signal.
[0070] When the brake pedal sensor fault flag is not activated, when the brake pedal state judgment module determines that the sensor fault flag is in an inactive state, it is determined that the brake sensor is not faulty, and therefore, the state of the brake pedal can be determined based on the first brake signal sent by the brake sensor. For example, when the brake sensor state 1 is 1, the brake pedal state is stepped on, and when the brake sensor state 1 is 0, the brake pedal state is not stepped on.
[0071] In an embodiment of the present application, by simultaneously acquiring a first brake signal detected by a brake sensor and other brake parameters for determining the braking state of the vehicle during vehicle driving, when the brake sensor of the vehicle fails, the first brake signal can be used to determine the braking state of the vehicle, and when a brake sensor failure of the vehicle is detected, the braking state of the vehicle is promptly determined by the brake parameters of the vehicle. This avoids the use of a fixed substitute value to replace the braking state of the vehicle when the brake sensor of the vehicle fails, and instead dynamically judges the braking state of the vehicle according to the driving state of the vehicle, so that when the brake sensor fails, the substitute value of the braking state of the vehicle is closer to the actual state, so that the vehicle can also more accurately determine the braking state of the vehicle, reducing vehicle safety issues caused by sensor failure.
[0072] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0073] Figure 4 FIG. 1 is a schematic diagram of a vehicle provided by an exemplary embodiment of the present application. Figure 4 As shown, the vehicle 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40, such as a program for determining the state of the brake pedal. When the processor 40 executes the computer program 42, the steps of the above-mentioned method for determining the state of the brake pedal are implemented, such as Figure 2 Alternatively, when the processor 40 executes the computer program 42, the functions of each module in the above-mentioned system embodiments are realized, for example, Figure 1 The functions of modules 10 to 20 are shown.
[0074] Exemplarily, the computer program 42 may be divided into one or more units, which are stored in the memory 41 and executed by the processor 40 to complete the present application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 42 in the vehicle 4. For example, the computer program 42 may be divided into a first acquisition unit, a determination unit, and a control unit, and the specific functions of each module are as follows:
[0075] The brake sensor fault judgment module 10 is connected to the first brake sensor and the second brake sensor, and is used to receive the first brake signal sent by the first brake sensor, and receive the second brake signal sent by the second brake sensor, determine the state of the sensor fault flag based on the first brake signal and the second brake signal, and send the state of the sensor fault flag to the brake pedal state judgment module 20; wherein the first brake signal and the second brake signal are sensor signals representing the same state of the vehicle's brake pedal based on the target rule; the brake pedal state judgment module 20 is used to receive the first brake signal, the brake parameter and the state of the sensor fault flag, and when the state of the sensor fault flag is an activated state, determine the state of the brake pedal based on the brake parameter, and when the state of the sensor fault flag is an inactivated state, determine the state of the brake pedal based on the first brake signal, and output the state signal of the brake pedal.
[0076] The vehicle 4 may be any vehicle having a control function. The vehicle 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the vehicle 4 and does not constitute a limitation of the vehicle 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the vehicle 4 may also include input and output devices, network access devices, buses, etc.
[0077] The processor 40 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.
[0078] The memory 41 may be an internal storage unit of the vehicle 4, such as a hard disk or memory of the vehicle 4. The memory 41 may also be an external storage device of the vehicle 4, 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 4. Further, the memory 41 may also include both an internal storage unit of the vehicle 4 and an external storage device. The memory 41 is used to store the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0079] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0080] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0081] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0082] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] 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.
[0085] If the integrated module / 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. 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 medium may include: any entity or device capable of carrying the 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. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0086] The embodiments of the present application further provide 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 steps in the above-mentioned method embodiments are implemented.
[0087] The embodiment of the present application also provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0088] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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 method for determining a brake pedal state, characterized in that: The method comprises: During the driving of the vehicle, a first braking signal and a braking parameter are obtained, wherein the first braking signal is a sensor signal detected by a braking sensor of the vehicle; When it is detected that a brake sensor fault flag of the vehicle is activated, determining a state of a brake pedal of the vehicle based on the brake parameter; When it is detected that a brake sensor fault flag of the vehicle is not activated, a state of a brake pedal of the vehicle is determined based on the first brake signal.
2. The method according to claim 1, characterized in that The braking parameters include a brake master cylinder pressure value and an energy recovery torque value; and determining the state of the brake pedal of the vehicle based on the braking parameters includes: When the master cylinder pressure value is greater than a preset pressure value, or when the energy recovery torque value is less than a preset torque value, determining that the state of the brake pedal of the vehicle is a depressed state; When the master cylinder pressure value is not less than the preset pressure value, and when the energy recovery torque value is not less than the preset torque value, it is determined that the state of the brake pedal of the vehicle is a non-pressed state.
3. The method according to claim 1, characterized in that Detecting a brake sensor fault flag of the vehicle includes: acquiring a second brake signal, wherein the second brake signal is a sensor signal detected by a redundant brake sensor of the vehicle, and the first brake signal and the second brake signal are sensor signals indicating the same state of a brake pedal of the vehicle based on a target rule; A fault flag of the brake sensor is determined based on the first brake signal, the second brake signal, and a target judgment condition corresponding to the target rule.
4. The method according to claim 3, characterized in that The target rule is that the first brake signal and the second brake signal represent the same state of the brake pedal through opposite numbers; the determination of the fault flag of the brake sensor based on the target judgment condition corresponding to the first brake signal, the second brake signal and the target rule includes: When the sum of the first brake signal and the second brake signal is not a preset value, activating a brake sensor fault flag of the vehicle; When the sum of the first brake signal and the second brake signal is a preset value, a brake sensor fault flag of the vehicle is not activated.
5. A system for determining a brake pedal state, characterized in that: The system comprises: a brake sensor fault judgment module and a brake pedal state judgment module; the brake sensor fault judgment module and the brake pedal state judgment module are in communication connection; The brake sensor fault judgment module is connected to the first brake sensor and the second brake sensor, and is used to receive a first brake signal sent by the first brake sensor, and receive a second brake signal sent by the second brake sensor, determine the state of a sensor fault flag based on the first brake signal and the second brake signal, and send the state of the sensor fault flag to the brake pedal state judgment module; wherein the first brake signal and the second brake signal are sensor signals indicating the same state of the brake pedal of the vehicle based on a target rule; The brake pedal state judgment module is used to receive a first brake signal, brake parameters and the state of the sensor fault flag. When the state of the sensor fault flag is activated, the state of the brake pedal is determined based on the brake parameters. When the state of the sensor fault flag is inactive, the state of the brake pedal is determined based on the first brake signal, and the brake pedal state signal is output.
6. The system according to claim 5, characterized in that The braking parameters include a master cylinder pressure value and an energy recovery torque value; the brake pedal state judgment module is used to determine that the state of the vehicle's brake pedal is a depressed state when the master cylinder pressure value is greater than a preset pressure value, or when the energy recovery torque value is less than a preset torque value; When the master cylinder pressure value is not less than the preset pressure value, and when the energy recovery torque value is not less than the preset torque value, it is determined that the state of the brake pedal of the vehicle is a non-pressed state.
7. The system according to claim 5, characterized in that The target rule is that the first brake signal and the second brake signal represent the same state of the brake pedal by opposite numbers to each other, and the brake sensor fault judgment module is used to activate the brake sensor fault flag of the vehicle when the sum of the first brake signal and the second brake signal is not a preset value; and not activate the brake sensor fault flag of the vehicle when the sum of the first brake signal and the second brake signal is a preset value.
8. The system according to any one of claims 5 to 7, characterized in that: The brake sensor obtains the first brake signal and the second brake signal through hard-line input, and the brake pedal state judgment signal obtains the brake parameter through a controller area network bus CAN.
9. A vehicle, characterized in that: The vehicle comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for determining the brake pedal state according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for determining the state of a brake pedal according to any one of claims 1 to 4 is implemented.
Citation Information
Cited By
Vehicle control method and device, electronic equipment and vehicle
CN119872503A
