A kind of vehicle safety guard method and device
Technical field
The present invention relates to technical field of vehicle safety, and in particular to a kind of vehicle safety guard method and device.
Background technique
ECU (electronic control unit) is the core of automobile engine control system, it can be according to the different works of engine
Condition provides gaseous mixture and the optimum igniting time of optimal air-fuel ratio to engine, engine is made to be in optimum Working always.
By distributive value control, injection timing control, fuel cut-off control and fuel pump control, make engine performance (dynamic property, it is economical,
Emission performance) reach best.
Existing control unit of engine has 4 anodes, supply lines of 4 cathode as ECU, for often electricity.Key switch is to ECU
Power supply, be ECU wake-up switch, only when the stitch of key switch is always high voltage, ECU just it is in running order,
I.e. when the stitch of key switch disconnects, ECU will stop working, engine misses.
But there are following security risks for above-mentioned control unit of engine, it is known that engine after key switch power-off
It can stop working immediately, artificial active flameout is that safety problem is not present in expected.If but key switch route is not due to expectable
Break caused by engine misses when, will cause danger.
Summary of the invention
(1) technical problems to be solved
The object of the present invention is to provide a kind of vehicle safety guard method and devices, are opened with solving key in the prior art
The problem of pass accidental switches off, and ECU is caused to power off improves the safety of vehicle operation.
(2) technical solution
In order to solve the above technical problem, the present invention provides a kind of vehicle safety guard methods, comprising the following steps:
S100, inquiry engine condition information;
S200, judge whether engine runs according to the engine condition information;If the engine operation, inquires key
Spoon switching information;
S300, judge whether key switch closes according to the key switch information;If the key switch is closed, inquiry
The real-time speed of vehicle and the real-time revolving speed of engine;
If S400, the real-time speed of the vehicle are less than setting speed, and the real-time revolving speed of the engine is less than setting speed,
Control the engine stop operation.
Wherein, in step S400, if the engine is not out of service, repeatedly step S200-S400.
The present invention also provides a kind of vehicle safety protective devices, comprising:
Enquiry module, it is real-time for inquiring engine condition information, key switch information, the real-time speed of vehicle and engine
Revolving speed;
Judgment module judges whether engine runs, key switch is for the query information according to the enquiry module
No closing, the real-time speed of vehicle whether are less than setting speed and whether the real-time revolving speed of engine is less than setting speed;
Whether out of service control module controls engine for the judgement information according to the judgment module.
(3) beneficial effect
Compared with prior art, a kind of vehicle safety guard method provided by the invention and device have the advantages that logical
Engine condition information and key switch information are crossed, judges whether key switch closes under engine operating state;Work as key
Switch is closed under engine operating state, the real-time speed of enquiring vehicle and the real-time revolving speed of engine.If the real-time speed of vehicle is big
It is greater than setting speed in setting speed or the real-time revolving speed of engine, determines that key switch is to accidental switch off, then ECU is not powered off.It keeps away
Maloperation in vehicle operation is exempted from, key switch is closed, and engine stop is caused to run, and safety accident occurs.Another party
Face does not change vehicle equipment and circuit, does not increase physical connection additionally without changing current operating habit, and peace can be solved
Full hidden danger realizes safeguard protection.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of vehicle safety guard method of the present invention;
Fig. 2 is a kind of structural schematic diagram of vehicle safety protective device of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Following instance
For illustrating the present invention, but it is not intended to limit the scope of the invention.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition
Concrete meaning in invention.
Embodiment 1:
As shown in Figure 1, being a kind of vehicle safety guard method provided by the invention, it can specifically include following steps:
S100, inquiry engine condition information;
Engine condition information is specifically as follows: when engine has been turned on, the output stitch of engine is high voltage, will
Engine condition information is denoted as 1, and when engine is inactive, the output stitch of engine is low-voltage, and engine condition is believed
Breath is denoted as 0.
S200, judge whether engine runs according to engine condition information, if the engine is run, inquiry key is opened
Close information;
When inquiring engine condition information is 0, determine that engine is inactive, then the operation of engine is only by key switch
Control, switched by unlocking key, start engine.
When inquiring engine condition information is 1, determines that engine is operating, i.e., during vehicle is currently running, continue to inquire
Key switch information.
Key switch information specifically: when key switch starting, the output stitch of key switch is high voltage, by key
Switching information is denoted as 1, and when key switch is closed, the output stitch of key switch is low-voltage, and key switch state information is remembered
It is 0.
S300, judge whether key switch closes according to the key switch information, if the key switch is closed, inquiry
The real-time speed of vehicle and the real-time revolving speed of engine;
According to the key switch information, the intention whether driver has control engine to shut down is judged.
When inquiring key switch information is 1, key switch starting is determined, driver is intended to without parking, then engine continues
It operates normally.
When inquiring key switch information is 0, determine that key switch is closed, then determines that driver has control engine to shut down
It is intended to, continues the real-time speed of enquiring vehicle and the real-time revolving speed of engine.
S400, according to the comparison result and the real-time revolving speed of engine and setting speed of the real-time speed of vehicle and setting speed
Comparison result, control engine are continued to run or are shut down.
When the real-time speed of vehicle is less than setting speed, and the real-time revolving speed of engine is less than setting speed, meet safe stopping
The requirement of machine, engine are shut down;
Speed is set when the real-time speed of vehicle is greater than, and/or, when the real-time revolving speed of engine is greater than setting speed, then determine
Key is to accidental switch off, and engine continues to run, and circulation step S200-S400.
The present embodiment provides a kind of vehicle safety guard methods to pass through engine condition information in key switch power-off
With key switch information, judge whether key switch closes under engine operating state;When key switch is run in engine
It is closed under state, the real-time speed of enquiring vehicle and the real-time revolving speed of engine.If the real-time speed of vehicle is less than setting speed, and starts
When the real-time revolving speed of machine is less than setting speed, engine is shut down.If the real-time speed of vehicle and the real-time revolving speed of engine do not meet safety
The requirement of operating condition determines that key switch is to accidental switch off, and ECU is not powered off.Maloperation in vehicle operation is avoided, key is opened
It closes, engine stop is caused to run, safety accident occurs.On the other hand, without changing current operating habit, do not change
Vehicle equipment and circuit, do not increase physical connection additionally, and security risk can be solved, and realize safeguard protection.
Embodiment 2:
As shown in Fig. 2, for a kind of vehicle safety protective device of the present invention, comprising:
Enquiry module, it is real-time for inquiring engine condition information, key switch information, the real-time speed of vehicle and engine
Revolving speed;
Judgment module judges whether engine runs, key switch is for the query information according to the enquiry module
No closing, the real-time speed of vehicle whether are less than setting speed and whether the real-time revolving speed of engine is less than setting speed;
Whether out of service control module controls engine for the judgement information according to the judgment module.
Below by specific process, further details of explanation.
Enquiry module inquires engine condition information, key switch information, the real-time speed of vehicle and the real-time revolving speed of engine;
Whether being currently running for engine judged according to the engine condition information for judgment module.When engine does not have
When operation, output engine status information is 0;When the engine is operating, output engine status information is 1.
Judgment module judges whether key switch closes according to the key switch information.If key switch is opened, output
Key switch information is 1;If key switch is closed, output key switch information is 0.
Judgment module judges whether the real-time speed of vehicle is less than setting speed according to the real-time speed of vehicle;When vehicle is real-time
Speed is less than setting speed, and output vehicle speed information is 0;When the real-time speed of vehicle is greater than setting speed, output vehicle speed information is 1;
Judgment module judges whether the real-time revolving speed of engine is less than setting speed according to the real-time revolving speed of engine;When starting
The real-time revolving speed of machine is less than setting speed, and output rotary speed information is 0;When the real-time revolving speed of engine is greater than setting speed, output revolving speed
Information is 1;
Control module controls whether engine shuts down according to the judgement information of judgment module.It is specific:
When engine condition information is 0, engine opens the only control by key switch, i.e. key switch is opened,
Engine start.
When engine condition information is 1, in the case that key switch is 1, engine is operated normally;
When engine condition information is 1, in the case that key switch is 0, vehicle speed information and rotary speed information are 0, control
Device controls engine and shuts down;
When engine condition information is 1, in the case that key switch is 0, vehicle speed information and/or rotary speed information are 1, then sentence
Determining key is to accidental switch off, and engine operates normally.
The present embodiment provides a kind of vehicle safety protective device, judgment module passes through engine condition information and key switch
Whether information judges key switch in the closing when engine is run.When judgment module determines in engine operation, key is opened
It closes, whether control module is less than setting speed and the real-time revolving speed of engine according to the real-time speed of vehicle that enquiry module is inquired
Whether it is less than setting speed, judges whether engine shuts down.Speed is set when the real-time speed of vehicle is less than, and engine turns in real time
When speed is less than setting speed, control module controls engine and shuts down.Maloperation in vehicle operation is avoided, key switch closes
It closes, engine stop is caused to run, safety accident occurs.On the other hand.Current operating habit is not changed, and whole without changing
Vehicle device and circuit, do not increase physical connection additionally, and security risk can be solved, and realize safeguard protection.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.