CN115593321A - Method and device for determining ignition switch state, electronic equipment and medium - Google Patents

Method and device for determining ignition switch state, electronic equipment and medium Download PDF

Info

Publication number
CN115593321A
CN115593321A CN202211288518.0A CN202211288518A CN115593321A CN 115593321 A CN115593321 A CN 115593321A CN 202211288518 A CN202211288518 A CN 202211288518A CN 115593321 A CN115593321 A CN 115593321A
Authority
CN
China
Prior art keywords
state
ignition
switch
determining
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211288518.0A
Other languages
Chinese (zh)
Inventor
张志新
张辉
卢晶
于海成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Jiefang Automotive Co Ltd
Original Assignee
FAW Jiefang Automotive Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Jiefang Automotive Co Ltd filed Critical FAW Jiefang Automotive Co Ltd
Priority to CN202211288518.0A priority Critical patent/CN115593321A/en
Publication of CN115593321A publication Critical patent/CN115593321A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • B60R16/0232Circuits relating to the driving or the functioning of the vehicle for measuring vehicle parameters and indicating critical, abnormal or dangerous conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

The invention discloses a method and a device for determining the state of an ignition switch, electronic equipment and a medium. The method comprises the steps of obtaining an ignition hard wire signal, determining the current switch state of an ignition switch based on the ignition hard wire signal, obtaining the current driving state data of a vehicle under the condition that the current switch state is in a first state, judging the current driving state data, determining a second state, and updating the current switch state based on the second state. The accurate judgment of the current ignition switch state is realized, and the problems that the existing ignition switch state is easy to judge wrongly, the wire harness redundancy and the interface matching are complex and the like caused by the fact that each controller respectively collects signals are solved.

Description

