P-gear button recognition method, device, equipment and storage medium

By detecting the voltage signals of multiple acquisition circuits of the P gear button and combining them with vehicle status information, the problem of P gear button status recognition failure was solved, the recognition accuracy was improved, and driving safety was ensured.

CN116928340BActive Publication Date: 2025-11-28DEEPAL AUTOMOBILE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310773679.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-27
Publication Date
2025-11-28
Estimated Expiration
2043-06-27

AI Technical Summary

Technical Problem

In the existing technology, when the status recognition of the P gear button malfunctions, it cannot be accurately identified, leading to incorrect vehicle braking and posing a safety hazard.

Method used

By detecting the voltage signals of multiple acquisition circuits for the P gear button, and combining this with vehicle status information and environmental information, the status of the P gear button can be determined, including identifying the fault type and disabling the button and displaying maintenance prompts when necessary.

Benefits of technology

It improves the accuracy of P gear button status recognition, avoiding the safety risks of emergency braking or failure to brake in time due to recognition errors, and ensuring driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116928340B_ABST
    Figure CN116928340B_ABST
Patent Text Reader

Abstract

The application relates to a P-gear button recognition method and device, equipment and a storage medium, and relates to the technical field of vehicle control. The method comprises the following steps: detecting a voltage signal of each acquisition circuit in a plurality of acquisition circuits included in a P-gear button of a target vehicle, and determining whether the P-gear button has a first fault based on the voltage signal of each acquisition circuit; obtaining state information and environmental information of the target vehicle; and determining whether the P-gear button is pressed in the case that the P-gear button has the first fault or does not have the first fault based on the state information, the environmental information and the voltage signal of each acquisition circuit in the plurality of acquisition circuits. Therefore, the state of the P-gear button can be determined based on the state information, the environmental information and the voltage signal of each acquisition circuit in the case that the P-gear button has the first fault or does not have the first fault, and the technical problem that the state of the P-gear button cannot be accurately recognized when any switch in the P-gear button has a fault is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle control, in particular to a P-gear button recognition method, device, equipment and storage medium. BACKGROUND

[0002] With the development of the automobile industry, the degree of electrification of automobiles is getting higher and higher, and the traditional mechanical hand brake is replaced by an electronic hand brake. At present, the electronic hand brake can be integrated on the P-gear (i.e. parking gear) button, which can simulate the hand brake pull-up by pressing the P-gear button, and simulate the hand brake release by switching the R-gear (i.e. reverse gear), N-gear (i.e. neutral gear) and D-gear (i.e. forward gear). With the increasing integration, the requirement for functional safety is also increasing. At present, the voltage state of the double circuits of the P-gear button is collected to determine that both switches are closed, and then the state of the P-gear button is determined as pressed to control the emergency braking of the vehicle.

[0003] However, in the above method, when any one of the switches in the P-gear button fails, the state of the P-gear button cannot be accurately recognized according to the braking demand of the driver, especially when the vehicle is driving at high speed. If the state of the P-gear button is incorrectly recognized, it will cause danger. For example, when the vehicle is driving at high speed, if the driver does not press the P-gear button, but the electrical system fails to recognize that the P-gear button is pressed, it will cause the vehicle to brake urgently and cause danger. Or, when the vehicle is driving at high speed, if the driver has the demand to press the P-gear button for a long time to perform dynamic parking, but the electrical system cannot correctly recognize the demand for dynamic parking, which will also cause danger. Moreover, when using a double-circuit P-gear button, if the driver presses the edge of the P-gear button, the two switches cannot be pressed at the same time, which will cause the system to incorrectly recognize the state of the P-gear button, thereby reducing the accuracy of recognizing the P-gear button. SUMMARY

[0004] The purpose of the present application is to provide a P-gear button recognition method, device, equipment and storage medium to solve the technical problem that when any one of the switches in the P-gear button fails, the state of the P-gear button cannot be accurately recognized according to the braking demand of the driver. The technical solution of the present application is as follows:

[0005] According to a first aspect of the present application, a P-gear button recognition method is provided, comprising: detecting a voltage signal of each of a plurality of acquisition loops included in a P-gear button of a target vehicle, and determining whether the P-gear button has a first fault based on the voltage signal of each of the acquisition loops, the voltage signal of the acquisition loop being any one of a low-level signal and a high-level signal, and the first fault indicating that the voltage signals of each of the plurality of acquisition loops included in the P-gear button are inconsistent; obtaining state information and environment information of the target vehicle, the state information including at least one of a brake signal, a driving speed, and an acceleration, the brake signal indicating whether the target vehicle is braking, and the environment information indicating whether there is an obstacle in a target area corresponding to a current position of the target vehicle; determining whether the P-gear button is pressed in a case where the P-gear button has the first fault based on the state information, the environment information, and the voltage signal of each of the plurality of acquisition loops, or determining whether the P-gear button is pressed in a case where the P-gear button does not have the first fault based on the state information, the environment information, and the voltage signal of each of the plurality of acquisition loops.

[0006] According to the above technical means, the present application can determine whether the P-gear button has a first fault indicating that the voltage signals of each of the plurality of acquisition loops included in the P-gear button are inconsistent based on the voltage signal of each of the acquisition loops included in the P-gear button, and determine whether the P-gear button is pressed in the case where the P-gear button has the first fault and in the case where the P-gear button does not have the first fault based on the state information, the environment information, and the voltage signal of each of the acquisition loops, i.e., the state of the P-gear button can be determined according to the state information, the environment information, and the voltage signal of each of the acquisition loops in the case where the P-gear button has the first fault and in the case where the P-gear button does not have the first fault, thereby solving the problem that the state of the P-gear button cannot be accurately recognized when any one or more switches in the P-gear button has a fault in the prior art, and thus improving the accuracy of recognizing the P-gear button.

[0007] In a possible implementation, the method further comprises: determining whether the P-gear button has a second fault based on the voltage signal of each of the plurality of acquisition loops included in the P-gear button of the target vehicle, the second fault indicating that the voltage signals of each of the plurality of acquisition loops included in the P-gear button are all low-level signals; determining that the P-gear button cannot be reset in the case where the P-gear button has the second fault, disabling the P-gear button, and displaying a maintenance prompt information.

