Summary of the invention
Since in the prior art, mobile unit increases the risk of software and hardware damage by power-off shutdown, to influence vehicle
Carry the reliability of equipment and the problem of the service life, the embodiment of the present application provides a kind of mobile unit and automobile.
In a first aspect, the embodiment of the present application provides a kind of mobile unit, comprising:
Timing module, switch control module, shutdown detection module and main control module;
The timing module is connect with the switch control module, for detecting external trigger switch for disconnection
Start timing function when state, and the output control signal at the end of timing function timing;The control signal is for controlling
The switch control module is made to close;Wherein, the trigger switch is connected with a vehicle-mounted power supply, the off-state of the trigger switch
Indicate vehicle stall;
The switch control module, is connected to the main control module, and when the switch control module is closed, stopping will be described
The voltage output of vehicle power supply is to the main control module;
The shutdown detection module, is connected to the main control module, for detecting the operating conditions of the trigger switch;
The main control module, for the operating conditions in the trigger switch be off-state when, start shutdown process.
It optionally, further include logic judgment module;
The first input end of the logic judgment module is connect with the trigger switch;
Second input terminal of the logic judgment module, connect with the output end of the timing module;
The output end of the logic judgment module is connect with the switch control module;
The logic judgment module is turned off or on for controlling the switch control module.
Optionally, the enable end of the switch control module is connect with the output end of the logic judgment module;
The input terminal of the switch control module is connect with the vehicle power supply;
The output end of the switch control module is connected to the main control module;
The logic judgment module, for detecting that the trigger switch is closed state and/or the timing module
When the control signal of output is high level, the first enable signal is exported, first enable signal is for controlling the switch control
Molding block is opened;
The logic judgment module, for detecting that the trigger switch is off-state and the timing module exports
Control signal be low level when export the second enable signal;Second enable signal is for controlling the switch control module
It closes.
Optionally, the logic judgment module is or door.
Optionally, the logic judgment module includes first diode and the second diode;
The external trigger switch of anode of the first diode, the cathode of the first diode and the switch are controlled
The enable end of molding block connects;
Second diode anode connect with the output end of the timing module, the cathode of second diode and
The enable end of the switch control module connects.
Optionally, the shutdown detection module includes first resistor, second resistance and third diode;
The trigger switch is connected with the first resistor and the second resistance, the third diode and described second
Resistor coupled in parallel, the node between the first resistor and the second resistance are connect with the input terminal of the main control module.
Optionally, the output end of the switch control module is connect with the power end of the timing module, for controlling
Vehicle power supply is stated as timing module power supply.
Optionally, the switch control module includes converter DCDC, for export the vehicle power supply
Voltage is converted to the main control module required voltage and the timing module required voltage.
Optionally, the output end of the main control module is connect with the reset terminal of the timing module, for right after actuation
The timing module is resetted.
Second aspect, the embodiment of the present application provide a kind of automobile, comprising: vehicle power supply, trigger switch and such as first
Mobile unit described in aspect.
In the embodiment of the present application, in mobile unit increase timing module and shutdown detection module, when trigger switch disconnect,
I.e. vehicle stall when, the off-state of trigger switch is sent to main control module by the detection module that shuts down, so that main control module starts
Shutdown process.At the same time, timing module starting timing, at the end of timing, sends a control signal to switch control module, with
Close switch control module.Since when trigger switch disconnects, switch control module is not closed directly, but in timing mould
It is closed after block timing, and main control module completes shutdown process during timing module timing, so as to avoid directly disconnected
Impact of the electricity shutdown to system software in mobile unit and hardware, can effectively improve service life and the user experience of mobile unit.
Secondly, switch control module is closed after timing module timing, avoid in main control module shutdown failure or device event
Shutdown high current problem, avoids the risk of vehicle power supply over-discharge caused by barrier.
Specific embodiment
In order to which the purpose of the present invention, technical solution and beneficial effect is more clearly understood, below in conjunction with attached drawing and implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair
It is bright, it is not intended to limit the present invention.
Mobile unit includes but is not limited to vehicle carried video equipment, ADAS, vehicle audio, vehicle mounted electric in the embodiment of the present application
Depending on, vehicle-mounted computer, onboard navigation system.
Fig. 1 shows a kind of structural schematic diagram of mobile unit provided by the embodiments of the present application, as shown in Figure 1, comprising: fixed
When module 101, switch control module 102, shutdown detection module 103 and main control module 104.Timing module 101 is controlled with switch
Molding block 102 connects, for starting timing function when detecting that external trigger switch 105 is off-state, and in timing
Output control signal at the end of function timing, wherein the timing length of timing function is preset, the timing length of timing function
It shuts down required duration greater than main control module 104.It controls signal to close for control switch control module 102, control signal is height
Level or low level.Trigger switch 105 is connect with vehicle power supply 106, and the off-state of trigger switch 105 indicates vehicle stall.
Switch control module 102 is connect with main control module 104, and when switch control module 102 is closed, vehicle power supply 106 stops to master control
Module 104 is powered, i.e., switch control module 102 stops the voltage output of vehicle power supply 106 to main control module 104.Shutdown inspection
Module 103 is surveyed, is connect with main control module 104, for detecting the operating conditions of trigger switch 105.Main control module 104, for touching
When the operating conditions for sending out switch 105 is off-state, start shutdown process.
Since when trigger switch disconnects, switch control module is not closed directly, but terminate in timing module timing
After close, and main control module completes shutdown process during timing module timing, so as to avoid direct power-off shutdown to vehicle
The impact for carrying system software and hardware in equipment, can effectively improve service life and the user experience of mobile unit.Secondly, in timing
After module timing, switch control module is closed, and avoids the pass caused by main control module shutdown failure or device fault
Machine high current problem, avoids the risk of vehicle power supply over-discharge.
In a kind of possible embodiment, as shown in Fig. 2, mobile unit further includes logic judgment module 107.Logic is sentenced
The first input end of disconnected module 107, connect, the second input terminal of logic judgment module 107, with timing mould with trigger switch 105
The output end of block 101 connects.The output end of logic judgment module 107 is connect with switch control module 102.Logic judgment module
107, it is turned off or on for control switch control module 102.
The enable end of switch control module 102 is connect with the output end of logic judgment module 107, switch control module 102
Input terminal connect with vehicle power supply 106, the output end of switch control module 102 is connect with main control module 104.Logic judgment mould
Block 107, for detecting that trigger switch 105 be the control signal that closed state and/or timing module 101 export is high level
When, the first enable signal is exported, the first enable signal is opened for control switch control module 102.Illustratively, when vehicle opens
When dynamic, trigger switch 105 is closed state, and logic judgment module 107 exports the first enable signal, control switch control module
102 open, so that vehicle power supply 106 is the power supply of main control module 104.
Logic judgment module 107, for detecting that trigger switch 105 is off-state and timing module 101 exports
Control signal exports the second enable signal when being low level, the second enable signal is closed for control switch control module 102.Show
Example property, when vehicle stall, trigger switch 105 is off-state, and timing module 101 starts timing function, when setting timing
A length of 10s, therefore low level is exported after timing function timing 10s, logic judgment module 107 is detecting that trigger switch 105 is disconnected
When open state and the output low level of timing module 101, the second enable signal control switch control module 102 of output is closed.Due to
The level that logic judgment module is exported according to trigger switch and timing module controls switch Controlling model, realizes in vapour
Vehicle is normally that modules are powered in mobile unit when starting, and in automobile flameout, delay power-off ensure that mobile unit
There is time enough shutdown, to improve the service life of mobile unit.
In a kind of possible embodiment, as shown in figure 3, logic judgment module 107 is or door.
In a kind of possible embodiment, as shown in figure 4, logic judgment module 107 includes 1071 He of first diode
Second diode 1072.The external trigger switch 105 of anode of first diode 1071, the cathode and switch of first diode 1071
The enable end of control module 102 connects.The anode of second diode 1072 is connect with the output end of timing module 101, and the two or two
The cathode of pole pipe 1072 is connect with the enable end of switch control module 102.Illustratively, when a vehicle is started, trigger switch 105
For closed state, the just extremely high level of first diode 1071, the conducting output high level of first diode 1071, the one or two pole
The high level that pipe 1071 exports acts on the enable end of switch control module 102, opens switch control module 102, to make
Obtaining vehicle power supply 106 is the power supply of main control module 104.When vehicle stall, trigger switch 105 is off-state, first diode
1071 are not turned on output low level.Timing module 101 starts timing function, sets timing length as 10s, timing module 101 is counted
When during export high level, therefore the second diode 1072 is held on output high level, and switch control module 102 is kept it turning on,
Vehicle power supply 106 is the power supply of main control module 104.Low level, the second diode 1072 are exported after 101 timing 10s of timing module
Low level is exported, switch control module 102 is closed, and switch control module 102 stops the voltage output of vehicle power supply 106 to master
Control module 104.
In a kind of possible embodiment, as shown in figure 5, shutdown detection module 103 includes first resistor 1031, second
Resistance 1032 and third diode 1033.Trigger switch 105 is connected with first resistor 1031 and second resistance 1032, the three or two pole
Pipe 1033 is in parallel with second resistance 1032, the node between first resistor 1031 and second resistance 1032 and main control module 104
Input terminal connection.When trigger switch 105 is off-state, the node between first resistor 1031 and second resistance 1032 is set to
For low level, main control module 104 starts shutdown process when receiving low level.Due to the meter of the starting of timing model 101 at this time
When, timing module 101 exports high level before timing terminates, so that switch control module 102 is opened.Based on vehicle power supply is kept
It controls module 104 to power, after 101 timing of timing module, i.e. the shutdown of main control module 104 terminates, and switch control module 102 closes
It closes, switch control module 102 stops the voltage output of vehicle power supply 106 to main control module 104, so as to avoid power-off shutdown
It is damaged caused by mobile unit, extends the service life of mobile unit.
In a kind of possible embodiment, as shown in fig. 6, the output end OUT and timing module of switch control module 102
101 power end VCC connection, for controlling vehicle power supply 106 as the power supply of timing module 101.When trigger switch 105 is closed form
State, logic judgment module 107 export the first enable signal, and control switch control module 102 is opened, so that vehicle power supply
106 power for timing module 101 and main control module 104, and timing module 101 starts.Timing module 101 is opened after starting in triggering
It closes 105 and exports high level for closed state.When trigger switch 105 switches to off-state from closed state, timing module 101 is opened
Dynamic timing function, exports low level at the end of timing, logic judgment module 107 exports the second enable signal, control switch control
Module 102 is closed, and switch control module 102 stops the voltage output of vehicle power supply 106 to main control module 104.
In a kind of possible embodiment, as shown in fig. 7, the output end OUT of main control module 104 and timing module 101
Reset terminal RESET connection, for being resetted after actuation to timing module 101.Specifically, after main control module 104 starts,
Count resets are carried out to the timing in timing module 101.Illustratively, set in timing module 101 preset timing length as
10s, after main control module 104 starts, the 10s of timing when periodically shutting down in timing module 101 for last time main control module 104 then will
Timer counter in timing module 101 is reset to 0s.Illustratively, set in timing module 101 preset timing length as
10s.When main control module 104, which shuts down, to be completed, timing 7s in timing module 101 is main if main control module 104 turns back at this time
Control module 104 controls timing module 101 and stops timing and timer counter is reset to 0s.
In a kind of possible embodiment, as shown in figure 8, switch control module 102 includes converter DCDC,
Voltage for exporting vehicle power supply is converted to main control module required voltage and timing module required voltage.Due to vehicle
The voltage for carrying power supply is fixed, and voltage required for modules is not identical in mobile unit, will using converter
The voltage of vehicle power supply is converted into modules required voltage in mobile unit, meets the power demand of modules.
In order to preferably explain the present invention, describe that one kind provided by the invention is vehicle-mounted to be set below with reference to specific implement scene
It is standby, as shown in figure 9, including timing module 101, switch control module 102, shutdown detection module 103, main control module 104, logic
Judgment module 107.Logic judgment module 107 includes first diode 1071 and the second diode 1072, and shut down detection module 103
Including first resistor 1031, second resistance 1032 and third diode 1033.
The input terminal IN of timing module 101 is connect with trigger switch 105, and the external triggering of the anode of first diode 1071 is opened
105 are closed, the cathode of first diode 1071 is connect with the enable end EN of switch control module 102.Second diode 1072 is just
Pole is connect with the output end OUT of timing module 101, the cathode of the second diode 1072 and the enable end of switch control module 102
EN connection.The input terminal VIN of switch control module 102 and vehicle power supply 106, the output end VOUT of switch control module 102 with
The power end VCC connection of the power end VCC and main control module 104 of timing module 101.The output end OUT of main control module 104 with
The reset terminal RESET connection of timing module 101.Trigger switch 105 is connected with first resistor 1031 and second resistance 1032, third
Diode 1033 is in parallel with second resistance 1032, node and main control module between first resistor 1031 and second resistance 1032
104 input terminal IN connection.
When automobile starting, trigger switch is closed, and the anode of first diode 1071 is set to high level, first diode
1071 conducting output high level.The enable end EN of switch control module 102 is set to high level, and switch control module 102 is opened,
So that vehicle power supply 106 is that main control module 104 and timing module 101 are powered.Main control module 104 starts starting procedure, timing mould
Block 101 starts, and 104 output reset signal of main control module resets 101 timer counter of timing module.The input of timing module 101
End is set to high level, output high level, so that the second diode 1072 conducting output high level.
When automobile flameout, trigger switch 105 is disconnected, and the node between first resistor 1031 and second resistance 1032 is set to
For low level, the input terminal of main control module 104 is low level, so that main control module 104 starts shutdown process.Trigger switch 105
When disconnection, the input terminal IN of timing module 101 is set to low level, and timing module 101 starts timing function, it is assumed that timing module
101 preset timing lengths are 5s, and main control module 104 shuts down required duration less than 5s.It is exported after 101 timing 5s of timing module low
Level, so that the second diode 1072 exports low level.When being disconnected due to trigger switch 105, first diode 1071 exports low
Level, therefore the enable end EN of switch control module 102 is set to low level, switch control module 102 is closed, switch control module
102 stop the voltage output of vehicle power supply 106 to main control module 104.Since the timing length of pre- timing module 101 is less than master
Control module 104 is shut down required duration, therefore after main control module 104 shuts down, switch control module 102 can just stop will be vehicle-mounted
The voltage output of power supply 106 is to main control module 104, so as to avoid direct power-off shutdown to system software in mobile unit and firmly
The impact of part can effectively improve service life and the user experience of mobile unit.Secondly, being opened after 101 timing of timing module
It closes control module 102 to close, avoids the shutdown high current caused by the shutdown of main control module 104 failure or device fault and ask
Topic, avoids the risk of vehicle power supply over-discharge.
The embodiment of the present application also provides a kind of automobile, which includes: vehicle power supply, trigger switch and above-mentioned any
A kind of mobile unit in embodiment.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.