CN105226337A - A kind of method and apparatus of terminal charge - Google Patents
A kind of method and apparatus of terminal charge Download PDFInfo
- Publication number
- CN105226337A CN105226337A CN201510571779.7A CN201510571779A CN105226337A CN 105226337 A CN105226337 A CN 105226337A CN 201510571779 A CN201510571779 A CN 201510571779A CN 105226337 A CN105226337 A CN 105226337A
- Authority
- CN
- China
- Prior art keywords
- usb interface
- terminal
- type
- charging mode
- charging
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Chemical & Material Sciences (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Electrochemistry (AREA)
- General Chemical & Material Sciences (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
本发明实施例公开了一种终端充电的方法和装置,所述方法包括:在终端通过数据线与电脑的USB接口进行连接后,获取用户输入的所述USB接口的接口类型;根据所述USB接口的接口类型,确定终端的充电方式,并指示所述电脑以所述充电方式对终端进行充电。本发明实施例提供的技术方案,通过电脑对终端进行充电时,根据终端连接到的电脑的USB接口的接口类型,对终端的充电方式自适应调整的技术手段,解决了现有技术中始终按照充电电流较小的充电方式进行充电导致的不能有效利用电脑USB接口能够提供的较高电流的技术问题,优化了终端通过电脑进行充电的充电方式。
The embodiment of the present invention discloses a method and device for charging a terminal. The method includes: after the terminal is connected to the USB interface of the computer through a data cable, obtaining the interface type of the USB interface input by the user; The interface type of the interface determines the charging mode of the terminal, and instructs the computer to charge the terminal in the charging mode. In the technical solution provided by the embodiment of the present invention, when the terminal is charged by the computer, according to the interface type of the USB interface of the computer to which the terminal is connected, the technical means of adaptively adjusting the charging mode of the terminal solves the problem of The technical problem of not being able to effectively use the higher current provided by the USB interface of the computer caused by the charging method with a small charging current has optimized the charging method of the terminal through the computer.
Description
技术领域technical field
本发明实施例涉及终端技术领域,尤其涉及一种终端充电的方法和装置。The embodiments of the present invention relate to the technical field of terminals, and in particular, to a method and device for charging a terminal.
背景技术Background technique
随着终端技术的不断发展,各种各样的终端设备已深入人们生活的方方面面,成为人们在生活、工作和娱乐中不可或缺的重要工具,例如,手机、数码相机、平板电脑等。而这些终端上的功能越来越多,屏幕越来越大,其耗电量也越来越大,导致电池的使用时间越来越短。With the continuous development of terminal technology, various terminal devices have penetrated into all aspects of people's lives and become indispensable and important tools in people's life, work and entertainment, such as mobile phones, digital cameras, and tablet computers. And these terminals have more and more functions, screens are getting bigger and bigger, and their power consumption is also getting bigger and bigger, resulting in shorter and shorter battery life.
目前,终端的充电方式有很多,可以通过适配的充电器进行充电,也可以将终端与电脑(包括笔记本电脑和台式电脑)通过数据线连接进行充电,通过与电脑连接来对终端进行充电的方式方便快捷,特别是在携带笔记本外出的时候,给用户带来了良好的体验。现在大部分的电脑都已经配备USB3.0接口,但是很多终端的USB接口大都为USB2.0接口,所以终端在连接电脑的USB3.0接口时,依然会将充电方式判断为USB2.0接口对应的充电方式,充电时电流会限制在500mA、或者500mA以内,不能有效利用电脑的USB3.0接口能够提供的1A甚至更高的电流,导致终端通过电脑USB接口充电时充电速度很慢。At present, there are many ways to charge the terminal. It can be charged through an adapted charger, or it can be charged by connecting the terminal to a computer (including a notebook computer and a desktop computer) through a data cable, and charging the terminal by connecting it to a computer. The method is convenient and quick, especially when carrying a notebook to go out, and brings a good experience to the user. Now most of the computers are equipped with USB3.0 interface, but the USB interface of many terminals is mostly USB2.0 interface, so when the terminal is connected to the USB3.0 interface of the computer, the charging method will still be judged as the corresponding USB2.0 interface. The charging method, the current will be limited to 500mA or within 500mA during charging, and the 1A or even higher current that the computer's USB3.0 interface can provide cannot be effectively used, resulting in a very slow charging speed when the terminal is charged through the computer's USB interface.
发明内容Contents of the invention
本发明实施例提供一种终端充电的方法和装置,以适应性的调整终端通过电脑进行充电时的充电方式。Embodiments of the present invention provide a method and device for charging a terminal, so as to adaptively adjust the charging mode when the terminal is charged through a computer.
在第一方面,本发明实施例提供了一种终端充电的方法,包括:In a first aspect, an embodiment of the present invention provides a method for charging a terminal, including:
在终端通过数据线与电脑的USB接口进行连接后,获取用户输入的所述USB接口的接口类型;After the terminal is connected to the USB interface of the computer through the data cable, the interface type of the USB interface input by the user is obtained;
根据所述USB接口的接口类型,确定终端的充电方式,并指示所述电脑以所述充电方式对终端进行充电。Determine the charging mode of the terminal according to the interface type of the USB interface, and instruct the computer to charge the terminal in the charging mode.
在第二方面,本发明实施例还提供一种终端充电的装置,包括:In the second aspect, the embodiment of the present invention also provides a terminal charging device, including:
USB接口类型获取单元,用于在终端通过数据线与电脑的USB接口进行连接后,获取用户输入的所述USB接口的接口类型;The USB interface type acquisition unit is used to acquire the interface type of the USB interface input by the user after the terminal is connected to the USB interface of the computer through the data cable;
充电方式确定单元,用于根据所述USB接口的接口类型,确定终端的充电方式,并指示所述电脑以所述充电方式对终端进行充电。The charging mode determining unit is configured to determine the charging mode of the terminal according to the interface type of the USB interface, and instruct the computer to charge the terminal in the charging mode.
本发明实施例提供的终端充电的方法和装置,通过电脑对终端进行充电时,根据终端连接到的电脑的USB接口的接口类型,对终端的充电方式自适应调整的技术手段,解决了现有技术中始终按照充电电流较小的充电方式进行充电导致的不能有效利用电脑USB接口能够提供的较高电流的技术问题,优化了终端通过电脑进行充电的充电方式。The terminal charging method and device provided by the embodiments of the present invention, when charging the terminal through the computer, according to the interface type of the USB interface of the computer connected to the terminal, the technical means of adaptively adjusting the charging mode of the terminal solves the problem of existing problems. In the technology, the technical problem of not being able to effectively use the higher current provided by the computer's USB interface caused by always charging according to the charging method with a small charging current has optimized the charging method for the terminal to be charged through the computer.
附图说明Description of drawings
图1是本发明实施例一提供的终端充电的方法的流程图;FIG. 1 is a flowchart of a method for charging a terminal provided in Embodiment 1 of the present invention;
图2是本发明实施例二提供的终端充电的方法的流程图;FIG. 2 is a flowchart of a method for charging a terminal provided in Embodiment 2 of the present invention;
图3是本发明实施例三提供的终端充电的装置的结构示意图。FIG. 3 is a schematic structural diagram of a device for charging a terminal provided in Embodiment 3 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
实施例一Embodiment one
图1给出了本发明实施例一提供的终端充电的方法的流程图,本实施例的方法可以由终端充电的装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为终端的一部分设置在所述终端内部。Figure 1 shows the flow chart of the terminal charging method provided by Embodiment 1 of the present invention. The method of this embodiment can be executed by a terminal charging device, which can be implemented by means of hardware and/or software. The device Can be arranged inside the terminal as a part of the terminal.
如图1所示,本实施例提供的终端充电的方法具体包括以下步骤:As shown in FIG. 1, the terminal charging method provided in this embodiment specifically includes the following steps:
步骤101,在终端通过数据线与电脑的USB接口进行连接后,获取用户输入的所述USB接口的接口类型。Step 101, after the terminal is connected to the USB interface of the computer through the data cable, the interface type of the USB interface input by the user is obtained.
本实施例中所述的终端包括但不限定于手机、平板电脑、笔记本、相机等电子设备。The terminals described in this embodiment include but are not limited to mobile phones, tablet computers, notebooks, cameras and other electronic devices.
其中,所述获取用户输入的所述USB接口的接口类型的方式可以为在终端的用户界面上弹出接口类型的选择窗口,并获取用户选择的所述USB接口的接口类型,也可以为获取用户在终端的用户界面上输入的所述USB接口的接口类型,也可以为其他能够获取用户输入的所述USB接口的接口类型的方式,本实施例对此不做限制。Wherein, the method of obtaining the interface type of the USB interface input by the user may be to pop up an interface type selection window on the user interface of the terminal, and obtain the interface type of the USB interface selected by the user, or obtain the user's The interface type of the USB interface input on the user interface of the terminal may also be in another manner capable of obtaining the interface type of the USB interface input by the user, which is not limited in this embodiment.
步骤102,根据所述USB接口的接口类型,确定终端的充电方式,并指示所述电脑以所述充电方式对终端进行充电。Step 102: Determine the charging mode of the terminal according to the interface type of the USB interface, and instruct the computer to charge the terminal in the charging mode.
该步骤根据所述USB接口的接口类型,确定终端的充电方式,而不是简单的将终端的充电方式始终确定为一种充电电流较小的充电方式,可以根据USB接口的接口类型,适应性的调整终端的充电方式。例如,所述USB接口的接口类型为USB3.0时,则可以将终端的充电方式确定为与USB3.0接口可提供的充电电流匹配的充电方式,在所述USB接口的接口类型为USB2.0或不能确定时,确定终端的充电方式为与USB2.0接口可提供的充电电流匹配的充电方式,而不是现有技术中始终将终端的充电方式确定为USB2.0接口对应的充电方式,可以有效利用电脑的USB接口提供的电流。This step determines the charging mode of the terminal according to the interface type of the USB interface, instead of simply determining the charging mode of the terminal as a charging mode with a small charging current, it can be adaptively determined according to the interface type of the USB interface. Adjust the charging method of the terminal. For example, when the interface type of the USB interface is USB3.0, the charging mode of the terminal may be determined as a charging mode matching the charging current provided by the USB3.0 interface, and the interface type of the USB interface is USB2.0. 0 or cannot be determined, determine that the charging mode of the terminal is a charging mode that matches the charging current provided by the USB2.0 interface, instead of always determining the charging mode of the terminal as the charging mode corresponding to the USB2.0 interface in the prior art, It can effectively use the current provided by the USB interface of the computer.
其中,该步骤中所述的指示所述电脑以所述充电方式对终端进行充电具体包括:终端向电脑发送所述充电方式对应的充电方式控制指令,以指示电脑通过所述USB接口向终端输入所述充电方式下对应的阶梯型电流,所述阶梯型电流为电流值依次增大的电流;接收电脑通过所述USB接口输入的所述阶梯型电流,对所述终端进行充电。Wherein, instructing the computer to charge the terminal with the charging method described in this step specifically includes: the terminal sends a charging method control instruction corresponding to the charging method to the computer, so as to instruct the computer to input to the terminal through the USB interface The corresponding ladder-type current in the charging mode, the ladder-type current is a current whose current value increases sequentially; receiving the ladder-type current input by the computer through the USB interface to charge the terminal.
本实施例提供的终端充电的方法,通过电脑对终端进行充电时,根据终端连接到的电脑的USB接口的接口类型,对终端的充电方式自适应调整的技术手段,解决了现有技术中始终按照充电电流较小的充电方式进行充电导致的不能有效利用电脑能够提供的较高电流的技术问题,优化了终端通过电脑进行充电的充电方式。The method for charging the terminal provided in this embodiment is a technical means for adaptively adjusting the charging mode of the terminal according to the interface type of the USB interface of the computer connected to the terminal when the terminal is charged by the computer, which solves the problem that is always present in the prior art. According to the technical problem of not being able to effectively use the higher current that the computer can provide due to the charging method with a small charging current, the charging method of the terminal through the computer is optimized.
实施例二Embodiment two
图2给出了本发明实施例二提供的终端充电的方法的流程图。本实施例以上述实施例为基础进行优化。在本实施例中,将根据所述USB接口的接口类型,确定终端的充电方式,具体优化为:在所述USB接口的接口类型为预设类型时,确定终端的充电方式为第一充电方式,否则,确定终端的充电方式为第二充电方式。FIG. 2 shows a flowchart of a method for charging a terminal provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. In this embodiment, the charging mode of the terminal will be determined according to the interface type of the USB interface, specifically optimized as follows: when the interface type of the USB interface is a preset type, determine that the charging mode of the terminal is the first charging mode , otherwise, determine that the charging mode of the terminal is the second charging mode.
进一步的,将所述在所述USB接口的接口类型为预设类型时,确定终端的充电方式为第一充电方式进一步优化为:在所述USB接口的接口类型为预设类型时,判断所述USB接口的带载能力是否满足第一预设阈值;在所述USB接口的带载能力满足第一预设阈值时,确定终端的充电方式为第一充电方式。Further, when the interface type of the USB interface is a preset type, determining that the charging mode of the terminal is the first charging mode is further optimized as: when the interface type of the USB interface is a preset type, judging that the Whether the loading capacity of the USB interface meets the first preset threshold; when the loading capacity of the USB interface meets the first preset threshold, determine that the charging mode of the terminal is the first charging mode.
相应的,本实施例提供的终端充电的方法具体包括以下步骤:Correspondingly, the terminal charging method provided in this embodiment specifically includes the following steps:
步骤201,在终端通过数据线与电脑的USB接口进行连接后,获取用户输入的所述USB接口的接口类型。Step 201, after the terminal is connected to the USB interface of the computer through the data cable, the interface type of the USB interface input by the user is acquired.
步骤202,判断所述USB接口的接口类型是否为预设类型。Step 202, judging whether the interface type of the USB interface is a preset type.
在所述USB接口的接口类型为预设类型时,执行步骤203,否则执行步骤205。When the interface type of the USB interface is a preset type, step 203 is performed; otherwise, step 205 is performed.
步骤203,判断所述USB接口的带载能力是否满足第一预设阈值。Step 203, judging whether the carrying capacity of the USB interface meets a first preset threshold.
在所述USB接口的带载能力满足第一预设阈值时,执行步骤204,否则执行步骤205。When the carrying capacity of the USB interface meets the first preset threshold, step 204 is performed; otherwise, step 205 is performed.
该步骤的作用是:判断所述USB接口的真实带载能力是否满足第一预设阈值。因为,在实际使用过程中,所述USB接口的接口类型为预设类型时,该USB接口可提供的电流(带载能力)不一定能够达到该预设类型所标注的带载能力,例如,USB3.0接口类型标注的带载能力为1安,而实际能够提供的最大电流可能为800毫安。因此,在所述USB接口的接口类型为预设类型时,判断USB接口的带载能力是否满足第一预设阈值,在满足第一预设阈值时,就认为该USB接口对应的充电方式可以为该预设类型对应的充电方式。例如,所述预设类型为USB3.0,所述第一预设阈值为700毫安,则,在该USB接口的带载能力达到700毫安时,则认为该USB接口对应的充电方式可以为USB3.0接口类型对应的第一充电方式。The function of this step is to judge whether the real carrying capacity of the USB interface satisfies the first preset threshold. Because, in actual use, when the interface type of the USB interface is a preset type, the current (load capacity) that the USB interface can provide may not necessarily reach the load capacity marked by the preset type, for example, The load capacity marked on the USB3.0 interface type is 1A, but the actual maximum current that can be provided may be 800mA. Therefore, when the interface type of the USB interface is a preset type, it is judged whether the carrying capacity of the USB interface meets the first preset threshold, and when the first preset threshold is met, it is considered that the charging method corresponding to the USB interface can It is the charging method corresponding to the preset type. For example, if the preset type is USB3.0, and the first preset threshold value is 700 mA, then when the carrying capacity of the USB interface reaches 700 mA, it is considered that the charging method corresponding to the USB interface can It is the first charging method corresponding to the USB3.0 interface type.
在所述USB接口的接口类型为预设类型时,判断所述USB接口的带载能力是否满足第一预设阈值具体包括:在所述USB接口的接口类型为预设类型时,接收电脑通过USB接口输入的阶梯型电流,所述阶梯型电流为电流值依次增大的电流;定时获取终端的充电电路的电压值;如果所述电压值小于第二预设阈值,则将上一个阶梯电流值作为USB接口的带载能力;如果所述电压值大于第二预设阈值,且当前阶梯电流值达到所述USB接口对应的预设带载能力,则将所述预设带载能力作为USB接口的带载能力;判断所述USB接口的带载能力是否满足第一预设阈值。When the interface type of the USB interface is a preset type, judging whether the loading capacity of the USB interface meets the first preset threshold specifically includes: when the interface type of the USB interface is a preset type, the receiving computer passes The ladder-type current input by the USB interface, the ladder-type current is a current whose current value increases sequentially; the voltage value of the charging circuit of the terminal is obtained regularly; if the voltage value is less than the second preset threshold value, the previous ladder current The value is used as the loading capacity of the USB interface; if the voltage value is greater than the second preset threshold, and the current ladder current value reaches the preset loading capacity corresponding to the USB interface, then the preset loading capacity is used as the USB The carrying capacity of the interface: judging whether the carrying capacity of the USB interface meets a first preset threshold.
根据现有技术可以理解的是,在电脑向终端进行充电的过程中,终端中的充电电路的电压值会逐渐减小,直至达到所述第二预设阈值,例如,电脑提供给终端充电电路一个5V电压,所述第二预设阈值可以为4.6V,在所述充电电路的电压值在5V至4.6V之间的过程中,电脑向终端输入阶梯型电流。According to the prior art, it can be understood that when the computer is charging the terminal, the voltage value of the charging circuit in the terminal will gradually decrease until it reaches the second preset threshold. A voltage of 5V, the second preset threshold may be 4.6V, and when the voltage of the charging circuit is between 5V and 4.6V, the computer inputs a ladder current to the terminal.
如果所述电压值小于第二预设阈值,则将上一个阶梯电流值作为USB接口的带载能力,例如,在第一时刻检测到终端的充电电路的电压值为4.7V,电脑向终端输入的阶梯型电流值为700毫安,在下一时刻检测到终端的充电电路的电压值为4.5V,小于第二预设阈值4.6V,则将上一时刻检测到的阶梯型电流值700毫安作为该USB接口的带载能力。If the voltage value is less than the second preset threshold value, the last step current value is used as the loading capacity of the USB interface. For example, when the voltage value of the charging circuit of the terminal is detected to be 4.7V at the first moment, the computer inputs to the terminal The stepped current value of the terminal is 700 mA, and the voltage value of the charging circuit of the terminal is detected to be 4.5V at the next moment, which is less than the second preset threshold value of 4.6V, and the stepped current value detected at the previous moment is 700 mA. As the carrying capacity of the USB interface.
如果所述电压值大于第二预设阈值,且当前阶梯型电流值尚未达到该USB接口对应的预设带载能力,则终端继续接收电脑输入的阶梯型电流。其中,所述预设带载能力可以为该USB接口的接口类型标注的带载能力。If the voltage value is greater than the second preset threshold and the current step current value has not yet reached the preset load capacity corresponding to the USB interface, the terminal continues to receive the step current input by the computer. Wherein, the preset loading capacity may be the loading capacity marked on the interface type of the USB interface.
进一步的,还包括以下步骤:如果所述USB接口的带载能力小于第三阈值,则关闭充电功能。这样设置的原因是:以保证在电脑的USB接口的带载能力小于第三阈值时,例如,电脑的电量很小或电脑出现故障等情况时,关闭充电功能,以保护电脑和终端。Further, the method further includes the following step: if the carrying capacity of the USB interface is less than the third threshold, turning off the charging function. The reason for this setting is to ensure that when the loading capacity of the USB interface of the computer is less than the third threshold, for example, when the power of the computer is low or the computer fails, the charging function is turned off to protect the computer and the terminal.
其中,所述第三阈值可以为阶梯型电流中的最小电流值,当然,该值可以根据具体需要进行设置,本实施例对此不进行限定。Wherein, the third threshold may be the minimum current value in the ladder current, of course, this value may be set according to specific needs, which is not limited in this embodiment.
步骤204,确定终端的充电方式为第一充电方式,并指示所述电脑以第一充电方式对终端进行充电。Step 204, determine that the charging mode of the terminal is the first charging mode, and instruct the computer to charge the terminal in the first charging mode.
该步骤具体可以包括:终端向电脑发送第一充电方式控制指令,以指示电脑通过所述USB接口向终端输入从第四预设阈值到所述USB接口的带载能力值的阶梯型电流;接收电脑通过所述USB接口输入的从第四预设阈值到所述USB接口的带载能力值的阶梯型电流,对所述终端进行充电。This step may specifically include: the terminal sends a first charging mode control instruction to the computer to instruct the computer to input a ladder current from the fourth preset threshold value to the carrying capacity value of the USB interface to the terminal through the USB interface; receiving The computer charges the terminal through the stepped current input by the USB interface from the fourth preset threshold value to the carrying capacity value of the USB interface.
例如,阶梯型电流为100毫安至1安且间隔为100毫安的电流,则,所述第四预设阈值可以为500毫安,所述USB接口的带载能力值可以为1安,则终端指示电脑通过该USB接口向终端输入从500毫安到1安的阶梯型电流。For example, if the step current is 100 mA to 1 A with an interval of 100 mA, the fourth preset threshold may be 500 mA, and the carrying capacity value of the USB interface may be 1 A, Then the terminal instructs the computer to input a stepped current from 500mA to 1A to the terminal through the USB interface.
这样设置的好处是:向终端输入从第四预设阈值到所述USB接口的带载能力值的阶梯型电流,而不是从阶梯型电流最小值的电流开始输入(例如,100毫安),在满足安全充电的前提下,可以加快对终端充电的速度。The advantage of such a setting is: input a ladder-type current from the fourth preset threshold value to the carrying capacity value of the USB interface to the terminal, instead of starting from the current of the minimum value of the ladder-type current (for example, 100 milliamperes), Under the premise of satisfying safe charging, the charging speed of the terminal can be accelerated.
步骤205,确定终端的充电方式为第二充电方式,并指示所述电脑以第二充电方式对终端进行充电。Step 205, determine that the charging mode of the terminal is the second charging mode, and instruct the computer to charge the terminal in the second charging mode.
在所述第一充电方式为USB3.0接口类型对应的充电方式时,所述第二充电方式可以为USB2.0接口类型对应的充电方式。When the first charging method is a charging method corresponding to a USB3.0 interface type, the second charging method may be a charging method corresponding to a USB2.0 interface type.
本实施例提供的终端充电的方法,在电脑对终端进行充电时,判断终端所连接的电脑的USB接口的接口类型是否为预设类型,在所述USB接口的接口类型是否为预设类型时,确定终端的充电方式为第一充电方式,并指示所述电脑以第一充电方式对终端进行充电,否则,确定终端的充电方式为第二充电方式,并指示所述电脑以第二充电方式对终端进行充电,通过自适应的调整终端的充电方式,可以有效利用所连接的电脑的USB接口能够提供的电流,加快终端的充电速度,减小终端的充电时间。In the terminal charging method provided in this embodiment, when the computer charges the terminal, it is judged whether the interface type of the USB interface of the computer connected to the terminal is a preset type, and when the interface type of the USB interface is a preset type, , determine that the charging method of the terminal is the first charging method, and instruct the computer to charge the terminal in the first charging method, otherwise, determine that the charging method of the terminal is the second charging method, and instruct the computer to charge the terminal in the second charging method To charge the terminal, by adaptively adjusting the charging mode of the terminal, the current that can be provided by the USB interface of the connected computer can be effectively used to speed up the charging speed of the terminal and reduce the charging time of the terminal.
实施例三Embodiment Three
图3给出了本发明实施例三提供的终端充电的装置的结构示意图。如图3所示,本实施例提供的终端充电的装置包括:FIG. 3 shows a schematic structural diagram of a device for charging a terminal provided in Embodiment 3 of the present invention. As shown in Figure 3, the terminal charging device provided in this embodiment includes:
USB接口类型获取单元31,用于在终端通过数据线与电脑的USB接口进行连接后,获取用户输入的所述USB接口的接口类型;The USB interface type acquisition unit 31 is used to acquire the interface type of the USB interface input by the user after the terminal is connected to the USB interface of the computer through the data cable;
充电方式确定单元32,用于根据所述USB接口的接口类型,确定终端的充电方式,并指示所述电脑以所述充电方式对终端进行充电。The charging mode determining unit 32 is configured to determine the charging mode of the terminal according to the interface type of the USB interface, and instruct the computer to charge the terminal in the charging mode.
优选的是,所述充电方式确定单元32具体用于:Preferably, the charging method determining unit 32 is specifically used for:
在所述USB接口的接口类型为预设类型时,确定终端的充电方式为第一充电方式,否则,确定终端的充电方式为第二充电方式。When the interface type of the USB interface is a preset type, determine that the charging mode of the terminal is the first charging mode; otherwise, determine that the charging mode of the terminal is the second charging mode.
进一步的,所述充电方式确定单元32包括:Further, the charging mode determination unit 32 includes:
带载能力判断子单元,用于在所述USB接口的接口类型为预设类型时,判断所述USB接口的带载能力是否满足第一预设阈值;A loading capacity judging subunit, configured to determine whether the loading capacity of the USB interface meets a first preset threshold when the interface type of the USB interface is a preset type;
充电方式确定子单元,用于在所述USB接口的带载能力满足第一预设阈值时,确定终端的充电方式为第一充电方式。The charging mode determining subunit is configured to determine that the charging mode of the terminal is the first charging mode when the carrying capacity of the USB interface meets a first preset threshold.
优选的是,所述带载能力判断子单元具体用于:Preferably, the carrying capacity judging subunit is specifically used for:
在所述USB接口的接口类型为预设类型时,接收电脑通过USB接口输入的阶梯型电流,所述阶梯型电流为电流值依次增大的电流;When the interface type of the USB interface is a preset type, receiving a ladder-type current input by the computer through the USB interface, the ladder-type current is a current whose current value increases sequentially;
定时获取终端的充电电路的电压值;Obtain the voltage value of the charging circuit of the terminal regularly;
如果所述电压值小于第二预设阈值,则将上一个阶梯电流值作为USB接口的带载能力;If the voltage value is less than the second preset threshold value, the previous step current value is used as the carrying capacity of the USB interface;
如果所述电压值大于第二预设阈值,且当前阶梯电流值达到所述USB接口对应的预设带载能力,则将所述预设带载能力作为USB接口的带载能力;If the voltage value is greater than the second preset threshold, and the current ladder current value reaches the preset load capacity corresponding to the USB interface, then use the preset load capacity as the load capacity of the USB interface;
判断所述USB接口的带载能力是否满足第一预设阈值。It is judged whether the carrying capacity of the USB interface meets a first preset threshold.
进一步的,该装置还包括:Further, the device also includes:
充电功能关闭单元,用于如果所述USB接口的带载能力小于第三阈值,则关闭充电功能。The charging function disabling unit is configured to disable the charging function if the carrying capacity of the USB interface is less than the third threshold.
进一步的,所述充电方式为第一充电方式,所述充电方式确定单元具体用于:Further, the charging mode is the first charging mode, and the charging mode determining unit is specifically used for:
终端向电脑发送第一充电方式控制指令,以指示电脑通过所述USB接口向终端输入从第四预设阈值到所述USB接口的带载能力值的阶梯型电流;The terminal sends a first charging mode control instruction to the computer to instruct the computer to input a step-type current from the fourth preset threshold value to the carrying capacity value of the USB interface to the terminal through the USB interface;
接收电脑通过所述USB接口输入的从第四预设阈值到所述USB接口的带载能力值的阶梯型电流,对所述终端进行充电。The terminal is charged by receiving the stepped current from the fourth preset threshold value to the carrying capacity value of the USB interface input by the computer through the USB interface.
优选的是,所述预设接口类型为USB3.0。Preferably, the preset interface type is USB3.0.
本发明实施例提供的终端充电的装置可执行本发明任意实施例提供的终端充电的方法,具备执行方法相应的功能模块和有益效果。The device for charging a terminal provided in an embodiment of the present invention can execute the method for charging a terminal provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
上述仅为本发明的较佳实施例及所运用的技术原理。本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由权利要求的范围决定。The foregoing are only preferred embodiments of the present invention and the applied technical principles. The present invention is not limited to the specific embodiments described here, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the claims.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510571779.7A CN105226337B (en) | 2015-09-09 | 2015-09-09 | A kind of method and apparatus of terminal charge |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510571779.7A CN105226337B (en) | 2015-09-09 | 2015-09-09 | A kind of method and apparatus of terminal charge |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105226337A true CN105226337A (en) | 2016-01-06 |
CN105226337B CN105226337B (en) | 2017-11-14 |
Family
ID=54995142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510571779.7A Expired - Fee Related CN105226337B (en) | 2015-09-09 | 2015-09-09 | A kind of method and apparatus of terminal charge |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105226337B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105867570A (en) * | 2016-03-24 | 2016-08-17 | 联想(北京)有限公司 | An information processing method and an electronic apparatus |
CN107332316A (en) * | 2017-08-23 | 2017-11-07 | 努比亚技术有限公司 | Staged charging method, mobile terminal and computer-readable recording medium |
WO2018035970A1 (en) * | 2016-08-26 | 2018-03-01 | 中兴通讯股份有限公司 | Power supply method and apparatus for usb interface, and wireless routing apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020038432A1 (en) * | 2000-09-27 | 2002-03-28 | Acer Communications And Multimedia Inc. | Automatic charging device via a universal serial bus and method of operating the same |
CN103269106A (en) * | 2013-05-31 | 2013-08-28 | Tcl通讯(宁波)有限公司 | Charging method for setting charging current automatically and mobile terminal |
CN104124734A (en) * | 2014-07-22 | 2014-10-29 | 深圳市富满电子有限公司 | Charging system and charging method |
US20150171647A1 (en) * | 2013-04-24 | 2015-06-18 | Huizhou Tcl Mobile Communication Co., Ltd. | Method and apparatus for high current charging of smart terminals |
-
2015
- 2015-09-09 CN CN201510571779.7A patent/CN105226337B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020038432A1 (en) * | 2000-09-27 | 2002-03-28 | Acer Communications And Multimedia Inc. | Automatic charging device via a universal serial bus and method of operating the same |
US20150171647A1 (en) * | 2013-04-24 | 2015-06-18 | Huizhou Tcl Mobile Communication Co., Ltd. | Method and apparatus for high current charging of smart terminals |
CN103269106A (en) * | 2013-05-31 | 2013-08-28 | Tcl通讯(宁波)有限公司 | Charging method for setting charging current automatically and mobile terminal |
CN104124734A (en) * | 2014-07-22 | 2014-10-29 | 深圳市富满电子有限公司 | Charging system and charging method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105867570A (en) * | 2016-03-24 | 2016-08-17 | 联想(北京)有限公司 | An information processing method and an electronic apparatus |
WO2018035970A1 (en) * | 2016-08-26 | 2018-03-01 | 中兴通讯股份有限公司 | Power supply method and apparatus for usb interface, and wireless routing apparatus |
CN107783629A (en) * | 2016-08-26 | 2018-03-09 | 中兴通讯股份有限公司 | Method of supplying power to, device and the wireless router device of USB interface |
CN107332316A (en) * | 2017-08-23 | 2017-11-07 | 努比亚技术有限公司 | Staged charging method, mobile terminal and computer-readable recording medium |
CN107332316B (en) * | 2017-08-23 | 2021-11-02 | 努比亚技术有限公司 | Stepped charging method, mobile terminal and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105226337B (en) | 2017-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105762863B (en) | A kind of charging method and charging unit | |
US20180013315A1 (en) | Battery charging method and electronic device | |
US20150145468A1 (en) | Device and chip for controlling charging, and user terminal | |
EP3001532A1 (en) | Power supply terminal, and charging control method and device | |
US10439412B2 (en) | Method for eliminating interference of charger to touch screen, and mobile terminal | |
US20100109602A1 (en) | Charging device and method of operating the same | |
CN105117060A (en) | A screen brightness adjustment method and user terminal | |
CN105635387A (en) | Antenna control method and mobile terminal | |
CN108132401A (en) | Charging abnormity detection method and device, storage medium and mobile terminal | |
CN105553001A (en) | Charging method and intelligent terminal | |
KR20170020543A (en) | Electronic device quick charging method, apparatus and device | |
CN105449757A (en) | Method and device for preventing adapter or mobile power supply from being powered off in charging process | |
CN110492575B (en) | Quick charging system and method for handheld device and handheld device | |
CN106230070B (en) | Charging method and device | |
CN109256825B (en) | Charging method and electronic device | |
CN109254210B (en) | Electronic equipment port type detection method and device, detection circuit and electronic equipment | |
CN104505551A (en) | Charging method and charging circuit of wearable device | |
US10312701B2 (en) | Charging method and portable electronic device using the same | |
CN108347068A (en) | A kind of method and mobile terminal of charging | |
CN106655398A (en) | Charging control method, device and terminal | |
CN105048018B (en) | The charging method and device of a kind of terminal with data exchanging function | |
CN105226337B (en) | A kind of method and apparatus of terminal charge | |
CN106877462B (en) | A kind of method and charger detecting charged state | |
CN106786904A (en) | Charging selection method, device and charging equipment | |
CN108054794A (en) | Charging and discharging method and device for intelligent terminal, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171114 |