Summary of the invention
The deficiency that the present invention exists in order to overcome prior art, provides a kind of power intelligent monitoring device.
The present invention can be by taking following technical scheme to be achieved:
A kind of power intelligent monitoring device, comprise PC and controller, this device also comprises ups power, transformer, USB interface and trigger circuit, described PC is connected with external power source by ups power, controller is connected with external power source by transformer, and controller is connected with PC with trigger circuit by USB interface respectively.
Controller of the present invention comprises single-chip microcomputer and level shifting circuit, described level shifting circuit is connected on single-chip microcomputer, one end of described USB interface is connected on single-chip microcomputer, its other end is connected on PC, the input end of described 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 start pin and short circuit and triggers and restart on pin.
On the basis of the above, between USB interface of the present invention and controller, be connected to photoelectrical coupler; Between described trigger circuit and controller, be connected to photoelectrical coupler; Between described ups power and PC, be connected to three terminal regulator.
Compared with prior art, the invention has the beneficial effects as follows: the present invention makes PC be connected with controller by USB interface, utilize the software end of PC and the signal intelligence of controller can automatically detect current power supply situation, communicate by letter with the monitoring software on server again, accomplishing can be when power-off suddenly, automatically shut down server power supply, avoided the operation of power-off descendant work shutdown, the intelligent monitoring that has realized power supply regulates; Meanwhile, use USB interface can confirm the ruuning situation of PC, by trigger circuit, make controller control PC Auto Power On or restart, realized the intelligent management to PC power supply.
Embodiment
Below in conjunction with accompanying drawing, most preferred embodiment of the present invention is described in detail.
As shown in Figure 1, power intelligent monitoring device of the present invention, comprise PC 1, controller 2, ups power 3, transformer 4, USB interface 5 and trigger circuit 6, described PC 1 is connected with external power source 10 by ups power 3, controller 2 is crossed transformer 4 and is connected with external power source 10, and controller 2 is connected with PC 1 with trigger circuit 6 by USB interface 5 respectively.Wherein, described controller 2 comprises single-chip microcomputer and level shifting circuit, described level shifting circuit is connected on single-chip microcomputer, one end of described USB interface is connected on single-chip microcomputer, its other end is connected on PC 1, the input end of described 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 start pin and short circuit and triggers and restart on pin.
Power intelligent monitoring device main working process of the present invention is as follows: the power supply of controller is that the direct current that 220V civil power is transformed into 12V through transformer provides by external power source, the power supply of PC can be provided by the accumulate ups power of 1~2 minute through one by 220V civil power, after civil power has a power failure suddenly, controller is power-off immediately, and PC is owing to being connected with UP power supply, it also can work on a period of time.At this moment, between PC and controller, can not realize real-time Communication for Power, therefore had a power failure by the in house software judgement of PC, PC provides at ups power and within the scope of effective time of power supply, completes automatic shutdown after necessary work.When civil power normal power supply, controller is normally worked, and by USB interface, constantly monitors the power supply situation of PC.If PC is when shutdown unit, PC just can not provide 5V voltage to USB interface again, and controller is exported a short-circuit signal to the short circuit triggering start pin of the mainboard of PC after this situation being detected, starts PC.If PC is when abnormality, communicating by letter between PC and controller fails to reach Handshake Protocol with regard to data, controller can confirm that PC is in deadlock state, short-circuit signal of controller output is restarted on pin to the short circuit triggering of the mainboard of PC, restart PC, in order to prevent maloperation, in controller processing protocol, increased by 5 seconds and waited for and detect affirmation mechanism 3 times.Power intelligent monitoring device of the present invention makes PC realize shutdown, start shooting and restart three kinds of functions according to electric power thus supplied by USB interface and trigger circuit, has realized the intellectuality of PC power supply is controlled.
Between USB interface 5 of the present invention and controller 2, be connected to photoelectrical coupler 7, be used for the electrical connection of USB interface 5 between PC 1 and single-chip microcomputer, avoid phase mutual interference; Between described trigger circuit 6 and controller 2, be connected to photoelectrical coupler 8, be used for the electrical connection of the short circuit pin of PC 1 and the short circuit of single-chip microcomputer output, avoid phase mutual interference; Between described ups power 3 and PC 1, be connected to three terminal regulator 9, in power-off, by ups power, for electric energy, safeguard the stable of PC 1 input voltage.
As shown in Figure 2, controller 2 of the present invention mainly consists of single-chip microcomputer and level shifting circuit, single-chip microcomputer adopts the 12C5620AD chip of STC series, wherein, capacitor C 10 and resistance R 4 form reset circuit, and Y1 is crystal oscillator, capacitor C 11 and capacitor C 12 are starting of oscillation electric capacity, pin 2 and pin 3 are respectively RXD end and TXD end, and pin 12 is USB interface link, and pin 13 is short circuit output terminal.Level shifting circuit mainly consists of chip SP232EE and auxiliary circuit, and its pin 9 is connected with 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.
As shown in Figure 3, Figure 4, USB interface 5 of the present invention adopts the usb interface module of standard, it receives on the pin 12 of single-chip microcomputer by a photoelectrical coupler, make PC can realize and communicating by letter with single-chip microcomputer, simultaneously, PC provides a 5V voltage to USB interface, makes monolithic function confirm the energising situation of PC.Trigger circuit 6 can be that two wires or other have the circuit of Trigger Function, its one end is received on the pin 13 of monolithic mechanism by a photoelectrical coupler, the short circuit that the other end is received the mainboard of PC triggers start pin and short circuit and triggers and restart on pin, by Single-chip Controlling short circuit, exported, trigger PC start or restart.
Only as described above, only for the present invention's preferred embodiment, when not limiting with this scope of the invention process, the content of generally recording according to the claims in the present invention and description of the invention has been done simple equivalence and has been changed and modify, and is all still covered by the claims of the invention.In addition, summary part and title are only the use for auxiliary patent document search, are not used for limiting the present invention's interest field.