Braking depth threshold value adjusting method, electronic equipment and vehicle

By self-learning and adaptively adjusting the brake depth threshold of the vehicle brake switch, the problem of frequent fault false alarms in vehicle brake switches is solved, and the reliability of fault detection is improved.

CN119428613AActive Publication Date: 2025-02-14GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510006586.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-02-14
Estimated Expiration
2045-01-02

AI Technical Summary

Technical Problem

Frequent faults and false alarms of vehicle brake switches, which affects the normal operation of the vehicle.

Method used

By self-learning adaptively adjusting the brake depth threshold, dynamically update the thresholds used to detect low- and high-failure failures, thereby reducing fault false alarms.

Benefits of technology

It improves the rationality of the threshold, reduces fault false alarms, and ensures the reliability of vehicle brake switch fault detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119428613A_ABST
    Figure CN119428613A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, and provides a braking depth threshold value adjusting method, electronic equipment and a vehicle. The method comprises the following steps: acquiring a first braking depth, a second braking depth, a third braking depth and a fourth braking depth of a braking switch; a first preset depth threshold value is adjusted according to the multiple first braking depths, and a second preset depth threshold value is adjusted according to the multiple second braking depths. And a third preset depth threshold value is adjusted according to the multiple third braking depths, and a fourth preset depth threshold value is adjusted according to the multiple fourth braking depths. And determining a fifth depth threshold according to the adjusted first depth threshold and the adjusted third depth threshold, and determining a sixth depth threshold according to the adjusted second depth threshold and the adjusted fourth depth threshold. According to the method, the adjustment accuracy and rationality of the fifth depth threshold and the sixth depth threshold can be improved, so that the problem of frequent fault false alarm and fault missing detection of the vehicle brake switch is solved.
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 braking depth threshold adjustment method, electronic equipment and a vehicle. Background Art

[0002] The vehicle brake switch (e.g., the vehicle brake pedal) is a key component for achieving vehicle parking or deceleration. Therefore, whether the fault detection of the vehicle brake switch is reliable directly affects the driving safety of the vehicle. In the related art, a larger threshold is usually set for fault detection of the vehicle brake switch to avoid missing the fault of the vehicle brake switch. However, this method will lead to frequent false fault alarms, thereby affecting the normal operation of the vehicle. Summary of the invention

[0003] The present application provides a brake depth threshold adjustment method, an electronic device and a vehicle to solve the technical problem of frequent false fault alarms of a vehicle brake switch.

[0004] A first aspect of an embodiment of the present application provides a method for adjusting a braking depth threshold, the method comprising: In the process of switching the brake switch from a first preset state to a second preset state, the first braking depth and the second braking depth of the brake switch are obtained, and in the process of restoring the brake switch from the second preset state to the first preset state, the third braking depth and the fourth braking depth of the brake switch are obtained; the first preset depth threshold is adjusted according to multiple first braking depths to obtain an adjusted first depth threshold, and the second preset depth threshold is adjusted according to multiple second braking depths to obtain an adjusted second depth threshold; the third preset depth threshold is adjusted according to multiple third braking depths to obtain an adjusted third depth threshold, and the fourth preset depth threshold is adjusted according to multiple fourth braking depths to obtain an adjusted fourth depth threshold; a fifth depth threshold is determined according to the adjusted first depth threshold and the adjusted third depth threshold, and a sixth depth threshold is determined according to the adjusted second depth threshold and the adjusted fourth depth threshold, the fifth depth threshold is used to detect a low-position failure fault of the brake switch, and the sixth depth threshold is used to detect a high-position failure fault of the brake switch.

[0005] According to an embodiment of the present application, the method further includes: selecting an effective depth from the multiple first braking depths according to the first preset depth threshold; adjusting the first preset depth threshold according to the effective depth to obtain the adjusted first depth threshold.

[0006] According to an embodiment of the present application, selecting an effective depth from the multiple first braking depths based on the first preset depth threshold includes: calculating a first deviation between each first braking depth and the first preset depth threshold; and determining a first braking depth corresponding to a first deviation less than the first preset value as the effective depth.

[0007] According to an embodiment of the present application, the method further includes: when the number of effective depths is greater than a preset number, adjusting the first preset depth threshold to obtain the adjusted first depth threshold.

[0008] According to an embodiment of the present application, adjusting the first preset depth threshold according to the effective depth to obtain the adjusted first depth threshold includes: determining a depth statistic according to the effective depth; if a second deviation between the depth statistic and the first preset depth threshold is greater than a second preset value, determining the adjusted first depth threshold according to a preset interval, the first preset depth threshold and the second deviation.

[0009] According to an embodiment of the present application, determining the depth statistic according to the effective depth includes: calculating an average value of multiple effective depths to obtain the depth statistic; or calculating a weighted sum of multiple effective depths to obtain the depth statistic.

[0010] According to an embodiment of the present application, determining the adjusted first depth threshold based on the preset interval, the first preset depth threshold and the second deviation includes: if the second deviation is outside the preset interval, determining the adjusted first depth threshold based on the preset interval and the first preset depth threshold; if the second deviation is within the preset interval, determining the adjusted first depth threshold based on the second deviation and the first preset depth threshold.

[0011] According to an embodiment of the present application, determining the fifth depth threshold based on the adjusted first depth threshold and the adjusted third depth threshold includes: determining a minimum value from the adjusted first depth threshold and the adjusted third depth threshold as the fifth depth threshold; determining the sixth depth threshold based on the adjusted second depth threshold and the adjusted fourth depth threshold includes: determining a maximum value from the adjusted second depth threshold and the adjusted fourth depth threshold as the sixth depth threshold.

