A gear checking method and device, electronic equipment and readable storage medium

By acquiring and verifying the gear lever position signal and steady-state duration of the electronic gear shifter, the problem of the controller outputting incorrect gears was solved, thereby improving the reliability and safety of vehicle operation.

CN117072676BActive Publication Date: 2026-05-12SAIC MOTOR
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SAIC MOTOR
Filing Date
2023-08-22
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

The controller of an electronic gear shifter is prone to errors, which can lead to the output of the wrong gear, causing the vehicle to move unexpectedly and posing a safety hazard.

Method used

By acquiring the first and second gear lever position signals output by the electronic gear shifter after shifting, the gear lever position state is determined, and the steady-state duration is detected to determine whether the two are the same. Then, an appropriate gear command is output to verify the gear position.

Benefits of technology

It effectively prevents system errors from affecting the gear position signal, reduces the probability of incorrect gear output, and improves the reliability and safety of vehicle operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117072676B_ABST
    Figure CN117072676B_ABST
Patent Text Reader

Abstract

The application discloses a gear position inspection method and device, electronic equipment and a readable storage medium. The method comprises the following steps: acquiring a first gear lever position confidence signal and a second gear lever position confidence signal, the gear lever position confidence signal being a voltage signal output after gear shifting of an electronic gear shifter; determining a first gear lever position state according to the first gear lever position confidence signal; determining a second gear lever position state according to the second gear lever position confidence signal; determining a first steady state time length of the first gear lever position state and a second steady state time length of the second gear lever position state; judging whether the first gear lever position state and the second gear lever position state are the same; obtaining a judgment result; and determining an output gear position instruction according to the first steady state time length, the second steady state time length and the judgment result. The application effectively prevents the gear lever position state from changing within a certain time by detecting the steady state time length, and reduces the influence of the system's own errors on the gear lever position confidence signal by verifying the two gear lever position states with each other.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle engineering, and more specifically, to a gear position detection method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the development of automotive technology, gear shifting has gradually shifted from manual mechanical shifting to electronic signal-controlled shifting, allowing drivers to change gears simply through an electronic shifter. The electronic shifter's circuit structure comprises two circuits and six Hall effect chips: three in one circuit and three in another. Each pair of Hall effect chips forms a group. When the electronic shifter changes gears, this group of Hall effect chips conducts, outputting two different resistance signals, which in turn acquire two different voltage signals. The controller in the electronic shifter identifies these voltage signals and outputs the driver's desired gear. However, due to the inherent limitations of the system, errors can occur. The controller may missample the voltage signal after the driver shifts gears, leading to the output of an incorrect gear, unexpected vehicle movement, and potential safety issues. Summary of the Invention

[0003] In view of this, this application provides a gear position verification method, apparatus, electronic device, and readable storage medium to solve the problem of controller outputting incorrect gear positions.

[0004] To achieve the above objectives, the following solution is proposed:

[0005] A gear position inspection method, the method comprising:

[0006] Acquire the first gear lever position signal and the second gear lever position signal, wherein the gear lever position signal is the voltage signal output by the electronic gear shifter after shifting gears;

[0007] The first stop lever position state is determined based on the first stop lever position signal, and the second stop lever position state is determined based on the second stop lever position signal.

[0008] Determine the first steady-state duration of the first stop lever position state and the second steady-state duration of the second stop lever position state;

[0009] Determine whether the position states of the first and second stop levers are the same, and obtain the determination result;

[0010] Based on the first steady-state duration, the second steady-state duration, and the judgment result, the output gear command is determined.

[0011] Optionally, determining the first stop lever position state based on the first stop lever position signal and determining the second stop lever position state based on the second stop lever position signal includes:

[0012] The first stop lever position signal is converted from analog to digital to obtain the first analog value, and the second stop lever position signal is converted from analog to digital to obtain the second analog value.

[0013] If the first modulus value falls within the first preset range, then the state corresponding to the first preset range is determined as the first stop position state;

[0014] If the second modulus value falls within the second preset range, the state corresponding to the second preset range will be determined as the second stop position state.

[0015] Optionally, both the first and second gear lever position states are of non-fault type. The step of determining the output gear command based on the first steady-state duration, the second steady-state duration, and the judgment result includes:

[0016] If both the first steady-state duration and the second steady-state duration are greater than the first preset duration and the judgment results are the same, then a gear change command is determined based on either the first gear lever position or the second gear lever position and output as the gear command.

[0017] If the first steady-state duration and the second steady-state duration are both greater than the first preset duration and neither is greater than the second preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command.

[0018] If the first steady-state duration and the second steady-state duration are both greater than the second preset duration and neither is greater than the third preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command, the second preset duration is greater than the first preset duration, and the third preset duration is greater than the second preset duration;

[0019] If both the first steady-state duration and the second steady-state duration are greater than the third preset duration and the judgment results are different, then the output gear position command is determined to be a gear position unchanged command.

[0020] Optionally, both the first and second stop lever position states are of a non-fault type, and the method further includes:

[0021] If at least one of the first steady-state duration and the second steady-state duration is not greater than the first preset duration, then the output gear command is determined to be a gear-unchanged command.

[0022] Optional, also includes:

[0023] If both the first gear lever position state type and the second gear lever position state type are fault types, then the output gear command is determined to be a gear unchanged command;

[0024] And / or,

[0025] If the type of the first gear lever position state is fault type and the type of the second gear lever position state is non-fault type, then the output gear command is determined to be a gear change command based on the second gear lever position state.

[0026] A gear position testing device, the device comprising:

[0027] The signal acquisition unit is used to acquire the first gear lever position signal and the second gear lever position signal, wherein the gear lever position signal is the voltage signal output by the electronic gear shifter after shifting gears;

[0028] A state determination unit is used to determine the position state of the first stop lever based on the first stop lever position signal, and to determine the position state of the second stop lever based on the second stop lever position signal.

[0029] The duration determination unit is used to determine the first steady-state duration of the first stop lever position state and the second steady-state duration of the second stop lever position state;

[0030] The judgment unit is used to determine whether the position state of the first stop lever is the same as the position state of the second stop lever, and to obtain a judgment result;

[0031] The instruction determination unit is used to determine the output gear instruction based on the first steady-state duration, the second steady-state duration, and the judgment result.

[0032] Optionally, the state determination unit includes:

[0033] The signal conversion subunit is used to perform analog-to-digital conversion on the first stop lever position signal to obtain a first analog value, and to perform the same analog-to-digital conversion on the second stop lever position signal to obtain a second analog value.

[0034] The range determination subunit is used to determine the state corresponding to the first preset range as the first stop position state when the first modulus value falls into the first preset range; and to determine the state corresponding to the second preset range as the second stop position state when the second modulus value falls into the second preset range.

[0035] Optionally, both the first and second stop lever position states are of the non-fault type, and the instruction determination unit is specifically configured as follows:

[0036] If both the first steady-state duration and the second steady-state duration are greater than the first preset duration and the judgment results are the same, then a gear change command is determined based on either the first gear lever position or the second gear lever position and output as the gear command.

[0037] If the first steady-state duration and the second steady-state duration are both greater than the second preset duration and neither is greater than the third preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command, the second preset duration is greater than the first preset duration, and the third preset duration is greater than the second preset duration;

[0038] If both the first steady-state duration and the second steady-state duration are greater than the third preset duration and the judgment results are different, then the output gear position command is determined to be a gear position unchanged command.

[0039] An electronic device, including a memory and a processor;

[0040] The memory is used to store programs;

[0041] The processor is used to execute the program to implement each step of any of the gear position verification methods described above.

[0042] A readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the gear position verification methods described above.

[0043] This application provides a gear position verification method, apparatus, electronic device, and readable storage medium. The method verifies the gear position by using two signals—a first gear position signal and a second gear position signal—output after a change in gear position, to determine the gear position command output to the controller. In this method, the first steady-state duration of the first gear position state, the second steady-state duration of the second gear position state, and whether the two position states are the same are detected. Detecting the steady-state duration effectively prevents changes in the gear position state within a certain time period, and mutual verification between the two gear position states reduces the impact of system errors on the gear position signal. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0045] Figure 1A schematic flowchart illustrating a gear position verification method provided in an embodiment of this application;

[0046] Figure 2 This is a schematic diagram of a circuit structure provided in an embodiment of this application;

[0047] Figure 3 A flowchart illustrating another gear position verification method provided in this application embodiment.

[0048] Figure 4 This is a schematic diagram of the structure of a gear position testing device provided in an embodiment of this application;

[0049] Figure 5 This is a hardware structure block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0051] like Figure 1 As shown in the figure, this application provides a gear position verification method, which may include:

[0052] S10. Obtain the first gear lever position signal and the second gear lever position signal. The gear lever position signal is the voltage signal output by the electronic gear shifter after shifting gears.

[0053] In this embodiment, both the first and second gear lever position signals can be voltage signals output by the electronic gear shifter after gear shifting. These voltage signals can be used by the controller to identify and determine the final gear position. When the driver uses the electronic gear shifter to perform a gear shift, the operation changes the circuit structure, resulting in two different signals. These two different signals can be the first and second gear lever position signals in this embodiment. Specifically, as shown... Figure 2The circuit diagram shown contains six Hall effect chips C. Three Hall effect chips C are in circuit A, and the other three are in circuit B. Each Hall effect chip C is connected in parallel with a resistor, where D1, D2, D3, D4, D5, D6, D7, and D8 can be resistors with different resistance values. One Hall effect chip C in circuit A and one Hall effect chip C in circuit B form a group of Hall effect chips. The shifting operation of the electronic shifter changes the magnetic field in the circuit, causing a group of Hall effect chips to conduct. This changes the resistance in circuits A and B, resulting in two different resistance signals, E and F. By converting these resistance signals, two different voltage signals can be acquired. The method of acquiring the first and second shift lever position signals is not limited; they can be acquired manually or from other systems.

[0054] S11. Determine the position state of the first stop lever based on the first stop lever position signal, and determine the position state of the second stop lever based on the second stop lever position signal.

[0055] The position state of the stop lever can represent a change in the position of the stop lever. Optionally, it can be a change in state such as moving it up once, moving it up twice, no change, moving it down once, or moving it down twice. Of course, the method of determining the position state of the stop lever is not limited. In this embodiment, the analog signal of the collected stop lever position signal can be converted into a digital signal through analog-to-digital conversion technology, and the stop lever position state corresponding to the signal can be determined by the magnitude of the digital signal.

[0056] S12. Determine the first steady-state duration of the first stop lever position state and the second steady-state duration of the second stop lever position state.

[0057] The steady-state duration refers to the duration during which the lever position signal remains stable. Specifically, it can be determined using a timer. In this embodiment, to prevent sudden changes in the lever position signal caused by system jumps, which could affect the controller's gear position signal recognition, a steady-state duration can be set for the lever position signal. If the lever position signal does not change abruptly within the steady-state duration, it indicates that the lever position signal is in a stable state and can be used for the controller's gear position signal recognition; if the lever position signal changes abruptly within the steady-state duration, the lever position signal can be considered an invalid signal.

[0058] S13. Determine whether the position state of the first stop lever is the same as that of the second stop lever, and obtain the determination result.

[0059] Although the first and second gear lever position signals are two different voltage signals, they are simultaneously output after a single gear shift operation by the electronic shifter. Therefore, the corresponding gear lever position states of the first and second gear lever position signals should be the same. This embodiment can determine whether there are any problems with the first and second gear lever position signals through cross-verification of their states. If the first and second gear lever position states are the same, it indicates that neither signal is faulty, and both signals can be considered valid. If the first and second gear lever position states are different, it indicates that either signal or both signals have a problem.

[0060] S14. Determine the output gear command based on the first steady-state duration, the second steady-state duration, and the judgment result.

[0061] The setting of the steady-state duration can reduce the system's influence on the gear lever position signal. The judgment result can indicate whether there is a problem with the gear lever position signal and determine a suitable gear lever position signal, which is then output to the controller for identification. The controller outputs the final gear position command, which can be a command used to determine the gear position after the electronic shifter shifts. Optionally, the gear position command can include two types: gear change command and gear position unchanged command. The gear change command can be a command to move up one gear, move up two gears, etc. The gear position unchanged command can be a command to maintain the original gear (after the electronic shifter shifts). This embodiment can determine whether the problem with the gear lever position signal is caused by a sudden change in the system or by an error in the acquisition of the gear lever position signal itself, based on whether the first steady-state duration and the second steady-state duration meet different duration requirements.

[0062] Furthermore, electronic gear shifting can refer to performing a gear shift operation using an electronic gear shifter. After performing a gear shift operation using the electronic gear shifter, the first and second gear lever position signals generated by this gear shift operation can be verified using the method of this embodiment, and the gear command output to the controller can be determined based on different verification results. Additionally, after performing two gear shift operations quickly using the electronic gear shifter, the first and second gear lever position signals can be verified for each gear shift operation using the method of this embodiment, and the gear command output to the controller can be determined ultimately.

[0063] Specifically, if the verification result of the first gear shift operation is that the controller outputs a gear change command, then the controller outputs the gear after the first gear shift according to the gear change command, and the second gear shift operation can be verified using the method of this embodiment (during the verification process of the second gear shift operation, the vehicle's gear is always the gear after the first gear shift); if the verification result of the first gear shift operation is that the controller outputs a gear unchanged command, then the verification of the second gear shift operation is not required.

[0064] If the verification result of the second gear shift operation is that the controller outputs a gear change command, then the controller outputs the gear after the second gear shift according to the gear change command. If the verification result of the second gear shift operation is that the controller outputs a gear unchanged command, then the controller continues to output the gear after the first gear shift. For example, if the current gear of the vehicle is first gear, and the driver needs to shift to third gear, two gear shifts can be performed quickly (the first shift is from first gear to second gear, and the second shift is from second gear to third gear). When shifting from first gear to second gear, the first gear lever position signal and the second gear lever position signal generated by the first gear shift can be verified using the method of this embodiment. If the verification result of the first gear shift operation is that the controller outputs a gear change command, then the controller shifts the vehicle's gear from first gear to second gear and verifies the first gear lever position signal and the second gear lever position signal generated by the second gear shift operation using the method of this embodiment (during the verification process of the second gear shift operation, the vehicle's gear remains in second gear). If the verification result of the second gear shift operation is that the controller outputs a command to keep the gear unchanged, then the controller continues to output second gear; if the verification result of the second gear shift operation is that the controller outputs a command to change the gear, then the controller will switch the vehicle's gear from second gear to third gear.

[0065] This application provides a gear position verification method. This method verifies the gear position using two signals: a first gear position signal and a second gear position signal output after a change in gear position, to determine the gear position command output to the controller. In this method, the first steady-state duration of the first gear position state, the second steady-state duration of the second gear position state, and whether the two position states are the same are detected. Detecting the steady-state duration effectively prevents changes in the gear position state within a certain time period, and mutual verification between the two gear position states reduces the impact of system errors on the gear position signal.

[0066] According to another gear position verification method provided in the embodiments of this application, Figure 1 Step S11 shown may include steps one through three:

[0067] Step 1: Perform analog-to-digital conversion on the first stop lever position signal to obtain the first analog value; perform analog-to-digital conversion on the second stop lever position signal to obtain the second analog value.

[0068] Step 2: If the first modulus value falls within the first preset range, then the state corresponding to the first preset range is determined as the first stop position state;

[0069] Step 3: If the second modulus value falls within the second preset range, then the state corresponding to the second preset range is determined as the second stop position state.

[0070] Analog-to-digital conversion (A / D conversion) converts a time- and amplitude-continuous analog signal into a time- and amplitude-discrete digital signal. In this embodiment, the first stop lever position signal is converted to obtain a first analog value, and the second stop lever position signal is converted to obtain a second analog value. The first and second stop lever position states are then determined according to the following analog value-state correspondence table.

[0071] Table 1 Modulus-State Correspondence Table

[0072]

[0073] The lever position status can be divided into two categories: non-fault status and fault status. The status representation is a code that the program can recognize, and different codes correspond to different lever position statuses. The first AD value can represent multiple ranges of the first modulus value, and the second AD value can represent multiple ranges of the second modulus value. Different ranges of modulus values ​​correspond to different lever position statuses (i.e., the changing statuses in Table 1).

[0074] Specifically, state A2 corresponds to code 0x0, which indicates that the electronic shifter moves up twice; state A1 corresponds to code 0x1, which indicates that the electronic shifter moves up once; state X (steady state) corresponds to code 0x2, which indicates that the electronic shifter continues to maintain the current gear; state B1 corresponds to code 0x3, which indicates that the electronic shifter moves down once; state B2 corresponds to code 0x4, which indicates that the electronic shifter moves down twice; state X (short circuit fault) corresponds to code 0x5, which indicates that a short circuit fault has occurred; and state X (open circuit fault) corresponds to code 0x6, which indicates that an open circuit fault has occurred. In this embodiment, the position state of the first shifter can be determined based on the range of modulo values ​​falling within the first modulo value; and the position state of the second shifter can be represented based on the range of modulo values ​​falling within the second modulo value. For example, if the first modulus value falls within the range of [360, 510), then the first gear lever position can be determined to be two upward movements of the electronic shifter; if the second modulus value falls within the range of [649, 794), then the second gear lever position can be determined to be one upward movement of the electronic shifter.

[0075] In another gear position verification method provided in an embodiment of this application, both the type of the first gear lever position state and the type of the second gear lever position state are non-fault types. Figure 1 Step S14 shown may include steps four through seven:

[0076] Step 4: If the first steady-state duration and the second steady-state duration are both greater than the first preset duration and the judgment results are the same, then determine the gear change command based on either the first gear lever position or the second gear lever position and output it as the gear command.

[0077] Step 5: If the first steady-state duration and the second steady-state duration are both greater than the first preset duration and neither is greater than the second preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command;

[0078] Step 6: If the first steady-state duration and the second steady-state duration are both greater than the second preset duration and neither is greater than the third preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command, the second preset duration is greater than the first preset duration, and the third preset duration is greater than the second preset duration;

[0079] Step 7: If the first steady-state duration and the second steady-state duration are both greater than the third preset duration and the judgment results are different, then the output gear command is determined to be a gear unchanged command.

[0080] The first preset duration can be the duration during which the first and second gear lever position signals tend to stabilize, and its specific value can be determined by the hardware itself. The specific values ​​of the second and third preset durations can be determined through actual vehicle calibration. This embodiment can determine whether the first and second gear lever position signals are stable signals by comparing the first preset duration with the first steady-state duration and the second steady-state duration, which can effectively prevent signal abrupt changes caused by system jumps. In this embodiment, the judgment result can be obtained by judging whether the first and second gear lever position states are the same. In this embodiment, there may be a situation where the signal states of the first and second gear lever position signals are stable, but the first and second gear lever position states are not the same. In order to exclude the situation where the difference in state is due to a short-term state caused by the system, this embodiment sets a second and third preset duration. Specifically, this embodiment can determine whether the difference in state is due to a short-term problem caused by the system or a problem with the gear lever position signal itself due to sampling errors by judging the relationship between the duration of the difference in state and the second and third preset durations. Of course, if the position of the first gear lever is different from that of the second gear lever, even if the first gear lever position signal and the second gear lever position signal are valid signals, this embodiment may not use the first gear lever position signal and the second gear lever position signal for the controller to identify the gear.

[0081] Furthermore, if both the first and second gear lever position states are non-fault types, then in this case, if at least one of the first and second steady-state durations is not greater than a first preset duration, the output gear command is determined to be a gear-unchanged command. Additionally, this embodiment may also include:

[0082] If both the first and second gear lever position states are fault types, then the output gear command is determined to be a gear unchanged command.

[0083] And / or,

[0084] If the first gear lever position state is of fault type and the second gear lever position state is of non-fault type, then the output gear command is determined to be a gear change command based on the second gear lever position state.

[0085] like Figure 3 As shown, in this embodiment of the application, after obtaining the first stop lever position signal and the second stop lever position signal, the category of the first stop lever position signal and the category of the second stop lever position signal can be determined.

[0086] If both the first and second gear position signals are faulty, then both signals are considered invalid. The controller will then be instructed to maintain the same gear position, and a serious fault will be displayed on the vehicle's dashboard.

[0087] If only one of the first and second gear lever position signals is classified as a fault, the faulty gear lever position signal is identified first. The non-faulty gear lever position signal is considered a valid signal, and a non-faulty gear lever position signal is output to the controller. A medium fault is displayed on the vehicle's instrument panel.

[0088] If both the first and second shift lever position signals are non-faulty, then the stability duration of the first and second shift lever position signals can be determined. Figure 3 The relationship between t) and the first preset duration, the second preset duration, and the third preset duration is shown;

[0089] If the stable duration is less than the first preset duration ( Figure 3 If T1 is shown, then the first gear lever position signal and the second gear lever position signal can be considered as valid signals, but the controller outputs a gear position unchanged command; if the stabilization time is not less than the first preset time, then it is determined whether the first gear lever position state and the second gear lever position state are the same;

[0090] If the position state of the first stop lever is the same as that of the second stop lever, then both the first stop lever position signal and the second stop lever position signal can be considered as valid signals, and the controller only needs to output one of the first stop lever position signal and the second stop lever position signal.

[0091] If the position of the first stop lever is different from that of the second stop lever, then determine the relationship between the stabilization time and the second preset time and the third preset time, wherein the second preset time is longer than the first preset time and the third preset time is longer than the second preset time.

[0092] If the stable duration is not less than the first preset duration and less than the second preset duration, then the first gear lever position signal and the second gear lever position signal can be considered as valid signals, but the controller outputs a gear position unchanged command.

[0093] If the stable duration is not less than the second preset duration and less than the third preset duration, then the first gear lever position signal and the second gear lever position signal can be considered as valid signals, but the controller outputs a gear position unchanged command.

[0094] If the stable duration is not less than the third preset duration, then the first gear lever position signal and the second gear lever position signal can be considered as invalid signals. The controller will output a gear position unchanged command and display a medium fault on the vehicle's instrument panel.

[0095] The cross-validation logic in this embodiment can be based on the following cross-validation logic table.

[0096] Table 2 Cross-logic verification table

[0097]

[0098]

[0099] In this configuration, signal A can be the first gear lever position signal, and signal B can be the second gear lever position signal. X can be a command to maintain the gear position. The instrument display can be the content shown on the instrument panel.

[0100] Corresponding to the gear position inspection method provided in the embodiments of this application, the embodiments of this application also provide a gear position inspection device.

[0101] like Figure 4 As shown in the figure, this application embodiment also provides a gear position testing device, which may include:

[0102] The signal acquisition unit 100 is used to acquire the first gear lever position signal and the second gear lever position signal. The gear lever position signal is the voltage signal output by the electronic gear shifter after shifting gears.

[0103] The state determination unit 110 is used to determine the position state of the first stop lever based on the first stop lever position signal, and to determine the position state of the second stop lever based on the second stop lever position signal.

[0104] The duration determination unit 120 is used to determine the first steady-state duration of the first stop lever position state and the second steady-state duration of the second stop lever position state;

[0105] The judgment unit 130 is used to determine whether the position state of the first stop lever is the same as the position state of the second stop lever, and to obtain the judgment result.

[0106] The instruction determination unit 140 is used to determine the output gear instruction based on the first steady-state duration, the second steady-state duration, and the judgment result.

[0107] In another gear position checking device provided according to an embodiment of this application, the state determination unit 110 may include:

[0108] The signal conversion subunit is used to perform analog-to-digital conversion on the first stop lever position signal to obtain the converted first analog value, and to perform analog-to-digital conversion on the second stop lever position signal to obtain the converted second analog value.

[0109] The range determination subunit is used to determine the state corresponding to the first preset range as the first stop position state when the first modulus value falls into the first preset range; and to determine the state corresponding to the second preset range as the second stop position state when the second modulus value falls into the second preset range.

[0110] In another gear position testing device provided according to an embodiment of this application, both the type of the first gear lever position state and the type of the second gear lever position state are non-fault types. The instruction determination unit 140 can be specifically configured as follows:

[0111] If both the first steady-state duration and the second steady-state duration are greater than the first preset duration and the judgment results are the same, then the gear change command is determined based on either the first gear lever position or the second gear lever position and is used as the gear command.

[0112] If the first steady-state duration and the second steady-state duration are both greater than the first preset duration and neither is greater than the second preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command;

[0113] If the first steady-state duration and the second steady-state duration are both greater than the second preset duration and neither is greater than the third preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command, the second preset duration is greater than the first preset duration, and the third preset duration is greater than the second preset duration;

[0114] If the duration of the first steady state and the duration of the second steady state are both greater than the third preset duration and the judgment results are different, then the output gear command is determined to be a gear unchanged command.

[0115] In another gear position testing device provided according to an embodiment of this application, both the type of the first gear lever position state and the type of the second gear lever position state are non-fault types. The device may further include a cyclic value output unit.

[0116] The cyclic value output unit is used to determine that the output gear position command is a gear position unchanged command if at least one of the first steady state duration and the second steady state duration is not greater than the first preset duration.

[0117] In another gear position verification device provided according to an embodiment of this application, the instruction determination unit 140 may further be specifically configured as follows:

[0118] If both the first and second gear lever position states are fault types, then the output gear command is determined to be a gear unchanged command.

[0119] And / or,

[0120] If the first gear lever position state is of fault type and the second gear lever position state is of non-fault type, then the output gear command is determined to be a gear change command based on the second gear lever position state.

[0121] like Figure 5 As shown, this application embodiment provides an electronic device 70, including at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701; wherein, the processor 701 and the memory 702 communicate with each other through the bus 703; the processor 701 is used to call program instructions in the memory 702 to execute the above-mentioned gear position verification method. The electronic device 70 in this document may be a server, PC, etc.

[0122] This application also provides a readable storage medium storing a computer program thereon, which, when executed by a processor, implements the various steps of any of the gear position verification methods described above.

[0123] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0124] In a typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input / output interfaces, network interfaces, etc.

[0125] Memory may include non-persistent memory in computer-readable storage media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM, and memory includes at least one memory chip. Memory is an example of a computer-readable medium.

[0126] Computer-readable storage media include both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0127] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0128] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0129] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0130] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for checking gear position, characterized in that, The method includes: Acquire the first gear lever position signal and the second gear lever position signal, both of which are voltage signals output by the electronic gear shifter after shifting gears; The first stop lever position state is determined based on the first stop lever position signal, and the second stop lever position state is determined based on the second stop lever position signal. Determine the first steady-state duration of the first stop lever position state and the second steady-state duration of the second stop lever position state; Determine whether the position states of the first and second stop levers are the same, and obtain the determination result; Based on the first steady-state duration, the second steady-state duration, and the judgment result, the output gear command is determined; Wherein, both the first and second gear lever position states are non-fault types, and the step of determining the output gear command based on the first steady-state duration, the second steady-state duration, and the judgment result includes: If both the first steady-state duration and the second steady-state duration are greater than the first preset duration and the judgment results are the same, then a gear change command is determined based on either the first gear lever position signal or the second gear lever position signal and output as the gear command. If the first steady-state duration and the second steady-state duration are both greater than the first preset duration and neither is greater than the second preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command. If the first steady-state duration and the second steady-state duration are both greater than the second preset duration and neither is greater than the third preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command, the second preset duration is greater than the first preset duration, and the third preset duration is greater than the second preset duration; If both the first steady-state duration and the second steady-state duration are greater than the third preset duration and the judgment results are different, then the output gear position command is determined to be a gear position unchanged command.

2. The method according to claim 1, characterized in that, Determining the position state of the first stop lever based on the first stop lever position signal, and determining the position state of the second stop lever based on the second stop lever position signal, includes: The first stop lever position signal is converted from analog to digital to obtain the first analog value, and the second stop lever position signal is converted from analog to digital to obtain the second analog value. If the first modulus value falls within the first preset range, then the state corresponding to the first preset range is determined as the first stop position state; If the second modulus value falls within the second preset range, the state corresponding to the second preset range will be determined as the second stop position state.

3. The method according to claim 1, characterized in that, The method further includes: Both the first and second stop lever position states are of non-fault type. If at least one of the first steady-state duration and the second steady-state duration is not greater than the first preset duration, then the output gear command is determined to be a gear-unchanged command.

4. The method according to claim 1, characterized in that, Also includes: If both the first gear lever position state type and the second gear lever position state type are fault types, then the output gear command is determined to be a gear unchanged command; And / or, If the type of the first gear lever position state is fault type and the type of the second gear lever position state is non-fault type, then the output gear command is determined to be a gear change command based on the second gear lever position state.

5. A gear position testing device, characterized in that, The device includes: The signal acquisition unit is used to acquire the first gear lever position signal and the second gear lever position signal, wherein the first gear lever position signal and the second gear lever position signal are both voltage signals output by the electronic gear shifter after shifting. A state determination unit is used to determine the position state of the first stop lever based on the first stop lever position signal, and to determine the position state of the second stop lever based on the second stop lever position signal. The duration determination unit is used to determine the first steady-state duration of the first stop lever position state and the second steady-state duration of the second stop lever position state; The judgment unit is used to determine whether the position state of the first stop lever is the same as the position state of the second stop lever, and to obtain a judgment result; The instruction determination unit is used to determine the output gear instruction based on the first steady-state duration, the second steady-state duration, and the judgment result; Wherein, both the first and second stop lever position states are of non-fault type, and the instruction determination unit is specifically configured as follows: If both the first steady-state duration and the second steady-state duration are greater than the first preset duration and the judgment results are the same, then a gear change command is determined based on either the first gear lever position signal or the second gear lever position signal and output as the gear command. If the first steady-state duration and the second steady-state duration are both greater than the first preset duration and neither is greater than the second preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command. If the first steady-state duration and the second steady-state duration are both greater than the second preset duration and neither is greater than the third preset duration, and the judgment results are different, then the output gear command is determined to be a gear unchanged command, the second preset duration is greater than the first preset duration, and the third preset duration is greater than the second preset duration; If both the first steady-state duration and the second steady-state duration are greater than the third preset duration and the judgment results are different, then the output gear position command is determined to be a gear position unchanged command.

6. The apparatus according to claim 5, characterized in that, The state determination unit includes: The signal conversion subunit is used to perform analog-to-digital conversion on the first stop lever position signal to obtain a first analog value, and to perform the same analog-to-digital conversion on the second stop lever position signal to obtain a second analog value. The range determination subunit is used to determine the state corresponding to the first preset range as the first stop position state when the first modulus value falls into the first preset range; and to determine the state corresponding to the second preset range as the second stop position state when the second modulus value falls into the second preset range.

7. An electronic device, characterized in that, Including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the gear position verification method as described in any one of claims 1-4.

8. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements each step of the gear position verification method as described in any one of claims 1-4.