WO2017166555A1 - 检测适配器最大输出电流的方法、装置及终端 - Google Patents

检测适配器最大输出电流的方法、装置及终端 Download PDF

Info

Publication number
WO2017166555A1
WO2017166555A1 PCT/CN2016/092479 CN2016092479W WO2017166555A1 WO 2017166555 A1 WO2017166555 A1 WO 2017166555A1 CN 2016092479 W CN2016092479 W CN 2016092479W WO 2017166555 A1 WO2017166555 A1 WO 2017166555A1
Authority
WO
WIPO (PCT)
Prior art keywords
current
adapter
charging circuit
main charging
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/092479
Other languages
English (en)
French (fr)
Inventor
蔡志富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2017166555A1 publication Critical patent/WO2017166555A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Measuring current only
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/02Circuit arrangements for charging or discharging batteries or for supplying loads from batteries for charging batteries from AC mains by converters
    • H02J7/04Regulation of charging current or voltage

Definitions

  • the integrated circuit (integrated circuit) of the terminal can be a single-channel charging IC or a dual-channel charging IC.
  • the single-channel charging IC is formed by connecting a main charging circuit and a secondary charging circuit in series.
  • the dual channel charging IC is formed by connecting a main charging circuit and a secondary charging circuit in parallel.
  • the connection between the power supply and the terminal is often established through the adapter.
  • the output current of the adapter determines the efficiency of the terminal charging.
  • the main chip in the main charging circuit can detect the pull. Taking the current of the adapter, since the main charging circuit and the auxiliary charging circuit are connected in series, the currents of the two pull adapters are the same, so the maximum output current of the adapter can be determined by the magnitude of the current detected by the main chip.
  • the inventors have found that for a terminal having a dual-channel charging IC, since the main charging circuit and the auxiliary charging circuit are connected in parallel, the sum of the circulating current of the main charging circuit and the circulating current of the auxiliary charging circuit is It is a measure of the maximum output current of the adapter.
  • the auxiliary charging circuit cannot return the current, and therefore the sum of the circulating currents of the main charging circuit and the auxiliary charging circuit cannot be obtained, so that the maximum output current of the adapter cannot be detected.
  • the present disclosure provides a method, apparatus, and terminal for detecting an adapter's maximum output current that is capable of detecting an adapter's maximum output current.
  • the adapter When the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, the adapter is set Having at least two currents drawn, a current value higher than a value of the currently set pull current is used as a current set current, and the auxiliary charging circuit is circulated according to a current drawn current of the adapter.
  • the current is set to correspond to the current current of the current set current, until the operating state returned by the main charging circuit is a failure state, and the current drawn below the value of the current set current is taken as the The maximum output current of the adapter.
  • the current setting is set to at least two currents of the adapter, and the current is lower than the current value of the currently set current current as the current setting.
  • Pulling current, returning execution is based on current current set by the adapter, setting a current flowing through the auxiliary charging circuit to a current corresponding to the current set current, until the main charging circuit returns.
  • the state is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the currently set pulling current, and the currently set pulling current is taken as the maximum output current of the adapter.
  • the method further includes:
  • the minimum pull current set by the terminal for the adapter is used as the maximum output current of the adapter.
  • the pull current whose value is lower than the value of the currently set pull current is not the minimum pull current, when the active state returned by the main charging circuit is an active state, and the current flowing back of the main charging circuit is The sum of the known currents is equal to the current set current, and the current is set to at least two currents of the adapter, and the current is higher than the current set current value.
  • the current set current is set according to the current drawn current of the adapter, and the circulating current of the auxiliary charging circuit is set to correspond to the current current of the current set current until the main charging circuit returns to work.
  • the state is a failure state, and a current drawn below a value of the currently set pull current is taken as the maximum output current of the adapter.
  • the circulating current of the auxiliary charging circuit is set to correspond to the current current of the currently set current for:
  • the known current is written in a register of the secondary chip in the secondary charging circuit in accordance with a current drawn current for the adapter.
  • an embodiment of the present disclosure provides a device for detecting a maximum output current of an adapter, which is applied to a terminal, and the charging integrated circuit of the terminal includes a main charging circuit and a secondary charging circuit, and the main charging circuit and the auxiliary charging circuit are connected in parallel. And the terminal is provided with at least two currents for the adapter, and one current is selected as the current set current from the at least two currents, the device comprising:
  • a setting module configured to set a current flowing of the auxiliary charging circuit to correspond to a current of the current set current according to a current drawn current of the adapter
  • a detecting module configured to detect an operating state returned by the main charging circuit under the current set current
  • a first processing module configured to: when the active state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, The pull current having a value higher than the current set value of the pull current is used as the current set pull current, triggering the setting module until the working state returned by the main charging circuit is a failure state, triggering the first maximum output current determination Module
  • a first maximum output current determining module configured to: the second processing module detects that an operating state returned by the main charging circuit is a failed state, and takes a current that is lower than a value of the current set current The maximum output current of the adapter.
  • the device further includes:
  • the second maximum output current determining module is configured to: the first processing module detects that an operating state returned by the main charging circuit is an active state, and the circulating current returned by the main charging circuit and the known current When the current is equal to the current set current, the current set current is taken as the maximum output current of the adapter.
  • a judging module configured to: when the working state returned by the main charging circuit is a failure state, determine that the adapter is provided with at least two currents, and the value is lower than a value of the current set current value Whether the current is the minimum current, if yes, triggering the determination module, if not, triggering the first processing module;
  • the setting module includes:
  • a setting unit configured to write the known current in a register of the auxiliary chip in the auxiliary charging circuit according to a current drawn current for the adapter.
  • the method for detecting the maximum output current of the adapter sets the current of the auxiliary charging circuit to a known current according to the current drawn current for the adapter, so that only the return of the main charging circuit needs to be detected. By flowing the current, the sum of the circulating current of the auxiliary charging circuit and the circulating current returned by the main charging circuit can be obtained, so that the maximum output current of the adapter can be determined.
  • FIG. 1 is a schematic flowchart diagram of an implementation manner of a method for detecting a maximum output current of an adapter according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of an implementation manner of a method for detecting a maximum output current of an adapter according to an embodiment of the present disclosure
  • step S110 according to the current drawn current of the adapter, the circulating current of the auxiliary charging circuit is set to correspond to the current current of the current set current.
  • the current set current may be a pull current that most terminals can output, or the smallest pull of the at least two pull currents
  • the current is the current set current.
  • the currently set currents may be the same or different, and the embodiment of the present disclosure does not specifically limit this. If the currently set pull current is the same, the current set pull current may be a default value of the terminal, that is, it is not required to perform “select one pull from the at least two pull currents each time the method provided by the embodiment of the present disclosure is performed. The current is used as the current set current pull current. Of course, each time the method provided by the embodiment of the present disclosure is executed, "select one pull current from the at least two pull currents as the current set pull current" is performed. One step.
  • a known current can be written into the registers of the secondary chip of the secondary charging circuit such that the current flowing through the secondary charging circuit is a known current.
  • Step S1320 is executed after performing one or more times in step S1310.
  • the method for detecting the maximum output current of the adapter sets the current flowing through the auxiliary charging circuit to a known current according to the current drawn current of the adapter, so that only the circulating current returned by the main charging circuit needs to be detected, thereby obtaining The sum of the circulating current of the auxiliary charging circuit and the circulating current returned by the main charging circuit, so that the maximum output current of the adapter can be determined.
  • FIG. 2 is a schematic flowchart of a method for detecting a maximum output current of an adapter according to an embodiment of the present disclosure.
  • the method may be applied to a terminal, where the charging integrated circuit includes a main charging circuit and a secondary device. a charging circuit, the main charging circuit and the auxiliary charging circuit are connected in parallel, and the terminal is provided with at least two currents for the adapter, and one current is selected from the at least two currents as the current set current, and the maximum output current of the detecting adapter
  • the method includes: step S210 to step S240.
  • the current set current may be a pull current that most terminals can output, or the least pull of the at least two currents Any current other than the current is used as the current set current.
  • Step S220 Detect an operating state returned by the main charging circuit under the current set current.
  • Step S230 When the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, the The adapter is provided with at least two pull currents, and the pull current having a value higher than the current set pull current is used as the current set pull current, and the process returns to step S210. Until the operating state returned by the main charging circuit is a failure state, a current drawn below a value of the currently set pull current is taken as the maximum output current of the adapter.
  • step S230 is divided into step S2310 and step S2320.
  • Step S2310 the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the currently set pulling current, then the The adapter is provided with at least two current sinks, and the pull current having a value higher than the value of the currently set pull current is used as the currently set pull current, and the process returns to step S210.
  • Step S2320 The working state returned by the main charging circuit is a failure state, and a pulling current having a value lower than a value of the current set current is used as a maximum output current of the adapter.
  • Step S2320 is executed after performing one or more times in step S2310.
  • step S210 to the step S230 refer to the description of the step S110 to the step S130 in the first embodiment, and details are not described herein again.
  • Step S240 When the working state returned by the main charging circuit is a failure state, the current is set to at least two currents of the adapter, and the current is lower than the current value of the current set current. As the current set current, the process returns to step S210. Until the operating state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, the current set current is taken as The maximum output current of the adapter.
  • step S240 is divided into step S2410 and step S2420.
  • Step S2410 When the working state returned by the main charging circuit is a failure state, the current is set to at least two currents of the adapter, and the current is lower than the current value of the current set current. As the current set current, the process returns to step S210.
  • Step S2420 the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, and the current setting is pulled.
  • the current acts as the maximum output current of the adapter.
  • Step S2420 is performed after performing one or more times in step S2410.
  • the operating state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current.
  • the active state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current setting. Pull current.
  • the main charging circuit includes a main chip. If the adapter has an output current set current output, the main charging circuit can return to an active state. If the maximum output current of the adapter is lower than the currently set current, the main charging circuit can return to an inactive state.
  • the working state returned by the main charging circuit is a failure state, indicating that the maximum output current of the adapter is lower than the current set current.
  • the pull current set by the terminal for the adapter includes 0.8A, 1.2A, 1.6A, 2.2A, etc., and the current set current is 1.6A.
  • the maximum output current of the adapter is indicated. Below 1.6A, the 1.2A value will be assigned to the current current set for the adapter in the order from large to small. If the working state returned by the main charging circuit is still in the failed state, the maximum output current of the adapter is low.
  • 0.8A is assigned to the current current set for the adapter.
  • the current set current is taken as The maximum output current of the adapter, assuming that the current set current is 0.8A, if the active state returned by the main charging circuit is active, and the sum of the circulating current returned by the main charging circuit and the known current is equal to 0.8A, then The current set current is 0.8A and the maximum output current of the adapter.
  • the method for detecting the maximum output current of the adapter sets the current flowing through the auxiliary charging circuit to a known current according to the current drawn current of the adapter, so that only the circulating current returned by the main charging circuit needs to be detected, thereby obtaining The sum of the circulating current of the auxiliary charging circuit and the circulating current returned by the main charging circuit, so that the maximum output current of the adapter can be determined.
  • the adapter has the ability to output the current current set by the adapter
  • the active state returned by the main charging circuit is an active state
  • the current flowing through the main charging circuit can be returned, and the circulating current returned by the main charging circuit and the known current are And equal to the current set current, indicating that the adapter can at least output the ability to pull current currently set by the adapter, so it is necessary to set a higher current to the adapter to determine whether the adapter has the ability to output a higher current.
  • the current drawn at a value higher than the current set current value is used as the current set current, and is detected again until it is detected that the working state returned by the main charging circuit is a failure state, if the main charging circuit returns to the working state.
  • the failure state indicates that the adapter does not have the ability to output the current, but the adapter has a pull current whose output value is lower than the current set current value, so the value can be lower than the current set current.
  • the pull current of the value is taken as the maximum output current of the adapter.
  • the adapter does not have the ability to output the current current set by the adapter, the working state returned by the main charging circuit is a failure state. At this time, it can be determined whether the adapter can output a current lower than the current current drawing value, that is, the value is lower than The current drawn by the current value of the current drawn current is detected as the current set current until the active state returned by the main charging circuit is an active state, and the circulating current returned by the main charging circuit and the known current are And equal to the value of the current set pull current, at this time, the adapter has the ability to output the pull current, so the current set current can be used as the maximum output current of the adapter.
  • FIG. 3 is a method for detecting a maximum output current of an adapter according to an embodiment of the present disclosure.
  • a schematic flowchart of another method for applying the method to a terminal the charging integrated circuit of the terminal includes a main charging circuit and a secondary charging circuit, the main charging circuit and the auxiliary charging circuit are connected in parallel, and the terminal is the The adapter is provided with at least two pull currents, and one of the at least two pull currents is selected as the current set pull current, and the method includes: step S310 to step S330.
  • Step S310 Set the current flowing of the auxiliary charging circuit to correspond to the current current of the currently set current according to the current drawn current of the adapter.
  • Selecting one of the at least two pull currents as the current set pull current, and the currently set pull current may be the largest pull current of the at least two pull currents.
  • the maximum pull current refers to a pull current that is greater than the maximum current value that each adapter can output.
  • Step S320 Detect an operating state returned by the main charging circuit under the current set current.
  • step S310 and step S320 refer to the description of step S110 and step S120 in the first embodiment, and details are not described herein again.
  • Step S330 When the working state returned by the main charging circuit is a failure state, the current is set to at least two currents of the adapter, and the current is lower than the current value of the current set current. As the current set current, the process returns to step S310. Until the operating state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, the current set current is taken as The maximum output current of the adapter.
  • step S330 is divided into steps S3310 and S3320. Since the current set current is greater than the maximum current value output by each adapter when the step S310 is performed for the first time, for each adapter, the working state returned by the main charging circuit when the step S320 is performed for the first time is performed. Both are in a failed state.
  • Step S3310 When the working state returned by the main charging circuit is a failure state, the current current is set to be at least two currents of the adapter, and the value is lower than the current value of the current set current. As the current set current, the process returns to step S310.
  • Step S3320 the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, and the current setting is pulled.
  • the current acts as the maximum output current of the adapter.
  • Step S3320 is executed after one or more executions in step S3310.
  • step S330 For the description of the step S330, refer to the description of the step S240 in the second embodiment, and details are not described herein again.
  • FIG. 2 is a schematic flowchart of a method for detecting another maximum output current of an adapter according to an embodiment of the present disclosure.
  • the method includes steps S110 to S160 in the foregoing embodiment, and the method includes:
  • Step S110 Set a current flowing through the auxiliary charging circuit to correspond to a current value corresponding to the current set current according to a current drawn current set by the adapter.
  • Step S120 Detect an operating state returned by the main charging circuit under the current set current.
  • Step S210 When the working state returned by the main charging circuit is a failure state, it is determined that the current is set to have at least two currents in the adapter, and the current value lower than the value of the currently set current is The minimum current is drawn, if yes, the process goes to step S220, and if not, the process goes to step S130.
  • Step S220 The minimum pull current set by the terminal for the adapter is used as the maximum output current of the adapter.
  • the pull current set by the terminal for the adapter includes 0.8A, 1.2A, 1.6A, 2.2A, etc., and the current set current is 1.6A. If the working state returned by the main charging circuit is a failure state, the maximum output current of the adapter is indicated. Below 1.6A, the 1.2A value will be assigned to the current current set for the adapter in the order from large to small. If the working state returned by the main charging circuit is still in the failed state, the maximum output current of the adapter is low. At 1.2A, the 0.8A is the minimum current drawn by the terminal for the current drawn by the adapter, so the maximum output current of the 0.8A adapter can be directly applied.
  • step S130 is divided into step S1310 and step S1320.
  • Step S1310 When the working state returned by the main charging circuit is a failure state, the current is set to at least two currents of the adapter, and the value is lower than the current value of the current set current. As the current set current, the process returns to step S110.
  • Step S1320 the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the current set current, and the current setting is pulled.
  • the current acts as the maximum output current of the adapter.
  • Step S1320 is performed after performing one or more times in step S1310, which is different from the subsequent step S1410.
  • Step S140 the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the currently set pulling current, then the The adapter is provided with at least two current sinks, and the pull current having a value higher than the current set pull current value is used as the current set pull current, and the process returns to step S110. Until the operating state returned by the main charging circuit is a failure state, a current drawn below a value of the currently set pull current is taken as the maximum output current of the adapter.
  • step S140 is divided into step S1410 and step S1420.
  • Step S1410 the working state returned by the main charging circuit is an active state, and the sum of the circulating current returned by the main charging circuit and the known current is equal to the currently set pulling current, then the The adapter is provided with at least two current sinks, and the pull current having a value higher than the current set pull current value is used as the current set pull current, and the process returns to step S110.
  • Step S1420 The working state returned by the main charging circuit is a failure state, and the pulling current having a value lower than the current set current value is used as the maximum output current of the adapter.
  • Step S1420 is executed after performing one or more times in step S1410. Different from step S1310.
  • FIG. 3 is a flowchart of an implementation manner of a method for detecting a maximum output current of an adapter according to an embodiment of the present disclosure.
  • the terminal sets at least two currents of 1.2A, 1.6A, and 2.2A for the adapter.
  • the current set current in step S101 is 1.6A
  • the terminal sets three currents for the adapter: 1.2A, 1.6A, and 2.2A.
  • the adapter has the minimum current drawn by the output terminal for the adapter (1.2A in the embodiment of the present disclosure). ), so when it detects that the adapter does not have the ability to output 1.6A, it can directly use 1.2A as the maximum output current of the adapter. It is of course also possible to detect if the adapter has the ability to output 1.2A.
  • the maximum pull current set by the terminal for the adapter includes the maximum output current of each adapter. It does not cause the adapter to fail to maximize efficiency because the value of the pull current set by the terminal for the adapter is lower than the maximum output current of the adapter.
  • FIG. 4 is a schematic structural diagram of an implementation manner of an apparatus for detecting an output current of an adapter according to an embodiment of the present disclosure.
  • the device is applied to a terminal, and the charging integrated circuit of the terminal includes a main charging circuit and a secondary charging circuit.
  • the main charging circuit and the auxiliary charging circuit are connected in parallel, and the terminal is provided with at least two currents for the adapter, and the device for detecting the maximum output current of the adapter comprises: a setting module 401, a detecting module 402, a first processing module 403, and a first maximum output current determination.
  • the setting module 401 is configured to set the current flowing of the auxiliary charging circuit to correspond to the current current of the currently set current according to the current drawn current of the adapter.
  • the embodiment of the present disclosure ingeniously sets the circulating current of the auxiliary charging circuit to a known current value, that is, a known current.
  • the adapter does not have the ability to output the current, but the adapter has a current that is lower than the current set current value. Pulling a value lower than the value of the currently set pull current Stream as a maximum output current of the adapter.
  • the detection state returned by the detection module 402 is a failure state, and it can be determined whether the adapter can output a current lower than the current current value. That is, the first processing module 403 takes the pull current whose value is lower than the current set current value as the current set current, and detects again until the working state returned by the main charging circuit is the active state, and the main charging The sum of the circulating current returned by the circuit and the known current is equal to the value of the current set current. In this case, the adapter has the ability to output the current, so the current set current can be used as the The maximum output current of the adapter.
  • the embodiment of the present disclosure can achieve the purpose of detecting the maximum output current of the adapter by the terminal having the dual channel charging circuit.
  • the receiver 503 and the transmitter 505 of the device in the embodiment of the present invention may be a wired sending port, or may be a wireless device, for example, including an antenna device, for performing signaling or data communication with other node devices.
  • the memory 504 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 504 can optionally also be at least one storage device located remotely from the aforementioned processor 501.
  • a set of program codes is stored in memory 504, and said processor 501 can invoke code stored in memory 504 via communication bus 502 to perform related functions.
  • the current flowing through the auxiliary charging circuit is set to a known current according to the current drawn current for the adapter, so that only the flowing current returned by the main charging circuit needs to be detected, and the circulating current of the auxiliary charging circuit can be obtained. And the sum of the circulating currents returned by the main charging circuit, so that the maximum output current of the adapter can be determined.

Landscapes

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

Abstract

一种检测适配器最大输出电流的方法、装置及终端,根据为适配器当前设置的拉电流,设置辅充电电路的流通电流为已知电流(S110),这样只需要返回主充电电路的流通电流即可,如果适配器具备输出为适配器当前设置的拉电流的能力,则主充电电路返回的工作状态为有效状态,且能够返回主充电电路的流通电流;如果适配器不具备输出为适配器当前设置的拉电流的能力,则主充电电路返回的工作状态为失效状态,能够实现具备双通道充电电路的终端检测适配器最大输出电流。

Description

检测适配器最大输出电流的方法、装置及终端
本申请要求于2016年3月31日提交中国专利局,申请号为201610201238.X、发明名称为“一种检测适配器最大输出电流的方法、装置及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及电路技术领域,例如涉及一种检测适配器最大输出电流的方法、装置及终端。
背景技术
随着终端快速充电功能的普及,越来越多的终端都支持快速充电的功能,终端的充电IC(integrated circuit,集成电路)可以是串联的单通道充电IC也可以是双通道充电IC。单通道充电IC是由主充电电路和辅充电电路串联而成。双通道充电IC是由主充电电路和辅充电电路并联而成。
在对终端进行充电时,往往通过适配器建立电源和终端的连接,适配器输出电流的大小决定了终端充电的效率,对于具备单通道充电IC的终端而言,主充电电路中的主芯片可以检测拉取适配器的电流的大小,由于主充电电路和辅充电电路串联,所以两者拉取适配器的电流一致,因此可以通过主芯片检测的电流的大小来确定适配器的最大输出电流。
发明人在实现本发明创造的过程中发现,对于具备双通道充电IC的终端而言,由于主充电电路和辅充电电路并联,所以主充电电路的流通电流和辅充电电路的流通电流之和才是衡量适配器最大输出电流的标准。但辅充电电路并不能返回电流,因此也无法得出主充电电路和辅充电电路的流通电流之和,从而不能检测适配器的最大输出电流。
发明内容
因此,本公开提供了一种检测适配器最大输出电流的方法、装置及终端,能够检测适配器的最大输出电流。
第一方面,本公开的实施例提供一种检测适配器最大输出电流的方法,应用于终端,所述终端的充电集成电路包括主充电电路和辅充电电路,所述主充 电电路和辅充电电路并联,且所述终端为所述适配器设置有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,所述方法包括:
依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流;
在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态;
当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流,直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
可选地,所述方法还包括:
当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回执行依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流,直至所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
可选地,所述方法还包括:
当所述主充电电路返回的工作状态为失效状态,判断所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流是否为最小的拉电流,
如果取值低于所述当前设置的拉电流的值的拉电流是最小的拉电流,则将所述终端为所述适配器设置的最小的拉电流作为所述适配器的最大输出电流,
如果取值低于所述当前设置的拉电流的值的拉电流不是最小的拉电流,则当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为 当前设置的拉电流,依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流,直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
其中,依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流用于:
依据为所述适配器当前设置的拉电流,在所述辅充电电电路中的辅芯片的寄存器中写入所述已知电流。
第二方面,本公开的实施例提供一种检测适配器最大输出电流的装置,应用于终端,所述终端的充电集成电路包括主充电电路和辅充电电路,所述主充电电路和辅充电电路并联,且所述终端为所述适配器设置有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,所述装置包括:
设置模块,配置为依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流;
检测模块,配置为在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态;
第一处理模块,配置为当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,将取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,触发所述设置模块,直至当所述主充电电路返回的工作状态为失效状态,触发第一最大输出电流确定模块;
第一最大输出电流确定模块,配置为所述第二处理模块检测到所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
可选地,所述装置还包括:
第二处理模块,配置为当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,触发所述设置模块,直至当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流时,触发第二最大输出电流确定模块;
所述第二最大输出电流确定模块,配置为所述第一处理模块检测到所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流时,将所述当前设置的拉电流作为所述适配器的最大输出电流。
可选地,所述装置还包括:
判断模块,配置为当所述主充电电路返回的工作状态为失效状态,判断所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流是否为最小的拉电流,如果是,则触发确定模块,如果否,则触发第一处理模块;
所述确定模块,配置为将所述终端为所述适配器设置的最小的拉电流作为所述适配器的最大输出电流。
其中,所述设置模块包括:
设置单元,配置为依据为所述适配器当前设置的拉电流,在所述辅充电电电路中的辅芯片的寄存器中写入所述已知电流。
第三方面,本公开实施例提供一种终端,该终端包括上述检测适配器最大输出电流的装置。
第四方面,本公开实施例提供一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于上述的检测适配器最大输出电流的方法。
与相关技术相比,本公开实施例提供的检测适配器最大输出电流的方法,根据为适配器当前设置的拉电流,设置辅充电电路的流通电流为已知电流,这样只需要检测主充电电路返回的流通电流,即可获得辅充电电路的流通电流和主充电电路返回的流通电流之和,从而可以确定适配器的最大输出电流。
如果适配器具备输出为适配器当前设置的拉电流的能力,则主充电电路返回的工作状态为有效状态,且能够返回主充电电路的流通电流,当主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流时,表明适配器至少能够输出为适配器当前设置的拉电流的能力,因此需要为适配器设置更高的拉电流,判断适配器是否具备输出更高的拉电流的能力,即将取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,再次进行检测,直至检测到主充电电路返回的工作状态为失效状态,如果主充电电路返回的工作状态为失效状态,说明适配器不具备输出该拉电流的能力,但是适配器具备输 出取值低于所述当前设置的拉电流的值的拉电流,因此可以将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。采用本公开实施例能够实现具备双通道充电电路的终端检测适配器最大输出电流的目的。
如果适配器不具备输出为适配器当前设置的拉电流的能力,则主充电电路返回的工作状态为失效状态,此时可以判断适配器是否可以输出比当前拉电流值低的拉电流,即将取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,再次进行检测,直至主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值,此时说明适配器具备输出该拉电流的能力,因此可以将所述当前设置的拉电流作为所述适配器的最大输出电流。采用本公开实施例能够实现具备双通道充电电路的终端检测适配器最大输出电流的目的。
附图说明
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的实施例,本领域普通技术人员还可以根据提供的附图获得其他的附图。
图1为本公开实施例提供的一种检测适配器最大输出电流的方法的一种实现方式的流程示意图;
图2为本公开实施例提供的一种检测适配器最大输出电流的另一实现方式的方法流程示意图;
图3为本公开实施例提供检测适配器最大输出电流的方法中一种实现方式流程图;
图4为本公开实施例提供的一种检测适配器最大输出电流的装置的一种实现方式的结构示意图;
图5为本公开实施例提供的移动终端的结构示意图。
实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员所获得的所有其 他实施例,都属于本公开保护的范围。
实施例一
请参阅图1,为本公开实施例提供的一种检测适配器最大输出电流的方法的一种实现方式的流程示意图,该方法可以应用于终端,该终端的充电集成电路包括主充电电路和辅充电电路,主充电电路和辅充电电路并联,且终端为适配器设置有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,该检测适配器最大输出电流的方法包括:步骤S110至步骤S130。
在步骤S110中:依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流。
从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,当前设置的拉电流可以为大多数终端都能够输出的拉电流,或者将所述至少两个拉电流中最小的拉电流作为当前设置的拉电流。对于每一终端而言,在第一次执行步骤S110时,当前设置的拉电流可以相同,也可以不同,本公开实施例对此不做具体限定。如果当前设置的拉电流相同,该当前设置的拉电流可以是终端的默认值,即不需要每次执行本公开实施例提供的方法时都执行“从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流”这一步骤,当然也可以每次执行本公开实施例提供的方法时都执行“从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流”这一步骤。
由于辅充电电路中的辅芯片不能返回电流值,本公开实施例巧妙的将辅充电电路的流通电流设置为已知的电流值,即已知电流。
已知电流可以随着为适配器当前设置的拉电流的取值不同而不同,当然也可以相同,只需依照适配器的拉电流、主充电电路和辅充电电路的电流值关系,进行设定即可,具体的根据实际情况而定,本公开实施例并不对此作具体限定。
例如:设定适配器的拉电流为1.2A、1.6A和2.2A。如果验证适配器的输出能力是否满足1.6A,则步骤S110中的当前设置的拉电流为1.6A;在一些实施例中,设置该参数为FIRST_DECTET_VALUE,即FIRST_DECTET_VALUE=1.6A。
将FIRST_DECTET_VALUE=1.6A设置为适配器当前设置的拉电流,此时可以设置辅充电电路的流通电流assister_current1=0.5A。如果适配器的输出能力能够满足1.6A,则主充电电路的流通电流master_current1=1.1A。
如果验证适配器的输出能力是否满足1.2A,则步骤S101中的当前设置的拉电流为1.2A,设置该参数为ZERO_DECTET_VALUE,即 ZERO_DECTET_VALUE=1.2A,此时可以设置辅充电电路的流通电流assister_current0=0.4A,如果配器具备输出1.2A电流的能力,则主充电电路的流通电流master_current0=0.8A。
如果验证适配器的输出能力是否满足2.2A,则步骤S101中的当前设置的拉电流为2.2A,设置该参数为SECOND_DECTET_VALUE,即SECOND_DECTET_VALUE=2.2A,此时可以设置辅充电电路的流通电流assister_current2=1.2A,如果配器具备输出1.2A电流的能力,则主充电电路的流通电流master_current2=1A。
上述列举的例子中,忽略了终端中其他部件、主充电电路、辅充电电路的损耗,如果考虑上述损耗,上述“=”应该为约等于。
在一些实施例中,可以将已知电流写入辅充电电路的辅芯片的寄存器中,这样辅充电电路的流通电流就为已知电流了。
步骤S120:在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态。
由于在第一次执行步骤S110时,当前设置的拉电流为大多数终端都能够输出的拉电流,或者所述至少两个拉电流中最小拉电流。对于各个适配器而言,在第一次执行步骤S120时,主充电电路返回的工作状态均为有效状态。
主充电电路中的主芯片可以反馈该芯片的工作状态,即该主充电电路是否可以正常的工作在该拉电流下,以步骤S110中举例为例,如果验证适配器的输出能力是否满足1.2A,则步骤S110中的当前设置的拉电流为1.2A,此时可以设置辅充电电路的流通电流assister_current0=0.4A,如果配器具备输出1.2A电流的能力,则主充电电路的流通电流master_current0=0.8A,步骤S120中的主充电电路就可以反馈该主充电电路是否在0.8A的电流下工作,如果是,工作状态一般为有效状态,如果否,工作状态一般为无效状态。
步骤S130:当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回步骤S110。直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
为了方便的画出附图,将步骤S130分为步骤S1310和步骤S1320。
步骤S1310:所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回步骤S110。
步骤S1320:所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
步骤S1320是在步骤S1310执行一次或多次后执行的。
假设终端为适配器设置的拉电流包括0.8A、1.2A、1.6A、2.2A等等,当前设置的拉电流为1.2A,如果主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流与所述已知电流之和等于1.2A,说明适配器的输出能力至少为1.2A,此时会按照从小到大的顺序,将1.6A赋值给为适配器当前设置的拉电流,如果主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流值与所述已知电流之和等于1.6A,说明适配器的输出能力至少为1.6A,说明适配器的输出能力至少为1.6A,则将2.2A赋值给为适配器当前设置的拉电流,如果此时主充电电路返回的工作状态为失效状态,则将1.6A作为适配器的最大输出电流。
上述步骤中“主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值”的“等于”是忽略终端中主充电电路、辅充电电路和其他元器件的损耗,如果考虑上述损耗,则“等于”应该为“约等于”。
本公开实施例提供的检测适配器最大输出电流的方法,根据为适配器当前设置的拉电流,设置辅充电电路的流通电流为已知电流,这样只需要检测主充电电路返回的流通电流,即可获得辅充电电路的流通电流和主充电电路返回的流通电流之和,从而可以确定适配器的最大输出电流。
如果适配器具备输出为适配器当前设置的拉电流的能力,则主充电电路返回的工作状态为有效状态,且能够返回主充电电路的流通电流,当主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流时,表明适配器至少能够输出为适配器当前设置的拉电流的能力,因此需要为适配器设置更高的拉电流,判断适配器是否具备输出更高的拉电流的能力,即将取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,再次进行检测,直至检测到主充电电路返回的工作状态为失效状态,如果主充电电路返回的工作状态为失效状态,说明适配器不具备输出该拉电流的能力,但是适配器具备输 出取值低于所述当前设置的拉电流的值的拉电流,因此可以将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。采用本公开实施例能够实现具备双通道充电电路的终端检测适配器最大输出电流的目的。
实施例二
请参阅图2,为本公开实施例提供的一种检测适配器最大输出电流的方法的另一实现方式的方法流程示意图,该方法可以应用于终端,该终端的充电集成电路包括主充电电路和辅充电电路,主充电电路和辅充电电路并联,且终端为适配器设置有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,该检测适配器最大输出电流的方法包括:步骤S210至步骤S240。
步骤S210:依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流。
从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,当前设置的拉电流可以为大多数终端都能够输出的拉电流,或者将所述至少两个拉电流中除最小拉电流以外的任一拉电流作为当前设置的拉电流。
步骤S220:在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态。
步骤S230:当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回步骤S210。直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
为了方便的画出附图,将步骤S230分为步骤S2310和步骤S2320。
步骤S2310:所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回步骤S210。
步骤S2320:所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
步骤S2320是在步骤S2310执行一次或多次后执行的。
对步骤S210至步骤S230的描述请参阅实施例一中步骤S110至步骤S130的描述,在此不再赘述。
步骤S240:当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回执行步骤S210。直至所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
为了方便的画出附图,将步骤S240分为步骤S2410和步骤S2420。
步骤S2410:当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回执行步骤S210。
步骤S2420:所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
步骤S2420是在步骤S2410执行一次或多次后,才执行的。
一般情况下,主充电电路返回的工作状态为有效状态,则所述主充电电路返回的流通电流和所述已知电流之和就会等于所述当前设置的拉电流。但是为了确保适配器的最大输出能力,需要两者一起满足条件,即主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流。
主充电电路包括主芯片,如果适配器具备输出当前设置的拉电流,则主充电电路可以返回有效状态,如果适配器最大输出电流低于当前设置的拉电流,则主充电电路可以返回无效状态。
主充电电路返回的工作状态为失效状态,说明适配器的最大输出电流低于当前设置的拉电流。假设终端为适配器设置的拉电流包括0.8A、1.2A、1.6A、2.2A等等,当前设置的拉电流为1.6A,如果主充电电路返回的工作状态为失效状态,说明适配器的最大输出电流低于1.6A,此时会将按照从大到小的顺序,选择1.2A赋值给为适配器当前设置的拉电流,如果主充电电路返回的工作状态仍然为失效状态,说明适配器的最大输出电流低于1.2A,则将0.8A赋值给为适配器当前设置的拉电流。
直到主充电电路返回的工作状态为有效状态,主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值,将所述当前设置的拉电流作为所述适配器的最大输出电流,假设当前设置的拉电流为0.8A,如果主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流和所述已知电流之和等于0.8A,则将当前设置的拉电流0.8A最为适配器的最大输出电流。
上述步骤中“主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值”的“等于”是忽略终端中主充电电路、辅充电电路和其他元器件的损耗,如果考虑上述损耗,则“等于”应该为“约等于”。
本公开实施例提供的检测适配器最大输出电流的方法,根据为适配器当前设置的拉电流,设置辅充电电路的流通电流为已知电流,这样只需要检测主充电电路返回的流通电流,即可获得辅充电电路的流通电流和主充电电路返回的流通电流之和,从而可以确定适配器的最大输出电流。
如果适配器具备输出为适配器当前设置的拉电流的能力,则主充电电路返回的工作状态为有效状态,且能够返回主充电电路的流通电流,当主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流时,表明适配器至少能够输出为适配器当前设置的拉电流的能力,因此需要为适配器设置更高的拉电流,判断适配器是否具备输出更高的拉电流的能力,即将取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,再次进行检测,直至检测到主充电电路返回的工作状态为失效状态,如果主充电电路返回的工作状态为失效状态,说明适配器不具备输出该拉电流的能力,但是适配器具备输出取值低于所述当前设置的拉电流的值的拉电流,因此可以将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
如果适配器不具备输出为适配器当前设置的拉电流的能力,则主充电电路返回的工作状态为失效状态,此时可以判断适配器是否可以输出比当前拉电流值低的拉电流,即将取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,再次进行检测,直至主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值,此时说明适配器具备输出该拉电流的能力,因此可以将所述当前设置的拉电流作为所述适配器的最大输出电流。
请参阅图3,为本公开实施例提供的一种检测适配器最大输出电流的方法的 另一种实现方式的方法流程示意图,该方法应用于终端,所述终端的充电集成电路包括主充电电路和辅充电电路,所述主充电电路和辅充电电路并联,且所述终端为所述适配器设置有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,该方法包括:步骤S310至步骤S330。
步骤S310:依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流。
从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,当前设置的拉电流可以为所述至少两个拉电流中最大的拉电流。该最大的拉电流是指比各个适配器能够输出最大电流值大的拉电流。
步骤S320:在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态。
步骤S310与步骤S320的解释,请参阅实施例一中步骤S110和步骤S120的描述,在此不再赘述。
步骤S330:当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回执行步骤S310。直至所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
为了方便的画出附图,将步骤S330分为步骤S3310和步骤S3320。由于在第一次执行步骤S310时,当前设置的拉电流比各个适配器输出的最大电流值还大,因此对于每一适配器而言,在第一次执行步骤S320时,主充电电路返回的工作状态都为失效状态。
步骤S3310:当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回执行步骤S310。
步骤S3320:所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
步骤S3320是在步骤S3310执行一次或多次后,才执行的。
步骤S330的描述可以参阅实施例二中对步骤S240的描述,在此不再赘述。
请参阅图2,为本公开实施例提供的一种检测适配器最大输出电流的另一实现方式的方法流程示意图,该方法包括上述实施例中步骤S110至步骤S160,该方法包括:
步骤S110:依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流。
步骤S120:在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态。
步骤S210:当所述主充电电路返回的工作状态为失效状态,判断所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流是否为最小的拉电流,如果是,则进入步骤S220,如果否,则进入步骤S130。
步骤S220:将所述终端为所述适配器设置的最小的拉电流作为所述适配器的最大输出电流。
在实际应用中,几乎所有的适配器具备输出终端为所述适配器设置有至少两个拉电流中最小的拉电流。
假设终端为适配器设置的拉电流包括0.8A、1.2A、1.6A、2.2A等等,当前设置的拉电流为1.6A,如果主充电电路返回的工作状态为失效状态,说明适配器的最大输出电流低于1.6A,此时会将按照从大到小的顺序,选择1.2A赋值给为适配器当前设置的拉电流,如果主充电电路返回的工作状态仍然为失效状态,说明适配器的最大输出电流低于1.2A,而0.8A为终端为适配器设置的拉电流中最小的拉电流,因此可以直接将0.8A最为适配器的最大输出电流。
步骤S130:当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回执行步骤S110。循环步骤S110至步骤S130,直至所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
为了方便的画出附图,将步骤S130分为步骤S1310和步骤S1320。
步骤S1310:当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回执行步骤S110。
步骤S1320:所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
步骤S1320是在步骤S1310执行一次或多次后,才执行的,与后续的步骤S1410不同。步骤S140:所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回步骤S110。直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
为了方便的画出附图,将步骤S140分为步骤S1410和步骤S1420。
步骤S1410:所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,返回步骤S110。
步骤S1420:所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
步骤S1420是在步骤S1410执行一次或多次后执行的。不同于步骤S1310。
为了本领域技术人员更加理解本公开实施例,下面举一具体的例子对本公开实施例进行解释。请参阅图3,为本公开实施例提供检测适配器最大输出电流的方法中一种实现方式流程图。
假设终端为适配器设置的至少两个拉电流为1.2A、1.6A和2.2A,首先,验证适配器的输出能力是否满足1.6A。则步骤S101中的当前设置的拉电流为1.6A,设置该参数为FIRST_DECTET_VALUE,即FIRST_DECTET_VALUE=1.6A。
步骤S310:将FIRST_DECTET_VALU=1.6A设置为适配器当前设置的拉电流,且设置辅充电电路的流通电流assister_current1=0.5A。
如果适配器的输出能力能够满足1.6A,则主充电电路的流通电流master_current1=1.1A。
步骤S320:检测主充电电路是否有返回状态FIRST_ICO_STATE,当FIRST_ICO_STATE=0,则为失效状态,当FIRST_ICO_STATE=1,则为有效状态。
步骤S330:如果FIRST_ICO_STATE=0,说明适配器的输出能力低于1.6A,则设置ZERO_DECTET_VALUE=1.2A为适配器当前设置的拉电流,且设置辅充电电路的流通电流assister_current0=0.4A。
如果适配器的输出能力能够满足1.2A,则主充电电路的流通电流master_current0=0.8A。
在本公开实施例中终端为适配器设置了3个拉电流:1.2A、1.6A和2.2A,一般情况下,适配器都具备输出终端为适配器设置的最小的拉电流(本公开实施例为1.2A)的能力,所以在检测到适配器不具备输出1.6A的电流的能力时,可以直接将1.2A作为适配器的最大输出电流。当然也可以检测适配器是否具备输出1.2A电流的能力。
步骤S340、检测主充电电路是否有返回状态ZERO_ICO_STATE,当ZERO_ICO_STATE=0,则为失效状态,当ZERO_ICO_STATE=1,则为有效状态。
步骤S350:如果ZERO_ICO_STATE=1,则主充电电路就会返回电流ZERO_ICO_CURRENT,如果ZERO_ICO_CURRENT+assister_current0=ZE RO_DECTET_VALUE=1.2A,则说明适配器具备输出1.2A电流的能力,且1.2A为适配器的最大输出电流。
步骤S360:如果ZERO_ICO_STATE=0,则说明适配器不具备输出1.2A电流的能力。
步骤S370:如果FIRST_ICO_STATE=1,则主充电电路就会返回电流FIRST_ICO_CURRENT,如果FIRST_ICO_CURRENT+assister_current1=FIRST_DECTET_VALUE=1.6A,则说明适配器具备输出1.6A电流的能力。
也就是说,适配器至少可以输出1.6A的电流,因此需要检测取值比1.6A高的2.2A。
步骤S380:将SECOND_DECTET_VALUE=2.2A设置为适配器当前设置的拉电流,设置辅充电电路的流通电流assister_current2=1.2A。
如果适配器的输出能力能够满足1.6A,则主充电电路的流通电流master_current2=1A。
步骤S390:检测主充电电路是否有返回状态SECOND_ICO_STATE,当SECOND_ICO_STATE=0,则为失效状态,当SECOND_ICO_STATE=1,则为有效状态。
步骤S3100、如果SECOND_ICO_STATE=1,则主充电电路就会返回电流 SECOND_ICO_CURRENT,如果SECOND_ICO_CURRENT+assister_curre nt2=SECOND_DECTET_VALUE=2.2A,则说明适配器具备输出2.2A电流的能力。
一般情况下,终端为适配器设置的最大拉电流包含各个适配器的最大输出电流,不会因为终端为适配器设置的拉电流的值比适配器的最大输出电流低,而导致适配器不能发挥最大效率的问题。
步骤S3110:如果SECOND_ICO_STATE=0,则FIRST_DECTET_VALUE=1.6A为适配器的最大输出电流。
请参阅图4,为本公开实施例提供的一种检测适配器最大输出电流的装置的一种实现方式的结构示意图,该装置应用于终端,终端的充电集成电路包括主充电电路和辅充电电路,主充电电路和辅充电电路并联,且终端为适配器设置有至少两个拉电流,检测适配器最大输出电流的装置包括:设置模块401、检测模块402、第一处理模块403、第一最大输出电流确定模块404、第二处理模块405、第二最大输出电流确定模块406。
设置模块401,配置为依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流。
由于辅充电电路中的辅芯片不能返回电流值,本公开实施例巧妙的将辅充电电路的流通电流设置为已知的电流值,即已知电流。
已知电流可以随着为适配器当前设置的拉电流的取值不同而不同,当然也可以相同,只需依照适配器的拉电流、主充电电路和辅充电电路的电流值关系,进行设定即可,具体的根据实际情况而定,本公开实施例并不对此作具体限定。
例如:设定适配器的拉电流为1.2A、1.6A和2.2A。如果验证适配器的输出能力是否满足1.6A,则步骤S101中的当前设置的拉电流为1.6A;具体的,设置该参数为FIRST_DECTET_VALUE,即FIRST_DECTET_VALUE=1.6A。
将FIRST_DECTET_VALU=1.6A设置为适配器当前设置的拉电流,此时可以设置辅充电电路的流通电流assister_current1=0.5A。如果适配器的输出能力能够满足1.6A,则主充电电路的流通电流master_current1=1.1A。
如果验证适配器的输出能力是否满足1.2A,则步骤S101中的当前设置的拉电流为1.2A,设置该参数为ZERO_DECTET_VALUE,即ZERO_DECTET_VALUE=1.2A,此时可以设置辅充电电路的流通电流 assister_current0=0.4A,如果配器具备输出1.2A电流的能力,则主充电电路的流通电流master_current0=0.8A。
如果验证适配器的输出能力是否满足2.2A,则步骤S101中的当前设置的拉电流为2.2A,设置该参数为SECOND_DECTET_VALUE,即SECOND_DECTET_VALUE=2.2A,此时可以设置辅充电电路的流通电流assister_current2=1.2A,如果配器具备输出1.2A电流的能力,则主充电电路的流通电流master_current2=1A。
上述列举的例子中,忽略了终端中其他部件、主充电电路、辅充电电路的损耗,如果考虑上述损耗,上述“=”应该为约等于。
可以将已知电流写入辅充电电路的辅芯片的寄存器中,这样辅充电电路的流通电流就为已知电流了。
检测模块402,配置为在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态。
主充电电路中的主芯片可以反馈该芯片的工作状态,即该主充电电路是否可以正常的工作在该拉电流下,以设置模块401中举例为例,如果验证适配器的输出能力是否满足1.2A,则步骤S101中的当前设置的拉电流为1.2A,此时可以设置辅充电电路的流通电流assister_current0=0.4A,如果配器具备输出1.2A电流的能力,则主充电电路的流通电流master_current0=0.8A,检测模块402中的主充电电路就可以反馈该主充电电路是否在0.8A的电流下工作,如果是,工作状态一般为有效状态,如果否,工作状态一般为无效状态。
第一处理模块403,配置为当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,触发所述设置模块,直至当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流时,触发第一最大输出电流确定模块。
所述第一最大输出电流确定模块404,配置为所述第一处理模块检测到所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流时,将所述当前设置的拉电流作为所述适配器的最大输出电流。
主充电电路包括主芯片,如果适配器具备输出当前设置的拉电流,则主充 电电路可以返回有效状态,如果适配器最大输出电流低于当前设置的拉电流,则主充电电路可以返回无效状态。
主充电电路返回的工作状态为失效状态,说明适配器的最大输出电流低于当前设置的拉电流。假设终端为适配器设置的拉电流包括0.8A、1.2A、1.6A、2.2A等等,当前设置的拉电流为1.6A,如果主充电电路返回的工作状态为失效状态,说明适配器的最大输出电流低于1.6A,此时会将按照从大到小的顺序,选择1.2A赋值给为适配器当前设置的拉电流,如果主充电电路返回的工作状态仍然为失效状态,说明适配器的最大输出电流低于1.2A,则将0.8A赋值给为适配器当前设置的拉电流。
直到主充电电路返回的工作状态为有效状态,主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值,将所述当前设置的拉电流作为所述适配器的最大输出电流,假设当前设置的拉电流为0.8A,如果主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流和所述已知电流之和等于0.8A,则将当前设置的拉电流0.8A最为适配器的最大输出电流。
上述“主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值”的“等于”是忽略终端中主充电电路、辅充电电路和其他元器件的损耗,如果考虑上述损耗,则“等于”应该为“约等于”。
第二处理模块405,配置为当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,将取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,触发所述设置模块,直至当所述主充电电路返回的工作状态为失效状态,触发第二最大输出电流确定模块。
所述第二最大输出电流确定模块406,配置为所述第二处理模块检测到所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
假设终端为适配器设置的拉电流包括0.8A、1.2A、1.6A、2.2A等等,当前设置的拉电流为1.2A,如果主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流与所述已知电流之和等于1.2A,说明适配器的输出能力至少为1.2A,此时会按照从小到大的顺序,将1.6A赋值给为适配器当前设置的拉电流,如果主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流值与所述已知电流之和等于1.6A,说明适配器的输出能力至少为1.6A,说明 适配器的输出能力至少为1.6A,则将2.2A赋值给为适配器当前设置的拉电流,如果此时主充电电路返回的工作状态为失效状态,则将1.6A作为适配器的最大输出电流。
本公开实施例提供的检测适配器最大输出电流的装置,根据设置模块401为适配器当前设置的拉电流,设置辅充电电路的流通电流为已知电流,这样只需要检测主充电电路返回的流通电流,即可获得辅充电电路的流通电流和主充电电路返回的流通电流之和,从而可以确定适配器的最大输出电流。
如果适配器具备输出为适配器当前设置的拉电流的能力,则检测模块402检测到主充电电路返回的工作状态为有效状态,且能够返回主充电电路的流通电流,当第二处理模块405判断出主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流时,表明适配器至少能够输出为适配器当前设置的拉电流的能力,因此需要为适配器设置更高的拉电流,判断适配器是否具备输出更高的拉电流的能力,即将取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,再次进行检测,直至检测到主充电电路返回的工作状态为失效状态,如果主充电电路返回的工作状态为失效状态,说明适配器不具备输出该拉电流的能力,但是适配器具备输出取值低于所述当前设置的拉电流的值的拉电流,因此可以将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
如果适配器不具备输出为适配器当前设置的拉电流的能力,则检测模块402检测到的主充电电路返回的工作状态为失效状态,此时可以判断适配器是否可以输出比当前拉电流值低的拉电流,即第一处理模块403将取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,再次进行检测,直至主充电电路返回的工作状态为有效状态,且主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流的取值,此时说明适配器具备输出该拉电流的能力,因此可以将所述当前设置的拉电流作为所述适配器的最大输出电流。采用本公开实施例能够实现具备双通道充电电路的终端检测适配器最大输出电流的目的。
在实际应用中,几乎所有的适配器具备输出终端为所述适配器设置有至少两个拉电流中最小的拉电流。假设终端为适配器设置的拉电流包括0.8A、1.2A、1.6A、2.2A等等,当前设置的拉电流为1.6A,如果主充电电路返回的工作状态为 失效状态,说明适配器的最大输出电流低于1.6A,此时会将按照从大到小的顺序,选择1.2A赋值给为适配器当前设置的拉电流,如果主充电电路返回的工作状态仍然为失效状态,说明适配器的最大输出电流低于1.2A,而0.8为终端为适配器设置的拉电流中最小的拉电流,因此可以直接将0.8A最为适配器的最大输出电流。
上述装置实施例还可以包括:判断模块,配置为当所述主充电电路返回的工作状态为失效状态,判断所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流是否为最小的拉电流,如果是,则触发确定模块,如果否,则触发第一处理模块;所述确定模块,配置为将所述终端为所述适配器设置的最小的拉电流作为所述适配器的最大输出电流。
本公开实施例还提供了一种终端,该终端包括上述任一检测适配器最大输出电流的装置。本公开实施例还提供一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述实施例的检测适配器最大输出电流的方法。
请参考图5,图5是本发明实施例公开的一种移动终端的结构示意图。本发明实施例中的移动终端可以是具备触控显示屏的设备,例如:平板电脑、手机、电子阅读器、遥控器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备等。如图5所示,本发明实施例中的移动终端包括:至少一个处理器501,例如CPU,至少一个接收器503,至少一个存储器504,至少一个发送器505,至少一个通信总线502。其中,通信总线502用于实现这些组件之间的连接通信。其中,本发明实施例中装置的接收器503和发送器505可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他节点设备进行信令或数据的通信。存储器504可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器504可选的还可以是至少一个位于远离前述处理器501的存储装置。存储器504中存储一组程序代码,且所述处理器501可通过通信总线502,调用存储器504中存储的代码以执行相关的功能。
所述处理器501通过通信总线502,调用存储器504中存储的代码以执行上述实施例的检测适配器最大输出电流的方法。所述移动终端的充电集成电路包括主充电电路和辅充电电路,所述主充电电路和辅充电电路并联,且所述终端为所述适配器设置有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流 作为当前设置的拉电流,所述方法包括:依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流;在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态;当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,并依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流返回执行A1,直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
为了本领域技术人员更加理解本公开实施例提供的检测适配器最大输出电流的装置,可以参阅图3中的描述。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本公开。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。
工业实用性
根据本公开的实施例,通过根据为适配器当前设置的拉电流,设置辅充电电路的流通电流为已知电流,这样只需要检测主充电电路返回的流通电流,即可获得辅充电电路的流通电流和主充电电路返回的流通电流之和,从而可以确定适配器的最大输出电流。

Claims (10)

  1. 一种检测适配器最大输出电流的方法,应用于终端,所述方法包括:
    所述终端为所述适配器设有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,其中,所述终端包括主充电电路和辅充电电路,所述主充电电路和辅充电电路并联;
    依据为所述当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应的已知电流;
    在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态;
    当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置有至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,并依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流,直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
  2. 根据权利要求1所述检测适配器最大输出电流的方法还包括:
    当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流,直至所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流,将所述当前设置的拉电流作为所述适配器的最大输出电流。
  3. 根据权利要求2所述检测适配器最大输出电流的方法还包括:
    当所述主充电电路返回的工作状态为失效状态,判断所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流是否为最小的拉电流,
    如果取值低于所述当前设置的拉电流的值的拉电流是最小的拉电流,则将所述终端为所述适配器设置的最小的拉电流作为所述适配器的最大输出电流,
    如果取值低于所述当前设置的拉电流的值的拉电流不是最小的拉电流,则当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,则将所述为所述适配器设置的至少两个拉电流中,取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,并依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流,直至所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值的拉电流作为所述适配器的最大输出电流。
  4. 根据权利要求1至3任一所述检测适配器最大输出电流的方法,其中,依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流包括:
    依据为所述适配器当前设置的拉电流,在所述辅充电电路中的辅芯片的寄存器中写入所述已知电流。
  5. 一种检测适配器最大输出电流的装置,应用于终端,所述终端的充电集成电路包括主充电电路和辅充电电路,所述主充电电路和辅充电电路并联,且所述终端为所述适配器设置有至少两个拉电流,从所述至少两个拉电流中选择一个拉电流作为当前设置的拉电流,所述装置包括:
    设置模块,配置为依据为所述适配器当前设置的拉电流,将所述辅充电电路的流通电流设置为与所述当前设置的拉电流对应已知电流;
    检测模块,配置为在所述当前设置的拉电流下,检测所述主充电电路返回的工作状态;
    第一处理模块,配置为当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流与所述已知电流之和等于所述当前设置的拉电流,将取值高于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,触发所述设置模块,直至当所述主充电电路返回的工作状态为失效状态,触发第一最大输出电流确定模块;
    所述第一最大输出电流确定模块,配置为所述第二处理模块检测到所述主充电电路返回的工作状态为失效状态,将取值低于所述当前设置的拉电流的值 的拉电流作为所述适配器的最大输出电流。
  6. 根据权利要求5所述检测适配器最大输出电流的装置还包括:
    第二处理模块,配置为当所述主充电电路返回的工作状态为失效状态时,将所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流作为当前设置的拉电流,触发所述设置模块,直至当所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流时,触发第二最大输出电流确定模块;
    所述第二最大输出电流确定模块,配置为所述第一处理模块检测到所述主充电电路返回的工作状态为有效状态,且所述主充电电路返回的流通电流和所述已知电流之和等于所述当前设置的拉电流时,将所述当前设置的拉电流作为所述适配器的最大输出电流。
  7. 根据权利要求5所述检测适配器最大输出电流的装置,还包括:
    判断模块,配置为当所述主充电电路返回的工作状态为失效状态,判断所述为所述适配器设置有至少两个拉电流中,取值低于所述当前设置的拉电流的值的拉电流是否为最小的拉电流,如果取值低于所述当前设置的拉电流的值的拉电流是最小的拉电流,则触发确定模块,如果取值低于所述当前设置的拉电流的值的拉电流不是最小的拉电流,则触发第一处理模块;
    所述确定模块,配置为将所述终端为所述适配器设置的最小的拉电流作为所述适配器的最大输出电流。
  8. 根据权利要求5至7任一所述检测适配器最大输出电流的装置,其中,所述设置模块包括:
    设置单元,配置为依据为所述适配器当前设置的拉电流,在所述辅充电电电路中的辅芯片的寄存器中写入所述已知电流。
  9. 一种终端,包括权利要求5至8任一所述检测适配器最大输出电流的装置。
  10. 一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-4任一项所述的检测适配器最大输出电流的方法。
PCT/CN2016/092479 2016-03-31 2016-07-30 检测适配器最大输出电流的方法、装置及终端 Ceased WO2017166555A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610201238.X 2016-03-31
CN201610201238.XA CN105759103B (zh) 2016-03-31 2016-03-31 一种检测适配器最大输出电流的方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2017166555A1 true WO2017166555A1 (zh) 2017-10-05

Family

ID=56347077

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/092479 Ceased WO2017166555A1 (zh) 2016-03-31 2016-07-30 检测适配器最大输出电流的方法、装置及终端

Country Status (2)

Country Link
CN (1) CN105759103B (zh)
WO (1) WO2017166555A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105759103B (zh) * 2016-03-31 2018-12-25 宇龙计算机通信科技(深圳)有限公司 一种检测适配器最大输出电流的方法、装置及终端
CN106771503A (zh) * 2017-02-15 2017-05-31 广东小天才科技有限公司 电压电流监控装置及方法
CN110120695B (zh) * 2019-04-29 2021-01-29 华为技术有限公司 一种充电方法及终端设备
CN114696403B (zh) * 2020-12-31 2024-02-02 Oppo广东移动通信有限公司 电源适配器

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101752894A (zh) * 2008-11-28 2010-06-23 飞利浦建兴数位科技股份有限公司 具内部辅助电源的通用序列总线外接装置
CN103730933A (zh) * 2013-12-23 2014-04-16 联想(北京)有限公司 一种充电方法及电子设备
US20140312849A1 (en) * 2013-04-18 2014-10-23 Samsung Sdi Co., Ltd. External battery
CN104124734A (zh) * 2014-07-22 2014-10-29 深圳市富满电子有限公司 一种充电系统及充电方法
CN104269585A (zh) * 2014-10-17 2015-01-07 广东欧珀移动通信有限公司 一种充电方法和移动终端
CN104300630A (zh) * 2014-10-17 2015-01-21 广东欧珀移动通信有限公司 充电控制装置及方法
CN104756356A (zh) * 2013-07-18 2015-07-01 联发科技股份有限公司 具有最大输出功率点跟踪能力的方法、充电装置及适配器
CN105406554A (zh) * 2015-12-24 2016-03-16 魅族科技(中国)有限公司 一种充电控制方法及充电控制装置
CN105759103A (zh) * 2016-03-31 2016-07-13 宇龙计算机通信科技(深圳)有限公司 一种检测适配器最大输出电流的方法、装置及终端

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101752894A (zh) * 2008-11-28 2010-06-23 飞利浦建兴数位科技股份有限公司 具内部辅助电源的通用序列总线外接装置
US20140312849A1 (en) * 2013-04-18 2014-10-23 Samsung Sdi Co., Ltd. External battery
CN104756356A (zh) * 2013-07-18 2015-07-01 联发科技股份有限公司 具有最大输出功率点跟踪能力的方法、充电装置及适配器
CN103730933A (zh) * 2013-12-23 2014-04-16 联想(北京)有限公司 一种充电方法及电子设备
CN104124734A (zh) * 2014-07-22 2014-10-29 深圳市富满电子有限公司 一种充电系统及充电方法
CN104269585A (zh) * 2014-10-17 2015-01-07 广东欧珀移动通信有限公司 一种充电方法和移动终端
CN104300630A (zh) * 2014-10-17 2015-01-21 广东欧珀移动通信有限公司 充电控制装置及方法
CN105406554A (zh) * 2015-12-24 2016-03-16 魅族科技(中国)有限公司 一种充电控制方法及充电控制装置
CN105759103A (zh) * 2016-03-31 2016-07-13 宇龙计算机通信科技(深圳)有限公司 一种检测适配器最大输出电流的方法、装置及终端

Also Published As

Publication number Publication date
CN105759103B (zh) 2018-12-25
CN105759103A (zh) 2016-07-13

Similar Documents

Publication Publication Date Title
EP3340424B1 (en) Electronic device and method of controlling charging of the same
CN104350808B (zh) 用于使用移动来将移动通信设备安全地配对的设备、方法和系统
US10528410B2 (en) Apparatus, method and system to exchange error information in a unified protocol communication
US9860659B2 (en) Method and apparatus for identifying foreign substances in connectors
CN110072219A (zh) 用于无线接近配对的电子设备、方法和计算机可读介质
US9398432B2 (en) Electronic device and method for controlling emergency call in electronic device
WO2017166555A1 (zh) 检测适配器最大输出电流的方法、装置及终端
JP6303198B2 (ja) ポータブル通信デバイス上でオペレーティングシステムをリカバーするポータブル通信デバイス、方法、及びプログラム
WO2015024494A1 (zh) 应用的分享方法及装置
US20190260093A1 (en) Method for controlling fast charging, system for controlling fast charging, and terminal device
CN106575169A (zh) 消除充电器对触摸屏的干扰的方法和移动终端
CN108021306A (zh) 应用界面显示方法及相关设备
CN108052407A (zh) 一种应用程序崩溃防护方法、装置、设备及存储介质
US11474579B2 (en) Verified high-power transition and fast charging with pre-boot scaling
CN108054794A (zh) 一种用于智能终端的充放电方法、装置、终端及存储介质
CN104950739A (zh) 电子设备、音频设备以及将电能供给至音频设备的方法
CN108121641A (zh) 状态信息显示方法及相关设备
US10579131B2 (en) Apparatus and method for applying suitable voltage to a component of a system-on-chip
US10237087B2 (en) Method for controlling transmission speed and electronic device thereof
US20200012271A1 (en) Electronic device and method for controlling operation of electronic device
US8543160B2 (en) System for antenna extension and method thereof
CN108038359A (zh) 解锁方法及相关产品
WO2017128673A1 (zh) 一种复用Flash ROM的双通道移动终端
CN110175450B (zh) 一种信息的处理方法、装置及设备
US20180018292A1 (en) Method and apparatus for detecting and resolving bus hang in a bus controlled by an interface clock

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: 16896327

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896327

Country of ref document: EP

Kind code of ref document: A1