CN107171395A - A kind of charge/discharge control method, controller and electronic equipment - Google Patents

A kind of charge/discharge control method, controller and electronic equipment Download PDF

Info

Publication number
CN107171395A
CN107171395A CN201710494971.XA CN201710494971A CN107171395A CN 107171395 A CN107171395 A CN 107171395A CN 201710494971 A CN201710494971 A CN 201710494971A CN 107171395 A CN107171395 A CN 107171395A
Authority
CN
China
Prior art keywords
battery
operational factor
discharge
control
charge
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.)
Pending
Application number
CN201710494971.XA
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710494971.XA priority Critical patent/CN107171395A/en
Publication of CN107171395A publication Critical patent/CN107171395A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • H02J7/0077

Abstract

This application discloses a kind of charge/discharge control method, controller and electronic equipment, method includes:The operational factor of the first battery and the operational factor of the second battery are gathered, the discharge and recharge priority of first battery is higher than the discharge and recharge priority of second battery;The operational factor of operational factor and second battery based on first battery, charge control or control of discharge are carried out to first battery and second battery.Therefore whether go wrong or in any application environment, the application to operational factor by carrying out logic judgment, rather than the mode that hardware is built to carry out charge and discharge control to many batteries, hardware cost can not only be saved, more need not go wrong or different application environment under hardware is retested or the processing such as hardware change, thus, the efficiency of many battery charging and discharging controls is improved.

Description

A kind of charge/discharge control method, controller and electronic equipment
Technical field
The application is related to cell art, more particularly to a kind of charge/discharge control method, controller and electronic equipment.
Background technology
In the terminals such as existing notebook, endurance is generally lifted using double cell or more battery, meets and uses The demand at family.
And in actual applications, many batteries are typically to build carry out charge and discharge control using hardware, hardware realize not only into This is higher, during actual charge and discharge control, and weight can be more needed due to generation problem or under different application environments New test and progress hardware change, causes the less efficient of charge and discharge control.
The content of the invention
In view of this, the purpose of the application is to provide a kind of charge/discharge control method, controller and electronic equipment, to solve Certainly many batteries generally build carry out charge and discharge control using hardware in the prior art, cause the less efficient skill of charge and discharge control Art problem.
This application provides a kind of charge/discharge control method, including:
Gather the operational factor of the first battery and the operational factor of the second battery, the discharge and recharge priority of first battery Higher than the discharge and recharge priority of second battery;
The operational factor of operational factor and second battery based on first battery, to first battery and institute State the second battery and carry out charge control or control of discharge.
The above method, it is preferred that also include:
Monitor charge power supply and system voltage;
If charge power supply access and the system voltage be less than or equal to default first threshold, based on described first The operational factor of the operational factor of battery and second battery, by the charge power supply to first battery and described Two batteries carry out charge control;
If without charge power supply access and the system voltage is more than or equal to default Second Threshold, based on described the The operational factor of the operational factor of one battery and second battery, discharges first battery and second battery Control.
The above method, it is preferred that the operational factor of operational factor and second battery based on first battery, it is right First battery and second battery carry out charge control, including:
Judge the operational factor of first battery whether this is indicate that first battery access and first battery work as Preceding voltage is less than or equal to default 3rd threshold value;
If the operational factor of first battery shows the current electricity of the first battery access and first battery Pressure is less than or equal to default 3rd threshold value, and control charge power supply charges to first battery, otherwise, judges described the The operational factor of two batteries is whether this is indicate that the current voltage of second battery access and second battery is less than or equal in advance If the 4th threshold value;
If the operational factor of second battery shows the current electricity of the second battery access and second battery Pressure is less than or equal to default 4th threshold value, controls the charge power supply to charge second battery.
The above method, it is preferred that the operational factor of operational factor and second battery based on first battery, it is right First battery and second battery carry out control of discharge, including:
Judge the operational factor of first battery whether this is indicate that first battery access and first battery work as Preceding voltage is more than or equal to default 5th threshold value;
If the operational factor of first battery shows the current electricity of the first battery access and first battery Pressure is more than or equal to default 5th threshold value, controls first battery to be discharged, otherwise, judges the fortune of second battery Row parameter is whether this is indicate that the current voltage of second battery access and second battery is more than or equal to default 6th threshold Value;
If the operational factor of second battery shows the current electricity of the second battery access and second battery Pressure is more than or equal to default 6th threshold value, controls second battery to be discharged.
The above method, it is preferred that the operational factor of operational factor and second battery based on first battery, it is right First battery and second battery carry out charge control or control of discharge, including:
(General Purpose Input are exported using the first universal input being connected on first battery Output, GPIO) interface and the second GPIO interface for being connected on second battery, the operation ginseng based on first battery The operational factor of number and second battery, carries out charge control to first battery and second battery or electric discharge is controlled System.
Present invention also provides a kind of controller, it is connected by the first GPIO interface with the first battery, and pass through second GPIO interface is connected with the second battery, and the discharge and recharge priority of first battery is excellent higher than the discharge and recharge of second battery First level, wherein:
The controller, for gathering the operational factor of first battery and the operational factor of second battery, base In the operational factor and the operational factor of second battery of first battery, first GPIO interface and described are utilized Two GPIO interfaces carry out charge control or control of discharge to first battery and second battery.
Present invention also provides a kind of electronic equipment, including:
First battery and the second battery, the discharge and recharge priority of first battery are higher than the discharge and recharge of second battery Priority;
Processor, for gathering the operational factor of the first battery and the operational factor of the second battery, based on the described first electricity The operational factor of the operational factor in pond and second battery, charge control is carried out to first battery and second battery Or control of discharge.
Above-mentioned electronic equipment, it is preferred that also include:
First GPIO interface, is connected between the processor and first battery;
Second GPIO interface, is connected between the processor and second battery;
The processor, for gathering the operational factor of first battery and the operational factor of second battery, base In the operational factor and the operational factor of second battery of first battery, first GPIO interface and described are utilized Two GPIO interfaces carry out charge control or control of discharge to first battery and second battery.
Above-mentioned electronic equipment, it is preferred that also include:
3rd GPIO interface, is connected between the processor and first battery;
4th GPIO interface, is connected between the processor and second battery;
The processor, specifically for gathering the operation whether first battery accesses using the 3rd GPIO interface Parameter, and gather the operational factor whether second battery accesses using the 4th GPIO interface.
Above-mentioned electronic equipment, it is preferred that also include:
First analog-to-digital conversion (Analog-to-Digital Convert, AD) interface, be connected to the processor with it is described Between first battery;
2nd AD interfaces, are connected between the processor and second battery;
The processor, the operation of the current voltage specifically for gathering first battery using the first AD interfaces Parameter, and the operational factor of the current voltage using the 2nd AD interfaces collection second battery.
From such scheme, a kind of charge/discharge control method, controller and electronic equipment that the application is provided, by After being acquired to the operational factors of multiple batteries, entered based on the operational factor of the different battery of these discharge and recharge priority Row charge control or control of discharge, thus, whether go wrong or in any application environment, it is right that the application passes through Operational factor carries out logic judgment, rather than the mode that hardware is built to carry out charge and discharge control to many batteries, can not only save Save hardware cost, more need not go wrong or different application environment under hardware is retested or hardware change etc. Processing, thus, improves the efficiency of many battery charging and discharging controls.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
A kind of flow chart for charge/discharge control method that Fig. 1 provides for the embodiment of the present application;
A kind of another flow chart for charge/discharge control method that Fig. 2 provides for the embodiment of the present application;
Fig. 3 and Fig. 4 are respectively a kind of partial process view for charge/discharge control method that the embodiment of the present application is provided;
Fig. 5 a, Fig. 5 b and Fig. 5 c are respectively a kind of structural representation for controller that the embodiment of the present application is provided;
Fig. 6, Fig. 7 and Fig. 8 are respectively the structural representation for a kind of electronic equipment that the embodiment of the present application is provided;
Fig. 9 and Figure 10 are respectively the application exemplary plot of the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation is described, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of the application protection.
With reference to Fig. 1, a kind of implementation process figure of the charge/discharge control method provided for the embodiment of the present application, applied to In the electronic equipment of multiple batteries, such as mobile phone, pad, notebook.
In the present embodiment, the charge/discharge control method may comprise steps of:
Step 101:Gather the operational factor of the first battery and the operational factor of the second battery.
Wherein, the discharge and recharge priority of the first battery is higher than the discharge and recharge priority of the second battery.
It should be noted that the discharge and recharge priority of battery can be pre-set by user or developer in many batteries.
Wherein, the operational factor of battery can include:Whether battery in running order and electricity during battery work Pressure condition etc..
The operation that battery can be gathered by the bus that is connected on each battery and/or interface in the present embodiment is joined Number.
Step 102:The operational factor of operational factor and the second battery based on the first battery, to the first battery and the second electricity Pond carries out charge control or control of discharge.
That is, the operational factor of the operational factor and the second battery based on the first battery in the present embodiment is to the first electricity Pond and the second battery carry out charge control, similarly, and the first battery and the respective operational factor of the second battery are based in the present embodiment Control of discharge is carried out to many batteries.
It should be noted that two batteries for needing to carry out charge and discharge control are related only in the present embodiment, but this reality Apply the scheme in example and be equally applicable to charge and discharge control to three or more batteries, the operational factor based on battery is to three Or more the charge and discharge control of battery implementation it is same in the protection domain of the application.
In the specific implementation, using the first GPIO interface being connected on the first battery and can be connected in the present embodiment The second GPIO interface on second battery carries out charge control to the first battery and the second battery;And utilization is connected to the first battery On the first GPIO interface and the second GPIO interface for being connected on the second battery the first battery and the second battery are discharged Control.
A kind of charge/discharge control method provided from such scheme, the embodiment of the present application, by multiple batteries Operational factor be acquired after, charge control is carried out based on the operational factor of the different battery of these discharge and recharge priority Or control of discharge, thus, whether go wrong or in any application environment, the present embodiment passes through to operational factor Carry out logic judgment, rather than the mode built of hardware to carry out charge and discharge control to many batteries, can not only save hardware into This, more need not go wrong or different application environment under hardware is retested or hardware change etc. is handled, by This, improves the efficiency of many battery charging and discharging controls.
In one implementation, the present embodiment, can be first to more electric before charge and discharge control is carried out to many batteries Whether pond has is judged in charged state or discharge condition, so as to determine to carry out many batteries charge control or right Many batteries carry out control of discharge, and as shown in Figure 2, the charge/discharge control method in the present embodiment may comprise steps of:
Step 201:Gather the operational factor of the first battery and the operational factor of the second battery.
Wherein, the implementation of step 201 may be referred to the realization of step 101 in Fig. 1, no longer be described in detail herein.
Step 202:Monitor charge power supply and system voltage.
Wherein, charge power supply is monitored in the present embodiment to refer to, monitor whether the system that charge power supply is linked into many batteries Or in equipment, and monitoring system voltage refers to monitor the current voltage of the system or equipment where many batteries, the system voltmeter Levy the total voltage under many battery combination work.
Step 203:Determine whether that charge power supply is accessed, if so, performing step 204, otherwise, perform step 205.
Wherein, determine whether that charge power supply is accessed in the present embodiment, can be by being connect to the adapter for connecting many batteries Message number is judged, that is to say, that by judge many batteries whether with the presence of adapter access and have adaptor interface signal come Judge whether there is charge power supply access.
It should be noted that the adapter in the present embodiment accesses and has adaptor interface signal, refer to that adapter passes through Interface connects many batteries and adapter practices level AC power.
Thus, then can be in follow-up based on system voltage decision when judging to have charge power supply access in the present embodiment Whether carry out charge control, and when no charge power supply is accessed, then can in follow-up based on system voltage decide whether into Row control of discharge.
Step 204:Judge whether system voltage is less than or equal to default first threshold, if it is, performing step 206.
Wherein, first threshold refers to, the minimum threshold value charged to needs of system voltage, that is to say, that system voltage Constantly decline with the operation of system or equipment, and drop to first threshold it is even lower when, then need in system or equipment Many batteries charged, that is, perform step 206, to ensure that system voltage is able to maintain that system or equipment normal electricity consumption or guarantor Enough electric energy can be stored in case of need by demonstrate,proving many batteries.
In actual applications, first threshold can be configured according to user's request or historical empirical data.
Step 205:Judge whether system voltage is more than or equal to default Second Threshold, if performing step 207.
Wherein, Second Threshold refers to, in the case where no charge power supply is accessed, the system electricity that many battery combinations are formed Pressure energy enough continues as the minimum voltage value of the normal operation offer electric energy of system or equipment.
If system voltage is less than this Second Threshold, illustrate that many battery combinations can not also provide electricity for system or equipment Can, now, it is impossible to provide electric energy for system or equipment by many batteries again, but need external power supply or many batteries are filled Electric control;And if system voltage is higher than this Second Threshold, then illustrate that many battery combinations can also provide for system or equipment Electric energy, now, performs step 207.
Step 206:The operational factor of operational factor and the second battery based on the first battery, by charge power supply to first Battery and the second battery carry out charge control.
Wherein, charging control is carried out to many batteries according to the charging priority of the first battery and the second battery in the present embodiment System.
In the specific implementation, using the first GPIO interface being connected on the first battery and can be connected in the present embodiment The second GPIO interface on second battery carries out charge control by the power supply of charging to the first battery and the second battery.
Step 207:The operational factor of operational factor and the second battery based on the first battery, to the first battery and the second electricity Pond carries out control of discharge.
Wherein, electric discharge control is carried out to many batteries according to the electric discharge priority of the first battery and the second battery in the present embodiment System.
In the specific implementation, using the first GPIO interface being connected on the first battery and can be connected in the present embodiment The second GPIO interface on second battery carries out control of discharge to the first battery and the second battery.
In one implementation, as shown in Figure 3, step 206 can be realized by following steps:
Step 301:The operational factor of the first battery is judged whether this is indicate that the first battery is accessed, if it is, performing step 302, otherwise, perform step 303.
Wherein, the 3rd GPIO interface that is connected on the first battery can be advanced with the present embodiment to collect first The operational factor whether battery accesses, so as to judge in the operational factor whether this is indicate that the first battery is accessed.
Step 302:Judge whether the current voltage of the first battery in the operational factor of the first battery is less than or equal to preset The 3rd threshold value, if it is, perform step 304, otherwise perform step 303.
Wherein, the first AD interfaces being connected on the first battery can be advanced with the present embodiment and gather the first battery Current voltage is as operational factor, so as to judge whether the current voltage is less than or equal to the 3rd threshold value.
It should be noted that the 3rd threshold value refers to the minimum magnitude of voltage charged to needs of the first battery, that is to say, that The current voltage of first battery constantly declines with the outside electric discharge of the first battery, and drop to the 3rd threshold value it is even lower when, Then need to charge to the first battery, i.e. step 304, only the current voltage in the first battery be already higher than the 3rd threshold value and It during without continuing to charge, could now continue the charge control of the battery of next priority, such as performing step 303 and follow-up step Suddenly.
Step 303:The operational factor of the second battery is judged whether this is indicate that the second battery is accessed, if it is, performing step 305。
Wherein, the second battery can be collected using the 4th GPIO interface being connected on the second battery in the present embodiment The operational factor whether accessed, so as to judge in the operational factor whether this is indicate that the second battery is accessed.
Step 304:Control charge power supply charges to the first battery.
Step 305:Judge whether the current voltage of the second battery in the operational factor of the second battery is less than or equal to preset The 4th threshold value, if it is, perform step 306.
Wherein, the 2nd AD interfaces being connected on the second battery can be advanced with the present embodiment and gather the second battery Current voltage is as operational factor, so as to judge whether the current voltage is less than or equal to the 4th threshold value.
It should be noted that the 4th threshold value refers to the minimum magnitude of voltage charged to needs of the second battery, that is to say, that The current voltage of second battery constantly declines with the outside electric discharge of the second battery, and drop to the 4th threshold value it is even lower when, Then need to charge to the first battery, i.e. step 306.
Step 306:Control charge power supply charges to the second battery.
In one implementation, as shown in Figure 4, step 207 can be realized by following steps:
Step 401:The operational factor of the first battery is judged whether this is indicate that the first battery is accessed, if it is, performing step 402, otherwise, perform step 403.
Wherein, the 3rd GPIO interface that is connected on the first battery can be advanced with the present embodiment to collect first The operational factor whether battery accesses, so as to judge in the operational factor whether this is indicate that the first battery is accessed.
Step 402:Judge whether the current voltage of the first battery in the operational factor of the first battery is more than or equal to preset The 5th threshold value, if it is, perform step 404, otherwise perform step 403.
Wherein, the first AD interfaces being connected on the first battery can be advanced with the present embodiment and gather the first battery Current voltage is as operational factor, so as to judge whether the current voltage is more than or equal to the 5th threshold value.
It should be noted that the 5th threshold value refers to that the first battery can be the external minimum voltage value for providing electric energy, also To say, the current voltage of the first battery is constantly raised with the lasting charging of charge power supply, also can with the first battery to Outer electric discharge constantly declines, and when being increased to the 5th threshold value even more high, the first battery can be just external offer electric energy, now Step 404 can be performed, or, the current voltage of the first battery constantly declines with the outside electric discharge of the first battery, but still On the 5th threshold value, then the first battery remains able to provide electric energy for external continuation, then can continue executing with step 404, Only the first battery current voltage as little as the 5th threshold value and can not for the external world electric energy be provided when, under could now continuing The control of discharge of the battery of one priority, such as performs step 403 and subsequent step.
Step 403:The operational factor of the second battery is judged whether this is indicate that the second battery is accessed, if it is, performing step 405。
Wherein, the second battery can be collected using the 4th GPIO interface being connected on the second battery in the present embodiment The operational factor whether accessed, so as to judge in the operational factor whether this is indicate that the second battery is accessed.
Step 404:The first battery is controlled to be discharged.
Step 405:Judge whether the current voltage of the second battery in the operational factor of the second battery is more than or equal to preset The 6th threshold value, if it is, perform step 406.
Wherein, the 2nd AD interfaces being connected on the second battery can be advanced with the present embodiment and gather the second battery Current voltage is as operational factor, so as to judge whether the current voltage is more than or equal to the 6th threshold value.
It should be noted that the 6th threshold value refers to that the second battery can be the external minimum voltage value for providing electric energy, also To say, the current voltage of the second battery is constantly raised with the lasting charging of charge power supply, also can with the second battery to Outer electric discharge constantly declines, and when being increased to the 6th threshold value even more high, the second battery can be just external offer electric energy, now Step 406 can be performed, or, the current voltage of the second battery constantly declines with the outside electric discharge of the second battery, but still On the 5th threshold value, then the second battery remains able to provide electric energy for external continuation, then can continue executing with step 406.
Step 406:The second battery is controlled to be discharged.
Joined in such scheme, the present embodiment by the operation to the first battery and the even more many batteries of the second battery Number is acquired, and carries out logic judgment, so that the discharge and recharge priority based on these batteries carries out dynamic control, without entering Row hardware change such as retests at the operation, while saving hardware cost, moreover it is possible to provide efficiency and the spirit of charge and discharge control Activity.
With reference to Fig. 5 a, a kind of structural representation of the controller provided for the embodiment of the present application, the controller can be applied In the electronic equipment with multiple batteries, such as mobile phone, pad, notebook.
In the present embodiment, the controller 501 can be connected by the first GPIO interface 502 with the first battery, and be passed through Second GPIO interface 503 is connected with the second battery, and the discharge and recharge priority of first battery is higher than second battery Discharge and recharge priority, wherein:
The controller 501, for gathering the operational factor of first battery and the operational factor of second battery, The operational factor of operational factor and second battery based on first battery, utilizes the He of the first GPIO interface 502 503 pairs of second GPIO interface, first battery and second battery carry out charge control or control of discharge.
Wherein, the controller 501 in the present embodiment can using embedded controller (embedded controller, EC) realize.
In one implementation, as illustrated in fig. 5b, controller 501 connects described by the 3rd GPIO interface 504 One battery, and second battery is connected by the 4th GPIO interface 505, wherein:
Controller 501 can gather the operation ginseng whether first battery accesses using the 3rd GPIO interface 504 Number, and gather the operational factor whether second battery accesses using the 4th GPIO interface 505.
In one implementation, as shown in Figure 5 c, controller 501 connects described first by the first AD interfaces 506 Battery, and second battery is connected by the 2nd AD interfaces 507, wherein:
Controller 501 can gather the operation ginseng of the current voltage of first battery using the first AD interfaces 506 Number, and gather using the 2nd AD interfaces 507 operational factor of the current voltage of second battery.
A kind of controller provided from such scheme, the embodiment of the present application, by joining in the operation to multiple batteries After number is acquired, charge control or electric discharge are carried out based on the operational factor of the different battery of these discharge and recharge priority Control, thus, is whether gone wrong or in any application environment, and the application is sentenced by carrying out logic to operational factor Break, rather than the mode that hardware is built to carry out charge and discharge control to many batteries, can not only save hardware cost, more need not Go wrong or different application environment under hardware is retested or the processing such as hardware change, thus, improve more electric The efficiency of pond charge and discharge control.
Wherein, the implementation and function of controller may be referred to hereinbefore corresponding embodiment description in the present embodiment, this Place is no longer described in detail.
With reference to Fig. 6, the structural representation of a kind of electronic equipment provided for the embodiment of the present application can be with the electronic equipment Including multiple batteries such as the first battery 601 and the second battery 602 etc., the discharge and recharge priority of the first battery 601 is higher than described the The discharge and recharge priority of two batteries 602, in addition, the electronic equipment in the present embodiment can also include following structure:
Processor 603, for gathering the operational factor of the first battery 601 and the operational factor of the second battery 602, based on institute The operational factor of the first battery 601 and the operational factor of second battery 602 are stated, to first battery 601 and described Two batteries 602 carry out charge control or control of discharge.
Wherein, the processor 603 in the present embodiment can be realized using EC.
In one implementation, the electronic equipment in the present embodiment can also include following structure, as shown in Figure 7:
First GPIO interface 604, is connected between the processor 603 and first battery 601;
Second GPIO interface 605, is connected between the processor 603 and second battery 602;
Accordingly, processor 603 collect the first battery 601 operational factor and the second battery 602 operational factor it Afterwards, the operational factor of operational factor and the second battery 602 based on the first battery 601, utilizes the first GPIO interface 604 and second The battery 602 of 605 pair of first battery of GPIO interface 601 and second carries out charge control or control of discharge.
In addition, as shown in Figure 8, the electronic equipment in the present embodiment can also include following structure:
3rd GPIO interface 606, is connected between the processor 603 and first battery 601;
4th GPIO interface 607, is connected between the processor 603 and second battery 602;
First AD interfaces 608, are connected between the processor 603 and first battery 601;
2nd AD interfaces 609, are connected between the processor 603 and second battery 602;
Accordingly, processor 603 can gather what whether first battery 601 accessed using the 3rd GPIO interface 606 Operational factor, and gather the operational factor whether second battery 602 accesses using the 4th GPIO interface 607.
Processor 603 can be used for the current voltage for utilizing the first AD interfaces 608 to gather first battery 601 Operational factor, and gather using the 2nd AD interfaces 609 operational factor of the current voltage of second battery 602.
As shown in the logic chart in the circuit part figure and Figure 10 in Fig. 9, GPIO1 is used for controlling battery A path, GPIO2 is used for controlling battery B path, and GPIO3 is battery A existence flag bits, and GPIO4 is battery B existence marks Position, AD1 is the detecting of battery A voltages, and AD2 is battery B detecting voltage, and AD3 is current system detecting voltage.AD1、AD2、 AD3 is EC AD interfaces.And GPIO1 and GPIO2 are by GPIO3, GPIO4, AD1, AD2, AD3 co- controlling, thus, this implementation Electronic equipment in example realizes the double cell even charge and discharge of many batteries using hardware circuit collocation EC GPIO interface and AD interfaces Electric control.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there is other identical element in the process including the key element, method, article or equipment.
Detailed Jie has been carried out to a kind of charge/discharge control method provided by the present invention, controller and electronic equipment above Continue, the foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or using the present invention.To these A variety of modifications of embodiment will be apparent for those skilled in the art, general original as defined herein Reason can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention will not Be intended to be limited to the embodiments shown herein, and be to fit to it is consistent with principles disclosed herein and features of novelty most Wide scope.