[0008] According to the technical solution, when the P-gear button has a fault that cannot be reset, the P-gear button is disabled to release the braking state of the vehicle, and a maintenance prompt is displayed to remind the driver to maintain, so that the problem that the P-gear button state is incorrectly recognized as being pressed to brake when the P-gear button has a fault that cannot be reset, and the driver cannot move the vehicle for maintenance, is solved.

[0009] In a possible implementation, the method further includes: in a case where it is determined that the acquired state information of the target vehicle is abnormal, acquiring a motor speed of the target vehicle, and determining an acceleration of the target vehicle based on the motor speed of the target vehicle; in a case where it is determined that the acceleration of the target vehicle is less than a preset recovery acceleration corresponding to vehicle sliding, determining that a brake signal exists and that the target vehicle is braking; and in a case where it is determined that the acceleration of the target vehicle is greater than or equal to the preset recovery acceleration corresponding to vehicle sliding, determining that the brake signal does not exist and that the target vehicle is not braking.

[0010] According to the technical solution, in a case where it is determined that the acquired state information of the target vehicle is abnormal, the acceleration of the target vehicle is determined based on the motor speed of the target vehicle, that is, in a case where the brake signal and the acceleration cannot be normally acquired, the acceleration is determined based on the motor speed, and then, according to the size relationship between the acceleration of the target vehicle and the preset recovery acceleration corresponding to vehicle sliding, it is determined whether the target vehicle is braking, so that the problem that the state information of the target vehicle is abnormal and the state of the P-gear button cannot be accurately determined based on the brake signal and the acceleration of the target vehicle is avoided.

[0011] In a possible implementation, the determination of whether the P-gear button is pressed in a case where the P-gear button has the first fault based on the state information, the environmental information, and the voltage signals of each of the plurality of acquisition loops includes: in a case where the P-gear button has the first fault, the driving speed is less than a first preset threshold, and the voltage signals of each of the plurality of acquisition loops are all low-level signals, it is determined that the P-gear button is pressed; in a case where the P-gear button has the first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to the current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signals of each of the plurality of acquisition loops are all low-level signals, it is determined that the P-gear button is pressed, the first preset threshold is less than the second preset threshold; and in a case where the P-gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signals of each of the plurality of acquisition loops are all low-level signals, it is determined that the P-gear button is pressed.

[0012] According to the technical means, in the case that the P-gear button has the first fault, the P-gear button is determined to be pressed according to the voltage signal, the driving speed, the environmental information and the brake signal of each of the plurality of acquisition circuits, that is, the state of the P-gear button can be recognized according to different driving scenes, so that the problem that the recognition error of the P-gear button leads to the emergency braking of the vehicle or the risk caused by the untimely emergency braking of the vehicle when the vehicle is driven at a high speed is avoided, and the safety of driving is ensured.

[0013] In a possible implementation, in the case that the P-gear button has no first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition circuits is a low-level signal, the P-gear button is determined to be pressed; in the case that the P-gear button has no first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of at least one acquisition circuit is a low-level signal, the P-gear button is determined to be pressed, the at least one acquisition circuit is an acquisition circuit in the plurality of acquisition circuits; in the case that the P-gear button has no first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the at least one acquisition circuit is a low-level signal, the P-gear button is determined to be pressed; in the case that the P-gear button has no first fault, the driving speed is greater than the second preset threshold, and the voltage signal of at least N acquisition circuits in the plurality of acquisition circuits is a low-level signal, the P-gear button is determined to be pressed, N is a positive integer.

[0014] According to the technical means, in the case that the P-gear button has the first fault, the P-gear button is determined to be pressed according to the voltage signal, the driving speed, the environmental information and the brake signal of each of the plurality of acquisition circuits, that is, the state of the P-gear button can be recognized according to different driving scenes, so that the problem that the recognition error of the P-gear button leads to the emergency braking of the vehicle or the risk caused by the untimely emergency braking of the vehicle when the vehicle is driven at a high speed is avoided, and the safety of driving is ensured.

[0015] According to a second aspect provided in the present application, a P-gear button recognition device is provided, which comprises a processing module, a determination module and an acquisition module. The processing module is configured to detect a voltage signal of each acquisition circuit included in a P-gear button of a target vehicle, the voltage signal of the acquisition circuit being any one of a low-level signal and a high-level signal. The determination module is configured to determine whether the P-gear button has a first fault based on the voltage signal of each acquisition circuit, the first fault indicating that the voltage signals of each acquisition circuit included in the P-gear button are inconsistent. The acquisition module is configured to acquire state information and environmental information of the target vehicle, the state information comprising at least one of a brake signal, a driving speed and an acceleration, the brake signal indicating whether the target vehicle is braking, and the environmental information indicating whether there is an obstacle in a target area corresponding to a current position of the target vehicle. The determination module is further configured to determine whether the P-gear button is pressed in a case where the P-gear button has the first fault based on the state information, the environmental information and the voltage signal of each acquisition circuit. The determination module is further configured to determine whether the P-gear button is pressed in a case where the P-gear button does not have the first fault based on the state information, the environmental information and the voltage signal of each acquisition circuit.

[0016] In a possible implementation, the determination module is further configured to determine whether the P-gear button has a second fault based on the voltage signal of each acquisition circuit included in the P-gear button of the target vehicle, the second fault indicating that the voltage signals of each acquisition circuit included in the P-gear button are all low-level signals. The processing module is further configured to determine that the P-gear button cannot be reset, disable the P-gear button and display a maintenance prompt information in a case where the P-gear button has the second fault.

[0017] In a possible implementation, the acquisition module is further configured to acquire a motor speed of the target vehicle in a case where it is determined that the acquired state information of the target vehicle is abnormal. The determination module is further configured to determine the acceleration of the target vehicle based on the motor speed of the target vehicle. The determination module is further configured to determine that the brake signal exists and the target vehicle is braking in a case where it is determined that the acceleration of the target vehicle is less than a preset recovery acceleration corresponding to vehicle coasting. The determination module is further configured to determine that the brake signal does not exist and the target vehicle is not braking in a case where it is determined that the acceleration of the target vehicle is greater than or equal to the preset recovery acceleration corresponding to vehicle coasting.

[0018] In a possible implementation, the determining module is further configured to determine that the P gear button is pressed in a case where the P gear button has the first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal; determine that the P gear button is pressed in a case where the P gear button has the first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target region corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, the first preset threshold being less than the second preset threshold; and determine that the P gear button is pressed in a case where the P gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal.

