CN101719609B - Intelligent power supply socket device and control method thereof - Google Patents

Intelligent power supply socket device and control method thereof Download PDF

Info

Publication number
CN101719609B
CN101719609B CN2009100347389A CN200910034738A CN101719609B CN 101719609 B CN101719609 B CN 101719609B CN 2009100347389 A CN2009100347389 A CN 2009100347389A CN 200910034738 A CN200910034738 A CN 200910034738A CN 101719609 B CN101719609 B CN 101719609B
Authority
CN
China
Prior art keywords
socket
controller
power
power supply
button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2009100347389A
Other languages
Chinese (zh)
Other versions
CN101719609A (en
Inventor
王长宝
黄徐进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changshu Nanjing Normal University Development Research Institute Co Ltd
Original Assignee
Jiangsu University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu University of Science and Technology filed Critical Jiangsu University of Science and Technology
Priority to CN2009100347389A priority Critical patent/CN101719609B/en
Publication of CN101719609A publication Critical patent/CN101719609A/en
Application granted granted Critical
Publication of CN101719609B publication Critical patent/CN101719609B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an intelligent power supply socket device and a control method thereof. A second button arranged on a keyboard controls the power supply of a host socket to switch on or switch off. When the power supply of the host socket is switched off by the second button, a relay is actuated by a first photocoupler, the host socket is switched on the power supply of an AC-DC power supply conversion circuit, a D trigger is set by a capacitor C, a second photocoupler is controlled to switch on by a triode at a Q end, and the relay is kept in actuation. When the host socket is switched on by the second button, a pulse is output by a first controller to the CP clock end of the D trigger, the Q end is in a low level, the second photocoupler is controlled by the triode to stop, the relay is released, and the host socket and the AC-DC power supply conversion circuit are cut off. The invention has the remarkable advantages that only a first indication lamp is electrified, and drain currents exist in the photocoupler and the second photocoupler when the power supply of the host socket is cut off. The computer power supply socket saves energy and is convenient to use.

Description

A kind of intelligent power supply socket device and control method thereof
Technical field
The present invention relates to the electric socket technical field, relate to a kind of power plugboard device and control method thereof that is used for computer concretely.
Background technology
At present, existing computer power supply socket all utilizes mechanical switch control socket power, though can cut off the electricity supply fully, mains switch is not easy operation on the socket but the placement of supply socket makes, cause most people after using a computer, not go the custom of mains switch on the powered-down socket, make computer be in "on" position, cause a large amount of energy wastes.Though the power supply that existing computer power supply socket can be finished the computer peripheral equipment along with the complete opening of main frame with close (close and refer to computer shutdown, dormancy or standby) and connecting and disconnecting, but when cutting out, computer can not cut off the power supply of main frame own, computer can not be controlled the power connection and the disconnection of peripheral equipment when the complete opening state, still the mains switch that will operate on the peripheral equipment is finished.As patent publication No. is " CN1981225A ", name is called the patent of " energy-saving controller ", power supply of main frame own and the computer power supply of Push And Release peripheral equipment in real time in the complete opening process of can not shutting down computer, still to operate the mains switch on the peripheral equipment, as peripheral equipments such as printer, scanners.As to authorize publication number be " CN2850050YA ", name is called the patent of " induction type intelligent power socket plate ", though can solve the power issue of the main frame of shutting down computer own, when the user does other in face of the computer and need not open computer the time, when connecting computer power supply to human infrared signal at the setting-up time internal induction, also have in computer complete opening process and go out when the user is in a hurry, or the user surfs the Net download message and leaves, when time departure surpasses setting-up time and the power supply of shutting down computer by force, user profile will be lost, simultaneously computer hardware there is injury, especially hard disk.
Summary of the invention
The technical problem that the present invention asks for solution is to provide a kind of intelligent power supply socket device and control method thereof at the defective that prior art exists.
The present invention adopts following technical scheme for achieving the above object:
Intelligent power supply socket device of the present invention, it is characterized in that by the keyboard element body, keyboard circuit, the computer power supply socket circuit is formed, keyboard circuit embeds the keyboard element body, described keyboard circuit comprises circuit two, the 7th socket, battery, second button to the, four buttons, the 8th resistance to the 11 resistance, diode, described circuit two is by second controller, second serial interface circuit, the 4th indicator light to the six indicator lights, analog switch is formed, described computer power supply socket circuit is by circuit one, attaching plug, fuse, first indicator light, second indicator light, first socket to the, five sockets, first photoelectrical coupler to the, three photoelectrical couplers, the AC-DC power-switching circuit, d type flip flop, the 6th socket, first switch, second switch, first resistance to the, seven resistance, triode, electric capacity, relay constitutes, described circuit one is by first controller, first serial interface circuit, current sampling circuit, analog to digital conversion circuit, current sensor, first drive circuit to the, three drive circuits, first control circuit to the three control circuits, storage chip, first button, the 3rd indicator light is formed, power supply VCC is connected in series diode successively in the keyboard element body, the tenth resistance is to anode, anode is connected with a end of second button, the b end of second button is connected in series the 8th resistance successively, the 9th resistance power supply ground GND to the keyboard element body, the 8th resistance and the 9th resistance tie point draw holding wire to the second controller input, the b end of second button is connected in series the 11 resistance successively, the 7th socket, the 6th socket is connected with 1 end of first photoelectrical coupler, power supply ground GND is connected with battery cathode in the keyboard element body, power supply ground GND is connected in series the 7th socket successively in the keyboard element body, the 6th socket is connected with 2 ends of first photoelectrical coupler, second controller is connected with second serial interface circuit with bus, second serial interface circuit is connected in series the 7th socket successively, the 6th socket is connected with first serial interface circuit, the 7th socket is connected with the 6th socket of computer power supply socket by external connection line, first controller is connected with first serial interface circuit with bus, the 3rd button, the 4th button is connected with the second controller input respectively, the 4th indicator light to the six indicator lights are connected with second controller output end respectively, second controller output end is connected with the analog switch control end, " Power " electric power on/off key of the output of analog switch and keyboard element body is in parallel, power supply VCC in the keyboard element body, power supply ground GND introduces circuit two, for its working power, live wire L serial connection fuse is to live wire L1, fuse is installed in the attaching plug, zero line N crosses attaching plug to zero line N1, ground wire E crosses attaching plug to ground wire E1, L1 is connected to a end of first switch, the b end of first switch is guided to an end of first resistance respectively by line, the a end of first socket, the a of second switch, the c end, coil one end of relay, the normally opened contact a end of relay, one end of first control circuit to the three control circuit switches, the other end of first resistance is connected in series first indicator light and is connected with zero line N1, the coil other end of relay and first photoelectrical coupler, 6 ends of second photoelectrical coupler are connected, first photoelectrical coupler, 4 ends of second photoelectrical coupler are connected with zero line N1, the b end serial connection current sensor of second switch is connected with a end of second socket, the b end of second switch is connected with the normally opened contact b end of relay, input one end of AC-DC power-switching circuit is connected with the normally opened contact b of relay end, the other end is connected with zero line N1, d end serial connection second resistance of second switch is connected with 1 end of second indicator light, 2 ends of second indicator light are connected with zero line N1,1 of the 3rd photoelectrical coupler, 2 ends respectively with 1 of second indicator light, 2 ends are connected, the anodal V of 4 ends of the 3rd photoelectrical coupler and the out-put supply of AC-DC power-switching circuit +Be connected, 3 ends of the 3rd photoelectrical coupler are connected in series the out-put supply negative pole V of the 3rd resistance and AC-DC power-switching circuit -Be connected, 3 ends of the 3rd photoelectrical coupler are connected with the input of first controller, and the clear terminal R of d type flip flop, set end S are connected in series the anodal V of out-put supply of the 4th resistance, the 5th resistance and AC-DC power-switching circuit respectively +Be connected, the set end S of d type flip flop is connected with capacitance cathode, the out-put supply negative pole V of the emitter e of the input D of electric capacity negative pole, d type flip flop, negative pole VSS, triode and AC-DC power-switching circuit -Be connected, the power input VCC of d type flip flop, 1 end of second photoelectrical coupler are connected in series behind the 7th resistance and the anodal V of the out-put supply of AC-DC power-switching circuit +Be connected, output Q end serial connection the 6th resistance of d type flip flop is connected with the base stage b of triode, the collector electrode c of triode is connected with 2 ends of second photoelectrical coupler, the clock input CP end of d type flip flop is connected with the output of first controller, the output of current sensor is connected in series current sampling circuit successively, analog to digital conversion circuit, analog to digital conversion circuit is connected with the input of first controller, the output of first controller is connected with the input of first drive circuit to the, three drive circuits respectively, the output of first drive circuit to the, three drive circuits is connected with the control end of first control circuit to the three control circuits respectively, the switch other end of first control circuit to the three control circuits connects a end of the 3rd socket to the five sockets respectively by line, the b end and the c end of first socket to the, five sockets meet zero-power line N1 and power ground E1 respectively by line, first controller is connected to storage chip, first button, the 3rd indicator light, the anodal V of the out-put supply of AC-DC power-switching circuit +, negative pole V -Introduce circuit one, for its working power.
The control method of described a kind of intelligent power supply socket device is characterised in that to comprise two kinds of working methods:
Mode (one): when second switch was closed, second button was opened the power supply of second socket and the input power supply of AC-DC power-switching circuit on the utilization computer keyboard, and concrete steps are as follows:
A.) the input power supply of the power supply of second socket and AC-DC power-switching circuit is in dissengaged positions, draw battery by second button on the computer keyboard that opens and export the first photoelectrical coupler input to, the output conducting of first photoelectrical coupler, the control relay adhesive, the input power connection of the power supply of second socket and AC-DC power-switching circuit, first controller is by serial ports sending filter adhesive signal to the second controller, second controller receives relay adhesive signal, and " Power " electric power on/off key starts computer on the control analog switch simulating keyboard;
B.) adopt electric capacity that the set end S of d type flip flop is changed to " 0 ", the output Q end set of d type flip flop, Q holds the output conducting of controlling second photoelectrical coupler by triode, forms relay adhesive locking, i.e. and adhesive keeps;
C.) the power supply output cathode V of AC-DC power-switching circuit +Charge to electric capacity through the 5th resistance, charging finishes, and the set end S of d type flip flop reverts to " 1 ";
D.) the 4th indicator light is normal when bright, second button of clicking, first controller receives the key assignments to second button that second controller sends by serial ports, dump application marking signal to the second controller of loopback second socket, second controller is put the 4th indicator light and is glimmered at a slow speed, the source current of the first controller cycle detection, second socket, in 5 minutes, detect standby current and enter step e, in 5 minutes, detect the shutdown electric current and enter step f, otherwise cancel the dump application of second socket after 5 minutes automatically, send dump application marking signal to the second controller of cancelling second socket simultaneously, second controller is put the 4th indicator light Chang Liang;
E.) first controller sends standby marking signal to the second controller, second controller shields the input of second button to the, four buttons, putting the 4th indicator light glimmers at a slow speed, and by " Power " electric power on/off key startup computer on the analog switch simulating keyboard, delay time and shut down computer by " Power " electric power on/off key on the analog switch simulating keyboard once more after 30 seconds, first controller is waited for computer shutdown, detects the shutdown electric current and enters next step;
F.) first controller output pulse is to the clock CP end of d type flip flop, and the Q end is output as " 0 ", and the Q end is controlled the output of second photoelectrical coupler by triode and ended, and relay discharges, and cuts off the power supply of second socket and the input power supply of AC-DC power-switching circuit;
G.) the input power supply of the power supply of second socket and AC-DC power-switching circuit is in on-state, when the 4th indicator light glimmers at a slow speed, second button of clicking, first controller receives the key assignments to second button that second controller sends by serial ports, dump application marking signal to the second controller of second socket is cancelled in loopback, and second controller is put the 4th indicator light Chang Liang;
H.) the input power supply of the power supply of second socket and AC-DC power-switching circuit is in on-state, when the 4th indicator light normal when bright, when first controller detect the computer standby, the shutdown reach 15 seconds after, automatically cut off the power supply that is switched on of power supply, cut-out the 4th socket and the 5th socket of the 3rd socket, when first controller detect the computer standby, the shutdown reach 15 minutes after, being that standby enters step e, is that shutdown enters step f;
I.) when computer during at complete opening, the power connection of the 3rd socket allows the 3rd button, the 4th button to control the power connection and the cut-out of the 4th socket, the 5th socket respectively; When computer changes standby or shut down 15 seconds from complete opening after, the dump that is switched on of the dump of the 3rd socket, the 4th socket and the 5th socket;
J.) when computer during at complete opening, the 5th indicator light is in illuminating state, and the power connection of the 4th socket is clicked the 3rd button, the dump of the 4th socket, and the 5th indicator light extinguishes; The 5th indicator light is in and extinguishes state, and the dump of the 4th socket is clicked the 3rd button, the power connection of the 4th socket, and the 5th indicator light is lighted;
K.) when computer during at complete opening, the 6th indicator light is in illuminating state, and the power connection of the 5th socket is clicked the 4th button, the dump of the 5th socket, and the 6th indicator light extinguishes; The 6th indicator light is in and extinguishes state, and the dump of the 5th socket is clicked the 4th button, the power connection of the 5th socket, and the 6th indicator light is lighted;
L.) the computer standby power supply that cuts off the 3rd socket to the five sockets when restarting computer during the input power supply of the power supply of second socket and AC-DC power-switching circuit is in dissengaged positions;
When m.) second controller reads the input of second button, after decontroling, circular wait second button just sends key assignments to the first controller of second button by serial ports, thereby guarantee when the clock CP end of first controller output pulse to d type flip flop, the Q end is output as " 0 ", Q end by triode control second photoelectrical coupler by the time, first photoelectrical coupler also is in cut-off state, and relay discharges;
N.) under the input power connection of the power supply of second socket and AC-DC power-switching circuit, second switch closes from closing, the input power supply of the power supply of second socket and AC-DC power-switching circuit will can not cut off by the control of first controller, the 4th indicator light fast blink, the prompting user closes second switch;
Mode (two): second switch closes, and the input power supply of the power supply of second socket and AC-DC power-switching circuit is directly connected by second switch control, and concrete steps are as follows:
O.) second controller enters dormancy, promptly enters power save mode, and second button to the, four buttons are invalid, and the 4th indicator light to the six indicator lights extinguish;
P.) first controller detects the power source loads electric current of second socket, determine the power connection and the cut-out of the 3rd socket to the five sockets by the main frame state, along with the power connection of main frame complete opening the 3rd socket to the five sockets, cut off along with the power supply time-delay 15 seconds of main frame standby, shutdown the 3rd socket to the five sockets.
The present invention controls flexibly, and is easy to use, energy-conservation, and safety has very big use value and social effect.
Description of drawings
Fig. 1 is the computer keyboard and the computer power supply socket connection diagram of intelligent power supply socket device of the present invention;
Fig. 2 is the internal electrical connection diagram of intelligent power supply socket device of the present invention;
Fig. 3 is the computer power supply socket profile schematic diagram of intelligent power supply socket device;
Fig. 4 is the main program flow frame of first controller in the computer power supply socket;
Fig. 5 is first controller among Fig. 4
Figure GSB00000503775000041
The branched program flow chart element;
Fig. 6 is among Fig. 5
Figure GSB00000503775000042
The serial ports interrupt routine flow chart element of first controller 15 of branch;
Fig. 7 is the main program flow frame of second controller in the computer keyboard;
Fig. 8 is the serial ports interrupt routine flow chart element of second controller;
Fig. 9 is that first controller responds the interrupt routine flow chart element that first button is learnt main frame complete opening, standby, shutdown electric current and is stored to storage chip 27;
Among the figure: 1. attaching plug, 2. fuse, 3. first indicator light, 4. second indicator light, 5. to 9. being first socket to the, five sockets, 10. to 12. being first photoelectrical coupler to the, three photoelectrical couplers, the 13.AC-DC power-switching circuit, 14.D trigger, 15. first controller, 16. first serial interface circuits, 17. the 6th sockets, 18. current sampling circuit, 19. analog to digital conversion circuit, 20. current sensors, 21. to 23. is first drive circuit to the, three drive circuits, 24. to 26. being first control circuit to the three control circuits, 27. storage chip, 28. first buttons, 29. the 3rd indicator lights, 30. second controller, 31. the keyboard element body, 32. second serial interface circuits, 33. the 7th sockets, 34. battery, 35. to 37. being second button to the, four buttons, 38. to 40. is the 4th indicator light to the six indicator lights, 41. analog switches, K1. first switch, K2. second switch, R1. to R11. is first resistance to the, 11 resistance, the T. triode, D. diode, C. electric capacity, J. relay, L, L1. live wire, N, N1. zero line, E, E1. ground wire.
Embodiment
Be elaborated below in conjunction with the technical scheme of accompanying drawing to invention:
As Fig. 1, Fig. 2, Fig. 3 is described, a kind of intelligent power supply socket device, by keyboard element body 31, keyboard circuit 401 and computer power supply socket circuit 301 are formed, keyboard element body 31 constitutes the keyboard that intelligent power supply socket device is used for computer with keyboard circuit 401, computer power supply socket circuit 301 constitutes the computer power supply socket of intelligent power supply socket device, keyboard element body 31 is common computer keyboard all functions button and the basic circuits that contain " Power " electric power on/off key function, keyboard circuit 401 embeds keyboard element body 31, its the 7th socket 33 is connected with the 6th socket 17 of computer power supply socket by external connection line, the keyboard that intelligent power supply socket device is used for computer is characterised in that by second controller 30, keyboard element body 31, second serial interface circuit 32, the 7th socket 33, battery 34, second button, 35 to the 4th buttons 37, the 4th indicator light 38 to the 6th indicator lights 40, analog switch 41, the 8th resistance R the 8 to the 11 resistance R 11, diode D forms, wherein second controller 30, second serial interface circuit 32, the 4th indicator light 38 to the 6th indicator lights 40, analog switch 41 forming circuits 2 201; Computer power supply socket circuit 301 constitutes the computer power supply socket of intelligent power supply socket device by attaching plug 1, fuse 2, first indicator light 3, second indicator light 4, first socket, 5 to the 5th sockets 9, first photoelectrical coupler, 10 to the 3rd photoelectrical couplers 12, AC-DC power-switching circuit 13, d type flip flop 14, first controller 15, first serial interface circuit 16, the 6th socket 17, current sampling circuit 18, analog to digital conversion circuit 19, current sensor 20, first drive circuit, 21 to the 3rd drive circuits 23, first control circuit 24 to the 3rd control circuits 26, storage chip 27, the first buttons 28, the 3rd indicator light 29, first K switch 1, second switch K2, first resistance R, 1 to the 7th resistance R 7, triode T, capacitor C, relay J is formed, wherein first controller 15, first serial interface circuit 16, current sampling circuit 18, analog to digital conversion circuit 19, current sensor 20, first drive circuit, 21 to the 3rd drive circuits 23, first control circuit 24 to the 3rd control circuits 26, storage chip 27, first button 28, the 3rd indicator light 29 forming circuits 1; Power supply VCC is connected in series diode D successively in the keyboard element body 31, the tenth resistance R 10 is to battery 34 positive poles, battery 34 anodal ends with a of second button 35 are connected, the b end of second button 35 is connected in series the 8th resistance R 8 successively, the 9th resistance R 9 power supply ground GND to the keyboard element body 31, the 8th resistance R 8 and the 9th resistance R 9 tie points draw holding wire to second controller, 30 inputs, the b end of second button 35 is connected in series the 11 resistance R 11 successively, the 7th socket 33, the 6th socket 17 is connected with 1 end of first photoelectrical coupler 10, power supply ground GND is connected with battery 34 negative poles in the keyboard element body 31, power supply ground GND is connected in series the 7th socket 33 successively in the keyboard element body 31, the 6th socket 17 is connected with 2 ends of first photoelectrical coupler 10, second controller 30 is connected with second serial interface circuit 32 with bus, second serial interface circuit 32 is connected in series the 7th socket 33 successively, the 6th socket 17 is connected with first serial interface circuit 16, first controller 15 is connected with first serial interface circuit 16 with bus, the 3rd button 36, the 4th button 37 is connected with second controller, 30 inputs respectively, the 4th indicator light 38 to the 6th indicator lights 40 are connected with second controller, 30 outputs respectively, second controller, 30 outputs are connected with analog switch 41 control ends, " Power " electric power on/off key of the output of analog switch 41 and keyboard element body 31 is in parallel, power supply VCC in the keyboard element body 31, power supply ground GND introduces circuit 2 201, for its working power, live wire L serial connection fuse 2 to live wire L1, fuse 2 is installed in the attaching plug 1, zero line N crosses attaching plug 1 to zero line N1, ground wire E crosses attaching plug 1 to ground wire E1, L1 is connected to a end of first K switch 1, the b end of first K switch 1 is guided to an end of first resistance R 1 respectively by line, the a end of first socket 5, the a of second switch K2, the c end, coil one end of relay J, the normally opened contact a end of relay J, one end of first control circuit 24 to the 3rd control circuits 26 switches, the other end of first resistance R 1 is connected in series first indicator light 3 and is connected with zero line N1, the coil other end of relay J and first photoelectrical coupler 10,6 ends of second photoelectrical coupler 11 are connected, first photoelectrical coupler 10,4 ends of second photoelectrical coupler 11 are connected with zero line N1, the b end serial connection current sensor 20 of second switch K2 is connected with a end of second socket 6, the b end of second switch K2 is connected with the normally opened contact b end of relay J, input one end of AC-DC power-switching circuit 13 is connected with the normally opened contact b of relay J end, the other end is connected with zero line N1, d end serial connection second resistance R 2 of second switch K2 is connected with 1 end of second indicator light 4,2 ends of second indicator light 4 are connected with zero line N1,1 of the 3rd photoelectrical coupler 12,2 ends respectively with 1 of second indicator light 4,2 ends are connected, the anodal V of 4 ends of the 3rd photoelectrical coupler 12 and the out-put supply of AC-DC power-switching circuit 13 +Be connected, 3 ends of the 3rd photoelectrical coupler 12 are connected in series the out-put supply negative pole V of the 3rd resistance R 3 and AC-DC power-switching circuit 13 -Be connected, 3 ends of the 3rd photoelectrical coupler 12 are connected with the input of first controller 15, and the clear terminal R of d type flip flop 14, set end S are connected in series the 4th resistance R 4, the 5th resistance R 5 and the anodal V of the out-put supply of AC-DC power-switching circuit 13 respectively +Be connected, the set end S of d type flip flop 14 is connected with the capacitor C positive pole, the out-put supply negative pole V of the emitter e of the input D of capacitor C negative pole, d type flip flop 14, negative pole VSS, triode T and AC-DC power-switching circuit 13 -Be connected, 1 end of the power input VCC of d type flip flop 14, second photoelectrical coupler 11 is connected in series the 7th resistance R 7 backs and the anodal V of the out-put supply of AC-DC power-switching circuit 13 +Be connected, output Q end serial connection the 6th resistance R 6 of d type flip flop 14 is connected with the base stage b of triode T, the collector electrode c of triode T is connected with 2 ends of second photoelectrical coupler 11, the clock input CP end of d type flip flop 14 is connected with the output of first controller 15, the output of current sensor 20 is connected in series current sampling circuit 18 successively, analog to digital conversion circuit 19, analog to digital conversion circuit 19 is connected with the input of first controller 15, the output of first controller 15 is connected with 23 inputs of first drive circuit, 21 to the 3rd drive circuits respectively, the output of first drive circuit, 21 to the 3rd drive circuits 23 is connected with the control end of first control circuit 24 to the 3rd control circuits 26 respectively, the switch other end of first control circuit 24 to the 3rd control circuits 26 connects a end of the 3rd socket 7 to the 5th sockets 9 respectively by line, the b end and the c end of first socket, 5 to the 5th sockets 9 meet zero-power line N1 and power ground E1 respectively by line, first controller 15 is connected to storage chip 27, first button 28, the 3rd indicator light 29, the anodal V of the out-put supply of AC-DC power-switching circuit 13 +, negative pole V -Introduce circuit 1, for its working power.
First controller 15 is a unit module, in CPU, microstorage, I/O interface, timer etc. are arranged, be responsible for operation and data processing and the parameter storage and the control of computer power supply socket circuit 301 in the next bit computer electric socket.
Second controller 30 is a unit module, in CPU, microstorage, I/O interface, timer etc. are arranged, be responsible for operation and the data processing and the control of host computer keyboard internal keyboard circuit 401.
First button 28 is inching buttons, is used for 15 pairs of first controllers and is inserted in study of main frame electric current and preservation on second socket 6, and it is drawn from the computer power supply socket upper opening by cap.
Storage chip 27 is EEPROM read-write storage chip, is used to preserve computer complete opening electric current, standby current, shutdown current parameters behind the learning success, and its outage is permanent preservation.
Power supply indication when first indicator light 3 is used for 1 connection of first K switch, first resistance R 1 is used for first indicator light, 3 current limlitings.
Power supply indication when second indicator light 4 is used for second switch K2 connection.
Second resistance R 2 is used for the input current limliting of second indicator light 4 and the 3rd photoelectrical coupler 12.
First K switch 1 is used for the computer power supply socket general supply and connects and cut off, attaching plug 1 is plugged AC power, first K switch 1 of closing, first indicator light 3 is lighted, first socket, 5 power connections, simultaneously fuse is closed first K switch 1 to switch one end of a end of the normally opened contact a end of coil one end of relay J, relay J, second switch K2 and c end, first control circuit 24 to the 3rd control circuits 26, and its out-put supply cuts off.
Fuse 2 is used for total current protection of computer power supply socket.
First socket 5 is the normal open electrical socket, the power connection of first socket when closing first K switch 1, and the dump of first socket when closing first K switch 1, being used to connect power supply does not need controlled equipment.
Second socket 6 is used to connect the socket of main frame power supply.
The 3rd socket 7 is used to connect the socket of computer display.
The 4th socket 8, the 5th socket 9 are respectively applied for and connect the peripheral hardware that use in the computer gap, as printer, scanner, audio amplifier etc.
The 3rd indicator light 29 is used for 15 pairs of first controllers and is inserted in study of main frame electric current and preservation prompting on second socket 6.
First photoelectrical coupler 10, second photoelectrical coupler 11 are the photoelectrical coupler of zero cross fired, export parallel with one another, be used for adhesive and the release of control relay J, when any conducting of output of first photoelectrical coupler 10, second photoelectrical coupler 11, the relay J adhesive, when the output of first photoelectrical coupler 10, second photoelectrical coupler 11 all ended, relay J discharged.
Second button 35 draws the 10 output conductings of battery 34 controls first photoelectrical coupler and ends, and peace opens the 10 output conductings of second button, 35 first photoelectrical couplers, decontrols 10 outputs of second button, 35 first photoelectrical couplers and ends.
The output Q end of d type flip flop 14 is controlled the output conducting of second photoelectrical coupler 11 by triode T and is ended, when the output Q of d type flip flop 14 end is " 1 ", the output conducting of second photoelectrical coupler 11, when the defeated Q of d type flip flop 14 brought out to " 0 ", the output of second photoelectrical coupler 11 ended.
The output Q of d type flip flop 14 holds the set that powers on, be that the Q end is output as " 1 ", be used to control the output conducting of second photoelectrical coupler 11 and keep, the 15 output pulses of first controller are to the clock CP end of d type flip flop 14, the Q end is output as " 0 ", the output of controlling second photoelectrical coupler 11 ends, with output control relay J release under acting in conjunction of first photoelectrical coupler 10.
The clear terminal R of d type flip flop 14, set end S meet the power supply output cathode V of AC-DC power-switching circuit 13 respectively through the 4th resistance R 4, the 5th resistance R 5 +, the set end S of d type flip flop 14 meets the power supply output negative pole V of capacitor C to AC-DC power-switching circuit 13 simultaneously -, the data input pin D of d type flip flop 14 meets the power supply output negative pole V of AC-DC power-switching circuit 13 -, the clock end CP of d type flip flop 14 connects the output of first controller 15, the power end VCC of d type flip flop 14, earth terminal VSS respectively with the power supply output cathode V of AC-DC power-switching circuit 13 +, negative pole V -Be connected.
The clear terminal R of d type flip flop 14, set end S are that " 0 " is effective.
Capacitor C is used for the output Q end set that powers on of d type flip flop 14, and when the input power connection of AC-DC power-switching circuit 13, under the effect of capacitor C, the set end S of d type flip flop 14 be " 0 ", and the output Q of d type flip flop 14 holds set, is " 1 ".
The power supply output cathode V of AC-DC power-switching circuit 13 +To the capacitor C charging, charging finishes through the 5th resistance R 5, and the set end S of d type flip flop 14 reverts to " 1 ".
Set end S at d type flip flop 14 is under the one state, and when need first controller 15 cut off the input power supply of the power supply of second socket 6 and AC-DC power-switching circuit 13, the output pulse was to the clock CP end of d type flip flop 14, and the Q end is output as " 0 ".
The 7th resistance R 7 is used for the input current limliting of second photoelectrical coupler 11.
The output Q that the 6th resistance R 6 is used for d type flip flop 14 holds to the current limliting of the base stage b of triode T.
Second switch K2, relay J are used to control the input power connection and the cut-out of the power supply and the AC-DC power-switching circuit 13 of second socket 6, the one group of switch of second switch K2 and the normally opened contact of relay J are in parallel the input power connection of a termination first switch 13 and the switch of cut-out.
The D.C. regulated power supply that AC-DC power-switching circuit 13 is made up of rectification, filtering, voltage stabilizing provides the required DC power supply of circuit in the computer power supply socket.
Current sensor 20 is used to detect the output b end of the electric K1 of second socket 6, the a end of another termination second socket 6 and an input of AC-DC power-switching circuit 13, when second switch K2 closes or during the relay J adhesive, the input power connection of the power supply of second socket 6 and AC-DC power-switching circuit 13, when being in, second switch K2 closes, and when relay J discharges, the input dump of the power supply of second socket 6 and AC-DC power-switching circuit 13.
Second switch K2 is used for directly controlling the input power connection and the cut-out of the power supply and the AC-DC power-switching circuit 13 of second socket 6, the d end of its another group switch draws the input of AC power to the second indication the 4 and the 3rd photoelectrical coupler 12 by second resistance R 2, K2 closes when second switch, the output conducting of the 3rd photoelectrical coupler 12, be sampled to the input of high level to the first controller 15 by the 3rd resistance R 3, K2 closes when second switch, the output of the 3rd photoelectrical coupler 12 ends, and is sampled to the input of low level to the first controller 15 by the 3rd resistance R 3.
The 3rd photoelectrical coupler 12 is used for the sampling that 15 couples of second switch K2 of first controller close and close.
Relay J is power supply and the AC-DC power-switching circuit stream that is used for second button, 35 controls, second socket 6, it is connected in series current sampling circuit 18, analog to digital conversion circuit 19 to first controllers 15, constitutes the hardware corridor of first controller, 15 samplings, second socket, 6 electric currents.
First controller, 15 serial connections, first drive circuit 21, first control circuit 24 to the 3rd sockets 7 are used to control the power connection and the cut-out of the 3rd socket 7.
First controller, 15 serial connections, second drive circuit 22, second control circuit 25 to the 4th sockets 8 are used to control the power connection and the cut-out of the 4th socket 8.
First controller, 15 serial connections the 3rd drive circuit 23, the 3rd control circuit 26 to the 5th sockets 9 are used to control the power connection and the cut-out of the 5th socket 9.
When the switch of first control circuit 24 to the 3rd control circuits 26 was in dissengaged positions at the input power supply of AC-DC power-switching circuit 13, it was in closed condition.
First controller 15 is connected with first serial interface circuit 16 with bus mode, second controller 30 is connected with second serial interface circuit 32 with bus mode, first serial interface circuit, 16 serial connections the 6th socket 17, the 7th socket 33 to second serial interface circuits 32, constitute the information transmission channels of first controller 15 and second controller 30, be used for cue and data passes each other.
The 6th socket 17 and the 7th socket 33 are computer power supply socket circuit 301 and keyboard circuit 401 interconnective signal plugs, and the 6th socket 17 is connected by external connection line with the 7th socket 33.
The 8th resistance R 8 is used to draw the input of second button, 35 to second controllers 30, and the 9th resistance R 9 is used for this input and is " 0 " at ordinary times.
The VCC that diode D and the tenth resistance R 10 are used for computer keyboard basic 31 gives the circuit of battery 34 chargings, and battery 34 is a rechargeable battery.
The 11 resistance R 11 is to be used for the current-limiting resistance that second button 35 draws the input of battery 34 to first photoelectrical couplers 10.
Computer power supply socket circuit 301 is installed on the intelligent power supply socket device computer power supply socket, and keyboard circuit 401 is installed on the computer keyboard of intelligent power supply socket device.
Second button 35 is the normal moving button of making war, and the 3rd button 36 is an inching button, and the 4th button 37 is an inching button.
Battery 34 is used for main frame cut-out back and input current is provided for first photoelectrical coupler 10 by second button 35, control the 10 output conductings of first photoelectrical coupler, the relay J adhesive, the normally opened contact closure is connected the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13.Peace opens second button 35, draws battery 34 to first photoelectrical couplers 10 inputs, the 10 output conductings of first photoelectrical coupler, decontrol second button 35, cut off battery 34 to first photoelectrical couplers 10 inputs, 10 outputs of first photoelectrical coupler end, and are almost lossless when battery 34 is flat.
K2 closes when second switch, by 10 conductings of second button, 35 controls, first photoelectrical coupler, finish the relay J adhesive, realize the power supply of second socket 6 and the input power connection of AC-DC power-switching circuit 13, each parts has following function in the keyboard upper keyboard circuit 401 of computer:
A.) second button 35 remove directly by controlling first photoelectrical coupler 10 the output conducting with end, have simultaneously and input to second controller 30, send key assignments to the first controller 15 of second button 35 by serial ports by second controller 30, first controller 15 is according to current Host Status, whether need send pulse clock CP end to d type flip flop 14, the output of controlling second photoelectrical coupler 11 ends if differentiating;
Control the power connection and the cut-out of the 4th socket 8 when b.) the 3rd button 36 is used for the computer complete opening;
Control the power connection and the cut-out of the 5th socket 9 when c.) the 4th button 37 is used for the computer complete opening;
D.) the 4th indicator light 38 is multi-functional indication, and input power connection, 35 inputs of 30 pairs second buttons of second controller that the 4th indicator light is normal to illustrate the power supply of second socket 6 and AC-DC power-switching circuit 13 when bright allow, the dump application of second socket 6 is eliminated (not having the application of cut-out), second switch K2 is in closed condition; The 4th indicator light glimmers at a slow speed that input power connection, 35 inputs of 30 pairs second buttons of second controller of explanation power supply of second socket 6 and AC-DC power-switching circuit 13 allow, the power supply of second socket 6 be in cut off application status (exist and cut off application), second switch K2 is in closed condition; The 4th indicator light fast blink illustrates that the power supply of second socket 6 and the input power connection of AC-DC power-switching circuit 13, the dump application that 30 pairs second buttons of second controller 35 are imported shielding, second socket 6 are eliminated (not having the application of cut-out), the current state of closing that is in of second switch K2, point out the user to close second switch K2; The 4th indicator light extinguishes the power supply of explanation second socket 6 and the input dump of AC-DC power-switching circuit 13, and second switch K2 is in closed condition;
E.) the 5th indicator light 39 is used to indicate the power connection and the cut-out of the 4th socket 8, and the 5th indicator light is lighted the power connection of explanation the 4th socket 8, and the 5th indicator light extinguishes the dump of explanation the 4th socket 8;
F.) the 6th indicator light 40 is used to indicate the power connection and the cut-out of the 5th socket 9, and the 6th indicator light is lighted the power connection of explanation the 5th socket 9, and the 6th indicator light extinguishes the dump of explanation the 5th socket 9;
G.) analog switch 41 is used for simulation computer keyboard basic 31 " Power " ON/OFF switch, what receive that first controller 15 sends when second controller 30 is relay J adhesive signal, " Power " ON/OFF switch starts computer on second controller, 30 control analog switch 41 simulating keyboards basic 31, what receive that first controller 15 sends when second controller 30 is the standby marking signal, " Power " ON/OFF switch starts computer on second controller 30 control analog switch, 41 simulating keyboards basic 31, delays time to control on the analog switch simulating keyboard basic 31 " Power " ON/OFF switch in 30 seconds after (allowing computer start fully) once more and shut down computer.
In the relay J release condition, the second switch K2 that closes directly controls the power supply of second socket 6 and the input power connection of AC-DC power-switching circuit 13, and each parts has following function in the keyboard upper keyboard circuit 401 of computer:
Second controller 30 is in power save mode, the input of 30 pairs second button 35 to the 4th buttons 37 of second controller does not respond, the 4th indicator light 38 to the 6th indicator lights 40 are in and extinguish state, second controller 30 and first controller 15 do not constitute liaison, and second controller 30 is not controlled " Power " ON/OFF switch function on analog switch 41 simulating keyboards basic 31.
As described in Fig. 4, Fig. 7, Fig. 8, when relay J is in release condition, second switch K2 close the control power supply of second socket 6 and the input power connection of AC-DC power-switching circuit 13, second controller 30 and first controller 15 lose liaison, the 4th indicator light 38 to the 6th indicator lights 40 extinguish, and second controller 30 is in the dormancy power save mode.15 time-delays of first controller guaranteed that the capacitor C charging of the set S end of d type flip flop 14 finished in 2 seconds, the S end is " 1 ", the 15 output pulses of first controller are to the clock CP end of d type flip flop 14, and the Q end is output as " 0 ", and the Q end is controlled second photoelectrical coupler 11 by triode T and ended.The power supply of the 3rd socket 7 to the 5th sockets 9 only is inserted in connection of main frame Source Current Control and cut-out on second socket 6, when main frame is opened operation fully, the power connection of the 3rd socket 7 to the 5th sockets 9, when main frame is in standby, off-mode, the dump of the 3rd socket 7 to the 5th sockets 9, and when main frame moves commentaries on classics standby, off-mode fully from opening, delay time and cut off the power supply of the 3rd socket 7 to the 5th sockets 9 in 15 seconds.
As described in Fig. 4~Fig. 8, K2 is in closed condition when second switch, the utilization relay J is controlled the input power connection and the cut-out of the power supply and the AC-DC power-switching circuit 13 of second socket 6, the input power connection of the power supply of second socket 6 and AC-DC power-switching circuit 13 during the relay J adhesive, the power supply of second socket 6 and the input dump of AC-DC power-switching circuit 13 when relay J discharges.Relay J is in when discharging, peace opens 35 relay J adhesives of second button and locking, and when the clock CP end of first controller, 15 output pulses to d type flip flop 14, the Q end is output as " 0 ", the Q end is controlled second photoelectrical coupler 11 by triode T and is ended, and relay J discharges.
As described in Fig. 4, Fig. 9, three kinds of state current study indexing unit is whether power source loads electric current that first controller 15 is used to deposit first button, 28 study, second socket 6 has three kinds of different electric currents at electric current study buffer area a mark, when electric current study buffer area has three kinds of different electric currents, the set of three kinds of state current study indexing units, three kinds of state current study indexing units are in the removing state at ordinary times; Electric current study buffer area is the power source loads electric current that first controller 15 is used to deposit first button, 28 study, second socket 6, and study is once deposited once, and the buffer area of electric current study at ordinary times is in the removing state; Learning for the first time indexing unit is that first controller 15 is used for whether first button 28 is power source loads electric currents of learning second socket 6 for the first time, is that study is for the first time put and learnt indexing unit for the first time and be " 1 ", otherwise is in the removing state; The 5th timer of first controller 15, be used for the peace open first button 28 carry out having learnt first time the timing 5 minutes, electric current study buffer area does not have three kinds of electric currents (referring to three kinds of electric currents that vary in size) of study in 5 minutes, or electric current study buffer area has three kinds of electric currents of study, but not clicking first button 28 confirms, three kinds of electric currents are deposited in the storage chip 27 of parameter, 5 minutes timings of the 5th timer arrive, various study indexing units and electric current study buffer area are eliminated, put three indicator lights 29 and extinguish, this whole study is invalid; The 3rd indicator light 29 is used for the current-carrying process prompting of power-of first button, 28 study, second socket 6 and confirms prompting, the 3rd indicator light 29 is in and extinguishes state at ordinary times, when 29 flickers of the 3rd indicator light, illustrate that peace opens the power source loads electric current that first button, 28 backs, first controller 15 is being learnt second socket 6,29 flickers of the 3rd indicator light are changeed automatically and are extinguished, the power source loads electric current that current study second socket 6 is described has deposited electric current study buffer area in, as the 3rd indicator light 29 Chang Liang, illustrate that electric current study buffer area has three kinds of electric currents of study, first controller 15 waits for that importing first button 28 confirms, deposits three kinds of electric currents in the storage chip 27 of parameter; The above three kinds of electric current is meant three kinds of electric currents that vary in size of power source loads of second socket 6.
As described in Figure 9, first controller 15 response, first button, 28 study main frame complete openings, standby and shutdown electric current and to be stored to the interruption process step of storage chip 27 as follows:
A.) keep the scene intact, read three kinds of state current study indexing units, and differentiate, enter next step during for " 1 ", otherwise change step c over to;
B.) analyze computer complete opening, standby, off-mode electric current in the electric current study buffer area according to size, three kinds of state current are write storage chip 27, eliminate three kinds of state current study indexing units, eliminate and learn indexing unit for the first time, eliminate electric current study buffer area, put the 3rd indicator light 29 and extinguish, the 5th timer of first controller 15 cuts out, and returns the scene;
C.) put 29 flickers of the 3rd indicator light, the power source loads electric current of second socket 6 of sampling,
The power source loads electric current of second socket 6 that d.) will sample is stored to electric current study buffer area, puts the 3rd indicator light 29 and extinguishes;
E.) read the first time and learn indexing unit, and differentiate, enter next step during for " 1 ", otherwise change step h over to;
F.) differentiate in the electric current study buffer area whether have three kinds of state current, yes, have three kinds of state current, enter next step, otherwise directly return the scene;
G.) put the 3rd indicator light 29 Chang Liang, put three kinds of state current study indexing units, return the scene for " 1 ";
H.) put and learn for the first time indexing unit and be " 1 ", open the 5th timer regularly 5 minutes of first controller 15, return the scene;
I.) 5 fens clock times of the 5th timer timing arrive, and eliminate three kinds of state current study indexing units, eliminate and learn indexing unit for the first time, eliminate electric current and learn buffer area, put the 3rd indicator light 29 and extinguish.
As described in Figure 4, when being that second switch K2 connects the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13, the 4th timer of first controller 15 is used for main frame change standby, shutdown from complete opening after, the power supply of cut-out the 3rd socket 7 to the 5th sockets 9 of delay time after 15 seconds.
As described in Figure 4, the main program flow step of first controller 15 is as follows in the computer power supply socket:
A.) three kinds of electric current study indexing units are eliminated in first controller, 15 initialization, remove and learn indexing unit for the first time, remove electric current study buffer area, put the 3rd indicator light 29 and extinguish, cut off the power supply of the 3rd socket 7 to the 5th sockets 9, allow 28 applications of first button to interrupt;
B.) reading second switch K2 by the 3rd photoelectrical coupler 12 closes and closes sampled signal, whether differentiate second switch K2 just closes at the beginning, the sampled signal of the second switch K2 that first controller 15 reads is when closing, explanation is the power supply that utilization second switch K2 connects computer power supply socket, promptly connect the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13, enter next step, otherwise be the power supply that computer power supply socket is opened in the 35 control relay J adhesives of utilization second button, promptly connect the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13, change step over to
Figure GSB00000503775000101
C.) close serial ports and interrupt, delay time and export the clock CP end of pulse to d type flip flop 14 after 2 seconds, the Q end is output as " 0 ", and the Q end is controlled second photoelectrical coupler 11 by triode T and ended, and relay J discharges, and enters next step;
D.) source current of sampling second socket 6 and with storage chip 27 in complete opening, standby, shutdown current ratio, be for complete opening enters next step, otherwise change step f;
E.) power supply of connection the 3rd socket 7 to the 5th sockets 9, first controller 15 cuts out the 4th timer, changes steps d over to;
F.) differentiating according to the source current of preceding once second socket 6 of sampling whether the current computer main frame is just to have changeed standby, shutdown from complete opening, is to enter next step, otherwise changes step h;
G.) first controller 15 was opened the 4th timer regularly 15 seconds, changed steps d over to;
H.) differentiate the 4th timer and whether surpass 15 seconds regularly, what be enters next step, otherwise directly changes steps d over to;
I.) power supply of cut-out the 3rd socket 7 to the 5th sockets 9 changes steps d over to.
As described in Fig. 5, Fig. 6, when being that the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13 are connected in the relay J adhesive, the first timer of first controller 15 is used for main frame change standby, shutdown from complete opening after, the power supply of cut-out the 3rd socket 7 to the 5th sockets 9 of delay time after 15 seconds; The second timer of first controller 15 is used for main frame change standby, shutdown from complete opening after, the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13 are cut off in the control relay J release of delay time after 15 minutes; The 3rd timer of first controller 15 is used for the key assignments that first controller 15 receives second button 35 of second controller, 30 transmissions, and when the dump application indexing unit of second socket 6 is changed to " 1 " by " 0 ", the 3rd timer opening timing 5 minutes, in 5 minutes, detect computer standby, shutdown, control relay J discharges, cut off the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13, otherwise the dump application indexing unit of 5 minutes rearmounted second sockets 6 is " 0 ", promptly cancels the dump application of second socket 6; Standby is changeed the shutdown indexing unit and is used for when the computer standby, when cutting off the input power operation of the power supply of second socket 6 and AC-DC power-switching circuit 13, makes the power supply of the 3rd socket 7 keep current state during computer is restarted; The dump application indexing unit of second socket 6 is used for the dump application existence of mark second socket 6 and cancels, when the dump application indexing unit of second socket 6 is " 0 ", the dump application of second socket 6 is cancelled, when the dump application indexing unit of second socket 6 was " 1 ", the dump application of second socket 6 existed; The power connection of the 4th socket 8 and dissengaged positions indexing unit are used for the power connection and cut-out current state of mark the 4th socket 8, when the power connection of the 4th socket 8 is " 0 " with the current indexing unit of cut-out, the current dissengaged positions that is in of power supply of the 4th socket 8 is described, when the power connection of the 4th socket 8 is " 1 " with the current indexing unit of cut-out, the current on-state that is in of power supply of the 4th socket 8 is described; The power connection of the 5th socket 9 and dissengaged positions indexing unit are used for the power connection and cut-out current state of mark the 5th socket 9, when the power connection of the 5th socket 9 is " 0 " with the current indexing unit of cut-out, the current dissengaged positions that is in of power supply of the 5th socket 9 is described, when the power connection of the 5th socket 9 is " 1 " with the current indexing unit of cut-out, the current on-state that is in of power supply of the 5th socket 9 is described.
As described in Figure 5, first controller among Fig. 4 The branched program process step is as follows:
A.) serial ports of first controller 15 receives power connection that data are made as interrupt mode, control the 3rd socket 7, putting standby, to change the shutdown indexing unit be that " 0 ", the power connection of putting the 5th socket 9 and dissengaged positions indexing unit are " 0 ", sending filter J adhesive signal to the second controller 30 for " 0 ", the power connection of putting the 4th socket 8 with the dissengaged positions indexing unit for " 0 ", the dump application indexing unit of putting second socket 6;
B.) reading second switch K2 by the 3rd photoelectrical coupler 12 closes and closes sampled signal, whether differentiate second switch K2 closes midway, when first controller 15 reads second switch K2 sampled signal when closing, the dump application indexing unit of putting second socket 6 is closed second timer and the 3rd timer, is sent second switch K2 signal to the second controller 30 that closes by serial ports for " 0 ", first controller 15, changes next step c; When first controller 15 reads second switch K2 sampled signal when cutting out, send second switch K2 shutdown signal to the second controller 30 by serial ports, change next step c;
C.) read the dump application indexing unit of second socket 6, send corresponding contents to the second controller 30, when the dump application of second socket 6 is labeled as " 1 ", the dump application of second socket 6 exists, send dump application marking signal to the second controller 30 of second socket 6 by serial ports, when the dump application of second socket 6 is labeled as " 0 ", the dump application of second socket 6 is cancelled, and sends marking signal to the second controller 30 of the dump application of cancelling second socket 6 by serial ports; Read the power connection and the dissengaged positions indexing unit of the 4th socket 8, send corresponding contents to the second controller 30, promptly when status indication is " 1 ", the power supply of current the 4th socket 8 is in on-state, send power connection marking signal to the second controller 30 of the 4th socket 8 by serial ports, when status indication was " 0 ", the power supply of current the 4th socket 8 was in dissengaged positions, sent dump marking signal to the second controller 30 of the 4th socket 8 by serial ports; Read the power connection and the dissengaged positions indexing unit of the 5th socket 9, send corresponding contents to the second controller 30, promptly when status indication is " 1 ", the power supply of current the 5th socket 9 is in on-state, send power connection marking signal to the second controller 30 of the 5th socket 9 by serial ports, when status indication was " 0 ", the power supply of current the 5th socket 9 was in dissengaged positions, sent dump marking signal to the second controller 30 of the 5th socket 9 by serial ports;
D.) source current of sampling second socket 6 and with storage chip 27 in complete opening, standby, shutdown current ratio, when for complete opening, change step r, otherwise the commentaries on classics next step;
E.) read the dump application indexing unit of second socket 6, when cutting off application and be labeled as " 1 ", the dump application signal of second socket 6 exists, and when cutting off application and be labeled as " 0 ", second socket power cuts off the application signal and cancelled;
F.) the dump application of differentiation second socket 6 marks whether to be " 1 ", yes, enters next step, otherwise changes step k;
G.) first controller 15 cuts out first timer and second timer, cuts off the power supply of the 3rd socket 7 to the 5th sockets 9;
H.) whether the source current of differentiation sampling second socket 6 is the shutdown electric current, for the shutdown electric current enters next step, otherwise is standby current, enters step j;
I.) the 15 output pulses of first controller are to the clock CP end of d type flip flop 14, the Q end is output as " 0 ", and the Q end is controlled second photoelectrical coupler 11 by triode T and ended, and relay J discharges, cut off the power supply of second socket 6 and the input power supply of AC-DC power-switching circuit 13, change step b over to;
J.) send standby marking signal to the second controller 30 by serial ports, put standby and change the shutdown indexing unit, change step b over to for " 1 ";
K.) differentiate according to the preceding once source current of second socket of sampling whether the current computer main frame is just to have changeed standby, shutdown from complete opening, what be enters next step, otherwise changes step m;
L.) first controller 15 was opened first timer regularly 15 seconds, opened second timer regularly 15 minutes, changed step b over to;
M.) differentiate first timer and whether surpass 15 seconds regularly, what be enters next step, otherwise changes step b over to;
N.) power supply of cut-out the 3rd socket 7 to the 5th sockets 9, power connection and the dissengaged positions indexing unit of putting the 4th socket 8 are " 0 ", power connection and the dissengaged positions indexing unit of putting the 5th socket 9 are " 0 ", send the dump marking signal of the 4th socket 8, dump marking signal to the second controller 30 of the 5th socket 9 by serial ports;
O.) differentiate first controller, the 15 current second timers of whether opening, what be enters next step, otherwise changes step b over to;
P.) differentiate second timer and whether surpass 15 fens regularly, be to enter next step, otherwise change step b over to;
Q.) the dump application indexing unit of putting second socket is " 1 ", changes step b over to;
R.) first controller 15 cuts out first timer, second timer, and read standby and change the shutdown indexing unit, and whether do not declare be " 1 ", be to be " 1 ", directly enter next step, otherwise enter next step after controlling the power connection of the 3rd socket 7;
S.) differentiate first controller, 15 current the 3rd timers of whether opening, what be enters next step, otherwise changes step b over to;
T.) whether the 3rd timer surpasses 5 minutes regularly, and what be enters next step, otherwise changes step b over to;
U.) the dump application indexing unit of putting second socket is " 0 ", changes step b over to.
As described in Figure 6, among Fig. 5 The serial ports interrupt routine process step of first controller 15 of branch is as follows:
A.) serial data is read in scene protection, and carries out signal and differentiate;
Whether what b.) differentiate to receive is the cue of second controller 30, and what be enters next step, otherwise changes steps d;
C.) send answer signal to the second controller 30 by serial ports, return the scene;
D.) differentiate to receive whether be second button 35 from the application signal, what be enters next step, otherwise changes step f;
E.) read the dump application indexing unit of second socket, during for " 1 ", the dump application indexing unit of putting second socket is " 0 ", and first controller 15 cuts out the 3rd timer, returns the scene; During for " 0 ", the dump application indexing unit of putting second socket is " 1 ", and first controller 15 was opened the 3rd timer regularly 5 minutes, returned the scene;
Whether what f.) differentiate to receive is the application signal of the 3rd button 36, and what be enters next step, otherwise changes step k;
G.) source current of sampling second socket 6 and with storage chip 27 in complete opening, standby, shutdown current ratio, be for complete opening enters next step, otherwise change step I;
H.) read the power connection and the dissengaged positions indexing unit of the 4th socket 8, and whether differentiate be " 1 ", be for " 1 " enters next step, otherwise change step j;
I.) put the power connection of the 4th socket 8 and dissengaged positions indexing unit and be " 0 ", control the dump of the 4th socket 8, send dump marking signal to the second controller 30 of the 4th socket 8, return the scene by serial ports;
J.) put the power connection of the 4th socket 8 and dissengaged positions indexing unit and be " 1 ", control the power connection of the 4th socket 8, send power connection marking signal to the second controller 30 of the 4th socket 8, return the scene by serial ports;
What k.) read is the application signal of the 4th button 37, the source current of second socket 6 of sampling and with storage chip 27 in complete opening, standby, shutdown current ratio, be for complete opening enters next step, otherwise change step m;
L.) read the power connection and the dissengaged positions indexing unit of the 5th socket 9, and whether differentiate be " 1 ", be for " 1 " enters next step, otherwise change step n;
M.) put the power connection of the 5th socket 9 and dissengaged positions indexing unit and be " 0 ", control the dump of the 5th socket 9, send dump marking signal to the second controller 30 of the 5th socket 9, return the scene by serial ports;
N.) put the power connection of the 5th socket 9 and dissengaged positions indexing unit and be " 1 ", control the power connection of the 5th socket 9, send power connection marking signal to the second controller 30 of the 5th socket 9, return the scene by serial ports.
As described in Fig. 7, Fig. 8, second controller 30 is provided with first timer, second timer, respond flag unit.When the secondth controller 30 powers on, second controller 30 and 15 liaisons of first controller, first timer regularly 10 seconds, in 10 seconds, receive the answer signal of first controller 15, put the respond flag unit and be " 1 ", enter normal operating conditions, otherwise second controller 30 enters the dormancy power save mode; The respond flag unit is used for carrying out mark when second controller 30 receives first controller, 15 answer signals, when the respond flag unit is changed to " 1 ", for receiving first controller, 15 answer signals; When second controller 30 powered on, second timer regularly just allowed 37 inputs of second button, 35 to the 4th buttons after 10 seconds.
As described in Figure 7, the main program flow step of second controller 30 is as follows in the computer keyboard:
A.) second controller, 30 initialization, put the respond flag unit and be " 0 ", shield the input of second button, 35 to the 4th buttons 37, open first timer regularly 10 seconds, the second timer regularly 10 seconds of second controller 30, put the 4th indicator light 38 to the 6th indicator lights 40 and extinguish, it is interrupt mode that serial ports reception data are set;
B.) send cue to the first controller 15 by serial ports, differentiate first timer and whether be timed to 10 seconds, yes, put second controller 30 and be in dormancy, promptly enter power save mode, otherwise enter next step;
C.) read the respond flag unit, and whether differentiate be " 1 ", be for " 1 " enters next step, otherwise change step b over to;
D.) put the respond flag unit and be " 0 ", second controller 30 cuts out first timer;
E.) the circular wait second timer enters next step after being timed to 10 seconds;
F.) second controller 30 allows 37 inputs of second button, 35 to the 4th buttons;
Whether have button press, do not have button to press if g.) differentiating second button, 35 to the 4th buttons 37, the circular wait button is pressed, and has button to press, and enters next step;
Whether be second button 35 press, what be enters next step, otherwise changes step j if h.) differentiating;
I.) circular wait second button 35 discharges, and when second button 35 discharges, reads the key assignments of second button 35, is sent to first controller 15 by serial ports, changes step g over to;
J.) read the 3rd button 36, the 4th button 37 corresponding key assignments (promptly are that the 3rd button 36 is pressed, reading the 3rd button 36 corresponding key assignments, is that the 4th button 37 is pressed, and reads the 4th button 37 corresponding key assignments), be sent to first controller 15 by serial ports, change step g over to.
As described in Figure 8, the serial ports interrupt routine process step of second controller 30 is as follows:
A.) keep the scene intact, read serial data, and differentiate;
Whether be answer signal from first controller 15, yes, put the respond flag unit and be " 1 " if b.) differentiating, return the scene, otherwise enter next step;
Whether be relay J adhesive signal, yes, " Power " electric power on/off key is opened computer on the control analog switch 41 simulation computer keyboards, returns the scene, otherwise enters next step if c.) differentiating;
Whether be second switch K2 close signal, yes, put 38 fast blinks of the 4th indicator light if d.) differentiating, shield the input of second button 35, returns the scene, otherwise enter next step;
Whether be second switch K2 shutdown signal, yes, allow the input of second button 35 if e.) differentiating, return the scene, otherwise enter next step;
Whether f.) differentiate is the standby marking signal, yes, shield the input of second button, 35 to the 4th buttons 37, " Power " electric power on/off key is opened computer on the control analog switch 41 simulation computer keyboards, delay time and control on the analog switch 41 simulation computer keyboards " Power " electric power on/off key after 30 seconds once more and shut down computer, return the scene, otherwise enter next step;
Whether be the dump application marking signal of second socket 6, yes, put the 4th indicator light 38 and glimmer at a slow speed if g.) differentiating, return the scene, otherwise enter next step;
Whether be the marking signal of cancelling the dump application of second socket 6, yes, put the 4th indicator light 38 Chang Liang if h.) differentiating, return the scene, otherwise enter next step;
Whether be the power connection marking signal of four socket 8, yes, light the 5th indicator light 39 if i.) differentiating, return the scene, otherwise enter next step;
Whether be the dump marking signal of four socket 8, yes, extinguish the 5th indicator light 39 if j.) differentiating, return the scene, otherwise enter next step;
Whether be the power connection marking signal of five socket 9, yes, light the 6th indicator light 40 if k.) differentiating, return the scene, otherwise enter next step;
L.) be the dump marking signal of the 5th socket 9, extinguish the 6th indicator light 40, return the scene.
The intelligent power supply socket device using method:
Intelligent power supply socket device main frame complete opening, standby, off-mode electric current learning method:
When using for the first time, computer power supply socket is earlier to corresponding computer main frame complete opening, standby, electric current is learnt under the off-mode, 220 volts of power supplys of attaching plug 1 incoming transport with computer power supply socket, by external connection line the 7th socket 33 on the keyboard of computer is connected with the 6th socket 17 of computer power supply socket, the main frame power supply inserts second socket 6, display power supply inserts the 3rd socket 7 or first socket 5, first K switch 1 of closing, utilization second switch K2 closes or the relay J adhesive makes the power supply of second socket 6 and the input power connection of AC-DC power-switching circuit 13, finish following operation in 5 minutes: make main frame be in three kinds of states, it is complete opening, standby, three kinds of states shut down, whenever being in a kind of state clicks first button 28 and learns, the 3rd indicator light 29 flickers in the learning process, study finishes the 3rd indicator light 29 and extinguishes, clicking first button 28 once learns once, work as complete opening, standby, the three kinds of state study of shutting down are finished, the 3rd indicator light 29 Chang Liang, click first button 28, first controller 15 is with complete opening, standby, the three kinds of state current of shutting down deposit the storage chip 27 of depositing parameter in, the 3rd indicator light 29 extinguishes, this learning success.Do not finish above operation in 5 minutes, the 3rd indicator light 29 extinguishes automatically, and this learns failure, need carry out relearning in 5 minutes next time.
Intelligent power supply socket device uses the 35 control relay J adhesives of second button and discharges power supply and the input power connection of AC-DC power-switching circuit 13 and the using method of cut-out of finishing second socket 6:
A.) 220 volts of power supplys of attaching plug 1 incoming transport of computer power supply socket, by external connection line the 7th socket 33 on the keyboard of computer is connected with the 6th socket 17 of computer power supply socket, the main frame power supply inserts second socket 6, display inserts the 3rd socket 7, and gaps such as printer, scanner use the peripheral hardware power supply to insert the 4th socket 8 and the 5th socket 9 respectively;
B.) first K switch 1 is closed, and second switch K2 closes;
C.) " Power " electric power on/off key is set on the keyboard element body 31 is the power supply effective efficiency of opening and shut down for CMOS by host B IOS and operating system;
D.) peace opens the power supply of second button, 35, the second sockets 6 and the input power connection of AC-DC power-switching circuit 13;
E.) the 4th indicator light 38 Chang Liang, the 5th indicator light 39, the 6th indicator light 40 extinguish, and display power supply is connected, and the power supply of the 4th socket 8 and the 5th socket 9 is in cut-out, starts computer automatically to complete opening;
F.) computer is at the complete opening state, click the power connection and the cut-out of the 3rd button 36 controls the 4th socket 8, click the power connection and the cut-out of the 4th button 37 controls the 5th socket 9, the five fingers show that 39 light and the power connection and the cut-out of extinguishing expression the 4th socket 8, the 6th indication 40 is lighted and the power connection and the cut-out of extinguishing expression the 5th socket 9, the five fingers show 39 when extinguishing, the 3rd button 36 is used to control the power connection of the 4th socket 8, the five fingers show that 39 is normal when bright, the 3rd button 36 is used to control the dump of the 4th socket 8, when the 6th indication 40 is extinguished, the 4th button 37 is used to control the power connection of the 5th socket 9, the 6th indication 40 is normal when bright, and the 4th button 37 is used to control the dump of the 5th socket 9;
G.) computer changes standby, off-mode from complete opening, and the power supply of the 4th socket 8 and the 5th socket 9 keeps cutting off after 15 seconds;
H.) computer is at the complete opening state, click second button 35, the 4th indicator light 38 glimmers at a slow speed, the power supply of second socket 6 is in and cuts off application, main frame changes standby or shutdown in 5 minutes, the input power supply of the power supply of second socket 6 and AC-DC power-switching circuit 13 will be cut off, otherwise cancel the dump application of second socket 6 after 5 minutes automatically, and the 4th indicator light 38 recovers Chang Liang;
I.) the 4th indicator light 38 Chang Liang, the power supply of representing second socket 6 does not have the application of cut-out, the 4th indicator light 38 glimmers at a slow speed, the power supply of representing second socket 6 is in the cut-out application, 38 fast blinks of the 4th indicator light, represent that current second switch K2 closes, the prompting user closes second switch K2, otherwise the input power supply of the power supply of second socket 6 and AC-DC power-switching circuit 13 is not cut off;
J.) the 4th indicator light 38 is normal when bright, clicks second button 35, carries out the dump application of second socket 6, and the 4th indicator light 38 changes flicker at a slow speed; When the 4th indicator light 38 glimmers at a slow speed, click second button 35, cancel the dump application of second socket 6, the 4th indicator light 38 changes Chang Liang; During 38 fast blinks of the 4th indicator light, it is invalid to click second button 35; When the 4th indicator light 38 extinguishes, the power supply of second socket 6 and the input dump of AC-DC power-switching circuit 13 are described;
K.) main frame is in standby, off-mode, and the input power supply of the power supply of second socket 6 and AC-DC power-switching circuit 13 will be cut off (second switch K2 is necessary for and closes) automatically after 15 minutes;
L.) the 4th indicator light 38 is in Chang Liang, flicker or during fast blink, any ON/OFF mode of utilization computer can be opened computer or be shut down computer at a slow speed; The 4th indicator light 38 is in when extinguishing state, has only peace to open second button 35 and starts computer.
Intelligent power supply socket device utilization second switch K2 controls the using method of the input power connection of the power supply of second socket 6 and AC-DC power-switching circuit 13:
A.) 220 volts of power supplys of attaching plug 1 incoming transport of computer power supply socket, the 7th socket 33 on the keyboard of computer connects with the 6th socket 17 outside wiring that link to each other of computer power supply socket or disconnects, the main frame power supply inserts second socket 6, display inserts the 3rd socket 7, and gaps such as printer, scanner use the peripheral hardware power supply to insert the 4th socket 8 and the 5th socket 9 respectively;
B.) first K switch 1 is closed, and second switch K2 closes, and relay J discharges;
C.) second controller 30 on the keyboard is in the dormancy power save mode, and the 4th indicator light 38 to the 6th indicator lights 40 extinguish, and are invalid, and 37 inputs of second button, 35 to the 4th buttons are invalid;
D.) power supply of the 3rd socket 7 to the 5th sockets 9 is connected along with the complete opening of computer, cuts off after delaying time 15 seconds along with the standby of computer, shutdown.
The computer shutdown of mentioning in a kind of intelligent power supply socket device of the present invention, it comprises the computer dormancy, because of the computer quiescent current equates with the computer shutdown electric current.

Claims (2)

1. intelligent power supply socket device, it is characterized in that by keyboard element body (31), keyboard circuit (401), computer power supply socket circuit (301) is formed, keyboard circuit (401) embeds keyboard element body (31), described keyboard circuit (401) comprises circuit two (201), the 7th socket (33), battery (34), second button (35) is to the 4th button (37), the 8th resistance (R8) is to the 11 resistance (R11), diode (D), described circuit two (201) is by second controller (30), second serial interface circuit (32), the 4th indicator light (38) is to the 6th indicator light (40), analog switch (41) is formed, described computer power supply socket circuit (301) is by circuit one (101), attaching plug (1), fuse (2), first indicator light (3), second indicator light (4), first socket (5) is to the 5th socket (9), first photoelectrical coupler (10) is to the 3rd photoelectrical coupler (12), AC-DC power-switching circuit (13), d type flip flop (14), the 6th socket (17), first switch (K1), second switch (K2), first resistance (R1) is to the 7th resistance (R7), triode (T), electric capacity (C), relay (J) constitutes, described circuit one (101) is by first controller (15), first serial interface circuit (16), current sampling circuit (18), analog to digital conversion circuit (19), current sensor (20), first drive circuit (21) is to the 3rd drive circuit (23), first control circuit (24) is to the 3rd control circuit (26), storage chip (27), first button (28), the 3rd indicator light (29) is formed, power supply VCC is connected in series diode (D) successively in the keyboard element body (31), the tenth resistance (R10) is to battery (34) positive pole, battery (34) is anodal to be connected with a end of second button (35), the b end of second button (35) is connected in series the 8th resistance (R8) successively, the 9th resistance (R9) is to the middle power supply ground GND of keyboard element body (31), the 8th resistance (R8) and the 9th resistance (R9) tie point draw holding wire to second controller (30) input, the b end of second button (35) is connected in series the 11 resistance (R11) successively, the 7th socket (33), the 6th socket (17) is connected with 1 end of first photoelectrical coupler (10), power supply ground GND is connected with battery (34) negative pole in the keyboard element body (31), power supply ground GND is connected in series the 7th socket (33) successively in the keyboard element body (31), the 6th socket (17) is connected with 2 ends of first photoelectrical coupler (10), second controller (30) is connected with second serial interface circuit (32) with bus, second serial interface circuit (32) is connected in series the 7th socket (33) successively, the 6th socket (17) is connected with first serial interface circuit (16), the 7th socket (33) is connected with the 6th socket (17) of computer power supply socket by external connection line, first controller (15) is connected with first serial interface circuit (16) with bus, the 3rd button (36), the 4th button (37) is connected with second controller (30) input respectively, the 4th indicator light (38) to the 6th indicator light (40) is connected with second controller (30) output respectively, second controller (30) output is connected with analog switch (41) control end, " Power " electric power on/off key of the output of analog switch (41) and keyboard element body (31) is in parallel, power supply VCC in the keyboard element body (31), power supply ground GND introduces circuit two (201), for its working power, live wire L serial connection fuse (2) is to live wire L1, fuse (2) is installed in the attaching plug (1), zero line N crosses attaching plug (1) to zero line N1, ground wire E crosses attaching plug (1) to ground wire E1, L1 is connected to a end of first switch (K1), the b end of first switch (K1) is guided to an end of first resistance (R1) respectively by line, the a end of first socket (5), the a of second switch (K2), the c end, coil one end of relay (J), the normally opened contact a end of relay (J), first control circuit (24) is to an end of the 3rd control circuit (26) switch, the other end of first resistance (R1) is connected in series first indicator light (3) and is connected with zero line N1, the coil other end of relay (J) and first photoelectrical coupler (10), 6 ends of second photoelectrical coupler (11) are connected, first photoelectrical coupler (10), 4 ends of second photoelectrical coupler (11) are connected with zero line N1, the b end serial connection current sensor (20) of second switch (K2) is connected with a end of second socket (6), the b end of second switch (K2) is connected with the normally opened contact b end of relay (J), input one end of AC-DC power-switching circuit (13) is connected with the normally opened contact b of relay (J) end, the other end is connected with zero line N1, d end serial connection second resistance (R2) of second switch (K2) is connected with 1 end of second indicator light (4), 2 ends of second indicator light (4) are connected with zero line N1,1 of the 3rd photoelectrical coupler (12), 2 ends respectively with 1 of second indicator light (4), 2 ends are connected, the anodal V of the out-put supply of 4 ends of the 3rd photoelectrical coupler (12) and AC-DC power-switching circuit (13) +Be connected, 3 ends of the 3rd photoelectrical coupler (12) are connected in series the out-put supply negative pole V of the 3rd resistance (R3) and AC-DC power-switching circuit (13) -Be connected, 3 ends of the 3rd photoelectrical coupler (12) are connected with the input of first controller (15), and the clear terminal R of d type flip flop (14), set end S are connected in series the 4th resistance (R4), the 5th resistance (R5) and the anodal V of the out-put supply of AC-DC power-switching circuit (13) respectively +Be connected, the set end S of d type flip flop (14) is connected with electric capacity (C) positive pole, the out-put supply negative pole V of input D, the negative pole VSS of electric capacity (C) negative pole, d type flip flop (14), the emitter e of triode (T) and AC-DC power-switching circuit (13) -Be connected, 1 end of the power input VCC of d type flip flop (14), second photoelectrical coupler (11) is connected in series the 7th resistance (R7) back and the anodal V of the out-put supply of AC-DC power-switching circuit (13) +Be connected, output Q end serial connection the 6th resistance (R6) of d type flip flop (14) is connected with the base stage b of triode (T), the collector electrode c of triode (T) is connected with 2 ends of second photoelectrical coupler (11), the clock input CP end of d type flip flop (14) is connected with the output of first controller (15), the output of current sensor (20) is connected in series current sampling circuit (18) successively, analog to digital conversion circuit (19), analog to digital conversion circuit (19) is connected with the input of first controller (15), the output of first controller (15) is connected with first drive circuit (21) to the 3rd drive circuit (23) input respectively, first drive circuit (21) to the output of the 3rd drive circuit (23) is connected with the control end of first control circuit (24) to the 3rd control circuit (26) respectively, first control circuit (24) to the switch other end of the 3rd control circuit (26) connects a end of the 3rd socket (7) to the 5th socket (9) respectively by line, first socket (5) to the b end and the c end of the 5th socket (9) meets zero-power line N1 and power ground E1 respectively by line, first controller (15) is connected to storage chip (27), first button (28), the 3rd indicator light (29), the anodal V of the out-put supply of AC-DC power-switching circuit (13) +, negative pole V -Introduce circuit one (101), for its working power.
2. based on the control method of the described a kind of intelligent power supply socket device of claim 1, be characterised in that to comprise two kinds of working methods:
Mode (one): second switch (K2) is when closing, and second button (35) is opened the power supply of second socket (6) and the input power supply of AC-DC power-switching circuit (13) on the utilization computer keyboard, and concrete steps are as follows:
A.) the input power supply of the power supply of second socket (6) and AC-DC power-switching circuit (13) is in dissengaged positions, draw battery (34) by second button (35) on the computer keyboard that opens and export first photoelectrical coupler (10) input to, the output conducting of first photoelectrical coupler (10), control relay (J) adhesive, the input power connection of the power supply of second socket (6) and AC-DC power-switching circuit (13), first controller (15) is by serial ports sending filter (J) adhesive signal to the second controller (30), second controller (30) receives relay (J) adhesive signal, and " Power " electric power on/off key starts computer on control analog switch (41) simulating keyboard;
B.) adopt electric capacity (C) that the set end S of d type flip flop (14) is changed to " 0 ", the output Q end set of d type flip flop (14), the Q end forms relay (J) adhesive locking by the output conducting of triode (T) control second photoelectrical coupler (11), i.e. adhesive keeps;
C.) the power supply output cathode V of AC-DC power-switching circuit (13) +Give electric capacity (C) charging through the 5th resistance (R5), charging finishes, and the set end S of d type flip flop (14) reverts to " 1 ";
D.) the 4th indicator light (38) is normal when bright, second button of clicking (35), first controller (15) receives the key assignments to second button (35) that second controller (30) sends by serial ports, dump application marking signal to the second controller (30) of loopback second socket (6), second controller (30) is put the 4th indicator light (38) and is glimmered at a slow speed, the source current of first controller (15) cycle detection second socket (6), in 5 minutes, detect standby current and enter step e, in 5 minutes, detect the shutdown electric current and enter step f, otherwise cancel the dump application of second socket (6) after 5 minutes automatically, send dump application marking signal to the second controller (30) of cancelling second socket (6) simultaneously, second controller (30) is put the 4th indicator light (38) Chang Liang;
E.) first controller (15) sends standby marking signal to the second controller (30), second controller (30) shielding second button (35) is to the input of the 4th button (37), putting the 4th indicator light (38) glimmers at a slow speed, and by " Power " electric power on/off key startup computer on analog switch (41) simulating keyboard, delay time and shut down computer by " Power " electric power on/off key on analog switch (41) simulating keyboard once more after 30 seconds, first controller (15) is waited for computer shutdown, detects the shutdown electric current and enters next step;
F.) first controller (15) output pulse is to the clock CP end of d type flip flop (14), the Q end is output as " 0 ", the Q end ends by triode (T) control second photoelectrical coupler (11) output, relay (J) discharges, and cuts off the power supply of second socket (6) and the input power supply of AC-DC power-switching circuit (13);
G.) the input power supply of the power supply of second socket (6) and AC-DC power-switching circuit (13) is in on-state, when the 4th indicator light (38) when glimmering at a slow speed, second button of clicking (35), first controller (15) receives the key assignments to second button (35) that second controller (30) sends by serial ports, dump application marking signal to the second controller (30) of second socket (6) is cancelled in loopback, and second controller (30) is put the 4th indicator light (38) Chang Liang;
H.) the input power supply of the power supply of second socket (6) and AC-DC power-switching circuit (13) is in on-state, when the 4th indicator light (38) normal when bright, when first controller (15) detect the computer standby, the shutdown reach 15 seconds after, automatically cut off the power supply that is switched on of power supply, cut-out the 4th socket (8) and the 5th socket (9) of the 3rd socket (7), when first controller (15) detect the computer standby, the shutdown reach 15 minutes after, being that standby enters step e, is that shutdown enters step f;
I.) when computer during at complete opening, the power connection of the 3rd socket (7) allows the 3rd button (36), the 4th button (37) to control the power connection and the cut-out of the 4th socket (8), the 5th socket (9) respectively; When computer changes standby or shut down 15 seconds from complete opening after, the dump that is switched on of the dump of the 3rd socket (7), the 4th socket (8) and the 5th socket (9);
J.) when computer during at complete opening, the 5th indicator light (39) is in illuminating state, and the power connection of the 4th socket (8) is clicked the 3rd button (36), the dump of the 4th socket (8), and the 5th indicator light (39) extinguishes; The 5th indicator light (39) is in and extinguishes state, and the dump of the 4th socket (8) is clicked the 3rd button (36), the power connection of the 4th socket (8), and the 5th indicator light (39) is lighted;
K.) when computer during at complete opening, the 6th indicator light (40) is in illuminating state, and the power connection of the 5th socket (9) is clicked the 4th button (37), the dump of the 5th socket (9), and the 6th indicator light (40) extinguishes; The 6th indicator light (40) is in and extinguishes state, and the dump of the 5th socket (9) is clicked the 4th button (37), the power connection of the 5th socket (9), and the 6th indicator light (40) is lighted;
L.) the computer standby is cut off the 3rd socket (7) when restarting computer during the input power supply of the power supply of second socket (6) and AC-DC power-switching circuit (13) to the power supply of the 5th socket (9) and is in dissengaged positions;
When m.) second controller (30) reads second button (35) input, after decontroling, circular wait second button (35) just sends key assignments to the first controller (15) of second button (35) by serial ports, thereby guarantee when the clock CP end of first controller (15) output pulse to d type flip flop (14), the Q end is output as " 0 ", when the Q end ends by triode (T) control second photoelectrical coupler (11), first photoelectrical coupler (10) also is in cut-off state, and relay (J) discharges;
N.) under the input power connection of the power supply of second socket (6) and AC-DC power-switching circuit (13), second switch (K2) closes from closing, the input power supply of the power supply of second socket (6) and AC-DC power-switching circuit (13) will can not cut off by first controller (15) control, the 4th indicator light (36) fast blink, the prompting user closes second switch (K2);
Mode (two): second switch (K2) closes, and the input power supply of the power supply of second socket (6) and AC-DC power-switching circuit (13) is directly connected by second switch (K2) control, and concrete steps are as follows:
O.) second controller (30) enters dormancy, promptly enters power save mode, and second button (35) is invalid to the 4th button (37), and the 4th indicator light (38) to the 6th indicator light (40) extinguishes;
P.) first controller (15) detects the power source loads electric current of second socket (6), determine power connection and the cut-out of the 3rd socket (7) by the main frame state to the 5th socket (9), along with the power connection of main frame complete opening the 3rd socket (7), along with the main frame standby, shutdown the 3rd socket (7) was to the power supply of the 5th socket (9) time-delay 15 seconds and cut off to the 5th socket (9).
CN2009100347389A 2009-09-04 2009-09-04 Intelligent power supply socket device and control method thereof Expired - Fee Related CN101719609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100347389A CN101719609B (en) 2009-09-04 2009-09-04 Intelligent power supply socket device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100347389A CN101719609B (en) 2009-09-04 2009-09-04 Intelligent power supply socket device and control method thereof

Publications (2)

Publication Number Publication Date
CN101719609A CN101719609A (en) 2010-06-02
CN101719609B true CN101719609B (en) 2011-12-07

Family

ID=42434145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100347389A Expired - Fee Related CN101719609B (en) 2009-09-04 2009-09-04 Intelligent power supply socket device and control method thereof

Country Status (1)

Country Link
CN (1) CN101719609B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106054759A (en) * 2016-08-23 2016-10-26 厦门天翔园软件科技有限公司 Intelligent controller convenient for wiring construction of light current reset switch panel
CN109739327B (en) * 2018-12-27 2021-11-02 郑州云海信息技术有限公司 Device and method for batch removal of CMOS (complementary metal oxide semiconductor) by server
CN112803720B (en) * 2021-03-19 2021-06-22 中国电子科技集团公司第九研究所 Power supply voltage monitoring circuit of multi-power supply system

Also Published As

Publication number Publication date
CN101719609A (en) 2010-06-02

Similar Documents

Publication Publication Date Title
CN203377676U (en) Power supply automatic switching device and access control system
CN104242463A (en) GPRS (general packet radio service) based remote power monitoring system and monitoring method
CN108684116A (en) A kind of Intelligent switching circuit
CN101719609B (en) Intelligent power supply socket device and control method thereof
CN109031104A (en) One kind being used for protective relaying device relay contact device for detecting performance
CN201392462Y (en) Energy-saving switch device
CN203423331U (en) Multifunctional intelligent safety power supply socket without standby loss
CN208797560U (en) Overcurrent and phase shortage the broken string TT&C system of electric car charging circuit
CN101510651B (en) Remote control power supply board plug device and control method thereof
CN108008698A (en) A kind of robot system and its opening/closing control device
CN101944689B (en) Power supply plugboard device and control method thereof
CN201000972Y (en) Intelligent standby electricity-saving socket dedicated for computer
CN203085882U (en) Intelligent remote control socket
CN207664660U (en) The control device and remote controler of power supply of remote controller
CN101819460B (en) Linked switch device of host computer and display and control method thereof
CN200976146Y (en) Bluetooth unlocking device
CN107895978A (en) A kind of good DC charger structure of applicability
CN201910611U (en) Accidental power failure protection circuit
CN204065252U (en) A kind of simulator of circuit breaker of practicality
CN208723533U (en) A kind of digital electric current relay
CN203119436U (en) Power restoration device controlling reclosure of low-voltage switch in voltage loss
CN206453709U (en) A kind of food processor of low-power consumption standby
CN201797561U (en) Automatic switch-off and delay protector for multimedia equipment
CN201853903U (en) Power plug board device of computer
CN205335635U (en) High -voltage board area electric protection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: CHANGSHU NJNU DEVELOPMENT INSTITUTE

Free format text: FORMER OWNER: JIANGSU UNIVERSITY OF SCIENCE AND TECHNOLOGY

Effective date: 20120822

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 212003 ZHENJIANG, JIANGSU PROVINCE TO: 215500 SUZHOU, JIANGSU PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20120822

Address after: 215500 Changshou City South East Economic Development Zone, Jiangsu, Jin Road, No. 8

Patentee after: Changshu Nanjing Normal University Development Research Academy Institute Co., Ltd.

Address before: 212003 Zhenjiang,, Jiangsu, Jiangsu University of Science and Technology, No.

Patentee before: Jiangsu University of Science and Technology

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111207

Termination date: 20140904

EXPY Termination of patent right or utility model