Method, device, electronic device and medium for determining ignition switch state

By acquiring the ignition hard line signal and vehicle driving status data, and determining and updating the ignition switch status, the problem of easy misjudgment of the ignition switch status in the prior art is solved, and a more accurate state judgment is achieved.

CN115593321BActive Publication Date: 2025-05-16FAW JIEFANG AUTOMOTIVE CO
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211288518.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-20
Publication Date
2025-05-16
Estimated Expiration
2042-10-20

AI Technical Summary

Technical Problem

In the prior art, the ignition switch state judgment is easy to be misjudged, and the hard-wired signal does not have a START block signal, resulting in difficulty in determining the state.

Method used

By obtaining the ignition hard line signal, combining the vehicle's current driving status data, the ignition switch status is determined and updated to ensure the accuracy of the state judgment.

Benefits of technology

It realizes accurate judgment of the state of the ignition switch, avoids misjudgment, and solves the problem of difficult state judgment caused by poor hard-wire signal contact.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115593321B_ABST
    Figure CN115593321B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and medium for determining the state of an ignition switch. The method obtains an ignition hard-wire signal, determines the current switch state of the ignition switch based on the ignition hard-wire signal, obtains the current driving state data of the vehicle when the current switch state is a first state, determines the current driving state data, determines a second state, and updates the current switch state based on the second state. The method achieves accurate judgment of the current ignition switch state, solves the problems of easy misjudgment of the existing ignition switch state, wiring harness redundancy caused by each controller collecting signals separately, and complex interface matching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of automobile electrical control technology, and in particular to a method, device, electronic equipment and medium for determining an ignition switch state. Background Art

[0002] The ignition switch status is a very important parameter in car driving. Different controllers work in different ignition switch states. For example, the whole car is powered off in the LOCK gear, the radio works in the ACC gear, most controllers such as the instrument work in the ON gear, and the engine can only be started in the START gear. Therefore, each controller needs to judge and identify the current state of the car's ignition switch.

[0003] At present, most of the methods for judging the status of the ignition switch at home and abroad are to directly judge the high and low level signals of the hard wire, which is easy to cause misjudgment of the ignition switch status due to poor contact of the hard wire. In addition, the current hard wire has no ignition switch START gear signal, and it is impossible to effectively judge the status, and there are also certain difficulties in identifying each controller. Summary of the invention

[0004] The present invention provides a method, device, electronic equipment and medium for determining the state of an ignition switch, so as to achieve accurate judgment of the state of the ignition switch.

[0005] In a first aspect, an embodiment of the present invention provides a method for determining an ignition switch state, comprising:

[0006] Acquire an ignition hard-wire signal, and determine a current switch state of an ignition switch based on the ignition hard-wire signal;

[0007] When the current switch state is the first state, obtaining current driving state data of the vehicle, determining the current driving state data, and determining the second state;

[0008] The current switch state is updated based on the second state.

[0009] Optionally, the ignition hard-wire signal includes: a power signal, a first start signal and a second start signal; the switch state of the ignition switch includes: an off state, a locked state, an ignition state, and a start state;

[0010] The determining the current switch state of the ignition switch based on the ignition hard-wire signal comprises:

[0011] Based on the corresponding relationship between the combination of the power signal, the first start signal and the second start signal and the switch state, and the current power signal, the first start signal and the second start signal, the current switch state is determined.

[0012] Optionally, the current driving state data includes vehicle speed data and engine speed data;

[0013] The determining of the current driving state data includes:

[0014] The vehicle speed data is determined based on a vehicle speed threshold, and the engine speed data is determined based on a speed threshold to obtain a determination result.

[0015] Optionally, the first state is an ignition state;

[0016] The step of determining the current driving state data to determine the second state includes:

[0017] If the judgment result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data does not reach the speed threshold, then determining that the second state is the flameout ignition state;

[0018] If the determination result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data reaches the speed threshold, determining that the second state is the ignition state;

