A kind of power supply smart supervising device
Technical field
The present invention relates to a kind of power supply smart supervising device, belong to the power management techniques field.
Background technology
In safety-security area; Video monitoring platform server (PC) can use ups power to supply power usually, to prevent causing server to have little time to preserve data under the unexpected cut situation of server power supply; Lose important data, more serious is to cause hard disk corruptions.But adopt this method, must before ups power does not have electricity fully, manually remove to turn off server power supply,, after powering on again, need remove to trigger the start button again manually as in sudden power by the staff; And when server software breaks down, need go to restart system manually.If the staff fails in time to start shooting, then server can not normally receive and store the vedio data of front end camera collection, causes losing some important vedio datas.Such power management needs personnel that server is carried out real time monitoring constantly, and this influences the carrying out of security protection work to a certain extent.
Summary of the invention
The present invention provides a kind of power supply smart supervising device in order to overcome the deficiency that prior art exists.
The present invention can be achieved through taking following technical scheme:
A kind of power supply smart supervising device; Comprise PC and controller; This device also comprises ups power, transformer, USB interface and trigger circuit; Said PC links to each other with external power source through ups power, and controller links to each other with external power source through transformer, and controller links to each other with PC with trigger circuit through USB interface respectively.
Controller according to the invention comprises single-chip microcomputer and level shifting circuit; Said level shifting circuit is connected on the single-chip microcomputer; One of said USB interface terminates on the single-chip microcomputer; Its other end is connected on the PC, and the input end of said trigger circuit is connected on the short circuit output pin of single-chip microcomputer, and the short circuit that its output terminal is connected on the mainboard of PC triggers the start pin restarts on the pin with the short circuit triggering.
On the basis of the above, be connected to photoelectrical coupler between USB interface according to the invention and the controller; Be connected to photoelectrical coupler between said trigger circuit and the controller; Be connected to three terminal regulator between said ups power and the PC.
Compared with prior art; The invention has the beneficial effects as follows: the present invention makes PC link to each other with controller through USB interface, utilizes the software end of PC and the signal intelligence of controller can detect current power supply situation automatically, again with server on monitoring software communicate by letter; Accomplishing can be when sudden power; Automatically shut down server power supply, avoided the operation of outage descendant worker shutdown, realized that the intelligent monitoring of power supply is regulated; Simultaneously, use USB interface can confirm the ruuning situation of PC, make controller control PC Auto Power On or restart, realized intelligent management the PC power supply through trigger circuit.
Description of drawings
Fig. 1 is the structured flowchart of power supply smart supervising device of the present invention;
Fig. 2 is a controller internal circuit diagram of the present invention;
Fig. 3 is usb circuit figure of the present invention;
Fig. 4 is trigger circuit figure of the present invention.
Embodiment
Below in conjunction with accompanying drawing most preferred embodiment of the present invention is described in detail.
As shown in Figure 1; Power supply smart supervising device of the present invention; Comprise PC 1, controller 2, ups power 3, transformer 4, USB interface 5 and trigger circuit 6; Said PC 1 links to each other with external power source 10 through ups power 3, and controller 2 is crossed transformer 4 and linked to each other with external power source 10, and controller 2 links to each other with PC 1 with trigger circuit 6 through USB interface 5 respectively.Wherein, Said controller 2 comprises single-chip microcomputer and level shifting circuit; Said level shifting circuit is connected on the single-chip microcomputer, and one of said USB interface terminates on the single-chip microcomputer, and its other end is connected on the PC 1; The input end of said trigger circuit 6 is connected on the short circuit output pin of single-chip microcomputer, and the short circuit that its output terminal is connected on the mainboard of PC 1 triggers the start pin restarts on the pin with the short circuit triggering.
Power supply smart supervising device groundwork process of the present invention is following: the power supply of controller is that the 220V civil power provides through the direct current that transformer is transformed into 12V by external power source; The power supply of PC then can be provided by 1~2 minute ups power of accumulate through one by the 220V civil power; After civil power has a power failure suddenly; Controller can cut off the power supply immediately, and PC is owing to link to each other with the UP power supply, and it also can work on a period of time.At this moment, can not realize real-time Communication for Power between PC and the controller, so judge power failure by the in house software of PC, PC shutdown automatically after ups power provides accomplish necessary work in the scope effective time of power supply.When the civil power normal power supply, the controller operate as normal, and monitor the power supply situation of PC constantly through USB interface.When if PC is in shutdown unit, PC just can not provide 5V voltage to USB interface again, and short-circuit signal of output started PC after controller detected this situation to the short circuit triggering start pin of the mainboard of PC.When if PC is in ERST; Communicating by letter between PC and the controller fails to reach Handshake Protocol with regard to data; Controller can confirm that PC is in the deadlock state, and short-circuit signal of controller output is restarted on the pin to the short circuit triggering of the mainboard of PC, restarts PC; In order to prevent maloperation, increased by 5 seconds in the controller processing protocol and waited for and 3 detection affirmation mechanisms.Power supply smart supervising device of the present invention makes PC realize shutdown, start shooting and restart three kinds of functions according to electric power thus supplied through USB interface and trigger circuit, has realized the intellectuality control to the PC power supply.
Be connected to photoelectrical coupler 7 between USB interface 5 according to the invention and the controller 2, be used for being electrically connected of USB interface 5 between PC 1 and the single-chip microcomputer, avoid the phase mutual interference; Be connected to photoelectrical coupler 8 between said trigger circuit 6 and the controller 2, be used for being electrically connected of short circuit output of short circuit pin and single-chip microcomputer of PC 1, avoid the phase mutual interference; Be connected to three terminal regulator 9 between said ups power 3 and the PC 1, can safeguard the stable of PC 1 input voltage by the ups power power supply in outage.
As shown in Figure 2, controller 2 of the present invention mainly is made up of single-chip microcomputer and level shifting circuit, and single-chip microcomputer adopts the 12C5620AD chip of STC series; Wherein, capacitor C 10 constitutes reset circuit with resistance R 4, and Y1 is a crystal oscillator; Capacitor C 11 is starting of oscillation electric capacity with capacitor C 12; Pin 2 is respectively RXD end and TXD end with pin 3, and pin 12 is the USB interface link, and pin 13 is the short circuit output terminal.Level shifting circuit mainly is made up of chip SP232EE and auxiliary circuit, and its pin 9 links to each other with the TXD end with the RXD end of single-chip microcomputer respectively with pin 10, for single-chip microcomputer carries out the conversion between RS 232 data level and TTL data level.
Like Fig. 3, shown in Figure 4; USB interface 5 of the present invention adopts the usb interface module of standard; It is received on the pin 12 of single-chip microcomputer through a photoelectrical coupler, makes PC and single-chip microcomputer can realize communicating by letter, simultaneously; PC provides a 5V voltage to USB interface, makes the monolithic function confirm the energising situation of PC.Trigger circuit 6 can be that two wires or other have the circuit that triggers function; The one of which end is received on the pin 13 of monolithic mechanism through a photoelectrical coupler; The short circuit that the other end is received the mainboard of PC triggers the start pin restarts on the pin with the short circuit triggering; By Single-chip Controlling short circuit output, the triggering PC is started shooting or is restarted.
The above person of thought; Be merely the present invention's preferred embodiment; When the scope that can not limit the present invention's enforcement with this; The content of promptly putting down in writing according to claim of the present invention and description of the invention has generally been done simple equivalent and has been changed and modify, and all still belongs within the claim of the present invention institute covering scope.In addition, summary part and title only are the usefulness that is used for assisting the patent document search, are not the interest field that is used for limiting the present invention.