Method and device for determining ignition switch state, electronic equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of automobile electrical control, in particular to a method and a device for determining the state of an ignition switch, electronic equipment and a medium.
Background
The state of the ignition switch is an important parameter in automobile driving, the states of the ignition switches where different controllers work are different, for example, LOCK is in full-automobile power-off, a radio works in an ACC gear, most controllers such as meters work in an ON gear, and an engine can be started in a START gear, so that all the controllers need to judge and identify the state of the current automobile ignition switch.
At present, most of the methods for judging the state of the ignition switch at home and abroad are direct hard wire high and low level signals, the state of the ignition switch is easily judged by mistake due to poor hard wire contact, and the state judgment and the identification of each controller cannot be effectively carried out due to the fact that the current hard wire has no START gear signal of the ignition switch.
Disclosure of Invention
The invention provides a method and a device for determining the state of an ignition switch, electronic equipment and a medium, which are used for realizing the accurate judgment of the state of the ignition switch.
In a first aspect, an embodiment of the present invention provides a method for determining an ignition switch state, including:
acquiring an ignition hard wire signal, and determining the current switch state of an ignition switch based on the ignition hard wire signal;
under the condition that the current switch state is a first state, acquiring current driving state data of a vehicle, judging the current driving state data, and determining a second state;
updating the current switch state based on the second state.
Optionally, the ignition hardwire signal comprises: a power signal, a first enable signal and a second enable signal; the switching state of the ignition switch includes: an off state, a locked state, an ignition state, and a start state;
the determining a current switch state of an ignition switch based on the ignition hardwire signal includes:
and determining the current switch state based on the corresponding relation between the combination mode of the power supply signal, the first starting signal and the second starting signal and the switch state, and the current power supply signal, the first starting signal and the second starting signal.
Optionally, the current driving state data includes vehicle speed data and engine speed data;
the determining the current driving state data includes:
and judging the vehicle speed data based on a vehicle speed threshold value, and judging the engine rotating speed data based on a rotating speed threshold value to obtain a judgment result.
Optionally, the first state is an ignition state;
the determining the current driving state data and determining a second state includes:
if the judgment result is that the vehicle speed data does not reach a vehicle speed threshold value and the engine rotating speed data does not reach a rotating speed threshold value, determining that the second state is a flameout and ignition state;
if the judgment result is that the vehicle speed data does not reach a vehicle speed threshold value and the engine rotating speed data reaches a rotating speed threshold value, determining that the second state is an ignition state;
and if the judgment result is that the vehicle speed data reaches a vehicle speed threshold value and the engine rotating speed data reaches a rotating speed threshold value, determining that the second state is a starting ignition state.
Optionally, the updating the current switch state based on the second state includes:
and performing 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 that of the current switch state.
Optionally, the method further includes:
and generating a switch state message based on the current switch state or the updated first state, and transmitting the switch state message to a vehicle controller domain network so as to be called by a controller in the vehicle.
Optionally, the method further includes:
storing the switch state determined for the ignition switch;
and carrying out frequency statistics on the stored switch states to obtain state statistical data of the ignition switch, wherein the state statistical data is used for evaluating the service life of the ignition switch.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a state of an ignition switch, including:
the switch state determining module is used for acquiring an ignition hard wire signal and determining the current switch state of the ignition switch based on the ignition hard wire signal;
the second state determining module is used for acquiring the current driving state data of the vehicle under the condition that the current switch state is the first state, judging the current driving state data and determining the second state;
and the switch state updating module is used for updating the current switch state based on the second state.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of determining the status of an ignition switch according to any one of the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, which stores computer instructions for causing a processor to implement the method for determining the state of an ignition switch according to any one of the first aspect when executed.
The method comprises the steps of obtaining an ignition hard wire signal, determining the current switch state of an ignition switch based on the ignition hard wire signal, obtaining the current driving state data of a vehicle under the condition that the current switch state is the first state, judging the current driving state data, determining the second state, and updating the current switch state based on the second state. The accurate judgment of the current ignition switch state is realized, and the problems that the existing ignition switch state is easy to judge wrongly, the wire harness redundancy and the interface matching are complex and the like caused by the fact that each controller respectively collects signals are solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for determining the state of an ignition switch in accordance with a first embodiment of the present invention;
FIG. 2 is a flow chart of another method of determining the status of an ignition switch in accordance with one embodiment of the present invention;
fig. 3 is a schematic structural diagram of an ignition switch state determining apparatus according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in a third embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of an ignition switch state determination method provided in an embodiment of the present invention, and this embodiment is applicable to the case of ignition switch state determination, and this method may be executed by an ignition switch state determination device, which may be implemented in a form of hardware and/or software, and this ignition switch state determination device may be configured in an electronic device such as a computer, a server, a mobile terminal, and the like. As shown in fig. 1, the method includes:
and S110, acquiring an ignition hard wire signal, and determining the current switch state of an ignition switch based on the ignition hard wire signal.
The ignition hard wire signal can be a simple high-low level signal, is directly connected with a PIN (PIN) of the chip, and is generally used for basic control functions such as ignition control and the like. The ignition switch can be a switch of an ignition system (usually a key is used), a main circuit of an ignition coil can be freely opened or closed, and the ignition switch is also suitable for other electric system circuits, is commonly called a master switch, a master electric door or a master key, is a master gate for controlling a whole vehicle circuit system, and has two types of plug-in type and knob type, and is not particularly limited here.
Wherein the ignition hardwire signal may comprise: the electric power source signal ACC, the first start signal IG1, and the second start signal IG2, and the switching state of the ignition switch may include: off state LOCK gear, locked state ACC gear, ignition ON gear, START gear.
Accordingly, the current switching state is determined based on the correspondence relationship between the combination manner of the electric power source signal ACC, the first start signal IG1, and the second start signal IG2 and the switching state, and the current electric power source signal ACC, the first start signal IG1, and the second start signal IG 2.
The state of the ignition switch is directly obtained through a hard wire signal, and the quick judgment of the switch state is realized.
For example, referring to table 1, the hard-wired signal determination strategy may be to determine that the ignition switch state is LOCK gear when all three hard-wired signals, namely, the power signal ACC, the first start signal IG1, and the second start signal IG2, are 0; when the electric power signal ACC is 1, the first starting signal IG1 is 0, and the second starting signal IG2 has any value, the gear is determined as ACC gear; when the power supply signal ACC and the first starting signal IG1 are 1 and the second starting signal IG2 has any value, determining that the gear is ON; when the value of electric power signal ACC is 0 and the values of first START signal IG1 and second START signal IG2 are 1, it is determined that the START gear:
TABLE 1 ignition switch state hard line signal value truth table
Figure BDA0003900369020000061
Wherein, 0 is the low level state of the corresponding hard wire signal, 1 is the high level state of the corresponding hard wire signal, and X is the arbitrary level state of the corresponding hard wire signal.
It should be noted that when the vehicle is ignited, a strong current, i.e., a high level, is required, and at this time, the power supply stops supplying power, and the power supply is restarted after the ignition of the vehicle is finished, so that the hard line signal of the power supply signal ACC at the START gear is 0.
And S120, acquiring current running state data of the vehicle under the condition that the current switch state is the first state, judging the current running state data, and determining the second state.
Wherein the first state may be an ignition state ON gear. The obtaining of the current driving state data of the vehicle may be obtaining of message information of vehicle speed data and engine speed data, and correspondingly, the driving state data includes vehicle speed data and engine speed data. The second state may be an ignition switch state corresponding to the vehicle speed data and the engine speed data reaching a preset threshold.
It should be noted that, when the vehicle is in the ignition state ON gear during normal running, when a user turns a vehicle key to the START state START gear, the vehicle STARTs ignition, the engine is started, and after the engine is started, the user releases the vehicle key, and the ignition switch returns to the ignition state ON gear from the START state START gear.
Correspondingly, the vehicle speed data is judged based on the vehicle speed threshold value, and the engine rotating speed data is judged based on the rotating speed threshold value, so that a judgment result is obtained.
When the switch state is switched to the ignition state ON gear, an instrument panel ON a control screen in the vehicle can rotate, namely, the engine generates a certain rotating speed, and the problem of misjudgment of the ignition switch state due to errors is avoided by setting judgment thresholds of vehicle speed data and engine rotating speed data.
Optionally, when the current switch state is the first state, obtaining current driving state data including vehicle speed data and engine speed data, and comparing the vehicle speed data and the engine speed data with corresponding preset thresholds: and if the judgment result is that the vehicle speed data does not reach the vehicle speed threshold value and the engine rotating speed data does not reach the rotating speed threshold value, determining that the second state is a flameout ignition state.
For example, a user switches an ignition switch from a locking state ACC gear to an ignition state ON gear, a whole vehicle circuit is communicated, but an engine is only communicated through the circuit and is not ignited to start, no rotating speed data is generated, the user does not trigger an accelerator pedal, the vehicle does not start, no vehicle speed data is generated, at the moment, the vehicle speed data and the engine rotating speed data do not reach a rotating speed threshold value, and the second state of the ignition switch is determined to be a flameout ignition state, namely a flameout ON gear.
And if the judgment result is that the vehicle speed data does not reach the vehicle speed threshold value and the engine rotating speed data reaches the rotating speed threshold value, determining that the second state is the ignition state.
For example, the user switches the ignition switch from the ignition state ON gear to the starting state START gear, and manually keeps the ignition switch in the starting state START gear until the vehicle engine is successfully ignited and started, the engine generates rotation speed data after ignition and starting, the ignition switch returns to the ignition state ON gear, but the user does not trigger the accelerator pedal, the vehicle does not START, and does not generate vehicle speed data, at the moment, the vehicle speed data does not reach a vehicle speed threshold value, the engine rotation speed data reaches the rotation speed threshold value, and the second state of the ignition switch is determined to be the ignition state.
And if the judgment result is that the vehicle speed data reaches the vehicle speed threshold and the engine rotating speed data reaches the rotating speed threshold, determining that the second state is a starting ignition state, namely starting an ON gear.
For example, a user switches an ignition switch from an ignition state ON gear to a starting state START gear, and manually keeps the ignition switch in the starting state START gear until an engine of the vehicle is successfully ignited and started, after the engine is ignited and started, rotation speed data is generated, the ignition switch returns to the ignition state ON gear, the user triggers an accelerator pedal, the vehicle STARTs, vehicle speed data is generated, at the moment, the vehicle speed data and the engine rotation speed data reach rotation speed threshold values, and the second state of the ignition switch is determined to be an ignition starting state, namely a normal driving state.
The current state of the ignition switch is further determined through the driving state data of the vehicle, so that the problem that the ignition switch state is judged only through a hard wire signal to cause errors is avoided, and the ignition switch state is determined more accurately.
And S130, updating the current switch state based on the second state.
Optionally, updating the current switch state based on the second state includes: and performing OR logic processing on the current switch state and a second state to obtain a target state for updating the first state, wherein the priority of the second state is higher than that of the current switch state.
The performing or logic processing may be performing or processing on the first state and the second state when the message information of the first state and the second state are received simultaneously, and the priority of the second state is higher than the priority of the current switch state in the or processing.
Accordingly, in the case where the current switching state is the first state (i.e., the ignition state ON position), the current switching state is determined based ON the second state and the first state. The priority of the second state is higher than that of the first state, for example, if the second state is the starting state, the current switch state is determined to be the starting state, and if the second state is the ignition state, the current switch state is determined to be the ignition state.
It should be noted that, in the case where the current switch state is a state other than the first state, such as an off state, a locked state, and an on state, it is determined that the current switch state does not need to be updated by determining the second state.
Illustratively, the ignition hard wire signals are all 0, at this time, the power supply of the whole vehicle is turned off, the vehicle speed data and the engine rotating speed data are not generated, no message information is generated, the central processing unit does not receive any message information, and the current switch state of the ignition switch is determined to be the closed state LOCK gear.
The method comprises the steps of determining that the current switch state of an ignition switch is a locking state ACC gear based on an ignition hard wire signal, sending message information that the first state of the current switch state is the locking state ACC gear, turning on an accessory circuit at the moment, but not turning on an engine, still not generating vehicle speed data and engine rotating speed data, not generating message information related to the second state, enabling a central processing unit to still only receive the message information of the first state, and determining that the current switch state of the ignition switch is the locking state ACC gear based on the message information of the first state.
And determining that the current switch state of the ignition switch is an ignition state ON gear based ON the ignition hard wire signal, and sending message information that the first state of the current switch state is the ignition state ON gear, wherein the auxiliary equipment circuit and the engine are both switched ON at the moment, but the engine is not ignited and does not generate engine rotating speed data, the vehicle is not started and does not generate vehicle speed data, and the message information generating a related second state is a flameout ignition state. And the central processing unit receives the messages in the first state and the second state, performs OR logic processing on the messages in the first state and the second state according to a rule that the priority of the second state is higher than that of the current switch state, updates the first state based on the message information in the second state, and determines that the current switch state of the ignition switch is a flameout ignition state.
The method comprises the steps that the current switch state of an ignition switch is determined to be a START locking state START gear based on an ignition hard wire signal, message information that the first state of the current switch state is the START state START gear is sent, an accessory circuit and an engine are both switched on at the moment, the engine ignites to generate engine speed data, the vehicle does not START, speed data are not generated, the speed data do not reach a speed threshold, the engine speed data reach the speed threshold, and message information related to the second state is generated to be the ignition state. The central processing unit receives the messages of the first state and the second state, at the moment, the messages of the first state and the second state are subjected to OR logic processing according to a rule that the priority of the second state is higher than that 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 ignition state.
After the engine is ignited and started, the ignition switch returns to an ignition state ON gear, the current switch state of the ignition switch is determined to be a locked ignition state ON gear based ON an ignition hard wire signal, message information that a first state of the current switch state is the ignition state ON gear is sent, at the moment, an accessory equipped circuit and the engine are both connected, the engine is ignited, engine rotating speed data are generated, the vehicle starts, vehicle speed data are generated, the vehicle speed data and the engine rotating speed data both reach rotating speed threshold values, message information related to a second state is generated to be a starting ignition state, and a central processing unit receives messages of the first state and the second state. And at the moment, performing OR logic processing on the messages in the first state and the second state according to a rule that the priority of the second state is higher than that of the current switch state, updating the first state based on the message information of the second state, and determining the current switch state of the ignition switch as the ignition starting state.
By setting a determination rule that the priority of the second state is higher than that of the current switch state and carrying out OR logic processing on the state of the ignition switch based on the determination rule, the occurrence of misjudgment is avoided, and the accuracy is improved.
Optionally, a switch state message is generated based on the current switch state or the updated first state, and the switch state message is transmitted to the vehicle controller domain network to be called by the controller in the vehicle.
The message information of the switch state message may be customized according to the actual situation, and is not specifically limited here. Each switch state corresponds to different message values respectively, the corresponding message values are read according to the determined current switch state, and the switch state messages are generated based on the read message values. Exemplarily, when the message value is 00, the message value is defined as a LOCK gear in a closed state; when the message value is 01, defining the message as a locking state ACC gear; when the message value is 10, defining the message value as an ignition state ON gear; when the message value is 11, defining the message value as a START state START gear; and processing other message values according to the invalidation. For example, when the current switch state is determined to be the START gear, the message value corresponding to the START gear is read, that is, 11, the switch state message with the message content of 11 is generated.
Optionally, the switch state determined by the ignition switch is stored, and the stored switch state is subjected to frequency statistics to obtain state statistical data of the ignition switch, where the state statistical data is used to evaluate the service life of the ignition switch. And performing service life evaluation of the ignition switch based on the state statistical data. In some embodiments, the statistical data of different states may be weighted to obtain comprehensive use data, and the expected service life of the ignition switch may be determined based on the corresponding relationship between the comprehensive use data and the service life. In some embodiments, the state statistics may be used as input information of an evaluation model, and the evaluation model processes the state statistics to obtain a predicted service life of the ignition switch.
The storage of the switch state determined by the ignition switch can be executed by a storage module, a memory and the like, the statistics and the evaluation of the switch state determined by the ignition switch can be executed by a central processing unit (MCU), and the ignition switch is better protected by estimating the service life of the ignition switch.
In another alternative embodiment, referring specifically to fig. 2, when only the hard-wired signal is present, the current switch state is determined based on the hard-wired signal, and it is determined whether the power supply signal ACC is 0, if the power supply 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, and if the second START signal IG2 is not 0, it is determined that the current switch state is START gear. If the power supply 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 ON-off state is the ACC gear, and if the first start signal IG1 is not 0, it is determined that the current ON-off state is the ON gear. And generating a switch state message based on the current switch state.
If the hard wire signal and the message information of the second state are received simultaneously, the current switch state is judged based ON the hard wire signal, whether the rotating speed of the current transmitter of the vehicle reaches a threshold value is judged, if the rotating speed of the current transmitter of the vehicle reaches the threshold value, whether the current vehicle speed of the vehicle reaches the threshold value is judged, if the current vehicle speed of the vehicle also reaches the threshold value, the current switch state is judged to be an ON gear, and if the current vehicle speed of the vehicle does not reach the threshold value, the current switch state is judged to be a START gear. And if the rotating speed of the current transmitter of the vehicle does not reach the threshold value, judging that the current switch state is the ON gear. And performing OR logic processing on the current switch state and the second state based on a rule that the priority of the second state is higher than that of the current switch state, updating the target state of the first state, and generating a switch state message based on the updated first state.
It should be noted that, when the hard-wired signal is not received, the message information in the second state cannot be received, and therefore, there is no case where only the message signal in the second state is received.
According to the technical scheme, the ignition hard wire signal is obtained, the current switch state of the ignition switch is determined based on the ignition hard wire signal, the current driving state data of the vehicle is obtained under the condition that the current switch state is the first state, the current driving state data is judged, the second state is determined, and the current switch state is updated based on the second state. The accurate judgment of the current ignition switch state is realized, and the problems that the existing ignition switch state is easy to judge wrongly, the wire harness redundancy and the interface matching are complex and the like caused by the fact that each controller respectively collects signals are solved.
Example two
Fig. 3 is a schematic structural diagram of an ignition switch state determination apparatus according to a second embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the switch state determination module 210 is configured to obtain an ignition hard wire signal, and determine a current switch state of an ignition switch based on the ignition hard wire signal;
the second state determining module 220 is configured to, when the current switch state is the first state, obtain current driving state data of the vehicle, determine the current driving state data, and determine a second state;
a switch state update module 230 configured to update the current switch state based on the second state.
Optionally, the ignition hardwire signal comprises: a power signal, a first enable signal and a second enable signal; the switching state of the ignition switch includes: off state, locked state, ignition state, start state.
Optionally, the switch state determining module 210 is specifically configured to:
and determining the current switch state based on the corresponding relation between the combination mode of the power supply signal, the first starting signal and the second starting signal and the switch state, and the current power supply signal, the first starting signal and the second starting signal.
Optionally, the current driving state data includes vehicle speed data and engine speed data;
optionally, the second state determining module 220 includes:
and the judging unit is used for judging the vehicle speed data based on a vehicle speed threshold value and judging the engine rotating speed data based on a rotating speed threshold value to obtain a judging result.
Optionally, the first state is an ignition state.
Optionally, the determining unit is specifically configured to:
if the judgment result is that the vehicle speed data does not reach a vehicle speed threshold value and the engine rotating speed data does not reach a rotating speed threshold value, determining that the second state is a flameout and ignition state;
if the judgment result is that the vehicle speed data does not reach a vehicle speed threshold value and the engine rotating speed data reaches a rotating speed threshold value, determining that the second state is an ignition state;
and if the judgment result is that the vehicle speed data reaches a vehicle speed threshold value and the engine rotating speed data reaches a rotating speed threshold value, determining that the second state is a starting ignition state.
Optionally, the switch status updating module 230 includes:
and the logic processing unit is used for performing 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 that of the current switch state.
Optionally, the device for determining the state of the ignition switch further includes:
and the message generation module is used for generating a switching state message based on the current switching state or the updated first state, and transmitting the switching state message to a vehicle controller domain network so as to be called by a controller in a vehicle.
Optionally, the device for determining the state of the ignition switch further includes:
the storage module is used for storing the switch state determined by the ignition switch;
and the central processing unit MCU is used for carrying out frequency statistics on the stored switch state to obtain state statistical data of the ignition switch, and the state statistical data is used for evaluating the service life of the ignition switch.
The device for determining the state of the ignition switch provided by the embodiment of the invention can execute the method for determining the state of the ignition switch provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
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, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the determination of the ignition switch state.
In some embodiments, the method of determining the state of the ignition switch may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the memory unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto 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 of determining the state of the ignition switch described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (e.g., by means of firmware) to perform the determination method of the ignition switch state.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the method of determining the state of the ignition switch of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
Example four
An embodiment of the present invention further provides a computer-readable storage medium, in which computer instructions are stored, and the computer instructions are used for causing a processor to execute a method for determining an ignition switch state, where the method includes:
acquiring an ignition hard wire signal, and determining the current switch state of an ignition switch based on the ignition hard wire signal; under the condition that the current switch state is the first state, acquiring current driving state data of a vehicle, judging the current driving state data, and determining a second state; updating the current switch state based on the second state.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can 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 a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of determining a state of an ignition switch, comprising:
acquiring an ignition hard wire signal, and determining the current switch state of an ignition switch based on the ignition hard wire signal;
under the condition that the current switch state is a first state, acquiring current driving state data of a vehicle, judging the current driving state data, and determining a second state;
updating the current switch state based on the second state.
2. The method of claim 1, wherein the ignition hardwire signal comprises: a power signal, a first enable signal and a second enable signal; the switching state of the ignition switch includes: an off state, a locked state, an ignition state, and a start state;
the determining a current switch state of an ignition switch based on the ignition hardwire signal includes:
and determining the current switch state based on the corresponding relation between the combination mode of the power supply signal, the first starting signal and the second starting signal and the switch state, and the current power supply signal, the first starting signal and the second starting signal.
3. The method of claim 1, wherein the current driving state data includes vehicle speed data and engine speed data;
the determining the current driving state data includes:
and judging the vehicle speed data based on a vehicle speed threshold value, and judging the engine rotating speed data based on a rotating speed threshold value to obtain a judgment result.
4. The method of claim 1, wherein the first state is an ignition state;
the determining the current driving state data and determining a second state includes:
if the judgment result is that the vehicle speed data does not reach a vehicle speed threshold value and the engine rotating speed data does not reach a rotating speed threshold value, determining that the second state is a flameout and ignition state;
if the judgment result is that the vehicle speed data does not reach a vehicle speed threshold value and the engine rotating speed data reaches a rotating speed threshold value, determining that the second state is an ignition state;
and if the judgment result is that the vehicle speed data reaches a vehicle speed threshold value and the engine rotating speed data reaches a rotating speed threshold value, determining that the second state is a starting ignition state.
5. The method of claim 1, wherein the updating the current switch state based on the second state comprises:
and performing 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 that of the current switch state.
6. The method of claim 1, further comprising:
and generating a switch state message based on the current switch state or the updated first state, and transmitting the switch state message to a vehicle controller domain network so as to be called by a controller in the vehicle.
7. The method of claim 1, further comprising:
storing the switch state determined for the ignition switch;
and carrying out frequency statistics on the stored switch states to obtain state statistical data of the ignition switch, wherein the state statistical data is used for evaluating the service life of the ignition switch.
8. An ignition switch state determining apparatus, comprising:
the switch state determining module is used for acquiring an ignition hard wire signal and determining the current switch state of the ignition switch based on the ignition hard wire signal;
the second state determining module is used for acquiring the current driving state data of the vehicle under the condition that the current switch state is the first state, judging the current driving state data and determining the second state;
and the switch state updating module is used for updating the current switch state based on the second state.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of determining a status of an ignition switch of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores computer instructions for causing a processor to implement the method of determining the status of an ignition switch of any one of claims 1-7 when executed.
CN202211288518.0A 2022-10-20 2022-10-20 Method and device for determining ignition switch state, electronic equipment and medium Pending CN115593321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211288518.0A CN115593321A (en) 2022-10-20 2022-10-20 Method and device for determining ignition switch state, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211288518.0A CN115593321A (en) 2022-10-20 2022-10-20 Method and device for determining ignition switch state, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115593321A true CN115593321A (en) 2023-01-13