[0019] If the determination result is that the vehicle speed data reaches the vehicle speed threshold, and the engine speed data reaches the speed threshold, then the second state is determined to be the ignition start state.

[0020] Optionally, updating the current switch state based on the second state includes:

[0021] The current switch state and the second state are subjected to an OR logic process to obtain a target state for updating the first state, wherein the priority of the second state is higher than the priority of the current switch state.

[0022] Optionally, the method further includes:

[0023] Based on the current switch state or the updated first state, a switch state message is generated, and the switch state message is transmitted to the vehicle controller area network to be called by a controller in the vehicle.

[0024] Optionally, the method further includes:

[0025] storing the determined switch state of the ignition switch;

[0026] The stored switch states are subjected to frequency statistics to obtain state statistics of the ignition switch, and the state statistics are used to evaluate the service life of the ignition switch.

[0027] In a second aspect, an embodiment of the present invention further provides a device for determining an ignition switch state, comprising:

[0028] A switch state determination module, used for acquiring an ignition hard-wire signal, and determining a current switch state of the ignition switch based on the ignition hard-wire signal;

[0029] A second state determination module, configured to obtain current driving state data of the vehicle when the current switch state is the first state, determine the current driving state data, and determine the second state;

[0030] A switch state updating module is used to update the current switch state based on the second state.

[0031] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0032] at least one processor; and

[0033] a memory communicatively connected to the at least one processor; wherein,

[0034] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for determining the ignition switch state.

[0035] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the state of an ignition switch as described in any one of the first aspects when executed.

[0036] The present invention obtains an ignition hard-wire signal, determines the current switch state of the ignition switch based on the ignition hard-wire signal, obtains the current driving state data of the vehicle when the current switch state is the first state, determines the current driving state data, determines the second state, and updates the current switch state based on the second state. Accurate judgment of the current ignition switch state is achieved, solving the problems of easy misjudgment of the existing ignition switch state, wiring harness redundancy caused by each controller collecting signals separately, and complex interface matching. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 is a flow chart of a method for determining an ignition switch state in Embodiment 1 of the present invention;

[0039] Figure 2 is a flow chart of another method for determining the state of an ignition switch in Embodiment 1 of the present invention;

[0040] Figure 3 It is a structural schematic diagram of a device for determining the state of an ignition switch in Embodiment 2 of the present invention;

[0041] Figure 4 It is a structural schematic diagram of an electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] Embodiment 1

[0045] Figure 1 This is a flow chart of a method for determining the state of an ignition switch provided in the first embodiment of the present invention. This embodiment is applicable to the case of determining the state of an ignition switch. The method can be executed by a device for determining the state of an ignition switch. The device for determining the state of an ignition switch can be implemented in the form of hardware and / or software. The device for determining the state of an ignition switch can be configured in an electronic device such as a computer, a server, a mobile terminal, etc. Figure 1 As shown, the method includes:

[0046] S110: Acquire an ignition hard-wire signal, and determine a current switch state of the ignition switch based on the ignition hard-wire signal.

[0047] Among them, the ignition hard-wire signal can be a simple high or low level signal, directly connected to the pin (PIN) of the chip, and is generally used for basic control functions such as ignition control. The ignition switch can be the switch of the ignition system (usually using a key), which can freely open or close the main circuit of the ignition coil, and is also applicable to other electrical circuits. The ignition switch is commonly known as the main switch, the main switch or the main key. It is the main gate that controls the entire vehicle circuit system. There are two types: plug-in type and knob type, which are not specifically limited here.

[0048] Among them, the ignition hard-line signal may include: a power signal ACC, a first start signal IG1 and a second start signal IG2, and the switch state of the ignition switch may include: an off state LOCK gear, a locked state ACC gear, an ignition state ON gear, and a start state START gear.

[0049] Accordingly, the current switch state is determined based on the corresponding relationship between the combination of the power signal ACC, the first start signal IG1 and the second start signal IG2 and the switch state, and the current power signal ACC, the first start signal IG1 and the second start signal IG2.

[0050] The status of the ignition switch is directly obtained through hard-wired signals to quickly determine the switch status.

[0051] Exemplarily, referring to Table 1, the hard-wire signal judgment strategy can be that when the three hard-wire signals of the power signal ACC, the first start signal IG1, and the second start signal IG2 are all 0, the ignition switch state is determined to be the LOCK gear; when the power signal ACC is 1, the first start signal IG1 is 0, and the second start signal IG2 has an arbitrary value, it is determined to be the ACC gear; when the power signal ACC, the first start signal IG1 are 1, and the second start signal IG2 has an arbitrary value, it is determined to be the ON gear; when the power signal ACC signal value is 0, and the first start signal IG1 and the second start signal IG2 have an arbitrary value, it is determined to be the START gear:

[0052] Table 1 Ignition switch status hard-wire signal value truth table

[0053]

[0054] Among them, 0 means that the corresponding hard-wire signal is in a low level state, 1 means that the corresponding hard-wire signal is in a high level state, and X means that the corresponding hard-wire signal is in an arbitrary level state.

[0055] It should be noted that when the vehicle is ignited, a strong current, i.e. a high level, is required. At this time, the power supply stops supplying power and will resume supplying power after the vehicle ignition ends. Therefore, the hard-wire signal of the power signal ACC is 0 in the START gear.

[0056] S120: When the current switch state is the first state, obtain the current driving state data of the vehicle, determine the current driving state data, and determine the second state.

[0057] The first state may be the ignition state ON gear. Acquiring the current driving state data of the vehicle may be message information for acquiring vehicle speed data and engine speed data, and accordingly, the driving state data includes vehicle speed data and engine speed data. The second state may be the ignition switch state corresponding to the vehicle speed data and engine speed data reaching a preset threshold.

[0058] It should be noted that the vehicle is in the ignition state ON gear during normal driving. When the user turns the vehicle key to the starting state START gear, the vehicle starts to ignite and starts the engine. After the engine starts, the user releases the vehicle key and the ignition switch returns from the starting state START gear to the ignition state ON gear. Therefore, the ignition state ON gear will have several states. When the current switch state is the first state, the current driving state data of the vehicle is obtained, the current driving state data is judged, and the second state is determined.

[0059] Accordingly, the vehicle speed data is determined based on the vehicle speed threshold, and the engine speed data is determined based on the speed threshold to obtain a determination result.

[0060] When the switch state is switched to the ignition state ON position, the instrument panel on the vehicle's central control screen may rotate, that is, the engine generates a certain speed. By setting the judgment threshold of the vehicle speed data and the engine speed data, the problem of misjudgment of the ignition switch state due to errors can be avoided.

[0061] Optionally, when the current switch state is the first state, current driving state data including vehicle speed data and engine speed data is obtained, and the vehicle speed data and engine speed data are compared with corresponding preset thresholds: if the judgment result is that the vehicle speed data does not reach the vehicle speed threshold and the engine speed data does not reach the speed threshold, then the second state is determined to be the ignition off state.

[0062] Exemplarily, the user switches the ignition switch from the locked state ACC gear to the ignition state ON gear, and the entire vehicle circuit is connected, but the engine is only connected through the circuit and has not been ignited and started, and no speed data is generated. The user has not triggered the accelerator pedal, the vehicle has not started, and no vehicle speed data is generated. At this time, the vehicle speed data and the engine speed data have not reached the speed threshold, and the second state of the ignition switch is determined to be the flameout ignition state, that is, the flameout ON gear.

[0063] If the determination result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data reaches the speed threshold, then the second state is determined to be the ignition state.

[0064] Exemplarily, the user switches the ignition switch from the ignition state ON position to the start state START position, and manually keeps the ignition switch in the start state START position until the vehicle engine is successfully ignited and started. After the engine is ignited and started, speed data is generated. The ignition switch returns to the ignition state ON position, but the user does not trigger the accelerator pedal, the vehicle does not start, and no vehicle speed data is generated. At this time, the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data reaches the speed threshold, and the second state of the ignition switch is determined to be the ignition state.

