WO2017190474A1 - 供电方法及装置 - Google Patents

供电方法及装置 Download PDF

Info

Publication number
WO2017190474A1
WO2017190474A1 PCT/CN2016/102321 CN2016102321W WO2017190474A1 WO 2017190474 A1 WO2017190474 A1 WO 2017190474A1 CN 2016102321 W CN2016102321 W CN 2016102321W WO 2017190474 A1 WO2017190474 A1 WO 2017190474A1
Authority
WO
WIPO (PCT)
Prior art keywords
power supply
supply device
power
determining
voltage
Prior art date
Application number
PCT/CN2016/102321
Other languages
English (en)
French (fr)
Inventor
李阳
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017190474A1 publication Critical patent/WO2017190474A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • the present invention relates to the field of communications, and in particular to a power supply method and apparatus.
  • the power supply standard needs to support the BC1.2 standard.
  • the first one is a standard downstream port (SDP).
  • the external power supply the second is a dedicated charging port (DCP) that does not support serial charging, and the third is a DCP mode that supports serial charging.
  • DCP dedicated charging port
  • the first power supply mode is to pull down the mobile terminal through the id pin of the Universal Serial Bus (USB), enumerate it as a USB master device, and then supply power to the slave device by means of SDP.
  • the power supply mode generally has a maximum power supply of 5V/500mA, and the power supply current is small, and the charging time is long.
  • the second type of power supply is to supply the mobile terminal with DCP.
  • This power supply can support 5V/1A, 5V/2A and other high current charging. However, due to some internal factors, it does not support serial charging. It is not possible to supply power to the outside while charging, which will cause a problem of poor user experience.
  • the third power supply mode not only supports DCP power supply but also supports serial charging.
  • serial charging when the serial charging is performed, there is a problem that the user mistakenly connects the USB power supply port to the USB charging port, which not only consumes battery power, but also increases system power consumption, and There will be security risks. For this problem, no effective solution has been proposed yet.
  • the embodiment of the invention provides a power supply method and device to solve at least the problem of consuming battery power in the related art, increasing system power consumption, and having a safety hazard.
  • a power supply method including: determining a first Whether the device powered by the power supply device is the first power supply device; if the determination result is yes, controlling the charging input function of the first power supply device to turn off and/or controlling the power supply output function of the first power supply device shut down.
  • determining whether the device that supplies power to the first power supply device is the first power supply device includes: turning off the power supply mode when determining that the power supply mode for supplying power to the first power supply device is a dedicated charging port DCP a power supply output function of the first power supply device; after a predetermined time, detecting whether the first power supply device can still receive the power; if the detection result is that the power cannot be received, determining to turn off the first power supply device The device for supplying power to the first power supply device before the power supply output function is the first power supply device; and/or, if the detection result is that the power can still be received, determining to supply power to the first power supply device The device is not the first power supply device.
  • the method further includes: determining, by the following manner, that the power supply mode for supplying power to the first power supply device is the DCP: after determining that the device that supplies power to the first power supply device is successfully connected, a voltage source for enabling the first voltage value on the data pin D+ of the charging input port of the first power supply device, and a current source for enabling the first current value on D-; detecting the voltage on the D- When the first voltage value is, the voltage source and the current source are turned off, and a voltage source that enables the second voltage value on the D- and a current that enables the second current value on the D+ a source; when detecting that the voltage on the D+ is the second voltage value, determining that the power supply mode is the DCP.
  • controlling the charging input function of the first power supply device to be turned off comprises: disabling the low dropout linear regulator LDO of the first power supply device, wherein the LDO is used to connect the first power supply device
  • the charging input port is connected to the battery.
  • the method further includes: determining to disconnect the first power supply device from a connection of a device that supplies power to the first power supply device; a charging input function and/or a power supply output function of the first power supply device.
  • a power supply apparatus including: a judgment mode a block, configured to determine whether the device that supplies power to the first power supply device is the first power supply device; and the shutdown module is configured to control the first power supply device if the determination result of the determination module is yes The charging input function is turned off and/or the power supply output function of the first power supply device is turned off.
  • the determining module includes: a closing unit, configured to: when determining that the power supply mode for supplying power to the first power supply device is a dedicated charging port DCP, turning off the power output function of the first power supply device; And setting, after a predetermined time, detecting whether the first power supply device can still receive the power; the first determining unit is configured to determine that the first power supply device is turned off if the detection result is that the power cannot be received.
  • the device for supplying power to the first power supply device before the power supply output function is the first power supply device; and/or, if the detection result is that the power can still be received, determining that the first power supply device is The powered device is not the first powered device.
  • the determining module further includes a second determining unit, configured to determine, by using the following manner, that the power supply mode for supplying power to the first power supply device is the DCP: powering the first power supply device after determining that the connection is successfully connected After the device, the voltage source of the first voltage value is enabled on the data pin D+ of the charging input port of the first power supply device, and the current source of the first current value is enabled on D-; When the voltage on D- is the first voltage value, turning off the voltage source and the current source, and enabling a voltage source of the second voltage value on the D- and enabling on the D+ a current source of the second current value; when it is detected that the voltage on the D+ is the second voltage value, determining that the power supply mode is the DCP.
  • a second determining unit configured to determine, by using the following manner, that the power supply mode for supplying power to the first power supply device is the DCP: powering the first power supply device after determining that the connection is successfully connected
  • the voltage source of the first voltage value
  • the shutdown module includes: a de-enable unit configured to disable the low-dropout linear regulator LDO of the first power supply device, wherein the LDO is used to connect the first power supply device Charging input port and battery.
  • the device further includes: a determining module, configured to determine to disconnect after the charging input function of the first power supply device is turned off and/or the power output function of the first power supply device is turned off a connection between the first power supply device and the device for supplying power to the first power supply device; the opening module is configured to enable the charging input function of the first power supply device and/or Electrical output function.
  • a determining module configured to determine to disconnect after the charging input function of the first power supply device is turned off and/or the power output function of the first power supply device is turned off a connection between the first power supply device and the device for supplying power to the first power supply device
  • the opening module is configured to enable the charging input function of the first power supply device and/or Electrical output function.
  • Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
  • the charging input function of the first power supply device is turned off and/or the power supply output function of the first power supply device is turned off when the first power supply device is self-charged, the self-charging of the first power supply device is eliminated.
  • the situation avoids unnecessary waste of power, solves the problem of consuming battery power in the related art, increases system power consumption, and has potential safety hazards, thereby avoiding unnecessary power consumption and system power consumption, and improving power supply equipment.
  • FIG. 1 is a flow chart of a power supply method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a power supply device according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing the structure of the determining module 22 in the power supply apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing the structure of a detecting unit 32 in a power supply device according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a shutdown module 24 in a power supply apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing a preferred structure of a power supply device according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a charging treasure according to an embodiment of the present invention.
  • FIG. 8 is a flow chart of detecting when a charging device detects that a charging device is inserted according to an embodiment of the present invention
  • FIG. 9 is a flow chart of detecting when a charging device detects that a charging device is unplugged according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a power supply method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 determining whether the device that supplies power to the first power supply device is the first power supply device
  • step S104 if the determination result is yes, the charging input function of the first power supply device is controlled to be turned off and/or the power supply output function of the first power supply device is turned off.
  • controlling the charging input function to be turned off may include two cases. One is that when the operation of turning off the charging input function has been performed during the execution of S102, controlling the charging input function to turn off is to control the charging input. The function remains off; the other is, when the charging input function is turned on after the execution of S102, the control charging input function is turned off to perform the closing operation of the charging input function, and the maintenance is turned off after the charging input function is turned off. status.
  • the control power supply output function can be turned off in the same manner as the above-described types.
  • the power supply output function remains off; the other is, when the power supply output function is turned on after the execution of S102, the control power supply output function is turned off to perform the shutdown operation of the power supply output function, and after the power supply output function is turned off, Stay closed.
  • the charging input function of the first power supply device is controlled to be turned off and/or the power supply output function of the first power supply device is turned off, thereby eliminating self-charging of the first power supply device.
  • the situation avoids unnecessary waste of power, solves the problem of consuming battery power in the related art, increases system power consumption, and has potential safety hazards, thereby avoiding unnecessary power consumption and system power consumption, and improving power supply equipment. The effect of security.
  • step S102 it is determined that the first power supply device is When the device that is powered by the first power supply device is the first power supply device, the power supply output function of the first power supply device is turned off when the power supply mode for determining the power supply to the first power supply device is the dedicated charging port DCP; After the predetermined time, detecting whether the first power supply device can still receive the power (ie, determining whether the first power supply device is self-charging, if the power can be received, indicating that the first power supply device is not self-charging; if the power cannot be received The first power supply device is self-charging; if the detection result is that the power cannot be received, determining that the device that supplies power to the first power supply device before turning off the power output function of the first power supply device is the first power supply device; And/or, in the case that the detection result is that the electrical energy can still be received, the device that determines that the first power supply device is powered is not the first power supply device.
  • the predetermined time mentioned above needs to be set according to a specific situation.
  • determining whether the first power supply device is in a self-charging state by determining the power supply mode of the external power supply device, and further determining by controlling the power supply output function of the first power supply device, thereby improving the determination Whether a power supply device is self-charging accuracy.
  • the method for determining the power supply mode of the external power supply device may be various, for example, may be determined by: after determining that the device that supplies power to the first power supply device is successfully connected, at the first A voltage source of a first voltage value (for example, 0.5v-0.7v) is enabled on the data pin D+ of the charging input port of the power supply device, and the first current value (for example, 25 ⁇ a-175 ⁇ a) is enabled on the D- a current source; when detecting that the voltage on the D- is a first voltage value, determining that the power supply mode is a DCP or a charging downlink port CDP; and/or, when detecting that the voltage on the D- is 0, determining the above The power supply mode is the standard downlink port SDP.
  • a first voltage value for example, 0.5v-0.7v
  • the first current value for example, 25 ⁇ a-175 ⁇ a
  • the DCP or CDP can be continuously determined by: turning off the above voltage source and current source, and enabling the second voltage value on D- a voltage source (for example: 0.5v-0.7v) and a current source for enabling a second current value (for example, 50 ⁇ a) on D+; determining the power supply mode when detecting that the voltage on the D+ is the second voltage value For DCP; and/or, in detection The voltage of the D + is zero, the power supply mode is determined CDP.
  • a voltage source for example: 0.5v-0.7v
  • a current source for enabling a second current value (for example, 50 ⁇ a) on D+
  • controlling the charging input function of the first power supply device to be turned off comprises: enabling a low dropout regulator of the first power supply device (low dropout regulator,
  • the LDO is used to connect the charging input port of the first power supply device to the battery.
  • the LDO is equivalent to a soft switch of the charging input function of the first power supply device.
  • the LDO is enabled, The charging input function of the first power supply device is turned on; when the LDO is disabled, the charging input function of the first power supply device is turned off.
  • the use of the LDO as a soft switch is only a preferred method, and other devices may be used as the switch for controlling the opening and closing of the charging input function of the first power supply device.
  • the method further includes: determining to disconnect the first power supply device from The connection of the device that supplies power to the first power supply device; the charging input function and/or the power supply output function of the first power supply device is turned on.
  • the normal function of the first power supply device needs to be restored, that is, the function of turning off the first power supply device needs to be restored to normal.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a power supply device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a block diagram showing the structure of a power supply apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a determination module 22 and a shutdown module 24. The apparatus will be described below.
  • the determining module 22 is configured to determine whether the device that supplies power to the first power supply device is the first power supply device; the shutdown module 24 is connected to the determining module 22, and is configured to be YES when the determining result of the determining module 22 is Controlling the charging input function of the first power supply device to turn off and/or controlling the power supply output function of the first power supply device to be turned off.
  • FIG. 3 is a block diagram showing the structure of the determining module 22 in the power supply apparatus according to the embodiment of the present invention.
  • the determining module 22 includes a closing unit 32, a detecting unit 34, and a first determining unit 36. 22 for explanation.
  • the closing unit 32 is configured to: when determining that the power supply mode for supplying power to the first power supply device is the dedicated charging port DCP, turn off the power supply output function of the first power supply device; the detecting unit 34 is connected to the closing unit 32, and is configured to After the predetermined time, detecting whether the first power supply device can still receive the power; the first determining unit 36 is connected to the detecting unit 34, and is configured to determine that the first power supply is turned off if the detection result is that the power cannot be received.
  • a power supply device is configured to: when determining that the power supply mode for supplying power to the first power supply device is the dedicated charging port DCP, turn off the power supply output function of the first power supply device; the detecting unit 34 is connected to the closing unit
  • FIG. 4 is a block diagram showing a preferred structure of the determining module 22 in the power supply apparatus according to the embodiment of the present invention. As shown in FIG. 4, the determining module 22 further includes a second determining unit 42, which is described below:
  • the second determining unit 42 is connected to the closing unit 32, and is configured to determine that the power supply mode for supplying power to the first power supply device is DCP: after determining that the device that supplies power to the first power supply device is successfully connected, a voltage source for enabling the first voltage value on the data pin D+ of the charging input port of the first power supply device, and a current source for enabling the first current value on D-; detecting the voltage on the D- is a voltage value, turning off the voltage source and the current source, and enabling a voltage source of the second voltage value on D- and a current source enabling the second current value on D+; detecting the voltage on the D+ is When the second voltage value is used, it is determined that the power supply mode is DCP.
  • FIG. 5 is a structural block diagram of a shutdown module 24 in a power supply apparatus according to an embodiment of the present invention, such as As shown in FIG. 5, the shutdown module 24 includes a de-enable unit 52, which is described below:
  • the de-energizing unit 52 is configured to disable the low-dropout linear regulator LDO of the first power supply device, wherein the LDO is used to connect the charging input port of the first power supply device with the battery.
  • FIG. 6 is a block diagram showing a preferred structure of a power supply apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes a determination module 62 and an opening module 64, in addition to all the modules shown in FIG. Be explained.
  • the determining module 62 is connected to the closing module 24, and is configured to determine to disconnect the first power supply device after the charging input function of the first power supply device is controlled to be turned off and/or the power supply output function of the first power supply device is turned off.
  • the first power supply device is connected to the device for supplying power;
  • the open module 64 is connected to the determining module 62, and is configured to enable the charging input function and/or the power output function of the first power supply device.
  • the devices shown in FIG. 2 to FIG. 6 above can be applied to the first power supply device, and the first power supply device can be a charging treasure.
  • the charging treasure includes a micro processing module 72 (corresponding to the closing module 24 and the opening module 64 described above), a boost output module 74, and a USB.
  • the detection module 76 (corresponding to the determination module 22 and the determination module 62 described above), the charge control module 78, the voltage detection module 710, and an output controllable LDO 712. The following describes each module:
  • the micro-processing module 72 can be composed of a single-chip microcomputer or a microprocessor (for example, a central processing unit (CPU) chip), and mainly performs execution of software instructions and control of the entire system.
  • a microprocessor for example, a central processing unit (CPU) chip
  • the boost output module 74 is implemented by a boost boost chip, and the internal can be implemented by a DC-DC (Boost Current-Direct Current, DC-DC) boost circuit, which mainly boosts the internal output voltage.
  • the boosted voltage output is a standard value (for example, 5V).
  • USB detection module 76 charging control module 78, voltage detection module 710, and LDO 712, These four modules can be implemented either as a powerful charging chip or as separate chips.
  • the above-mentioned micro-processing module 72 can pass through the I2C bus (other peripheral control buses such as a serial peripheral interface (SPI), a universal asynchronous receiver/transmitter (Universal Asynchronous Receiver) can also be used. /Transmitter, abbreviated as UART), etc.) controls the boost output module 74 and the charge control module 78, and receives interrupt information from the charge control module 78 through a general purpose input output (GPIO).
  • the boost output module 74 causes the USB output pin Vbus to output a 5V voltage by boosting the internal voltage, and the D+ and D- (DP, DM, and D+, D-, respectively, in FIG. 7) pins are performed.
  • the USB detection module 76 distinguishes the type of USB charging that is inserted by detecting changes in the input terminals D+ and D-voltage.
  • the output controllable LDO 712 is controlled by the charge control chip to enable and disable operation.
  • the voltage detection module 710 is configured to detect whether the external power is normal, and report to the charging control module 78 through the high and low levels.
  • the charging control module 78 is reflected by the acquisition voltage detection module 710 and the USB detection module 76 to the microprocessor module 72 through an interrupt.
  • the microprocessor module 72 performs logic processing and then controls the LDO 712 to be enabled and controlled by the I2C control charging control module 78.
  • the implementation circuit of the USB detection module 76 needs to be implemented according to the BC1.2 protocol, and the detection process includes:
  • Vbus detection To ensure proper sequencing of any device connected to the USB port, the connector's Vbus and GND pins can be made longer than the D+ and D- pins. This ensures that the long pins are first in contact with the insertion device. Therefore, before any detection occurs, Vbus must be detected first. In the present system, Vbus detection is performed by the voltage detecting module 710, and the voltage detecting module 710 can be implemented by a voltage comparator.
  • a terminal device distinguishes between a port of 500 mA or more (CDP and DCP) having a charging tag and a port of less than 500 mA (SDP).
  • the terminal device needs to enable a voltage source of 0.5v to 0.7v on D+ and 25 ⁇ a to 175 ⁇ a on D-. Flow into the current source. If DCP or CDP is connected, a 0.5v to 0.7v level will appear on D-; if SDP is connected, the D-voltage will drop to zero.
  • the terminal device cuts into a comparator and compares the D-voltage with 0.25v to 0.4v. If the D-voltage is above 0.4v but below the logic low threshold of 0.8v, the terminal device considers that a charging port is present.
  • the above detection logic is implemented in the USB detection module 76 by a hardware circuit.
  • the start of the detection can be controlled by the micro processing module 73.
  • the USB detection module 76 changes with a logic level.
  • the form is reflected to the charging control module 78, and the final charging control module 78 is reported to the microprocessor module 72 by means of a system interrupt.
  • the above USB output port is a DCP port conforming to the BC1.2 standard.
  • the LDO 712 described above can be an LDO module that can output a high impedance state and control it.
  • FIG. 8 is a flow chart of detecting when a charging device detects that a charging device is inserted according to an embodiment of the present invention. As shown in FIG. 8, the flow includes the following steps:
  • Step S802 in the default state, the boost output module 74 and the controllable LDO 712 are both turned on, so when an external power (ie, an external charging device) is inserted, the microprocessor module 72 first reads the voltage detecting module. 710 state, the voltage detection module 710 detects Vbus;
  • Step S804 it is determined whether the external power exists by detecting Vbus, if yes, go to step S806, otherwise, go to step S818;
  • Step S806 the voltage detecting module 710 confirms whether the external power supply is normal through voltage comparison, and if it is normal, controls the USB detecting module 76 to detect D+ and D-;
  • Step S808 it is determined whether the charging mode of the external charging device is DCP, and if so, go to step S810, otherwise, go to step S818;
  • Step S810 when it is determined that the charging mode is DCP, the boost output module 74 is turned off for 50 ms, wherein the 50 ms is the sum of the reaction times of the two chips of the controllable LDO 712 and the voltage detecting module 710 (when the LDO 712 and the voltage detecting module)
  • the above-mentioned closing time needs to be adjusted accordingly.
  • the switching time of the chip can be inquired from the chip manual, and the closing time generally needs to take the sum of the maximum switching time;
  • Step S812 read the state of the voltage detection module 710, determine whether the external power is present at this time, if not, go to step S814, otherwise, go to step S816;
  • Step S814 turning off the LDO 712 to make it output high impedance
  • FIG. 9 is a detection performed when the charging device detects that the charging device is pulled out according to an embodiment of the present invention. flow chart. As shown in FIG. 9, the process includes the following steps:
  • Step S902 the charging treasure exits the self-charging state
  • Step S904 after detecting the USB pull-out event, the USB detecting module 76 notifies the micro-processing module 72 that there is a USB pull-out event by interrupting;
  • Step S906 the micro processing module 72 enables the LDO to make its output normal
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present invention also provide a storage medium.
  • the storage medium can be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor executes the steps in the foregoing method embodiments according to the stored program code in the storage medium.
  • the system when the user mistakenly connects the power output port of the charging device to the charging input port, the system performs self-detection, and the microprocessor controls the LDO to be closed, so that the system does not have leakage in this scenario. Thereby avoiding unnecessary power consumption and system power consumption, and improving the safety of the power supply equipment.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the power supply method and apparatus provided by the embodiments of the present invention have the following beneficial effects: solving the problem of consuming battery power, increasing system power consumption, and having hidden dangers in the related art, thereby avoiding unnecessary problems.
  • the power consumption and system power consumption improve the safety of the power supply equipment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

一种供电方法及装置,其中,该方法包括:判断对第一供电设备进行供电的设备是否是该第一供电设备(S102);在判断结果为是的情况下,控制第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭(S104)。该供电方法及装置解决了相关技术中存在的消耗电池电量,增大系统功耗,存在安全隐患的问题,达到了避免不必要的电量消耗以及系统功耗,提高供电设备的安全性的效果。

Description

供电方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种供电方法及装置。
背景技术
目前的移动终端中,增加充电宝功能已经比较常见,而且供电标准都需要支持BC1.2标准,一般有三种供电方式:第一种是以标准下行端口(Standard downstream port,简称为SDP)的方式向外部供电,第二种是不支持连环充电的专用充电端口(Dedicated charger port,简称为DCP)方式向外部供电,第三种是支持连环充电的DCP方式向外供电。
其中,第一种供电方式是将移动终端通过通用串行总线(Universal Serial Bus,简称为USB)的id管脚下拉,枚举为USB主设备,然后以SDP的方式给从设备供电,这种供电方式一般最高供电为5V/500mA,供电的电流较小,充电时间较长。
第二种供电方式是将移动终端以DCP的方式向外供电,这种供电可以支持5V/1A、5V/2A等大电流充电,但是由于终端内部的一些因素,不支持连环充电,即给自己充电的同时不可以向外供电,这样会造成用户体验较差的问题。
第三种供电方式既支持DCP供电又支持连环充电,但是连环充电的时候会存在用户误将USB的供电口连接到USB充电口的问题,这样不仅会消耗电池电量,增大系统功耗,而且会存在安全隐患。而针对该问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种供电方法及装置,以至少解决相关技术中存在的消耗电池电量,增大系统功耗,存在安全隐患的问题。
根据本发明的一个实施例,提供了一种供电方法,包括:判断对第一 供电设备进行供电的设备是否是所述第一供电设备;在判断结果为是的情况下,控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭。
可选地,判断对所述第一供电设备进行供电的设备是否是所述第一供电设备包括:在确定对所述第一供电设备进行供电的供电方式是专用充电端口DCP时,关闭所述第一供电设备的供电输出功能;在预定时间之后,检测所述第一供电设备是否仍能接收到电能;在检测结果为不能接收到电能的情况下,确定在关闭所述第一供电设备的供电输出功能之前为所述第一供电设备进行供电的设备是所述第一供电设备;和/或,在检测结果为仍能接收到电能的情况下,确定为所述第一供电设备进行供电的设备不是所述第一供电设备。
可选地,上述方法还包括:通过如下方式确定对所述第一供电设备进行供电的供电方式是所述DCP:在确定成功连接了对所述第一供电设备进行供电的设备之后,在所述第一供电设备的充电输入端口的数据引脚D+上使能第一电压值的电压源,并在D-上使能第一电流值的电流源;在检测到所述D-上的电压为所述第一电压值时,关闭所述电压源和所述电流源,并在所述D-上使能第二电压值的电压源以及在所述D+上使能第二电流值的电流源;在检测到所述D+上的电压为所述第二电压值时,确定所述供电方式为所述DCP。
可选地,控制所述第一供电设备的充电输入功能关闭包括:去使能所述第一供电设备的低压差线性稳压器LDO,其中,所述LDO用于连接所述第一供电设备的充电输入端口与电池。
可选地,在控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭之后,所述方法还包括:确定断开所述第一供电设备与对所述第一供电设备进行供电的设备的连接;开启所述第一供电设备的充电输入功能和/或供电输出功能。
根据本发明的另一个实施例,还提供了一种供电装置,包括:判断模 块,设置为判断对第一供电设备进行供电的设备是否是所述第一供电设备;关闭模块,设置为在所述判断模块的判断结果为是的情况下,控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭。
可选地,所述判断模块包括:关闭单元,设置为在确定对所述第一供电设备进行供电的供电方式是专用充电端口DCP时,关闭所述第一供电设备的供电输出功能;检测单元,设置为在预定时间之后,检测所述第一供电设备是否仍能接收到电能;第一确定单元,设置为在检测结果为不能接收到电能的情况下,确定在关闭所述第一供电设备的供电输出功能之前为所述第一供电设备进行供电的设备是所述第一供电设备;和/或,在检测结果为仍能接收到电能的情况下,确定为所述第一供电设备进行供电的设备不是所述第一供电设备。
可选地,判断模块还包括第二确定单元,设置为通过如下方式确定对所述第一供电设备进行供电的供电方式是所述DCP:在确定成功连接了对所述第一供电设备进行供电的设备之后,在所述第一供电设备的充电输入端口的数据引脚D+上使能第一电压值的电压源,并在D-上使能第一电流值的电流源;在检测到所述D-上的电压为所述第一电压值时,关闭所述电压源和所述电流源,并在所述D-上使能第二电压值的电压源以及在所述D+上使能第二电流值的电流源;在检测到所述D+上的电压为所述第二电压值时,确定所述供电方式为所述DCP。
可选地,所述关闭模块包括:去使能单元,设置为去使能所述第一供电设备的低压差线性稳压器LDO,其中,所述LDO用于连接所述第一供电设备的充电输入端口与电池。
可选地,所述装置还包括:确定模块,设置为在控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭之后,确定断开所述第一供电设备与对所述第一供电设备进行供电的设备的连接;开启模块,设置为开启所述第一供电设备的充电输入功能和/或供 电输出功能。
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的方法。
通过本发明,由于在检测出第一供电设备自充电时,会控制第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭,从而消除第一供电设备的自充电情况,避免了不必要的电量浪费,解决了相关技术中存在的消耗电池电量,增大系统功耗,存在安全隐患的问题,达到了避免不必要的电量消耗以及系统功耗,提高供电设备的安全性的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的供电方法的流程图;
图2是根据本发明实施例的供电装置的结构框图;
图3是根据本发明实施例的供电装置中判断模块22的结构框图;
图4是根据本发明实施例的供电装置中检测单元32的结构框图;
图5是根据本发明实施例的供电装置中关闭模块24的结构框图;
图6是根据本发明实施例的供电装置的优选结构框图;
图7是根据本发明实施例的充电宝的结构框图;
图8是根据本发明实施例的充电宝设备检测到有充电设备插入时进行的检测流程图;
图9是根据本发明实施例的充电宝设备检测到有充电设备拔出时进行的检测流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是, 在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种供电方法,图1是根据本发明实施例的供电方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,判断对第一供电设备进行供电的设备是否是该第一供电设备;
步骤S104,在判断结果为是的情况下,控制第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭。
其中,执行上述操作的可以是第一供电设备。在上述实施例中,控制充电输入功能关闭可以包括两种情况,一种是,当在执行S102的过程中,就已经执行了关闭充电输入功能的操作时,控制充电输入功能关闭是控制充电输入功能维持关闭状态;另一种是,在执行完S102之后,充电输入功能是开启的状态时,控制充电输入功能关闭是执行对充电输入功能的关闭操作,并在关闭充电输入功能之后,维持关闭状态。同样的,控制供电输出功能关闭也可以与上述描述类型的两种情况,一种是,当在执行S102的过程中,就已经执行了关闭供电输出功能的操作时,控制供电输出功能关闭是控制供电输出功能维持关闭状态;另一种是,在执行完S102之后,供电输出功能是开启的状态时,控制供电输出功能关闭是执行对供电输出功能的关闭操作,并在关闭供电输出功能之后,维持关闭状态。
由上述步骤可知,在检测出第一供电设备自充电时,会控制第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭,从而消除第一供电设备的自充电情况,避免了不必要的电量浪费,解决了相关技术中存在的消耗电池电量,增大系统功耗,存在安全隐患的问题,达到了避免不必要的电量消耗以及系统功耗,提高供电设备的安全性的效果。
在一个可选的实施例中,上述步骤S102中,判断对第一供电设备进 行供电的设备是否是第一供电设备时,可以通过如下方式进行判断:在确定对第一供电设备进行供电的供电方式是专用充电端口DCP时,关闭所述第一供电设备的供电输出功能;在预定时间之后,检测第一供电设备是否仍能接收到电能(即,判断第一供电设备是否是自充电,如果能够接收到电能,说明第一供电设备不是自充电;如果不能够接收到电能,说明第一供电设备是自充电);在检测结果为不能接收到电能的情况下,确定在关闭第一供电设备的供电输出功能之前为第一供电设备进行供电的设备是第一供电设备;和/或,在检测结果为仍能接收到电能的情况下,确定为第一供电设备进行供电的设备不是第一供电设备。其中,上述的预定时间需要根据具体情况进行设置。在本实施例中,通过判断外部供电设备的供电方式来确定第一供电设备是否有可能处于自充电的状态,并通过控制第一供电设备的供电输出功能还进一步进行确定,从而提高了确定第一供电设备是否是自充电的准确性。
在一个可选的实施例中,确定外部供电设备的供电方式的方法可以有多种,例如,可以通过如下方式确定:在确定成功连接了对第一供电设备进行供电的设备之后,在第一供电设备的充电输入端口的数据引脚D+上使能第一电压值(例如:0.5v-0.7v)的电压源,并在D-上使能第一电流值(例如:25μa-175μa)的电流源;在检测到上述D-上的电压为第一电压值时,确定上述供电方式为DCP或充电下行端口CDP;和/或,在检测到上述D-上的电压为0时,确定上述供电方式为标准下行端口SDP;当确定上述供电方式为DCP或CDP时,可以通过如下方式继续确定具体是DCP还是CDP:关闭上述电压源和电流源,并在D-上使能第二电压值(例如:0.5v-0.7v)的电压源以及在D+上使能第二电流值(例如:50μa)的电流源;在检测到上述D+上的电压为第二电压值时,确定上述供电方式为DCP;和/或,在检测到上述D+上的电压为0时,确定上述供电方式为CDP。
在一个可选的实施例中,控制上述第一供电设备的充电输入功能关闭包括:去使能第一供电设备的低压差线性稳压器(low dropout regulator, 简称为LDO),其中,该LDO用于连接第一供电设备的充电输入端口与电池,在本实施例中,LDO相当于第一供电设备的充电输入功能的软开关,当LDO使能时,该第一供电设备的充电输入功能为打开;当LDO去使能时,该第一供电设备的充电输入功能为关闭。需要说明的是,采用LDO作为软开关仅是一种优选的方式,也可以采用其他的器件作为控制第一供电设备的充电输入功能开合的开关。
在一个可选的实施例中,在控制上述第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭之后,上述方法还包括:确定断开上述第一供电设备与对第一供电设备进行供电的设备的连接;开启上述第一供电设备的充电输入功能和/或供电输出功能。在本实施例中,在确定第一供电设备退出自充电状态后,需要恢复第一供电设备的正常功能,即,需要将第一供电设备上关闭的功能恢复正常。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种供电装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的供电装置的结构框图,如图2所示,该装置包括判断模块22和关闭模块24,下面对该装置进行说明。
判断模块22,设置为判断对第一供电设备进行供电的设备是否是第一供电设备;关闭模块24,连接至上述判断模块22,设置为在上述判断模块22的判断结果为是的情况下,控制第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭。
图3是根据本发明实施例的供电装置中判断模块22的结构框图,如图3所示,该判断模块22包括关闭单元32、检测单元34和第一确定单元36,下面对该判断模块22进行说明。
关闭单元32,设置为在确定对第一供电设备进行供电的供电方式是专用充电端口DCP时,关闭所述第一供电设备的供电输出功能;检测单元34,连接至上述关闭单元32,设置为在预定时间之后,检测第一供电设备是否仍能接收到电能;第一确定单元36,连接至上述检测单元34,设置为在检测结果为不能接收到电能的情况下,确定在关闭第一供电设备的供电输出功能之前为第一供电设备进行供电的设备是第一供电设备;和/或,在检测结果为仍能接收到电能的情况下,确定为第一供电设备进行供电的设备不是第一供电设备。
图4是根据本发明实施例的供电装置中判断模块22的优选结构框图,如图4所示,该判断模块22还包括第二确定单元42,下面对该判断模块22进行说明:
第二确定单元42,连接至上述关闭单元32,设置为通过如下方式确定对第一供电设备进行供电的供电方式是DCP:在确定成功连接了对第一供电设备进行供电的设备之后,在上述第一供电设备的充电输入端口的数据引脚D+上使能第一电压值的电压源,并在D-上使能第一电流值的电流源;在检测到上述D-上的电压为第一电压值时,关闭上述电压源和电流源,并在D-上使能第二电压值的电压源以及在D+上使能第二电流值的电流源;在检测到上述D+上的电压为第二电压值时,确定上述供电方式为DCP。
图5是根据本发明实施例的供电装置中关闭模块24的结构框图,如 图5所示,该关闭模块24包括去使能单元52,下面对该去使能单元52进行说明:
去使能单元52,设置为去使能上述第一供电设备的低压差线性稳压器LDO,其中,该LDO用于连接第一供电设备的充电输入端口与电池。
图6是根据本发明实施例的供电装置的优选结构框图,如图6所示,该装置除包括图2所示的所有模块外,还包括确定模块62和开启模块64,下面对该装置进行说明。
确定模块62,连接至上述关闭模块24,设置为在控制上述第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭之后,确定断开第一供电设备与对该第一供电设备进行供电的设备的连接;开启模块64,连接至上述确定模块62,设置为开启上述第一供电设备的充电输入功能和/或供电输出功能。
上述的图2-图6所示的装置均可以应用于第一供电设备中,该第一供电设备可以是充电宝。
下面以充电宝为例对本发明进行详细说明:
图7是根据本发明实施例的充电宝的结构框图,如图7所示,该充电宝包括微处理模块72(对应于上述的关闭模块24和开启模块64)、升压输出模块74、USB检测模块76(对应于上述的判断模块22和确定模块62)、充电控制模块78、电压检测模块710以及一个输出可控的LDO 712。下面对各模块进行说明:
微处理模块72可以由一个单片机或者微处理器构成(例如,中央处理器(Central Processing Unit,简称为CPU)芯片),主要进行软件指令的执行以及整个系统的控制。
升压输出模块74以一个boost升压芯片实现,其内部可以由一个直流-直流(Direct Current-Direct Current,简称为DC-DC)升压电路实现,主要是对内部输出电压进行升压,使升压后的电压输出为标准值(例如,5V)。
USB检测模块76、充电控制模块78、电压检测模块710以及LDO 712, 这四个模块既可以以一个功能强大的充电芯片实现,也可以各自用单独芯片实现。
其中,上述的微处理模块72可以通过I2C总线(也可以使用其他的外设控制总线,如串行外设接口(Serial Peripheral Interface,简称为SPI),通用异步接受器/发送器(Universal Asynchronous Receiver/Transmitter,简称为UART)等)控制升压输出模块74和充电控制模块78,并通过通用目的输入输出(General Purpose Input Output,简称为GPIO)接收来自于充电控制模块78的中断信息。升压输出模块74通过对内部电压的升压处理,使USB输出管脚Vbus可以输出5V电压,其D+及D-(图7中的DP、DM分别指USB的D+、D-)管脚进行短接,使USB输出符合BC1.2中的DCP充电协议,模拟标准适配器。USB检测模块76通过检测输入端D+及D-电压变化,对插入的USB充电类型进行区分。输出可控的LDO 712,由充电控制芯片进行控制,进行使能和禁止操作。电压检测模块710设置为检测外电是否正常,通过高低电平上报给充电控制模块78。充电控制模块78通过采集电压检测模块710及USB检测模块76,通过中断反映给微处理模块72,微处理模块72进行逻辑处理后通过I2C控制充电控制模块78对LDO 712进行使能控制。
其中,USB检测模块76的实现电路需要按照BC1.2协议实现,其检测流程包括:
1.Vbus检测。为确保针对连接至USB端口的任何设备进行正确排序,可以使连接器的Vbus和GND引脚比D+和D-引脚长。这样可确保长的引脚首先与插入设备保持接触。所以,发生任何检测之前,必须首先检测到Vbus,在本系统中,是由电压检测模块710进行Vbus检测的,电压检测模块710可以由一个电压比较器实现。
2.首次检测。该检测中,终端设备(例如,上述的充电宝)区分具有充电标签的500mA以上端口(CDP和DCP)与500mA以下端口(SDP)。终端设备需要在D+上使能0.5v至0.7v电压源,在D-上使能25μa至175μa 流入电流源。如果连接的是DCP或CDP,在D-上将出现0.5v至0.7v电平;如果连接的是SDP,D-电压将下降至零。终端设备切入一个比较器,将D-电压与0.25v至0.4v进行比较。如果D-电压高于0.4v但低于逻辑低电平门限0.8v,终端设备则认为有充电端口出现。
3.二次充电器检测。在该检测中,在关闭上述2中的电压源和电流源后,终端设备需要辨别CDP和DCP。按照反序执行上述测试,在D-作用0.5v至0.7v电压源,在D+作用50μa电流源。如果连接的是DCP,D+将出现0.5v至0.7v电平;如果连接的是CDP,D+电压为零。
以上检测逻辑都在USB检测模块76中以硬件电路实现,在检测时,可以由微处理模块73控制检测的开始,在D+、D-移除后,USB检测模块76以逻辑电平的变化的形式反映给充电控制模块78,最终充电控制模块78通过系统中断的方式上报给微处理模块72。
上述的USB输出端口是符合BC1.2标准的DCP端口。
上述的LDO 712可以是一个可以输出高阻态,并进行控制的LDO模块。
图8是根据本发明实施例的充电宝设备检测到有充电设备插入时进行的检测流程图,如图8所示,该流程包括如下步骤:
步骤S802,默认状态下,升压输出模块74及可控的LDO 712都是打开的,所以在有外电(即,外部的充电设备)插入的时候,微处理模块72首先会读取电压检测模块710的状态,电压检测模块710检测Vbus;
步骤S804,通过检测Vbus判断外电是否存在,若存在转至步骤S806,否则,转至步骤S818;
步骤S806,电压检测模块710通过电压比较,确认外部供电是否正常,如果正常则控制USB检测模块76对D+、D-进行检测;
步骤S808,判断外部的充电设备的充电方式是否是DCP,若是,转至步骤S810,否则,转至步骤S818;
步骤S810,当确定充电方式是DCP时,将升压输出模块74关闭50ms,其中,该50ms为可控LDO 712以及电压检测模块710两个芯片的反应时间之和(当LDO 712和电压检测模块710的反应时间之和为其他值时,需要对上述关闭时间进行相应的调整),具体可以从芯片手册中查询芯片的开关时间,上述关闭时间一般需要取开关时间最大值之和;
步骤S812,读取电压检测模块710的状态,判断外电此时是否存在,若不存在,转至步骤S814,否则,转至步骤S816;
步骤S814,关闭LDO 712,使其输出高阻;
步骤S816,将升压输出模块74打开;
步骤S818,结束。
正常状态下,系统没有检测到此时的状态时自充电状态,升压输出模块及可控LDO都是打开的,所以拔出时无论充电端或者被充电端都不进行任何处理,如果检测到上次的状态是自充电状态,此时用户将充电线拔出后,充电宝需要退出自充电状态,图9是根据本发明实施例的充电宝设备检测到有充电设备拔出时进行的检测流程图。如图9所示,该流程包括如下步骤:
步骤S902,充电宝退出自充电状态;
步骤S904,USB检测模块76检测到USB拔出事件后,会通过中断的方式通知微处理模块72此时有USB拔出事件;
步骤S906,微处理模块72将LDO使能,使其输出正常;
步骤S908,结束。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上 述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,判断对第一供电设备进行供电的设备是否是该第一供电设备;
S2,在判断结果为是的情况下,控制第一供电设备的充电输入功能关闭和/或控制第一供电设备的供电输出功能关闭。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述各方法实施例中的步骤。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
通过上述实施例,当用户误将充电设备的供电输出端口接入充电输入端口后,系统会进行自检测,并通过微处理器关闭可控LDO,使系统在此场景下不存在漏电的情况,从而避免不必要的电量消耗以及系统功耗,提高供电设备的安全性。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明 的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种供电方法及装置具有以下有益效果:解决了相关技术中存在的消耗电池电量,增大系统功耗,存在安全隐患的问题,达到了避免不必要的电量消耗以及系统功耗,提高供电设备的安全性的效果。

Claims (10)

  1. 一种供电方法,包括:
    判断对第一供电设备进行供电的设备是否是所述第一供电设备;
    在判断结果为是的情况下,控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭。
  2. 根据权利要求1所述的方法,其中,判断对所述第一供电设备进行供电的设备是否是所述第一供电设备包括:
    在确定对所述第一供电设备进行供电的供电方式是专用充电端口DCP时,关闭所述第一供电设备的供电输出功能;
    在预定时间之后,检测所述第一供电设备是否仍能接收到电能;
    在检测结果为不能接收到电能的情况下,确定在关闭所述第一供电设备的供电输出功能之前为所述第一供电设备进行供电的设备是所述第一供电设备;和/或,在检测结果为仍能接收到电能的情况下,确定为所述第一供电设备进行供电的设备不是所述第一供电设备。
  3. 根据权利要求2所述的方法,其中,所述方法还包括:通过如下方式确定对所述第一供电设备进行供电的供电方式是所述DCP:
    在确定成功连接了对所述第一供电设备进行供电的设备之后,在所述第一供电设备的充电输入端口的数据引脚D+上使能第一电压值的电压源,并在D-上使能第一电流值的电流源;
    在检测到所述D-上的电压为所述第一电压值时,关闭所述电压源和所述电流源,并在所述D-上使能第二电压值的电压源以及在所述D+上使能第二电流值的电流源;
    在检测到所述D+上的电压为所述第二电压值时,确定所述供电方式为所述DCP。
  4. 根据权利要求1所述的方法,其中,控制所述第一供电设备的充电输入功能关闭包括:
    去使能所述第一供电设备的低压差线性稳压器LDO,其中,所述LDO用于连接所述第一供电设备的充电输入端口与电池。
  5. 根据权利要求1至4中任一项所述的方法,其中,在控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭之后,所述方法还包括:
    确定断开所述第一供电设备与对所述第一供电设备进行供电的设备的连接;
    开启所述第一供电设备的充电输入功能和/或供电输出功能。
  6. 一种供电装置,包括:
    判断模块,设置为判断对第一供电设备进行供电的设备是否是所述第一供电设备;
    关闭模块,设置为在所述判断模块的判断结果为是的情况下,控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭。
  7. 根据权利要求6所述的装置,其中,所述判断模块包括:
    关闭单元,设置为在确定对所述第一供电设备进行供电的供电方式是专用充电端口DCP时,关闭所述第一供电设备的供电输出功能;
    检测单元,设置为在预定时间之后,检测所述第一供电设备是否仍能接收到电能;
    第一确定单元,设置为在检测结果为不能接收到电能的情况下,确定在关闭所述第一供电设备的供电输出功能之前为所述第一供电设备进行供电的设备是所述第一供电设备;和/或,在检测结果为仍能接 收到电能的情况下,确定为所述第一供电设备进行供电的设备不是所述第一供电设备。
  8. 根据权利要求7所述的装置,其中,所述判断模块还包括第二确定单元,设置为通过如下方式确定对所述第一供电设备进行供电的供电方式是所述DCP:
    在确定成功连接了对所述第一供电设备进行供电的设备之后,在所述第一供电设备的充电输入端口的数据引脚D+上使能第一电压值的电压源,并在D-上使能第一电流值的电流源;
    在检测到所述D-上的电压为所述第一电压值时,关闭所述电压源和所述电流源,并在所述D-上使能第二电压值的电压源以及在所述D+上使能第二电流值的电流源;
    在检测到所述D+上的电压为所述第二电压值时,确定所述供电方式为所述DCP。
  9. 根据权利要求6所述的装置,其中,所述关闭模块包括:
    去使能单元,设置为去使能所述第一供电设备的低压差线性稳压器LDO,其中,所述LDO用于连接所述第一供电设备的充电输入端口与电池。
  10. 根据权利要求6至9中任一项所述的装置,其中,还包括:
    确定模块,设置为在控制所述第一供电设备的充电输入功能关闭和/或控制所述第一供电设备的供电输出功能关闭之后,确定断开所述第一供电设备与对所述第一供电设备进行供电的设备的连接;
    开启模块,设置为开启所述第一供电设备的充电输入功能和/或供电输出功能。
PCT/CN2016/102321 2016-05-06 2016-10-18 供电方法及装置 WO2017190474A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610296885.3 2016-05-06
CN201610296885.3A CN107346905B (zh) 2016-05-06 2016-05-06 供电方法及装置

Publications (1)

Publication Number Publication Date
WO2017190474A1 true WO2017190474A1 (zh) 2017-11-09

Family

ID=60202647

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102321 WO2017190474A1 (zh) 2016-05-06 2016-10-18 供电方法及装置

Country Status (2)

Country Link
CN (1) CN107346905B (zh)
WO (1) WO2017190474A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491342A (zh) * 2018-02-08 2018-09-04 青岛海信移动通信技术股份有限公司 一种进行通路切换的方法及终端
CN112702176B (zh) * 2020-12-22 2022-11-29 海光信息技术股份有限公司 一种i2c总线供电控制电路、控制方法及芯片

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126781A (zh) * 2006-08-18 2008-02-20 鸿富锦精密工业(深圳)有限公司 Usb设备功耗测试装置
JP2010079775A (ja) * 2008-09-29 2010-04-08 Nec Infrontia Corp Usb下位ユニットおよびusbシステム
CN203387203U (zh) * 2013-05-09 2014-01-08 上海斐讯数据通信技术有限公司 一种具有usb otg功能的充电切换系统
CN103631355A (zh) * 2012-08-27 2014-03-12 巴法络股份有限公司 信息处理系统以及外部设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4289784B2 (ja) * 2000-11-30 2009-07-01 株式会社リコー 定電圧電源回路および該定電圧電源回路を内蔵した電子機器
JP2005018416A (ja) * 2003-06-26 2005-01-20 Toshiba Corp 電子機器及び電源制御方法
JP3929449B2 (ja) * 2004-03-29 2007-06-13 日新電機株式会社 無停電電源装置、及び停電補償システム
JP4977797B1 (ja) * 2011-11-30 2012-07-18 和征 榊原 電池システム
JP5877480B2 (ja) * 2011-12-06 2016-03-08 清水建設株式会社 分散型電源の自立運転システム及びその方法
CN104953631A (zh) * 2014-03-26 2015-09-30 中兴通讯股份有限公司 一种电流控制方法及终端设备
CN105449731A (zh) * 2014-09-25 2016-03-30 中兴通讯股份有限公司 移动电源装置及充放电处理方法
CN204578123U (zh) * 2015-02-15 2015-08-19 庄景阳 人体感应断电的充电保护装置及手机、移动电源、手机外套、充电器、数据线
CN105140985B (zh) * 2015-08-05 2017-08-25 青岛海信移动通信技术股份有限公司 移动终端、可直充电源适配器及充电方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126781A (zh) * 2006-08-18 2008-02-20 鸿富锦精密工业(深圳)有限公司 Usb设备功耗测试装置
JP2010079775A (ja) * 2008-09-29 2010-04-08 Nec Infrontia Corp Usb下位ユニットおよびusbシステム
CN103631355A (zh) * 2012-08-27 2014-03-12 巴法络股份有限公司 信息处理系统以及外部设备
CN203387203U (zh) * 2013-05-09 2014-01-08 上海斐讯数据通信技术有限公司 一种具有usb otg功能的充电切换系统

Also Published As

Publication number Publication date
CN107346905B (zh) 2023-01-31
CN107346905A (zh) 2017-11-14

Similar Documents

Publication Publication Date Title
EP2214077B1 (en) Method and device for charging of mobile devices
TWI559650B (zh) 執行系統電源管理的方法及裝置
TWI497272B (zh) Usb集線器和usb集線器的電力供應方法
US9197075B2 (en) Charging port based on power state signal
US10241935B2 (en) Portable device, cable assembly, and USB system
US8843770B2 (en) Device charging over USB using a plurality of handshakes
EP3183794B1 (en) Fast battery charging through digital feedback
WO2013168289A1 (ja) 電子機器およびその制御方法
US9104396B2 (en) Electronic apparatus, charging control device, and charging control method
CN106230070B (zh) 一种充电方法及装置
US20170005495A1 (en) Method and apparatus for charging electronic device with usb connection
CN109478176A (zh) 一种USB Type-C端口设备识别对端设备的方法、装置和系统
KR20160143077A (ko) 전자 장치 및 전자 장치의 전원 공급 제어 방법
WO2017190474A1 (zh) 供电方法及装置
TWI559125B (zh) 行動電源裝置及其電源控制方法
CN106329625B (zh) 一种充电方法及装置
CN106774769B (zh) 一种终端工作模式的切换方法及装置、手持终端
TW201814543A (zh) 一種usb充電與通訊的裝置與方法
US10742057B2 (en) Self-loop detection method and apparatus for charging device
CN111711235B (zh) 充电方法及装置、终端、存储介质
CN116315909A (zh) 一种含电池的电子设备的充电插排、方法、装置及介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16900996

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900996

Country of ref document: EP

Kind code of ref document: A1