Family

ID=84849143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211288518.0A Pending CN115593321A (en) 2022-10-20 2022-10-20 Method and device for determining ignition switch state, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115593321A (en)

Similar Documents

Publication Publication Date Title
CN107831885B (en) Doze mode switching method and device, mobile terminal and readable storage medium
CN116700776A (en) Information management method, device, equipment and storage medium of battery management system
CN115593321A (en) Method and device for determining ignition switch state, electronic equipment and medium
CN114980445B (en) Light control method, device, equipment and medium applied to vehicle
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
CN116301997A (en) Upgrading method, device, equipment and medium of controller
CN115762503A (en) Vehicle-mounted voice system, vehicle-mounted voice autonomous learning method, device and medium
CN114168482A (en) Test method of vehicle control unit
CN114880007A (en) Upgrading method, device, equipment and storage medium
CN116775065A (en) Application upgrading method and device of slave controller, electronic equipment and storage medium
CN115016818A (en) Vehicle controller remote silent upgrading method and device, electronic equipment and medium
CN116279286B (en) Unlocking method, device, equipment and medium of engine
CN117491960B (en) Radar product detection method, device, equipment and medium
CN115230582A (en) Whistling control method and device, electronic equipment and storage medium
CN115225556A (en) Detection method, device, equipment and storage medium
CN117971303A (en) Automatic maintenance method for ATO equipment software and data of automatic train driving system
CN114721947A (en) Man-machine interaction testing method, device, equipment and storage medium based on OTA
CN116700758A (en) Whole vehicle version management method, device, equipment and storage medium
CN115061454A (en) Vehicle condition signal correction method, device, equipment and storage medium
CN116683642A (en) Public transformer area management method, device, equipment and storage medium
CN115617616A (en) Operation monitoring method, device and equipment of server FRU and storage medium
CN116880787A (en) Printer management method and device, electronic equipment and storage medium
CN115757031A (en) Application process processing method, device, equipment and medium
CN115185494A (en) Modeling simulation method and device of vehicle functional architecture, electronic equipment and medium
CN116225588A (en) Menu control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination