P gear key state identification method and apparatus, and medium and vehicle

By acquiring and analyzing the multi-channel button signal circuit voltages of the P gear button, the target circuit state with the greatest correlation with the P gear button state is determined, thereby solving the problem of inaccurate P gear button state recognition in the existing technology and improving the reliability of the P gear button and driving safety.

WO2025214184A1PCT designated stage Publication Date: 2025-10-16SHANGHAI LIXIANG AUTOMOBILE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/085944
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-12
Filing Date
2025-03-28
Publication Date
2025-10-16

AI Technical Summary

Technical Problem

In the prior art, the judgment strategy for the P gear button state is confusing and the P gear button state cannot be accurately identified, resulting in low reliability of the P gear button and affecting driving and personal safety.

Method used

By obtaining the loop voltage of each key signal loop in the multiple key signal loops of the P gear button, the loop state of each key signal loop is determined based on the comparison between the loop voltage and the voltage threshold range, and the target loop state is determined according to the degree of correlation between the loop state and the P gear button state, thereby accurately identifying the P gear button state.

Benefits of technology

The reliability of the P gear button is improved, driving and personal safety are guaranteed, the P gear button status can be accurately identified, and confusion in judgment logic is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025085944_16102025_PF_FP_ABST
    Figure CN2025085944_16102025_PF_FP_ABST
Patent Text Reader

Abstract

A P gear key state identification method and apparatus, and a medium and a vehicle. The P gear key state identification method comprises: acquiring the circuit voltage of each of a plurality of key signal circuits of a P gear key; on the basis of a comparison between each circuit voltage and a voltage threshold range, determining the circuit state of each key signal circuit, wherein the voltage threshold range is used for classifying the circuit states, and each circuit state is used for indicating the connection / disconnection state or an abnormal situation of a key signal circuit; on the basis of each circuit state and the degree of correlation between the circuit state and a P gear key state, determining a target circuit state, wherein the target circuit state is the circuit state that has the maximum degree of correlation with the P gear key state among the circuit states, and the degree of correlation reflects a determination reference for the P gear key state; and setting, to be a current P gear key state, the P gear key state matching the target circuit state.
Need to check novelty before this filing date? Find Prior Art

Description

P gear button state recognition method, device, medium and vehicle

[0001] Cross-reference to Related Applications

[0002] The present application claims priority to the Chinese patent application No. 202410445991.8, filed on April 12, 2024, and entitled "P gear button state recognition method, device, medium and vehicle", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present application relates to the field of vehicle control technology, and in particular to a P gear button state recognition method, device, medium and vehicle. BACKGROUND

[0004] With the improvement of automobile manufacturing technology and customer demand, automation is increasingly popular in automobiles, and automatic control forms of gear shifting have also derived several types such as gear lever type, knob type, dial type and hand gear type. The hand gear type shifting scheme is increasingly widely used with the popularity of new energy vehicles. Automobile manufacturers using the hand gear scheme often integrate an electronic hand brake switch in the P gear button to control the vehicle transmission system and the braking system at the same time, so that the reliability of the P gear button becomes particularly important. The P gear button of the prior art scheme has used a double-circuit P gear button signal, but the judgment strategy of the P gear button state is chaotic and rough, which cannot accurately identify the P gear button state, resulting in low reliability of the P gear button, and affecting driving safety and personal safety. SUMMARY

[0005] To solve the above technical problems, the present application provides a P gear button state recognition method, device, medium and vehicle to accurately identify the P gear button state, improve the reliability of the P gear button, and ensure driving safety and personal safety.

[0006] The present application provides a P gear button state recognition method, comprising:

[0007] Obtaining a loop voltage of each button signal loop in a plurality of button signal loops of a P gear button;

[0008] Based on the comparison of the loop voltage and the voltage threshold range, determining the loop state of each button signal loop; wherein the voltage threshold range is used to divide the loop state, and the loop state is used to represent the on-off condition or abnormal condition of the button signal loop;

[0009] determine a target circuit state based on the circuit state and a correlation between the circuit state and the P-gear button state, wherein the target circuit state is a circuit state with the largest correlation to the P-gear button state among the circuit states, and the correlation reflects a determination criterion of the P-gear button state;

[0010] set the P-gear button state matched with the target circuit state as a current P-gear button state.

[0011] In some embodiments of the present application, the circuit state of each key signal circuit is determined based on a comparison between the circuit voltage and the voltage threshold range, including:

[0012] comparing the circuit voltage with the voltage threshold range corresponding to the key signal circuit, and determining a target voltage threshold range in which the circuit voltage is located from the voltage threshold range;

[0013] determining the circuit state of the key signal circuit based on the target voltage threshold range and a corresponding relationship between the voltage threshold range corresponding to the key signal circuit and the circuit state.

[0014] In some embodiments of the present application, the multiple key signal circuits include a first key signal circuit and a second key signal circuit; the circuit state of each key signal circuit is determined based on a comparison between the circuit voltage and the voltage threshold range, including:

[0015] if the first circuit voltage of the first key signal circuit is located in the first voltage threshold range, it is determined that the first key signal circuit is turned on;

[0016] if the first circuit voltage is located in the second voltage threshold range, it is determined that the first key signal circuit is turned off;

[0017] if the first circuit voltage is located in the third voltage threshold range, it is determined that the first key signal circuit is short-circuited;

[0018] if the first circuit voltage is not located in the first voltage threshold range, the second voltage threshold range or the third voltage threshold range, it is determined that the first key signal circuit is in error;

[0019] and / or, the circuit state of each key signal circuit is determined based on a comparison between the circuit voltage and the voltage threshold range, including:

[0020] if the second circuit voltage of the second key signal circuit is located in the fourth voltage threshold range, it is determined that the second key signal circuit is turned on;

[0021] if the second circuit voltage is located in the fifth voltage threshold range, it is determined that the second key signal circuit is turned off;

[0022] if the second circuit voltage is located in the sixth voltage threshold range, it is determined that the second key signal circuit is short-circuited;

[0023] If the second loop voltage is not located in the fourth voltage threshold range, the fifth voltage threshold range and the sixth voltage threshold range, it is determined that the second key signal loop is faulty.

[0024] In some embodiments of the present application, the first voltage threshold range is different from the fourth voltage threshold range, the second voltage threshold range is different from the fifth voltage threshold range, and the third voltage threshold range is the same as the sixth voltage threshold range.

[0025] In some embodiments of the present application, the loop state includes loop short circuit, loop disconnection, loop conduction and loop error, and the degree of relevance of the loop short circuit, the loop disconnection, the loop conduction and the loop error to the P gear key state decreases in turn.

[0026] In some embodiments of the present application, the multiple key signal loops are two key signal loops; based on the loop state and the degree of relevance of the loop state to the P gear key state, the target loop state is determined, including:

[0027] If the loop state of one of the key signal loops is loop short circuit, the loop short circuit is determined as the target loop state;

[0028] If the loop states of the two key signal loops are not loop short circuit, and the loop state of one of the key signal loops is loop disconnection, the loop disconnection is determined as the target loop state;

[0029] If the loop states of the two key signal loops are not loop short circuit and loop disconnection, and the loop state of one of the key signal loops is loop conduction, the loop conduction is determined as the target loop state;

[0030] If the loop states of the two key signal loops are loop error, the loop error is determined as the target loop state.

[0031] In some embodiments of the present application, the P gear key state matched with the target loop state is determined as the current P gear key state, including:

[0032] If the target loop state is loop short circuit or loop error, it is determined that the P gear key is faulty;

[0033] If the target loop state is loop disconnection, it is determined that the P gear key is not pressed;

[0034] If the target loop state is loop conduction, it is determined that the P gear key is pressed.

[0035] The present application provides a P gear key state recognition device, including:

[0036] A loop voltage acquisition module is configured to acquire the loop voltage of each key signal loop in the multiple key signal loops of the P gear key.

[0037] a loop state determination module configured to determine a loop state of each of the key signal loop based on a comparison between the loop voltage and a voltage threshold range, wherein the voltage threshold range is used to divide the loop states, and the loop state is used to represent a connection state or an abnormal state of the key signal loop;

[0038] a target loop state determination module configured to determine a target loop state based on the loop state and a correlation degree between the loop state and the P-gear key state, wherein the target loop state is a loop state with the largest correlation degree to the P-gear key state among the loop states, and the correlation degree reflects a determination reference of the P-gear key state;

[0039] a key state determination module configured to set the P-gear key state matched with the target loop state as the current P-gear key state.

[0040] The application further provides a computer readable storage medium storing a program or instructions, which causes a computer to execute the steps of any of the above methods.

[0041] The application further provides a vehicle, comprising:

[0042] one or more processors;

[0043] a memory configured to store one or more programs or instructions;

[0044] the processor is configured to execute the steps of any of the above methods by invoking the programs or instructions stored in the memory.