Claims (10)

1. a kind of charge/discharge control method, including:
The operational factor of the first battery and the operational factor of the second battery are gathered, the discharge and recharge priority of first battery is higher than The discharge and recharge priority of second battery;
The operational factor of operational factor and second battery based on first battery, to first battery and described Two batteries carry out charge control or control of discharge.
2. according to the method described in claim 1, it is characterised in that also include:
Monitor charge power supply and system voltage;
If charge power supply access and the system voltage be less than or equal to default first threshold, based on first battery Operational factor and second battery operational factor, by the charge power supply to first battery and it is described second electricity Pond carries out charge control;
If being accessed without charge power supply and the system voltage being more than or equal to default Second Threshold, based on the described first electricity The operational factor of the operational factor in pond and second battery, electric discharge control is carried out to first battery and second battery System.
3. method according to claim 1 or 2, it is characterised in that operational factor based on first battery and described The operational factor of second battery, charge control is carried out to first battery and second battery, including:
The operational factor of first battery is judged whether this is indicate that the current electricity of first battery access and first battery Pressure is less than or equal to default 3rd threshold value;
If the operational factor of first battery shows that the current voltage of the first battery access and first battery is small In or equal to default 3rd threshold value, control charge power supply to charge first battery, otherwise, judge second electricity The operational factor in pond is whether this is indicate that the current voltage of second battery access and second battery is less than or equal to default 4th threshold value;
If the operational factor of second battery shows that the current voltage of the second battery access and second battery is small In or equal to default 4th threshold value, the charge power supply is controlled to charge second battery.
4. method according to claim 1 or 2, it is characterised in that operational factor based on first battery and described The operational factor of second battery, control of discharge is carried out to first battery and second battery, including:
The operational factor of first battery is judged whether this is indicate that the current electricity of first battery access and first battery Pressure is more than or equal to default 5th threshold value;
If the operational factor of first battery shows that the current voltage of the first battery access and first battery is big In or equal to default 5th threshold value, control first battery to be discharged, otherwise, judge the operation ginseng of second battery Number is whether this is indicate that the current voltage of second battery access and second battery is more than or equal to default 6th threshold value;
If the operational factor of second battery shows that the current voltage of the second battery access and second battery is big In or equal to default 6th threshold value, second battery is controlled to be discharged.
5. according to the method described in claim 1, it is characterised in that the operational factor based on first battery and described second The operational factor of battery, charge control or control of discharge are carried out to first battery and second battery, including:
Using be connected on first battery the first universal input output (General Purpose Input Output, GPIO) interface and the second GPIO interface being connected on second battery, operational factor and institute based on first battery The operational factor of the second battery is stated, charge control or control of discharge are carried out to first battery and second battery.
6. a kind of controller, is connected by the first GPIO interface with the first battery, and passes through the second GPIO interface and the second electricity Pond is connected, and the discharge and recharge priority of first battery is higher than the discharge and recharge priority of second battery, wherein:
The controller, for gathering the operational factor of first battery and the operational factor of second battery, based on institute The operational factor of the first battery and the operational factor of second battery are stated, first GPIO interface and described second is utilized GPIO interface carries out charge control or control of discharge to first battery and second battery.
7. a kind of electronic equipment, including:
First battery and the second battery, the discharge and recharge priority of first battery are preferential higher than the discharge and recharge of second battery Level;
Processor, for gathering the operational factor of the first battery and the operational factor of the second battery, based on first battery The operational factor of operational factor and second battery, carries out charge control to first battery and second battery or puts Electric control.
8. electronic equipment according to claim 7, it is characterised in that also include:
First GPIO interface, is connected between the processor and first battery;
Second GPIO interface, is connected between the processor and second battery;
The processor, for gathering the operational factor of first battery and the operational factor of second battery, based on institute The operational factor of the first battery and the operational factor of second battery are stated, first GPIO interface and described second is utilized GPIO interface carries out charge control or control of discharge to first battery and second battery.
9. electronic equipment according to claim 7, it is characterised in that also include:
3rd GPIO interface, is connected between the processor and first battery;
4th GPIO interface, is connected between the processor and second battery;
The processor, specifically for gathering the operation ginseng whether first battery accesses using the 3rd GPIO interface Number, and gather the operational factor whether second battery accesses using the 4th GPIO interface.
10. electronic equipment according to claim 7, it is characterised in that also include:
First analog-to-digital conversion (Analog-to-Digital Convert, AD) interface, is connected to the processor and described first Between battery;
2nd AD interfaces, are connected between the processor and second battery;
The processor, is joined specifically for being gathered the operation of current voltage of first battery using the first AD interfaces Number, and the operational factor of the current voltage using the 2nd AD interfaces collection second battery.
CN201710494971.XA 2017-06-26 2017-06-26 A kind of charge/discharge control method, controller and electronic equipment Pending CN107171395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710494971.XA CN107171395A (en) 2017-06-26 2017-06-26 A kind of charge/discharge control method, controller and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710494971.XA CN107171395A (en) 2017-06-26 2017-06-26 A kind of charge/discharge control method, controller and electronic equipment

Publications (1)

Publication Number Publication Date
CN107171395A true CN107171395A (en) 2017-09-15

Family

ID=59827117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710494971.XA Pending CN107171395A (en) 2017-06-26 2017-06-26 A kind of charge/discharge control method, controller and electronic equipment

Country Status (1)

Country Link
CN (1) CN107171395A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450058A (en) * 2019-01-11 2019-03-08 深圳市迷购网络科技有限公司 Earphone charging method, earphone and computer readable storage medium
CN109888908A (en) * 2018-12-19 2019-06-14 北京航空航天大学 A kind of navigation system time-division multiplex low cost precision voltage source
CN110138052A (en) * 2019-06-18 2019-08-16 Oppo广东移动通信有限公司 Charge control method and Related product
CN110244229A (en) * 2019-07-30 2019-09-17 联想(北京)有限公司 Battery control method and electronic equipment
WO2020239034A1 (en) * 2019-05-28 2020-12-03 深圳市道通智能航空技术有限公司 Battery management method, battery management apparatus and aircraft

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103035966A (en) * 2011-09-29 2013-04-10 联想(北京)有限公司 Battery charge-discharge control method and electronic equipment
CN105811493A (en) * 2014-12-31 2016-07-27 联想(北京)有限公司 Power source circuit, power source circuit discharging method, power source circuit charging method and controller
CN106300512A (en) * 2016-08-22 2017-01-04 青岛歌尔声学科技有限公司 A kind of method and apparatus controlling portable power source discharge and recharge
CN106451582A (en) * 2015-08-11 2017-02-22 中兴通讯股份有限公司 Method and apparatus to control the power charge and power discharge

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103035966A (en) * 2011-09-29 2013-04-10 联想(北京)有限公司 Battery charge-discharge control method and electronic equipment
CN105811493A (en) * 2014-12-31 2016-07-27 联想(北京)有限公司 Power source circuit, power source circuit discharging method, power source circuit charging method and controller
CN106451582A (en) * 2015-08-11 2017-02-22 中兴通讯股份有限公司 Method and apparatus to control the power charge and power discharge
CN106300512A (en) * 2016-08-22 2017-01-04 青岛歌尔声学科技有限公司 A kind of method and apparatus controlling portable power source discharge and recharge

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109888908A (en) * 2018-12-19 2019-06-14 北京航空航天大学 A kind of navigation system time-division multiplex low cost precision voltage source
CN109450058A (en) * 2019-01-11 2019-03-08 深圳市迷购网络科技有限公司 Earphone charging method, earphone and computer readable storage medium
WO2020239034A1 (en) * 2019-05-28 2020-12-03 深圳市道通智能航空技术有限公司 Battery management method, battery management apparatus and aircraft
CN110138052A (en) * 2019-06-18 2019-08-16 Oppo广东移动通信有限公司 Charge control method and Related product
CN110138052B (en) * 2019-06-18 2023-04-07 Oppo广东移动通信有限公司 Charging control method and related product
CN110244229A (en) * 2019-07-30 2019-09-17 联想(北京)有限公司 Battery control method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107171395A (en) A kind of charge/discharge control method, controller and electronic equipment
CN103329338B (en) Battery pack and power consumption apparatus
CN109066868B (en) Refined dynamic reconfigurable battery management system and method
CN103683375A (en) Hybrid-type rechargeable battery module
CN111178423B (en) Fault early warning method and device
CN102769310B (en) Battery systems,electronic system and method for controlling at least one battery unit
CN103532203B (en) A kind of battery pack application node and matrix battery management system and implementation method
CN103475063A (en) Method for dynamic balance control over lithium ion battery
CN105162215A (en) Distributed battery management system and method for lead-acid storage battery pack equalization
CN113054706A (en) Balance monitoring control system and method for power battery
CN109347173B (en) Battery pack balance control circuit and method based on switched capacitor
CN108242842B (en) Management device and method for parallel connection of different types of storage battery packs
Viswanathan et al. Optimization techniques of battery packs using re-configurability: A review
CN204144974U (en) The protection of lithium battery and inversion system
CN204794291U (en) Battery management system's dynamic equalizer circuit
CN205178565U (en) Electric automobile power battery system's initiative equalizing system
CN112072727A (en) Battery pack balance control system and control method thereof
CN203504219U (en) Parallel charging maintenance device of battery group
CN108599210A (en) A kind of echelon battery energy storage system and method for household photovoltaic power grid
CN107154666A (en) A kind of batteries management system and electric power system
CN116565356B (en) Battery management system and method
CN107871901A (en) Energy storage system and battery balancing and repairing method
CN203607876U (en) A battery equalization management apparatus
CN206894270U (en) Battery management system
CN114844176A (en) Battery charging and discharging power control method and device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915