[0012] According to a second aspect of an embodiment of the present application, there is provided a braking depth threshold adjustment device, the device comprising: an acquisition unit, for acquiring a first braking depth and a second braking depth of the braking switch during a process in which the braking switch is switched from a first preset state to a second preset state, and for acquiring a third braking depth and a fourth braking depth of the braking switch during a process in which the braking switch is restored from the second preset state to the first preset state; an adjustment unit, for adjusting a first preset depth threshold according to a plurality of first braking depths to obtain an adjusted first depth threshold, and adjusting a second preset depth threshold according to a plurality of second braking depths to obtain an adjusted second depth threshold; the adjustment unit is further used to adjust a third preset depth threshold according to a plurality of third braking depths to obtain an adjusted third depth threshold, and to adjust a fourth preset depth threshold according to a plurality of fourth braking depths to obtain an adjusted fourth depth threshold; a determination unit, for determining a fifth depth threshold according to the adjusted first depth threshold and the adjusted third depth threshold, and determining a sixth depth threshold according to the adjusted second depth threshold and the adjusted fourth depth threshold, the fifth depth threshold being used to detect a low position failure fault of the braking switch, and the sixth depth threshold being used to detect a high position failure fault of the braking switch.

[0013] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory storing a computer program; and a processor executing the computer program stored in the memory to implement the braking depth threshold adjustment method.

[0014] A fourth aspect of an embodiment of the present application provides a vehicle, wherein the vehicle is equipped with an electronic device, and the electronic device is used to execute to implement the braking depth threshold adjustment method.

[0015] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is executed by a processor in an electronic device to implement the braking depth threshold adjustment method.

[0016] In multiple embodiments of the present application, the first preset depth threshold is adjusted by the first braking depth, the second preset depth threshold is adjusted by the second braking depth, the third preset depth threshold is adjusted by the third braking depth, the fourth preset depth threshold is adjusted by the fourth braking depth, and the fifth depth threshold for detecting the low-position failure fault of the brake switch is determined according to the adjusted first depth threshold and the adjusted third depth threshold, and the sixth depth threshold for detecting the high-position failure fault of the brake switch is determined according to the adjusted second depth threshold and the adjusted fourth depth threshold. The fifth depth threshold and the sixth depth threshold can be dynamically updated by self-learning, thereby solving the problem of frequent false alarms of vehicle brake switches due to setting fixed large thresholds. The fifth depth threshold and the sixth depth threshold can be improved in a rational way by self-learning the fifth depth threshold and the sixth depth threshold, thereby avoiding missing detection of vehicle brake switch faults. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is an application scenario diagram of the braking depth threshold adjustment method provided in an embodiment of the present application.

[0018] Figure 2 It is a flow chart of the braking depth threshold adjustment method provided in an embodiment of the present application.

[0019] Figure 3 It is a schematic diagram of the state and braking depth of a brake switch of a vehicle provided in an embodiment of the present application.

[0020] Figure 4 It is a schematic diagram of the state and braking depth of a brake switch of another vehicle provided in an embodiment of the present application.

[0021] Figure 5 This is a detailed flowchart of adjusting the first preset depth threshold provided in an embodiment of the present application.

[0022] Figure 6 This is a detailed flowchart of adjusting the first preset depth threshold provided by another embodiment of the present application.

[0023] Figure 7 It is a functional module diagram of the braking depth threshold adjustment device provided in an embodiment of the present application.

[0024] Figure 8 It is a structural schematic diagram of an electronic device for implementing a braking depth threshold adjustment method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is described in detail below with reference to the accompanying drawings and specific embodiments.

[0026] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0027] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The following embodiments and features in the embodiments may be combined with each other without conflict.

[0028] The vehicle brake switch (e.g., the vehicle brake pedal) is a key component for stopping or decelerating the vehicle. Therefore, the reliability of the fault detection of the vehicle brake switch directly affects the driving safety of the vehicle. However, due to the limitations of the manufacturing accuracy, assembly accuracy, and sensor accuracy of the vehicle brake switch, the thresholds corresponding to the fault detection of the brake switches of different vehicles are different.

[0029] In the related art, in order to avoid missing the fault of the vehicle brake switch, a large threshold is usually set for fault detection of the brake switches of all vehicles. However, this method may cause frequent false fault reports in some vehicles, thus affecting the normal operation of the vehicle.

[0030] Based on the above problems, an embodiment of the present application provides a brake depth threshold adjustment method, which adaptively adjusts the first preset depth threshold, the second preset depth threshold, the third preset depth threshold and the fourth preset depth threshold through self-learning, so as to determine the fifth depth threshold for detecting the low-position failure fault of the brake switch according to the adjusted first depth threshold and the adjusted third depth threshold, and determine the sixth depth threshold for detecting the high-position failure fault of the brake switch according to the adjusted second depth threshold and the adjusted fourth depth threshold, thereby improving the rationality of the fifth depth threshold and the sixth depth threshold.

[0031] like Figure 1 , which is a diagram of an application scenario of the braking depth threshold adjustment method provided in an embodiment of the present application.

[0032] In the embodiment of the present application, the braking depth threshold adjustment method can be applied to the electronic device 100. The electronic device 100 can be installed in the vehicle 200. For example, the electronic device 100 can be a vehicle-mounted terminal in the vehicle 200.

[0033] In another embodiment, the electronic device 100 may also be an electronic product that communicates with the vehicle 200. For example, the electronic device 100 may be a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0034] The electronic device 100 may include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of multiple network electronic devices, or a cloud consisting of a large number of hosts or network electronic devices based on cloud computing.

[0035] The network where the electronic device 100 is located may include, but is not limited to: the Internet, a wide area network, a metropolitan area network, a local area network, and a virtual private network (VPN).

[0036] like Figure 2 , which is a flow chart of a braking depth threshold adjustment method provided by an embodiment of the present application. The braking depth threshold adjustment method is applied to electronic devices, for example, Figure 1 The electronic device 100 can be installed in a vehicle, and the electronic device can also communicate with the vehicle. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

[0037] S201, when the brake switch of the vehicle is switched from a first preset state to a second preset state, a first braking depth and a second braking depth of the brake switch are obtained, and when the brake switch is restored from the second preset state to the first preset state, a third braking depth and a fourth braking depth of the brake switch are obtained.

[0038] In at least one embodiment of the present application, the brake switch of the vehicle includes a normally open switch and a normally closed switch. When the brake switch is not stepped on, the normally open switch and the normally closed switch are in a mutually exclusive state, for example, the normally open switch is in a low level state, and the normally closed switch is in a high level state. When the user steps on the brake switch, the normally open switch jumps from a low level to a high level, and the normally closed switch jumps from a high level to a low level. In actual situations, there is a certain time delay when the normally open switch and the normally closed switch change their levels, resulting in the normally open switch and the normally closed switch being in a non-mutually exclusive state within a certain period of time. For example, after the normally open switch jumps from a low level to a high level, the normally closed switch will jump from a high level to a low level. For another example, after the normally closed switch jumps from a high level to a low level, the normally open switch will jump from a low level to a high level.

[0039] Figure 3 The figure shows the level changes of the normally open switch and the normally closed switch in the brake switch of a vehicle. Figure 3 As shown, when the brake switch is in the un-stepped state, the normally open switch B1 is in the low level state and the normally closed switch B2 is in the high level state. When the user steps on the brake switch, the normally open switch B1 first jumps from the low level to the high level, and the normally closed switch B2 then jumps from the high level to the low level. When the user releases the brake switch, the normally closed switch B2 first jumps from the low level to the high level, and the normally open switch B1 then jumps from the high level to the low level. In the process of the brake switch switching from the un-stepped state to the stepped state and then returning to the un-stepped state, the normally open switch B1 and the normally closed switch B2 are in a non-mutually exclusive state for a certain period of time, for example, the normally open switch B1 and the normally closed switch B2 are both in the high level state for a certain period of time (B1=1, B2=1).

[0040] Figure 4 The figure shows the level changes of the normally open switch and the normally closed switch in the brake switch of another vehicle. Figure 4 As shown, when the brake switch is in the un-stepped state, the normally open switch B1 is in the low level state and the normally closed switch B2 is in the high level state. When the user steps on the brake switch, the normally closed switch B2 first jumps from the high level to the low level, and the normally open switch B1 then jumps from the low level to the high level. When the user releases the brake switch, the normally open switch B1 first jumps from the high level to the low level, and the normally closed switch B2 then jumps from the low level to the high level. In the process of the brake switch switching from the un-stepped state to the stepped state and then returning to the un-stepped state, the normally open switch B1 and the normally closed switch B2 are in a non-mutually exclusive state for a certain period of time, for example, the normally open switch B1 and the normally closed switch B2 are both in the low level state (B1=0, B2=0) for a certain period of time.

[0041] In at least one embodiment of the present application, the first preset state may indicate that the brake switch is not pressed, and the second preset state may indicate that the brake switch is pressed. After the user presses the brake switch, the brake switch switches from the first preset state to the second preset state. After the user releases the brake switch, the brake switch returns from the second preset state to the first preset state.

[0042] In at least one embodiment of the present application, during the process of the brake switch switching from the first preset state to the second preset state, the normally open switch and the normally closed switch can switch from mutually exclusive states (for example, Figure 3 As shown, B1=0, B2=1) switches to a non-mutually exclusive state (e.g. Figure 3 As shown, B1=1, B2=1), the normally open switch and the normally closed switch are in a non-mutually exclusive state (for example Figure 3 As shown, B1=1, B2=1) switches to the mutually exclusive state (e.g. Figure 3 As shown, B1=1, B2=0). When the normally open switch and the normally closed switch are switched from a mutually exclusive state to a non-mutually exclusive state, the electronic device obtains a first braking depth of the braking switch, and the first braking depth can represent the travel amount of the braking switch, for example Figure 3 and Figure 4 As shown, the first braking depth can represent P1. When the normally open switch and the normally closed switch are switched from a non-mutually exclusive state to a mutually exclusive state, the electronic device obtains a second braking depth of the braking switch, and the second braking depth can represent the travel amount of the braking switch, for example Figure 3 and Figure 4 As shown, the second braking depth may be denoted P2.

[0043] In another embodiment, during the process of the brake switch switching from the first preset state to the second preset state, the normally open switch and the normally closed switch can switch from a mutually exclusive state (for example, Figure 3 As shown, B1=0, B2=1) switches to another mutually exclusive state (e.g. Figure 3 As shown, B1=1, B2=0). When the normally open switch and the normally closed switch are switched from one mutually exclusive state to another mutually exclusive state, the electronic device obtains the travel amount of the brake switch as the first braking depth and the second braking depth. In this embodiment, the first braking depth may be equal to the second braking depth.

[0044] In at least one embodiment of the present application, during the process of the brake switch recovering from the second preset state to the first preset state, the normally open switch and the normally closed switch can be in mutually exclusive states (for example, Figure 3 As shown, B1=1, B2=0) switches to a non-mutually exclusive state (e.g. Figure 3 As shown, B1=1, B2=1), the normally open switch and the normally closed switch are in a non-mutually exclusive state (for example Figure 3 As shown, B1=1, B2=1) switches to the mutually exclusive state (e.g. Figure 3As shown, B1=0, B2=1). When the normally open switch and the normally closed switch are switched from the mutually exclusive state to the non-mutually exclusive state, the electronic device obtains the third braking depth of the braking switch, and the third braking depth can represent the travel amount of the braking switch, for example Figure 3 and Figure 4 As shown, the third braking depth can represent P3. When the normally open switch and the normally closed switch are switched from a non-mutually exclusive state to a mutually exclusive state, the electronic device obtains a fourth braking depth of the braking switch, and the fourth braking depth can represent the travel amount of the braking switch, for example Figure 3 and Figure 4 As shown, the fourth braking depth may be denoted P4.

[0045] In another embodiment, during the process of the brake switch returning from the second preset state to the first preset state, the normally open switch and the normally closed switch can be changed from a mutually exclusive state (for example, Figure 3 As shown, B1=1, B2=0) switches to another mutually exclusive state (for example Figure 3 As shown, B1=0, B2=1). When the normally open switch and the normally closed switch are switched from one mutually exclusive state to another mutually exclusive state, the electronic device obtains the travel amount of the brake switch as the third brake depth and the fourth brake depth. In this embodiment, the third brake depth can be equal to the fourth brake depth.

[0046] S202, adjusting a first preset depth threshold according to a plurality of first braking depths to obtain an adjusted first depth threshold, and adjusting a second preset depth threshold according to a plurality of second braking depths to obtain an adjusted second depth threshold.

[0047] In at least one embodiment of the present application, the first preset depth threshold and the second preset depth threshold can be preset and adjusted. For example, the first preset depth threshold of the Nth round can be the adjusted first depth threshold corresponding to the N-1th round, where N is an integer greater than or equal to 2.

[0048] In at least one embodiment of the present application, the electronic device can adjust the first preset depth threshold using multiple first braking depths obtained from the same vehicle, and the electronic device can also adjust the second preset depth threshold using multiple second braking depths obtained from the same vehicle. The present application embodiment adjusts the corresponding preset depth threshold using multiple braking depths obtained from the same vehicle, thereby avoiding the inability to reasonably adjust the corresponding preset depth threshold due to differences in the manufacture and assembly of brake switches in different vehicles. The first preset depth threshold and the second preset depth threshold are adjusted by self-learning to improve the rationality of the adjustment.

[0049] In at least one embodiment of the present application, the electronic device selects an effective depth from a plurality of first braking depths, and the effective depth may represent a first braking depth having a smaller deviation from a first preset depth threshold. The manner in which the electronic device selects the effective depth may refer to the following Figure 5 Detailed description shown. When the number of effective depths is greater than the preset number, the electronic device adjusts the first preset depth threshold according to the effective depth to obtain the adjusted first depth threshold. The preset number can be set according to actual needs, for example, the preset number can be set to 10. The way in which the electronic device adjusts the first preset depth threshold can be referred to below Figure 6 Detailed instructions shown.

[0050] This embodiment can improve the quality of the effective depth by selecting an effective depth from a plurality of first braking depths, and further adjust the first preset depth threshold by the effective depth, thereby improving the adjustment accuracy of the first depth threshold. In addition, this embodiment adjusts the first preset depth threshold only when the number of effective depths is greater than the preset number, thereby avoiding excessive occupation of the computing power of the electronic device by the adjustment operation.

[0051] In at least one embodiment of the present application, the manner in which the electronic device adjusts the second preset depth threshold according to multiple second braking depths is similar to the manner in which the electronic device adjusts the first preset depth threshold according to multiple first braking depths, and this application will not further explain this.

[0052] S203, adjusting the third preset depth threshold according to the plurality of third braking depths to obtain an adjusted third depth threshold, and adjusting the fourth preset depth threshold according to the plurality of fourth braking depths to obtain an adjusted fourth depth threshold.

[0053] In at least one embodiment of the present application, the third preset depth threshold and the fourth preset depth threshold can be preset and adjusted. For example, the third preset depth threshold of the Nth round can be the adjusted third depth threshold corresponding to the N-1th round, where N is an integer greater than or equal to 2.

[0054] In at least one embodiment of the present application, the manner in which the electronic device adjusts the third preset depth threshold according to multiple third braking depths is similar to the manner in which the electronic device adjusts the first preset depth threshold according to multiple first braking depths, and this application will not further explain this.

[0055] In at least one embodiment of the present application, the manner in which the electronic device adjusts the fourth preset depth threshold according to multiple fourth braking depths is similar to the manner in which the electronic device adjusts the first preset depth threshold according to multiple first braking depths, and this application will not further explain this.

[0056] S204 , determining a fifth depth threshold according to the adjusted first depth threshold and the adjusted third depth threshold, and determining a sixth depth threshold according to the adjusted second depth threshold and the adjusted fourth depth threshold.

[0057] In at least one embodiment of the present application, the electronic device determines the minimum value from the adjusted first depth threshold and the adjusted third depth threshold as the fifth depth threshold. The fifth depth threshold is used to detect the low position failure of the brake switch. In this embodiment, the adjustment accuracy of the fifth depth threshold can be improved by adjusting the first depth threshold and the adjusted third depth threshold, which is conducive to the detection of the low position failure.

[0058] In at least one embodiment of the present application, the electronic device determines the maximum value from the adjusted second depth threshold and the adjusted fourth depth threshold as the sixth depth threshold. The sixth depth threshold is used to detect the high position failure of the brake switch. In this embodiment, the adjustment accuracy of the sixth depth threshold can be improved by adjusting the second depth threshold and the adjusted fourth depth threshold, which is conducive to the detection of the high position failure.

[0059] In at least one embodiment of the present application, the electronic device obtains a first stroke amount corresponding to when the brake switch is in a stepped-on state. If the first stroke amount is less than a fifth depth threshold, it is determined that a low position failure occurs in the brake switch.

[0060] In at least one embodiment of the present application, the electronic device obtains a second stroke amount corresponding to when the brake switch is in a non-pressed state. If the second stroke amount is greater than a sixth depth threshold, it is determined that a high position failure occurs in the brake switch.

[0061] In multiple embodiments of the present application, the first preset depth threshold is adjusted by the first braking depth, the second preset depth threshold is adjusted by the second braking depth, the third preset depth threshold is adjusted by the third braking depth, the fourth preset depth threshold is adjusted by the fourth braking depth, and the fifth depth threshold for detecting the low-position failure fault of the brake switch is determined according to the adjusted first depth threshold and the adjusted third depth threshold, and the sixth depth threshold for detecting the high-position failure fault of the brake switch is determined according to the adjusted second depth threshold and the adjusted fourth depth threshold. The fifth depth threshold and the sixth depth threshold can be dynamically updated by self-learning, thereby solving the problem of frequent false alarms of vehicle brake switches due to setting fixed large thresholds. The fifth depth threshold and the sixth depth threshold can be improved in a reasonable manner by self-learning the fifth depth threshold and the sixth depth threshold, thereby avoiding missing detection of vehicle brake switch faults.

[0062] like Figure 5FIG. 1 is a detailed flow chart of adjusting the first preset depth threshold provided by an embodiment of the present application, including the following process: S501 : Selecting an effective depth from a plurality of first braking depths of a braking switch according to a first preset depth threshold.

[0063] In at least one embodiment of the present application, the first preset depth threshold may be preset and adjusted. For example, the first preset depth threshold of the Nth round may be the adjusted first depth threshold corresponding to the N-1th round, where N is an integer greater than or equal to 2.

[0064] In at least one embodiment of the present application, when the brake switch of the vehicle is switched from the first preset state to the second preset state, the first braking depth of the brake switch is obtained. The multiple first braking depths may be the travel amounts of the brake switch in the same vehicle.

[0065] In at least one embodiment of the present application, the electronic device calculates a first deviation between each first braking depth and a first preset depth threshold. The first deviation may be an absolute value of a difference between each first braking depth and the first preset depth threshold, or the first deviation may be a ratio of an absolute value of the difference to the first preset depth threshold. The electronic device determines a first braking depth corresponding to a first deviation less than the first preset value as an effective depth. The first preset value may be set and adjusted according to actual needs. This embodiment uses the first preset depth threshold to screen out effective depths with smaller deviations from the first preset depth threshold from a plurality of first braking depths, thereby improving the quality of the effective depth.

[0066] S502: Adjust the first preset depth threshold according to the effective depth to obtain an adjusted first depth threshold.

[0067] In at least one embodiment of the present application, the electronic device can adjust the first preset depth threshold when the number of effective depths is greater than the preset number to obtain the adjusted first depth threshold. The preset number can be set and adjusted according to actual needs. In this embodiment, the first preset depth threshold is adjusted only when the number of effective depths is greater than the preset number, which can avoid excessive occupation of the computing power of the electronic device by the adjustment operation.

[0068] In at least one embodiment of the present application, the electronic device adjusts the first preset depth threshold according to the effective depth to obtain an adjusted first depth threshold. The manner in which the electronic device adjusts the first preset depth threshold may refer to the following Figure 6 Detailed description.

[0069] In multiple embodiments of the present application, by selecting an effective depth from multiple first braking depths through a first preset depth threshold, the quality of the effective depth can be improved, and then by adjusting the first preset depth threshold through the effective depth, the adjustment accuracy of the first depth threshold can be improved.

[0070] like Figure 6 FIG. 1 is a detailed flowchart of adjusting the first preset depth threshold provided by another embodiment of the present application, including the following process: S601: Determine a depth statistic value according to effective depths among a plurality of first braking depths.

[0071] In at least one embodiment of the present application, the effective depth may represent a first braking depth whose first deviation from a first preset depth threshold is less than a first preset value. The electronic device calculates an average value of multiple effective depths to obtain a depth statistic. The electronic device may also calculate a weighted sum of multiple effective depths to obtain a depth statistic, wherein the weight corresponding to each effective depth may be determined by the first deviation of the effective depth from the first preset depth threshold, and the weight of each effective depth is proportional to the corresponding deviation, for example, the greater the first deviation of the effective depth from the first preset depth threshold, the greater the weight of the corresponding effective depth.

[0072] S602: Calculate a second deviation between the depth statistic and the first preset depth threshold.

[0073] In at least one embodiment of the present application, the electronic device calculates the absolute value of the difference between the depth statistic and the first preset depth threshold as the second deviation. The electronic device can also use the ratio of the calculated absolute value of the difference to the first preset depth threshold as the second deviation.

[0074] S603: Detect whether the second deviation is greater than a second preset value.

[0075] In at least one embodiment of the present application, the second preset value can be set and adjusted according to actual needs. If the second deviation is less than or equal to the second preset value, step S604 is executed. If the second deviation is greater than the second preset value, step S605 is executed.

[0076] S604: Reacquire a plurality of first braking depths of the brake switch.

[0077] In at least one embodiment of the present application, the electronic device executes step S601 after reacquiring a plurality of first braking depths of the brake switch.

[0078] S605: Determine an adjusted first depth threshold according to the preset interval, the first preset depth threshold and the second deviation.

[0079] In at least one embodiment of the present application, the left endpoint of the preset interval may be a third preset value, the right endpoint of the preset interval may be a fourth preset value, the third preset value is less than the fourth preset value, and the preset interval may be any one of a closed interval, an open interval, a left closed and right open interval, or a left open and right closed interval. The third preset value and the fourth preset value may be set and adjusted according to actual needs.

[0080] In at least one embodiment of the present application, when the preset interval is a closed interval, compare whether the second deviation is less than or equal to the third preset value. If the second deviation is less than the third preset value, determine that the second deviation is outside the preset interval. If the second deviation is greater than or equal to the third preset value, compare whether the second deviation is greater than the fourth preset value. If the second deviation is less than or equal to the fourth preset value, determine that the second deviation is within the preset interval. If the second deviation is greater than the fourth preset value, determine that the second deviation is outside the preset interval. For example, the preset interval is [0.01, 0.05]. If the second deviation is 0.01 and the second deviation is equal to the third preset value, compare whether the second deviation 0.01 is greater than the fourth preset value 0.05. If the second deviation 0.01 is less than the fourth preset value 0.05, determine that the second deviation 0.01 is within the preset interval [0.01, 0.05].

[0081] In another embodiment, when the preset interval is an open interval, the electronic device compares whether the second deviation is less than a third preset value. If the second deviation is less than or equal to the third preset value, it is determined that the second deviation is outside the preset interval. If the second deviation is greater than the third preset value, it is compared whether the second deviation is greater than a fourth preset value. If the second deviation is less than the fourth preset value, it is determined that the second deviation is within the preset interval. If the second deviation is greater than or equal to the fourth preset value, it is determined that the second deviation is outside the preset interval. For example, the preset interval is (0.01, 0.05), if the second deviation is 0.01, the second deviation is equal to the third preset value, and it is determined that the second deviation 0.01 is outside the preset interval (0.01, 0.05).

[0082] In at least one embodiment of the present application, if the second deviation is outside the preset interval, the electronic device determines an adjusted first depth threshold according to the preset interval and the first preset depth threshold.

[0083] In one embodiment, if the values ​​in the preset interval are all positive numbers and the second deviation is greater than the fourth preset value, the sum of the fourth preset value and the first preset depth threshold is calculated to obtain the adjusted first depth threshold.

[0084] For example, the preset interval is [0.05cm, 0.1cm], the first preset depth threshold is 3cm, the second deviation is 0.15cm, it is determined that the second deviation 0.15cm is greater than the fourth preset value 0.1cm, the sum of the fourth preset value 0.1cm and the first preset depth threshold 3cm is calculated, and the adjusted first depth threshold is 3.1cm.

[0085] In another embodiment, if the values ​​in the preset interval are all negative numbers and the second deviation is greater than the absolute value of the third preset value, the sum of the third preset value and the first preset depth threshold is calculated to obtain the adjusted first depth threshold.

[0086] For example, the preset interval is [-0.1cm, -0.05cm], the first preset depth threshold is 3cm, the second deviation is -0.15cm, it is determined that the second deviation 0.15cm is greater than the absolute value of the third preset value 0.1cm, the sum of the third preset value -0.1cm and the first preset depth threshold 3cm is calculated, and the adjusted first depth threshold is 2.9cm.

[0087] In this embodiment, when the second deviation is outside the preset interval, the adjusted first depth threshold is determined according to the preset interval and the first preset depth threshold, and the amplitude of each adjustment of the first preset depth threshold can be controlled to avoid the inability to reasonably adjust the first preset depth threshold due to the calculation error of the second deviation, thereby improving the rationality and accuracy of the adjusted first depth threshold.

[0088] In at least one embodiment of the present application, if the second deviation is within a preset interval, an adjusted first depth threshold is determined according to the second deviation and the first preset depth threshold.

[0089] In one embodiment, if the second deviation is within the preset interval, the electronic device calculates the sum of the second deviation and the first preset depth threshold to obtain an adjusted first depth threshold.

[0090] For example, the preset interval is [0.05cm, 0.1cm], the first preset depth threshold is 3cm, the second deviation is 0.08cm, it is determined that the second deviation 0.08cm is within the preset interval [0.05cm, 0.1cm], the sum of the second deviation 0.08cm and the first preset depth threshold 3cm is calculated, and the adjusted first depth threshold is 3.08cm.

[0091] For another example, the preset interval is [-0.1cm, -0.05cm], the first preset depth threshold is 3cm, the second deviation is -0.08cm, it is determined that the second deviation 0.08cm is within the preset interval [-0.1cm, -0.05cm], the sum of the second deviation 0.08cm and the first preset depth threshold 3cm is calculated, and the adjusted first depth threshold is 2.92cm.

[0092] In this embodiment, when the second deviation is within the preset range, the adjusted first depth threshold is determined by the second deviation and the first preset depth threshold, which can avoid the need to adjust the first preset depth threshold multiple times and improve the adjustment efficiency of the first preset depth threshold.

[0093] In multiple embodiments of the present application, when the second deviation between the depth statistic and the first preset depth threshold is greater than the second preset value, the first preset depth threshold is adjusted to avoid excessive occupation of the computing power of the electronic device by the adjustment operation. When the second deviation between the depth statistic and the first preset depth threshold is less than or equal to the second preset value, multiple first braking depths are re-acquired to adjust the first preset depth threshold, and the first preset depth threshold can be learned in real time, which is beneficial to the fault detection of the brake switch.

[0094] like Figure 7 , which is a functional module diagram of a brake depth threshold adjustment device provided by an embodiment of the present application. The brake depth threshold adjustment device 11 operates on an electronic device, which can be installed in a vehicle and can also communicate with the vehicle. The brake depth threshold adjustment device 11 includes an acquisition unit 110, an adjustment unit 111, a determination unit 112, and a selection unit 113. The module / unit referred to in the present application refers to a type of device that can be controlled by a processor (e.g. Figure 8 A series of computer program segments that can be obtained by the processor 1101 shown in the figure and can complete fixed functions and are stored in a memory (e.g. Figure 8 In the memory 1102 shown.

[0095] The acquisition unit 110 is used to acquire the first braking depth and the second braking depth of the brake switch when the brake switch is switched from the first preset state to the second preset state, and to acquire the third braking depth and the fourth braking depth of the brake switch when the brake switch is restored from the second preset state to the first preset state; the adjustment unit 111 is used to adjust the first preset depth threshold according to multiple first braking depths to obtain the adjusted first depth threshold, and to adjust the second preset depth threshold according to multiple second braking depths to obtain the adjusted second depth threshold; the adjustment unit 111 is also used to adjust the third preset depth threshold according to multiple third braking depths to obtain the adjusted third depth threshold, and to adjust the fourth preset depth threshold according to multiple fourth braking depths to obtain the adjusted fourth depth threshold; the determination unit 112 is used to determine the fifth depth threshold according to the adjusted first depth threshold and the adjusted third depth threshold, and to determine the sixth depth threshold according to the adjusted second depth threshold and the adjusted fourth depth threshold, the fifth depth threshold being used to detect a low-position failure fault of the brake switch, and the sixth depth threshold being used to detect a high-position failure fault of the brake switch.

[0096] In one embodiment, the selection unit 113 is used to select an effective depth from multiple first braking depths according to a first preset depth threshold; the adjustment unit 111 is also used to adjust the first preset depth threshold according to the effective depth to obtain an adjusted first depth threshold.

[0097] In one embodiment, the selection unit 113 is specifically configured to: calculate a first deviation between each first braking depth and a first preset depth threshold; and determine a first braking depth corresponding to a first deviation less than the first preset value as the effective depth.

[0098] In one embodiment, the adjustment unit 111 is further configured to adjust the first preset depth threshold to obtain an adjusted first depth threshold when the number of effective depths is greater than a preset number.

[0099] In one embodiment, the adjustment unit 111 is specifically used to: determine a depth statistic value based on the effective depth; if a second deviation between the depth statistic value and the first preset depth threshold is greater than a second preset value, determine an adjusted first depth threshold based on a preset interval, the first preset depth threshold and the second deviation.

[0100] In one embodiment, the adjustment unit 111 is specifically configured to: calculate an average value of multiple effective depths to obtain a depth statistic; or calculate a weighted sum of multiple effective depths to obtain a depth statistic.

[0101] In one embodiment, the adjustment unit 111 is specifically configured to: if the second deviation is within a preset interval, determine an adjusted first depth threshold according to the second deviation and the first preset depth threshold.

[0102] In one embodiment, the determining unit 112 is specifically configured to determine a minimum value from the adjusted first depth threshold and the adjusted third depth threshold as the fifth depth threshold.

[0103] In one embodiment, the determining unit 112 is further configured to: determine a maximum value from the adjusted second depth threshold and the adjusted fourth depth threshold as the sixth depth threshold.

[0104] In multiple embodiments of the present application, the first preset depth threshold is adjusted by the first braking depth, the second preset depth threshold is adjusted by the second braking depth, the third preset depth threshold is adjusted by the third braking depth, the fourth preset depth threshold is adjusted by the fourth braking depth, and the fifth depth threshold for detecting the low-position failure fault of the brake switch is determined according to the adjusted first depth threshold and the adjusted third depth threshold, and the sixth depth threshold for detecting the high-position failure fault of the brake switch is determined according to the adjusted second depth threshold and the adjusted fourth depth threshold. The fifth depth threshold and the sixth depth threshold can be dynamically updated by self-learning, thereby solving the problem of frequent false alarms of vehicle brake switches due to setting fixed large thresholds. The fifth depth threshold and the sixth depth threshold can be improved in a reasonable manner by self-learning the fifth depth threshold and the sixth depth threshold, thereby avoiding missing detection of vehicle brake switch faults.

[0105] like Figure 8 , which is a schematic diagram of the structure of an electronic device of a preferred embodiment of the present application for implementing the braking depth threshold adjustment method.

[0106] In one embodiment of the present application, the electronic device 100 includes, but is not limited to, a memory 1102 , a processor 1101 , and a computer program stored in the memory 1102 and executable on the processor 1101 , such as a braking depth threshold adjustment program.

[0107] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 100 and does not constitute a limitation on the electronic device 100 . The electronic device 100 may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the electronic device 100 may also include input and output devices, network access devices, buses, etc.

[0108] The processor 1101 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. The processor 1101 is the computing core and control center of the electronic device 100, and uses various interfaces and lines to connect various parts of the entire electronic device 100, and obtain the operating system of the electronic device 100 and various installed applications, program codes, etc.

[0109] The processor 1101 obtains the operating system of the electronic device 100 and various installed applications. The processor 1101 obtains the application to implement the steps in the above-mentioned various braking depth threshold adjustment method embodiments, for example Figure 2 , Figure 5 , Figure 6 Steps shown.

[0110] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 1102, and are obtained by the processor 1101 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the acquisition process of the computer program in the electronic device 100.

[0111] The memory 1102 can be used to store computer programs and / or modules. The processor 1101 implements various functions of the electronic device 100 by running or acquiring computer programs and / or modules stored in the memory 1102, and calling data stored in the memory 1102. The memory 1102 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0112] The memory 1102 may be an external memory and / or an internal memory of the electronic device 100. Furthermore, the memory 1102 may be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.

[0113] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent workpiece, 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 when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0114] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. Computer readable media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM).

[0115] The memory 1102 can be used to store computer programs and / or modules. The processor 1101 implements various functions of the electronic device 100 by running or executing the computer programs and / or modules stored in the memory 1102 and calling the data stored in the memory 1102. The memory 1102 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device, etc. The memory 1102 can include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other storage devices.

[0116] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 1102, and executed by the processor 1101 to complete the present application. One or more modules / units may be a series of computer program segments capable of completing specific functions, and the computer program segments are used to describe the execution process of the computer program in the electronic device 100. For example, the computer program may be divided into an acquisition unit 110, an adjustment unit 111, a determination unit 112, and a selection unit 113.

[0117] For details on the functions of each module / unit, please refer to the above Figure 2 , Figure 5 , Figure 6 The detailed description is not repeated here.

[0118] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.

[0119] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0120] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0121] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0122] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A braking depth threshold adjustment method, characterized in that: The method comprises: When the brake switch is switched from a first preset state to a second preset state, a first braking depth and a second braking depth of the brake switch are obtained; when the brake switch is restored from the second preset state to the first preset state, a third braking depth and a fourth braking depth of the brake switch are obtained; Adjusting the first preset depth threshold according to the plurality of first braking depths to obtain an adjusted first depth threshold, and adjusting the second preset depth threshold according to the plurality of second braking depths to obtain an adjusted second depth threshold; adjusting the third preset depth threshold according to the plurality of third braking depths to obtain an adjusted third depth threshold, and adjusting the fourth preset depth threshold according to the plurality of fourth braking depths to obtain an adjusted fourth depth threshold; A fifth depth threshold is determined based on the adjusted first depth threshold and the adjusted third depth threshold, and a sixth depth threshold is determined based on the adjusted second depth threshold and the adjusted fourth depth threshold, the fifth depth threshold being used to detect a low-position failure fault of the brake switch, and the sixth depth threshold being used to detect a high-position failure fault of the brake switch.

2. The braking depth threshold adjustment method according to claim 1, characterized in that: The method further comprises: selecting an effective depth from the plurality of first braking depths according to the first preset depth threshold; The first preset depth threshold is adjusted according to the effective depth to obtain the adjusted first depth threshold.

3. The braking depth threshold adjustment method according to claim 2, characterized in that: The step of selecting an effective depth from the plurality of first braking depths according to the first preset depth threshold comprises: calculating a first deviation of each first braking depth from the first preset depth threshold; A first braking depth corresponding to a first deviation smaller than a first preset value is determined as the effective depth.

4. The braking depth threshold adjustment method according to claim 2, characterized in that: The method further comprises: In a case where the number of effective depths is greater than a preset number, the first preset depth threshold is adjusted to obtain the adjusted first depth threshold.

5. The braking depth threshold adjustment method according to claim 2, characterized in that: The step of adjusting the first preset depth threshold according to the effective depth to obtain the adjusted first depth threshold includes: Determining a depth statistic according to the effective depth; If a second deviation between the depth statistic and the first preset depth threshold is greater than a second preset value, the adjusted first depth threshold is determined according to a preset interval, the first preset depth threshold and the second deviation.

6. The braking depth threshold adjustment method according to claim 5, characterized in that: The step of determining a depth statistic according to the effective depth includes: Calculate an average value of multiple effective depths to obtain the depth statistic; or A weighted sum of multiple effective depths is calculated to obtain the depth statistic.

7. The braking depth threshold adjustment method according to claim 5, characterized in that: The step of determining the adjusted first depth threshold according to the preset interval, the first preset depth threshold and the second deviation comprises: if the second deviation is outside the preset interval, determining the adjusted first depth threshold according to the preset interval and the first preset depth threshold; If the second deviation is within the preset interval, the adjusted first depth threshold is determined according to the second deviation and the first preset depth threshold.

8. The braking depth threshold adjustment method according to claim 1, characterized in that: The determining of the fifth depth threshold according to the adjusted first depth threshold and the adjusted third depth threshold comprises: determining a minimum value from the adjusted first depth threshold and the adjusted third depth threshold as the fifth depth threshold; Determining the sixth depth threshold according to the adjusted second depth threshold and the adjusted fourth depth threshold includes: determining a maximum value from the adjusted second depth threshold and the adjusted fourth depth threshold as the sixth depth threshold.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the braking depth threshold adjustment method according to any one of claims 1 to 8 is implemented.

10. A vehicle, characterized in that: The electronic device according to claim 9 is arranged in the vehicle.

Citation Information

Patent Citations

  • Brake depth detection device with brake switch and vehicle

    CN111220066A

  • Driving support device for vehicle

    JP2012206592A