Braking depth threshold adjustment method, electronic device and vehicle

By adjusting the braking depth threshold through self-learning, the problem of false alarm of vehicle brake switch failure is solved, and the reliability and accuracy of brake switch fault detection are achieved.

CN119428613BActive Publication Date: 2025-09-09GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the fault detection threshold of the vehicle brake switch is set too high, resulting in frequent false fault alarms, affecting the normal operation of the vehicle.

Method used

Through self-learning, the braking depth thresholds are dynamically adjusted, including the first preset depth threshold, the second preset depth threshold, the third preset depth threshold and the fourth preset depth threshold, to determine the fifth depth threshold and the sixth depth threshold for detecting low-position failure faults and high-position failure faults of the brake switch.

Benefits of technology

The rationality of the braking depth threshold is improved, false fault alarms are avoided, and the reliability and accuracy of brake switch fault detection are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119428613B_ABST
    Figure CN119428613B_ABST
Patent Text Reader

Abstract

The present application relates to the field of vehicle technology and provides a brake depth threshold adjustment method, electronic device, and vehicle. The method includes: obtaining a first brake depth, a second brake depth, a third brake depth, and a fourth brake depth of a brake switch. Adjusting a first preset depth threshold according to a plurality of first brake depths, and adjusting a second preset depth threshold according to a plurality of second brake depths. Adjusting a third preset depth threshold according to a plurality of third brake depths, and adjusting a fourth preset depth threshold according to a plurality of fourth brake depths. Determining a fifth depth threshold based on the adjusted first depth threshold and the adjusted third depth threshold, and determining a sixth depth threshold based on the adjusted second depth threshold and the adjusted fourth depth threshold. The above method can improve the adjustment accuracy and rationality of the fifth depth threshold and the sixth depth threshold, thereby solving the problem of frequent false alarms and missed fault detections of vehicle brake switches.
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 brake pedal) is a critical component for stopping or decelerating the vehicle. Therefore, the reliability of brake switch fault detection directly impacts vehicle safety. Related technologies typically set a high threshold for brake switch fault detection to avoid missing faults. However, this approach can lead to frequent false fault alarms, impacting normal vehicle operation. Summary of the Invention

[0003] The present application provides a braking depth threshold adjustment method, electronic equipment and vehicle to solve the technical problem of frequent false alarms of vehicle brake switches.

[0004] A first aspect of an embodiment of the present application provides a method for adjusting a braking depth threshold, the method comprising:

[0005] During the process of switching the brake switch 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 during the process of restoring the brake switch 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; 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 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.

[0006] 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.

[0007] 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 that is less than the first preset value as the effective depth.

[0008] 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.

[0009] 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.

[0010] 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.

[0011] 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.

[0012] 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 the 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 the maximum value from the adjusted second depth threshold and the adjusted fourth depth threshold as the sixth depth threshold.

[0013] According to a second aspect of an embodiment of the present application, a braking depth threshold adjustment device is provided, the device comprising: an acquisition unit for acquiring a first braking depth and a second braking depth of the brake switch during a process in which the brake switch switches from a first preset state to a second preset state, and acquiring a third braking depth and a fourth braking depth of the brake switch during a process in which the brake switch returns from the second preset state to the first preset state; an adjustment unit for adjusting the first preset depth threshold according to a plurality of first braking depths to obtain an adjusted first depth threshold, and adjusting the second preset depth threshold according to a plurality of second braking depths to obtain an adjusted second depth threshold; the adjustment unit is further configured to adjust the third preset depth threshold according to a plurality of third braking depths to obtain an adjusted third depth threshold, and adjust the 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 brake switch, and the sixth depth threshold being used to detect a high-position failure fault of the brake switch.

[0014] 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.

[0015] 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.

[0016] A fifth 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 the computer program is executed by a processor in an electronic device to implement the braking depth threshold adjustment method.

[0017] In multiple embodiments of the present application, a first preset depth threshold is adjusted by a first braking depth, a second preset depth threshold is adjusted by a second braking depth, a third preset depth threshold is adjusted by a third braking depth, and a fourth preset depth threshold is adjusted by a fourth braking depth. A fifth depth threshold for detecting a low-level failure of the brake switch is determined based on the adjusted first depth threshold and the adjusted third depth threshold, and a sixth depth threshold for detecting a high-level failure of the brake switch is determined based on the adjusted second depth threshold and the adjusted fourth depth threshold. The fifth and sixth depth thresholds can be dynamically updated through self-learning, thereby resolving the issue of frequent false alarms of vehicle brake switch failures caused by setting fixed, excessively high thresholds. By self-learning the fifth and sixth depth thresholds, the rationality of the fifth and sixth depth thresholds can be improved, thereby avoiding missed detection of vehicle brake switch failures. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 2 This is a flowchart of the braking depth threshold adjustment method provided in an embodiment of the present application.

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

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

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

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

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

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

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

[0027] It should be noted that, in this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A alone, A and B together, and B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," and so on (if any) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or precedence.

[0028] 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 manner. The following embodiments and features in the embodiments may be combined with each other unless there is a conflict.

[0029] The vehicle brake switch (e.g., the brake pedal) is a critical component for stopping or decelerating the vehicle. Therefore, reliable fault detection in the brake switch directly impacts vehicle safety. However, due to limitations in brake switch manufacturing and assembly precision, as well as sensor accuracy, the thresholds for detecting brake switch faults vary across vehicles.

[0030] In order to avoid missing out on brake switch faults, a high threshold is usually set to detect brake switch faults on all vehicles. However, this approach can lead to frequent false fault reports on some vehicles, thus affecting the normal operation of the vehicle.

[0031] 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, thereby determining 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 determining 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.

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

[0033] 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 an onboard terminal in the vehicle 200.

[0034] 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.

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

[0036] 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).

[0037] like Figure 2 FIG. 1 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 can also communicate with the vehicle. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0038] S201, when the vehicle's brake switch is switched from a first preset state to a second preset state, obtaining a first braking depth and a second braking depth of the brake switch; when the brake switch is restored from the second preset state to the first preset state, obtaining a third braking depth and a fourth braking depth of the brake switch.

[0039] In at least one embodiment of the present application, a vehicle's brake switch includes a normally open switch and a normally closed switch. When the brake switch is not pressed, the normally open switch and the normally closed switch are in mutually exclusive states. 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 presses 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 levels, causing the normally open switch and the normally closed switch to be in a non-mutually exclusive state for a certain period of time. For example, the normally closed switch will jump from a high level to a low level only after the normally open switch jumps from a low level to a high level. For another example, the normally open switch will jump from a low level to a high level only after the normally closed switch jumps from a high level to a low level.

[0040] 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 in the figure, when the brake switch is not pressed, normally open switch B1 is in a low state, and normally closed switch B2 is in a high state. When the user presses the brake switch, normally open switch B1 first jumps from a low level to a high level, and normally closed switch B2 then jumps from a high level to a low level. When the user releases the brake switch, normally closed switch B2 first jumps from a low level to a high level, and normally open switch B1 then jumps from a high level to a low level. During the process of the brake switch switching from the unpressed state to the pressed state and back to the unpressed state, normally open switch B1 and normally closed switch B2 are in non-mutually exclusive states for a certain period of time. For example, normally open switch B1 and normally closed switch B2 are both in a high state (B1 = 1, B2 = 1) for a certain period of time.

[0041] 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 in the figure, when the brake switch is not pressed, normally open switch B1 is in a low state, and normally closed switch B2 is in a high state. When the user presses the brake switch, normally closed switch B2 first changes from a high level to a low level, and normally open switch B1 then changes from a low level to a high level. When the user releases the brake switch, normally open switch B1 first changes from a high level to a low level, and normally closed switch B2 then changes from a low level to a high level. During the process of the brake switch switching from the unpressed state to the pressed state and back to the unpressed state, normally open switch B1 and normally closed switch B2 are in non-mutually exclusive states for a certain period of time. For example, normally open switch B1 and normally closed switch B2 are both in a low state (B1 = 0, B2 = 0) for a certain period of time.

[0042] In at least one embodiment of the present application, the first preset state may indicate that the brake switch is not depressed, and the second preset state may indicate that the brake switch is depressed. After the user depresses 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.

[0043] 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 (e.g. 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 switch from the mutually exclusive state to the non-mutually exclusive state, the electronic device obtains the first braking depth of the brake switch. The first braking depth can represent the travel of the brake switch, for example Figure 3 and Figure 4 As shown, the first braking depth can be represented by 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 the 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 as P2.

[0044] 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 switch from one mutually exclusive state to the other, the electronic device obtains the travel of the brake switch as the first braking depth and the second braking depth. In this embodiment, the first braking depth can be equal to the second braking depth.

[0045] 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 (e.g. 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 switch from the mutually exclusive state to the non-mutually exclusive state, the electronic device obtains the third braking depth of the brake switch. The third braking depth can represent the travel of the brake switch, for example Figure 3 and Figure 4 As shown, the third braking depth can be represented by 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 as P4.

[0046] 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 (e.g. Figure 3 As shown, B1 = 0, B2 = 1). When the normally open switch and the normally closed switch switch from one mutually exclusive state to the other, the electronic device obtains the travel of the brake switch as the third and fourth braking depths. In this embodiment, the third braking depth can be equal to the fourth braking depth.

[0047] 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.

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

[0049] In at least one embodiment of the present application, the electronic device can adjust a first preset depth threshold using multiple first braking depths acquired from the same vehicle. The electronic device can also adjust a second preset depth threshold using multiple second braking depths acquired from the same vehicle. By adjusting the corresponding preset depth thresholds based on multiple braking depths acquired from the same vehicle, the present embodiment can avoid inability to properly adjust the corresponding preset depth thresholds due to differences in the manufacturing and assembly of brake switches in different vehicles. By adjusting the first and second preset depth thresholds through self-learning, the rationality of the adjustments can be improved.

[0050] In at least one embodiment of the present application, the electronic device selects an effective depth from a plurality of first braking depths, where the effective depth may represent a first braking depth that has a smaller deviation from a first preset depth threshold. The electronic device selects the effective depth in a manner that may be referred to below. 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 method for the electronic device to adjust the first preset depth threshold can be referred to below. Figure 6 Detailed instructions shown.

[0051] This embodiment improves the quality of the effective depth by selecting an effective depth from a plurality of first braking depths. Furthermore, adjusting the first preset depth threshold based on the effective depth improves the accuracy of adjusting the first depth threshold. Furthermore, this embodiment adjusts the first preset depth threshold only when the number of effective depths exceeds a preset number, thereby avoiding excessive consumption of computing power by the electronic device due to the adjustment operation.

[0052] In at least one embodiment of the present application, the electronic device adjusts the second preset depth threshold according to multiple second braking depths in a manner similar to the electronic device adjusting the first preset depth threshold according to multiple first braking depths, which is not further described in the present application.

[0053] 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.

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

[0055] 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.

[0056] 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.

[0057] 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.

[0058] 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 a fifth depth threshold. The fifth depth threshold is used to detect a low-position failure of the brake switch. This embodiment, by adjusting the first and third depth thresholds, improves the adjustment accuracy of the fifth depth threshold, thereby facilitating the detection of low-position failures.

[0059] 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 a sixth depth threshold. The sixth depth threshold is used to detect a high-position failure of the brake switch. This embodiment, through the adjusted second and fourth depth thresholds, improves the adjustment accuracy of the sixth depth threshold, thereby facilitating the detection of high-position failures.

[0060] In at least one embodiment of the present application, the electronic device obtains a first stroke value corresponding to when the brake switch is in a depressed state, and determines that a low position failure fault occurs in the brake switch if the first stroke value is less than a fifth depth threshold.

[0061] In at least one embodiment of the present application, the electronic device obtains a second stroke value corresponding to when the brake switch is not depressed, and determines that a high position failure fault occurs in the brake switch if the second stroke value is greater than a sixth depth threshold.

[0062] In multiple embodiments of the present application, a first preset depth threshold is adjusted by a first braking depth, a second preset depth threshold is adjusted by a second braking depth, a third preset depth threshold is adjusted by a third braking depth, and a fourth preset depth threshold is adjusted by a fourth braking depth. A fifth depth threshold for detecting a low-level failure of the brake switch is determined based on the adjusted first and third depth thresholds, and a sixth depth threshold for detecting a high-level failure of the brake switch is determined based on the adjusted second and fourth depth thresholds. The fifth and sixth depth thresholds can be dynamically updated through self-learning, thereby resolving the issue of frequent false alarms of vehicle brake switch failures caused by setting fixed, excessively high thresholds. By self-learning the fifth and sixth depth thresholds, the rationality of the fifth and sixth depth thresholds can be improved, thereby avoiding missed detection of vehicle brake switch failures.

[0063] like Figure 5FIG. 1 is a detailed flowchart of adjusting the first preset depth threshold provided by an embodiment of the present application, including the following process:

[0064] S501 : Selecting an effective depth from a plurality of first braking depths of a braking switch according to a first preset depth threshold.

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

[0066] In at least one embodiment of the present application, when the brake switch of the vehicle switches from a first preset state to a second preset state, a first braking depth of the brake switch is obtained. Multiple first braking depths can be travels of the brake switch in the same vehicle.

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

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

[0069] 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 a preset number to obtain an 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 consumption of the computing power of the electronic device by the adjustment operation.

[0070] 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 the adjusted first depth threshold. The manner in which the electronic device adjusts the first preset depth threshold can be referred to below. Figure 6 Detailed description.

[0071] 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.

[0072] 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:

[0073] S601 : Determine a depth statistic value according to effective depths among a plurality of first braking depths.

[0074] In at least one embodiment of the present application, the effective depth may represent a first braking depth having a first deviation from a first preset depth threshold that is less than a first preset value. The electronic device calculates an average of multiple effective depths to obtain a depth statistic. The electronic device may also calculate a weighted sum of multiple effective depths to obtain the 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.

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

[0076] 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 may also use the ratio of the calculated absolute value of the difference to the first preset depth threshold as the second deviation.

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

[0078] 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.

[0079] S604: Reacquire multiple first braking depths of the brake switch.

[0080] 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.

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

[0082] 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 and fourth preset values ​​may be set and adjusted according to actual needs.

[0083] In at least one embodiment of the present application, when the preset interval is a closed interval, the second deviation is compared to see whether it is less than or equal to the third preset value. If the second deviation is less than the third preset value, it is determined that the second deviation is outside the preset interval. If the second deviation is greater than or equal to the third preset value, the second deviation is compared to see whether it is greater than the fourth preset value. If the second deviation is less than or equal to the fourth preset value, it is determined that the second deviation is within the preset interval. If the second deviation is greater than 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 the second deviation 0.01 is compared to see whether it is greater than the fourth preset value 0.05. If the second deviation 0.01 is less than the fourth preset value 0.05, it is determined that the second deviation 0.01 is within the preset interval [0.01, 0.05].

[0084] 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, the second deviation is determined to be outside the preset interval. If the second deviation is greater than the third preset value, the electronic device compares whether the second deviation is greater than a fourth preset value. If the second deviation is less than the fourth preset value, the second deviation is determined to be within the preset interval. If the second deviation is greater than or equal to the fourth preset value, the second deviation is determined to be outside the preset interval. For example, if 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, the second deviation of 0.01 is determined to be outside the preset interval (0.01, 0.05).

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

[0086] In one embodiment, if the values ​​in the preset interval are all positive numbers and the second deviation is greater than a 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.

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

[0088] In another embodiment, if the values ​​in the preset interval are all negative 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.

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

[0090] In this embodiment, when the second deviation is outside the preset interval, the adjusted first depth threshold is determined based on the preset interval and the first preset depth threshold. This can control the amplitude of each adjustment of the first preset depth threshold, avoid the inability to reasonably adjust the first preset depth threshold due to calculation errors of the second deviation, and improve the rationality and accuracy of the adjusted first depth threshold.

[0091] 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 based on the second deviation and the first preset depth threshold.

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

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

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

[0095] In this embodiment, when the second deviation is within the preset range, the adjusted first depth threshold is determined based on the second deviation and the first preset depth threshold, thereby avoiding the need to adjust the first preset depth threshold multiple times and improving the adjustment efficiency of the first preset depth threshold.

[0096] In various embodiments of the present application, when the second deviation between the depth statistics and the first preset depth threshold is greater than the second preset value, the first preset depth threshold is adjusted, thereby avoiding excessive consumption of computing power by the electronic device due to the adjustment operation. When the second deviation between the depth statistics and the first preset depth threshold is less than or equal to the second preset value, multiple first braking depths are reacquired to adjust the first preset depth threshold, enabling real-time learning of the first preset depth threshold, thereby facilitating brake switch fault detection.

[0097] like Figure 7 The figure shows 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 that 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 this application refers to a device that can be controlled by a processor (e.g., Figure 8 A series of computer program segments are obtained by the processor 1101 shown in FIG. 1 and are capable of completing fixed functions, which are stored in a memory (eg Figure 8 1102).

[0098] The acquisition unit 110 is used to acquire the first braking depth and the second braking depth of the brake switch during the process of switching the brake switch 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 during the process of restoring the brake switch 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 an adjusted first depth threshold, and adjust the second preset depth threshold according to multiple second braking depths to obtain an 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 an adjusted third depth threshold, and adjust the fourth preset depth threshold according to multiple fourth braking depths to obtain an adjusted fourth depth threshold; the determination unit 112 is used to determine a fifth depth threshold according to the adjusted first depth threshold and the adjusted third depth threshold, and to determine a sixth depth threshold 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.

[0099] 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 further used to adjust the first preset depth threshold according to the effective depth to obtain an adjusted first depth threshold.

[0100] 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 smaller than the first preset value as the effective depth.

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

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

[0103] 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.

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

[0105] 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.

[0106] 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.

[0107] In multiple embodiments of the present application, a first preset depth threshold is adjusted by a first braking depth, a second preset depth threshold is adjusted by a second braking depth, a third preset depth threshold is adjusted by a third braking depth, and a fourth preset depth threshold is adjusted by a fourth braking depth. A fifth depth threshold for detecting a low-level failure of the brake switch is determined based on the adjusted first and third depth thresholds, and a sixth depth threshold for detecting a high-level failure of the brake switch is determined based on the adjusted second and fourth depth thresholds. The fifth and sixth depth thresholds can be dynamically updated through self-learning, thereby resolving the issue of frequent false alarms of vehicle brake switch failures caused by setting fixed, excessively high thresholds. By self-learning the fifth and sixth depth thresholds, the rationality of the fifth and sixth depth thresholds can be improved, thereby avoiding missed detection of vehicle brake switch failures.

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

[0109] 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.

[0110] Those skilled in the art will understand 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 figure, 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.

[0111] 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. The processor 1101 is the computing core and control center of the electronic device 100. It utilizes 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.

[0112] 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 embodiments of the braking depth threshold adjustment method, for example Figure 2 、 Figure 5 、 Figure 6 Steps shown.

[0113] For example, the computer program may be divided into one or more modules / units, one or more of which are stored in the memory 1102 and retrieved by the processor 1101 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the acquisition process of the computer program in the electronic device 100.

[0114] Memory 1102 can be used to store computer programs and / or modules. Processor 1101 implements various functions of electronic device 100 by running or accessing computer programs and / or modules stored in memory 1102 and accessing data stored in memory 1102. Memory 1102 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as sound playback or image playback); the data storage area may store data generated based on the use of the electronic device. Furthermore, memory 1102 may include non-volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device.

[0115] 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 physical memory, such as a memory stick, a TF card (Trans-flash Card), and the like.

[0116] If the modules / units integrated in the electronic device 100 are implemented in the form of software functional units and sold or used as independent workpieces, they 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 methods by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the above-mentioned method embodiments.

[0117] The term "computer program" includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. Computer-readable media may include any entity or device capable of carrying computer program code, recording media, USB flash drives, removable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), and random access memory (RAM).

[0118] Memory 1102 can be used to store computer programs and / or modules. Processor 1101 implements various functions of electronic device 100 by running or executing computer programs and / or modules stored in memory 1102 and accessing data stored in memory 1102. Memory 1102 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as sound playback or image playback); the data storage area may store data generated based on the use of the electronic device. Memory 1102 may include non-volatile and volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other storage devices.

[0119] Exemplarily, the computer program may be divided into one or more modules / units, one or more of which 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.

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

[0121] 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 merely illustrative. For example, the division of modules is merely a logical function division, and other division methods may be used in actual implementation.

[0122] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of these modules may be selected to achieve the purpose of this embodiment based on actual needs.

[0123] In addition, the functional modules in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0124] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the present application is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.

[0125] Furthermore, 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 may also be implemented by a single unit or device through software or hardware. The words "first", "second", etc. are used to indicate names and do not indicate any particular order.

[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions 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; 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; 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 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.

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 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 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 determining of the depth statistics according to the effective depth includes: Calculate an average value of multiple effective depths to obtain the depth statistics; 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 determining the adjusted first depth threshold according to 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 according to the preset interval and the first preset depth threshold; If the second deviation is within the preset range, 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 installed in the vehicle.

Citation Information

Patent Citations

  • Brake depth detection device with brake switch and vehicle

    CN111220066A

  • Driving support device for vehicle

    JP2012206592A