[go: up one dir, main page]

CN110277816B - Terminal power supply method and device - Google Patents

Terminal power supply method and device Download PDF

Info

Publication number
CN110277816B
CN110277816B CN201910557215.6A CN201910557215A CN110277816B CN 110277816 B CN110277816 B CN 110277816B CN 201910557215 A CN201910557215 A CN 201910557215A CN 110277816 B CN110277816 B CN 110277816B
Authority
CN
China
Prior art keywords
control chip
battery
register values
several
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910557215.6A
Other languages
Chinese (zh)
Other versions
CN110277816A (en
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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology 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 Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201910557215.6A priority Critical patent/CN110277816B/en
Publication of CN110277816A publication Critical patent/CN110277816A/en
Application granted granted Critical
Publication of CN110277816B publication Critical patent/CN110277816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • H02J7/865
    • H02J7/92

Landscapes

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

Abstract

本发明公开了一种终端供电方法及装置,其中方法包括:第一控制芯片输出若干初始第一寄存器值和若干初始第二寄存器值给第二控制芯片,并检测是否有电池接入;若有电池接入,第一控制芯片根据电池的类型确定若干第一寄存器值,并将若干第一寄存器值输出给述第二控制芯片以覆盖所述若干初始第一寄存器值;并使第二控制芯片根据电池的类型确定若干第二寄存器值并覆盖若干初始第二寄存器值;第二控制芯片根据若干第一寄存器值和若干第二寄存器值分别对电池的电力参数和终端的供电参数进行调整,以满足终端供电要求;若没有电池接入,第二控制芯片根据所述若干初始第一寄存器值和若干初始第二寄存器值对终端的供电参数进行调整,以满足终端供电要求。

Figure 201910557215

The invention discloses a terminal power supply method and device, wherein the method includes: a first control chip outputs several initial first register values and several initial second register values to the second control chip, and detects whether a battery is connected; When the battery is connected, the first control chip determines several first register values according to the type of the battery, and outputs several first register values to the second control chip to cover the several initial first register values; and makes the second control chip Determine a number of second register values according to the type of the battery and cover a number of initial second register values; the second control chip adjusts the power parameters of the battery and the power supply parameters of the terminal according to the first register values and the second register values, respectively. The terminal power supply requirements are met; if no battery is connected, the second control chip adjusts the terminal power supply parameters according to the several initial first register values and several initial second register values to meet the terminal power supply requirements.

Figure 201910557215

Description

Terminal power supply method and device
Technical Field
The invention relates to the field of circuit control of electronic equipment, in particular to a terminal power supply method and device.
Background
Along with the demands of users and markets, the types of terminal products are more and more abundant, and accessories carried by the products are also equipped according to market requirements. Batteries are a very important, fundamental accessory.
Nowadays, the number of models supporting NVDC (narrow voltage direct current) architecture is increasing, and therefore, the design of sharing one motherboard with different configurations is also increasing. For example, the configuration of a 14 "motherboard and the configuration of a 15" motherboard require a common motherboard design. However, a 14-inch main board needs to support a 2s2p (4 cells, two cells are connected in parallel and then connected in series) battery, a 15-inch main board needs to support a 3s1p (3 cells are connected in series) battery, but a 14-inch main board plug 3s1p battery directly discharges, and a 15-inch main board plug 2s2p battery cannot be charged because the minimum system voltage is greater than the maximum charging voltage of 2s2 p.
Therefore, the situation that the 14-inch main board and the 15-inch main board are incompatible with different series/types of batteries brings inconvenience, and cannot meet the power supply requirement of the terminal, so that the terminal cannot be normally powered, and meanwhile, the normal power supply of the terminal cannot be ensured under the situation that no battery is connected.
Disclosure of Invention
The embodiment of the invention aims to provide a power supply method and a power supply device for a terminal, which are used for solving the problem that power cannot be supplied to the terminal when different mainboards and different types of batteries are mixed and inserted or when no battery is accessed in the prior art.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a terminal power supply method comprises the following steps:
the first control chip outputs a plurality of initial first register values and a plurality of initial second register values to the second control chip and detects whether a battery is accessed;
when the first control chip detects that a battery is accessed, the first control chip determines a plurality of first register values according to the type of the battery and outputs the first register values to the second control chip so as to cover the initial first register values; enabling the second control chip to determine a plurality of second register values according to the type of the battery and cover the plurality of initial second register values; the second control chip respectively adjusts the power parameters of the battery and the power supply parameters of the terminal according to the first register values and the second register values so as to meet the power supply requirement of the terminal;
and when the first control chip detects that no battery is accessed, the second control chip adjusts the power supply parameters of the terminal according to the initial first register values and the initial second register values so as to meet the power supply requirement of the terminal.
Optionally, when the first control chip detects that a battery is accessed, the first control chip determines a plurality of first register values according to the type of the battery, and specifically includes:
when the first control chip detects that a battery is accessed, the first control chip and the battery establish a communication relation according to a first communication protocol;
the first control chip identifies the type of the battery to determine the string number of the battery;
and the first control chip determines a plurality of first register values according to the string number of the battery.
Optionally, after the first control chip determines a plurality of first register values according to the type of the battery, and outputs the plurality of first register values to the second control chip to cover the plurality of initial first register values, the method further includes: the first control chip outputs a battery access signal to the second control chip so that the second control chip identifies the type of the battery to determine the string number of the battery, and the second control chip determines a plurality of second register values according to the string number of the battery.
Optionally, the first control chip outputs a plurality of initial first register values and a plurality of initial second register values to the second control chip, and specifically includes:
determining a plurality of initial first register values and a plurality of initial second register values according to a preset battery type;
and outputting the initial first register values and the initial second register values to a second control chip.
Optionally, after the first control chip establishes a communication relationship with the battery according to a first communication protocol, when the first control chip cannot communicate with the battery, the method further includes: charging the battery with a predetermined current.
Optionally: the first control chip detects whether the power adapter is connected or disconnected, and if the power adapter is detected to be connected or disconnected, the register value in the second control chip is kept unchanged.
Optionally, the first control chip detects whether the battery is pulled out, and if the battery is pulled out, the first control chip outputs a plurality of initial first register values and a plurality of initial second register values to the second control chip to cover the plurality of first register values and the plurality of second register values in the second control chip.
Optionally, the first control chip is a control chip EC; the second control chip is a charging IC.
In order to solve the technical problem, the invention also discloses a terminal power supply device, which comprises a first control chip and a second control chip, wherein the first control chip is in communication connection with the second control chip;
the first control chip is used for outputting a plurality of initial first register values and a plurality of initial second register values to the second control chip and detecting whether a battery is accessed;
when the first control chip detects that a battery is accessed, the first control chip is used for determining a plurality of first register values according to the type of the battery and outputting the first register values to the second control chip so as to cover the initial first register values; enabling the second control chip to determine a plurality of second register values according to the type of the battery and cover the plurality of initial second register values; the second control chip is used for adjusting the power parameters of the battery and the power supply parameters of the terminal according to the first register values and the second register values so as to meet the power supply requirement of the terminal;
and when the first control chip detects that no battery is accessed, the second control chip is used for adjusting the power supply parameters of the terminal according to the plurality of initial first register values and the plurality of initial second register values so as to meet the power supply requirement of the terminal.
Optionally, when the first control chip detects that a battery is accessed, the first control chip is configured to determine a plurality of first register values according to a type of the battery, and specifically includes:
when the first control chip detects that the battery is accessed, the first control chip is used for establishing a communication relation with the battery according to a first communication protocol;
the first control chip is used for identifying the type of the battery so as to determine the string number of the battery;
the first control chip is used for determining a plurality of first register values according to the string number of the battery.
Optionally, after the first control chip determines a plurality of first register values according to the type of the battery and outputs the plurality of first register values to the second control chip to cover the plurality of initial first register values, the first control chip is further configured to output a battery access signal to the second control chip, so that the second control chip identifies the type of the battery to determine the number of strings of the battery, and the second control chip determines a plurality of second register values according to the number of strings of the battery.
Optionally, when the first control chip is configured to output a plurality of initial first register values and a plurality of initial second register values to the second control chip, the first control chip is specifically configured to:
the first control chip is used for determining a plurality of initial first register values and a plurality of initial second register values according to a preset battery type;
the first control chip is used for outputting the initial first register values and the initial second register values to the second control chip.
Optionally, after the first control chip establishes a communication relationship with the battery according to the first communication protocol, when the first control chip cannot communicate with the battery, the first control chip is further configured to charge the battery by using a predetermined current.
Optionally, the first control chip is further configured to detect whether a power adapter is connected or disconnected, and if it is detected that a power adapter is connected or disconnected, the register value in the second control chip is kept unchanged.
Optionally, the first control chip is further configured to detect whether a battery is pulled out, and if the battery is pulled out, the first control chip is configured to output a plurality of initial first register values and a plurality of initial second register values to the second control chip to cover the plurality of first register values and the plurality of second register values in the second control chip.
Optionally, the first control chip is a control chip EC; the second control chip is a charging IC.
The embodiment of the invention has the beneficial effects that: when a battery is accessed, the power parameters of the battery and the power supply parameters of the terminal are adjusted according to different battery types, so that the power supply requirement of the terminal can be met even under the condition that the battery is inserted in a mixed manner; when no battery is connected, the power supply parameters of the terminal are adjusted according to the preset values, so that the power supply requirement of the terminal is met, and the power supply requirement of the terminal can be met under different conditions.
Drawings
Fig. 1 is a flowchart of a method for powering a terminal according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for supplying power to a terminal according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a battery control chip of a battery according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a connection relationship between a pin of the control chip EC and the relay according to an embodiment of the present invention;
fig. 5 is a block diagram of a terminal power supply apparatus according to a third embodiment of the present invention;
fig. 6 is a flowchart illustrating the operation of the control chip EC according to the third embodiment of the present invention.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
A first embodiment of the present invention provides a terminal power supply method, as shown in fig. 1, including the following steps:
step S101, a first control chip outputs a plurality of initial first register values and a plurality of initial second register values to a second control chip and detects whether a battery is accessed;
in this step, the first control chip outputs a plurality of initial first register values and a plurality of initial second register values to the second control chip, specifically: determining a plurality of initial first register values and a plurality of initial second register values according to a preset battery type; and outputting the initial first register values and the initial second register values to a second control chip. The preset battery type may be a battery type with a higher string number.
Step S102, when the first control chip detects that a battery is accessed, the first control chip determines a plurality of first register values according to the type of the battery and outputs the first register values to the second control chip so as to cover the initial first register values; enabling the second control chip to determine a plurality of second register values according to the type of the battery and cover the plurality of initial second register values; the second control chip respectively adjusts the power parameters of the battery and the power supply parameters of the terminal according to the first register values and the second register values so as to meet the power supply requirement of the terminal;
and when the first control chip detects that no battery is accessed, the second control chip adjusts the power supply parameters of the terminal according to the initial first register values and the initial second register values so as to meet the power supply requirement of the terminal.
The power parameters of the battery in this step may specifically include charging parameters and/or discharging parameters of the battery, and the power parameters of the battery and the power supply parameters of the terminal are adjusted to achieve that different types of batteries can meet the power supply requirements of the terminal, so as to supply power to the terminal by using the battery and/or an external power supply.
In the step, when no battery access is detected, the power supply parameters of the terminal are adjusted by utilizing the initial first register values and the initial second register values to meet the power supply requirement of the terminal, so that the power can be supplied to the terminal by utilizing an external power supply even under the condition of no battery access.
In this embodiment, the first control chip is a control chip EC; the second control chip is a charging IC. The terminal in this embodiment includes, but is not limited to, a notebook computer and a tablet computer.
When a battery is accessed, the power parameters of the battery and the power supply parameters of the terminal are adjusted according to different battery types, so that the power supply requirement of the terminal can be met even under the condition that the battery is inserted in a mixed manner; when no battery is connected, the power supply parameters of the terminal are adjusted according to the preset values, so that the power supply requirement of the terminal is met, and the power supply requirement of the terminal can be met under different conditions.
A second embodiment of the present invention provides a terminal power supply method, and this embodiment further introduces the technical solution of the present invention in more detail on the basis of the first embodiment. As shown in fig. 2, the terminal power supply method of this embodiment may specifically include the following steps:
step S201, a control chip EC outputs a plurality of initial first register values and a plurality of initial second register values to a charging IC, and detects whether a battery is accessed; if it is detected that a battery is accessed, executing step S202; if no battery access is detected, go to step S206;
step S202, a communication relation is established between a control chip EC and the battery according to a first communication protocol; the control chip EC identifies the type of the battery to determine the string number of the battery; the control chip EC determines a plurality of first register values according to the string number of the battery; the control chip EC outputs the first register values to the charging IC to cover the initial first register values;
in this step, after the control chip EC and the battery establish a communication relationship according to the first communication protocol, when the control chip EC cannot communicate with the battery, the method further includes: charging the battery with a predetermined current. Wherein the predetermined current is 256mA in magnitude.
Step S203, the control chip EC outputs a battery access signal to the charging IC;
and step S204, the charging IC chip identifies the type of the battery to determine the string number of the battery, and the charging IC determines a plurality of second register values according to the string number of the battery.
Step S205, the charging IC adjusts the power parameter of the battery and the power supply parameter of the terminal according to the first register values and the second register values respectively so as to meet the power supply requirement of the terminal;
and step S206, the charging IC adjusts the power supply parameters of the terminal according to the initial first register values and the initial second register values so as to meet the power supply requirement of the terminal.
In the embodiment of the invention, after the control chip EC is electrified, an initial first register value and an initial second register value are provided according to the type of the high-string-number battery and are output to the charging IC. The control chip EC is electrically connected to a battery control chip in the battery, as shown in fig. 3, which shows a schematic structural diagram of the battery control chip, and the control chip EC determines whether the battery is connected by detecting the level of the TEMP PIN potential of the battery control chip. For example, when the TEMP PIN PIN of the battery control chip is detected to be at a low potential, the battery is accessed, and the control chip EC establishes communication with the battery control chip through a communication protocol SMbus; the control chip EC identifies the type of battery to determine the values of a series of registers and writes these register values to the charging IC. In addition, in this embodiment, one pin of the Control chip EC is further electrically connected to one pin of the charging IC through a switch (PQ4806), as shown in fig. 4, a schematic diagram showing a connection relationship between one pin of the Control chip EC and the switch (PQ4806) is shown, when the Control chip EC writes the determined register value corresponding to the battery type into the charging IC, the Control chip EC pulls down the Series Control pin to output a low level signal to the switch to turn on the switch, so that the charging IC knows that the battery is connected, and starts to identify the battery type by using the pin of the charging IC, and determines a corresponding register value according to the battery type and writes the register value into the charging IC.
Preferably, in this embodiment, after the charging IC adjusts the power parameter of the battery and the power supply parameter of the terminal, or after the charging IC adjusts the power supply parameter of the terminal, the method in this embodiment further includes: and the control chip EC detects whether the power adapter is switched in or out, and if the power adapter is detected to be switched in or out, the register value in the charging IC is kept unchanged. That is, in the case where there is a connection or disconnection of the power adapter to the terminal, the register value in the charging IC remains unchanged.
Preferably, in this embodiment, after the charging IC adjusts the power parameter of the battery and the power supply parameter of the terminal, the method in this embodiment further includes detecting whether the battery is unplugged by the control chip EC, and if the battery is unplugged, the control chip EC outputs a plurality of initial first register values and a plurality of initial second register values to the charging IC to cover the plurality of first register values and the plurality of second register values in the charging IC.
That is, when a battery is accessed, the control chip EC and the charging IC determine a plurality of first register values and a plurality of second register values corresponding to the battery type according to the battery type, and after the determined register values corresponding to the battery type are stored in the charging IC, the battery is pulled out, and then the control chip EC outputs a plurality of initial first register values and a plurality of initial second register values to the charging IC again. Therefore, under the condition that no battery is accessed, the charging IC can still meet the power supply requirement of the terminal after adjusting the power supply parameters of the terminal according to the initial first register values and the initial second register values.
A third embodiment of the present invention provides a terminal power supply apparatus, as shown in fig. 5, including: the system comprises a first control chip 1 and a second control chip 2, wherein the first control chip 1 is in communication connection with the second control chip 2;
the first control chip is used for outputting a plurality of initial first register values and a plurality of initial second register values to the second control chip and detecting whether a battery is accessed. The initial first register values and the initial second register values are determined according to a preset battery type. The preset battery type may be a battery type with a higher string number.
When the first control chip detects that a battery is accessed, the first control chip is used for determining a plurality of first register values according to the type of the battery and outputting the first register values to the second control chip so as to cover the initial first register values; enabling the second control chip to determine a plurality of second register values according to the type of the battery and cover the plurality of initial second register values; the second control chip is used for adjusting the power parameters of the battery and the power supply parameters of the terminal according to the first register values and the second register values so as to meet the power supply requirement of the terminal;
and when the first control chip detects that no battery is accessed, the second control chip is used for adjusting the power supply parameters of the terminal according to the plurality of initial first register values and the plurality of initial second register values so as to meet the power supply requirement of the terminal.
In this embodiment, the first control chip is a control chip EC; the second control chip is a charging IC.
Specifically, in this embodiment, when the first control chip detects that a battery is accessed, the first control chip is configured to determine a plurality of first register values according to a type of the battery, and specifically includes:
when the first control chip detects that the battery is accessed, the first control chip is used for establishing a communication relation with the battery according to a first communication protocol;
the first control chip is used for identifying the type of the battery so as to determine the string number of the battery;
the first control chip is used for determining a plurality of first register values according to the string number of the battery.
Specifically, in this embodiment, after the first control chip determines a plurality of first register values according to the type of the battery and outputs the plurality of first register values to the second control chip to cover the plurality of initial first register values, the first control chip is further configured to output a battery access signal to the second control chip, so that the second control chip identifies the type of the battery to determine the string number of the battery, and the second control chip determines a plurality of second register values according to the string number of the battery.
Preferably, in this embodiment, after the first control chip establishes the communication relationship with the battery according to the first communication protocol, when the first control chip cannot communicate with the battery, the first control chip is further configured to charge the battery by using a predetermined current.
Preferably, in this embodiment, after the second control chip adjusts the power parameter of the battery and the power supply parameter of the terminal, or after the second control chip adjusts the power supply parameter of the terminal, the first control chip is further configured to detect whether a power adapter is connected or disconnected, and if it is detected that the power adapter is connected or disconnected, the register value in the second control chip is kept unchanged. That is, in the case where there is a connection or disconnection of the power adapter to the terminal, the register value in the second control chip remains unchanged.
Preferably, in this embodiment, after the second control chip adjusts the power parameter of the battery and the power supply parameter of the terminal, the first control chip is further configured to detect whether the battery is pulled out, and if the battery is pulled out, the first control chip is configured to output a plurality of initial first register values and a plurality of initial second register values to the second control chip so as to cover the plurality of first register values and the plurality of second register values in the second control chip.
In the embodiment of the present invention, the first control chip is a control chip EC, and as shown in fig. 6, a work flow chart of the control chip EC includes the following steps:
step 1, controlling the power-on of a chip EC;
step 2, the control chip EC gives an initial first register value and an initial second register value according to the type of the high-string-number battery;
step 3, detecting whether the potential of the TEMP PIN PIN of the battery is high potential by the control chip EC; if the detection is not high potential, step 4 is executed, if the detection is high potential, step 5 is executed
And 4, the control chip EC outputs the initial first register value and the initial second register value to the charging IC.
Step 5, the control chip EC establishes communication with the battery through a communication protocol SMbus and judges whether the communication is normal or not; if the communication is judged to be abnormal, executing the step 6; if the communication is determined to be normal, step 7 is executed,
step 6, pre-charging the battery by using 256mA current;
step 7, the control chip EC determines a plurality of first register values according to the number of the battery strings and writes the first register values into a second control chip;
and 8, the control chip EC outputs a battery access signal to the charging IC so that the charging IC determines a plurality of second register values according to the number of the battery strings and writes the second register values into the charging IC.
Step 9, the control chip EC detects whether the battery is removed; if not, keeping the current setting to keep the register value in the second control chip unchanged; if yes, re-executing step 2.
According to the embodiment of the invention, the bill of materials of different terminals does not need to be distinguished according to different battery series; and the problem caused by mixed insertion of different series of batteries under the NVDC framework can be solved. Meanwhile, the time sequence of plugging and unplugging all power adapters or batteries can be realized, and the power supply of the terminal cannot be influenced. The design requirement that different configurations share one mainboard is met.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (9)

1.一种终端供电方法,其特征在于,包括如下步骤:1. a terminal power supply method, is characterized in that, comprises the steps: 第一控制芯片输出若干初始第一寄存器值和若干初始第二寄存器值给第二控制芯片,并检测是否有电池接入;The first control chip outputs several initial first register values and several initial second register values to the second control chip, and detects whether a battery is connected; 在第一控制芯片检测到有电池接入时,第一控制芯片根据电池的类型确定若干第一寄存器值,并将所述若干第一寄存器值输出给所述第二控制芯片以覆盖所述若干初始第一寄存器值;并使所述第二控制芯片根据电池的类型确定若干第二寄存器值并覆盖所述若干初始第二寄存器值;第二控制芯片根据所述若干第一寄存器值和若干第二寄存器值对电池的电力参数进行调整,且根据所述若干第一寄存器值和若干第二寄存器值对终端的供电参数进行调整,以满足终端供电要求;When the first control chip detects that a battery is connected, the first control chip determines several first register values according to the type of the battery, and outputs the several first register values to the second control chip to cover the several first register values initialize the first register value; make the second control chip determine several second register values according to the type of the battery and cover the several initial second register values; the second control chip according to the several first register values and several first register values The two register values adjust the power parameters of the battery, and adjust the power supply parameters of the terminal according to the several first register values and the several second register values, so as to meet the power supply requirements of the terminal; 在第一控制芯片检测到没有电池接入时,第二控制芯片根据所述若干初始第一寄存器值和若干初始第二寄存器值对终端的供电参数进行调整,以满足终端供电要求;When the first control chip detects that no battery is connected, the second control chip adjusts the power supply parameters of the terminal according to the several initial first register values and several initial second register values, so as to meet the power supply requirements of the terminal; 在所述第一控制芯片根据电池的类型确定若干第一寄存器值,并将所述若干第一寄存器值输出给所述第二控制芯片以覆盖所述若干初始第一寄存器值后,所述方法还包括:第一控制芯片输出电池接入信号给所述第二控制芯片,以使所述第二控制芯片对电池的类型进行识别,以确定所述电池的串数,并使所述第二控制芯片根据所述电池的串数确定若干第二寄存器值。After the first control chip determines several first register values according to the type of the battery, and outputs the several first register values to the second control chip to cover the several initial first register values, the method It also includes: the first control chip outputs a battery access signal to the second control chip, so that the second control chip can identify the type of the battery, determine the number of strings of the battery, and make the second control chip The control chip determines several second register values according to the string number of the battery. 2.如权利要求1所述的方法,其特征在于,所述在第一控制芯片检测到有电池接入时,第一控制芯片根据电池的类型确定若干第一寄存器值,具体包括:2. The method according to claim 1, wherein when the first control chip detects that a battery is connected, the first control chip determines a number of first register values according to the type of the battery, specifically including: 在第一控制芯片检测到有电池接入时,第一控制芯片与所述电池根据第一通信协议建立通信关系;When the first control chip detects that the battery is connected, the first control chip establishes a communication relationship with the battery according to the first communication protocol; 第一控制芯片识别所述电池的类型,以确定电池的串数;The first control chip identifies the type of the battery to determine the string number of the battery; 第一控制芯片根据所述电池的串数确定若干第一寄存器值。The first control chip determines a number of first register values according to the string number of the battery. 3.如权利要求1所述的方法,其特征在于,所述第一控制芯片输出若干初始第一寄存器值和若干初始第二寄存器值给第二控制芯片,具体包括:3. The method of claim 1, wherein the first control chip outputs several initial first register values and several initial second register values to the second control chip, specifically comprising: 按照预设电池类型确定若干初始第一寄存器值和若干初始第二寄存器值;Determine several initial first register values and several initial second register values according to the preset battery type; 将所述若干初始第一寄存器值和若干初始第二寄存器值输出给第二控制芯片。The plurality of initial first register values and the plurality of initial second register values are output to the second control chip. 4.如权利要求2所述的方法,其特征在于,在第一控制芯片与所述电池根据第一通信协议建立通信关系后,第一控制芯片无法与所述电池进行通信时,所述方法还包括:利用预定电流对所述电池进行充电。4. The method according to claim 2, wherein after the first control chip and the battery establish a communication relationship according to the first communication protocol, when the first control chip cannot communicate with the battery, the method It also includes: charging the battery with a predetermined current. 5.如权利要求1所述的方法,其特征在于,所述方法还包括:第一控制芯片检测是否有电源适配器接入或切出,若检测有电源适配器接入或切出,则保持所述第二控制芯片中的寄存器值不变。5. The method according to claim 1, wherein the method further comprises: the first control chip detects whether a power adapter is connected or cut out, and if it is detected that a power adapter is connected or cut out, keeping all the The register value in the second control chip remains unchanged. 6.如权利要求1所述的方法,其特征在于,所述方法还包括,第一控制芯片检测是否有电池拔出,若检测到有电池拔出,则所述第一控制芯片输出若干初始第一寄存器值和若干初始第二寄存器值给所述第二控制芯片,以覆盖第二控制芯片中的所述若干第一寄存器值和若干第二寄存器值。6 . The method according to claim 1 , wherein the method further comprises that the first control chip detects whether the battery is pulled out, and if it is detected that the battery is pulled out, the first control chip outputs a number of initial The first register value and several initial second register values are given to the second control chip to cover the several first register values and the several second register values in the second control chip. 7.如权利要求1所述的方法,其特征在于,所述第一控制芯片为控制芯片EC;所述第二控制芯片为充电IC。7. The method of claim 1, wherein the first control chip is a control chip EC; the second control chip is a charging IC. 8.一种终端供电装置,其特征在于,包括第一控制芯片和第二控制芯片,所述第一控制芯片和所述第二控制芯片通信连接;8. A terminal power supply device, comprising a first control chip and a second control chip, the first control chip and the second control chip being communicatively connected; 所述第一控制芯片用于输出若干初始第一寄存器值和若干初始第二寄存器值给第二控制芯片,并用于检测是否有电池接入;The first control chip is used to output several initial first register values and several initial second register values to the second control chip, and is used to detect whether a battery is connected; 在第一控制芯片检测到有电池接入时,第一控制芯片用于根据电池的类型确定若干第一寄存器值,并将所述若干第一寄存器值输出给所述第二控制芯片以覆盖所述若干初始第一寄存器值;并使所述第二控制芯片根据电池的类型确定若干第二寄存器值并覆盖所述若干初始第二寄存器值;第二控制芯片用于根据所述若干第一寄存器值和若干第二寄存器值对电池的电力参数进行调整,且根据所述若干第一寄存器值和若干第二寄存器值对终端的供电参数进行调整,以满足终端供电要求;When the first control chip detects that a battery is connected, the first control chip is used to determine several first register values according to the type of the battery, and output the several first register values to the second control chip to cover all the first register values. and make the second control chip determine several second register values according to the type of the battery and cover the several initial second register values; the second control chip is used for according to the several first registers value and several second register values to adjust the power parameters of the battery, and adjust the power supply parameters of the terminal according to the several first register values and several second register values to meet the power supply requirements of the terminal; 在第一控制芯片检测到没有电池接入时,第二控制芯片用于根据所述若干初始第一寄存器值和若干初始第二寄存器值对终端的供电参数进行调整,以满足终端供电要求;When the first control chip detects that no battery is connected, the second control chip is configured to adjust the power supply parameters of the terminal according to the several initial first register values and several initial second register values, so as to meet the power supply requirements of the terminal; 在所述第一控制芯片根据电池的类型确定若干第一寄存器值,并将所述若干第一寄存器值输出给所述第二控制芯片以覆盖所述若干初始第一寄存器值后,所述第一控制芯片还用于:输出电池接入信号给所述第二控制芯片,以使所述第二控制芯片对电池的类型进行识别,以确定所述电池的串数,并使所述第二控制芯片根据所述电池的串数确定若干第二寄存器值。After the first control chip determines several first register values according to the type of the battery, and outputs the several first register values to the second control chip to cover the several initial first register values, the first A control chip is also used for: outputting a battery access signal to the second control chip, so that the second control chip can identify the type of the battery, determine the number of strings of the battery, and make the second control chip The control chip determines several second register values according to the string number of the battery. 9.如权利要求8所述的装置,其特征在于,所述在第一控制芯片检测到有电池接入时,第一控制芯片用于根据电池的类型确定若干第一寄存器值,具体包括:9 . The device according to claim 8 , wherein when the first control chip detects that a battery is connected, the first control chip is used to determine several first register values according to the type of the battery, and specifically includes: 10 . 在第一控制芯片检测到有电池接入时,第一控制芯片用于与所述电池根据第一通信协议建立通信关系;When the first control chip detects that a battery is connected, the first control chip is configured to establish a communication relationship with the battery according to the first communication protocol; 第一控制芯片用于识别所述电池的类型,以确定电池的串数;The first control chip is used to identify the type of the battery to determine the string number of the battery; 第一控制芯片用于根据所述电池的串数确定若干第一寄存器值。The first control chip is used for determining several first register values according to the string number of the battery.
CN201910557215.6A 2019-06-25 2019-06-25 Terminal power supply method and device Active CN110277816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910557215.6A CN110277816B (en) 2019-06-25 2019-06-25 Terminal power supply method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910557215.6A CN110277816B (en) 2019-06-25 2019-06-25 Terminal power supply method and device

Publications (2)

Publication Number Publication Date
CN110277816A CN110277816A (en) 2019-09-24
CN110277816B true CN110277816B (en) 2021-02-26

Family

ID=67963178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910557215.6A Active CN110277816B (en) 2019-06-25 2019-06-25 Terminal power supply method and device

Country Status (1)

Country Link
CN (1) CN110277816B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07253833A (en) * 1994-03-15 1995-10-03 Oki Electric Ind Co Ltd Power supply management mechanism for battery starter
CN101396975A (en) * 2007-09-28 2009-04-01 株式会社日立制作所 Integrated circuit for battery and automotive power supply system using the same
CN103475054A (en) * 2013-09-05 2013-12-25 深圳茂硕电子科技有限公司 Intelligently-controlled lithium battery charger and charging control method
CN206498249U (en) * 2017-02-15 2017-09-15 济南浪潮高新科技投资发展有限公司 A kind of power supply output control switching circuit based on charging management chip
CN108110839A (en) * 2017-12-28 2018-06-01 合肥联宝信息技术有限公司 A kind of method for controlling power supply and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07253833A (en) * 1994-03-15 1995-10-03 Oki Electric Ind Co Ltd Power supply management mechanism for battery starter
CN101396975A (en) * 2007-09-28 2009-04-01 株式会社日立制作所 Integrated circuit for battery and automotive power supply system using the same
CN103475054A (en) * 2013-09-05 2013-12-25 深圳茂硕电子科技有限公司 Intelligently-controlled lithium battery charger and charging control method
CN206498249U (en) * 2017-02-15 2017-09-15 济南浪潮高新科技投资发展有限公司 A kind of power supply output control switching circuit based on charging management chip
CN108110839A (en) * 2017-12-28 2018-06-01 合肥联宝信息技术有限公司 A kind of method for controlling power supply and electronic equipment

Also Published As

Publication number Publication date
CN110277816A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US8769317B2 (en) USB hub for supplying power upon determination whether a USB device is chargeable according to data transfer rate of the USB device
US8051308B2 (en) Display device with USB connectivity
US10622802B2 (en) Power receiving apparatus and control circuit thereof
US10042801B2 (en) System for detecting universal serial bus (USB) device and method thereof
CN106291210B (en) USB interface detector, USB interface detection method, USB connector and electronic equipment
EP2480043B1 (en) Method and device for identifying a computer insertion or a charger insertion in a mobile terminal
US8880909B2 (en) Auto-detect polling for correct handshake to USB client
CN111917163A (en) Multi-port charging control circuit and method, charging chip and power supply equipment
WO2009091193A2 (en) Mobile terminal for supporting uart communication and usb communication using single connector and operating method for same
WO2019113732A1 (en) Electronic device and charging control method
US9099864B2 (en) Electronic device with connector fault protection circuitry
GB2395820A (en) Communication hub for bus powered devices with a rechargeable power source for providing power to high power devices
CN109599906B (en) Charging control method, related device and computer storage medium
CN110797950A (en) Automatic switching method based on Type-C and AC charging and mobile terminal thereof
WO2023134458A1 (en) Electronic device
TWI559125B (en) Power bank apparatus and power control method thereof
CN106797414B (en) A terminal leakage current detection circuit and terminal
CN112763893A (en) Mainboard test system and method of intelligent terminal
US20070075680A1 (en) Charging mode control circuit
CN105576753A (en) Information processing method and electronic equipment
CN107134819B (en) The charging/discharging thereof of mobile power, charge-discharge system and charge-discharge system
CN114285128B (en) Outdoor equipment power supply control circuit, outdoor equipment power supply system and outdoor equipment
CN106921192A (en) Terminal and electricity sharing method
CN110277816B (en) Terminal power supply method and device
CN111045506B (en) Control method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant