Summary of the invention
In view of this, the embodiment of the present invention provides a kind of running car data logging system and method, effectively can prevent the problem of interrupting data logging when automobile flameout, and improve the life-span of each element of running car data logging system.
The embodiment of the present invention provides a kind of running car data logging system, and described running car data logging system comprises:
Digital video recorder, in the energized state, the running data of automobile according to described running car situation record;
First on-off element, is connected between power supply and described digital video recorder, for controlling the energising of described digital video recorder or power-off;
Second switch element, for controlling described first switching elements conductive or disconnection;
First line, controls described second switch element conductive for the conducting when automobile starting;
Second circuit, for controlling described second switch element conductive when automobile flameout; And
Micro-control unit, with described digital video recorder and described second connection, for controlling described second line conduction when automobile flameout, and whether complete for the data processing judging described digital video recorder after automobile flameout, and control described second circuit continuation conducting or disconnection according to judged result.
As the further improvement of the embodiment of the present invention, described first on-off element and described second switch element are transistor.
As the further improvement of the embodiment of the present invention, described first on-off element is low level conducting, and a path terminal of described second switch element is connected with the control end of described first switch, another path terminal ground connection of described second switch element.
As the further improvement of the embodiment of the present invention, described first line comprises the first diode, and the anode of described first diode connects ACC shelves, and the negative electrode of described first diode connects the control end of described second switch element.
As the further improvement of the embodiment of the present invention, described first line comprises zener diode further, and described zener diode is connected between the anode of described ACC shelves and described first diode.
As the further improvement of the embodiment of the present invention, described second circuit comprises the second diode, and the anode of described second diode connects described micro-control unit, and the negative electrode of described second diode connects the control end of described second switch element.
As the further improvement of the embodiment of the present invention, to the interrupt signal that described micro-control unit sends, described micro-control unit is also for judging that described data processing completes according to described digital video recorder.
The embodiment of the present invention also provides a kind of running car data record method, said method comprising the steps of:
When automobile starting, first line conducting, and then the first switching elements conductive making connection power supply and digital video recorder, make described digital video recorder for there being electricity condition;
The running data of described digital video recorder automobile according to described running car situation record;
When described automobile flameout, described first line disconnects, and micro-control unit makes the second line conduction, and then makes described first on-off element keep conducting;
Described micro-control unit judges whether the data processing of described digital video recorder completes, if judge, described data processing does not complete, then make the second circuit continue conducting; If judge, described data processing completes, then make described second circuit disconnect.
As the further improvement of the embodiment of the present invention, described micro-control unit judges whether the data processing of described digital video recorder completes and comprises: to the interrupt signal that described micro-control unit sends, described micro-control unit judges that described data processing completes according to described digital video recorder.
System and method according to the abovementioned embodiments of the present invention, the on-off element controlling to be connected with described digital video recorder by increasing by second circuit makes described digital video recorder still can keep "on" position after automobile flameout, interruption of power supply when effectively can prevent data logging, improves the life-span of each element of running car data logging system.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, be described in detail below.
Detailed description of the invention
For further setting forth the present invention for the technological means that realizes predetermined goal of the invention and take and effect, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
First embodiment
Please refer to Fig. 1, the structural representation of a kind of running car data logging system that Fig. 1 provides for first embodiment of the invention.As shown in Figure 1, this running car data logging system comprises: one or more digital video recorder 100 (only illustrating one in figure), the first on-off element 200, second switch element 300, first line 400, second circuit 500, micro-control unit 600 and power supply 700.
Digital video recorder 100 adopts hard disc recording, is also referred to as DVR.Digital video recorder 100 is a set of computer systems of carrying out image stores processor, have image/voice recorded a video for a long time, record, the function of telemonitoring and control, DVR has gathered the five functions such as video tape recorder, image splitter, platform-lens control, alarm control, Internet Transmission.In detail, when digital video recorder 100 works, also along with other element cooperating.Such as, camera collection data, the data of described camera collection process by digital video recorder 100.
Further, digital video recorder 100 can be 360 ° of overall view monitoring systems (AroundViewMonitor is called for short AVM).Described 360 ° of overall view monitoring systems at least comprise video tape recorder, camera, telltale and main frame etc.Certainly, described 360 ° of overall view monitoring systems can comprise than above-mentioned more or less assembly, or from above-mentioned different assembly.In the present embodiment, digital video recorder 100 in the energized state, according to the running data of running car situation record automobile.Further, digital video recorder 100 is photo or the video of the environment of camera collection vehicle periphery according to the running data of the process of running car situation and record.
Power supply 700 is automotive battery.When automobile starting, this power supply 700 is that each parts of this automobile are powered.
First on-off element 200 is connected between power supply 700 and digital video recorder 100, is energized or power-off for controlling this digital video recorder 100.When first on-off element 200 is conducting state, power supply 700 is powered for this digital video recorder 100, and digital video recorder 100 is for there being electricity condition.When first on-off element 200 is off state, power supply 700 stops powering for this digital video recorder 100, and digital video recorder 100 is off-position.In the present embodiment, the first on-off element 200 comprises control end, the first path terminal and alternate path end, and control end connects second switch element 300, first path terminal and connects digital video recorder 100, and alternate path end connects power supply 700.Preferably, this first on-off element 200 is aerotron, and the base stage of aerotron is control end, and current collection is the first path terminal very, launches very alternate path end.In other embodiments, this first on-off element 200 is transistor.
Second switch element 300 is for controlling this first on-off element 200 conducting or disconnection.In the present embodiment, second switch element 300 comprises control end, the first path terminal and alternate path end, and control end connects first line 400 and the second circuit 500, first path terminal connects the first on-off element 200, alternate path end ground connection.Preferably, this second switch element 300 is aerotron, and the base stage of aerotron is control end, and current collection is the first path terminal very, launches very alternate path end.In other embodiments, this second switch element 300 is transistor.
Micro-control unit (MicrocontrollerUnit; MCU) 600, also known as one chip microcomputer (SingleChipMicrocomputer) or micro controller system, be central process unit (CentralProcessUnit; CPU) frequency and specification do suitable reduction, and by the perimeter interface such as internal memory (memory), counting machine (Timer), USB, A/D conversion, UART, PLC, DMA, even LCD driving circuit is all incorporated on one chip, form the computing machine of chip-scale, do various combination for different application scenarios and control.In the present embodiment, this micro-control unit 600 connects this digital video recorder 100 and this second circuit 500.
First line 400 is for the conducting when automobile starting and control this second switch element 300 conducting.In the present embodiment, first line 400 comprises zener diode 401 and the first diode 402, the negative electrode of zener diode 401 connects ACC shelves, and the anode of zener diode 401 connects the anode of the first diode 402, and the negative electrode of the first diode 402 connects the control end of this second switch element 300.In addition, this first line 400 also comprises the first resistance 403 and the second resistance 404, and this first resistance 403 is connected between the negative electrode of ACC shelves and this zener diode 401, and preferably, this first resistance 403 is divider resistance, and resistance is preferably 1K Ω.Between the anode that this second resistance 404 is connected to the first diode 402 and ground, resistance is preferably 47K Ω.
Second circuit 500 is for controlling this second switch element conductive 300 when automobile flameout.In the present embodiment, the anode that the second circuit 500 comprises the second diode 501, second diode 501 connects this micro-control unit 300, and negative electrode connects the control end of this second switch element 300.
In detail, during automobile starting, connect annex (than annexes such as Source Musics) power supply by ACC shelves, ACC shelves are controlled by car key, the coupling power supply along with the startup of automobile, automobile flame-out and disconnect annex.Therefore, during automobile starting, connect first line 400 conducting of ACC shelves, that is, first diode 402 conducting of first line 400, makes second switch element 300 conducting, and then makes the first on-off element 200 conducting, thus realize power supply 700 and power to digital video recorder 100, the running data of digital video recorder 100 automobile according to described travel conditions record.
In an example, second switch element 300 is high level conducting, and the first on-off element 200 is low level conducting.Therefore, after connecting first line 400 conducting of ACC shelves, second switch element 300 conducting, by the grounded emitter of second switch element 300, the collecting electrode of second switch element 300 is connected with the first on-off element 200, when after second switch element 300 conducting, the control end voltage of the first on-off element 200 is dragged down, now the first on-off element 200 conducting, power supply 700 powers to digital video recorder 100 by the first on-off element 200.
During automobile flameout, the first line 400 be connected with ACC shelves disconnects, and that is, the first diode 402 disconnects.Now, micro-control unit 600 provides a Continuity signal (as high level signal) to the second circuit 500, makes the second circuit 500 conducting, and then makes second switch element 300 conducting, thus makes the first on-off element 200 keep conducting state.
Further, micro-control unit 600 also judges after automobile flameout whether the data processing of digital video recorder 100 completes, and continues conducting or disconnection according to described second circuit 500 of judged result control.In detail, whether micro-control unit 600 is subject to the interrupt signal that digital video recorder 100 sends judges whether the data processing of digital video recorder 100 completes by receiving.Such as, if when automobile stops, micro-control unit 300 receives the interrupt signal that described digital video recorder 100 sends, then the data processing of representative digit video cassette recorder 100 completes, then interrupt the second circuit 500.
Under normal circumstances, when automobile flameout, first line 400 are interrupted, the general also corresponding ephemeral data collecting the automobile flameout moment of camera of digital video recorder 100, digital video recorder 100 also will carry out data processing, therefore, after automobile flameout, digital video recorder 100 also needs certain hour to carry out data processing.Now, digital video recorder 100 can not send interrupt signal to micro-control unit 600, and micro-control unit 600 keeps the second circuit 500 to be conducting state, makes power supply 700 continue as digital video recorder 100 and powers.
Further, when the data processing of digital video recorder 100 completes, digital video recorder 100 sends interrupt signal to micro-control unit 600, micro-control unit 600 sends the instruction of interruption second circuit 500 after receiving this interrupt signal, the second diode 501 of the second circuit 500 is ended.The cut-off of the second diode 501 causes second switch element 300 to end, and then the cut-off of second switch element 300 causes the first on-off element 200 to end further, thus makes power supply 700 stop powering to digital video recorder 100.
According to the system of the present embodiment, by increasing by second circuit 500, thus make digital video recorder 100 when automobile flameout, first line 400 disconnect, still make power supply 700 continue as digital video recorder 100 by the second circuit 500 conducting to power, therefore effectively can prevent digital video recorder 100 from interrupting the problem of data logging when automobile flameout, and effectively improve the life-span of the element of digital video recorder.
Second embodiment
The present embodiment provides a kind of running car data record method, and the method for the present embodiment can be used in the system shown in Fig. 1, and as described in Figure 2, the method for the present embodiment comprises the following steps:
Step S101, when automobile starting, first line conducting, and then the first switching elements conductive making connection power supply and digital video recorder, make described digital video recorder for there being electricity condition.
Particularly, when automobile starting, the first line 400 connecting ACC shelves is connected, and makes second switch element 300 conducting of connection first line 400, and then make the first on-off element 200 conducting of being connected with second switch element 300, thus realize power supply 700 and power to digital video recorder 100.
The running data of step S102, described digital video recorder automobile according to described running car situation record.
Particularly, when power supply 700 powers to digital video recorder 100, digital video recorder 100 can according to the running data of running car situation record automobile.
Step S103, when described automobile flameout, described first line disconnects, and micro-control unit makes the second line conduction, and then makes described first on-off element keep conducting.
Step S104, described micro-control unit judge whether the data processing of described digital video recorder completes.
In detail, if micro-control unit 600 judges that the data processing of digital video recorder 100 does not complete, then perform step S105; If judge, the data processing of digital video recorder 100 completes, then perform step S106.
In detail, micro-control unit 600 judges whether the data processing of digital video recorder 100 completes and comprises: to the interrupt signal that micro-control unit 600 sends, micro-control unit 600 judges that described data processing completes according to digital video recorder 100.If micro-control unit 600 receives the interrupt signal that digital video recorder 100 sends, judge that the data processing of video cassette recorder 100 completes, and interrupt the second circuit 500; If micro-control unit does not receive the interrupt signal that digital video recorder 100 sends, judge that the data processing of video cassette recorder 100 does not complete, then keep the second circuit 500 to be in conducting state, digital video recorder 100 can work on.
Step S105, make described second circuit continue conducting.
Step S106, make described second circuit disconnect.
Other details about the present embodiment further with reference to the first embodiment, can not repeat them here.
According to the method for the present embodiment, by increasing by second circuit 500, thus make digital video recorder 100 when automobile flameout, first line 400 disconnect, still make power supply 700 continue as digital video recorder 100 by the second circuit 500 conducting to power, therefore effectively can prevent digital video recorder 100 from interrupting the problem of data logging when automobile flameout, and effectively improve the life-span of the element of digital video recorder.
Below be only preferred embodiment of the present invention, not any pro forma restriction is done to the present invention, although the present invention discloses as above with preferred embodiment, but and be not used to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, make a little change when the technology contents of above-mentioned announcement can be utilized or be modified to the Equivalent embodiments of equivalent variations, in every case be do not depart from technical solution of the present invention content, according to any simple modification that technical spirit of the present invention is done above embodiment, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.