WO2016192335A1 - Charger, charger control method and storage medium - Google Patents

Charger, charger control method and storage medium Download PDF

Info

Publication number
WO2016192335A1
WO2016192335A1 PCT/CN2015/095396 CN2015095396W WO2016192335A1 WO 2016192335 A1 WO2016192335 A1 WO 2016192335A1 CN 2015095396 W CN2015095396 W CN 2015095396W WO 2016192335 A1 WO2016192335 A1 WO 2016192335A1
Authority
WO
WIPO (PCT)
Prior art keywords
charger
charging port
parameter
control
terminal
Prior art date
Application number
PCT/CN2015/095396
Other languages
French (fr)
Chinese (zh)
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 WO2016192335A1 publication Critical patent/WO2016192335A1/en

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

Definitions

  • the present invention relates to the field of mobile communications technologies, and in particular, to a charger, a charger control method, and a storage medium.
  • the existing related technology for controlling the on and off of the charger cannot intelligently control the automatic power-off control according to whether the terminal is connected to the charger, and the power utilization rate is low; therefore, providing a charger and its control
  • the solution can automatically power off when the terminal is not connected, eliminate security risks and improve power utilization, which has become an urgent problem to be solved.
  • the embodiment of the present invention is to provide a charger, a charger control method, and a storage medium, which can automatically power off when the terminal is not connected, eliminate security risks, improve power utilization, and enhance user experience.
  • An embodiment of the present invention provides a charger control method, where the method includes:
  • the method further includes:
  • the charger When it is determined that there is terminal access according to the first parameter of the charging port, the charger is controlled to be in an external power connection state.
  • the first parameter is a capacitor
  • determining, according to the first parameter of the charging port, that no terminal access currently includes:
  • the internal power supply of the charger is controlled, and the capacitance of the charging port is detected. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
  • the method further includes:
  • the charger is controlled to be in an external power disconnection state.
  • the second parameter is a current
  • determining that the terminal is removed according to the second parameter of the charging port comprises:
  • the method further comprises: charging an internal power source of the charger.
  • the embodiment of the invention further provides a charger, the charger comprising: a first determining module and a control module; wherein
  • the first determining module is configured to: when the terminal is not currently connected according to the first parameter of the charging port, triggering the control module;
  • the control module is configured to control the charger to be in an external power disconnection state.
  • the first determining module is further configured to be based on the first parameter of the charging port.
  • the trigger control module is triggered;
  • control module is further configured to control the charger to be in an external power connection state.
  • the first parameter is a capacitor
  • the control module is further configured to control an internal power supply of the charger
  • the first determining module is configured to detect the charging port capacitance. When it is detected that the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
  • the charger further includes a second determining module configured to trigger the control module to control the charger to be in a power-off state when the terminal is removed according to the second parameter of the charging port.
  • the second parameter is a current
  • the second determining module is configured to detect whether the current size of the charging port is less than a second threshold, and if it is less than the second threshold, determine that the terminal has been removed.
  • the charger further includes a power management module configured to charge an internal power source of the charger.
  • the embodiment of the invention further provides a charger, the charger comprising: a RC bridge circuit and a control circuit; wherein
  • the RC bridge circuit is configured to trigger a control circuit when no terminal is currently connected according to the first parameter of the charging port;
  • the control circuit is configured to control the charger to be in an external power off state.
  • the RC bridge circuit is further configured to trigger a control circuit when the terminal is accessed according to the first parameter of the charging port;
  • control circuit is further configured to control the charger to be in an external power connection state.
  • the first parameter is a capacitor
  • the control circuit is further configured to control an internal power supply of the charger
  • the RC bridge circuit is configured to detect the charging port capacitance. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
  • the charger further includes a current detecting circuit configured to trigger the control circuit to control the charger to be in a power-off state when the terminal is removed according to the second parameter of the charging port.
  • the second parameter is a current
  • the current detecting circuit is configured to detect whether the current magnitude of the charging port is less than a second threshold, and if it is less than the second threshold, determine that the terminal has been removed.
  • the charger further includes a power management unit configured to charge an internal power source of the charger.
  • the embodiment of the present invention further provides a computer storage medium storing a computer program configured to execute the above charger control method of the embodiment of the present invention.
  • the charger, the charger control method, and the storage medium provided by the embodiments of the present invention determine that the charger is in an external power-off state when it is determined that there is no terminal access according to the first parameter of the charging port. In this way, the terminal can automatically power off when the terminal is not connected, eliminate security risks, improve power utilization, enhance user experience, effectively avoid self-ignition caused by long-term operation of the charger, or accidentally charge the child when the terminal is not connected.
  • the port is contained in the mouth and there is an electric shock.
  • FIG. 1 is a schematic flow chart of a charger control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a charger control method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of a charger according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a charger according to Embodiment 2 of the present invention.
  • the charger when it is determined that the charger has no terminal access according to the first parameter of the charging port, the charger is controlled to be in an external power disconnection state.
  • FIG. 1 is a schematic flowchart of a charger control method according to an embodiment of the present invention. As shown in FIG. 1 , a charger control method according to an embodiment of the present invention includes:
  • Step 101 Determine, according to the first parameter of the charging port, that when the terminal is not currently connected, the charger is controlled to be in an external power disconnection state;
  • the charging port may be a USB port;
  • the external power source may be a 220V external power source.
  • the method further includes: the charger is connected to the external power source, and the charger is initialized.
  • the method further includes: determining, when the terminal is accessed according to the first parameter of the charging port, controlling the charger to be in an external power connection state;
  • the first parameter may be a capacitor
  • determining whether there is currently a terminal access according to the first parameter of the charging port includes:
  • the first threshold may be set according to actual needs.
  • the first threshold may be 9 microfarads (uF);
  • the detecting whether the capacitance of the charging port exceeds a first threshold includes:
  • RC Resistance Capacitance
  • the period may be set as needed.
  • the period may be 1 minute, and detecting according to the RC bridge circuit only needs to control the internal power of the charger to the RC every minute.
  • the bridge circuit sends a high level of n seconds.
  • the n can be 10.
  • the controlling the charger to be in an external power disconnection state includes:
  • the external power switch may be a relay switch, and in one embodiment, may be a 220V relay switch.
  • the controlling the charger to be in an external power connection state includes:
  • the /DC module is configured to convert the AC external power source into DC power suitable for the terminal requirement.
  • the 220V AC power can be converted to 5V DC power.
  • the method further includes:
  • the second parameter may be a current
  • determining whether the terminal is removed according to the second parameter of the charging port comprises:
  • the second threshold may be set according to actual needs.
  • the second threshold may be 50 milliamps (mA).
  • the method further includes: charging an internal power source of the charger;
  • the internal power source can be a button battery or the like
  • Charging the internal power source of the charger includes: detecting a current state of the internal power source, permitting/disabling charging of the internal power source according to status information of the internal power source; and the status information includes: the internal power source Charging voltage, etc.
  • FIG. 2 is a schematic flowchart of a method for controlling a charger according to Embodiment 2 of the present invention. As shown in FIG. 2, a charger control method according to an embodiment of the present invention includes:
  • Step 201 The charger is connected to an external power source, and the charger is initialized;
  • the external power source may be a 220V external power source.
  • Step 202 Determine whether the charger has a terminal access according to the first parameter of the charging port, if yes, go to step 203; otherwise, go to step 206;
  • the charging port is a USB port;
  • the first parameter is a capacitor;
  • the step includes: controlling the internal power supply of the charger, detecting whether the capacitance of the charging port exceeds a first threshold, and if not, determining that the charger has no terminal access; if the capacitance of the charging port exceeds a first threshold, determining The charger currently has a terminal access;
  • the first threshold may be set according to actual needs, in this embodiment, the first threshold is 9uF;
  • the detecting whether the capacitance of the charging port exceeds a first threshold includes:
  • the RC bridge circuit it is periodically detected whether the capacitance of the charging port exceeds a first threshold; here, the period may be set according to requirements, and in this embodiment, the period is 1 minute.
  • Step 203 Control the charger to be in an external power connection state, and be the internal of the charger. Power charging
  • the controlling the charger to be in an external power connection state includes:
  • the external power switch may be a relay switch. In this embodiment, it may be a 220V relay switch;
  • the internal power source of the charger may be a button battery or the like.
  • Step 204 Determine whether the terminal is removed according to the second parameter of the charging port, if it is removed, perform step 205; if not, perform step 204;
  • the second parameter is a current
  • the second threshold may be set according to actual needs. In this embodiment, the second threshold is 50 mA.
  • Step 205 The charger is controlled to be in an external power-off state, and step 202 is performed;
  • the step includes: controlling an external power switch in the charger to be in an off state, and controlling an internal power switch of the charger to be in a closed state.
  • Step 206 Control the charger to be in an external power-off state, and perform step 202.
  • FIG. 3 is a schematic structural diagram of a charger according to an embodiment of the present invention. As shown in FIG. 3, the charger component of the embodiment of the present invention includes: a first determining module 31 and a control module 32;
  • the first determining module 31 is configured to trigger a control module when no terminal is currently accessed according to the first parameter of the charging port;
  • the control module 32 is configured to control the charger to be in an external power disconnection state
  • the charging port may be a USB port
  • the external power source may be 220V Connected to the power supply
  • the control module 32 is configured to control an external power switch in the charger to be in an off state
  • the external power switch may be a relay switch, and in one embodiment, may be a 220V relay switch.
  • control module 32 is further configured to initialize the charger when the charger is connected to an external power source.
  • the first determining module 31 is further configured to determine, when the terminal is accessed according to the first parameter of the charging port, the triggering control module 32;
  • control module 32 is further configured to control the charger to be in an external power connection state.
  • the first parameter is a capacitor
  • the control module 32 is further configured to control an internal power supply of the charger
  • the first determining module 31 is configured to detect whether the size of the charging port exceeds a first threshold, and if not, determine that the charger has no terminal access; if the charging port has a capacitance exceeding a first threshold Determining that the charger currently has a terminal access;
  • the first threshold may be set according to actual needs.
  • the first threshold may be 9 microfarads (uF);
  • the detecting, by the first determining module 31, whether the size of the capacitor of the charging port exceeds a first threshold includes:
  • the first determining module 31 periodically detects whether the size of the charging port exceeds a first threshold.
  • the period may be set according to requirements. In an embodiment, the period may be 1 minute or 30 seconds.
  • the control module 32 is further configured to control the internal power supply of the charger to send a high level of n seconds to the RC bridge circuit every cycle. In an embodiment, the n may be 10.
  • control module 32 is further configured to control an internal power switch of the charger to be in an off state, and control an external power switch in the charger to be in a closed state.
  • the AC/DC module 34 in the charger is configured to operate; the AC/DC module is configured to convert the AC external power source into DC power suitable for the terminal requirement.
  • the 220V AC power can be converted to 5V DC.
  • the charger further includes a second determining module 33 configured to trigger the control module 31 to control the charger to be powered off when the terminal is removed according to the second parameter of the charging port. Open state.
  • the second parameter is a current
  • the second determining module 33 is configured to detect whether the current size of the charging port is less than a second threshold, if it is less than the second threshold, determine that the terminal has been removed; if not less than the second threshold, determine the The terminal has not been removed; wherein the second threshold may be set according to actual needs.
  • the second threshold may be 50 mA.
  • the charger further includes a power management module 35 configured to charge an internal power source of the charger; wherein the internal power source may be a button battery or the like.
  • FIG. 4 is a schematic structural diagram of a charger according to a second embodiment of the present invention. As shown in FIG. 4, the charger component of the embodiment of the present invention includes: an RC bridge circuit 41 and a control circuit 42;
  • the RC bridge circuit 41 is configured to trigger the control circuit 42 when there is no terminal access according to the first parameter of the charging port;
  • the control circuit 42 is configured to control the charger to be in an external power off state
  • the charging port may be a USB port;
  • the external power source may be a 220V external power source;
  • the control circuit 42 is configured to control an external power switch in the charger to be in an off state
  • the external power switch may be a relay switch. In an embodiment, it may be a 220V relay switch.
  • control circuit 42 is further configured to initialize the charger when the charger is connected to an external power source.
  • the RC bridge circuit 41 is further configured to determine, when the terminal is accessed according to the first parameter of the charging port, the trigger control circuit 42;
  • control circuit 42 is further configured to control the charger to be in an external power connection state.
  • the first parameter is a capacitor
  • the control circuit 42 is further configured to control the internal power supply of the charger
  • the RC bridge circuit 41 is configured to detect the charging port capacitance. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access; when detecting When the capacitance of the charging port exceeds a first threshold, it is determined that the charger currently has a terminal access;
  • the first threshold may be set according to actual needs.
  • the first threshold may be 9 uF.
  • the RC bridge circuit 41 is configured to periodically detect whether the capacitance of the charging port exceeds a first threshold; wherein the period may be set according to requirements, in an embodiment, The period may be 1 minute or 30 seconds, etc., correspondingly, the control circuit is further configured to control the internal power supply of the charger to send a high level of n seconds to the RC bridge circuit every cycle, in an implementation In the example, the n may be 10.
  • control circuit 42 is further configured to control the internal power switch of the charger to be in an off state, and control an external power switch in the charger to be in a closed state, so as to be in the charger.
  • the AC/DC circuit 43 is configured to convert the AC external power source into a DC power suitable for the terminal requirement. In an embodiment, the AC/DC circuit 43 may be configured to 220V AC is converted to 5V DC.
  • the charger further includes a current detecting circuit 44 configured to trigger the control circuit 42 to control the terminal when the terminal is removed according to the second parameter of the charging port.
  • the charger is in a power off state.
  • the second parameter is a current
  • the current detecting circuit 44 is configured to detect whether the current magnitude of the charging port is less than a second threshold, if it is less than the second threshold, determine that the terminal has been removed; if not less than the second threshold, determine the terminal
  • the second threshold may not be removed; wherein the second threshold may be set according to actual needs.
  • the second threshold may be 50 mA.
  • the charger further includes a power management unit 45 configured to charge an internal power source of the charger; wherein the internal power source may be a button battery or the like.
  • the first determining module 31, the control module 32, the second determining module 33, the AC/DC module 34, and the power management module 35 proposed in the embodiments of the present invention may all be implemented by a processor, and may also be implemented by a specific logic circuit.
  • the processor may be a mobile terminal or a processor on a server. In practical applications, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field. Programming gate arrays (FPGAs), etc.
  • the above charger control method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes. quality.
  • ROM read only memory
  • magnetic disk magnetic disk
  • optical disk optical disk
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing the above charger control method according to an embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

