CN106383565B - Direct power-on/off circuit of direct-current power-supply computer - Google Patents
Direct power-on/off circuit of direct-current power-supply computer Download PDFInfo
- Publication number
- CN106383565B CN106383565B CN201610916062.6A CN201610916062A CN106383565B CN 106383565 B CN106383565 B CN 106383565B CN 201610916062 A CN201610916062 A CN 201610916062A CN 106383565 B CN106383565 B CN 106383565B
- Authority
- CN
- China
- Prior art keywords
- computer
- power supply
- control unit
- direct
- rechargeable battery
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 claims abstract description 21
- 230000000087 stabilizing effect Effects 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/30—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a direct-current power supply computer direct-on/off circuit, which comprises a CPU main control unit, a rechargeable battery, a power supply control unit, a power output plug, a computer switch control unit and a computer start detection unit, wherein the power supply control unit is used for detecting whether an external power supply is normally supplied or not and switching the external power supply and the rechargeable battery, the power output plug is used for being connected with a computer power input socket, the computer switch control unit is used for controlling the computer to start when the power supply of a direct-current power supply adapter is normal and controlling the computer to shut down when the power supply of the direct-current power supply adapter is shut down, and the computer start detection unit is used for detecting the start and shut down states of the computer; when the direct current power supply of the computer is directly cut off by a user, the circuit controls the rechargeable battery to supply power in a short time and drives the computer to normally shut down, so that the damage caused by abnormal shutdown of the computer is avoided. When the power adapter is connected with an external power supply and the direct current power supply of the computer is normal, the computer is driven to be started normally, so that the computer can be automatically started and shut down only by plugging and unplugging the power adapter, and the computer is convenient for a user to use.
Description
Technical Field
The invention relates to the field of computer on-off control, in particular to a direct-current power supply computer on-off circuit for directly controlling the on-off of a computer by plugging and unplugging a power adapter.
Background
With the development of society, computer application is becoming more and more popular, and is applied on a large scale both in civil use and in industry, but industrial application is due to staff quality problem, and a computer power supply is often turned off directly when going to work; or civil HTPC (Home Theater Personal Computer, personal computer used in living room), the old and children turn off or unplug the power plug directly, and the abnormal shutdown actions can easily cause the phenomena of hard disk damage, data loss and the like of the computer.
Disclosure of Invention
The invention mainly aims to provide a direct-current power supply computer direct-on/off circuit for directly controlling the on/off of a computer by plugging and unplugging a power adapter, which is used for controlling a battery to supply power in a short time and driving the computer to normally shut down when a user directly cuts off the direct-current power supply of the computer, thereby avoiding damage caused by abnormal shutdown of the computer.
The invention provides a direct-current power supply computer direct-on/off circuit which is characterized by comprising a CPU main control unit, a rechargeable battery, a power supply control unit, a power output plug, a computer switch control unit and a computer start-up detection unit, wherein the power supply control unit is used for detecting whether an external power supply is normally supplied or not and switching the external power supply and the rechargeable battery, the power output plug is used for being connected with a computer power input socket, the computer switch control unit is used for controlling the computer to be normally started up when the power supply of a direct-current power supply adapter is normal and controlling the computer to be normally shut down when the power supply of the direct-current power supply adapter is cut off, and the computer start-up detection unit is used for detecting the start-up state and the shut-down state of the computer; the computer startup detection unit is connected with one USB port of the computer through a wire and is used for judging the voltage of the USB port so as to judge whether the computer is in a shutdown state or a startup state; the computer switch control unit is connected with the on-off key of the computer in parallel through a wire and is used for outputting on-off pulse to the on-off key of the computer, so that the on-off key of the computer is simulated to be pressed down, and the computer is automatically started or shut down;
the power supply control unit is electrically connected with the rechargeable battery and the direct current power supply adapter for connecting an external power supply, the power output plug is electrically connected with the power supply control unit, and the CPU main control unit is electrically connected with the power supply control unit, the computer starting detection unit and the computer switch control unit; the power supply control unit detects the voltage of the rechargeable battery to judge whether the rechargeable battery needs to be charged, and when the voltage of the rechargeable battery is insufficient, the CPU main control unit controls the rechargeable battery to be charged through an external power supply; the power supply control unit circularly detects the voltage of the direct current power supply adapter to judge whether the external power supply is normally supplied, when the external power supply is normally supplied, the CPU main control unit detects the on-off state of the computer through the computer on-off detection unit, and if the computer is off, the CPU main control unit controls the computer to be automatically started through the computer on-off control unit; when the power supply of an external power supply is interrupted, the CPU main control unit is switched to the rechargeable battery to supply power through the power supply control unit, the computer startup detection unit detects the startup and shutdown state of the computer, if the computer startup is started, the CPU main control unit controls the computer to automatically shut down through the computer startup and shutdown control unit controls the power supply to stop outputting to the computer through the computer startup and shutdown control unit after the computer startup detection unit detects that the computer is in the shutdown state.
Preferably, the power supply system further comprises a voltage stabilizing circuit, wherein the voltage stabilizing circuit is electrically connected with the power supply control unit and is used for supplying power to the power supply system and the computer after the power supply is stabilized.
The direct-current power supply computer direct-on/off circuit has the beneficial effects that:
the invention designs the rechargeable battery for short-time power supply, when a user directly cuts off the direct-current power supply of the computer, the circuit controls the rechargeable battery to supply power in a short time, and the computer is driven to normally shut down through the computer switch control unit, so that the damage caused by abnormal shutdown of the computer is avoided. When the power adapter is connected with an external power supply and the direct current of the computer is normal, the computer is driven to be normally started through the computer switch control unit, so that the computer can be automatically started only by inserting the power adapter, the computer can be automatically shut down by pulling out the power adapter, and the computer can be directly connected with and disconnected from the power supply as common electric equipment to be switched on and off, thereby being convenient for users to use.
Drawings
Fig. 1 is a flow chart of the master control software of the present invention.
Fig. 2 is a circuit block diagram of a direct-current power supply computer direct-on/off circuit of the invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1 to 2, an embodiment of a direct power on/off circuit of a dc power supply computer according to the present invention is provided:
the direct-current power supply computer direct-on/off circuit comprises a CPU main control unit, a rechargeable battery, a power supply control unit for detecting whether an external power supply is normally supplied and switching the external power supply and the rechargeable battery, a power output plug connected with a computer power input socket, a voltage stabilizing circuit, a computer switch control unit for controlling the computer to be normally started when the direct-current power supply adapter is normal and controlling the computer to be normally shut down when the direct-current power supply adapter is cut off, and a computer start-up detection unit for detecting the start-up and shut-down states of the computer.
The power supply control unit is electrically connected with the rechargeable battery and the direct current power adapter for connecting an external power supply. The voltage stabilizing circuit is electrically connected with the power supply control unit and is used for supplying power to the computer and the self after the power supply is stabilized. The CPU main control unit is electrically connected with the power supply control unit, the computer startup detection unit and the computer switch control unit. The computer startup detection unit is connected with one USB port of the computer through a wire and is used for judging the voltage of the USB port, so that whether the computer is in a shutdown state or a startup state is judged, the USB port has direct current output of about 5V under the startup state of the computer, and the USB port has no voltage output under the shutdown state.
The computer switch control unit is connected with the on-off key of the computer in parallel through a lead and is used for outputting on-off pulse to the on-off key of the computer, so that the on-off key of the computer is simulated to be pressed down, and the computer is automatically started or shut down.
The power output plug is electrically connected with the power supply control unit. The CPU main control unit adopts a singlechip, contains software programs, and coordinates the work of each unit. The power supply control unit detects the voltage of the rechargeable battery to judge whether the rechargeable battery needs to be charged, and when the voltage of the rechargeable battery is insufficient, the CPU main control unit controls the rechargeable battery to charge through an external power supply and stops charging when the rechargeable battery is full.
When the power supply control unit works, the power supply control unit circularly detects the voltage of the direct current power supply adapter to judge whether the external power supply is normally powered, and when the voltage of the direct current power supply adapter is more than 10V, the voltage is normal to judge that the external power supply is normally powered by a computer; when the voltage of the direct current power adapter is less than 10V, the external power supply is judged to be disconnected.
As shown in fig. 1, a flowchart of software built in the CPU main control unit is shown. When the external power supply supplies power normally, the CPU main control unit detects the on-off state of the computer through the computer on-off detection unit, detects whether the connected computer USB port has 5V voltage (more than 4.5V), and judges that the computer is in the off state if the connected computer USB port has no 5V voltage (more than 4.5V), and the CPU main control unit controls the computer to automatically start through the computer on-off control unit: the computer switch control unit outputs a 0.5S starting pulse, and simulates the computer power switch to be pressed down so as to start the computer. Thus, when the power supply of the direct-current power supply adapter is normal, the computer is in a starting state. The computer can not be started by one starting pulse, and a 0.5S starting pulse is output again after 1 second delay until the computer is normally started.
When the power supply of the external power supply is interrupted, the CPU main control unit is switched to the rechargeable battery for supplying power through the power supply control unit, and the on-off state of the computer is detected through the computer start-up detection unit: detecting whether the 5V voltage of the USB port of the computer is disappeared (less than 4.5V), and if the voltage is not disappeared, judging that the computer is in a starting state. At this time, the CPU main control unit controls the computer to automatically shut down through the computer switch control unit: the computer switch control unit outputs a 0.5S shutdown pulse, the analog computer power switch is pressed down to shut down the computer, after the shutdown pulse is output, whether the USB port 5V power source is disappeared (< 4.5V) is continuously detected in 30S, if the USB port 5V power source is not disappeared, the 0.5S shutdown pulse is output again after 60S, whether the USB port 5V power source is disappeared (< 4.5V) is continuously detected, if the USB port 5V power source is not disappeared yet, and if the USB port 5V power source is not disappeared, the 0.5S shutdown pulse is output again after 90S. After the computer is in a shutdown state, the CPU main control unit controls the power supply control power supply output plug to shut down the power supply output through the computer switch control unit, and the power supply of the computer is completely cut off, so that the current consumption of the rechargeable battery is reduced, and the standby time is prolonged.
When the power adapter is connected with an external power supply and the direct current of the computer is normal, the computer is driven to be normally started through the computer switch control unit, so that the computer can be automatically started only by plugging the power adapter, the computer can be automatically shut down by unplugging the power adapter, and the computer can be directly connected with and disconnected from the power supply as common electric equipment to be switched on and off, thereby being convenient for users to use.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but is intended to cover all equivalent structures modifications, direct or indirect application in other related arts, which are included in the scope of the present invention.
Claims (1)
1. The direct-current power supply computer direct-on/off circuit is characterized by comprising a CPU main control unit, a rechargeable battery, a power supply control unit, a power output plug, a computer switch control unit and a computer start-up detection unit, wherein the power supply control unit is used for detecting whether an external power supply is normally supplied or not and switching the external power supply and the rechargeable battery in power supply, the power output plug is used for being connected with a computer power input socket, the computer switch control unit is used for controlling the computer to be normally started up when the power supply of the direct-current power supply adapter is normal and controlling the computer to be normally shut down when the power supply of the direct-current power supply adapter is cut off, and the computer start-up detection unit is used for detecting the start-up state and the shut-down state of the computer; the computer startup detection unit is connected with one USB port of the computer through a wire and is used for judging the voltage of the USB port so as to judge whether the computer is in a shutdown state or a startup state; the computer switch control unit is connected with the on-off key of the computer in parallel through a wire and is used for outputting on-off pulse to the on-off key of the computer, so that the on-off key of the computer is simulated to be pressed down, and the computer is automatically started or shut down;
the power supply control unit is electrically connected with the rechargeable battery and the direct current power supply adapter for connecting an external power supply, the power output plug is electrically connected with the power supply control unit, and the CPU main control unit is electrically connected with the power supply control unit, the computer starting detection unit and the computer switch control unit; the power supply control unit detects the voltage of the rechargeable battery to judge whether the rechargeable battery needs to be charged, and when the voltage of the rechargeable battery is insufficient, the CPU main control unit controls the rechargeable battery to be charged through an external power supply; the power supply control unit circularly detects the voltage of the direct current power supply adapter to judge whether the external power supply is normally supplied, when the external power supply is normally supplied, the CPU main control unit detects the on-off state of the computer through the computer on-off detection unit, and if the computer is off, the CPU main control unit controls the computer to be automatically started through the computer on-off control unit; when the power supply of an external power supply is interrupted, the CPU main control unit is switched to a rechargeable battery to supply power through the power supply control unit, the computer startup detection unit detects the startup and shutdown state of the computer, if the computer is started, the CPU main control unit controls the computer to automatically shut down through the computer startup and shutdown control unit, and after the computer startup detection unit detects that the computer is in a shutdown state, the CPU main control unit controls the power supply to stop outputting to the computer through the computer startup and shutdown control unit;
the direct-current power supply computer direct-on/off circuit also comprises a voltage stabilizing circuit, wherein the voltage stabilizing circuit is electrically connected with the power supply control unit and is used for supplying power to the computer and the self after the power supply is stabilized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610916062.6A CN106383565B (en) | 2016-10-20 | 2016-10-20 | Direct power-on/off circuit of direct-current power-supply computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610916062.6A CN106383565B (en) | 2016-10-20 | 2016-10-20 | Direct power-on/off circuit of direct-current power-supply computer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106383565A CN106383565A (en) | 2017-02-08 |
CN106383565B true CN106383565B (en) | 2023-12-12 |
Family
ID=57957999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610916062.6A Active CN106383565B (en) | 2016-10-20 | 2016-10-20 | Direct power-on/off circuit of direct-current power-supply computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106383565B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408129A (en) * | 2018-11-13 | 2019-03-01 | 郑州云海信息技术有限公司 | A kind of system automatic power-on method and a kind of system of Auto Power On |
CN109782885A (en) * | 2019-01-08 | 2019-05-21 | 佛山市伙伴联扬电子有限公司 | A kind of power supply and switching device of automatic sensing control lamp effect |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100944800B1 (en) * | 2009-08-28 | 2010-02-26 | 신명숙 | Controllng curcuit for dc charging |
CN103135729A (en) * | 2012-07-16 | 2013-06-05 | 王旭金 | Intelligent control and power supply unit for startup and shutdown of vehicle-mounted computer |
CN104979892A (en) * | 2015-07-02 | 2015-10-14 | 四川长虹教育科技有限公司 | System and method for preventing OPS abnormal power failure of OPS-TV all-in-one machine |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651356A (en) * | 2008-08-11 | 2010-02-17 | 鸿富锦精密工业(深圳)有限公司 | Power adapter and charging method thereof |
CN206441113U (en) * | 2016-10-20 | 2017-08-25 | 中山领创网络科技有限公司 | A kind of direct on/off circuit of direct current supply computer |
-
2016
- 2016-10-20 CN CN201610916062.6A patent/CN106383565B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100944800B1 (en) * | 2009-08-28 | 2010-02-26 | 신명숙 | Controllng curcuit for dc charging |
CN103135729A (en) * | 2012-07-16 | 2013-06-05 | 王旭金 | Intelligent control and power supply unit for startup and shutdown of vehicle-mounted computer |
CN104979892A (en) * | 2015-07-02 | 2015-10-14 | 四川长虹教育科技有限公司 | System and method for preventing OPS abnormal power failure of OPS-TV all-in-one machine |
Also Published As
Publication number | Publication date |
---|---|
CN106383565A (en) | 2017-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5301512B2 (en) | Power saving apparatus and power saving method thereof | |
TWI575835B (en) | Method and apparatus for controlling distribution of power | |
TWI559650B (en) | Method and apparatus for performing system power management | |
KR101512478B1 (en) | Standby power cut-off apparatus for electronic product using power adapter | |
US9985454B2 (en) | Power source device having standby power-cutoff function, and method for controlling same | |
US8271815B2 (en) | Device for controlling power to a plurality of peripherals based on the state of a host computer | |
CN104682458A (en) | Charging control device, system, charging chip and user terminal | |
CN206441113U (en) | A kind of direct on/off circuit of direct current supply computer | |
CN106383565B (en) | Direct power-on/off circuit of direct-current power-supply computer | |
TW201504811A (en) | Power adapter and electronic device | |
TWI582575B (en) | Electronic device | |
TW201321955A (en) | Power control device and electronic device using the same | |
KR101661392B1 (en) | Standby power cut-off charging devices and control mothod for Smart devices | |
TW201737022A (en) | Electricity retrieving device having a first or second predetermined voltage outputted to a first or second connection interface | |
TW202044719A (en) | Uninterrupted power system | |
TW201504800A (en) | System and method for adjusting working state of mobile electronic device | |
US10942213B2 (en) | Device and method for testing motherboard | |
US20080093928A1 (en) | Power outlet control device with USB controller(s) | |
CN102053941A (en) | Portable device with reciprocating type detection terminal and detection and control method thereof | |
CN202058990U (en) | Control device of socket power source | |
EP3433915B1 (en) | Charger comprising night light | |
CN214176984U (en) | Computer power-off protection and on-off control module based on UPS | |
KR20120013514A (en) | Potable power supply with plural output terminal | |
KR20160001407U (en) | A socket for cutting off standby power | |
CN106445053B (en) | Remote startup and shutdown control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |