CN108808798A - The method and apparatus of reverse charging - Google Patents

The method and apparatus of reverse charging Download PDF

Info

Publication number
CN108808798A
CN108808798A CN201810751586.3A CN201810751586A CN108808798A CN 108808798 A CN108808798 A CN 108808798A CN 201810751586 A CN201810751586 A CN 201810751586A CN 108808798 A CN108808798 A CN 108808798A
Authority
CN
China
Prior art keywords
power supply
electric terminals
supply terminal
battery information
powered
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
CN201810751586.3A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810751586.3A priority Critical patent/CN108808798A/en
Publication of CN108808798A publication Critical patent/CN108808798A/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/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • H02J7/342The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging
    • 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/0069Charging or discharging for charge maintenance, battery initiation or rejuvenation
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]

Abstract

The embodiment of the present application provides a kind of method and apparatus of reverse charging, power supply terminal and is in connection status by electric terminals, and this method includes:The first battery information for obtaining the power supply terminal, according to the first battery information, control power supply terminal is the state powered by electric terminals.The method and apparatus of the reverse charging of the embodiment of the present application can be realized according to the battery information of itself and control itself purpose to the state powered by electric terminals, you can realize the purpose that self electric quantity is not depleted in power supply process.

Description

The method and apparatus of reverse charging
Technical field
The invention relates to terminal technology more particularly to a kind of method and apparatus of reverse charging.
Background technology
With the improvement of people ' s living standards with the rapid development of communications industry, mobile terminal rapid proliferation becomes people Sectional center in daily study, work and life.Due to the lasting enhancing of mobile terminal configuration, screen continue to increase and The increase of the change and duration of user's using terminal pattern, battery durable power have become influence user and use the main of mobile terminal Problem.
Although people can be met to a certain extent using two or more terminals at present, and to cope with battery durable power, protection hidden The needs of private etc., if the battery capacity of certain terminal is seldom or after exhausting, if position at this time does not have condition of power supply When, another terminal-pair terminal progress reverse power supply can be used.
But power supply terminal can be powered outward up to cells electricity always when it is reverse power supply to power outward It exhausts, power supply terminal is caused to cannot be used continuously, i.e., it itself is the state powered by electric terminals that power supply terminal, which is unable to control,.
Invention content
The embodiment of the present application provides a kind of method and apparatus of reverse charging, and to overcome, power supply terminal can not in the prior art Control the technical issues of itself is the state powered by electric terminals.
In a first aspect, the embodiment of the present application provides a kind of method of reverse charging, it is applied to power supply terminal, the power supply is eventually It holds and is in connection status by electric terminals, the method includes:
Obtain the first battery information of the power supply terminal;
According to first battery information, it is the state powered by electric terminals to control the power supply terminal.
In a kind of possible design, the method further includes:
The first request is sent to by electric terminals, first request be used to indicate it is described by electric terminals obtain it is described by it is electric eventually Second battery information at end;
From described second battery information is received by electric terminals;
It is described that the state that the power supply terminal is powered for described in by electric terminals is controlled according to second battery information, packet It includes:
According to first battery information and the second battery information, controls the power supply terminal and powered by electric terminals to be described State.
In a kind of possible design, first battery information includes the first remaining electricity of the battery of the power supply terminal Amount;
It is described that the state that the power supply terminal is powered for described in by electric terminals is controlled according to first battery information, packet It includes:
If first remaining capacity is less than or equal to the first predetermined threshold value, the power supply terminal is controlled not to described by electricity Terminal is powered;
If first remaining capacity is more than the first predetermined threshold value, controls the power supply terminal and supplied to described by electric terminals Electricity.
In a kind of possible design, first battery information includes the first standby time of the power supply terminal;
It is described that the state that the power supply terminal is powered for described in by electric terminals is controlled according to first battery information, packet It includes:
If first standby time is less than or equal to the second predetermined threshold value, the power supply terminal is controlled not to described by electricity Terminal is powered;
If first standby time is more than the second predetermined threshold value, controls the power supply terminal and supplied to described by electric terminals Electricity.
In a kind of possible design, first battery information includes the first remaining electricity of the battery of the power supply terminal Amount, second battery information include the second remaining capacity of the battery by electric terminals;
It is described according to first battery information and the second battery information, it is described by electric terminals to control the power supply terminal The state of power supply, including:
If first remaining capacity is less than or equal to second remaining capacity, the power supply terminal is controlled not to described It is powered by electric terminals;Alternatively,
If first remaining capacity is more than second remaining capacity, and first remaining capacity and described second remains The absolute value of the difference of remaining electricity is less than or equal to third predetermined threshold value, controls the power supply terminal and is not supplied to described by electric terminals Electricity.
In a kind of possible design, first battery information includes the first standby time of the power supply terminal, institute It includes second standby time by electric terminals to state the second battery information;
It is described according to first battery information and the second battery information, it is described by electric terminals to control the power supply terminal The state of power supply, including:
If first standby time is less than or equal to second standby time, the power supply terminal is controlled not to described It is powered by electric terminals;Alternatively,
If first standby time is more than second standby time, and first standby time and described second waits for The absolute value of the difference of machine duration is less than the 4th predetermined threshold value, controls the power supply terminal and is not powered to described by electric terminals.
Second aspect, the embodiment of the present application provide a kind of device of reverse charging, including:
Acquisition module, the first battery information for obtaining the power supply terminal;
Control module, for according to first battery information, controlling the power supply terminal and being powered by electric terminals to be described State.
In a kind of possible design, described device further includes:
Sending module, for sending the first request to by electric terminals, first request is used to indicate described by electric terminals Obtain second battery information by electric terminals;
Receiving module, for being received second battery information by electric terminals from described;
The control module, is specifically used for:According to first battery information and the second battery information, the power supply is controlled Terminal is the state powered by electric terminals.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, on computer readable storage medium It is stored with computer program, when the computer program is executed by processor, first aspect is executed and first aspect is any Method described in possible design.
Fourth aspect, the embodiment of the present application provide a kind of device of reverse charging, including processor and memory, wherein
Memory, for storing program;
Processor, the described program for executing memory storage, when described program is performed, the processor For executing the method described in first aspect and any possible design of first aspect.
In the application, when terminal device is as power supply terminal, by obtaining the battery information of itself, according to the electricity of itself Pond information realizes that control is set to the purpose for the state powered by electric terminals, it can be achieved that not exhausting terminal in power supply process itself The standby electricity of itself.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen Some embodiments please for those of ordinary skill in the art without having to pay creative labor, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is application scenario diagram provided by the embodiments of the present application;
Fig. 2 is the flow chart one of the method for reverse charging provided by the embodiments of the present application;
Fig. 3 is the user interface schematic diagram of terminal provided by the embodiments of the present application;
Fig. 4 is the flowchart 2 of the method for reverse charging provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram one of the device of reverse charging provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram two of the device of reverse charging provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram three of the device of reverse charging provided by the embodiments of the present application.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Fig. 1 is application scenario diagram provided by the embodiments of the present application;Include 12 terminal of terminal 11 and terminal referring to Fig. 1, Fig. 1 11 and terminal 12 connected by charge cable 13, both ends one end of charge cable 13 connects power supply terminal, one end connection by it is electric eventually End.
When terminal 11 needs charging, terminal 11 is by electric terminals, and terminal 12 is power supply terminal, at this point, charge cable with Terminal 11 is connected by relevant first connector of electricity, charge cable connect terminal 12 with relevant second connector of powering.
After terminal 11 and terminal 12 connect, terminal 12 can obtain the battery information of itself, true according to the battery information of itself Surely it is to power to terminal 11, does not still power to terminal 11.
That is, power supply terminal can control the state to be powered by electric terminals according to the battery information of itself, to The achievable electricity of itself that controls not exclusively is supplied to by electric terminals, and user can be continuing with power supply terminal.
The method of the reverse charging of the application is described in detail using specific embodiment below.
Fig. 2 is the flow chart one of the method for reverse charging provided by the embodiments of the present application, as shown in Fig. 2, the present embodiment Method may include:
Step S101, the first battery information of power supply terminal is obtained;
Step S102, according to the first battery information, control power supply terminal is the state powered by electric terminals.
Specifically, the executive agent of the present embodiment can be the power supply terminal in Fig. 1.
When the electricity of terminal device A will be used up or used up, terminal device B can be used to charge it. The power supply connector of charge cable is connect with terminal device B, charge cable is connect by electric connection with terminal device A, i.e., eventually End equipment A is by electric terminals, and terminal device B is power supply terminal.
Power supply terminal with connected by charge cable by electric terminals after, start to charge to by electric terminals in power supply terminal Before, power supply terminal first obtains the first battery information of itself, and the first battery information may include that the first of the battery of power supply terminal remains Remaining electricity may also include the first standby time of power supply terminal, may also include other information.
Wherein, power supply terminal can obtain the according to the first remaining capacity and current operation mode of the battery of power supply terminal One standby time, acquisition methods are method in the prior art, are repeated no more in the present embodiment.
In a kind of optional mode, the content type that the first battery information includes can be that user passes through power supply terminal Interface input, for example after power supply terminal by electric terminals with being connected, power supply terminal can show the first interface, be shown on the first interface It is shown with the input frame for the content type for inputting or selecting the first battery information to include for user.
For example, Fig. 3 is the user interface schematic diagram of terminal provided by the embodiments of the present application, referring to Fig. 3, on the first interface 31 Pull-down input frame is shown, the project in drop-down list 31 may be selected in user, and the project in drop-down list 31 is first The content type that battery information includes illustrates the content type that the first battery information includes if user has selected remaining capacity For remaining capacity the battery of itself can be obtained after power supply terminal receives instruction of the user by selecting remaining capacity input The first remaining capacity.
In another optional mode, terminal is written when can dispatch from the factory with terminal in the content type that the first battery information includes Equipment, that is, default setting.
Start before being charged by electric terminals in power supply terminal, after power supply terminal obtains the first battery information of itself, According to the first battery information, control power supply terminal is the state powered by electric terminals.
If the first battery information includes the first remaining capacity of the battery of power supply terminal, according to the first battery information, control Power supply terminal processed is the state powered by electric terminals, including:
If the first remaining capacity is less than or equal to the first predetermined threshold value, control power supply terminal is not powered to by electric terminals;
If the first remaining capacity is more than the first predetermined threshold value, control power supply terminal is powered to by electric terminals.
Wherein, the first predetermined threshold value can be any in 10%~30%.
Specifically, start before being powered by electric terminals in power supply terminal, if the residue for the cells that power supply terminal obtains Electricity is less than or equal to the first predetermined threshold value, then does not start to the process powered by electric terminals, that is, control power supply terminal is not It powers to by electric terminals.At this point, terminal can display alarm message, reminder message be used to indicate power supply terminal can not to by it is electric eventually End power supply.
Correspondingly, if the first remaining capacity is more than the first predetermined threshold value, start to the process powered by electric terminals, that is, to control Power supply terminal processed is in the state powered by electric terminals.
It is understood that starting after being powered by electric terminals in power supply terminal, as power supply terminal is to be supplied by electric terminals The remaining capacity of the progress of electric process, power supply terminal can be gradually reduced.At this point, starting to power to by electric terminals in power supply terminal Afterwards, power supply terminal can obtain the remaining capacity of one-shot battery, and the residue electricity that will be obtained during this at interval of preset duration Amount, when the remaining capacity of acquisition is less than or equal to the first predetermined threshold value, stops to by electric terminals compared with the first predetermined threshold value Power supply controls power supply terminal and does not power to by electric terminals, when the remaining capacity of acquisition is more than the first predetermined threshold value, then continues It powers to by electric terminals, i.e., power supply terminal continues to keep the state to being powered by electric terminals.
If the first battery information includes the first standby time of power supply terminal, according to the first battery information, control power supply Terminal is the state powered by electric terminals, including:
If the first standby time is less than or equal to the second predetermined threshold value, control power supply terminal is not powered to by electric terminals;
If the first standby time is more than the second predetermined threshold value, control power supply terminal is powered to by electric terminals.
Wherein, the second predetermined threshold value can be any in 30min~90min.
Specifically, start before being powered by electric terminals in power supply terminal, if the cells that power supply terminal obtains is standby Duration is less than or equal to the second predetermined threshold value, then does not start to the process powered by electric terminals, that is, control power supply terminal is not It powers to by electric terminals.At this point, terminal can display alarm message, reminder message be used to indicate power supply terminal can not to by it is electric eventually End power supply.
Correspondingly, if the first standby time is more than the second predetermined threshold value, start to the process powered by electric terminals, that is, to control Power supply terminal processed is powered to by electric terminals.
It is understood that starting after being powered by electric terminals in power supply terminal, as power supply terminal is to be supplied by electric terminals The standby time of the progress of electric process, power supply terminal can be gradually reduced.At this point, starting to power to by electric terminals in power supply terminal Afterwards, power supply terminal can at interval of preset duration obtain one-shot battery standby time, and by obtained during this it is standby when Length, when the standby time of acquisition is less than or equal to the second predetermined threshold value, stops to by electric terminals compared with the second predetermined threshold value Power supply controls power supply terminal and does not power to by electric terminals, when the standby time of acquisition is more than the second predetermined threshold value, then continues It powers to by electric terminals, i.e., power supply terminal continues to keep the state to being powered by electric terminals.
Wherein, preset duration can be any in 2min~5min.
In the present embodiment, when terminal device is as power supply terminal, by obtaining the battery information of itself, according to itself Battery information is realized and controls itself purpose to the state powered by electric terminals, you can realizes the electricity of itself in power supply process Measure the purpose not being depleted.
Below to this application involves the method for another reverse charging illustrate.
Fig. 4 is the flowchart 2 of the method for reverse charging provided by the embodiments of the present application, as shown in figure 4, the present embodiment Method may include:
Step S201, the first request is sent to by electric terminals, and the first request, which is used to indicate, to be obtained by electric terminals by electric terminals The second battery information;
Step S202, the second battery information is received from by electric terminals;
Step S203, the first battery information of power supply terminal is obtained;
Step S204, according to the first battery information and the second battery information, control power supply terminal is to be powered by electric terminals State.
Specifically, the scene that the method in the present embodiment is suitable for not being depleted by the electricity of electric terminals.
For step S201~step S203, power supply terminal with connected by charge cable by electric terminals after, powering Terminal starts before being charged by electric terminals, and power supply terminal sends the first request to by electric terminals, and the first request is used to indicate by electricity Terminal obtains the second battery information by electric terminals, and the second battery information may include the second remaining electricity by the battery of electric terminals Amount, it may include by the second standby time of electric terminals, it may include other information.
Wherein, the can be obtained according to the second remaining capacity and current operation mode of the battery by electric terminals by electric terminals Two standby times, acquisition methods are method in the prior art, are repeated no more in the present embodiment.
In a kind of optional mode, the content type that the second battery information by electric terminals includes can be that user passes through The interface input of power supply terminal, for example after power supply terminal by electric terminals with being connected, power supply terminal can show the first interface, the The input frame for the content type for inputting or selecting the second battery information to include for user is shown on one interface.
For example, if user has input remaining capacity, illustrate that the content type that the second battery information includes is remaining capacity, After power supply terminal receives user by inputting the instruction of remaining capacity input, the content class that can include by the second battery information Type-remaining capacity carries in the first request, is sent to by electric terminals.
In another optional mode, the content type that the second battery information includes can be to be write when terminal device dispatches from the factory Enter terminal device, that is, default setting.
After being received the first request by electric terminals, according to the first request, the second battery information of itself is obtained, if first asks It is remaining capacity to seek the content type of the second battery information of middle carrying, then the second remaining electricity of cells is obtained by electric terminals Amount is obtained cells if the content type of the second battery information carried in the first request is standby time by electric terminals The second standby time.
The second battery information of acquisition is sent to power supply terminal by electric terminals, i.e., power supply terminal from by electric terminals receive by Second battery information of electric terminals.
Starting before being charged by electric terminals in power supply terminal, power supply terminal can also obtain the first battery information of itself, the The content type that the content type and the second battery information that one battery information includes include is identical.
For step S204, if the first battery information includes the first remaining capacity of the battery of power supply terminal, the second battery Information includes the second remaining capacity by the battery of electric terminals, then according to the first battery information and the second battery information, control supplies Electric terminals are the state powered by electric terminals, including:
The first embodiment is:If the first remaining capacity is less than or equal to the second remaining capacity, control power supply terminal is not It powers to by electric terminals;
If the first remaining capacity is more than the second remaining capacity, control power supply terminal is powered to by electric terminals.
Second of embodiment be:If the first remaining capacity is more than the second remaining capacity, and the first remaining capacity and second The absolute value of the difference of remaining capacity is less than or equal to third predetermined threshold value, and control power supply terminal is not powered to by electric terminals;
If the first remaining capacity is more than the second remaining capacity, and the difference of the first remaining capacity and the second remaining capacity is absolute Value is more than third predetermined threshold value, and control power supply terminal is powered to by electric terminals;
Wherein, third predetermined threshold value can be any in 5%~10%.
Specifically, for the first embodiment, start before being powered by electric terminals in power supply terminal, if power supply terminal is sentenced Disconnected the first remaining capacity of itself is less than or equal to the second remaining capacity by electric terminals, then does not start to power to by electric terminals Process, that is, control power supply terminal do not power to by electric terminals.At this point, terminal can display alarm message, reminder message use It can not power to by electric terminals in instruction power supply terminal.
Correspondingly, if the first remaining capacity of itself that power supply terminal judges is more than the second remaining capacity by electric terminals, Then start to the process powered by electric terminals, that is, controls power supply terminal and power to by electric terminals.
It is understood that starting after being powered by electric terminals in power supply terminal, as power supply terminal is to be supplied by electric terminals First remaining capacity of the progress of electric process, power supply terminal can be gradually reduced, and can gradually be increased by the second remaining capacity of electric terminals Greatly.At this point, starting after being powered by electric terminals in power supply terminal, power supply terminal can obtain once itself at interval of preset duration First remaining capacity simultaneously sends one time first request to obtain the second remaining capacity by electric terminals, and will be obtained during this The first remaining capacity be compared with the second remaining capacity, when the first remaining capacity of acquisition is less than or equal to the second remaining electricity When amount, stop powering to by electric terminals, that is, controls power supply terminal and do not power to by electric terminals, when the first remaining capacity of acquisition is big When the second remaining capacity, then continue to power to by electric terminals, i.e., power supply terminal continues to keep the state to being powered by electric terminals.
For second of embodiment, start before being powered by electric terminals in power supply terminal, if power supply terminal judge from First remaining capacity of body is more than the second remaining capacity by electric terminals, and the difference of the first remaining capacity and the second remaining capacity Absolute value is less than or equal to third predetermined threshold value, then does not start to the process powered by electric terminals, that is, control power supply terminal It does not power to by electric terminals.At this point, terminal can display alarm message, reminder message is used to indicate power supply terminal can not be to by electricity Terminal is powered.
Correspondingly, if the first remaining capacity of itself that power supply terminal judges is more than the second remaining capacity by electric terminals, And first the absolute value of the difference of remaining capacity and the second remaining capacity be more than third predetermined threshold value, then start to power to by electric terminals Process, that is, control power supply terminal power to by electric terminals.
It is understood that starting after being powered by electric terminals in power supply terminal, as power supply terminal is to be supplied by electric terminals First remaining capacity of the progress of electric process, power supply terminal can be gradually reduced, and can gradually be increased by the second remaining capacity of electric terminals Greatly.At this point, start after being powered by electric terminals in power supply terminal, power supply terminal can be spaced preset duration and obtain itself primary the One remaining capacity simultaneously sends one time first request to obtain the second remaining capacity by electric terminals, and is obtained during comparing this time The first remaining capacity and the second remaining capacity, when acquisition the first remaining capacity be more than by electric terminals the second remaining capacity, And first absolute value of the difference of remaining capacity and the second remaining capacity when being less than or equal to third predetermined threshold value, stop to by it is electric eventually End power supply controls power supply terminal and does not power to by electric terminals, when the first remaining capacity of acquisition is more than by the second of electric terminals Remaining capacity, and the absolute value of the difference of the first remaining capacity and the second remaining capacity be more than third predetermined threshold value when, then continue to It is powered by electric terminals, i.e., power supply terminal continues to keep the state to being powered by electric terminals.
If the first battery information includes the first standby time of power supply terminal, the second battery information includes by electric terminals Two standby times, then according to the first battery information and the second battery information, control power supply terminal is the state powered by electric terminals, Including:
The first embodiment is:If the first standby time is less than or equal to the second standby time, control power supply terminal is not It powers to by electric terminals;
If the first standby time is more than the second standby time, control power supply terminal is powered to by electric terminals.
Second of embodiment be:If the first standby time is more than the second standby time, and the first standby time and second The absolute value of the difference of standby time is less than or equal to the 4th predetermined threshold value, and control power supply terminal is not powered to by electric terminals;
If the first standby time is more than the second standby time, and the difference of the first standby time and the second standby time is absolute Value is more than the 4th predetermined threshold value, and control power supply terminal is powered to by electric terminals;
Wherein, the 4th predetermined threshold value can be any in 20min~60min.
Specifically, for the first embodiment, start before being powered by electric terminals in power supply terminal, if power supply terminal is sentenced Disconnected the first standby time of itself is less than or equal to the second standby time by electric terminals, then does not start to power to by electric terminals Process, that is, control power supply terminal do not power to by electric terminals.At this point, terminal can display alarm message, reminder message use It can not power to by electric terminals in instruction power supply terminal.
Correspondingly, if the first standby time of itself that power supply terminal judges is more than the second standby time by electric terminals, Then start to the process powered by electric terminals, that is, controls power supply terminal and power to by electric terminals.
It is understood that starting after being powered by electric terminals in power supply terminal, as power supply terminal is to be supplied by electric terminals First standby time of the progress of electric process, power supply terminal can be gradually reduced, and can gradually be increased by the second standby time of electric terminals Greatly.At this point, start after being powered by electric terminals in power supply terminal, power supply terminal can be spaced preset duration and obtain itself primary the One standby time simultaneously sends one time first request to obtain the second standby time by electric terminals, and this is obtained in the process First standby time is compared with the second standby time, when the first standby time of acquisition is less than or equal to the second standby time When, stop powering to by electric terminals, that is, controls power supply terminal and do not power to by electric terminals, when the first standby time of acquisition is more than When the second standby time, then continue to power to by electric terminals, i.e., power supply terminal continues to keep the state to being powered by electric terminals.
For second of embodiment, start before being powered by electric terminals in power supply terminal, if power supply terminal judge from First standby time of body is more than the second standby time by electric terminals, and the difference of the first standby time and the second standby time Absolute value is less than or equal to the 4th predetermined threshold value, then does not start to the process powered by electric terminals, that is, control power supply terminal It does not power to by electric terminals.At this point, terminal can display alarm message, reminder message is used to indicate power supply terminal can not be to by electricity Terminal is powered.
Correspondingly, if the first standby time of itself that power supply terminal judges is more than the second standby time by electric terminals, And first the absolute value of the difference of standby time and the second standby time be more than the 4th predetermined threshold value, then start to power to by electric terminals Process, that is, control power supply terminal power to by electric terminals.
It is understood that starting after being powered by electric terminals in power supply terminal, as power supply terminal is to be supplied by electric terminals First standby time of the progress of electric process, power supply terminal can be gradually reduced, and can gradually be increased by the second standby time of electric terminals Greatly.At this point, starting after being powered by electric terminals in power supply terminal, power supply terminal can obtain once itself at interval of preset duration First standby time simultaneously sends one time first request to obtain the second standby time by electric terminals, and is obtained during comparing this time The first standby time and the second standby time taken, when the first standby time of acquisition be more than by electric terminals second it is standby when It is long, and when the absolute value of the difference of the first standby time and the second standby time is less than or equal to four predetermined threshold values, stop to by Electric terminals are powered, that is, are controlled power supply terminal and do not powered to by electric terminals, when the first standby time of acquisition is more than by electric terminals Second standby time, and the absolute value of the difference of the first standby time and the second standby time be more than four predetermined threshold values when, then after Continue and power to by electric terminals, i.e., power supply terminal continues to keep the state to being powered by electric terminals.
Wherein, preset duration can be any in 2min~5min.
The method of the embodiment of the present application is illustrated using specific example below.
Assuming that two terminals of certain user:Samsung Note 8 (state's row version) and Huawei P10, with reverse charging of the present invention Function.The detailed operation of the present embodiment is as described below:
1, in the present embodiment, after user has found the battery capacity deficiency of Huawei P10, by charge cable by Samsung Note 8 Be connected with Huawei P10, by the power supply terminal that Note 8 is confirmed as powering outward by the method for existing reverse charging, P10 be by Electric terminals, in an embodiment of the present invention, first temporarily power supply is not P10 chargings to Note 8 outward, but by connecting filling for P10 Electric wire cable sends the first request to P10.In the present embodiment, it is assumed that the first request that Note 8 is sent is used to indicate P10 batteries and obtains Take current remaining capacity.
2, in the present embodiment, after Huawei P10 receives the first request of the transmissions of Samsung Note 8 by charge cable, extraction the Then the content type of the battery information carried in one request, i.e. remaining capacity obtain the second current remaining capacity of battery Cp10 is set as Cp10=10% here.
Second remaining capacity Cp10=10% of the battery of acquisition is fed back to Note 8 by P10 by charge cable.
3, in the present embodiment, if pre-setting rule on Samsung Note 8:The battery capacity of Note 8 be more than by Just start when the battery capacity of electric terminals to external power terminal equipment, and the battery capacity of Note 8 is small in outside power supply In or equal to by the battery of electric terminals remaining capacity when, terminate outward power supply.
In the present embodiment, after Note 8 receives the real time electrical quantity information Cp10=10% of Huawei P10 feedbacks, itself electricity is obtained The first current remaining capacity Cnote8 of pond, is set as Cnote8=60%.Because there is Cnote8=60%>Cp10=10%, by pre- Setting regular Note 8 can power to Huawei P10.
4, in the present embodiment, Samsung Note 8 can be supplied according to presetting rule judgement to Huawei P10 in step (3) Electricity, it is Huawei's P10 reverse chargings that Note 8, which starts to power outward, at this time.
5, in the present embodiment, Samsung Note 8 starts as after Huawei's P10 reverse chargings, regularly obtain (such as every 3min) and compare the second remaining capacity Cp10 of P10 batteries and the first remaining capacity Cnote8 of cells, find with The progress of power supply process, the first remaining capacity Cnote8 of the cells of acquisition is less than or equal to the second remaining capacity Cp10 When, terminate as Huawei's P10 reverse chargings.
In the present embodiment, when terminal device is as power supply terminal, by obtaining the battery information of itself and by electric terminals Battery information realize that control itself is powered to by electric terminals according to the battery information of itself and by the battery information of electric terminals State purpose, it can be achieved that the purpose that the electricity of terminal device itself is not depleted in power supply process.
Fig. 5 is the structural schematic diagram one of the device of reverse charging provided by the embodiments of the present application, as shown in figure 5, this implementation Example device may include:Acquisition module 51 and control module 52;
Acquisition module 51, the first battery information for obtaining power supply terminal;
Control module 52, for according to the first battery information, control power supply terminal to be the state powered by electric terminals.
The device of the present embodiment can be used for executing the technical solution of above method embodiment, realization principle and technology Effect is similar, and details are not described herein again.
In a kind of possible design, first battery information includes the first remaining electricity of the battery of the power supply terminal Amount;
The control module 52 is specifically used for:If first remaining capacity is less than or equal to the first predetermined threshold value, control The power supply terminal is not powered to described by electric terminals;If first remaining capacity is more than the first predetermined threshold value, described in control Power supply terminal is powered to described by electric terminals.
In a kind of possible design, first battery information includes the first standby time of the power supply terminal;
The control module 52 is specifically used for:If first standby time is less than or equal to the second predetermined threshold value, control The power supply terminal is not powered to described by electric terminals;If first standby time is more than the second predetermined threshold value, described in control Power supply terminal is powered to described by electric terminals.
The device of the present embodiment can be used for executing the technical solution of above method embodiment, realization principle and technology Effect is similar, and details are not described herein again.
Fig. 6 is the structural schematic diagram two of the device of reverse charging provided by the embodiments of the present application, as shown in fig. 6, this implementation On the basis of the device apparatus structure shown in Fig. 5 of example, further, can also include:Sending module 53 and receiving module 54;
Sending module 53 is asked for sending first to by electric terminals, and first request is used to indicate described by electric whole End obtains second battery information by electric terminals;
Receiving module 54, for being received second battery information by electric terminals from described;
The control module 52, is specifically used for:According to first battery information and the second battery information, the confession is controlled Electric terminals are the state powered by electric terminals.
The device of the present embodiment can be used for executing the technical solution of above method embodiment, realization principle and technology Effect is similar, and details are not described herein again.
In a kind of possible design, first battery information includes the first remaining electricity of the battery of the power supply terminal Amount, second battery information include the second remaining capacity of the battery by electric terminals;
The control module 52, is specifically used for:If first remaining capacity is less than or equal to second remaining capacity, The power supply terminal is controlled not powered by electric terminals to described;Alternatively,
If first remaining capacity is more than second remaining capacity, and first remaining capacity and described second remains The absolute value of the difference of remaining electricity is less than or equal to third predetermined threshold value, controls the power supply terminal and is not supplied to described by electric terminals Electricity.
In a kind of possible design, first battery information includes the first standby time of the power supply terminal, institute It includes second standby time by electric terminals to state the second battery information;
The control module 52, is specifically used for:If first standby time is less than or equal to second standby time, The power supply terminal is controlled not powered by electric terminals to described;Alternatively,
If first standby time is more than second standby time, and first standby time and described second waits for The absolute value of the difference of machine duration is less than the 4th predetermined threshold value, controls the power supply terminal and is not powered to described by electric terminals.
The device of the present embodiment can be used for executing the technical solution of above method embodiment, realization principle and technology Effect is similar, and details are not described herein again.
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program executes the method in above method embodiment when the computer program is executed by processor.
Fig. 7 is the structural schematic diagram three of the device of reverse charging provided by the embodiments of the present application, including processor 61, storage Device 62 and communication bus 63, communication bus 63 are used for the connection of processor 61 and memory 62, wherein
Memory 61, for storing program;
Processor 62, the described program for executing memory storage, when described program is performed, the processing Device is used to execute the method in above method embodiment.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of method of reverse charging, it is applied to power supply terminal, which is characterized in that the power supply terminal and be in by electric terminals Connection status, the method includes:
Obtain the first battery information of the power supply terminal;
According to first battery information, it is the state powered by electric terminals to control the power supply terminal.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
To by electric terminals, first request is used to indicate described described by electric terminals by electric terminals acquisition the first request of transmission Second battery information;
From described second battery information is received by electric terminals;
It is described that according to second battery information, it is the state powered by electric terminals to control the power supply terminal, including:
According to first battery information and the second battery information, it is the shape powered by electric terminals to control the power supply terminal State.
3. according to the method described in claim 1, it is characterized in that, first battery information includes the electricity of the power supply terminal First remaining capacity in pond;
It is described that according to first battery information, it is the state powered by electric terminals to control the power supply terminal, including:
If first remaining capacity is less than or equal to the first predetermined threshold value, the power supply terminal is controlled not to described by electric terminals Power supply;
If first remaining capacity is more than the first predetermined threshold value, controls the power supply terminal and powered to described by electric terminals.
4. according to the method described in claim 1, it is characterized in that, first battery information includes the of the power supply terminal One standby time;
It is described that according to first battery information, it is the state powered by electric terminals to control the power supply terminal, including:
If first standby time is less than or equal to the second predetermined threshold value, the power supply terminal is controlled not to described by electric terminals Power supply;
If first standby time is more than the second predetermined threshold value, controls the power supply terminal and powered to described by electric terminals.
5. according to the method described in claim 2, it is characterized in that, first battery information includes the electricity of the power supply terminal First remaining capacity in pond, second battery information include the second remaining capacity of the battery by electric terminals;
It is described according to first battery information and the second battery information, it is described to be powered by electric terminals to control the power supply terminal State, including:
If first remaining capacity is less than or equal to second remaining capacity, the power supply terminal is controlled not to described by electricity Terminal is powered;Alternatively,
If first remaining capacity is more than second remaining capacity, and first remaining capacity and the second remaining electricity The absolute value of the difference of amount is less than or equal to third predetermined threshold value, controls the power supply terminal and is not powered to described by electric terminals.
6. according to the method described in claim 2, it is characterized in that, first battery information includes the of the power supply terminal One standby time, second battery information include second standby time by electric terminals;
It is described according to first battery information and the second battery information, it is described to be powered by electric terminals to control the power supply terminal State, including:
If first standby time is less than or equal to second standby time, the power supply terminal is controlled not to described by electricity Terminal is powered;Alternatively,
If first standby time be more than second standby time, and first standby time and it is described second it is standby when The absolute value of the difference of length is less than the 4th predetermined threshold value, controls the power supply terminal and is not powered to described by electric terminals.
7. a kind of device of reverse charging, which is characterized in that including:
Acquisition module, the first battery information for obtaining the power supply terminal;
Control module, for according to first battery information, it to be the shape powered by electric terminals to control the power supply terminal State.
8. device according to claim 7, which is characterized in that described device further includes:
Sending module, for sending the first request to by electric terminals, first request is used to indicate described to be obtained by electric terminals Second battery information by electric terminals;
Receiving module, for being received second battery information by electric terminals from described;
The control module, is specifically used for:According to first battery information and the second battery information, the power supply terminal is controlled For the state powered by electric terminals.
9. a kind of computer readable storage medium, which is characterized in that computer program is stored on computer readable storage medium, When the computer program is executed by processor, perform claim requires the method described in any one of 1 to 6.
10. a kind of device of reverse charging, which is characterized in that including processor and memory, wherein
Memory, for storing program;
Processor, the described program for executing the memory storage, when described program is performed, the processor is used for Perform claim requires any method in 1 to 6.
CN201810751586.3A 2018-07-10 2018-07-10 The method and apparatus of reverse charging Pending CN108808798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810751586.3A CN108808798A (en) 2018-07-10 2018-07-10 The method and apparatus of reverse charging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810751586.3A CN108808798A (en) 2018-07-10 2018-07-10 The method and apparatus of reverse charging

Publications (1)

Publication Number Publication Date
CN108808798A true CN108808798A (en) 2018-11-13

Family

ID=64074898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810751586.3A Pending CN108808798A (en) 2018-07-10 2018-07-10 The method and apparatus of reverse charging

Country Status (1)

Country Link
CN (1) CN108808798A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687546A (en) * 2018-12-22 2019-04-26 深圳市聚纵新能源科技有限公司 A kind of power gain charging control circuit and its control method
CN111030231A (en) * 2019-12-20 2020-04-17 歌尔股份有限公司 Reverse charging method, device, equipment and computer storage medium
CN111864862A (en) * 2020-08-14 2020-10-30 珠海格力电器股份有限公司 Charging method and charging device
CN111984107A (en) * 2020-08-10 2020-11-24 Tcl通讯(宁波)有限公司 Method and device for processing power supply abnormity of terminal equipment
CN112688389A (en) * 2020-12-21 2021-04-20 珠海格力电器股份有限公司 Charging control method and device for equipment, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090134836A1 (en) * 2007-11-27 2009-05-28 Motorola, Inc. Devices and methods for electronic device recharging
US20120019193A1 (en) * 2009-09-21 2012-01-26 Beijing Lenovo Software Ltd. Charging and power supplying method for termal, and terminal
US20120062181A1 (en) * 2010-09-15 2012-03-15 Samsung Electronics Co., Ltd. Apparatus and method for charging of battery in portable terminal
CN104135053A (en) * 2014-08-06 2014-11-05 中国联合网络通信集团有限公司 Electric quantity sharing method and device
CN104362687A (en) * 2014-10-24 2015-02-18 福建联迪商用设备有限公司 Bidirectional power balance method and device based on USB-OTG
CN108054794A (en) * 2017-12-12 2018-05-18 广东小天才科技有限公司 It is a kind of for the charging/discharging thereof of intelligent terminal, device, terminal and storage medium
CN108235795A (en) * 2017-12-20 2018-06-29 深圳前海达闼云端智能科技有限公司 Charging method, device, terminal device and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090134836A1 (en) * 2007-11-27 2009-05-28 Motorola, Inc. Devices and methods for electronic device recharging
US20120019193A1 (en) * 2009-09-21 2012-01-26 Beijing Lenovo Software Ltd. Charging and power supplying method for termal, and terminal
US20120062181A1 (en) * 2010-09-15 2012-03-15 Samsung Electronics Co., Ltd. Apparatus and method for charging of battery in portable terminal
CN104135053A (en) * 2014-08-06 2014-11-05 中国联合网络通信集团有限公司 Electric quantity sharing method and device
CN104362687A (en) * 2014-10-24 2015-02-18 福建联迪商用设备有限公司 Bidirectional power balance method and device based on USB-OTG
CN108054794A (en) * 2017-12-12 2018-05-18 广东小天才科技有限公司 It is a kind of for the charging/discharging thereof of intelligent terminal, device, terminal and storage medium
CN108235795A (en) * 2017-12-20 2018-06-29 深圳前海达闼云端智能科技有限公司 Charging method, device, terminal device and computer readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687546A (en) * 2018-12-22 2019-04-26 深圳市聚纵新能源科技有限公司 A kind of power gain charging control circuit and its control method
CN111030231A (en) * 2019-12-20 2020-04-17 歌尔股份有限公司 Reverse charging method, device, equipment and computer storage medium
CN111030231B (en) * 2019-12-20 2021-07-30 歌尔股份有限公司 Reverse charging method, device, server equipment and computer storage medium
CN111984107A (en) * 2020-08-10 2020-11-24 Tcl通讯(宁波)有限公司 Method and device for processing power supply abnormity of terminal equipment
CN111984107B (en) * 2020-08-10 2022-05-06 Tcl通讯(宁波)有限公司 Method and device for processing power supply abnormity of terminal equipment
CN111864862A (en) * 2020-08-14 2020-10-30 珠海格力电器股份有限公司 Charging method and charging device
CN112688389A (en) * 2020-12-21 2021-04-20 珠海格力电器股份有限公司 Charging control method and device for equipment, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN108808798A (en) The method and apparatus of reverse charging
CN104716750B (en) A kind of low power consuming wireless power method and relevant apparatus, system
CN102301305B (en) A kind of method and system that USB device is powered
US20160250942A1 (en) Charging state management method, charging state management device, and program
JP6013076B2 (en) Energy management device, energy management system, and energy management method
CN108422887B (en) Vehicle-mounted alternating-current charging and discharging machine charging and discharging interface, method, charging pile and electronic equipment
CN105449757B (en) Prevent the method and device that adapter or portable power source disconnect in charging process
US20160276842A1 (en) Method for controlling charging power, system for controlling charging power, and program
AU2018432187A1 (en) Charging method and apparatus for multiple cells, medium and electronic device
CN107910911B (en) Charging control method, terminal and computer storage medium
US20160164316A1 (en) Rapid charging method for storage cell, rapid charging system, and program
CN102185972A (en) Novel mobile terminal software upgrading system and method as well as mobile terminal
CN112152271B (en) Quick charging method, charging device, electronic equipment and charging system
CN106972558B (en) Charging control method and electronic equipment
CN104333091A (en) Charging quantity display control method and system based on mobile terminal and mobile terminal
CN109256825A (en) charging method and electronic device
CN115513545A (en) Electric quantity control method and device, computer readable storage medium and equipment
JP2020124059A (en) Charge control device and charge control system
CN104052131B (en) Charge control method, electric quantity monitoring device and charger
CN113036868A (en) Power supply system, charging method, power supply equipment and storage medium of notebook computer
CN113364105A (en) Control method and device compatible with charging of various batteries, terminal and storage medium
CN110649589B (en) Hybrid power supply control method and related product
US11038368B2 (en) Method of controlling power supply of caravan and power control device of caravan
CN109191735A (en) A kind of POS machine battery performance automatic test approach and terminal device
CN105515076B (en) The method and device of adjusting parameter

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

Application publication date: 20181113

RJ01 Rejection of invention patent application after publication