CN109378891A - Charging/discharging thereof, mobile power source and computer storage medium - Google Patents

Charging/discharging thereof, mobile power source and computer storage medium Download PDF

Info

Publication number
CN109378891A
CN109378891A CN201811295191.3A CN201811295191A CN109378891A CN 109378891 A CN109378891 A CN 109378891A CN 201811295191 A CN201811295191 A CN 201811295191A CN 109378891 A CN109378891 A CN 109378891A
Authority
CN
China
Prior art keywords
power source
current
mobile power
charging current
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811295191.3A
Other languages
Chinese (zh)
Other versions
CN109378891B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811295191.3A priority Critical patent/CN109378891B/en
Publication of CN109378891A publication Critical patent/CN109378891A/en
Application granted granted Critical
Publication of CN109378891B publication Critical patent/CN109378891B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering

Abstract

The embodiment of the present application discloses a kind of charging/discharging thereof, mobile power source and computer storage medium, and above-mentioned charging/discharging thereof includes: to determine entirety charging current after connecting terminal and adapter at the same time;Wherein, whole charging current is used for mobile power source and terminal charge;The first communication instruction is sent to adapter;Wherein, whole charging current is carried in the first communication instruction;After receiving corresponding first response of the first communication instruction, charged according to whole charging current, while discharge target electric current is determined according to whole charging current;The second communication instruction is sent to terminal, and after receiving corresponding second response of the second communication instruction, is discharged according to discharge target electric current to terminal;Wherein, discharge target electric current is carried in the second communication instruction.

Description

