CN108881630A - reverse charging management method, device and terminal - Google Patents

reverse charging management method, device and terminal Download PDF

Info

Publication number
CN108881630A
CN108881630A CN201810597251.0A CN201810597251A CN108881630A CN 108881630 A CN108881630 A CN 108881630A CN 201810597251 A CN201810597251 A CN 201810597251A CN 108881630 A CN108881630 A CN 108881630A
Authority
CN
China
Prior art keywords
terminal
time
user
upper limit
electricity
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
CN201810597251.0A
Other languages
Chinese (zh)
Other versions
CN108881630B (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.)
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 CN201810597251.0A priority Critical patent/CN108881630B/en
Publication of CN108881630A publication Critical patent/CN108881630A/en
Application granted granted Critical
Publication of CN108881630B publication Critical patent/CN108881630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/60Details of telephonic subscriber devices logging of communication history, e.g. outgoing or incoming calls, missed calls, messages or URLs

Abstract

The present invention provides a kind of reverse charging management method, device and terminal, this method, including:Obtain the communications records of user in predetermined period;According to the communications records, the upper limit value of terminal output electricity is determined;When terminal output electricity reaches the upper limit value, then stop power supply outward.It is managed so as to the reverse charging behavior to terminal, avoids the excessive loss of terminal power, promote the usage experience of user.

Description

Reverse charging management method, device and terminal
Technical field
The present invention relates to power electronics field more particularly to a kind of reverse charging management methods, device and terminal.
Background technique
With the development of terminal technology, more and more applications and function can be loaded in terminal, this also requires terminal must Must have better cruising ability.Other than increasing the capacity of end cell as much as possible, engineer proposes reverse charging Technology come realize the electric energy between terminal transmit.
Currently, the reverse charging technology of mobile terminal mainly applies USB Implementers Forum in 2001 12 The OTG technology (abbreviation of On-The-Go) that the moon 18 was announced.
But demand of the existing reverse charging method there is no consideration terminal itself to electricity, if without user midway Intervention, terminal can power until cells electricity exhausts always outward in power supply (i.e. reverse charging) outward, thus User is influenced to the normal use of terminal, and user experience is bad.
Summary of the invention
The present invention provides a kind of reverse charging management method, device and terminal, to realize the reverse charging behavior to terminal It is managed, avoids the excessive loss of terminal power, promote the usage experience of user.
In a first aspect, the embodiment of the present invention provides a kind of direction charging management method, including:
Obtain the communications records of user in predetermined period;
According to the communications records, the upper limit value of terminal output electricity is determined;
When terminal output electricity reaches the upper limit value, then stop power supply outward.
Optionally, further include before the communications records of user in acquisition predetermined period:
Judge whether the terminal currently has charge condition.
Optionally, described to judge whether the terminal currently has charge condition, including:
Obtain the current location of terminal and the history charge position of the terminal;
Determine whether the current location is greater than first threshold at a distance from the history charge position;
If at least there is a history charge position is not more than first threshold at a distance from the current location, really The fixed terminal currently has charge condition;
If all history charge positions are all larger than first threshold at a distance from the current location, it is determined that the end End does not have charge condition currently.
Optionally, the history charge position of the terminal includes:
During the charging process, automatic identification and the terminal real time position recorded;And/or
The position of the customized addition of user.
Optionally, described to determine the upper limit value of terminal output electricity according to the communications records, including:
Obtain the unit time power consumption of terminal;
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
Count the number of communications and/or communication time in each section;
It obtains in predetermined period, the corresponding average communication number of each section and/or average communication duration;
Average communication number is greater than second threshold and/or average communication duration is greater than the section of third threshold value as communication The demand period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, Using the communication requirement period at corresponding time point as termination time point;
By the time difference of the termination time point and start time point multiplied by the unit time power consumption, terminal is obtained The electricity for needing to retain;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
Optionally, the unit time power consumption for obtaining terminal, including:
Obtain terminal current battery capacity and current time;
Battery capacity before obtaining at the end of primary charging, and charging end time;
Battery capacity at the end of preceding primary charging is subtracted into the current battery capacity of terminal, obtains power consumption Q;It will be current Time subtracts the charging end time, obtains time T;
By power consumption Q divided by time T, the unit time power consumption of terminal is obtained.
Optionally, described to determine the upper limit value of terminal output electricity according to the communications records, including:
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
It counts in each section, the power consumption of all communication class applications;
It obtains in predetermined period, all communication classes apply average power consumption corresponding in each section;
Average power consumption is greater than to the period of the 4th threshold value, as the communication requirement period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, Using the communication requirement period at corresponding time point as termination time point;
Using the total power consumption of all communication classes application in the start time point to the section for terminating time point as Terminal needs the electricity retained;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
Optionally, described then to stop power supply outward when terminal output electricity reaches the upper limit value, including:
When terminal output electricity reaches the upper limit value, the first prompt information is sent to user;Described first mentions Show information for reminding terminal described in user to have reached the electricity output upper limit;
After receiving user for the first confirmation message of first prompt information feedback, stop power supply outward;Or Person after preset delay duration, is stopping power supply outward.
Optionally, according to the communications records, after the upper limit value for determining terminal output electricity, further include:
If the upper limit value is less than or equal to 0, the second prompt information is sent to user, second prompt information is used In the battery capacity deficiency for reminding terminal described in user;
Receive the second confirmation message that user is directed to second prompt information feedback;Second confirmation message is for controlling Terminal processed is preferentially powered outward;
According to the second indication information, start power supply outward.
Second aspect, the embodiment of the present invention provide a kind of reverse charging managing device, including:
Module is obtained, for obtaining the communications records of user in predetermined period;
Determining module, for determining the upper limit value of terminal output electricity according to the communications records;
Processing module, for when terminal output electricity reaches the upper limit value, then stopping power supply outward.
Optionally, further include:
Judgment module, for obtain predetermined period in user communications records before, judge the terminal currently whether Has charge condition.
Optionally, the judgment module, is specifically used for:
Obtain the current location of terminal and the history charge position of the terminal;
Determine whether the current location is greater than first threshold at a distance from the history charge position;
If at least there is a history charge position is not more than first threshold at a distance from the current location, really The fixed terminal currently has charge condition;
If all history charge positions are all larger than first threshold at a distance from the current location, it is determined that the end End does not have charge condition currently.
Optionally, the history charge position of the terminal includes:
During the charging process, automatic identification and the terminal real time position recorded;And/or
The position of the customized addition of user.
Optionally, the determining module, is specifically used for:
Obtain the unit time power consumption of terminal;
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
Count the number of communications and/or communication time in each section;
It obtains in predetermined period, the corresponding average communication number of each section and/or average communication duration;
Average communication number is greater than second threshold and/or average communication duration is greater than the section of third threshold value as communication The demand period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, Using the communication requirement period at corresponding time point as termination time point;
By the time difference of the termination time point and start time point multiplied by the unit time power consumption, terminal is obtained The electricity for needing to retain;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
Optionally, the unit time power consumption for obtaining terminal, including:
Obtain terminal current battery capacity and current time;
Battery capacity before obtaining at the end of primary charging, and charging end time;
Battery capacity at the end of preceding primary charging is subtracted into the current battery capacity of terminal, obtains power consumption Q;It will be current Time subtracts the charging end time, obtains time T;
By power consumption Q divided by time T, the unit time power consumption of terminal is obtained.
Optionally, the determining module, is also used to:
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
It counts in each section, the power consumption of all communication class applications;
It obtains in predetermined period, all communication classes apply average power consumption corresponding in each section;
Average power consumption is greater than to the period of the 4th threshold value, as the communication requirement period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, Using the communication requirement period at corresponding time point as termination time point;
Using the total power consumption of all communication classes application in the start time point to the section for terminating time point as Terminal needs the electricity retained;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
Optionally, the processing module, is specifically used for:
When terminal output electricity reaches the upper limit value, the first prompt information is sent to user;Described first mentions Show information for reminding terminal described in user to have reached the electricity output upper limit;
After receiving user for the first confirmation message of first prompt information feedback, stop power supply outward;Or Person after preset delay duration, is stopping power supply outward.
Optionally, the processing module is also used to determine the upper limit value of terminal output electricity according to the communications records Later, if the upper limit value is less than or equal to 0, the second prompt information is sent to user, second prompt information is used for Remind the battery capacity of terminal described in user insufficient;
Receive the second confirmation message that user is directed to second prompt information feedback;Second confirmation message is for controlling Terminal processed is preferentially powered outward;
According to the second indication information, start power supply outward.
The third aspect, the embodiment of the present invention provide a kind of terminal, including:
Memory, for storing program;
Processor, for executing the described program of memory storage, when described program is performed, the processor For executing the method as described in any one of first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, including:Computer program, when it When running on computers, so that computer executes any method in first aspect.
Reverse charging management method, device and terminal provided by the invention, by the communication for obtaining user in predetermined period Record;According to the communications records, the upper limit value of terminal output electricity is determined;When terminal output electricity reaches the upper limit value When, then stop power supply outward.It is managed so as to the reverse charging behavior to terminal, avoid terminal power crosses multithread It loses, promotes the usage experience of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the schematic diagram of an application scenarios of the invention;
Fig. 2 is the flow chart for the reverse charging management method that the embodiment of the present invention one provides;
Fig. 3 is the structural schematic diagram of reverse charging managing device provided by Embodiment 2 of the present invention;
Fig. 4 is the structural schematic diagram for the terminal that the embodiment of the present invention three provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Hereinafter, the part term in the application is explained, in order to those skilled in the art understand that:
1) OTG is the abbreviation of On-The-Go, is the technology that developed recently gets up, on December 18th, 2001 is by USB Implementers Forum is announced, the connection being mainly used between a variety of different equipment or mobile device, carries out data friendship It changes.
2) terminal is to can be hand-portable terminal such as mobile phone with the intelligent terminal of the abilities such as calculating, processing, display, It is also possible to other equipment or terminal, such as computer or smartwatch.
Fig. 1 is the schematic diagram of an application scenarios of the invention, as shown in Figure 1, first terminal 1 passes through OTG line 3 and second terminal 2 communication connections, the first terminal 1 provide electric energy to second terminal 2 by OTG line 3.Under the application scenarios, first terminal 1 It is smart phone with second terminal 2, and first terminal 1 has reverse charging function.It should be noted that method of the invention It can be applied between different types of terminal, such as realize the reverse charging between smart phone and tablet computer, specifically The type of terminal, the present invention not limit.In optinal plan, the electricity between terminal can also be realized using wireless charging technology It can transmission.
How to be solved with technical solution of the specifically embodiment to technical solution of the present invention and the application below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 2 is the flow chart for the reverse charging management method that the embodiment of the present invention one provides, as shown in Fig. 2, the present embodiment In method may include:
S101, the communications records for obtaining user in predetermined period.
In the present embodiment, terminal can be the equipment such as smart phone, tablet computer, smartwatch, can pass through OTG line Or wireless mode realizes that the electric energy between terminal and terminal transmits.Terminal open to another terminal reverse charging function it Before, it can determine whether terminal currently has charge condition first.
Optionally, described to judge whether the terminal currently has charge condition, including:The current location of terminal is obtained, And the history charge position of the terminal;Determine whether the current location is greater than at a distance from the history charge position One threshold value;If at least there is a history charge position is not more than first threshold at a distance from the current location, really The fixed terminal currently has charge condition;If all history charge positions are all larger than at a distance from the current location One threshold value, it is determined that the terminal does not have charge condition currently.
Specifically, terminal can by its own global positioning system (Global Positioning System, GPS the current location for) getting terminal carries out history charge position pre-stored in the current location of terminal and memory It compares.Wherein, the history charge position of the terminal can be during the charging process, automatic identification and the real-time position of terminal recorded It sets;The position of the customized addition of user and/or.Assuming that the CompanyAddress of user and home address are all history charge positions, that It is compared between the distance between current location and CompanyAddress of terminal and the current location and home address of terminal one by one Distance, if any one distance be less than or equal to first threshold, it is determined that terminal currently has charge condition.If Two distances are all larger than first threshold, it is determined that terminal does not have charge condition currently.It should be noted that the present embodiment is unlimited Determine the quantity of history charge position, does not also limit the occurrence of first threshold.User can record history charge position and carry out It updates, it can history charge position pre-stored in memory is added, delete, modifies operation.
Specifically, it is assumed that have two terminals, be denoted as terminal A and terminal B respectively, wherein terminal A has reverse charging function. So before terminal A starts to carry out reverse charging to terminal B, itself current location is obtained by the GPS module of itself first, It is assumed that the current location obtained is:" Haidian District, Beijing City agricultural university South Road X ".Terminal A compares current location " Beijing sea The position terminal saved in agricultural university of shallow lake area South Road X " and database charges in the past when.Judge whole current location whether with history Charge position is overlapped.Judgment method can by the current location of computing terminal A one by one and database history charge position away from From then compared with preset first threshold, if at least there is the distance of a history charge position and the current location of terminal A When less than preset first threshold, it can determine that the current location of terminal A is overlapped with history charge position, accordingly, it is determined that terminal A Current location have charge condition;Otherwise, it determines the current location of terminal A does not have charge condition.
S102, according to the communications records, determine the upper limit value of terminal output electricity.
In one embodiment, the unit time power consumption of acquisition terminal can be passed through;User in predetermined period is every It communications records are divided into multiple sections according to the time;Count the number of communications and/or communication time in each section;It obtains In predetermined period, the corresponding average communication number of each section and/or average communication duration;Average communication number is greater than second Threshold value and/or average communication duration are greater than the section of third threshold value as the communication requirement period;It is starting with terminal current time Time point searches the last one communication requirement period on the same day, by the communication requirement period corresponding time sequentially in time Point is as termination time point;By the time difference of the termination time point and start time point multiplied by the unit time power consumption Amount obtains the electricity that terminal needs to retain;The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains terminal Export the upper limit value of electricity.
Optionally, the unit time power consumption of terminal can obtain in the following way:
Obtain terminal current battery capacity and current time;Battery capacity before obtaining at the end of primary charging, with And the charging end time;Battery capacity at the end of preceding primary charging is subtracted into the current battery capacity of terminal, obtains power consumption Q;Current time is subtracted into the charging end time, obtains time T;By power consumption Q divided by time T, the unit time of terminal is obtained Power consumption.
Specifically, it is assumed that there are two terminals, is denoted as terminal A and terminal B respectively, wherein terminal A has reverse charging function, Now reverse charging is carried out to terminal B by terminal A.Assuming that predetermined period is 15 days, the communications records of terminal A are as shown in table 1.
The communications records of 1 terminal A of table
Further, it is assumed that preset second threshold Nt=5 times, the communications records of terminal A by call duration time into Row statistics, and be marked on a timeline for unit within (24 hours) with day, and according on 10 minutes interval stats time shafts The number of communications Fi of user in each time interval, then in more each time interval the number of communications Fi and Nt of user it is big It is small, if in some time interval when number of communications Fi >=Nt of user, which is exactly the time that user has communication requirement Section.Table 2 is segment record when user has communication requirement.
Segment record when 2 user of table has communication requirement
Further, it is assumed that terminal A current time is " 13:30 ", calculate with user have communication requirement period when Between be spaced, here only to be located at terminal current time " 13:The period for having communication requirement after 30 " calculates and current time "13:30 " time interval, if the calculated result of time interval is as shown in table 3, when table 3 is that the user after screening has communication requirement Segment record.
Table 3 is segment record when the user after screening has communication requirement
As shown in Table 3, with current time " 13:The period for having communication requirement of 30 " spaced furthests is " 17:45-18: 00 ", then the initial time " 18 of the period:00 " is exactly to terminate time point.
Further, it is assumed that electricity is 95% after the terminal A last time charges, and charging end time last time is 7: 30, current time 13:Electricity when 30 is 50%, and the unit time power consumption that can calculate terminal accordingly is:(95%- 50%)/6=7.5%, from 13:30 to 18:Have between 00 4.5 hours, then the electricity that terminal A needs to retain is 7.5% × 4.5 The upper limit value that=33.75%, terminal A export electricity is 50%-33.75%=16.25%.
Further, an intermediate threshold can also be set, for characterizing whether terminal A has electricity sharing ability.It is false If intermediate threshold is 5%, upper limit value is subtracted into intermediate threshold, obtains the electricity 16.25%-5%=that can be provided out 12.25%.Setting intermediate threshold can further reserve a part of electricity for terminal A, it is ensured that terminal can be used normally in user A。
It in another embodiment, can be by the way that the daily communications records of user in predetermined period be divided according to the time At multiple sections;It counts in each section, the power consumption of all communication class applications;It obtains in predetermined period, all communication classes are answered Used in the corresponding average power consumption of each section;Average power consumption is greater than to the period of the 4th threshold value, when as communication requirement Section;Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, it will be described Communication requirement period at corresponding time point is as termination time point;By the start time point to the section for terminating time point The electricity that the total power consumption of interior all communication class applications needs to retain as terminal;The current battery capacity of terminal is subtracted into terminal The electricity for needing to retain obtains the upper limit value of terminal output electricity.
S103, when terminal output electricity reach the upper limit value when, then stop outward power supply.
In the present embodiment, the first prompt can be sent to user when the terminal exports electricity and reaches the upper limit value Information;First prompt information is for reminding terminal described in user to have reached the electricity output upper limit;It is directed to receiving user After first confirmation message of the first prompt information feedback, stop power supply outward;Alternatively, passing through preset delay duration Afterwards, stop power supply outward.
Specifically, by taking embodiment above-mentioned as an example, it is assumed that when the electricity of terminal A drops to 33.75% or 38.75%, Stop terminal A and provides electric energy to terminal B.38.75% is to increase intermediate threshold 5% on the basis of 33.75% to obtain.
Optionally, according to the communications records, after the upper limit value for determining terminal output electricity, further include:
If the upper limit value is less than or equal to 0, the second prompt information is sent to user, second prompt information is used In the battery capacity deficiency for reminding terminal described in user;Receive the second confirmation letter that user is directed to second prompt information feedback Breath;Second confirmation message is preferentially powered outward for controlling terminal;According to the second indication information, start to supply outward Electricity.
In the present embodiment, when terminal do not have share electricity ability, that is, occur upper limit value be less than or equal to 0 feelings Condition.At this moment, the second prompt information can be shown on terminal interface, the battery capacity to inform user terminal itself is insufficient. At this point, if user insists on powering outward the second confirmation message can be sent to terminal, second confirmation message is for controlling Terminal processed is preferentially powered outward;According to the second indication information, start power supply outward.
The present embodiment, by obtaining the communication of user in predetermined period when determining that terminal does not currently have charge condition Record;According to the communications records, the upper limit value of terminal output electricity is determined;When terminal output electricity reaches the upper limit value When, then stop power supply outward.It is managed so as to the reverse charging behavior to terminal, avoid terminal power crosses multithread It loses, promotes the usage experience of user.
Fig. 3 is the structural schematic diagram of reverse charging managing device provided by Embodiment 2 of the present invention, as shown in figure 3, this reality The device applied in example may include:
Module 10 is obtained, for obtaining the communications records of user in predetermined period;
Determining module 20, for determining the upper limit value of terminal output electricity according to the communications records;
Processing module 30, for when terminal output electricity reaches the upper limit value, then stopping power supply outward.
Optionally, further include:
Judgment module 40 judges that the terminal is currently before the communications records of user in acquisition predetermined period It is no to have charge condition.
Optionally, the judgment module 40, is specifically used for:
Obtain the current location of terminal and the history charge position of the terminal;
Determine whether the current location is greater than first threshold at a distance from the history charge position;
If at least there is a history charge position is not more than first threshold at a distance from the current location, really The fixed terminal currently has charge condition;
If all history charge positions are all larger than first threshold at a distance from the current location, it is determined that the end End does not have charge condition currently.
Optionally, the history charge position of the terminal includes:
During the charging process, automatic identification and the terminal real time position recorded;And/or
The position of the customized addition of user.
Optionally, the determining module, is specifically used for:
Obtain the unit time power consumption of terminal;
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
Count the number of communications and/or communication time in each section;
It obtains in predetermined period, the corresponding average communication number of each section and/or average communication duration;
Average communication number is greater than second threshold and/or average communication duration is greater than the section of third threshold value as communication The demand period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, Using the communication requirement period at corresponding time point as termination time point;
By the time difference of the termination time point and start time point multiplied by the unit time power consumption, terminal is obtained The electricity for needing to retain;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
Optionally, the unit time power consumption for obtaining terminal, including:
Obtain terminal current battery capacity and current time;
Battery capacity before obtaining at the end of primary charging, and charging end time;
Battery capacity at the end of preceding primary charging is subtracted into the current battery capacity of terminal, obtains power consumption Q;It will be current Time subtracts the charging end time, obtains time T;
By power consumption Q divided by time T, the unit time power consumption of terminal is obtained.
Optionally, the determining module, is also used to:
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
It counts in each section, the power consumption of all communication class applications;
It obtains in predetermined period, all communication classes apply average power consumption corresponding in each section;
Average power consumption is greater than to the period of the 4th threshold value, as the communication requirement period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, Using the communication requirement period at corresponding time point as termination time point;
Using the total power consumption of all communication classes application in the start time point to the section for terminating time point as Terminal needs the electricity retained;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
Optionally, the processing module 30, is specifically used for:
When terminal output electricity reaches the upper limit value, the first prompt information is sent to user;Described first mentions Show information for reminding terminal described in user to have reached the electricity output upper limit;
After receiving user for the first confirmation message of first prompt information feedback, stop power supply outward;Or Person after preset delay duration, is stopping power supply outward.
Optionally, the processing module 30 is also used to determine the upper limit of terminal output electricity according to the communications records After value, if the upper limit value is less than or equal to 0, the second prompt information is sent to user, second prompt information is used In the battery capacity deficiency for reminding terminal described in user;
Receive the second confirmation message that user is directed to second prompt information feedback;Second confirmation message is for controlling Terminal processed is preferentially powered outward;
According to the second indication information, start power supply outward.
The present embodiment can execute the technical solution in above-mentioned method shown in Fig. 2, realize process and technical effect with The above method is similar, and details are not described herein again.
Fig. 4 is the structural schematic diagram for the terminal that the embodiment of the present invention three provides, as shown in figure 4, the terminal in the present embodiment 50 include:Processor 51 and memory 52;
Memory 52 (such as realizes application program, the function of above-mentioned reverse charging management method for storing computer program Module etc.), computer instruction etc., above-mentioned computer program, computer instruction etc. can be deposited with partitioned storage in one or more In reservoir 52.And above-mentioned computer program, computer instruction, data etc. can be called with device 51 processed.
Processor 51, the computer program stored for executing the memory 52, to realize that above-described embodiment relates to And method in each step.It specifically may refer to the associated description in previous methods embodiment.Wherein, memory 52, place Reason device 51 can be of coupled connections by bus 53.
The present embodiment can execute the technical solution in above-mentioned method shown in Fig. 2, realize process and technical effect with The above method is similar, and details are not described herein again.
In addition, the embodiment of the present application also provides a kind of computer readable storage medium, deposited in computer readable storage medium Computer executed instructions are contained, when at least one processor of user equipment executes the computer executed instructions, user equipment Execute above-mentioned various possible methods.
Wherein, computer-readable medium includes computer storage media and communication media, and wherein communication media includes being convenient for From a place to any medium of another place transmission computer program.Storage medium can be general or specialized computer Any usable medium that can be accessed.A kind of illustrative storage medium is coupled to processor, to enable a processor to from this Read information, and information can be written to the storage medium.Certainly, storage medium is also possible to the composition portion of processor Point.Pocessor and storage media can be located in ASIC.In addition, the ASIC can be located in user equipment.Certainly, processor and Storage medium can also be used as discrete assembly and be present in communication equipment.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps 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 readable storage 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 disk or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that:Its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (19)

1. a kind of reverse charging management method, which is characterized in that including:
Obtain the communications records of user in predetermined period;
According to the communications records, the upper limit value of terminal output electricity is determined;
When terminal output electricity reaches the upper limit value, then stop power supply outward.
2. the method according to claim 1, wherein obtain predetermined period in user communications records before, Further include:
Judge whether the terminal currently has charge condition.
3. according to the method described in claim 2, it is characterized in that, described judge whether the terminal currently has charging item Part, including:
Obtain the current location of terminal and the history charge position of the terminal;
Determine whether the current location is greater than first threshold at a distance from the history charge position;
If at least there is a history charge position is not more than first threshold at a distance from the current location, it is determined that institute It states terminal and currently has charge condition;
If all history charge positions are all larger than first threshold at a distance from the current location, it is determined that the terminal is worked as It is preceding not have charge condition.
4. according to the method described in claim 3, it is characterized in that, the history charge position of the terminal includes:
During the charging process, automatic identification and the terminal real time position recorded;And/or
The position of the customized addition of user.
5. method according to any of claims 1-4, which is characterized in that it is described according to the communications records, it determines Terminal exports the upper limit value of electricity, including:
Obtain the unit time power consumption of terminal;
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
Count the number of communications and/or communication time in each section;
It obtains in predetermined period, the corresponding average communication number of each section and/or average communication duration;
Average communication number is greater than second threshold and/or average communication duration is greater than the section of third threshold value as communication requirement Period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, by institute Communication requirement period at corresponding time point is stated as termination time point;
By the time difference of the termination time point and start time point multiplied by the unit time power consumption, terminal needs are obtained The electricity of reservation;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
6. according to the method described in claim 5, it is characterized in that, it is described obtain terminal unit time power consumption, including:
Obtain terminal current battery capacity and current time;
Battery capacity before obtaining at the end of primary charging, and charging end time;
Battery capacity at the end of preceding primary charging is subtracted into the current battery capacity of terminal, obtains power consumption Q;By current time The charging end time is subtracted, time T is obtained;
By power consumption Q divided by time T, the unit time power consumption of terminal is obtained.
7. method according to any of claims 1-4, which is characterized in that it is described according to the communications records, it determines Terminal exports the upper limit value of electricity, including:
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
It counts in each section, the power consumption of all communication class applications;
It obtains in predetermined period, all communication classes apply average power consumption corresponding in each section;
Average power consumption is greater than to the period of the 4th threshold value, as the communication requirement period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, by institute Communication requirement period at corresponding time point is stated as termination time point;
Using the total power consumption of communication class applications all in the start time point to the section for terminating time point as terminal The electricity for needing to retain;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
8. the method according to claim 1, wherein it is described when terminal output electricity reach the upper limit value when, Then stop power supply outward, including:
When terminal output electricity reaches the upper limit value, the first prompt information is sent to user;The first prompt letter Breath is for reminding terminal described in user to have reached the electricity output upper limit;
After receiving user for the first confirmation message of first prompt information feedback, stop power supply outward;Alternatively, After preset delay duration, stop power supply outward.
9. the method according to claim 1, wherein determining that terminal exports electricity according to the communications records Upper limit value after, further include:
If the upper limit value is less than or equal to 0, the second prompt information is sent to user, second prompt information is for mentioning The battery capacity for terminal described in user of waking up is insufficient;
Receive the second confirmation message that user is directed to second prompt information feedback;Second confirmation message is for controlling end The preferential power supply outward in end;
According to the second indication information, start power supply outward.
10. a kind of reverse charging managing device, which is characterized in that including:
Module is obtained, for obtaining the communications records of user in predetermined period;
Determining module, for determining the upper limit value of terminal output electricity according to the communications records;
Processing module, for when terminal output electricity reaches the upper limit value, then stopping power supply outward.
11. device according to claim 10, which is characterized in that further include:
Judgment module judges whether the terminal currently has before the communications records of user in acquisition predetermined period Charge condition.
12. device according to claim 11, which is characterized in that the judgment module is specifically used for:
Obtain the current location of terminal and the history charge position of the terminal;
Determine whether the current location is greater than first threshold at a distance from the history charge position;
If at least there is a history charge position is not more than first threshold at a distance from the current location, it is determined that institute It states terminal and currently has charge condition;
If all history charge positions are all larger than first threshold at a distance from the current location, it is determined that the terminal is worked as It is preceding not have charge condition.
13. device according to claim 12, which is characterized in that the history charge position of the terminal includes:
During the charging process, automatic identification and the terminal real time position recorded;And/or
The position of the customized addition of user.
14. device described in any one of 0-13 according to claim 1, which is characterized in that the determining module is specifically used for:
Obtain the unit time power consumption of terminal;
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
Count the number of communications and/or communication time in each section;
It obtains in predetermined period, the corresponding average communication number of each section and/or average communication duration;
Average communication number is greater than second threshold and/or average communication duration is greater than the section of third threshold value as communication requirement Period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, by institute Communication requirement period at corresponding time point is stated as termination time point;
By the time difference of the termination time point and start time point multiplied by the unit time power consumption, terminal needs are obtained The electricity of reservation;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
15. device according to claim 14, which is characterized in that the unit time power consumption for obtaining terminal, including:
Obtain terminal current battery capacity and current time;
Battery capacity before obtaining at the end of primary charging, and charging end time;
Battery capacity at the end of preceding primary charging is subtracted into the current battery capacity of terminal, obtains power consumption Q;By current time The charging end time is subtracted, time T is obtained;
By power consumption Q divided by time T, the unit time power consumption of terminal is obtained.
16. device described in any one of 0-13 according to claim 1, which is characterized in that the determining module is also used to:
The daily communications records of user in predetermined period are divided into multiple sections according to the time;
It counts in each section, the power consumption of all communication class applications;
It obtains in predetermined period, all communication classes apply average power consumption corresponding in each section;
Average power consumption is greater than to the period of the 4th threshold value, as the communication requirement period;
Using terminal current time as start time point, the last one communication requirement period on the same day is searched sequentially in time, by institute Communication requirement period at corresponding time point is stated as termination time point;
Using the total power consumption of communication class applications all in the start time point to the section for terminating time point as terminal The electricity for needing to retain;
The current battery capacity of terminal is subtracted into the electricity that terminal needs to retain, obtains the upper limit value of terminal output electricity.
17. device according to claim 10, which is characterized in that the processing module is specifically used for:
When terminal output electricity reaches the upper limit value, the first prompt information is sent to user;The first prompt letter Breath is for reminding terminal described in user to have reached the electricity output upper limit;
After receiving user for the first confirmation message of first prompt information feedback, stop power supply outward;Alternatively, After preset delay duration, stop power supply outward.
18. device according to claim 10, which is characterized in that the processing module is also used to according to the communication Record after determining the upper limit value that terminal exports electricity, if the upper limit value is less than or equal to 0, sends second to user Prompt information, second prompt information are used to remind the battery capacity of terminal described in user insufficient;
Receive the second confirmation message that user is directed to second prompt information feedback;Second confirmation message is for controlling end The preferential power supply outward in end;
According to the second indication information, start power supply outward.
19. a kind of terminal, which is characterized in that including:
Memory, for storing program;
Processor, for executing the described program of the memory storage, when described program is performed, the processor is used for Execute method as claimed in any one of claims 1-9 wherein.
CN201810597251.0A 2018-06-11 2018-06-11 Reverse charging management method and device and terminal Active CN108881630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810597251.0A CN108881630B (en) 2018-06-11 2018-06-11 Reverse charging management method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810597251.0A CN108881630B (en) 2018-06-11 2018-06-11 Reverse charging management method and device and terminal

Publications (2)

Publication Number Publication Date
CN108881630A true CN108881630A (en) 2018-11-23
CN108881630B CN108881630B (en) 2021-08-17

Family

ID=64337804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810597251.0A Active CN108881630B (en) 2018-06-11 2018-06-11 Reverse charging management method and device and terminal

Country Status (1)

Country Link
CN (1) CN108881630B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654084A (en) * 2020-06-16 2020-09-11 中国联合网络通信集团有限公司 Reverse power supply terminal confirmation method and system, and reverse charging method and system
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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130009468A1 (en) * 2011-07-05 2013-01-10 Fujitsu Limited Electronic apparatus, and charging control method
CN105098273A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Charging method and device
CN105098888A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Charging method and device
CN105429199A (en) * 2015-11-11 2016-03-23 上海斐讯数据通信技术有限公司 Reverse charging mobile terminal and method
CN105790349A (en) * 2016-01-27 2016-07-20 努比亚技术有限公司 Mutual charging control method and device for mobile terminals
CN106712179A (en) * 2016-12-27 2017-05-24 努比亚技术有限公司 Method and device realizing reverse charging
CN108055386A (en) * 2017-10-30 2018-05-18 捷开通讯(深圳)有限公司 Mobile terminal and its management method, storage device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130009468A1 (en) * 2011-07-05 2013-01-10 Fujitsu Limited Electronic apparatus, and charging control method
CN105098273A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Charging method and device
CN105098888A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Charging method and device
CN105429199A (en) * 2015-11-11 2016-03-23 上海斐讯数据通信技术有限公司 Reverse charging mobile terminal and method
CN105790349A (en) * 2016-01-27 2016-07-20 努比亚技术有限公司 Mutual charging control method and device for mobile terminals
CN106712179A (en) * 2016-12-27 2017-05-24 努比亚技术有限公司 Method and device realizing reverse charging
CN108055386A (en) * 2017-10-30 2018-05-18 捷开通讯(深圳)有限公司 Mobile terminal and its management method, storage device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654084A (en) * 2020-06-16 2020-09-11 中国联合网络通信集团有限公司 Reverse power supply terminal confirmation method and system, and reverse charging method and system
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

Also Published As

Publication number Publication date
CN108881630B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN108448188B (en) Appointment charging method and device for new energy automobile
US8525475B2 (en) Management system for exchange electric storage devices and management method for exchange electric storage devices
CN102005620B (en) Terminal and method for managing electric quantity of terminal battery
CN107181298A (en) Charge control method, device, terminal installation and storage medium
JP2018137886A (en) Server for charging/discharging system and charging/discharging system
EP2849309A1 (en) Apparatus and method for controlling operation for balancing charge capacity of secondary battery cells
CN110429672A (en) Battery charging management method, terminal device and storage medium
CN108881630A (en) reverse charging management method, device and terminal
US9391466B2 (en) Method and device for battery-charging management
CN108116251B (en) Electric automobile appointment timing charging system and method
CN110085927A (en) A kind of management method of new energy resource power battery, device, equipment and storage medium
CN107482709A (en) A kind of charging management method, device, electronic equipment and readable storage medium storing program for executing
CN111106635A (en) Method and device for determining charging mode
CN108235795A (en) Charging method, device, terminal device and computer readable storage medium
CN104866058A (en) Method and apparatus for determining battery endurance of electronic device
CN105580235A (en) Storage battery control device, control method, control program, and electricity storage system
CN111582850A (en) Electricity charge recharging method and device based on mobile phone bank
CN110190643B (en) Method and device for reminding user of charging, wearable device and storage medium
CN107565184B (en) Charging method, device and equipment
CN108471476B (en) Reverse charging management method for mobile terminal and mobile terminal
CN113602127B (en) Charging pile energy management method and device
CN105659464B (en) Accumulator control device
CN110675044A (en) Method and system for determining type of electric vehicle participating in auxiliary service
CN112659930B (en) Electric vehicle charging system and method
CN108848553A (en) Charging management method, apparatus and system

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