A charger control method comprises: controlling a charger to be in an external power source disconnection state when determining, according to a first parameter of a charging port (101), that no terminal is currently accessing the charger. Also disclosed are a charger and storage medium using the method.

Description

一种充电器、充电器控制方法及存储介质Charger, charger control method and storage medium 技术领域Technical field
本发明涉及移动通信技术领域,尤其涉及一种充电器、充电器控制方法及存储介质。The present invention relates to the field of mobile communications technologies, and in particular, to a charger, a charger control method, and a storage medium.
背景技术Background technique
随着终端设备的发展,终端设备所集成的功能也越来越多,越来越新颖,但随之而来的整机功耗也越来越突出。当终端设备的电池电量不足时,就要及时用充电器补充电量,而大多用户为了方便,将充电器一直插在电源插座上,充电器始终保持带电状态,如此,充电器长期工作导致的自燃,或者终端设备未接入充电器时小孩将带电充电端口含在口里导致的触电等事故时有发生。With the development of terminal devices, the functions of terminal devices are becoming more and more integrated, and more and more novel, but the power consumption of the whole machine is becoming more and more prominent. When the battery capacity of the terminal device is insufficient, it is necessary to replenish the battery with the charger in time, and most users plug the charger into the power socket for convenience, and the charger is always in a charged state. Thus, the self-ignition caused by the long-term operation of the charger Or when the terminal device is not connected to the charger, the child will accidentally cause an electric shock such as an electric shock caused by an electric charging port.
而现有的可控制充电器通断的相关技术,并不能智能的依据对终端是否接入充电器的状态实现自动断电控制,且电能利用率低;因此,提供一种充电器及其控制方案,能够在终端未接入时自动断电,消除安全隐患、提高电能利用率,已成为亟待解决的问题。The existing related technology for controlling the on and off of the charger cannot intelligently control the automatic power-off control according to whether the terminal is connected to the charger, and the power utilization rate is low; therefore, providing a charger and its control The solution can automatically power off when the terminal is not connected, eliminate security risks and improve power utilization, which has become an urgent problem to be solved.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种充电器、充电器控制方法及存储介质,能够在终端未接入时自动断电,消除安全隐患、提高电能利用率,增强用户体验感。In view of this, the embodiment of the present invention is to provide a charger, a charger control method, and a storage medium, which can automatically power off when the terminal is not connected, eliminate security risks, improve power utilization, and enhance user experience.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种充电器控制方法,所述方法包括:An embodiment of the present invention provides a charger control method, where the method includes:
依据充电端口的第一参数确定当前没有终端接入时,控制所述充电器 处于外接电源断开状态。Controlling the charger when there is no terminal access currently according to the first parameter of the charging port The external power supply is disconnected.
上述方案中,所述方法还包括:In the above solution, the method further includes:
依据充电端口的第一参数确定有终端接入时,控制所述充电器处于外接电源连通状态。When it is determined that there is terminal access according to the first parameter of the charging port, the charger is controlled to be in an external power connection state.
上述方案中,所述第一参数为电容;In the above solution, the first parameter is a capacitor;
相应的,所述依据充电端口的第一参数确定当前没有终端接入包括:Correspondingly, determining, according to the first parameter of the charging port, that no terminal access currently includes:
控制充电器内部电源工作,并对充电端口电容大小进行检测,当检测到充电端口的电容大小没有超过第一阈值时,确定所述充电器当前没有终端接入。The internal power supply of the charger is controlled, and the capacitance of the charging port is detected. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
上述方案中,所述控制所述充电器处于外接电源连通状态之后,所述方法还包括:In the above solution, after the controlling the charger is in an external power connection state, the method further includes:
依据充电端口的第二参数确定所述终端被移除时,控制所述充电器处于外接电源断开状态。When the terminal is removed according to the second parameter of the charging port, the charger is controlled to be in an external power disconnection state.
上述方案中,所述第二参数为电流;In the above solution, the second parameter is a current;
相应的,所述依据充电端口的第二参数确定所述终端被移除包括:Correspondingly, determining that the terminal is removed according to the second parameter of the charging port comprises:
检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除。Detecting whether the current magnitude of the charging port is less than a second threshold, and if less than the second threshold, determining that the terminal has been removed.
上述方案中,所述控制所述充电器处于外接电源连通状态之后,所述方法还包括:为所述充电器的内部电源进行充电。In the above solution, after the controlling the charger is in an external power connection state, the method further comprises: charging an internal power source of the charger.
本发明实施例还提供了一种充电器,所述充电器包括:第一确定模块及控制模块;其中,The embodiment of the invention further provides a charger, the charger comprising: a first determining module and a control module; wherein
所述第一确定模块,配置为依据充电端口的第一参数确定当前没有终端接入时,触发控制模块;The first determining module is configured to: when the terminal is not currently connected according to the first parameter of the charging port, triggering the control module;
所述控制模块,配置为控制所述充电器处于外接电源断开状态。The control module is configured to control the charger to be in an external power disconnection state.
上述方案中,所述第一确定模块,还配置为依据充电端口的第一参数 确定有终端接入时,触发控制模块;In the above solution, the first determining module is further configured to be based on the first parameter of the charging port. When it is determined that there is terminal access, the trigger control module is triggered;
相应的,所述控制模块,还配置为控制所述充电器处于外接电源连通状态。Correspondingly, the control module is further configured to control the charger to be in an external power connection state.
上述方案中,所述第一参数为电容;In the above solution, the first parameter is a capacitor;
所述控制模块,还配置为控制充电器内部电源工作;The control module is further configured to control an internal power supply of the charger;
相应的,所述第一确定模块,配置为对充电端口电容大小进行检测,当检测到充电端口的电容大小没有超过第一阈值时,确定所述充电器当前没有终端接入。Correspondingly, the first determining module is configured to detect the charging port capacitance. When it is detected that the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
上述方案中,所述充电器还包括第二确定模块,配置为依据充电端口的第二参数确定所述终端被移除时,触发所述控制模块控制所述充电器处于电源断开状态。In the above solution, the charger further includes a second determining module configured to trigger the control module to control the charger to be in a power-off state when the terminal is removed according to the second parameter of the charging port.
上述方案中,所述第二参数为电流;In the above solution, the second parameter is a current;
相应的,所述第二确定模块,配置为检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除。Correspondingly, the second determining module is configured to detect whether the current size of the charging port is less than a second threshold, and if it is less than the second threshold, determine that the terminal has been removed.
上述方案中,所述充电器还包括电源管理模块,配置为为所述充电器的内部电源进行充电。In the above solution, the charger further includes a power management module configured to charge an internal power source of the charger.
本发明实施例还提供了一种充电器,所述充电器包括:阻容RC电桥电路及控制电路;其中,The embodiment of the invention further provides a charger, the charger comprising: a RC bridge circuit and a control circuit; wherein
所述RC电桥电路,配置为依据充电端口的第一参数确定当前没有终端接入时,触发控制电路;The RC bridge circuit is configured to trigger a control circuit when no terminal is currently connected according to the first parameter of the charging port;
所述控制电路,配置为控制所述充电器处于外接电源断开状态。The control circuit is configured to control the charger to be in an external power off state.
上述方案中,所述RC电桥电路还配置为依据充电端口的第一参数确定有终端接入时,触发控制电路;In the above solution, the RC bridge circuit is further configured to trigger a control circuit when the terminal is accessed according to the first parameter of the charging port;
相应的,所述控制电路,还配置为控制所述充电器处于外接电源连通状态。 Correspondingly, the control circuit is further configured to control the charger to be in an external power connection state.
上述方案中,所述第一参数为电容;In the above solution, the first parameter is a capacitor;
所述控制电路,还配置为控制充电器内部电源工作;The control circuit is further configured to control an internal power supply of the charger;
相应的,所述RC电桥电路,配置为对充电端口电容大小进行检测,当检测到充电端口的电容大小没有超过第一阈值时,确定所述充电器当前没有终端接入。Correspondingly, the RC bridge circuit is configured to detect the charging port capacitance. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
上述方案中,所述充电器还包括电流检测电路,配置为依据充电端口的第二参数确定所述终端被移除时,触发所述控制电路控制所述充电器处于电源断开状态。In the above solution, the charger further includes a current detecting circuit configured to trigger the control circuit to control the charger to be in a power-off state when the terminal is removed according to the second parameter of the charging port.
上述方案中,所述第二参数为电流;In the above solution, the second parameter is a current;
相应的,所述电流检测电路,配置为检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除。Correspondingly, the current detecting circuit is configured to detect whether the current magnitude of the charging port is less than a second threshold, and if it is less than the second threshold, determine that the terminal has been removed.
上述方案中,所述充电器还包括电源管理单元,配置为为所述充电器的内部电源进行充电。In the above solution, the charger further includes a power management unit configured to charge an internal power source of the charger.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计算机程序配置为执行本发明实施例的上述充电器控制方法。The embodiment of the present invention further provides a computer storage medium storing a computer program configured to execute the above charger control method of the embodiment of the present invention.
本发明实施例所提供的充电器、充电器控制方法及存储介质,依据充电端口的第一参数确定当前没有终端接入时,控制所述充电器处于外接电源断开状态。如此,能够在终端未接入时自动断电,消除安全隐患、提高电能利用率,增强用户体验感;有效避免充电器长期工作导致的自燃,或者终端未接入时,小孩不慎将带电充电端口含在口里而触电等事故。The charger, the charger control method, and the storage medium provided by the embodiments of the present invention determine that the charger is in an external power-off state when it is determined that there is no terminal access according to the first parameter of the charging port. In this way, the terminal can automatically power off when the terminal is not connected, eliminate security risks, improve power utilization, enhance user experience, effectively avoid self-ignition caused by long-term operation of the charger, or accidentally charge the child when the terminal is not connected. The port is contained in the mouth and there is an electric shock.
附图说明DRAWINGS
图1为本发明实施例一充电器控制方法流程示意图;1 is a schematic flow chart of a charger control method according to an embodiment of the present invention;
图2为本发明实施例二充电器控制方法流程示意图;2 is a schematic flowchart of a charger control method according to Embodiment 2 of the present invention;
图3为本发明实施例一充电器组成结构示意图; 3 is a schematic structural diagram of a charger according to an embodiment of the present invention;
图4为本发明实施例二充电器组成结构示意图。FIG. 4 is a schematic structural diagram of a charger according to Embodiment 2 of the present invention.
具体实施方式detailed description
在本发明实施例中,依据充电端口的第一参数确定充电器当前没有终端接入时,控制所述充电器处于外接电源断开状态。In the embodiment of the present invention, when it is determined that the charger has no terminal access according to the first parameter of the charging port, the charger is controlled to be in an external power disconnection state.
实施例一Embodiment 1
图1所示为本发明实施例一充电器控制方法流程示意图,如图1所示,本发明实施例充电器控制方法包括:FIG. 1 is a schematic flowchart of a charger control method according to an embodiment of the present invention. As shown in FIG. 1 , a charger control method according to an embodiment of the present invention includes:
步骤101:依据充电端口的第一参数确定当前没有终端接入时,控制所述充电器处于外接电源断开状态;Step 101: Determine, according to the first parameter of the charging port, that when the terminal is not currently connected, the charger is controlled to be in an external power disconnection state;
这里,所述充电端口可以为USB端口;所述外接电源可以为220V外接电源。Here, the charging port may be a USB port; the external power source may be a 220V external power source.
基于本发明所述实施例,在实际应用中,本步骤之前,所述方法还包括:充电器连接外接电源,并初始化所述充电器。Based on the embodiment of the present invention, in an actual application, before the step, the method further includes: the charger is connected to the external power source, and the charger is initialized.
在一实施例中,所述方法还包括:依据充电端口的第一参数确定有终端接入时,控制所述充电器处于外接电源连通状态;In an embodiment, the method further includes: determining, when the terminal is accessed according to the first parameter of the charging port, controlling the charger to be in an external power connection state;
其中,所述第一参数可以为电容;The first parameter may be a capacitor;
相应的,依据充电端口的第一参数确定当前是否有终端接入包括:Correspondingly, determining whether there is currently a terminal access according to the first parameter of the charging port includes:
控制充电器内部电源工作,并检测充电端口的电容大小是否超过第一阈值,如果没有超过,确定所述充电器当前没有终端接入;如果充电端口的电容大小超过第一阈值,确定所述充电器当前有终端接入;Controlling the internal power supply operation of the charger, and detecting whether the capacitance of the charging port exceeds a first threshold. If not, determining that the charger has no terminal access; if the capacitance of the charging port exceeds a first threshold, determining the charging The device currently has terminal access;
这里,所述第一阈值可以依据实际需要进行设定,在一实施例中,所述第一阈值可以为9微法(uF);Here, the first threshold may be set according to actual needs. In an embodiment, the first threshold may be 9 microfarads (uF);
所述检测充电端口的电容大小是否超过第一阈值包括:The detecting whether the capacitance of the charging port exceeds a first threshold includes:
依据阻容(RC,Resistance Capacitance)电桥电路周期性的检测充电端口的电容大小是否超过第一阈值; According to the RC (Resistance Capacitance) bridge circuit, periodically detecting whether the capacitance of the charging port exceeds a first threshold;
这里,所述周期可以依据需要进行设定,在一实施例中,所述周期可以为1分钟,而依据所述RC电桥电路进行检测只需控制充电器的内部电源每分钟给所述RC电桥电路发一个n秒的高电平,在一实施例中,所述n可以为10。Here, the period may be set as needed. In an embodiment, the period may be 1 minute, and detecting according to the RC bridge circuit only needs to control the internal power of the charger to the RC every minute. The bridge circuit sends a high level of n seconds. In an embodiment, the n can be 10.
基于本发明所述实施例,在实际应用中,所述控制所述充电器处于外接电源断开状态包括:According to the embodiment of the present invention, in an actual application, the controlling the charger to be in an external power disconnection state includes:
控制所述充电器中的外接电源开关处于断开状态;Controlling an external power switch in the charger to be in an off state;
这里,所述外接电源开关可以为继电器开关,在一实施例中,可以为220V继电器开关。Here, the external power switch may be a relay switch, and in one embodiment, may be a 220V relay switch.
基于本发明所述实施例,在实际应用中,所述控制所述充电器处于外接电源连通状态包括:According to the embodiment of the present invention, in the actual application, the controlling the charger to be in an external power connection state includes:
控制所述充电器的内部电源开关处于断开状态,并控制所述充电器中的外接电源开关处于闭合状态,以使充电器中的交流(AC)/直流(DC)模块工作;所述AC/DC模块,配置为将所述交流外接电源转换为适合终端需求的直流电,在一实施例中,可以为将220V交流电转换为5V直流电。Controlling an internal power switch of the charger in an open state, and controlling an external power switch in the charger to be in a closed state to operate an alternating current (AC)/direct current (DC) module in the charger; The /DC module is configured to convert the AC external power source into DC power suitable for the terminal requirement. In an embodiment, the 220V AC power can be converted to 5V DC power.
基于本发明所述实施例,在实际应用中,所述控制所述充电器处于外接电源连通状态之后,所述方法还包括:According to the embodiment of the present invention, in the actual application, after the controlling the charger is in an external power connection state, the method further includes:
依据充电端口的第二参数确定所述终端被移除时,控制所述充电器处于外接电源断开状态;Determining, according to the second parameter of the charging port, that the terminal is removed, and controlling the charger to be in an external power disconnection state;
这里,所述第二参数可以为电流;Here, the second parameter may be a current;
相应的,依据充电端口的第二参数确定所述终端是否被移除包括:Correspondingly, determining whether the terminal is removed according to the second parameter of the charging port comprises:
实时检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除;如果不小于第二阈值,确定所述终端尚未被移除;其中,所述第二阈值可以依据实际需要进行设定,在一实施例中,所述第二阈值可以为50毫安(mA)。 Detecting, in real time, whether the current size of the charging port is less than a second threshold, if it is less than the second threshold, determining that the terminal has been removed; if not less than the second threshold, determining that the terminal has not been removed; wherein the second The threshold may be set according to actual needs. In an embodiment, the second threshold may be 50 milliamps (mA).
基于本发明所述实施例,在实际应用中,所述控制所述充电器处于外接电源连通状态之后,所述方法还包括:为所述充电器的内部电源进行充电;According to the embodiment of the present invention, in an actual application, after the controlling the charger is in an external power connection state, the method further includes: charging an internal power source of the charger;
其中,所述内部电源可以为纽扣电池等;Wherein, the internal power source can be a button battery or the like;
为所述充电器的内部电源进行充电包括:检测所述内部电源当前的状态,依据所述内部电源的状态信息允许/禁止为所述内部电源充电;所述状态信息包括:所述内部电源的充电电压等。Charging the internal power source of the charger includes: detecting a current state of the internal power source, permitting/disabling charging of the internal power source according to status information of the internal power source; and the status information includes: the internal power source Charging voltage, etc.
实施例二Embodiment 2
图2所示为本发明实施例二充电器控制方法流程示意图,如图2所示,本发明实施例充电器控制方法包括:FIG. 2 is a schematic flowchart of a method for controlling a charger according to Embodiment 2 of the present invention. As shown in FIG. 2, a charger control method according to an embodiment of the present invention includes:
步骤201:充电器连接外接电源,并初始化所述充电器;Step 201: The charger is connected to an external power source, and the charger is initialized;
在本实施例中,所述外接电源可以为220V外接电源。In this embodiment, the external power source may be a 220V external power source.
步骤202:依据充电端口的第一参数判断充电器是否有终端接入,如果有,执行步骤203;否则执行步骤206;Step 202: Determine whether the charger has a terminal access according to the first parameter of the charging port, if yes, go to step 203; otherwise, go to step 206;
在本实施例中,所述充电端口为USB端口;所述第一参数为电容;In this embodiment, the charging port is a USB port; the first parameter is a capacitor;
本步骤包括:控制充电器内部电源工作,检测充电端口的电容大小是否超过第一阈值,如果没有超过,确定所述充电器当前没有终端接入;如果充电端口的电容大小超过第一阈值,确定所述充电器当前有终端接入;The step includes: controlling the internal power supply of the charger, detecting whether the capacitance of the charging port exceeds a first threshold, and if not, determining that the charger has no terminal access; if the capacitance of the charging port exceeds a first threshold, determining The charger currently has a terminal access;
这里,所述第一阈值可以依据实际需要进行设定,在本实施例中,所述第一阈值为9uF;Here, the first threshold may be set according to actual needs, in this embodiment, the first threshold is 9uF;
所述检测充电端口的电容大小是否超过第一阈值包括:The detecting whether the capacitance of the charging port exceeds a first threshold includes:
依据RC电桥电路周期性的检测充电端口的电容大小是否超过第一阈值;这里,所述周期可以依据需要进行设定,在本实施例中,所述周期为1分钟。According to the RC bridge circuit, it is periodically detected whether the capacitance of the charging port exceeds a first threshold; here, the period may be set according to requirements, and in this embodiment, the period is 1 minute.
步骤203:控制所述充电器处于外接电源连通状态,并为充电器的内部 电源充电;Step 203: Control the charger to be in an external power connection state, and be the internal of the charger. Power charging
所述控制所述充电器处于外接电源连通状态包括:The controlling the charger to be in an external power connection state includes:
控制所述充电器的内部电源开关处于断开状态,并控制所述充电器中的外接电源开关处于闭合状态,以使充电器中的AC/DC模块工作;Controlling that the internal power switch of the charger is in an off state, and controlling an external power switch in the charger to be in a closed state to operate the AC/DC module in the charger;
所述外接电源开关可以为继电器开关,在本实施例中,可以为220V继电器开关;The external power switch may be a relay switch. In this embodiment, it may be a 220V relay switch;
所述充电器的内部电源可以为纽扣电池等。The internal power source of the charger may be a button battery or the like.
步骤204:依据充电端口的第二参数判断所述终端是否被移除,如果被移除,执行步骤205;如果未被移除,执行步骤204;Step 204: Determine whether the terminal is removed according to the second parameter of the charging port, if it is removed, perform step 205; if not, perform step 204;
在本实施例中,所述第二参数为电流;In this embodiment, the second parameter is a current;
本步骤包括:实时检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除;如果不小于第二阈值,确定所述终端尚未被移除;其中,所述第二阈值可以依据实际需要进行设定,在本实施例中,所述第二阈值为50mA。The step of: determining whether the current of the charging port is less than a second threshold in real time, if it is less than the second threshold, determining that the terminal has been removed; if not less than the second threshold, determining that the terminal has not been removed; The second threshold may be set according to actual needs. In this embodiment, the second threshold is 50 mA.
步骤205:控制所述充电器处于外接电源断开状态,并执行步骤202;Step 205: The charger is controlled to be in an external power-off state, and step 202 is performed;
本步骤包括:控制所述充电器中的外接电源开关处于断开状态,并控制所述充电器的内部电源开关处于闭合状态。The step includes: controlling an external power switch in the charger to be in an off state, and controlling an internal power switch of the charger to be in a closed state.
步骤206:控制所述充电器处于外接电源断开状态,并执行步骤202。Step 206: Control the charger to be in an external power-off state, and perform step 202.
实施例三Embodiment 3
图3为本发明实施例一充电器组成结构示意图;如图3所示,本发明实施例充电器组成包括:第一确定模块31及控制模块32;其中,3 is a schematic structural diagram of a charger according to an embodiment of the present invention; as shown in FIG. 3, the charger component of the embodiment of the present invention includes: a first determining module 31 and a control module 32;
所述第一确定模块31,配置为依据充电端口的第一参数确定当前没有终端接入时,触发控制模块;The first determining module 31 is configured to trigger a control module when no terminal is currently accessed according to the first parameter of the charging port;
所述控制模块32,配置为控制所述充电器处于外接电源断开状态;The control module 32 is configured to control the charger to be in an external power disconnection state;
这里,所述充电端口可以为USB端口;所述外接电源可以为220V外 接电源;Here, the charging port may be a USB port; the external power source may be 220V Connected to the power supply;
所述控制模块32,配置为控制所述充电器中的外接电源开关处于断开状态;The control module 32 is configured to control an external power switch in the charger to be in an off state;
这里,所述外接电源开关可以为继电器开关,在一实施例中,可以为220V继电器开关。Here, the external power switch may be a relay switch, and in one embodiment, may be a 220V relay switch.
在一实施例中,所述控制模块32,还配置为在充电器连接外接电源时,初始化所述充电器。In an embodiment, the control module 32 is further configured to initialize the charger when the charger is connected to an external power source.
在一实施例中,所述第一确定模块31,还配置为依据充电端口的第一参数确定有终端接入时,触发控制模块32;In an embodiment, the first determining module 31 is further configured to determine, when the terminal is accessed according to the first parameter of the charging port, the triggering control module 32;
相应的,所述控制模块32,还配置为控制所述充电器处于外接电源连通状态。Correspondingly, the control module 32 is further configured to control the charger to be in an external power connection state.
基于本发明所述实施例,在实际应用中,所述第一参数为电容;所述控制模块32,还配置为控制充电器内部电源工作;According to the embodiment of the present invention, in a practical application, the first parameter is a capacitor; the control module 32 is further configured to control an internal power supply of the charger;
相应的,所述第一确定模块31,配置为检测充电端口的电容大小是否超过第一阈值,如果没有超过,确定所述充电器当前没有终端接入;如果充电端口的电容大小超过第一阈值,确定所述充电器当前有终端接入;Correspondingly, the first determining module 31 is configured to detect whether the size of the charging port exceeds a first threshold, and if not, determine that the charger has no terminal access; if the charging port has a capacitance exceeding a first threshold Determining that the charger currently has a terminal access;
这里,所述第一阈值可以依据实际需要进行设定,在一实施例中,所述第一阈值可以为9微法(uF);Here, the first threshold may be set according to actual needs. In an embodiment, the first threshold may be 9 microfarads (uF);
所述第一确定模块31检测充电端口的电容大小是否超过第一阈值包括:The detecting, by the first determining module 31, whether the size of the capacitor of the charging port exceeds a first threshold includes:
第一确定模块31周期性的检测充电端口的电容大小是否超过第一阈值;这里,所述周期可以依据需要进行设定,在一实施例中,所述周期可以为1分钟或30秒等,相应的,所述控制模块32,还配置为控制充电器的内部电源每个周期给所述RC电桥电路发一个n秒的高电平,在一实施例中,所述n可以为10。 The first determining module 31 periodically detects whether the size of the charging port exceeds a first threshold. The period may be set according to requirements. In an embodiment, the period may be 1 minute or 30 seconds. Correspondingly, the control module 32 is further configured to control the internal power supply of the charger to send a high level of n seconds to the RC bridge circuit every cycle. In an embodiment, the n may be 10.
基于本发明所述实施例,在实际应用中,所述控制模块32,还配置为控制所述充电器的内部电源开关处于断开状态,并控制所述充电器中的外接电源开关处于闭合状态,以使充电器中的AC/DC模块34工作;所述AC/DC模块,配置为将所述交流外接电源转换为适合终端需求的直流电,在一实施例中,可以为将220V交流电转换为5V直流电。Based on the embodiment of the present invention, in an actual application, the control module 32 is further configured to control an internal power switch of the charger to be in an off state, and control an external power switch in the charger to be in a closed state. The AC/DC module 34 in the charger is configured to operate; the AC/DC module is configured to convert the AC external power source into DC power suitable for the terminal requirement. In an embodiment, the 220V AC power can be converted to 5V DC.
在一实施例中,所述充电器还包括第二确定模块33,配置为依据充电端口的第二参数确定所述终端被移除时,触发所述控制模块31控制所述充电器处于电源断开状态。In an embodiment, the charger further includes a second determining module 33 configured to trigger the control module 31 to control the charger to be powered off when the terminal is removed according to the second parameter of the charging port. Open state.
基于本发明所述实施例,在实际应用中,所述第二参数为电流;According to the embodiment of the present invention, in a practical application, the second parameter is a current;
相应的,所述第二确定模块33,配置为检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除;如果不小于第二阈值,确定所述终端尚未被移除;其中,所述第二阈值可以依据实际需要进行设定,在一实施例中,所述第二阈值可以为50mA。Correspondingly, the second determining module 33 is configured to detect whether the current size of the charging port is less than a second threshold, if it is less than the second threshold, determine that the terminal has been removed; if not less than the second threshold, determine the The terminal has not been removed; wherein the second threshold may be set according to actual needs. In an embodiment, the second threshold may be 50 mA.
在一实施例中,所述充电器还包括电源管理模块35,配置为为所述充电器的内部电源进行充电;其中,所述内部电源可以为纽扣电池等。In an embodiment, the charger further includes a power management module 35 configured to charge an internal power source of the charger; wherein the internal power source may be a button battery or the like.
实施例四Embodiment 4
图4为本发明实施例二充电器组成结构示意图;如图4所示,本发明实施例充电器组成包括:RC电桥电路41及控制电路42;其中,4 is a schematic structural diagram of a charger according to a second embodiment of the present invention; as shown in FIG. 4, the charger component of the embodiment of the present invention includes: an RC bridge circuit 41 and a control circuit 42;
所述RC电桥电路41,配置为依据充电端口的第一参数确定当前没有终端接入时,触发控制电路42;The RC bridge circuit 41 is configured to trigger the control circuit 42 when there is no terminal access according to the first parameter of the charging port;
所述控制电路42,配置为控制所述充电器处于外接电源断开状态;The control circuit 42 is configured to control the charger to be in an external power off state;
这里,所述充电端口可以为USB端口;所述外接电源可以为220V外接电源;Here, the charging port may be a USB port; the external power source may be a 220V external power source;
所述控制电路42,配置为控制所述充电器中的外接电源开关处于断开状态; The control circuit 42 is configured to control an external power switch in the charger to be in an off state;
其中,所述外接电源开关可以为继电器开关,在一实施例中,可以为220V继电器开关。The external power switch may be a relay switch. In an embodiment, it may be a 220V relay switch.
在一实施例中,所述控制电路42,还配置为在充电器连接外接电源时,初始化所述充电器。In an embodiment, the control circuit 42 is further configured to initialize the charger when the charger is connected to an external power source.
在一实施例中,所述RC电桥电路41还配置为依据充电端口的第一参数确定有终端接入时,触发控制电路42;In an embodiment, the RC bridge circuit 41 is further configured to determine, when the terminal is accessed according to the first parameter of the charging port, the trigger control circuit 42;
相应的,所述控制电路42,还配置为控制所述充电器处于外接电源连通状态。Correspondingly, the control circuit 42 is further configured to control the charger to be in an external power connection state.
基于本发明所述实施例,在实际应用中,所述第一参数为电容;According to the embodiment of the present invention, in a practical application, the first parameter is a capacitor;
所述控制电路42,还配置为控制充电器内部电源工作;The control circuit 42 is further configured to control the internal power supply of the charger;
相应的,所述RC电桥电路41,配置为对充电端口电容大小进行检测,当检测到充电端口的电容大小没有超过第一阈值时,确定所述充电器当前没有终端接入;当检测到充电端口的电容大小超过第一阈值时,确定所述充电器当前有终端接入;Correspondingly, the RC bridge circuit 41 is configured to detect the charging port capacitance. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access; when detecting When the capacitance of the charging port exceeds a first threshold, it is determined that the charger currently has a terminal access;
这里,所述第一阈值可以依据实际需要进行设定,在一实施例中,所述第一阈值可以为9uF。Here, the first threshold may be set according to actual needs. In an embodiment, the first threshold may be 9 uF.
在一实施例中,所述RC电桥电路41,配置为周期性的检测充电端口的电容大小是否超过第一阈值;这里,所述周期可以依据需要进行设定,在一实施例中,所述周期可以为1分钟或30秒等,相应的,所述控制电路,还配置为控制充电器的内部电源每个周期给所述RC电桥电路发一个n秒的高电平,在一实施例中,所述n可以为10。In an embodiment, the RC bridge circuit 41 is configured to periodically detect whether the capacitance of the charging port exceeds a first threshold; wherein the period may be set according to requirements, in an embodiment, The period may be 1 minute or 30 seconds, etc., correspondingly, the control circuit is further configured to control the internal power supply of the charger to send a high level of n seconds to the RC bridge circuit every cycle, in an implementation In the example, the n may be 10.
在一实施例中,所述控制电路42,还配置为控制所述充电器的内部电源开关处于断开状态,并控制所述充电器中的外接电源开关处于闭合状态,以使充电器中的AC/DC电路43工作;所述AC/DC电路43,配置为将所述交流外接电源转换为适合终端需求的直流电,在一实施例中,可以为将 220V交流电转换为5V直流电。In an embodiment, the control circuit 42 is further configured to control the internal power switch of the charger to be in an off state, and control an external power switch in the charger to be in a closed state, so as to be in the charger. The AC/DC circuit 43 is configured to convert the AC external power source into a DC power suitable for the terminal requirement. In an embodiment, the AC/DC circuit 43 may be configured to 220V AC is converted to 5V DC.
基于本发明所述实施例,在实际应用中,所述充电器还包括电流检测电路44,配置为依据充电端口的第二参数确定所述终端被移除时,触发所述控制电路42控制所述充电器处于电源断开状态。According to the embodiment of the present invention, in a practical application, the charger further includes a current detecting circuit 44 configured to trigger the control circuit 42 to control the terminal when the terminal is removed according to the second parameter of the charging port. The charger is in a power off state.
基于本发明所述实施例,在实际应用中,所述第二参数为电流;According to the embodiment of the present invention, in a practical application, the second parameter is a current;
相应的,所述电流检测电路44,配置为检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除;如果不小于第二阈值,确定所述终端尚未被移除;其中,所述第二阈值可以依据实际需要进行设定,在一实施例中,所述第二阈值可以为50mA。Correspondingly, the current detecting circuit 44 is configured to detect whether the current magnitude of the charging port is less than a second threshold, if it is less than the second threshold, determine that the terminal has been removed; if not less than the second threshold, determine the terminal The second threshold may not be removed; wherein the second threshold may be set according to actual needs. In an embodiment, the second threshold may be 50 mA.
基于本发明所述实施例,在实际应用中,所述充电器还包括电源管理单元45,配置为为所述充电器的内部电源进行充电;其中,所述内部电源可以为纽扣电池等。Based on the embodiment of the present invention, in a practical application, the charger further includes a power management unit 45 configured to charge an internal power source of the charger; wherein the internal power source may be a button battery or the like.
本发明实施例中提出的第一确定模块31、控制模块32、第二确定模块33、AC/DC模块34及电源管理模块35都可以通过处理器来实现,当然也可通过具体的逻辑电路实现;其中所述处理器可以是移动终端或服务器上的处理器,在实际应用中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The first determining module 31, the control module 32, the second determining module 33, the AC/DC module 34, and the power management module 35 proposed in the embodiments of the present invention may all be implemented by a processor, and may also be implemented by a specific logic circuit. The processor may be a mobile terminal or a processor on a server. In practical applications, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field. Programming gate arrays (FPGAs), etc.
本发明实施例中,如果以软件功能模块的形式实现上述充电器控制方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介 质。这样,本发明实施例不限制于任何特定的硬件和软件结合。In the embodiment of the present invention, if the above charger control method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes. quality. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行本发明实施例的上述充电器控制方法。Correspondingly, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for performing the above charger control method according to an embodiment of the present invention.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (19)

  1. 一种充电器控制方法,所述方法包括:A charger control method, the method comprising:
    依据充电端口的第一参数确定当前没有终端接入时,控制所述充电器处于外接电源断开状态。According to the first parameter of the charging port, when the terminal is not currently connected, the charger is controlled to be in an external power disconnection state.
  2. 根据权利要求1所述方法,其中,所述方法还包括:The method of claim 1 wherein said method further comprises:
    依据充电端口的第一参数确定有终端接入时,控制所述充电器处于外接电源连通状态。When it is determined that there is terminal access according to the first parameter of the charging port, the charger is controlled to be in an external power connection state.
  3. 根据权利要求1或2所述方法,其中,所述第一参数为电容;The method of claim 1 or 2, wherein the first parameter is a capacitor;
    相应的,所述依据充电端口的第一参数确定当前没有终端接入包括:Correspondingly, determining, according to the first parameter of the charging port, that no terminal access currently includes:
    控制充电器内部电源工作,并对充电端口电容大小进行检测,当检测到充电端口的电容大小没有超过第一阈值时,确定所述充电器当前没有终端接入。The internal power supply of the charger is controlled, and the capacitance of the charging port is detected. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
  4. 根据权利要求2所述方法,其中,所述控制所述充电器处于外接电源连通状态之后,所述方法还包括:The method of claim 2, wherein the method further comprises: after the controlling the charger is in an external power connection state, the method further comprising:
    依据充电端口的第二参数确定所述终端被移除时,控制所述充电器处于外接电源断开状态。When the terminal is removed according to the second parameter of the charging port, the charger is controlled to be in an external power disconnection state.
  5. 根据权利要求4所述方法,其中,所述第二参数为电流;The method of claim 4 wherein said second parameter is a current;
    相应的,所述依据充电端口的第二参数确定所述终端被移除包括:Correspondingly, determining that the terminal is removed according to the second parameter of the charging port comprises:
    检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除。Detecting whether the current magnitude of the charging port is less than a second threshold, and if less than the second threshold, determining that the terminal has been removed.
  6. 根据权利要求2所述方法,其中,所述控制所述充电器处于外接电源连通状态之后,所述方法还包括:为所述充电器的内部电源进行充电。The method of claim 2, wherein after the controlling the charger is in an external power supply communication state, the method further comprises: charging an internal power source of the charger.
  7. 一种充电器,所述充电器包括:第一确定模块及控制模块;其中,A charger includes: a first determining module and a control module; wherein
    所述第一确定模块,配置为依据充电端口的第一参数确定当前没有终端接入时,触发控制模块; The first determining module is configured to: when the terminal is not currently connected according to the first parameter of the charging port, triggering the control module;
    所述控制模块,配置为控制所述充电器处于外接电源断开状态。The control module is configured to control the charger to be in an external power disconnection state.
  8. 根据权利要求7所述充电器,其中,所述第一确定模块,还配置为依据充电端口的第一参数确定有终端接入时,触发控制模块;The charger according to claim 7, wherein the first determining module is further configured to: when the terminal is accessed according to the first parameter of the charging port, triggering the control module;
    相应的,所述控制模块,还配置为控制所述充电器处于外接电源连通状态。Correspondingly, the control module is further configured to control the charger to be in an external power connection state.
  9. 根据权利要求7或8所述充电器,其中,所述第一参数为电容;The charger according to claim 7 or 8, wherein said first parameter is a capacitor;
    所述控制模块,还配置为控制充电器内部电源工作;The control module is further configured to control an internal power supply of the charger;
    相应的,所述第一确定模块,配置为对充电端口电容大小进行检测,当检测到充电端口的电容大小没有超过第一阈值时,确定所述充电器当前没有终端接入。Correspondingly, the first determining module is configured to detect the charging port capacitance. When it is detected that the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
  10. 根据权利要求8所述充电器,其中,所述充电器还包括第二确定模块,配置为依据充电端口的第二参数确定所述终端被移除时,触发所述控制模块控制所述充电器处于电源断开状态。The charger of claim 8, wherein the charger further comprises a second determining module configured to trigger the control module to control the charger when the terminal is removed according to a second parameter of the charging port In the power off state.
  11. 根据权利要求10所述充电器,其中,所述第二参数为电流;The charger of claim 10 wherein said second parameter is a current;
    相应的,所述第二确定模块,配置为检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除。Correspondingly, the second determining module is configured to detect whether the current size of the charging port is less than a second threshold, and if it is less than the second threshold, determine that the terminal has been removed.
  12. 根据权利要求8所述充电器,其中,所述充电器还包括电源管理模块,配置为为所述充电器的内部电源进行充电。The charger of claim 8 wherein said charger further comprises a power management module configured to charge an internal power source of said charger.
  13. 一种充电器,所述充电器包括:阻容RC电桥电路及控制电路;其中,A charger includes: a RC bridge circuit and a control circuit; wherein
    所述RC电桥电路,配置为依据充电端口的第一参数确定当前没有终端接入时,触发控制电路;The RC bridge circuit is configured to trigger a control circuit when no terminal is currently connected according to the first parameter of the charging port;
    所述控制电路,配置为控制所述充电器处于外接电源断开状态。The control circuit is configured to control the charger to be in an external power off state.
  14. 根据权利要求13所述充电器,其中,所述RC电桥电路还配置为依据充电端口的第一参数确定有终端接入时,触发控制电路; The charger according to claim 13, wherein said RC bridge circuit is further configured to trigger a control circuit when terminal access is determined according to a first parameter of the charging port;
    相应的,所述控制电路,还配置为控制所述充电器处于外接电源连通状态。Correspondingly, the control circuit is further configured to control the charger to be in an external power connection state.
  15. 根据权利要求13或14所述充电器,其中,所述第一参数为电容;The charger according to claim 13 or 14, wherein said first parameter is a capacitor;
    所述控制电路,还配置为控制充电器内部电源工作;The control circuit is further configured to control an internal power supply of the charger;
    相应的,所述RC电桥电路,配置为对充电端口电容大小进行检测,当检测到充电端口的电容大小没有超过第一阈值时,确定所述充电器当前没有终端接入。Correspondingly, the RC bridge circuit is configured to detect the charging port capacitance. When it is detected that the capacitance of the charging port does not exceed the first threshold, it is determined that the charger has no terminal access.
  16. 根据权利要求14所述充电器,其中,所述充电器还包括电流检测电路,配置为依据充电端口的第二参数确定所述终端被移除时,触发所述控制电路控制所述充电器处于电源断开状态。A charger according to claim 14, wherein said charger further comprises current detecting circuit configured to trigger said control circuit to control said charger to be in operation when said terminal is removed in accordance with a second parameter of said charging port The power is off.
  17. 根据权利要求16所述充电器,其中,所述第二参数为电流;The charger of claim 16 wherein said second parameter is a current;
    相应的,所述电流检测电路,配置为检测充电端口的电流大小是否小于第二阈值,如果小于第二阈值,确定所述终端已被移除。Correspondingly, the current detecting circuit is configured to detect whether the current magnitude of the charging port is less than a second threshold, and if it is less than the second threshold, determine that the terminal has been removed.
  18. 根据权利要求14所述充电器,其中,所述充电器还包括电源管理单元,配置为为所述充电器的内部电源进行充电。The charger of claim 14, wherein the charger further comprises a power management unit configured to charge an internal power source of the charger.
  19. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至6任一项所述的充电器控制方法。 A computer storage medium having stored therein computer executable instructions for performing the charger control method of any one of claims 1 to 6.
PCT/CN2015/095396 2015-06-05 2015-11-24 Charger, charger control method and storage medium WO2016192335A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510308963.2 2015-06-05
CN201510308963.2A CN106300482A (en) 2015-06-05 2015-06-05 A kind of charger and control method thereof

Publications (1)

Publication Number Publication Date
WO2016192335A1 true WO2016192335A1 (en) 2016-12-08

Family

ID=57439952

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095396 WO2016192335A1 (en) 2015-06-05 2015-11-24 Charger, charger control method and storage medium

Country Status (2)

Country Link
CN (1) CN106300482A (en)
WO (1) WO2016192335A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108134434A (en) * 2018-02-07 2018-06-08 朱孔兴 It is a kind of to give electric control system and its method of work automatically
CN109995107B (en) * 2019-03-29 2022-07-26 联想(北京)有限公司 Detection device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002323940A (en) * 2001-04-25 2002-11-08 Casio Comput Co Ltd Power supply managing device for portable terminal
CN204030700U (en) * 2014-08-14 2014-12-17 钱剑科 Auto-breaking charger
CN104362708A (en) * 2014-12-04 2015-02-18 天津欧琳电子有限公司 Device for detecting mobile phone charging

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148512B (en) * 2010-02-05 2013-10-16 苏州宝时得电动工具有限公司 Charger and charging method thereof
CN102801185A (en) * 2011-05-26 2012-11-28 韩竞科 Battery control circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002323940A (en) * 2001-04-25 2002-11-08 Casio Comput Co Ltd Power supply managing device for portable terminal
CN204030700U (en) * 2014-08-14 2014-12-17 钱剑科 Auto-breaking charger
CN104362708A (en) * 2014-12-04 2015-02-18 天津欧琳电子有限公司 Device for detecting mobile phone charging

Also Published As

Publication number Publication date
CN106300482A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US10275016B2 (en) Smart power adapters and related systems and methods
US20160099608A1 (en) Power adapter with built-in battery and power storage and supply method thereof
JP7121865B2 (en) Reverse charging device, method and device for adjusting reverse charging current
WO2016106996A1 (en) Quick charging mobile terminal, method and system
KR102341489B1 (en) Electronic device and method for charging controlling of the electronic device
WO2020239034A1 (en) Battery management method, battery management apparatus and aircraft
US9436255B2 (en) DC-powered system side control of AC-DC adapter primary side switching circuitry
CN110546846B (en) Hybrid battery pack including bi-directional charge regulator
KR20210127748A (en) Glasses having a wireless charging receiver circuit, eyeglass cases for eyeglasses, and systems
CN104682458A (en) Charging control device, system, charging chip and user terminal
CN205050134U (en) Portable power source TYPE -C interface management circuit
US20140132224A1 (en) Interrupting the Charging Status of a Rechargeable Battery
WO2017206301A1 (en) Information notification method and device
CN104020705A (en) Power monitoring circuit with resetting function
TW201823923A (en) Electronic device and method for controlling the electronic device to charge and discharge
JP2018033244A5 (en)
WO2016188070A1 (en) Temperature control method, device, terminal and storage medium
WO2016192335A1 (en) Charger, charger control method and storage medium
CN103685730A (en) Mobile terminal communication control method and mobile terminal thereof
CN108767929A (en) Unmanned vehicle cell safety processing method and its device
CN105914820A (en) Separated mobile power supply with identification function and authentication identification method thereof
CN109888853A (en) A kind of charge control method, terminal device and storage medium
CN107222612B (en) Background application program closing method and device of mobile terminal
CN203849829U (en) Device for protecting child from being lost
CN103633719B (en) A kind of charging system and charge control method thereof

Legal Events

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

Ref document number: 15893979

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15893979

Country of ref document: EP

Kind code of ref document: A1