[0065] If the determination result is that the vehicle speed data reaches the vehicle speed threshold value and the engine speed data reaches the speed threshold value, then the second state is determined to be the ignition start state, that is, the ON gear is started.

[0066] Exemplarily, the user switches the ignition switch from the ignition state ON position to the start state START position, and manually keeps the ignition switch in the start state START position until the vehicle engine is successfully ignited and started. After the engine is ignited and started, speed data is generated. The ignition switch returns to the ignition state ON position, the user triggers the accelerator pedal, the vehicle starts, and vehicle speed data is generated. At this time, the vehicle speed data and the engine speed data both reach the speed threshold, and the second state of the ignition switch is determined to be the start ignition state, that is, the normal driving state.

[0067] The current state of the ignition switch is further determined through the vehicle's driving state data, avoiding the problem of errors caused by judging the ignition switch state solely through hard-wired signals, making the determination of the ignition switch state more accurate.

[0068] S130. Update the current switch state based on the second state.

[0069] Optionally, updating the current switch state based on the second state includes: performing an OR logic process on the current switch state and the second state to obtain a target state for updating the first state, wherein the priority of the second state is higher than the priority of the current switch state.

[0070] The OR logic processing may be to perform OR processing on the two when the message information of the first state and the second state are received at the same time, and the priority of the second state in the OR processing is higher than the priority of the current switch state.

[0071] Accordingly, when the current switch state is the first state (i.e., the ignition state is ON), the current switch state is determined based on the second state and the first state. The priority of the second state is higher than the priority of the first state. For example, if the second state is the start state, the current switch state is determined to be the start state, and if the second state is the ignition state, the current switch state is determined to be the ignition state.

[0072] It should be noted that, when the current switch state is other than the first state, such as the closed state, the locked state and the started state, it is determined that there is no need to update the current switch state by determining the second state.

[0073] Exemplarily, the ignition hard-wire signals are all 0, the power of the entire vehicle is turned off, no vehicle speed data and engine speed data are generated, no message information is generated, the central processing unit does not receive any message information, and determines that the current switch state of the ignition switch is the off state LOCK gear.

[0074] Based on the ignition hard-wire signal, it is determined that the current switch state of the ignition switch is the locked state ACC gear and a message information is sent that the first state of the current switch state is the locked state ACC gear. At this time, the accessory equipment circuit is connected, but the engine is not connected, and the vehicle speed data and engine speed data are still not generated, and the message information related to the second state is not generated. The central processing unit can still only receive the message information of the first state, and based on the message information of the first state, it is determined that the current switch state of the ignition switch is the locked state ACC gear.

[0075] Based on the ignition hard-wire signal, the current switch state of the ignition switch is determined to be the ignition state ON gear and a message information is sent that the first state of the current switch state is the ignition state ON gear. At this time, the auxiliary equipment circuit and the engine are connected, but the engine is not ignited, and no engine speed data is generated. The vehicle has not started, and no vehicle speed data is generated. The message information of the related second state is the flameout ignition state. The central processing unit receives the message of the first state and the second state. At this time, the message of the first state and the second state is processed by logic or according to the rule that the priority of the second state is higher than the priority of the current switch state. The first state is updated based on the message information of the second state, and the current switch state of the ignition switch is determined to be the flameout ignition state.

[0076] Based on the ignition hard-wire signal, the current switch state of the ignition switch is determined to be the locked start state START gear and the message information that the first state of the current switch state is the start state START gear is sent. At this time, the auxiliary equipment circuit and the engine are connected, the engine is ignited, and the engine speed data is generated, but the vehicle has not started, and the vehicle speed data is not generated. The vehicle speed data does not reach the vehicle speed threshold, and the engine speed data reaches the speed threshold, and the message information of the related second state is generated as the ignition state. The central processing unit receives the messages of the first state and the second state. At this time, the messages of the first state and the second state are processed by OR logic according to the rule that the priority of the second state is higher than the priority of the current switch state, and the first state is updated based on the message information of the second state, and the current switch state of the ignition switch is determined to be the ignition state.

[0077] After the engine is ignited and started, the ignition switch returns to the ignition state ON gear. Based on the ignition hard-wire signal, the current switch state of the ignition switch is determined to be the locked ignition state ON gear and a message is sent indicating that the first state of the current switch state is the ignition state ON gear. At this time, the auxiliary equipment circuit and the engine are all connected, the engine is ignited, and the engine speed data is generated. The vehicle starts and the vehicle speed data is generated. The vehicle speed data and the engine speed data both reach the speed threshold, and the message information of the related second state is generated as the start ignition state. The central processing unit receives the messages of the first state and the second state. At this time, the messages of the first state and the second state are processed by OR logic according to the rule that the priority of the second state is higher than the priority of the current switch state. The first state is updated based on the message information of the second state, and the current switch state of the ignition switch is determined to be the start ignition state.

[0078] By setting a determination rule that the priority of the second state is higher than the priority of the current switch state, and performing OR logic processing on the state of the ignition switch based on the second state, misjudgment is avoided and accuracy is improved.

[0079] Optionally, based on the current switch state or the updated first state, a switch state message is generated, and the switch state message is transmitted to the vehicle controller area network to be called by a controller in the vehicle.

[0080] Among them, the message information of the switch status message can be customized according to the actual situation, and no specific limitation is made here. Each switch state corresponds to a different message value. According to the determined current switch state, the corresponding message value is read, and the switch status message is generated based on the read message value. Exemplarily, when the message value is 00, it is defined as the closed state LOCK gear; when the message value is 01, it is defined as the locked state ACC gear; when the message value is 10, it is defined as the ignition state ON gear; when the message value is 11, it is defined as the start state START gear; other message values ​​are treated as invalid. For example, when it is determined that the current switch state is the START gear, the message value corresponding to the START gear is read, that is, 11, and a switch status message with a message content of 11 is generated.

[0081] Optionally, the switch state determined by the ignition switch is stored, and the frequency statistics of the stored switch states are counted to obtain state statistics of the ignition switch, and the state statistics are used to evaluate the service life of the ignition switch. The service life of the ignition switch is evaluated based on the state statistics. In some embodiments, statistical data of different states may be weighted to obtain comprehensive usage data, and the estimated service life of the ignition switch may be determined based on the corresponding relationship between the comprehensive usage data and the service life. In some embodiments, the state statistics may be used as input information of the evaluation model, and the estimated service life of the ignition switch may be obtained after being processed by the evaluation model.

[0082] Among them, the storage of the switch state determined by the ignition switch can be performed by a storage module, a memory, etc., and the statistics and evaluation of the switch state determined by the ignition switch can be performed by the central processing unit MCU. By estimating the life of the ignition switch, the ignition switch can be better protected.

[0083] In another optional embodiment, see Figure 2 , when only the hard-wire signal exists, the current switch state is judged based on the hard-wire signal, and it is determined whether the power signal ACC is 0. If the power signal ACC is 0, it is determined whether the second start signal IG2 is 0. If the second start signal IG2 is also 0, it is determined that the current switch state is LOCK gear. If the second start signal IG2 is not 0, it is determined that the current switch state is START gear. If the power signal ACC is not 0, it is determined whether the first start signal IG1 is 0. If the first start signal IG1 is 0, it is determined that the current switch state is ACC gear. If the first start signal IG1 is not 0 either, it is determined that the current switch state is ON gear. A switch state message is generated based on the current switch state.

[0084] If the hard-wire signal and the second state message information are received at the same time, while judging the current switch state based on the hard-wire signal, it is judged whether the current vehicle engine speed reaches the threshold. If the current vehicle engine speed reaches the threshold, it is judged whether the current vehicle speed reaches the threshold. If the current vehicle speed also reaches the threshold, it is judged that the current switch state is ON gear. If the current vehicle speed does not reach the threshold, it is judged that the current switch state is START gear. If the current vehicle engine speed does not reach the threshold, it is judged that the current switch state is ON gear. Based on the rule that the priority of the second state is higher than the priority of the current switch state, the current switch state and the second state are subjected to OR logic processing, the target state of the first state is updated, and the switch state message is generated based on the updated first state.