[0019] In a possible implementation, the determining module is further configured to determine that the P gear button is pressed in a case where the P gear button has the first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal; determine that the P gear button is pressed in a case where the P gear button has the first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target region corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, the first preset threshold being less than the second preset threshold; and determine that the P gear button is pressed in a case where the P gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal.

[0020] According to a third aspect provided in the present application, an electronic device is provided, including: a processor; a memory for storing processor-executable instructions; and wherein the processor is configured to execute the instructions to implement the method of the first aspect and any possible implementation thereof.

[0021] According to a fourth aspect provided in the present application, a computer-readable storage medium is provided, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method of the first aspect and any possible implementation thereof.

[0022] According to a fifth aspect provided by the present application, a vehicle is provided, comprising the P-gear button recognition device for implementing the method of the first aspect and any possible implementation thereof.

[0023] According to a sixth aspect provided by the present application, a computer program product is provided, the computer program product comprising computer instructions which, when executed on an electronic device, cause the electronic device to perform the method of the first aspect and any possible implementation thereof.

[0024] Therefore, the above technical features of the present application have the following beneficial effects:

[0025] (1) Based on the voltage signals of each acquisition circuit included in the P-gear button, it can be determined whether the P-gear button has a first fault for indicating that the voltage signals of each acquisition circuit included in the P-gear button are inconsistent, and based on the state information, the environmental information, and the voltage signals of each acquisition circuit, it can be determined whether the P-gear button is pressed in the case that the P-gear button has the first fault and does not have the first fault, i.e., the state of the P-gear button can be determined according to the state information, the environmental information, and the voltage signals of each acquisition circuit in the case that the P-gear button has the first fault and does not have the first fault, which solves the problem in the prior art that the state of the P-gear button cannot be accurately recognized when any one or more switches in the P-gear button has a fault, leading to a dangerous situation, thereby improving the accuracy of recognizing the P-gear button.

[0026] (2) When the P-gear button has a fault that cannot be reset, the brake state of the vehicle can be released by disabling the P-gear button, and a maintenance prompt information is displayed to remind the driver to maintain, thereby solving the problem that when the P-gear button has a fault that cannot be reset, the state of the P-gear button is mistakenly recognized as pressed to brake, leading to the problem that the driver cannot move the vehicle for maintenance.

[0027] (3) When it is determined that the state information of the target vehicle is abnormal, the acceleration of the target vehicle can be determined based on the motor speed of the target vehicle, i.e., when the brake signal and the acceleration cannot be normally obtained, the acceleration is determined based on the motor speed, and further, according to the size relationship between the acceleration of the target vehicle and the preset recovery acceleration corresponding to the vehicle sliding, it is determined whether the target vehicle is being braked, thereby avoiding the problem that when the state information of the target vehicle is abnormal, the state of the P-gear button cannot be accurately determined according to the brake signal and the acceleration of the target vehicle.

[0028] (4) In the case that the P range button has the first fault, the P range button is determined to be pressed according to the voltage signal, the driving speed, the environmental information and the brake signal of each of the plurality of acquisition circuits, that is, the state of the P range button is identified according to different driving scenes, so as to avoid the problem that the identification error of the P range button leads to the emergency braking of the vehicle or the vehicle is not braked in time when the vehicle is driven at high speed, and ensure the safety of driving.

[0029] (5) In the case that the P range button has no first fault, the P range button is determined to be pressed according to the voltage signal, the driving speed, the environmental information and the brake signal of each of the plurality of acquisition circuits, that is, the state of the P range button is identified according to different driving scenes, so as to avoid the problem that the identification error of the P range button leads to the emergency braking of the vehicle or the vehicle is not braked in time when the vehicle is driven at high speed, and ensure the safety of driving.

[0030] It should be noted that the technical effects brought by any one of the implementation manners of the second aspect to the sixth aspect can refer to the technical effects brought by the corresponding implementation manners in the first aspect, which will not be repeated here.

[0031] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS

[0032] The accompanying drawings, which are incorporated into and form part of the specification, illustrate an embodiment consistent with the present application and, together with the specification, serve to explain the principles of the present application, and do not constitute an improper limitation of the present application.

[0033] Figure 1 is a structural schematic diagram of a P range button identification system according to an exemplary embodiment;

[0034] Figure 2 is a flowchart of a P range button identification method according to an exemplary embodiment;

[0035] Figure 3 is a three-way P range button position acquisition circuit schematic diagram of a vehicle control unit according to an exemplary embodiment;

[0036] Figure 4 is a distribution schematic diagram of a three-way P range button switch position according to an exemplary embodiment;

[0037] Figure 5 is a flowchart of another P range button identification method according to an exemplary embodiment;

[0038] Figure 6is a flow chart of still another P range button recognition method according to an exemplary embodiment;

[0039] Figure 7 is a flow chart of still another P range button recognition method according to an exemplary embodiment;

[0040] Figure 8 is a flow chart of still another P range button recognition method according to an exemplary embodiment;

[0041] Figure 9 is a block diagram of a P range button recognition device according to an exemplary embodiment;

[0042] Figure 10 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] Other advantages and effects of the present application can be easily understood by those skilled in the art from the above description of the preferred embodiments. The present application can be implemented or applied in other different specific embodiments, and the details in the description can be modified or changed based on different views and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, but not for limiting the protection scope of the present application.

[0044] It should be noted that the diagrams provided in the following embodiments only schematically illustrate the basic concept of the present application, and only the components related to the present application are shown in the diagrams, but not the number, shape and size of the components in actual implementation. The shape, number and ratio of the components in actual implementation can be arbitrarily changed, and the layout pattern of the components can be more complex.

[0045] For the convenience of understanding, the P range button recognition method provided by the present application is specifically introduced below in combination with the accompanying drawings.

[0046] The P range button recognition method provided by the embodiments of the present application can be applied to a P range button recognition system. Figure 1 is a structural schematic diagram of a P range button recognition system according to an exemplary embodiment. As shown in Figure 1 , the P range button recognition system 10 comprises a fault determination module 11, an information acquisition module 12 and a P range button state recognition module 13.

[0047] The fault determination module 11 is configured to detect a voltage signal of each of a plurality of acquisition loops of the P gear button of the target vehicle, and determine whether the P gear button has a first fault based on the voltage signal of each of the plurality of acquisition loops.

[0048] Figure 2 is a flowchart of a P gear button recognition method according to an example embodiment, as shown in Figure 2 The P gear button recognition method includes the following steps:

[0049] S201, detecting a voltage signal of each of a plurality of acquisition loops of the P gear button of the target vehicle, and determining whether the P gear button has a first fault based on the voltage signal of each of the plurality of acquisition loops.

[0050] The voltage signal of the acquisition loop is any one of a low-level signal and a high-level signal, and the first fault is used to indicate that the voltage signals of each of the plurality of acquisition loops of the P gear button are inconsistent.

[0051] Optionally, within a first preset time period after the vehicle control unit is woken up, the vehicle control unit (VCU) can be used to detect the voltage signal of each of the plurality of acquisition loops of the P gear button of the target vehicle.

[0052] For example, the first preset time period can be 8s, 10s, 12s, or any reasonable value, and the P gear button of the target vehicle can include three acquisition loops. Figure 3 is a schematic diagram of a three-way P gear button position acquisition circuit of a vehicle control unit according to an example embodiment, as shown in Figure 3As shown, the power supply voltages (volt current condenser, VCC) 1, VCC2, VCC3 of the circuit are three independent voltage sources, R3, R6, R9 are pull-up resistors, P10, P11, P12 are three P-gear key acquisition circuit digital acquisition interfaces connected with the vehicle controller. S1, S2, S3 are switches in the three P-gear key acquisition circuits, when the P-gear key is pressed down, S1, S2, S3 are in the closed state, when the P-gear key is released, S1, S2, S3 are in the open state.

[0053] R1, R2, R4, R5, R7, R8 are resistors in the three P-gear key acquisition circuits, taking the acquisition circuit corresponding to P10 as an example, when the P-gear key is pressed down, the voltage acquired by P10 on the vehicle controller is VCC1*R1 / (R1+R3), at this time, the key state signal of the acquisition circuit is low (i.e. the voltage signal of the acquisition circuit is a low level signal); when the P-gear key is not pressed down, the voltage acquired by P10 on the vehicle controller is VCC1*(R1+R2) / (R1+R2+R3), at this time, the key state signal of the acquisition circuit is high (i.e. the voltage signal of the acquisition circuit is a high level signal).

[0054] Figure 4 is a distribution diagram of three P-gear key switch positions according to an exemplary embodiment, as shown in Figure 4 As shown, the three acquisition positions of the three P-gear keys are in equilateral triangle distribution, so as to ensure accurate acquisition of the corresponding key state when the P-gear key is pressed down by the driver.

[0055] Optionally, based on the voltage signals of each acquisition circuit, it can be determined whether the voltage signal of at least one acquisition circuit in the plurality of acquisition circuits is consistent with the acquisition circuits other than the at least one acquisition circuit in the plurality of acquisition circuits, if the voltage signal of the at least one acquisition circuit in the plurality of acquisition circuits is consistent with the acquisition circuits other than the at least one acquisition circuit in the plurality of acquisition circuits, it is determined that the P-gear key does not have the first fault; if the voltage signal of the at least one acquisition circuit in the plurality of acquisition circuits is inconsistent with the acquisition circuits other than the at least one acquisition circuit in the plurality of acquisition circuits, and the duration of the inconsistency between the voltage signal of the at least one acquisition circuit in the plurality of acquisition circuits and the acquisition circuits other than the at least one acquisition circuit in the plurality of acquisition circuits is greater than a second preset duration, it is determined that the P-gear key has the first fault, and the fault code corresponding to the first fault, the voltage signal of each acquisition circuit and the pull-up power source corresponding to each acquisition circuit are recorded. Based on the fault code corresponding to the first fault, the fault maintenance information is sent to and displayed on the instrument panel of the target vehicle.

[0056] Exemplarily, the second preset time length can be 6s, 8s, 10s, or any reasonable numerical value. If the voltage signal of one of the three acquisition circuits included in the three-path P-gear button is inconsistent with the voltage signals of the other two acquisition circuits, and the duration of the inconsistency is greater than 8s, it is determined that the three-path P-gear button has the first fault. The fault maintenance information can be "P-gear button fault, please contact the maintenance station in time".

[0057] It should be noted that the voltage signal of each acquisition circuit and the pull-up power supply corresponding to each acquisition circuit are used to analyze and locate the cause of the first fault.

[0058] S202, acquire state information and environment information of the target vehicle.

[0059] The state information includes at least one of the following: brake signal, driving speed, acceleration, the brake signal is used to indicate whether the target vehicle is braking, and the environment information is used to indicate whether there is an obstacle in the target area corresponding to the current position of the target vehicle.

[0060] Optionally, the state information of the target vehicle can be collected by the chassis controller of the target vehicle, the environment information can be acquired by the intelligent driving controller, and the state information collected by the chassis controller and the environment information acquired by the intelligent driving controller can be acquired by the vehicle controller of the target vehicle.

[0061] Exemplarily, the obstacle can be a vehicle or a pedestrian.

[0062] S203, based on the state information, the environment information, and the voltage signal of each acquisition circuit in the plurality of acquisition circuits, determine whether the P-gear button is pressed in the case that the P-gear button has the first fault.

[0063] Optionally, in the case that the P-gear button fault state obtained by the power-on diagnosis of the vehicle controller is that the P-gear button has the first fault, the P-gear button can be determined to be pressed based on the state information, the environment information, and the voltage signal of each acquisition circuit in the plurality of acquisition circuits.

[0064] S204, based on the state information, the environment information, and the voltage signal of each acquisition circuit in the plurality of acquisition circuits, determine whether the P-gear button is pressed in the case that the P-gear button does not have the first fault.

[0065] Optionally, in the case that the P-gear button fault state obtained by the power-on diagnosis of the vehicle controller is that the P-gear button does not have the first fault, the P-gear button can be determined to be pressed based on the state information, the environment information, and the voltage signal of each acquisition circuit in the plurality of acquisition circuits.

[0066] Figure 5 is a flowchart of yet another P-range button recognition method according to an exemplary embodiment, as Figure 5 shown, the method further includes the following steps:

[0067] S301, based on the voltage signals of each of the plurality of acquisition loops included in the P-range button of the target vehicle, determine whether the P-range button has a second fault.

[0068] wherein the second fault is indicative of the voltage signals of each of the plurality of acquisition loops included in the P-range button being low-level signals.

[0069] Optionally, within a first preset time duration after the vehicle controller is woken up, the voltage signals of each of the plurality of acquisition loops included in the P-range button of the target vehicle can be detected by the vehicle controller, and it is determined whether the voltage signals of each of the plurality of acquisition loops included in the P-range button of the target vehicle are all low-level signals. If the voltage signals of each of the plurality of acquisition loops included in the P-range button of the target vehicle are all low-level signals, it is determined that the P-range button has a second fault; if there is any one of the plurality of acquisition loops included in the P-range button of the target vehicle whose voltage signal is a high-level signal, it is determined that the P-range button does not have a second fault.

[0070] For example, if the voltage signals of each of the three acquisition loops included in the three-way P-range button are all low-level signals (i.e., all the three acquisition loops are in a pressed state), it is determined that the P-range button has a second fault; if there is any one of the three acquisition loops included in the three-way P-range button whose voltage signal is a high-level signal (i.e., one of the three acquisition loops is in an unpressed state), it is determined that the P-range button does not have a second fault.

[0071] S302, in the case where the P-range button has a second fault, determine that the P-range button cannot be reset, disable the P-range button, and display a maintenance prompt information.

[0072] Optionally, in the case where the P-range button has a second fault, it can be determined that the P-range button cannot be reset, and the P-range button is disabled in the current power-on period. The fault code corresponding to the second fault, the voltage signals of each acquisition loop, and the pull-up power source corresponding to each acquisition loop are recorded. Based on the fault code corresponding to the second fault, a maintenance prompt information is sent to and displayed on the instrument panel of the target vehicle.

[0073] For example, the maintenance prompt information can be "The P-range button cannot be reset and used. Please use the off-vehicle P-in function and contact the maintenance station in time before leaving the vehicle".

[0074] Figure 6is a flowchart of yet another P range button recognition method according to an example embodiment, as Figure 6 As shown, the method further includes the following steps:

[0075] S401, in a case where it is determined that the acquired state information of the target vehicle is abnormal, acquiring a motor speed of the target vehicle, and determining an acceleration of the target vehicle based on the motor speed of the target vehicle.

[0076] Optionally, when the collected state information of the target vehicle is sent to the chassis controller of the target vehicle through the chassis controller, if the state information of the target vehicle has the problem of frame loss or check error, it can be determined that the state information of the target vehicle acquired through the vehicle controller of the target vehicle is abnormal. In a case where it is determined that the acquired state information of the target vehicle is abnormal, the motor speed of the target vehicle can be acquired, and the driving speed and acceleration of the target vehicle can be determined based on the motor speed of the target vehicle.

[0077] S402, in a case where it is determined that the acceleration of the target vehicle is less than the preset recovery acceleration corresponding to vehicle coasting, it is determined that there is a brake signal, and the target vehicle is braking.

[0078] Optionally, the size relationship between the acceleration of the target vehicle and the preset recovery acceleration corresponding to vehicle coasting can be judged. If the acceleration of the target vehicle is less than the preset recovery acceleration corresponding to vehicle coasting, it is determined that there is a brake signal, and the target vehicle is braking.

[0079] S403, in a case where it is determined that the acceleration of the target vehicle is greater than or equal to the preset recovery acceleration corresponding to vehicle coasting, it is determined that there is no brake signal, and the target vehicle is not braking.

[0080] Optionally, the size relationship between the acceleration of the target vehicle and the preset recovery acceleration corresponding to vehicle coasting can be judged. If the acceleration of the target vehicle is greater than or equal to the preset recovery acceleration corresponding to vehicle coasting, it is further determined whether there is a brake signal and whether the target vehicle is braking according to the brake signal of the target vehicle at the previous moment when the state information of the target vehicle has frame loss or check error. If the brake signal of the target vehicle at the previous moment when the state information of the target vehicle has frame loss or check error indicates that the target vehicle is braking, it is determined that there is a brake signal, and the target vehicle is braking. If the brake signal of the target vehicle at the previous moment when the state information of the target vehicle has frame loss or check error indicates that the target vehicle is not braking, it is determined that there is no brake signal, and the target vehicle is not braking.

[0081] Figure 7 is a flowchart of yet another P range button recognition method according to an example embodiment, as Figure 7As shown, the method in step S203 above specifically includes the following steps:

[0082] S501. If the P gear button has a first fault, the driving speed is less than the first preset threshold, and the voltage signal of each of the multiple acquisition circuits is a low level signal, then the P gear button is determined to be pressed.

[0083] Optionally, if the P-gear button malfunctions, the driving speed is less than a first preset threshold, and the voltage signal in each of the multiple acquisition circuits is a low-level signal, it can be determined that the P-gear button has been pressed. If the P-gear button is determined to be pressed, the vehicle controller can control the target vehicle to apply emergency braking.

[0084] For example, if the P gear button has a first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the three acquisition circuits included in the three P gear buttons is a low level signal, it can be determined that the three P gear buttons are pressed.

[0085] S502. When the P gear button has a first fault, the driving speed is greater than the second preset threshold, the environmental information indicates that there is an obstacle in the target area corresponding to the current position of the target vehicle, the braking signal indicates that the target vehicle is braking, and the voltage signal of each of the multiple acquisition circuits is a low level signal, it is determined that the P gear button is pressed.

[0086] The first preset threshold is less than the second preset threshold.

[0087] Optionally, the P-gear button can be determined to be pressed if: the P-gear button has a first fault; the driving speed exceeds a second preset threshold; environmental information indicates an obstacle exists within the target area corresponding to the current position of the target vehicle; the braking signal indicates that the target vehicle is braking and the duration of the braking signal exceeds a third preset duration; and the voltage signal of each of the multiple acquisition circuits is a low-level signal. If the P-gear button is determined to be pressed, the vehicle controller can control the target vehicle to apply emergency braking.

[0088] For example, if the P gear button has a first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in the target area corresponding to the current position of the target vehicle, the braking signal indicates that the target vehicle is braking and the duration of the braking signal is greater than a third preset duration, and the voltage signal of each of the three acquisition circuits included in the three P gear buttons is a low level signal, it can be determined that the three P gear buttons are pressed.

[0089] S503, in the case that the P-gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than the third preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, it is determined that the P-gear button is pressed.

[0090] Optionally, in the case that the P-gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than the third preset threshold, and the duration that the acceleration is greater than the third preset threshold is greater than the fourth preset duration, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, it can be determined that the P-gear button is pressed. In the case that it is determined that the P-gear button is pressed, the vehicle controller can be used to control the target vehicle to perform emergency braking.

[0091] For example, in the case that the P-gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than the third preset threshold, the duration that the acceleration is greater than the third preset threshold is greater than the fourth preset duration, and the voltage signal of each of the three acquisition loops included in the three-way P-gear button is a low-level signal, it can be determined that the three-way P-gear button is pressed.

[0092] Figure 8 FIG. 6 is a flowchart of another P-gear button recognition method according to an exemplary embodiment, as shown in FIG. 6, the method in step S204 above specifically includes the following steps: Figure 8

[0093] S601, in the case that the P-gear button has no first fault, the driving speed is less than the first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, it is determined that the P-gear button is pressed.

[0094] Optionally, in the case that the P-gear button has no first fault and no second fault, the driving speed is less than the first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, it can be determined that the P-gear button is pressed. In the case that it is determined that the P-gear button is pressed, the vehicle controller can be used to control the target vehicle to perform emergency braking.

[0095] For example, in the case that the P-gear button has no first fault and no second fault, the driving speed is less than the first preset threshold, and the voltage signal of each of the three acquisition loops included in the three-way P-gear button is a low-level signal, it can be determined that the three-way P-gear button is pressed.

[0096] ​S602, in the case that the P-gear button does not have the first fault, the driving speed is greater than the second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of the at least one acquisition circuit is a low-level signal, it is determined that the P-gear button is pressed.

[0097] The at least one acquisition circuit is an acquisition circuit of the plurality of acquisition circuits.

[0098] Optionally, in the case that the P-gear button does not have the first fault and the second fault, the driving speed is greater than the second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and a duration for which the brake signal indicates that the target vehicle is braking is greater than a third preset duration, and the voltage signal of each of the at least one acquisition circuit is a low-level signal, it can be determined that the P-gear button is pressed. In the case that it is determined that the P-gear button is pressed, the vehicle controller can be used to control the target vehicle to perform emergency braking.

[0099] Optionally, in the case that the P-gear button does not have the first fault and the second fault, the driving speed is greater than the second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and a duration for which the brake signal indicates that the target vehicle is braking is greater than a third preset duration, and the voltage signal of each of the at least one acquisition circuit is a low-level signal, it can be determined that the P-gear button is pressed. In the case that it is determined that the P-gear button is pressed, the vehicle controller can be used to control the target vehicle to perform emergency braking.

[0100] S603, in the case that the P-gear button does not have the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the at least one acquisition circuit is a low-level signal, it is determined that the P-gear button is pressed.

[0101] Optionally, in the case that the P-gear button does not have the first fault and the second fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and a duration for which the acceleration is greater than the third preset threshold is greater than a fourth preset duration, and the voltage signal of each of the at least one acquisition circuit is a low-level signal, it can be determined that the P-gear button is pressed. In the case that it is determined that the P-gear button is pressed, the vehicle controller can be used to control the target vehicle to perform emergency braking.

[0102] S604. If the P gear button does not have a first fault, the driving speed is greater than the second preset threshold, and the voltage signals of at least N acquisition circuits in the multiple acquisition circuits are all low level signals, then the P gear button is determined to be pressed.

[0103] Where N is a positive integer.

[0104] Optionally, if the P-gear button does not exhibit a first or second fault, the driving speed exceeds a second preset threshold, and the voltage signals of at least N of the multiple acquisition circuits are all low-level signals, then it can be determined that the P-gear button has been pressed. If the P-gear button is determined to be pressed, the vehicle controller can initiate emergency braking of the target vehicle.

[0105] For example, N acquisition circuits can be two or three acquisition circuits. If the P gear button does not have a first fault or a second fault, the driving speed is greater than the second preset threshold, and two of the three acquisition circuits included in the three P gear buttons are low-level signals, it can be determined that the P gear button is pressed.

[0106] This application provides a method for identifying the P gear button. By using a P gear button with multiple acquisition loops, it solves the problem of false alarms when the P gear button is pressed at its edge. Furthermore, it proposes corresponding failure solutions for different scenarios based on the failure mode (i.e., the failure type) of the P gear button, ensuring the normal use of the P gear button in abnormal situations and avoiding safety hazards.

[0107] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the P-gear button recognition device or electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0108] The P gear button recognition device or the electronic device can be divided into function modules according to the above method. For example, the P gear button recognition device or the electronic device can include function modules corresponding to each function division, or two or more functions can be integrated into one processing module. The integrated module can be realized in the form of hardware or in the form of a software function module. It should be noted that the division of the modules in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division method can be used.

[0109] Figure 9 is a block diagram of a P gear button recognition device according to an exemplary embodiment. Referring to Figure 9 The P gear button recognition device 70 includes a processing module 701, a determination module 702, and an acquisition module 703.

[0110] The processing module 701 is configured to detect a voltage signal of each acquisition circuit included in a P gear button of a target vehicle, the voltage signal of the acquisition circuit being any one of a low-level signal and a high-level signal.

[0111] The determination module 702 is configured to determine, based on the voltage signal of each acquisition circuit, whether the P gear button has a first fault, the first fault being used to indicate that the voltage signals of each acquisition circuit included in the P gear button are inconsistent.

[0112] The acquisition module 703 is configured to acquire state information and environmental information of the target vehicle, the state information including at least one of a brake signal, a driving speed, and an acceleration, the brake signal being used to indicate whether the target vehicle is braking, and the environmental information being used to indicate whether there is an obstacle in a target area corresponding to a current position of the target vehicle.

[0113] The determination module 702 is further configured to determine, based on the state information, the environmental information, and the voltage signal of each acquisition circuit, whether the P gear button is pressed in a case where the P gear button has the first fault.

[0114] The determination module 702 is further configured to determine, based on the state information, the environmental information, and the voltage signal of each acquisition circuit, whether the P gear button is pressed in a case where the P gear button does not have the first fault.

[0115] In a possible implementation, the determining module 702 is further configured to determine, based on the voltage signals of each of the plurality of acquisition loops included in the P gear button of the target vehicle, whether the P gear button has a second fault, the second fault being indicative of the voltage signals of each of the plurality of acquisition loops included in the P gear button being low-level signals; and the processing module 701 is further configured to, in a case where the P gear button has the second fault, determine that the P gear button cannot be reset, disable the P gear button, and display a maintenance prompt.

[0116] In a possible implementation, the obtaining module 703 is further configured to, in a case where it is determined that the obtained state information of the target vehicle is abnormal, obtain a motor speed of the target vehicle; the determining module 702 is further configured to determine, based on the motor speed of the target vehicle, an acceleration of the target vehicle; and the determining module 702 is further configured to, in a case where the acceleration of the target vehicle is less than a preset recovery acceleration corresponding to vehicle coasting, determine that there is a brake signal and that the target vehicle is braking; and the determining module 702 is further configured to, in a case where the acceleration of the target vehicle is greater than or equal to the preset recovery acceleration corresponding to vehicle coasting, determine that there is no brake signal and that the target vehicle is not braking.

[0117] In a possible implementation, the determining module 702 is further configured to, in a case where the P gear button has the first fault, the driving speed is less than a first preset threshold, and the voltage signals of each of the plurality of acquisition loops are low-level signals, determine that the P gear button is pressed; the determining module 702 is further configured to, in a case where the P gear button has the first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signals of each of the plurality of acquisition loops are low-level signals, determine that the P gear button is pressed, the first preset threshold being less than the second preset threshold; and the determining module 702 is further configured to, in a case where the P gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signals of each of the plurality of acquisition loops are low-level signals, determine that the P gear button is pressed.

[0118] In a possible implementation, the determining module 702 is further configured to determine that the P gear button is pressed in the following case: the P gear button has no first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal. The determining module 702 is further configured to determine that the P gear button is pressed in the following case: the P gear button has no first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target region corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of the at least one acquisition loop is a low-level signal, the at least one acquisition loop being an acquisition loop of the plurality of acquisition loops. The determining module 702 is further configured to determine that the P gear button is pressed in the following case: the P gear button has no first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the at least one acquisition loop is a low-level signal. The determining module 702 is further configured to determine that the P gear button is pressed in the following case: the P gear button has no first fault, the driving speed is greater than the second preset threshold, and the voltage signal of at least N acquisition loops of the plurality of acquisition loops is a low-level signal, N being a positive integer.

[0119] As to the apparatus in the above-described embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.

[0120] Figure 10 is a block diagram of an electronic device according to an example embodiment. As shown in Figure 10 , the electronic device 80 includes but is not limited to a processor 801 and a memory 802.

[0121] The memory 802 described above is configured to store executable instructions of the processor 801. It can be understood that the processor 801 is configured to execute the instructions to implement the P gear button recognition method in the above-described embodiments.

[0122] It should be noted that those skilled in the art can understand that the electronic device structure shown in Figure 10 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than those shown in Figure 10 , or combine certain components, or different component arrangements.

[0123] The processor 801 is the control center of the electronic device, connects all parts of the electronic device through various interfaces and lines, executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, thereby overall monitoring the electronic device. The processor 801 can include one or more processing modules. Alternatively, the processor 801 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 801.

[0124] The memory 802 can be used to store software programs and various data. The memory 802 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function module (such as an acquisition unit, a determination unit, a processing unit, etc.), and the like. In addition, the memory 802 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.

[0125] In an example embodiment, a computer readable storage medium including instructions, for example, the memory 802 including instructions, is also provided, and the instructions can be executed by the processor 801 of the electronic device 800 to implement the P-gear key recognition method in the above-mentioned embodiments.

[0126] In actual implementation, Figure 9 The functions of the processing module 701, the determination module 702, and the acquisition module 703 in the above-mentioned embodiments can be implemented by the processor 801 calling the computer program stored in the memory 802. Figure 10 The specific execution process can refer to the description of the P-gear key recognition method in the above-mentioned embodiments, and will not be described here.

[0127] Alternatively, the computer readable storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0128] In an example embodiment, a vehicle including a port conflict resolution device is also provided, and the vehicle can complete the port conflict resolution method in the above-mentioned embodiments through the port conflict resolution device.

[0129] In the example embodiment, the embodiment of the present application also provides a computer program product including one or more instructions executable by the processor 801 of the electronic device to complete the P-gear key recognition method in the above-described embodiments.

[0130] It should be noted that the instructions in the above computer-readable storage medium or the one or more instructions in the computer program product are executed by the processor of the electronic device to realize each process of the above P-gear key recognition method embodiment, and achieve the same technical effect as the above P-gear key recognition method. To avoid repetition, it will not be described here.

[0131] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional module is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete the above-described full classification or part of the function.

[0132] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the above-described device embodiments are only illustrative, for example, the division of modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be through some interfaces, indirect coupling or communication connection between the units or devices, which can be electrical, mechanical or other forms.

[0133] The units described as separate components can or can not be physically separated, and the components shown as units can be one physical unit or multiple physical units, that is, they can be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0134] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The above integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0135] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole classification part or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, and includes a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute the whole classification part or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media that can store program codes.

