Utility model content
The utility model provides a kind of vehicular power-bottle power-fail detection circuit; be intended to solve prior art when vehicular power-bottle power down, data are preserved, Software thread is protected or discharge the problem of occupied channel resource to make circuit module can realize before power down cannot to carry out detection of power loss.
The utility model realizes like this, a kind of vehicular power-bottle power-fail detection circuit, be connected with the controller in automobile, when vehicular power-bottle power down, the circuit module in the detection of power loss signal control automobile that described controller exports according to described vehicular power-bottle power-fail detection circuit carries out data preservation, Software thread protection or channel release; Described circuit module obtains power supply by the power circuit in automobile from described vehicular power-bottle;
Described vehicular power-bottle power-fail detection circuit comprises partial pressure unit and switch element, the input end of described partial pressure unit connects the electric mouth of described vehicular power-bottle, the mouth of described partial pressure unit connects the controlled end of described switch element, the input end of described switch element connects direct supply, the mouth of described switch element connects described controller, and equal ground connection is held on the ground end of described partial pressure unit and the ground of described switch element;
When described vehicular power-bottle power down, described partial pressure unit output low level is to described switch element, and described switch element correspondingly exports described detection of power loss signal according to described low level.
Another object of the present utility model is also to provide a kind of automobile comprising above-mentioned vehicular power-bottle power-fail detection circuit.
The utility model comprises the vehicular power-bottle power-fail detection circuit of partial pressure unit and switch element by adopting, when vehicular power-bottle power down, partial pressure unit output low level is to switch element, switch element correspondingly exports detection of power loss signal according to this low level, achieve the detection of power loss function to vehicular power-bottle, controller in automobile just can realize data and preserve according to the circuit module in this detection of power loss signal control automobile, Software thread is protected or is discharged occupied channel, and then make the circuit module in automobile can complete the preservation of corresponding data before complete power down, Software thread protection or signal release, solve prior art when vehicular power-bottle power down, detection of power loss cannot be carried out preserve to make circuit module can realize data before power down, Software thread is protected or is discharged the problem of occupied channel resource.
Detailed description of the invention
In order to make the purpose of this utility model, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the utility model is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the utility model, and be not used in restriction the utility model.
Fig. 1 shows the structure of the vehicular power-bottle power-fail detection circuit that the utility model embodiment provides, and for convenience of explanation, illustrate only the part relevant to the utility model, details are as follows:
Vehicular power-bottle power-fail detection circuit 100 is connected with the controller 200 in automobile; when vehicular power-bottle 300 power down, the circuit module 400 in the detection of power loss signal control automobile that controller 200 exports according to vehicular power-bottle power-fail detection circuit 100 carries out data preservation, Software thread protection or channel release.Circuit module 400 obtains power supply by the power circuit 500 in automobile from vehicular power-bottle 300.
Above-mentioned data are preserved, refer to when circuit module 400 is for being similar to the devices such as car running computer, if it does not possess emergent data hold function when power down, then loss of data can be caused, so need first control circuit module 400 pairs of data before power down to preserve.
Above-mentioned Software thread protection; refer to when circuit module 400 is for being similar to the devices such as automatic navigator; if it does not possess corresponding Software thread defencive function when power down; then cannot retain the Software thread (i.e. application scenarios) before power down; then need to reset Software thread after re-powering start; inconvenience is brought, so need first control circuit module 400 before power down to realize Software thread protection to user.
Above-mentioned channel release, refer to when circuit module 400 is for wireless communication module (as LTE module), because LTE module provides wireless network to occupant before power down, part or all of channel in wireless network can be occupied, need before complete power down, to close wireless network to discharge channel, so as upper once work time provide network insertion service smoothly for user.
Vehicular power-bottle power-fail detection circuit 100 comprises partial pressure unit 101 and switch element 102, the input end of partial pressure unit 101 connects the electric mouth of vehicular power-bottle 300, the controlled end of the mouth connecting valve unit 102 of partial pressure unit 101, the input end of switch element 102 connects direct supply (it can be+3.3V the direct supply shown in Fig. 1), the mouth of switch element 102 connects described controller 200, and equal ground connection is held on the ground end of partial pressure unit 101 and the ground of switch element 102.
When vehicular power-bottle 300 power down, partial pressure unit 101 output low level is to switch element 102, and switch element 102 correspondingly exports above-mentioned detection of power loss signal according to this low level.Because circuit module 400 obtains power supply by the power circuit 500 in automobile from vehicular power-bottle 300; after vehicular power-bottle 300 power down; the power supply voltage of circuit module 400 can fall thereupon; cannot before support circuit module 400 works on so drop at power supply voltage; controller 200 carries out data preservation, Software thread protection or channel release according to this detection of power loss signal control circuit module 400; then circuit module 400 follows falling of power supply voltage and completely power down again, thus ensures that circuit module 400 can normally work after the power-up.
When vehicular power-bottle 300 is to each circuit module supply regular power in automobile, partial pressure unit 101 exports high level to switch element 102, switch element 102 correspondingly exports upper power detection signal according to this high level, now show that vehicular power-bottle 300 normally exports direct current (DC) (12V or 24V), then each circuit module that controller 200 controls in automobile normally works.
Concrete, as shown in Figure 2, partial pressure unit 101 comprises the second resistance R2 and the 3rd resistance R3, the first end of the second resistance R2 is the input end of partial pressure unit 101, the common contact of second end of the second resistance R2 and second end of the 3rd resistance R3 is the mouth of partial pressure unit 101, and second end of the 3rd resistance R3 is the ground end of partial pressure unit 101.The controlled end of switch element 102 is exported to after second resistance R2 and the 3rd resistance R3 carries out voltage division processing to the output voltage of vehicular power-bottle 300.If vehicular power-bottle 300 supply regular power, then the controlled end of switch element 102 can receive high level; If vehicular power-bottle 300 power down, then the controlled end of switch element 102 can receive low level.
As shown in Figure 2, switch element 102 comprises switching valve 1021 and the first resistance R1, the control end of switching valve 1021 and cold end are respectively controlled end and the ground end of switch element 102, the common contact of the hot end of switching valve 1021 and the first end of the first resistance R1 is the mouth of switch element 102, and second end of the first resistance R1 is the input end of switch element 102.Wherein, switching valve 1021 can be specifically NMOS tube, NPN type triode or other possess the semiconductor devices of switching characteristic.
When switching valve 1021 is NMOS tube N1, as shown in Figure 3, the grid of NMOS tube Q1, drain electrode and source electrode are respectively the control end of switching valve 1021, hot end and cold end.In partial pressure unit 101 because of vehicular power-bottle 300 power down during output low level; NMOS tube N1 realizes turning off according to this low level; the drain electrode of NMOS tube N1 can obtain high level by the first resistance R1; this high level exports controller 200 to as above-mentioned detection of power loss signal, and controller 200 carries out data preservation, Software thread protection or channel release according to this high level circuit module 400 controlled in automobile.In addition, if vehicular power-bottle 300 supply regular power, then partial pressure unit 101 can export high level, NMOS tube N1 realizes conducting according to this high level, the current potential that NMOS tube N1 can be drained because of conducting drags down, thus output low level as above-mentioned upper power detection signal to controller 200, controller 200 controls each circuit module and normally works.
When switching valve 1021 is NPN type triode Q1, as shown in Figure 4, then the base stage of NPN type triode Q1, collecting electrode and emitter are respectively the control end of switching valve 1021, hot end and cold end.In partial pressure unit 101 because of vehicular power-bottle 300 power down during output low level; NPN type triode Q1 realizes turning off according to this low level; the collecting electrode of NPN type triode Q1 can obtain high level by the first resistance R1; this high level exports controller 200 to as above-mentioned detection of power loss signal, and controller 200 carries out data preservation, Software thread protection or channel release according to this high level circuit module 400 controlled in automobile.In addition, if vehicular power-bottle 300 supply regular power, then partial pressure unit 101 can export high level, NPN type triode Q1 realizes conducting according to this high level, the current potential of its collecting electrode can drag down because of conducting by NPN type triode Q1, thus output low level as above-mentioned upper power detection signal to controller 200, controller 200 controls each circuit module and normally works.
Based on the effect in the car of above-mentioned vehicular power-bottle power-fail detection circuit, the utility model embodiment still provides a kind of automobile comprising above-mentioned vehicular power-bottle power-fail detection circuit.
The utility model embodiment comprises the vehicular power-bottle power-fail detection circuit 100 of partial pressure unit 101 and switch element 102 by adopting, when vehicular power-bottle 300 power down, partial pressure unit 101 output low level is to switch element 102, switch element 102 correspondingly exports detection of power loss signal according to this low level, achieve the detection of power loss function to vehicular power-bottle 300, controller 200 in automobile just can realize data and preserve according to the circuit module 400 in this detection of power loss signal control automobile, Software thread is protected or is discharged occupied channel, and then make the circuit module 400 in automobile can complete the preservation of corresponding data before complete power down, Software thread protection or signal release, solve prior art when vehicular power-bottle power down, detection of power loss cannot be carried out preserve to make circuit module can realize data before power down, Software thread is protected or is discharged the problem of occupied channel resource.
The foregoing is only preferred embodiment of the present utility model; not in order to limit the utility model; all do within spirit of the present utility model and principle any amendment, equivalent to replace and improvement etc., all should be included within protection domain of the present utility model.