Charging/discharging thereof, mobile power source and computer storage medium
Technical field
The invention relates to the discharge technology of mobile power source more particularly to a kind of charging/discharging thereof, mobile power source and Computer storage medium.
Background technique
Currently, with the development of science and technology, miscellaneous terminal has become work indispensable in people's daily life Have, in order to make terminal more easily work, can come into being whenever and wherever possible to the mobile power source of terminal charge.Usual feelings Under condition, mobile power source will do it electric discharge when connecting terminal, when connecting adapter, will do it charging.
However, when mobile power source both with connect terminal, when being also attached with adapter, i.e., mobile power source is charging While directly discharge, will be greatly reduced the charge efficiency of mobile power source, while also can cause to damage to mobile power source, contract Short mobile power source uses the time.
Summary of the invention
The embodiment of the present application provides a kind of charging/discharging thereof, mobile power source and computer storage medium, can be in mobile electricity When source connects terminal and adapter simultaneously, the charge efficiency of mobile power source is effectively improved, while can reduce to mobile power source Injury, extend use the time.
The technical solution of the embodiment of the present application is achieved in that
The embodiment of the present application provides a kind of charging/discharging thereof, which comprises
After connecting terminal and adapter at the same time, entirety charging current is determined;Wherein, the whole charging current is used for To mobile power source and the terminal charge;
The first communication instruction is sent to the adapter;Wherein, the whole charging is carried in first communication instruction Electric current;
After receiving corresponding first response of first communication instruction, filled according to the whole charging current Electricity, while discharge target electric current is determined according to the whole charging current;
The second communication instruction is sent to the terminal, and is receiving corresponding second response of second communication instruction Afterwards, it is discharged according to the discharge target electric current to the terminal;Wherein, the discharge target is carried in second communication instruction Electric current.
Optionally, before the determining whole charging current, the method also includes:
Detect battery parameter.
Optionally, before the determining whole charging current, after the connection terminal at the same time and adapter, the side Method further include:
It is communicated with adapter foundation, obtains the corresponding default discharge threshold of the adapter;
It is communicated with terminal foundation, obtains the corresponding preset charged threshold value of the terminal and current electric quantity.
Optionally, the determining whole charging current, comprising:
Electric current to be charged is determined according to the battery parameter and the current electric quantity;
According to the electric current to be charged and the default discharge threshold, the whole charging current is determined.
It is optionally, described to be charged according to the whole charging current, comprising:
Target charge current is determined according to the whole charging current and the battery parameter;
It charges according to the target charge current.
It is optionally, described that discharge target electric current is determined according to the whole charging current, comprising:
Difference operation is carried out to the whole charging current and the target charge current, obtains difference result;
The difference result is determined as the discharge target electric current.
The embodiment of the present application provides a kind of mobile power source, and the mobile power source comprises determining that unit, transmission unit, with And charge/discharge unit, wherein
The determination unit determines entirety charging current after connecting terminal and adapter at the same time;Wherein, institute Whole charging current is stated for mobile power source and the terminal charge;
The transmission unit, for sending the first communication instruction to the adapter;Wherein, in first communication instruction Carry the whole charging current;
The charge/discharge unit is used for after receiving corresponding first response of first communication instruction, according to described Whole charging current charges;
The determination unit is also used to after receiving corresponding first response of first communication instruction, according to described Whole charging current determines discharge target electric current;
The transmission unit is also used to send the second communication instruction to the terminal;
The charge/discharge unit is also used to after receiving corresponding second response of second communication instruction, according to institute Discharge target electric current is stated to discharge to the terminal;Wherein, the discharge target electric current is carried in second communication instruction.
Optionally, the mobile power source further include: detection unit, wherein
The detection unit, for detecting battery parameter before determining whole charging current.
Optionally, the mobile power source further include: acquiring unit, wherein
The acquiring unit obtains described suitable for being communicated before determining whole charging current with adapter foundation The corresponding default discharge threshold of orchestration;And communicated with terminal foundation, obtain the corresponding preset charged threshold value of the terminal And current electric quantity;
The determination unit, specifically for determining electric current to be charged according to the battery parameter and the current electric quantity;With And according to the electric current to be charged and the default discharge threshold, determine the whole charging current.
Optionally, the charge/discharge unit is specifically used for being determined according to the whole charging current and the battery parameter Target charge current;And it charges according to the target charge current
The determination unit carries out difference fortune also particularly useful for the whole charging current and the target charge current It calculates, obtains difference result;And the difference result is determined as the discharge target electric current.
The embodiment of the present application proposes a kind of mobile power source, and the mobile power source includes processor, is stored with the processing The memory of device executable instruction;When executed, charge and discharge as described above are realized when the processor executes Method.
The embodiment of the present application proposes a kind of computer readable storage medium, is stored thereon with program, is applied to mobile electricity Charging/discharging thereof as described above is realized in source, when described program is executed by processor.
The embodiment of the present application provides a kind of charging/discharging thereof, mobile power source and computer storage medium, and connection is eventually at the same time After end and adapter, mobile power source determines whole charging current;Wherein, whole charging current is used for mobile power source and terminal Charging;The first communication instruction is sent to adapter;Wherein, whole charging current is carried in the first communication instruction;Receiving first After corresponding first response of communication instruction, charged according to whole charging current, while being determined according to whole charging current Discharge target electric current;The second communication instruction is sent to terminal, and after receiving corresponding second response of the second communication instruction, root It discharges according to discharge target electric current to terminal;Wherein, discharge target electric current is carried in the second communication instruction.It can be seen that originally please mention Charging/discharging thereof out after mobile power source can connect at the same time adapter and terminal, is sent to adapter to mobile power source Entirety charging current required for being charged with terminal, then after accessing whole charging current by adapter, into While row charging, determines discharge target electric current and discharge according to discharge target electric current terminal, i.e., mobile power source can extract One part of current in whole charging current charges, and the remainder in whole charging current discharges to terminal.To make When mobile power source connects terminal and adapter at the same time, the charge efficiency of mobile power source is effectively improved, while can reduce pair The injury of mobile power source extends and uses the time.
Detailed description of the invention
Fig. 1 is a kind of implementation process schematic diagram for charging/discharging thereof that the embodiment of the present application proposes;
Fig. 2 is the schematic diagram that mobile power source is communicated with adapter and terminal in the embodiment of the present application;
Fig. 3 is the composed structure schematic diagram one for the mobile power source that the embodiment of the present application proposes;
Fig. 4 is the composed structure schematic diagram two for the mobile power source that the embodiment of the present application proposes;
Fig. 5 is the composed structure schematic diagram three for the mobile power source that the embodiment of the present application proposes.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.It is understood that specific embodiment described herein is used only for explaining related application, rather than to this application Restriction.It also should be noted that illustrating only part relevant to related application for ease of description, in attached drawing.
In embodiments herein, mobile power source may include power control, wherein power control can be with Including crust of the device, crust of the device is provided with power input interface, power output interface and the first contact feed point, power input and connects Mouth and power output interface are electrically connected with the first contact feed point, for controlling mobile power source charge and discharge.
Mobile power source can also include at least one battery unit, wherein each battery unit includes battery, for accommodating The battery case of battery, second be electrically connected with battery contact feed point and third contacts feed point;Third contact feed point be used for it is another Second contact feed point contact conducting of one battery unit.Power control is connected with battery unit, power control and institute When stating battery unit connection, the conducting corresponding with the second contact feed point of a battery unit of the first contact feed point.
In embodiments herein, mobile power source can be attached simultaneously with adapter and terminal and communicate, specifically, The adapter being attached with mobile power source can be the adapter of support quick charge.Under normal circumstances, for dodge fill it is suitable Micro-control unit (Microcontroller Unit, MCU) intelligent chip is configured in orchestration, therefore the adapter is that can rise The intelligent charger of grade.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.
One embodiment of the application provides a kind of charging/discharging thereof, which is applied in mobile power source, and Fig. 1 is The implementation process schematic diagram for a kind of charging/discharging thereof that the embodiment of the present application proposes, as shown in Figure 1, in embodiments herein In, the method that above-mentioned mobile power source carries out charge and discharge may comprise steps of:
Step 101 after connecting terminal and adapter at the same time, determines entirety charging current;Wherein, whole charging current For to mobile power source and terminal charge.
In embodiments herein, mobile power source, can first really after establishing connection simultaneously with terminal and adapter Fixed entirety charging current.
It should be noted that above-mentioned entirety charging current can be mobile power source and terminal in embodiments herein The required electric current summation to charge.
Further, in embodiments herein, charge and discharge integrated circuit can be configured in above-mentioned mobile power source (Integrated Circuit, IC), specifically, mobile power source can be boosted or are depressured by charge and discharge IC.
It should be noted that above-mentioned mobile power source can pass through charge and discharge when being discharged in embodiments herein Electric IC carries out buck processing to cell voltage, to obtain output voltage, and is carried out according to terminal of the output voltage to access Charging.
Further, in this application, above-mentioned terminal is the charging equipment that can be connect with mobile power source, for example, eventually End can be any terminal for having communication and store function, such as: it is tablet computer, mobile phone, electronic reader, remote controler, a The terminals such as people's computer (Personal Computer, PC), laptop, mobile unit, Web TV, wearable device.
It should be noted that above-mentioned terminal is configured with communication interface, such as universal serial bus in embodiments herein (Universal Serial Bus, USB) interface, therefore, terminal can establish connection by communication interface and mobile power source.
Further, in embodiments herein, above-mentioned mobile power source and above-mentioned terminal are established after connection, to end When corresponding discharge voltage being held to be detected, charge protocol corresponding to terminal can be determined by the communication interface of terminal, To determine the charging voltage and charging current that terminal is supported according to charge protocol.
It should be noted that above-mentioned mobile power source can connect when being charged passing through in embodiments herein It connects after the adapter access charging voltage of letter, buck processing is carried out by charging voltage of the charge and discharge IC to access, from And complete charging.
It should be noted that in embodiments herein, above-mentioned mobile power source with above-mentioned adapter establish connection it Afterwards, adapter can be by the data line in USB interface to mobile power source tranmitting data register signal, wherein clock signal is for referring to Show the communication timing between adapter and mobile power source.Specifically, adapter is actively to mobile power source tranmitting data register signal, and fits Orchestration can keep the transmission of the clock signal during the entire process of connecting with mobile power source, thus can be in the communication Two-way communication is carried out with mobile power source under the control of sequence.
Further, in embodiments herein, when communication timing includes that the instruction for the adapter being alternately produced is sent The command reception period of section and adapter.
Further, in embodiments herein, above-mentioned adapter can be used for carrying out quick charge to mobile power source, Specifically, adapter can be connected with mobile power source by USB interface, which can be common USB interface, can also To be micro USB interface or Type C interface etc..It is mobile power source charging that power supply line in USB interface, which is used for adapter, In, the power supply line in USB interface can be VBus line and/or ground wire in USB interface.Data line in USB interface is for fitting Orchestration and mobile power source carry out two-way communication, which can be D+ line and/or D- line in USB interface, so-called two-way Letter can refer to that adapter and mobile power source both sides carry out the interaction of information.
Further, in embodiments herein, above-mentioned adapter can support normal charging mode and quick charge Mode, wherein the charging current of fast charge mode is greater than the charging current of normal charging mode, i.e. fast charge mode fills Electric speed is greater than the charging rate of the normal charging mode.In general, normal charging mode can be understood as rated output Voltage is 5V, and output-current rating is less than or equal to the charge mode of 2.5A, in addition, under normal charging mode, power supply adaptor Output port D+ and D- can be short-circuit, and power supply adaptor can use D+ and D- and mobile mobile power source under fast charge mode Carry out communication and data exchange.
It should be noted that in embodiments herein, above-mentioned mobile power source can be different configured with MCU and two USB interface, after the MCU of mobile power source detects while being connected with terminal and adapter, can by DP1, DN1, DP2 with And DN2 is communicated with terminal and adapter respectively, may thereby determine that out whole charging current.
Fig. 2 is the schematic diagram that mobile power source is communicated with adapter and terminal in the embodiment of the present application, as shown in Fig. 2, After the MCU of mobile power source is detected while being established connection with adapter and terminal, DP1, DN1, DP2 and DN2 can be passed through It is communicated respectively with terminal and adapter.Mobile power source, can be by filling after the charging current that couple in adapter exports The folding of electric discharge IC control switch 1 and switch 2 can also discharge so as to charge the battery to terminal.
Further, in embodiments herein, if mobile power source and adapter establish connection by USB1 interface, The so charge protocol that can be supported by DP1 and DN1 recognition and verification adapter of mobile power source, so as to further basis Charge protocol confirms the discharge voltage and discharge current that adapter is supported.
Further, in embodiments herein, if mobile power source and terminal establish connection by USB2 interface, that The charge protocol that mobile power source can be supported by DP2 and DN2 recognition and verification terminal, so as to further according to charging The corresponding discharge voltage of protocol validation terminal and discharge current.
It should be noted that in embodiments herein, above-mentioned mobile power source at the same time with above-mentioned terminal and above-mentioned suitable Orchestration is established after connection, can also be detected to the design parameter of battery, to determine the state of battery.
Further, in embodiments herein, above-mentioned mobile power source at the same time with above-mentioned terminal and above-mentioned adapter It establishes after connection, can also determine the corresponding charge condition of terminal by being communicated with terminal.
Further, in embodiments herein, above-mentioned mobile power source can in conjunction with itself battery status and above-mentioned end The charge condition at end further determines that out the overall current to charge required for mobile power source and terminal, i.e., whole charging electricity Stream.
Further, in embodiments herein, above-mentioned mobile power source is when determining whole charging current, it is also necessary to tie The discharge current that the suitable corresponding charge protocol of orchestration supports adapter accounts for.
Step 102 sends the first communication instruction to adapter;Wherein, whole charging current is carried in the first communication instruction.
In embodiments herein, above-mentioned mobile power source can be sent out after determining whole charging current to adapter Send the first communication instruction.
It should be noted that above-mentioned first communication instruction carries whole charging current in embodiments herein.
Further, in embodiments herein, above-mentioned mobile power source is determining charging required for itself and terminal Whole charging current after, can by whole charging current notify adapter, to can be filled by adapter Electricity.
It should be noted that above-mentioned mobile power source is in the charging needed to adapter notice in embodiments herein It when electric current, can be communicated by DP1 and DN1 with adapter, carry the first of whole charging current to adapter transmission Communication instruction.
Further, in embodiments herein, above-mentioned mobile power source to adapter send the first communication instruction it Afterwards, it can receive the first response that the first communication instruction is sent, for responding the first communication instruction.
It should be noted that above-mentioned first response is used to indicate mobile power source access charging in embodiments herein Electric current charges.
Step 103, receive the first communication instruction it is corresponding first response after, filled according to whole charging current Electricity, while discharge target electric current is determined according to whole charging current.
In embodiments herein, above-mentioned mobile power source is after sending the first communication instruction to adapter, Ke Yi After receiving corresponding first response of the first communication instruction, charged according to whole charging current, while according to whole charging Electric current determines discharge target electric current.
It should be noted that above-mentioned mobile power source is receiving the first of adapter transmission in embodiments herein After response, the whole charging current that can be provided with couple in adapter, and charged according to whole charging current.
It should be noted that in embodiments herein, above-mentioned mobile power source when determining whole charging current, due to The discharge current that the corresponding charge protocol of binding adapter supports adapter is considered, therefore whole charging current symbol The corresponding charge protocol of suitable orchestration, so as to so that adapter can be mobile electricity after receiving the first communication instruction Source provides whole charging current.
Further, in embodiments herein, above-mentioned mobile power source is after the response of reception first, according to entirety While charging current is charged, discharge target electric current can also be determined according to whole charging current.
It should be noted that above-mentioned entirety charging current is used for mobile power source and terminal in embodiments herein It charges, therefore, mobile power source can determine the corresponding charging current of terminal according to whole charging current, as to terminal The discharge target electric current of charging.
Further, in embodiments herein, above-mentioned mobile power source can from whole charging current extraction section Electric current is used for the charging of itself, then charges remaining electric current as discharge target electric current to terminal.
Step 104 sends the second communication instruction to terminal, and is receiving corresponding second response of the second communication instruction Afterwards, it is discharged according to discharge target electric current to terminal;Wherein, discharge target electric current is carried in the second communication instruction.
In embodiments herein, above-mentioned mobile power source charges according to whole charging current, while according to whole After bulk charging electric current determines discharge target electric current, the second communication instruction can be sent to terminal, then be communicated in reception second After instructing corresponding second response, discharge to terminal according to discharge target electric current.
It should be noted that discharge target electric current is carried in above-mentioned second communication instruction in embodiments herein, Discharge target electric current is for charging to terminal.
Further, in embodiments herein, above-mentioned mobile power source to terminal send the second communication instruction after, It can receive the second response that second terminal is sent, for responding the second communication instruction.Mobile power source is receiving the second sound After answering, it can discharge according to discharge target electric current terminal.
It should be noted that above-mentioned mobile power source accesses overall goals electricity by adapter in embodiments herein Stream, while being charged according to overall goals electric current, also exports the discharge target electric current in overall goals electric current to end End, so as to realize that passing through adapter simultaneously charges to mobile power source and terminal, to improve the charging effect of mobile power source Rate.
Further, in embodiments herein, the discharge target electric current that above-mentioned mobile power source discharges to terminal is logical Cross what whole charging current obtained, rather than directly exported from the battery of mobile power source, therefore the charging side that the application proposes The charge and discharge of mobile power source not only can be improved when mobile power source connects adapter simultaneously and terminal carries out charge and discharge in method Efficiency, more can be to avoid the damage to mobile power source.
A kind of charging/discharging thereof that the embodiment of the present application proposes, after connecting terminal and adapter at the same time, mobile power source Determine entirety charging current;Wherein, whole charging current is used for mobile power source and terminal charge;It is logical that first is sent to adapter Letter instruction;Wherein, whole charging current is carried in the first communication instruction;Receiving corresponding first response of the first communication instruction Afterwards, it is charged according to whole charging current, while discharge target electric current is determined according to whole charging current;The is sent to terminal Two communication instructions, and after receiving corresponding second response of the second communication instruction, it is discharged according to discharge target electric current to terminal; Wherein, discharge target electric current is carried in the second communication instruction.It can be seen that the charging/discharging thereof that originally please be proposed, mobile power source can After connecting adapter and terminal at the same time, the required entirety that charges is carried out to mobile power source and terminal to adapter transmission Charging current while being charged, determines discharge target electricity then after accessing whole charging current by adapter Flow simultaneously according to discharge target electric current to terminal discharge, i.e., mobile power source can extract the one part of current in whole charging current into Row charges, and the remainder in whole charging current discharges to terminal.To make mobile power source connect terminal and adaptation at the same time When device, the charge efficiency of mobile power source is effectively improved, while can reduce the injury to mobile power source, extends and uses the time.
Based on the above embodiment, in another embodiment of the application, above-mentioned mobile power source is determining whole charging current Before, mobile power source carry out charge and discharge method can with the following steps are included:
Step 105, detection battery parameter.
In embodiments herein, above-mentioned mobile power source can be detected first certainly before determining whole charging and discharging currents The battery status of body, i.e. detection obtain battery parameter.
It should be noted that above-mentioned mobile power source is needed when determining whole charging current in embodiments herein According to the charge condition of the concrete condition of battery and terminal, the charging current of needs is determined, therefore mobile power source is true Before fixed entirety charging current, battery parameter can be first detected.
Further, in embodiments herein, the battery that above-mentioned battery parameter is used to characterize mobile power source is corresponding Design parameter.Wherein, battery parameter may include a variety of design parameters of battery, for example, battery parameter can mention for battery Output electric current, the output voltage of confession, battery parameter can also be electrical parameter.
In embodiments herein, further, above-mentioned mobile power source is before determining whole charging current, at the same time After connecting terminal and adapter, mobile power source carry out charge and discharge method can with the following steps are included:
Step 106 is communicated with adapter foundation, obtains the corresponding default discharge threshold of adapter.
In embodiments herein, above-mentioned mobile power source, can elder generation and adapter before determining whole charging current Communication is established, the corresponding default discharge threshold of adapter is then obtained.
It should be noted that above-mentioned mobile power source is established with adapter and terminal at the same time in embodiments herein After connection, it can establish and communicate with adapter, then the charge protocol of adapter can be identified, be may thereby determine that The corresponding default discharge threshold of adapter.
Further, in the implementation of the application, above-mentioned default discharge threshold for characterize adapter to mobile power source into Specific discharge parameter when row charging.
Further, in embodiments herein, above-mentioned mobile power source can be carried out by DP1 and DN1 and adapter Communication, thus the corresponding fast charge agreement of identification adapter.
Step 107 is communicated with terminal foundation, obtains the corresponding preset charged threshold value of terminal and current electric quantity.
In embodiments herein, above-mentioned mobile power source can first be built with terminal before determining whole charging current Then vertical communication obtains the corresponding preset charged threshold value of terminal and current electric quantity.
It should be noted that above-mentioned mobile power source is established with adapter and terminal at the same time in embodiments herein After connection, it can establish and communicate with terminal, then the charge protocol of terminal can be identified, while to the battery of terminal Electricity is detected, and may thereby determine that the corresponding preset charged threshold value of terminal and current electric quantity.
Further, in the implementation of the application, above-mentioned preset charged threshold value carries out terminal for characterizing mobile power source Specific charge parameter when charging;Current electric quantity is used to characterize the strong situation of current electric quantity of terminal.
Further, in embodiments herein, above-mentioned mobile power source can be led to by DP2 and DN2 with terminal Letter, thus the corresponding fast charge agreement of identification terminal, and obtain the charge condition of terminal.
In embodiments herein, further, the method that above-mentioned mobile power source determines whole charging current be can wrap Include following steps:
Step 201 determines electric current to be charged according to battery parameter and current electric quantity.
In embodiments herein, above-mentioned mobile power source obtains battery parameter in detection, and by establishing with terminal After communicating the current electric quantity obtained, electric current to be charged can be further determined that out according to battery parameter and current electric quantity.
It should be noted that above-mentioned electric current to be charged may include required for mobile power source in embodiments herein Charging current and terminal required for charging current.
Further, in embodiments herein, above-mentioned mobile power source, can first basis when determining electric current to be charged The battery parameter of mobile power source determines charging current required for mobile power source, while can be according to the corresponding current electricity of terminal Amount determines charging current required for terminal, is determined so as to further treat charging current.
Step 202, according to electric current to be charged and default discharge threshold, determine entirety charging current.
In embodiments herein, above-mentioned mobile power source, can be according to be charged after determining electric current to be charged Electric current and default discharge threshold, further determine that whole charging current.
It should be noted that above-mentioned mobile power source can first by electric current to be charged and be preset in embodiments herein Discharge threshold is compared, to determine whole charging current according to comparison result.
Further, in embodiments herein, above-mentioned mobile power source is by electric current to be charged and default discharge threshold After being compared, if default discharge threshold is more than or equal to electric current to be charged, i.e., required for mobile power source and terminal Charging current meets the corresponding charge protocol of adapter, fills then electric current to be charged can be determined as above-mentioned entirety by mobile power source Electric current.
Further, in embodiments herein, above-mentioned mobile power source is by electric current to be charged and default discharge threshold After being compared, if default discharge threshold is less than electric current to be charged, i.e. charging current required for mobile power source and terminal The corresponding charge protocol of adapter is not met, then default discharge threshold can be determined as whole charging current by mobile power source.
It should be noted that above-mentioned mobile power source is when determining whole charging current, not only in embodiments herein The charge condition of battery status and terminal to mobile power source considered, at the same also to the corresponding discharge capability of adapter into Consideration is gone.
A kind of charging/discharging thereof that the embodiment of the present application proposes, after connecting terminal and adapter at the same time, mobile power source Determine entirety charging current;Wherein, whole charging current is used for mobile power source and terminal charge;It is logical that first is sent to adapter Letter instruction;Wherein, whole charging current is carried in the first communication instruction;Receiving corresponding first response of the first communication instruction Afterwards, it is charged according to whole charging current, while discharge target electric current is determined according to whole charging current;The is sent to terminal Two communication instructions, and after receiving corresponding second response of the second communication instruction, it is discharged according to discharge target electric current to terminal; Wherein, discharge target electric current is carried in the second communication instruction.It can be seen that the charging/discharging thereof that originally please be proposed, mobile power source can After connecting adapter and terminal at the same time, the required entirety that charges is carried out to mobile power source and terminal to adapter transmission Charging current while being charged, determines discharge target electricity then after accessing whole charging current by adapter Flow simultaneously according to discharge target electric current to terminal discharge, i.e., mobile power source can extract the one part of current in whole charging current into Row charges, and the remainder in whole charging current discharges to terminal.To make mobile power source connect terminal and adaptation at the same time When device, the charge efficiency of mobile power source is effectively improved, while can reduce the injury to mobile power source, extends and uses the time.
Based on the above embodiment, in the another embodiment of the application, above-mentioned mobile power source is according to the whole charging electricity The method that stream charges may comprise steps of:
Step 301 determines target charge current according to whole charging current and battery parameter.
In embodiments herein, above-mentioned mobile power source receive the first communication instruction it is corresponding first response after, Charging current can be determined according to whole charging current and battery parameter.
It should be noted that above-mentioned mobile power source is accessing whole charging by adapter in embodiments herein After electric current, mobile power source can first extract a part electricity when being charged according to overall current from whole charging current Stream, as target charge current, charges to the battery to mobile power source.Wherein, mobile power source is electric from whole charging When extracting target charge current in stream, whole charging current can be extracted and be distributed in conjunction with battery parameter.
Further, in embodiments herein, above-mentioned mobile power source from whole charging current extract target fill When electric current, target charge current can also be preset.
Step 302 charges according to target charge current.
In embodiments herein, above-mentioned mobile power source is determining that target is filled according to whole charging current and battery parameter After electric current, it can charge according to target charge current.
It should be noted that mobile power source is accessing whole charging current by adapter in embodiments herein Later, whole charging current can't be completely used for charging to battery, but it is electric that the target in whole charging current is charged Stream is input to battery and charges.
In embodiments herein, further, above-mentioned mobile power source is according to whole charging current and battery parameter After determining target charge current, discharge target electric current further can be determined according to whole charging current.
Further, in embodiments herein, above-mentioned mobile power source is determining that target is put according to whole charging current When electric current, difference operation can be carried out to whole charging current and target charge current, it is hereby achieved that whole charging electricity Difference result between stream and target charge current.Further, difference result can be determined as discharge target by mobile power source Electric current, for example, mobile power source is I1 by the whole charging current that adapter accesses, determining target charge current is I2, because This, discharge target electric current can be determined as I3=I1-I2 by mobile power source.
It should be noted that above-mentioned mobile power source is accessing whole charging by adapter in embodiments herein After electric current, the target charge current in whole charging current is input to battery and is charged, then by whole charging current Residual current other than middle target charge current is exported as discharge target electric current, and by discharge target electric current to terminal, with right Terminal charges.
A kind of charging/discharging thereof that the embodiment of the present application proposes, after connecting terminal and adapter at the same time, mobile power source Determine entirety charging current;Wherein, whole charging current is used for mobile power source and terminal charge;It is logical that first is sent to adapter Letter instruction;Wherein, whole charging current is carried in the first communication instruction;Receiving corresponding first response of the first communication instruction Afterwards, it is charged according to whole charging current, while discharge target electric current is determined according to whole charging current;The is sent to terminal Two communication instructions, and after receiving corresponding second response of the second communication instruction, it is discharged according to discharge target electric current to terminal; Wherein, discharge target electric current is carried in the second communication instruction.It can be seen that the charging/discharging thereof that originally please be proposed, mobile power source can After connecting adapter and terminal at the same time, the required entirety that charges is carried out to mobile power source and terminal to adapter transmission Charging current while being charged, determines discharge target electricity then after accessing whole charging current by adapter Flow simultaneously according to discharge target electric current to terminal discharge, i.e., mobile power source can extract the one part of current in whole charging current into Row charges, and the remainder in whole charging current discharges to terminal.To make mobile power source connect terminal and adaptation at the same time When device, the charge efficiency of mobile power source is effectively improved, while can reduce the injury to mobile power source, extends and uses the time.
In the another embodiment of the application, Fig. 3 is the composed structure signal for the mobile power source that the embodiment of the present application proposes Figure one transmission unit 12 and fills as shown in figure 3, the mobile power source 1 that the embodiment of the present application proposes can include determining that unit 11 Discharge cell 13.
The determination unit 11 determines entirety charging current after connecting terminal and adapter at the same time;Wherein, The entirety charging current is used for mobile power source and the terminal charge.
The transmission unit 12, for sending the first communication instruction to the adapter;Wherein, first communication instruction It is middle to carry the whole charging current.
The charge/discharge unit 13 is used for after receiving corresponding first response of first communication instruction, according to institute Whole charging current is stated to charge.
The determination unit 11 is also used to after receiving corresponding first response of first communication instruction, according to institute It states whole charging current and determines discharge target electric current.
The transmission unit 12 is also used to send the second communication instruction to the terminal.
The charge/discharge unit 13 is also used to after receiving corresponding second response of second communication instruction, according to The discharge target electric current discharges to the terminal;Wherein, the discharge target electric current is carried in second communication instruction.
Fig. 4 is the composed structure schematic diagram two for the mobile power source that the embodiment of the present application proposes, as shown in figure 4, the application is real The mobile power source 1 for applying example proposition can also include detection unit 14 and acquiring unit 15.
The detection unit 14, for detecting battery parameter before determining whole charging current.
The acquiring unit 15, for being communicated with adapter foundation, described in acquisition before determining whole charging current The corresponding default discharge threshold of adapter;And communicated with terminal foundation, obtain the corresponding preset charged threshold of the terminal Value and current electric quantity.
Further, in embodiments herein, the determination unit 11, be specifically used for according to the battery parameter and The current electric quantity determines electric current to be charged;And according to the electric current to be charged and the default discharge threshold, determine described in Whole charging current.
Further, in embodiments herein, the charge/discharge unit 13 is specifically used for according to the whole charging Electric current and the battery parameter determine target charge current;And it charges according to the target charge current
Further, in embodiments herein, the determination unit 11, also particularly useful for the whole charging electricity Stream and the target charge current carry out difference operation, obtain difference result;And the difference result is determined as the mesh Mark discharge current.
Fig. 5 is the composed structure schematic diagram three for the mobile power source that the embodiment of the present application proposes, as shown in figure 5, the application is real The mobile power source 1 for applying example proposition can also include processor 16, the memory 17 for being stored with 16 executable instruction of processor, into one Step ground, mobile power source 1 can also include communication interface 18, and for connecting processor 16, memory 17 and communication interface 18 Bus 19.
In embodiments herein, above-mentioned processor 16 can be application-specific IC (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device (ProgRAMmable Logic Device, PLD), field programmable gate array (Field ProgRAMmable Gate Array, FPGA), central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor At least one of.It, can be with for realizing the electronic device of above-mentioned processor function it is to be appreciated that for different equipment To be other, the embodiment of the present application is not especially limited.For storing executable program code, which includes memory 17 Computer operation instruction, memory 17 may include high speed RAM memory, it is also possible to and it further include nonvolatile memory, for example, At least two magnetic disk storages.
In embodiments herein, bus 19 for connection communication interface 18, processor 16 and memory 17 and Being in communication with each other between these devices.
In embodiments herein, memory 17, for storing instruction and data.
Further, in embodiments herein, above-mentioned processor 16, for connect at the same time terminal and adapter it Afterwards, whole charging current is determined;Wherein, the whole charging current is used for mobile power source and the terminal charge;To described Adapter sends the first communication instruction;Wherein, the whole charging current is carried in first communication instruction;Described in reception After corresponding first response of first communication instruction, charged according to the whole charging current, while according to the entirety Charging current determines discharge target electric current;The second communication instruction is sent to the terminal, and is receiving second communication instruction After corresponding second response, discharged according to the discharge target electric current to the terminal;Wherein, in second communication instruction Carry the discharge target electric current.
In practical applications, above-mentioned memory 17 can be volatibility first memory (volatile memory), such as Arbitrary access first memory (Random-Access Memory, RAM);Or non-volatile first memories (non- Volatile memory), for example, read-only first memory (Read-Only Memory, ROM), quick flashing first memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD);Or The combination of the first memory of person's mentioned kind.
In addition, each functional module in the present embodiment can integrate in one processing unit, it is also possible to each list Member physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both can be with Using formal implementation of hardware, can also be realized in the form of software function module.
If integrated unit realizes that being not intended as independent product is sold or made in the form of software function module Used time can store in a computer readable storage medium, based on this understanding, the technical solution sheet of the present embodiment The all or part of the part that contributes to existing technology or the technical solution can be with software product in other words in matter Form embodies, which is stored in a storage medium, including some instructions are used so that a meter It calculates machine equipment (can be personal computer, server or the network equipment etc.) or processor (processor) executes this implementation The all or part of the steps of example method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
A kind of mobile power source that the embodiment of the present application proposes, after connecting terminal and adapter at the same time, mobile power source is true Fixed entirety charging current;Wherein, whole charging current is used for mobile power source and terminal charge;The first communication is sent to adapter Instruction;Wherein, whole charging current is carried in the first communication instruction;Receiving corresponding first response of the first communication instruction Afterwards, it is charged according to whole charging current, while discharge target electric current is determined according to whole charging current;The is sent to terminal Two communication instructions, and after receiving corresponding second response of the second communication instruction, it is discharged according to discharge target electric current to terminal; Wherein, discharge target electric current is carried in the second communication instruction.It can be seen that the charging/discharging thereof that originally please be proposed, mobile power source can After connecting adapter and terminal at the same time, the required entirety that charges is carried out to mobile power source and terminal to adapter transmission Charging current while being charged, determines discharge target electricity then after accessing whole charging current by adapter Flow simultaneously according to discharge target electric current to terminal discharge, i.e., mobile power source can extract the one part of current in whole charging current into Row charges, and the remainder in whole charging current discharges to terminal.To make mobile power source connect terminal and adaptation at the same time When device, the charge efficiency of mobile power source is effectively improved, while can reduce the injury to mobile power source, extends and uses the time.
The embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with program, and the program is by processor Charging/discharging thereof as described above is realized when execution.
Specifically, the corresponding program instruction of one of the present embodiment charging/discharging thereof can be stored in CD, firmly Disk, on the storage mediums such as USB flash disk, when the program instruction corresponding with a kind of charging/discharging thereof in storage medium is read by an electronic equipment It takes or is performed, include the following steps:
After connecting terminal and adapter at the same time, entirety charging current is determined;Wherein, the whole charging current is used for To mobile power source and the terminal charge;
The first communication instruction is sent to the adapter;Wherein, the whole charging is carried in first communication instruction Electric current;
After receiving corresponding first response of first communication instruction, filled according to the whole charging current Electricity, while discharge target electric current is determined according to the whole charging current;
The second communication instruction is sent to the terminal, and is receiving corresponding second response of second communication instruction Afterwards, it is discharged according to the discharge target electric current to the terminal;Wherein, the discharge target is carried in second communication instruction Electric current.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the application Formula.Moreover, the application, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The application is realization of the reference according to the method, equipment (system) and computer program product of the embodiment of the present application Flow diagram and/or block diagram describe.It should be understood that flow diagram and/or box can be realized by computer program instructions The combination of each flow and/or block in figure and the process in implementation process schematic diagram and/or block diagram and/or box. These computer program instructions be can provide to general purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of processing equipment is to generate a machine, so that passing through computer or the processor of other programmable data processing devices The instruction of execution generate for realizing in one box of implementation process schematic diagram one process or multiple processes and/or block diagrams or The device for the function of being specified in multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, The manufacture of device is enabled, which realizes in implementation process schematic diagram one process or multiple processes and/or block diagrams one The function of being specified in a box or multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction that is executed on other programmable devices provide for realizing in one process of implementation process schematic diagram or multiple processes and/or The step of function of being specified in one or more blocks of the block diagram.
The above, the only preferred embodiment of the application, are not intended to limit the protection scope of the application.

Claims (12)

1. a kind of charging/discharging thereof, which is characterized in that the described method includes:
After connecting terminal and adapter at the same time, entirety charging current is determined;Wherein, the whole charging current is used for shifting Dynamic power supply and the terminal charge;
The first communication instruction is sent to the adapter;Wherein, the whole charging current is carried in first communication instruction;
After receiving corresponding first response of first communication instruction, charged according to the whole charging current, together When discharge target electric current determined according to the whole charging current;
The second communication instruction is sent to the terminal, and after receiving corresponding second response of second communication instruction, root It discharges according to the discharge target electric current to the terminal;Wherein, the discharge target electric current is carried in second communication instruction.
2. the method according to claim 1, wherein the method is also before the determining whole charging current Include:
Detect battery parameter.
3. according to the method described in claim 2, it is characterized in that, before the determining whole charging current, it is described at the same time After connecting terminal and adapter, the method also includes:
It is communicated with adapter foundation, obtains the corresponding default discharge threshold of the adapter;
It is communicated with terminal foundation, obtains the corresponding preset charged threshold value of the terminal and current electric quantity.
4. according to the method described in claim 3, it is characterized in that, the determining whole charging current, comprising:
Electric current to be charged is determined according to the battery parameter and the current electric quantity;
According to the electric current to be charged and the default discharge threshold, the whole charging current is determined.
5. according to the method described in claim 2, wrapping it is characterized in that, described charge according to the whole charging current It includes:
Target charge current is determined according to the whole charging current and the battery parameter;
It charges according to the target charge current.
6. according to the method described in claim 5, it is characterized in that, described determine discharge target according to the whole charging current Electric current, comprising:
Difference operation is carried out to the whole charging current and the target charge current, obtains difference result;
The difference result is determined as the discharge target electric current.
7. a kind of mobile power source, which is characterized in that the mobile power source comprises determining that unit, transmission unit and charge and discharge list Member, wherein
The determination unit determines entirety charging current after connecting terminal and adapter at the same time;Wherein, described whole Bulk charging electric current is used for mobile power source and the terminal charge;
The transmission unit, for sending the first communication instruction to the adapter;Wherein, it is carried in first communication instruction The entirety charging current;
The charge/discharge unit is used for after receiving corresponding first response of first communication instruction, according to the entirety Charging current charges;
The determination unit is also used to after receiving corresponding first response of first communication instruction, according to the entirety Charging current determines discharge target electric current;
The transmission unit is also used to send the second communication instruction to the terminal;
The charge/discharge unit is also used to after receiving corresponding second response of second communication instruction, according to the mesh Mark discharge current discharges to the terminal;Wherein, the discharge target electric current is carried in second communication instruction.
8. according to mobile power source described in right 7, which is characterized in that the mobile power source further include: detection unit, wherein
The detection unit, for detecting battery parameter before determining whole charging current.
9. mobile power source according to claim 8, which is characterized in that the mobile power source further include: acquiring unit, wherein
The acquiring unit, for being communicated with adapter foundation, obtaining the adapter before determining whole charging current Corresponding default discharge threshold;And communicated with terminal foundation, it obtains the corresponding preset charged threshold value of the terminal and works as Preceding electricity;
The determination unit, specifically for determining electric current to be charged according to the battery parameter and the current electric quantity;And root According to the electric current to be charged and the default discharge threshold, the whole charging current is determined.
10. mobile power source according to claim 8, which is characterized in that
The charge/discharge unit, specifically for determining target charging electricity according to the whole charging current and the battery parameter Stream;And it charges according to the target charge current
The determination unit carries out difference operation also particularly useful for the whole charging current and the target charge current, Obtain difference result;And the difference result is determined as the discharge target electric current.
11. a kind of mobile power source, which is characterized in that the mobile power source includes processor, to be stored with the processor executable The memory of instruction;When executed, it is realized when the processor executes as claimed in any one of claims 1 to 6 Method.
12. a kind of computer readable storage medium, is stored thereon with program, it is applied in mobile power source, which is characterized in that described As the method according to claim 1 to 6 is realized when program is executed by processor.
CN201811295191.3A 2018-11-01 2018-11-01 Charging and discharging method, mobile power supply and computer storage medium Active CN109378891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811295191.3A CN109378891B (en) 2018-11-01 2018-11-01 Charging and discharging method, mobile power supply and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811295191.3A CN109378891B (en) 2018-11-01 2018-11-01 Charging and discharging method, mobile power supply and computer storage medium

Publications (2)

Publication Number Publication Date
CN109378891A true CN109378891A (en) 2019-02-22
CN109378891B CN109378891B (en) 2021-03-05

Family

ID=65397413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811295191.3A Active CN109378891B (en) 2018-11-01 2018-11-01 Charging and discharging method, mobile power supply and computer storage medium

Country Status (1)

Country Link
CN (1) CN109378891B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI714310B (en) * 2019-10-14 2020-12-21 緯創資通股份有限公司 Power control method and related charging system
CN113383478A (en) * 2019-04-01 2021-09-10 Oppo广东移动通信有限公司 Charging circuit, charging method, terminal and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202872411U (en) * 2012-10-11 2013-04-10 东莞泰克威科技有限公司 Intelligent mobile power supply
CN204732896U (en) * 2015-03-25 2015-10-28 深圳市华宝新能源有限公司 Portable power source
CN106300473A (en) * 2015-05-29 2017-01-04 西安中兴新软件有限责任公司 The method of supplying power to of a kind of access terminal and access terminal
JP2018050434A (en) * 2016-09-23 2018-03-29 エイピーエス.エスエイ Portable charging device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202872411U (en) * 2012-10-11 2013-04-10 东莞泰克威科技有限公司 Intelligent mobile power supply
CN204732896U (en) * 2015-03-25 2015-10-28 深圳市华宝新能源有限公司 Portable power source
CN106300473A (en) * 2015-05-29 2017-01-04 西安中兴新软件有限责任公司 The method of supplying power to of a kind of access terminal and access terminal
JP2018050434A (en) * 2016-09-23 2018-03-29 エイピーエス.エスエイ Portable charging device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113383478A (en) * 2019-04-01 2021-09-10 Oppo广东移动通信有限公司 Charging circuit, charging method, terminal and computer storage medium
TWI714310B (en) * 2019-10-14 2020-12-21 緯創資通股份有限公司 Power control method and related charging system

Also Published As

Publication number Publication date
CN109378891B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN104272216A (en) Electronic device and control method therefor
CN105576727B (en) Method, device and system for quick charging
CN114498803B (en) Charging and discharging circuit and electronic equipment
CN105429245A (en) Charging control method and charging control device
CN106356918A (en) Quick charge recognition method and terminal equipment
TW201742348A (en) Method and device for controlling charging and electronic equipment having the same
CN103151658B (en) Data connecting line, for the control method of data connecting line and device
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN103730933A (en) Charging method and electronic devices
CN106159356B (en) A kind of battery and electronic equipment
CN104978300A (en) Mobile terminal as well as detecting method and device for connection of mobile terminal and external equipment
CN109494822A (en) A kind of terminal device, charger, charging system and charging method
CN109378891A (en) Charging/discharging thereof, mobile power source and computer storage medium
CN107404133A (en) Charging method, charger and terminal
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN106877462B (en) A kind of method and charger detecting charged state
EP3719951B1 (en) Charging method, terminal and computer storage medium
CN105824732A (en) USB detection method and detection system
CN108847699B (en) Charging method and electronic device
JP7111803B6 (en) Charging method, terminal and computer storage medium
CN104931847B (en) It is a kind of judge NFC antenna whether the terminal and method of loose contact
CN104638313B (en) Battery recognition method for mobile handheld device
CN204067514U (en) A kind of device of activated batteries, terminal, charger and system
CN106899061B (en) Mobile terminal, charging device and charging method
CN216530587U (en) Power supply connector for supplying power to master equipment and slave 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