[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A P-block key recognition method, characterized by, The method comprises: detecting a voltage signal of each of a plurality of acquisition circuits included in a P-gear button of a target vehicle, and determining, based on the voltage signal of each of the plurality of acquisition circuits, whether the P-gear button has a first fault, the voltage signal of each of the plurality of acquisition circuits being any one of a low-level signal and a high-level signal, the first fault indicating that the voltage signals of each of the plurality of acquisition circuits included in the P-gear button are inconsistent; obtaining state information and environmental information of the target vehicle, the state information including at least one of a brake signal, a driving speed, and an acceleration, the brake signal indicating whether the target vehicle is braking, and the environmental information indicating whether there is an obstacle in a target area corresponding to a current position of the target vehicle; determining, based on the state information, the environmental information, and the voltage signal of each of the plurality of acquisition circuits, whether the P-gear button is pressed in a case where the P-gear button has the first fault; or determining, based on the state information, the environmental information, and the voltage signal of each of the plurality of acquisition circuits, whether the P-gear button is pressed in a case where the P-gear button does not have the first fault.

2. The method of claim 1, wherein, The method further comprises: determining, based on the voltage signal of each of the plurality of acquisition circuits included in the P-gear button of the target vehicle, whether the P-gear button has a second fault, the second fault indicating that the voltage signals of each of the plurality of acquisition circuits included in the P-gear button are all low-level signals; in a case where the P-gear button has the second fault, determining that the P-gear button cannot be reset, disabling the P-gear button, and displaying a maintenance prompt information.

3. The method according to claim 1 or 2, characterized in that, The method further comprises: in a case where it is determined that the obtained state information of the target vehicle is abnormal, obtaining a motor speed of the target vehicle, and determining the acceleration of the target vehicle based on the motor speed of the target vehicle; in a case where it is determined that the acceleration of the target vehicle is less than a preset recovery acceleration corresponding to vehicle coasting, it is determined that the brake signal exists, and the target vehicle is braking; in a case where it is determined that the acceleration of the target vehicle is greater than or equal to the preset recovery acceleration corresponding to vehicle coasting, it is determined that the brake signal does not exist, and the target vehicle is not braking.

4. The method of claim 3, wherein, The determination, based on the state information, the environmental information, and the voltage signal of each of the plurality of acquisition circuits, of whether the P-gear button is pressed in a case where the P-gear button has the first fault, comprises: in a case where the P-gear button has the first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition circuits is a low-level signal, it is determined that the P-gear button is pressed; In a case where the P-gear button has the first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, it is determined that the P-gear button is pressed. In a case where the P-gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, it is determined that the P-gear button is pressed.

5. The method of claim 3, wherein, The determination, based on the state information, the environmental information, and the voltage signal of each of the plurality of acquisition loops, of whether the P-gear button is pressed in a case where the P-gear button does not have the first fault, includes: In a case where the P-gear button does not have the first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, it is determined that the P-gear button is pressed. In a case where the P-gear button does not have the first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of the at least one acquisition loop is a low-level signal, it is determined that the P-gear button is pressed, the at least one acquisition loop being an acquisition loop of the plurality of acquisition loops. In a case where the P-gear button does not have the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the at least one acquisition loop is a low-level signal, it is determined that the P-gear button is pressed. In a case where the P-gear button does not have the first fault, the driving speed is greater than the second preset threshold, and the voltage signal of at least N acquisition loops of the plurality of acquisition loops is a low-level signal, it is determined that the P-gear button is pressed, N being a positive integer.

6. A P-shift key recognition device characterized by comprising: The P-gear button identification device includes a processing module, a determination module, and an acquisition module. The processing module is configured to detect a voltage signal of each of a plurality of acquisition loops included in a P-gear button of a target vehicle, the voltage signal of the acquisition loop being any one of a low-level signal and a high-level signal. The determination module is configured to determine, based on the voltage signal of each of the acquisition loops, whether the P-gear button has a first fault, the first fault being used to indicate that the voltage signals of the plurality of acquisition loops included in the P-gear button are inconsistent. The acquisition module is configured to acquire state information and environment information of the target vehicle, the state information including at least one of a brake signal, a driving speed, and an acceleration, the brake signal being used to indicate whether the target vehicle is braking, and the environment information being used to indicate whether there is an obstacle in a target area corresponding to a current position of the target vehicle. The determination module is further configured to determine, based on the state information, the environment information, and the voltage signal of each of the plurality of acquisition loops, whether the P-gear button is pressed in the case where the P-gear button has the first fault. The determination module is further configured to determine, based on the state information, the environment information, and the voltage signal of each of the plurality of acquisition loops, whether the P-gear button is pressed in the case where the P-gear button does not have the first fault.

7. The P-gage button recognition apparatus according to claim 6, wherein The determination module is further configured to determine, based on the voltage signal of each of the plurality of acquisition loops included in the P-gear button of the target vehicle, whether the P-gear button has a second fault, the second fault being used to indicate that the voltage signal of each of the plurality of acquisition loops included in the P-gear button is a low-level signal. The processing module is further configured to determine that the P-gear button cannot be reset, disable the P-gear button, and display a maintenance prompt in the case where the P-gear button has the second fault.

8. The P-gear button recognition apparatus according to claim 6 or 7, characterized by The acquisition module is further configured to acquire a motor speed of the target vehicle in the case where it is determined that the acquired state information of the target vehicle is abnormal. The determination module is further configured to determine the acceleration of the target vehicle based on the motor speed of the target vehicle. The determination module is further configured to determine that the brake signal exists and that the target vehicle is braking in the case where it is determined that the acceleration of the target vehicle is less than a preset recovery acceleration corresponding to vehicle coasting. The determination module is further configured to determine that the brake signal does not exist and that the target vehicle is not braking in the case where it is determined that the acceleration of the target vehicle is greater than or equal to the preset recovery acceleration corresponding to vehicle coasting.

9. The P-gage button recognition apparatus according to claim 8, wherein The determination module is further configured to determine that the P-gear button is pressed in the case where the P-gear button has the first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal. The determination module is further configured to determine that the P-gear button is pressed in the case where the P-gear button has the first fault, the driving speed is greater than a second preset threshold, the environment information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of the plurality of acquisition loops is a low-level signal, the first preset threshold being less than the second preset threshold. The determination module is further configured to determine that the P gear button is pressed in a case where the P gear button has the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal.

10. The P-gage button recognition apparatus according to claim 8, wherein The determination module is further configured to determine that the P gear button is pressed in a case where the P gear button does not have the first fault, the driving speed is less than a first preset threshold, and the voltage signal of each of the plurality of acquisition loops is a low-level signal. The determination module is further configured to determine that the P gear button is pressed in a case where the P gear button does not have the first fault, the driving speed is greater than a second preset threshold, the environmental information indicates that there is an obstacle in a target area corresponding to a current position of the target vehicle, the brake signal indicates that the target vehicle is braking, and the voltage signal of each of at least one acquisition loop is a low-level signal, the at least one acquisition loop being an acquisition loop of the plurality of acquisition loops. The determination module is further configured to determine that the P gear button is pressed in a case where the P gear button does not have the first fault, the driving speed is greater than the second preset threshold, the brake signal indicates that the target vehicle is braking, the acceleration is greater than a third preset threshold, and the voltage signal of each of the at least one acquisition loop is a low-level signal. The determination module is further configured to determine that the P gear button is pressed in a case where the P gear button does not have the first fault, the driving speed is greater than the second preset threshold, and the voltage signal of at least N acquisition loops of the plurality of acquisition loops is a low-level signal, N being a positive integer.

11. An electronic device, comprising: Comprise: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that, When the computer-executable instructions stored in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device can perform the method of any one of claims 1 to 5.

13. A vehicle characterized by comprising: The vehicle comprises the P gear button identification device of any one of claims 6 to 10, and the vehicle is configured to implement the method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Fault determination system of button-type shifter

    CN106855118A

  • Detection circuit and method of P-gear key, system and storage medium

    CN110824901A