[0045] Compared with the prior art, the technical solutions provided by some embodiments of the application have the following advantages:

[0046] The technical solutions provided by some embodiments of the application are aimed at the P-gear key with multiple key signal loops. The loop voltage of each key signal loop is obtained, the loop state of each key signal loop is determined according to the loop voltage, the target loop state with the largest correlation degree to the P-gear key state is determined from the loop states, and the correlation degree reflects the determination reference of the P-gear key state, so that the loop state most relevant to the P-gear key state can be used to determine the current P-gear key state. In this way, the P-gear key state can be accurately identified, and the use reliability of the P-gear key is improved, and the driving safety and personal safety are ensured. BRIEF DESCRIPTION OF DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and serve to explain the principles of the application together with the specification.

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced. Obviously, the drawings can also provide further drawings based on these drawings for those of ordinary skill in the art without any creative effort.

[0049] Fig. 1 is a flow chart of a P-gear button state recognition method according to some embodiments of the present application.

[0050] Fig. 2 is a structural schematic diagram of a two-way button signal loop according to some embodiments of the present application.

[0051] Fig. 3 is a structural block diagram of a P-gear button state recognition device according to some embodiments of the present application.

[0052] Fig. 4 is a structural schematic diagram of a vehicle according to some embodiments of the present application. DETAILED DESCRIPTION

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced. Obviously, the drawings can also provide further drawings based on these drawings for those of ordinary skill in the art without any creative effort.

[0054] In the following description, many specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be practiced without the specific details. It is apparent that the embodiments described in the specification are only some embodiments of the present application, not all embodiments.

[0055] Fig. 1 is a flow chart of a P-gear button state recognition method according to some embodiments of the present application. The method is suitable for various driving conditions, can accurately recognize the P-gear button state, and can be applied to a P-gear button integrated with an electronic handbrake switch. The method can be executed by a P-gear button state recognition device, which can be implemented in software and / or hardware. As shown in Fig. 1, the method includes the following steps:

[0056] S110, obtaining the loop voltage of each button signal loop in the multi-way button signal loop of the P-gear button.

[0057] In the technical solution of the present application, the multi-path key signal loop can include two key signal loops or three key signal loops. Some embodiments of the present application take two key signal loops as an example to explain the technical solution of the present application. For example, referring to FIG. 2, the two key signal loops include a first key signal loop CH1 (Channel 1) and a second key signal loop CH2 (Channel 2). The microcontroller unit MCU (Microcontroller Unit) monitors the loop voltage of the first key signal loop CH1 and the second key signal loop CH2 in real time through two ports. The port voltage obtained by the microcontroller unit MCU is the loop voltage. In some embodiments of the present application, the two key signal loops are analog circuits, and the loop voltage is an analog voltage.

[0058] In S120, the loop state of each key signal loop is determined based on the comparison between the loop voltage and the voltage threshold range.

[0059] The voltage threshold range is used to divide the loop state, and the loop state is used to represent the on-off state or abnormal state of the key signal loop.

[0060] FIG. 2 is only a schematic diagram. In the actual key signal loop, a resistor is also provided in series and / or in parallel. By setting the resistor, the loop voltage of the key signal loop in different loop states can be different. Therefore, different voltage threshold ranges can be calibrated to represent different loop states, and then the loop state of the corresponding key signal loop can be determined by comparing the loop voltage with the voltage threshold range. In addition, the loop state is used to represent the on-off state or abnormal state of the key signal loop, wherein the on-off state includes conduction (i.e. loop switch is pressed) or disconnection (i.e. loop switch is not pressed), and the abnormal state includes short circuit or error. Correspondingly, in the optional example, the loop state can include loop short circuit, loop disconnection, loop conduction and loop error.

[0061] In some embodiments, based on the comparison between the loop voltage and the voltage threshold range, the loop state of each key signal loop is determined, including: comparing the loop voltage with the voltage threshold range under the corresponding key signal loop, determining the target voltage threshold range where the loop voltage is located from the voltage threshold range; based on the target voltage threshold range and the corresponding relationship between the voltage threshold range under the corresponding key signal loop and the loop state, determining the loop state of the corresponding key signal loop.

[0062] In the scheme, the voltage threshold range corresponding to each circuit state can be set according to the loop resistance of the key signal loop. For example, if the loop resistances of the two key signal loops are the same, the voltage threshold range of each key signal loop is the same for any same circuit state. If the loop resistances of the two key signal loops are different, the voltage threshold range of each key signal loop is different for some same circuit states (except for short circuit, because the voltage is the same). Based on this, the corresponding relationship between the voltage threshold range and the circuit state can be associated with each key signal loop. After the loop voltage of each key signal loop is obtained, the loop voltage is compared with the voltage threshold range of the corresponding key signal loop to determine the voltage threshold range to which the loop voltage belongs. The voltage threshold range is taken as the target voltage threshold range. Then, according to the corresponding relationship between the voltage threshold range and the circuit state, the circuit state corresponding to the target voltage threshold range is determined, and the circuit state is determined as the circuit state of the corresponding key signal loop.

[0063] Specifically, in some embodiments, the multiple key signal loops include a first key signal loop and a second key signal loop. Based on the comparison between the loop voltage and the voltage threshold range, the circuit state of each key signal loop is determined, including: if the first loop voltage of the first key signal loop is located in the first voltage threshold range, it is determined that the first key signal loop is turned on; if the first loop voltage is located in the second voltage threshold range, it is determined that the first key signal loop is disconnected; if the first loop voltage is located in the third voltage threshold range, it is determined that the first key signal loop is short-circuited; and if the first loop voltage is not located in the first voltage threshold range, the second voltage threshold range, or the third voltage threshold range, it is determined that the first key signal loop is incorrect.

[0064] And / or, based on the comparison between the loop voltage and the voltage threshold range, the circuit state of each key signal loop is determined, including: if the second loop voltage of the second key signal loop is located in the fourth voltage threshold range, it is determined that the second key signal loop is turned on; if the second loop voltage is located in the fifth voltage threshold range, it is determined that the second key signal loop is disconnected; if the second loop voltage is located in the sixth voltage threshold range, it is determined that the second key signal loop is short-circuited; and if the second loop voltage is not located in the fourth voltage threshold range, the fifth voltage threshold range, or the sixth voltage threshold range, it is determined that the second key signal loop is incorrect.

[0065] In the embodiment, there is no intersection between the first voltage threshold range, the second voltage threshold range and the third voltage threshold range, and the first voltage threshold range, the second voltage threshold range and the third voltage threshold range are different from each other; there is no intersection between the fourth voltage threshold range, the fifth voltage threshold range and the sixth voltage threshold range, and the fourth voltage threshold range, the fifth voltage threshold range and the sixth voltage threshold range are different from each other. In this way, different voltage threshold ranges are set for the loop state of each key signal loop, and the loop state of the corresponding key signal loop can be quickly and accurately obtained based on the loop voltage.

[0066] In some embodiments, the first voltage threshold range is different from the fourth voltage threshold range, the second voltage threshold range is different from the fifth voltage threshold range, and the third voltage threshold range is the same as the sixth voltage threshold range. That is, for the first key signal loop and the second key signal loop, the voltage threshold range for determining the loop conduction is different, the voltage threshold range for determining the loop disconnection is different, the voltage threshold range for determining the loop short circuit is the same, and the voltage threshold range for determining the loop error is different. Therefore, by setting different voltage threshold ranges for the same loop state under different key signal loops, the functional safety requirement is met, and common cause failure is prevented.

[0067] For example, the first voltage threshold range is 1-1.4V (Volt, volt), the second voltage threshold range is 3.6-3.9V, and the third voltage threshold range is 4.9-5.1V or 0-0.2V. Specifically, if the first loop voltage is located in 1-1.4V, it is determined that the first key signal loop is conducted; if the first loop voltage is located in 3.6-3.9V, it is determined that the first key signal loop is disconnected; if the first loop voltage is located in 4.9-5.1V or 0-0.2V, it is determined that the first key signal loop is short-circuited; and if the first loop voltage does not meet any of the above conditions, it is determined that the first key signal loop is erroneous.

[0068] The fourth voltage threshold range is 3.3-3.7V, the fifth voltage threshold range is 0.83-0.97V, and the sixth voltage threshold range is 4.9-5.1V or 0-0.2V. Specifically, if the second loop voltage is located in 3.3-3.7V, it is determined that the second key signal loop is conducted; if the second loop voltage is located in 0.83-0.97V, it is determined that the second key signal loop is disconnected; if the second loop voltage is located in 4.9-5.1V or 0-0.2V, it is determined that the second key signal loop is short-circuited; and if the second loop voltage does not meet any of the above conditions, it is determined that the second key signal loop is erroneous.

[0069] In S130, the target loop state is determined based on the loop state and the correlation degree between the loop state and the P-gear key state.

[0070] The target circuit state is a circuit state most relevant to the P-gear button state among the circuit states, and the relevance reflects a judgment criterion of the P-gear button state. In this embodiment, the circuit state most relevant to the P-gear button state among the circuit states of the two button signal circuits is taken as the judgment criterion of the P-gear button state, so that the judgment logic of the P-gear button state is avoided from being confused, and the accuracy of the P-gear button state recognition is improved. In particular, if the circuit states of the two button signal circuits are the same, any one of the circuit states is the target circuit state.

[0071] In some embodiments, the relevance of the circuit state to the P-gear button state is set based on the functional safety requirement. Based on this, in some specific embodiments, the circuit states include a circuit short circuit, a circuit open circuit, a circuit conduction and a circuit error, and the relevance of the circuit short circuit, the circuit open circuit, the circuit conduction and the circuit error to the P-gear button state decreases in turn. Specifically, if the circuit state of one button signal circuit is the circuit short circuit, the circuit short circuit is determined as the target circuit state; if the circuit states of the two button signal circuits are not the circuit short circuit, and the circuit state of one button signal circuit is the circuit open circuit, the circuit open circuit is determined as the target circuit state; if the circuit states of the two button signal circuits are not the circuit short circuit and the circuit open circuit, and the circuit state of one button signal circuit is the circuit conduction, the circuit conduction is determined as the target circuit state; if the circuit states of the two button signal circuits are the circuit error, the circuit error is determined as the target circuit state.

[0072] S140, setting the P-gear button state matched with the target circuit state as the current P-gear button state.

[0073] The scheme associates the circuit state with the P-gear button state and establishes the corresponding relationship between the circuit state and the P-gear button state. After the target circuit state is determined, the P-gear button state corresponding to the target circuit state, i.e. the current P-gear button state, can be directly obtained in combination with the corresponding relationship between the circuit state and the P-gear button state.

[0074] In some embodiments, setting the P-gear button state matched with the target circuit state as the current P-gear button state includes: if the target circuit state is the circuit short circuit or the circuit error, determining that the P-gear button is faulty; if the target circuit state is the circuit open circuit, determining that the P-gear button is not pressed; and if the target circuit state is the circuit conduction, determining that the P-gear button is pressed.

[0075] Based on the above scheme, the correspondence between the loop states of the two key signal loops and the P-gear key state can refer to Table 1: wherein No Press represents loop disconnection, Press represents loop conduction, Fault represents loop error, SC represents loop short circuit, 0x0 represents that the P-gear key is not pressed, 0x1 represents that the P-gear key is pressed, and 0x2 represents P-gear key failure. As can be seen from Table 1, if the loop state of one of the first key signal loop CH1 and the second key signal loop CH2 is loop short circuit, it is determined that the P-gear key is faulty; if the loop states of the first key signal loop CH1 and the second key signal loop CH2 are neither loop short circuit nor loop disconnection, and the loop state of one of the key signal loops is loop conduction, it is determined that the P-gear key is pressed; and if the loop states of the first key signal loop CH1 and the second key signal loop CH2 are loop error, it is determined that the P-gear key is faulty.

[0076] Table 1: Correspondence between loop states of two key signal loops and P-gear key state

[0077] In addition, in some embodiments, when it is determined that the P-gear key is faulty, P-gear key failure information is reported. In this way, the after-sales maintenance personnel can be notified in a timely manner, so that the after-sales maintenance personnel can accurately determine the fault point, repair in a timely manner, and reduce the risk of driving.

[0078] The P-gear key state recognition method provided by some embodiments of the present application is for a P-gear key having multiple key signal loops. The loop voltage of each key signal loop is obtained, the loop state of each key signal loop is determined according to the loop voltage, and the target loop state most related to the P-gear key state is determined from the loop states. The degree of correlation reflects the determination criterion of the P-gear key state, so that the loop state most related to the P-gear key state can be used to determine the current P-gear key state. In this way, the P-gear key state can be accurately recognized by the technical solution of the present application, thereby improving the use reliability of the P-gear key and ensuring driving safety and personal safety.

[0079] The multiple key signal loops can also include three key signal loops, and the working logic of the three key signal loops is similar to that of the two key signal loops, which can be adapted and designed by those skilled in the art.

[0080] Corresponding to the P-gear button state recognition method provided by some embodiments of the present application, some embodiments of the present application further provide a P-gear button state recognition device. FIG. 3 is a structural block diagram of the P-gear button state recognition device provided by some embodiments of the present application. As shown in FIG. 3, the P-gear button state recognition device comprises:

[0081] a loop voltage acquisition module 21 configured to acquire a loop voltage of each of a plurality of key signal loops of the P-gear button;

[0082] a loop state determination module 22 configured to determine a loop state of each of the plurality of key signal loops based on a comparison between the loop voltage and a voltage threshold range, wherein the voltage threshold range is used to divide the loop state, and the loop state is used to represent an on-off condition or an abnormal condition of the key signal loop;

[0083] a target loop state determination module 23 configured to determine a target loop state based on the loop state and a correlation degree between the loop state and the P-gear button state, wherein the target loop state is a loop state with the largest correlation degree to the P-gear button state among the loop states, and the correlation degree reflects a judgment basis of the P-gear button state;

[0084] a button state determination module 24 configured to set the P-gear button state matched with the target loop state as a current P-gear button state.

[0085] In some embodiments, the loop state determination module 22 is specifically configured to:

[0086] compare the loop voltage with the voltage threshold range corresponding to the key signal loop, and determine a target voltage threshold range in which the loop voltage is located from the voltage threshold range;

[0087] determine the loop state of the key signal loop based on the target voltage threshold range and a corresponding relationship between the voltage threshold range corresponding to the key signal loop and the loop state.

[0088] In some embodiments, the loop state determination module 22 is specifically configured to:

[0089] if the first loop voltage of the first key signal loop is located in the first voltage threshold range, it is determined that the first key signal loop is turned on;

[0090] if the first loop voltage is located in the second voltage threshold range, it is determined that the first key signal loop is turned off;

[0091] if the first loop voltage is located in the third voltage threshold range, it is determined that the first key signal loop is short-circuited;

[0092] if the first loop voltage is not located in the first voltage threshold range, the second voltage threshold range and the third voltage threshold range, determining that the first key signal loop is erroneous;

[0093] And / or, based on the comparison between the loop voltage and the voltage threshold range, determining the loop state of each key signal loop, comprising:

[0094] if the second loop voltage of the second key signal loop is located in the fourth voltage threshold range, determining that the second key signal loop is turned on;

[0095] if the second loop voltage is located in the fifth voltage threshold range, determining that the second key signal loop is turned off;

[0096] if the second loop voltage is located in the sixth voltage threshold range, determining that the second key signal loop is short-circuited;

[0097] if the second loop voltage is not located in the fourth voltage threshold range, the fifth voltage threshold range and the sixth voltage threshold range, determining that the second key signal loop is erroneous.

[0098] In some embodiments, the first voltage threshold range is different from the fourth voltage threshold range, the second voltage threshold range is different from the fifth voltage threshold range, and the third voltage threshold range is the same as the sixth voltage threshold range.

[0099] In some embodiments, the loop state comprises loop short-circuit, loop turn-off, loop turn-on and loop error, and the degree of relevance of the loop short-circuit, the loop turn-off, the loop turn-on and the loop error to the P-gear key state decreases in turn.

[0100] In some embodiments, the plurality of key signal loops is two key signal loops; and the target loop state determination module 23 is specifically configured to:

[0101] if the loop state of one of the two key signal loops is loop short-circuit, determining the loop short-circuit as the target loop state;

[0102] if the loop states of the two key signal loops are not loop short-circuit, and the loop state of one of the two key signal loops is loop turn-off, determining the loop turn-off as the target loop state;

[0103] if the loop states of the two key signal loops are not loop short-circuit and loop turn-off, and the loop state of one of the two key signal loops is loop turn-on, determining the loop turn-on as the target loop state;

[0104] if the loop states of the two key signal loops are loop error, determining the loop error as the target loop state.

[0105] In some embodiments, the key state determination module 24 is specifically configured to:

[0106] If the target circuit state is a circuit short circuit or a circuit error, it is determined that the P-gear button is faulty;

[0107] If the target circuit state is a circuit open, it is determined that the P-gear button is not pressed;

[0108] If the target circuit state is a circuit on, it is determined that the P-gear button is pressed.

[0109] In some embodiments, further comprising a fault reporting module, configured to:

[0110] When it is determined that the P-gear button is faulty, reporting P-gear button fault information.

[0111] The P-gear button state recognition device disclosed in the above embodiments can perform the P-gear button state recognition method disclosed in the above embodiments, and has the same or corresponding beneficial effects. To avoid repetition, it will not be described here.

[0112] Some embodiments of the present application also provide a computer readable storage medium storing programs or instructions, which cause a computer to execute the steps of any of the above methods.

[0113] For example, the programs or instructions cause the computer to execute a P-gear button state recognition method, which comprises:

[0114] Obtaining the circuit voltage of each key signal circuit in the multiple key signal circuits of the P-gear button;

[0115] Based on the comparison of the circuit voltage and the voltage threshold range, determining the circuit state of each key signal circuit; wherein the voltage threshold range is used to divide the circuit state, and the circuit state is used to represent the on-off state or abnormal state of the key signal circuit;

[0116] Based on the circuit state and the correlation degree between the circuit state and the P-gear button state, determining a target circuit state, wherein the target circuit state is the circuit state with the largest correlation degree to the P-gear button state among the circuit states, and the correlation degree reflects the determination reference of the P-gear button state;

[0117] Setting the P-gear button state matched with the target circuit state as the current P-gear button state.

[0118] In some embodiments of the present application, the computer executable instructions, when executed by a computer processor, can also be used to execute the technical solutions of any of the above P-gear button state recognition methods provided by some embodiments of the present application, to achieve the corresponding beneficial effects.

[0119] From the above description about the embodiments, those skilled in the art can clearly understand that some embodiments of the present application can be realized by means of software and necessary universal hardware, and of course can also be realized by hardware, but in many cases the former is a better implementation. Based on such understanding, the technical solutions of some embodiments of the present application can be embodied in the form of a software product, and the computer software product can be stored in a computer readable storage medium, such as a floppy disk, a ROM, a RAM, a FLASH, a hard disk, or an optical disc, and includes a plurality of instructions used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present application.

[0120] Some embodiments of the present application also provide a vehicle, including: one or more processors; a memory for storing one or more programs or instructions; and the processor is configured to execute the steps of the above method by invoking the programs or instructions stored in the memory, so as to realize the corresponding beneficial effects.

[0121] FIG. 4 is a schematic diagram of a hardware structure of a vehicle according to some embodiments of the present application. As shown in FIG. 4, the vehicle includes one or more processors 301 and a memory 302.

[0122] The processor 301 can be a central processing unit (CPU) or other forms of processing units having data processing and / or instruction execution capabilities, and can control other components in the vehicle to perform desired functions.

[0123] The memory 302 can include one or more computer program products, which can include various forms of computer readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM), cache memory, and / or the like. The non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, and / or the like. One or more computer program instructions can be stored in the computer readable storage medium, and the processor 301 can run the program instructions to implement the above-mentioned P key state recognition method of the embodiments of the present application, and / or other desired functions. Various contents such as input signals, signal components, noise components, and the like can also be stored in the computer readable storage medium.

[0124] In one example, the vehicle can further include an input device 303 and an output device 304, which are interconnected via a bus system and / or other forms of connection means (not shown).

[0125] Further, the input device 303 can include, for example, a keyboard, a mouse, and the like.

[0126] The output device 304 can output various information including the determined distance information, direction information, and the like, to the outside. The output device 304 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0127] Of course, for simplicity, only some of the components related to the present application in the vehicle are shown in FIG. 4, and components such as a bus, an input / output interface, and the like are omitted. In addition to this, the vehicle can include any other appropriate components according to a specific application.

[0128] It is to be noted that, in this document, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action, without necessarily requiring or implying any actual such relationship or order between or among entities or actions. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. In addition, terms such as "include", "comprise", or "have" are intended to be inclusive, and do not exclude other elements or methods which do not specifically appear in the listing.

[0129] The above merely illustrates specific embodiments of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Accordingly, the present application will not be limited to these embodiments, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for identifying the state of a P gear button, characterized in that: include: Obtaining a circuit voltage of each key signal circuit in multiple key signal circuits of the P gear key; Determining the loop state of each key signal loop based on a comparison between the loop voltage and a voltage threshold range; wherein the voltage threshold range is used to classify the loop state, and the loop state is used to indicate whether the key signal loop is on or off or in an abnormal state; determining a target circuit state based on the circuit states and the correlation between the circuit states and the P gear button state, wherein the target circuit state is the circuit state with the greatest correlation with the P gear button state among the circuit states, the correlation reflecting a criterion for determining the P gear button state; The P gear button state that matches the target circuit state is set as the current P gear button state.

2. The method according to claim 1, characterized in that Determining a loop state of each key signal loop based on a comparison between the loop voltage and a voltage threshold range includes: Comparing the loop voltage with a voltage threshold range under a corresponding key signal loop, and determining a target voltage threshold range within which the loop voltage lies from the voltage threshold range; The circuit state of the corresponding key signal circuit is determined based on the target voltage threshold range and the corresponding relationship between the voltage threshold range and the circuit state of the corresponding key signal circuit.