[0085] It should be noted that when the hard-line signal is not received, the message information of the second state cannot be received. Therefore, there is no situation where only the message signal of the second state is received.

[0086] The technical solution of this embodiment obtains the ignition hard-wire signal, determines the current switch state of the ignition switch based on the ignition hard-wire signal, obtains the current driving state data of the vehicle when the current switch state is the first state, determines the current driving state data, determines the second state, and updates the current switch state based on the second state. Accurate judgment of the current ignition switch state is achieved, solving the problems of easy misjudgment of the existing ignition switch state, wiring harness redundancy caused by each controller collecting signals separately, and complex interface matching.

[0087] Embodiment 2

[0088] Figure 3 FIG. 1 is a schematic diagram of a device for determining the state of an ignition switch provided in Embodiment 2 of the present invention. Figure 3 As shown, the device comprises:

[0089] A switch state determination module 210, configured to obtain an ignition hard-wire signal and determine a current switch state of the ignition switch based on the ignition hard-wire signal;

[0090] A second state determination module 220, configured to obtain current driving state data of the vehicle when the current switch state is the first state, determine the current driving state data, and determine the second state;

[0091] The switch state updating module 230 is configured to update the current switch state based on the second state.

[0092] Optionally, the ignition hard-wire signal includes: a power signal, a first start signal and a second start signal; the switch state of the ignition switch includes: an off state, a locked state, an ignition state, and a start state.

[0093] Optionally, the switch state determination module 210 is specifically configured to:

[0094] Based on the corresponding relationship between the combination of the power signal, the first start signal and the second start signal and the switch state, and the current power signal, the first start signal and the second start signal, the current switch state is determined.

[0095] Optionally, the current driving state data includes vehicle speed data and engine speed data;

[0096] Optionally, the second state determining module 220 includes:

[0097] The determination unit is used to determine the vehicle speed data based on a vehicle speed threshold value, and to determine the engine speed data based on a speed threshold value, to obtain a determination result.

[0098] Optionally, the first state is an ignition state.

[0099] Optionally, the determining unit is specifically configured to:

[0100] If the judgment result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data does not reach the speed threshold, then determining that the second state is the flameout ignition state;

[0101] If the determination result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data reaches the speed threshold, determining that the second state is the ignition state;

[0102] If the determination result is that the vehicle speed data reaches the vehicle speed threshold, and the engine speed data reaches the speed threshold, then the second state is determined to be the ignition start state.

[0103] Optionally, the switch status updating module 230 includes:

[0104] A logic processing unit is used to perform OR logic processing on the current switch state and the second state to obtain a target state for updating the first state, wherein the priority of the second state is higher than the priority of the current switch state.

[0105] Optionally, the device for determining the ignition switch state further includes:

[0106] The message generation module is used to generate a switch status message based on the current switch status or the updated first status, and transmit the switch status message to the vehicle controller area network to be called by the controller in the vehicle.

[0107] Optionally, the device for determining the ignition switch state further includes:

[0108] A storage module, used for storing the switch state determined for the ignition switch;

[0109] The central processing unit MCU is used to perform frequency statistics on the stored switch states to obtain state statistical data of the ignition switch, and the state statistical data is used to evaluate the service life of the ignition switch.

[0110] The device for determining the state of an ignition switch provided in the embodiment of the present invention can execute the method for determining the state of an ignition switch provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0111] Embodiment 3

[0112] Figure 4 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0113] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0114] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0115] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for determining the state of the ignition switch.

[0116] In some embodiments, the method for determining the state of the ignition switch may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for determining the state of the ignition switch described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method for determining the state of the ignition switch in any other appropriate manner (e.g., by means of firmware).

[0117] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0118] The computer program for implementing the method for determining the ignition switch state of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0119] Embodiment 4

[0120] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to execute a method for determining an ignition switch state, the method comprising:

[0121] Acquire an ignition hard-wire signal, and determine the current switch state of the ignition switch based on the ignition hard-wire signal; when the current switch state is a first state, acquire the current driving state data of the vehicle, judge the current driving state data, and determine a second state; and update the current switch state based on the second state.

[0122] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0123] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0124] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0125] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0127] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for determining an ignition switch state, characterized in that: include: Acquire an ignition hard-wire signal, and determine a current switch state of an ignition switch based on the ignition hard-wire signal; When the current switch state is the first state, obtaining current driving state data of the vehicle, determining the current driving state data, and determining the second state; updating the current switch state based on the second state; Wherein, the determining of the current driving state data includes: Determining the vehicle speed data based on the vehicle speed threshold, and determining the engine speed data based on the speed threshold, to obtain a determination result; Wherein, the first state is an ignition state; The step of determining the current driving state data to determine the second state includes: If the determination result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data does not reach the speed threshold, then determining that the second state is the flameout ignition state; If the determination result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data reaches the speed threshold, determining that the second state is the ignition state; If the determination result is that the vehicle speed data reaches the vehicle speed threshold, and the engine speed data reaches the speed threshold, then determining that the second state is the ignition start state; Wherein, updating the current switch state based on the second state includes: The current switch state and the second state are subjected to an OR logic process to obtain a target state for updating the first state, wherein the priority of the second state is higher than the priority of the current switch state.

2. The method according to claim 1, characterized in that: The ignition hard-wire signal includes: a power signal, a first start signal and a second start signal; the switch state of the ignition switch includes: an off state, a locked state, an ignition state, and a start state; The determining the current switch state of the ignition switch based on the ignition hard-wire signal comprises: Based on the corresponding relationship between the combination of the power signal, the first start signal and the second start signal and the switch state, and the current power signal, the first start signal and the second start signal, the current switch state is determined.

3. The method according to claim 1, characterized in that The current driving state data includes vehicle speed data and engine speed data.

4. The method according to claim 1, characterized in that: The method further comprises: Based on the current switch state or the updated first state, a switch state message is generated, and the switch state message is transmitted to the vehicle controller area network to be called by a controller in the vehicle.

5. The method according to claim 1, characterized in that The method further comprises: storing the determined switch state of the ignition switch; The stored switch states are subjected to frequency statistics to obtain state statistics of the ignition switch, and the state statistics are used to evaluate the service life of the ignition switch.

6. A device for determining the state of an ignition switch, characterized in that: include: A switch state determination module, used for acquiring an ignition hard-wire signal, and determining a current switch state of the ignition switch based on the ignition hard-wire signal; A second state determination module, configured to obtain current driving state data of the vehicle when the current switch state is the first state, determine the current driving state data, and determine the second state; A switch state updating module, configured to update the current switch state based on the second state; Wherein, the second state determination module includes a determination unit, which is used to determine the vehicle speed data based on the vehicle speed threshold, and determine the engine speed data based on the speed threshold, to obtain a determination result; Wherein, the first state is an ignition state, and the determination unit is specifically used for: If the determination result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data does not reach the speed threshold, then determining that the second state is the flameout ignition state; If the determination result is that the vehicle speed data does not reach the vehicle speed threshold, and the engine speed data reaches the speed threshold, determining that the second state is the ignition state; If the determination result is that the vehicle speed data reaches the vehicle speed threshold, and the engine speed data reaches the speed threshold, then determining that the second state is the ignition start state; Wherein, the switch status updating module includes: A logic processing unit is used to perform OR logic processing on the current switch state and the second state to obtain a target state for updating the first state, wherein the priority of the second state is higher than the priority of the current switch state.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for determining the ignition switch state according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the ignition switch state according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Vehicle Safety Power Management

    CN106080444A

  • Method and device for judging ignition and flameout of vehicles and OBD boxes

    CN107618463A