3. The method according to any one of claims 1-2, characterized in that The multiple key signal circuits include a first key signal circuit and a second key signal circuit; and determining a circuit state of each key signal circuit based on a comparison between the circuit voltage and a voltage threshold range includes: If the first loop voltage of the first key signal loop is within a first voltage threshold range, determining that the first key signal loop is turned on; If the voltage of the first circuit is within a second voltage threshold range, determining that the first key signal circuit is disconnected; If the voltage of the first circuit is within a third voltage threshold range, determining that the first key signal circuit is short-circuited; If the first loop voltage is not within the first voltage threshold range, the second voltage threshold range, and the third voltage threshold range, determining that the first key signal loop is faulty; And / or, determining the loop state of each key signal loop based on a comparison between the loop voltage and a voltage threshold range, including: If the second loop voltage of the second key signal loop is within a fourth voltage threshold range, determining that the second key signal loop is turned on; If the second circuit voltage is within a fifth voltage threshold range, determining that the second key signal circuit is disconnected; If the second circuit voltage is within a sixth voltage threshold range, determining that the second key signal circuit is short-circuited; If the second loop voltage is not within the fourth voltage threshold range, the fifth voltage threshold range, and the sixth voltage threshold range, it is determined that the second key signal loop is faulty.

4. The method according to claim 3, characterized in that The first voltage threshold range is different from the fourth voltage threshold range, the second voltage threshold range is different from the fifth voltage threshold range, and the third voltage threshold range is the same as the sixth voltage threshold range.

5. The method according to any one of claims 1 to 4, characterized in that: The circuit status includes the circuit short circuit, the circuit disconnection, the circuit conduction and the circuit error, and the correlation between the circuit short circuit, the circuit disconnection, the circuit conduction and the circuit error and the P gear button status decreases in sequence.

6. The method according to any one of claims 1 to 5, characterized in that: The multi-channel key signal circuit is a two-channel key signal circuit; based on the circuit state and the degree of correlation between the circuit state and the P gear key state, determining the target circuit state includes: If the circuit state of one of the key signal circuits is the circuit short circuit, determining the circuit short circuit as the target circuit state; If the circuit states of both key signal circuits are not the circuit short circuit, and the circuit state of one key signal circuit is the circuit disconnection, determining the circuit disconnection as the target circuit state; If the loop states of the two key signal loops are neither the loop short circuit nor the loop disconnection, and the loop state of one key signal loop is the loop conduction, determining the loop conduction as the target loop state; If the loop states of the two key signal loops are both the loop error, the loop error is determined as the target loop state.

7. The method according to any one of claims 1 to 6, characterized in that: Setting the P gear button state matched by the target circuit state as the current P gear button state includes: If the target circuit state is the circuit short circuit or the circuit error, it is determined that the P gear button is faulty; If the target circuit state is that the circuit is disconnected, then it is determined that the P gear button is not pressed; If the target circuit state is that the circuit is conductive, it is determined that the P gear button is pressed.

8. A device for identifying the state of a P gear button, characterized in that: include: A circuit voltage acquisition module, used to obtain the circuit voltage of each of the multiple key signal circuits of the P gear key; a circuit state determination module, configured to determine the circuit state of each key signal circuit based on a comparison between the circuit voltage and a voltage threshold range; wherein the voltage threshold range is used to classify the circuit state, and the circuit state is used to indicate whether the key signal circuit is on, off, or abnormal; a target circuit state determining module, configured to determine a target circuit state based on the circuit states and a correlation between the circuit states and the P gear button state, wherein the target circuit state is the circuit state having the greatest correlation with the P gear button state among the circuit states, the correlation reflecting a criterion for determining the P gear button state; The button state determination module is used to set the P gear button state matched by the target circuit state as the current P gear button state.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 7.

10. A vehicle, characterized in that: include: one or more processors; a memory for storing one or more programs or instructions; The processor is configured to execute the steps of the method according to any one of claims 1 to 7 by calling the program or instructions stored in the memory.

Citation Information

Patent Citations

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

    CN110824901A

  • Automobile P key fault detection system

    CN113103976A

  • P-gear key identification method and device, equipment and storage medium

    CN116928340A

  • Vehicle is shifted button and is listened system

    CN205207640U

  • Key state detection circuit

    CN209117826U