CN108736084A - Charging method and terminal - Google Patents

Charging method and terminal Download PDF

Info

Publication number
CN108736084A
CN108736084A CN201810512822.6A CN201810512822A CN108736084A CN 108736084 A CN108736084 A CN 108736084A CN 201810512822 A CN201810512822 A CN 201810512822A CN 108736084 A CN108736084 A CN 108736084A
Authority
CN
China
Prior art keywords
terminal
charging
time
historical act
historical
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
CN201810512822.6A
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 CN201810512822.6A priority Critical patent/CN108736084A/en
Publication of CN108736084A publication Critical patent/CN108736084A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/446Initial charging measures
    • 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/007Regulation of charging or discharging current or voltage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

A kind of charging method of present invention offer and terminal, this method include:According to the historical activity information of the current location of terminal and pre-stored terminal, first historical act time of the terminal on the corresponding first historical act position of current location is obtained;Historical activity information is used to indicate the second historical act time of terminal;First historical act time was the subset of the second historical act time;According to current time and the first historical act time, the prediction charging duration of terminal is determined;Remaining capacity of the terminal at current time is obtained, and according to remaining capacity and prediction charging duration, determines that the charge mode of terminal is that terminal charges.The present invention is based on geographical location, the activation record according to terminal in each geographical location determines the charge mode of terminal, and user experience is improved under the premise of rationally charging for terminal without artificial selection charging duration and charge mode.

Description

Charging method and terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of charging methods and terminal.
Background technology
With the continuous improvement of living standards with the fast development of communications industry, mobile terminal especially intelligent mobile terminal It quickly grows;With the raising of mobile terminal configuration, the increasing of screen, the increase of user's frequency of use and duration, mobile terminal Battery durable ability have become and influence one of the main problem that uses of user.
The rapid nitriding of terminal is because its charging rate for having is fast and do not reduce mobile terminal performance, be not required to take Band charging equipment, do not influence mobile terminal design and it is safe the features such as, become mobile terminal improve cruising ability key solution Certainly scheme.But rapid nitriding is one " double-edged sword ", while bringing advantage to the user, can also reduce the battery longevity Life, rapid nitriding, which is used for a long time, may cause the battery electrolyte in terminal to decompose, and generate deposit on the electrode, separately Outside, the high temperature generated using rapid nitriding may also damage battery core.Therefore, how pass reasonably is charged to terminal progress It is important.
In the prior art, CN 106340691 (charging management method and mobile communication terminal, date of publication 2017.01.18 a kind of charging management method) is provided, this method automatically selects use according to time set by user or duration Fast charge mode or normal charging mode, or estimation terminal respective charging duration and carry out automatically between two kinds of charge modes Switching.But this method user needs to pre-set the time of this charging of terminal, complex for operation step, user experience before charging every time Difference.
Invention content
A kind of charging method of present invention offer and terminal, this method is based on geographical location, according to terminal in each geographical location Activation record, determine the charge mode of terminal, improve user experience.
The first aspect of the present invention provides a kind of charging method, including:
According to the historical activity information of the current location of terminal and the pre-stored terminal, obtains the terminal and working as The first historical act time on the corresponding first historical act position of front position;The historical activity information is used to indicate described The second historical act time of terminal;The first historical act time is the subset of the second historical act time;
According to current time and the first historical act time, the prediction charging duration of the terminal is determined;
Remaining capacity of the terminal at the current time is obtained, and is charged according to the remaining capacity and the prediction Duration determines that the charge mode of the terminal is that terminal charges.
Optionally, the historical activity information includes and the second historical act time corresponding second historical act position It sets;
The historical activity information of the current location and the pre-stored terminal according to terminal, obtains the terminal The first historical act time on the corresponding first historical act position of current location, including:
According to pre-stored pre-determined distance and the current location, the current active position of the terminal is obtained;
According to the current active position and the second historical act position, first historical act position is obtained;
According to the historical activity information, first historical act corresponding with first historical act position is obtained Time.
Optionally, described according to the current active position and the second historical act position, it obtains first history and lives Dynamic position, including:
To include that the location determination of the current active position is lived for third history in second historical act position Dynamic position;
In third historical act position, inquiry is with the presence or absence of the identical historical act position more than preset times;
If so, being first historical act position by the identical historical act location determination more than preset times.
Optionally, the first historical act time included the first historical act finish time;
It is described according to current time and the first historical act time, determine the prediction charging duration of the terminal, packet It includes:
It is more than the first historical act finish time when the current time, determines the prediction charging duration of the terminal It is 0;
It is less than the first historical act finish time when the current time, the current time and described first is gone through The difference at history activity end moment is determined as the prediction charging duration of the terminal.
Optionally, the method further includes:
According to pre-set preset duration and the current time, the buffering moment is determined;
It inquires in the terminal before the buffering moment, if record has emergency;
If so, obtaining the corresponding Emergency time of the emergency;
The difference at the current time and the Emergency time is determined as to the prediction charging duration of the terminal.
Optionally, the charge mode includes:Fast charge mode and normal charging mode;
Remaining capacity of the terminal at the current time is obtained, and is charged according to the remaining capacity and the prediction Duration determines that the charge mode of the terminal charges for terminal, including:
According to the remaining capacity, the electricity to be charged of the terminal is obtained;
According to the band charge capacity, corresponding first charging rate of the fast charge mode, the common charging mould Corresponding second charging rate of formula obtains the corresponding first charging duration of the fast charge mode, the normal charging mode Corresponding second charging duration;
According to prediction charging duration, the first charging duration and the second charging duration, the terminal is determined Charge mode be terminal charge.
Optionally, the charge mode further includes:Quickly/normal charging mode;Quick/the normal charging mode is institute State the charge mode that fast charge mode and the normal charging mode combine;
It is described according to the prediction charge duration, it is described first charging duration and it is described second charging duration, determine described in The charge mode of terminal charges for terminal, including:
When prediction charging duration is less than the first charging duration, determine that the fast charge mode is the end It charges at end;
When prediction charging duration is more than the second charging duration, determine that the normal charging mode is the end It charges at end;
When prediction charging duration is more than the first charging duration, and is less than the second charging duration, determine Quick/the normal charging mode is that the terminal charges.
The second aspect of the present invention provides a kind of terminal, including:
First historical act time-obtaining module, for according to the current location of terminal and the pre-stored terminal Historical activity information obtains the terminal in the first historical act on the corresponding first historical act position of current location Between;The historical activity information is used to indicate the second historical act time of the terminal;The first historical act time is The subset of the second historical act time;
Prediction charging duration determining module, described according to current time and the first historical act time, determining The prediction charging duration of terminal;
Charge mode determining module, for obtaining remaining capacity of the terminal at the current time, and according to described Remaining capacity and prediction charging duration determine that the charge mode of the terminal is that terminal charges.
The third aspect of the present invention provides a kind of terminal, including:At least one processor and memory;
The memory stores computer executed instructions;
At least one processor executes the computer executed instructions of the memory storage so that the terminal device Execute above-mentioned charging method.
The fourth aspect of the present invention provides a kind of computer readable storage medium, is deposited on the computer readable storage medium Computer executed instructions are contained, when the computer executed instructions are executed by processor, realize above-mentioned charging method.
A kind of charging method of present invention offer and terminal, this method include:According to the current location of terminal and prestore Terminal historical activity information, obtain first historical act of the terminal on the corresponding first historical act position of current location Time;Historical activity information is used to indicate the second historical act time of terminal;First historical act time lived for the second history The subset of dynamic time;According to current time and the first historical act time, the prediction charging duration of terminal is determined;Terminal is obtained to exist The remaining capacity at current time, and according to remaining capacity and prediction charging duration, determine that the charge mode of terminal carries out for terminal Charging.The present invention is based on geographical location, the activation record according to terminal in each geographical location determines the charge mode of terminal, nothing Charging duration and charge mode need to be artificially selected to improve user experience under the premise of rationally charging for terminal.
Description of the drawings
Fig. 1 is the flow diagram one of charging method provided by the invention;
Fig. 2 is the flow diagram two of charging method provided by the invention;
Fig. 3 is the flow diagram that the first historical act position is obtained in charging method provided by the invention;
Fig. 4 is the structural schematic diagram one of terminal provided by the invention;
Fig. 5 is the structural schematic diagram two of terminal provided by the invention;
Fig. 6 is the structural schematic diagram three of terminal provided by the invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the embodiment of the present invention, to this Technical solution in inventive embodiments is clearly and completely described, it is clear that described embodiment is that a part of the invention is real Example is applied, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creation Property labour under the premise of the every other embodiment that is obtained, shall fall within the protection scope of the present invention.
Technical term paraphrase:
Fast charge mode:Since initial state of charge, until charging 30 minutes, it is during which charged into the average electricity of end cell Stream is more than or equal to 60% charging modes that 3A or total charge volumes are more than or equal to battery rated capacity.
Charging method provided by the invention is suitable for the terminal with fast charge mode, is suitable for adapter, a line The charging system of cable and terminal composition;Terminal without quick charge only has normal charging mode, therefore, is using this hair Before the charging method of bright offer, terminal may determine that whether itself has quick charge condition, specifically, terminal can detect Whether the version of built-in chip supports fast charge mode, can also be the record of charging of terminal inquiry battery, judges battery Whether average current is more than or equal to 3A;How the present invention judges that the method for itself whether having quick charge condition is not done to terminal Limitation.
Fig. 1 is the flow diagram one of charging method provided by the invention, and the executive agent of method flow shown in Fig. 1 can be with For terminal, as shown in Figure 1, charging method provided in this embodiment may include:
S101 obtains terminal current according to the historical activity information of the current location of terminal and pre-stored terminal The first historical act time on the corresponding first historical act position of position;Historical activity information is used to indicate the second of terminal The historical act time;First historical act time was the subset of the second historical act time.
Terminal obtains the current location residing for itself, can be specifically terminal using the positioning system having in terminal or lead to The current location that mobile cellular network technology or radio network technique obtain terminal in real time is crossed, how the present embodiment is to obtain terminal The concrete mode of current location is not limited.
The historical activity information of terminal is stored in terminal, which may include the historical act position of terminal It sets and the historical act time in historical act position just records specifically, can be the every historical act position of terminal The historical act time in the historical act position;The form of the historical activity information can be stored such as the mode of following table one:
Table one
Number Start time Finish time Position
1 201701100800 201701101120 No. 14 Jingxi district in Fuxing Road, Haidian District, Beijing City mansion
2 201701101330 201701101720 Beijing Fengtai West Station South Road 1
3 201701110751 201701111145 XiZhiMenWai Street, BeiJing 10
4 201701111312 201701111710 Beijing Haidian agricultural university South Road 1
5 201701110900 201701111220 The XX supermarkets of Fuxing Road, Haidian District, Beijing City 14
6 201701120800 201701101320 The hotels XX of Fuxing Road, Haidian District, Beijing City 14
Start time and finish time are recorded as to the historical act time in table one, wherein 1-4 expressions in the moment " year ", 5-6 indicate " moon ", and 7-8 indicate " day ", correspondingly, the time that the next moment is 24 systems indicates, such as " 201701100800 " indicate 8 o'clock sharps of on January 10th, 2017;Wherein, the historical act time can from " year " specific to " moon ", then Specific to " day ", then specific to " when, minute, second ", terminal can depending on the user's operation, historical activity information is carried out 1 year or January or one day or smaller chronomere correspond to the display of historical act position.Above-mentioned table one only as an example, it is contemplated that It is log history action message, the present embodiment to be not particularly limited in other ways.
According to current location and historical activity information, the on the corresponding first historical act position of current location is obtained One historical act time;Specifically, current location corresponding first historical act position can be existed in historical activity information The current location, can also be the other positions of pre-determined distance around position in this prior, can also be historical activity information Present in around the current location and the current location other positions of pre-determined distance collection location.
According to the first historical act position, determine that corresponding with the historical act position first goes through in historical activity information The history activity time.Such as:Current location is No. 14 Jingxi district in Fuxing Road, Haidian District, Beijing City mansion, which is north The north of capital city Renaissance Road, Haidian District No. 14 Jingxi district mansion or No. 14 Jingxi district in Fuxing Road, Haidian District, Beijing City mansion pre-determined distance range Three No. 14 hotels XX of capital city Renaissance Road, Haidian District, two positions of XX supermarkets or Jingxi district mansion, the hotels XX, XX supermarkets positions, it is right It answers, determines terminal in Jingxi district mansion corresponding historical act time or the hotels XX, two, XX supermarkets according to historical activity information The corresponding historical act time of position or Jingxi district mansion, the hotels XX, three positions of XX supermarkets corresponding historical act time.
Wherein, historical activity information is used to indicate the second historical act time of terminal, which refers to Be all historical act positions of terminal corresponding all historical act time;And the above-mentioned first historical act time is to work as Corresponding historical act time on the corresponding first historical act position of front position, the first historical act time are the second history The subset of activity time.
S102 determines the prediction charging duration of terminal according to current time and the first historical act time.
Terminal obtains current time, can be specifically the current time that terminal directly acquires itself, can also be that terminal is logical The time server crossed on internet obtains current time, and the concrete mode that the present embodiment centering terminal obtains current time is not done Limitation.
Terminal determines the prediction charging duration of terminal, wherein first goes through according to current time and the first historical act time The history activity time includes the first historical act start time and the first historical act finish time, and terminal is according to current time, the One historical act start time and the first historical act finish time determine the prediction charging duration of terminal.
Such as:Current time is 10 days 09 February in 2017:00, corresponding first historical act start time is 2017 01 On the moon 10 08:00, the first historical act finish time was on 01 10th, 2,017 12:00, the historical act of terminal in the position 3 hours of Shi Changwei, are 09 now:00, it is contemplated that terminal leaves also 2 hours, then 2 a length of when the prediction charging of terminal Hour.
In the present embodiment, the first historical act position can be multiple, and the first historical act time was multiple, then predicting Duration is the average duration obtained according to each historical act time.It is conceivable that other more complicated calculations can also be used Method, such as exponential smoothing, linear regression method charge duration to determine the prediction of terminal, and the present embodiment is without limitation.
S103 obtains remaining capacity of the terminal at current time, and according to remaining capacity and prediction charging duration, determines eventually The charge mode at end is that terminal charges.
Remaining capacity of the terminal at current time is obtained, is obtained according to the difference of terminal Full Charge Capacity and remaining capacity to be charged Electricity determines the charge mode of terminal, wherein charge mode includes according to electricity to be charged and prediction charging duration:Quickly fill Power mode, normal charging mode and quickly/normal charging mode;Wherein, quickly/normal charging mode be fast charge mode and The charge mode that normal charging mode combines.
Specifically, terminal determines that a kind of optional mode of charge mode is:Electricity to be charged and prediction charging duration obtain Prediction charging rate is taken, by prediction charging rate the first charging speed corresponding with fast charge mode, normal charging mode Degree, the second charging rate compare, if prediction charging rate is more than the first charging rate, select fast charge mode;If pre- It surveys charging rate and is less than the second charging rate, then select normal charging mode;If predicting charging rate between the first charging rate And second between charging rate, then selection quickly/normal charging mode.
Another optional mode is:According to the first charging rate, the second charging rate, terminal is obtained respectively and is quickly being filled The corresponding first charging duration of charging, the second charging duration that electricity to be charged is completed under power mode, normal charging mode, if in advance It surveys charging duration and is less than the first charging duration, then select fast charge mode;If prediction charging duration is more than the second charging duration, Then select normal charging mode;If prediction charging duration, between the first charging duration and the second charging duration, selection is fast Speed/normal charging mode.
In the present embodiment, according to the historical activity information of the current location of terminal and pre-stored terminal, terminal is obtained The first historical act time on the corresponding first historical act position of current location;Historical activity information is used to indicate terminal The second historical act time;First historical act time was the subset of the second historical act time;According to current time and One historical act time determined the prediction charging duration of terminal;Remaining capacity of the terminal at current time is obtained, and according to residue Electricity and prediction charging duration determine that the charge mode of terminal is that terminal charges.The present embodiment is based on geographical location, according to Historical act of the terminal in each geographical location records, and determines that terminal in the Active duration in each geographical location, determines the charging of terminal Pattern improves user experience without artificial selection charging duration and charge mode under the premise of rationally charging for terminal.
Charging method provided by the invention is further elaborated with reference to Fig. 2, Fig. 2 is provided by the invention The flow diagram two of charging method, as shown in Fig. 2, charging method provided by the invention may include:
S201 obtains the current active position of terminal according to pre-stored pre-determined distance and current location.
Pre-determined distance is previously stored in terminal, terminal obtains terminal current active position after obtaining current location.Eventually The activity in current location is held, may not only be in current location, can also be the work within the scope of the pre-determined distance of current location Dynamic position.Such as:User in A handles official business, but noon is with dining out the B in distance A pre-determined distance, also calculates at end to the B In the current active position at end.Specifically, using current location as the center of circle, pre-determined distance is that the position in the annulus of radius belongs to Terminal current active position, if any tri- positions A, B and C.
S202 obtains the first historical act position according to current active position and the second historical act position.
Due to recording the historical act position for having terminal all, i.e. the second historical act position, according to terminal in terminal Current active position determines the first historical act position in the second historical act position, i.e., terminal current active position is the The corresponding position in two historical act positions.Such as:Record has terminal in A, B, C in terminal ..., and the historical act position of Z, terminal are worked as Preceding moving position is A, B and C, then the first historical act position is A, B and C in the first historical act position, it is practical On, the current moving position of terminal is identical for the position of A, B and C and A, B and C in the first historical act position difference.
Specifically, Fig. 3 is the flow diagram for obtaining the first historical act position in charging method provided by the invention, such as Shown in Fig. 3, take the specific implementation of the first historical act position that can be in above-mentioned S202:
S2021, will include in the second historical act position current active position location determination be third historical act Position.
Current active position is A, B and C, is lived for third history in the location determination of A, B and C of the second historical act position Dynamic position;Table two is the historical activity information of terminal, is third historical act position by the corresponding location determination of number 1-5,9-13 It sets.
Table two
S2022, in third historical act position, inquiry is with the presence or absence of the identical historical act position more than preset times It sets, if so, S2023 is executed, if it is not, executing S2024.
It is previously provided with preset times in terminal, is such as set as 3 times, the number of location A is 4 times in A, B and C, B location Number be 4 times, the number of location of C is 2 times, shows that user may the infrequently stop C at;Therefore, in third historical act In position, exist more than preset times identical historical act position be A, B.
S2023, the identical historical act location determination that will be greater than preset times are the first historical act position.
Identical historical act position more than preset times is A, B, therefore A, B are determined as the first historical act position.
S2024 starts fast charge mode.
In third historical act position, there is the identical historical act position more than preset times, i.e. third history is lived Dynamic position is the position that terminal will not stop for a long time, therefore terminal can determine that fast charge mode is terminal charge.
S203 obtains the first historical act time corresponding with the first historical act position according to historical activity information.
According to historical activity information, obtained for the first historical act time, specifically, can be according to the historical act in table two Information determined for the first historical act time, wherein the corresponding historical activity information of current active position A, B is number 1-4 and 9- 12;Its corresponding historical act time is respectively 201701100800-201701101120,201701101330- 201701101720、201701110751-201701111145、201701111312-201701111710、 201701191300-201701191720、201701201300-201701201720、201701211300- 201701211720、201701221300-201701221720。
S204 determines the prediction charging duration of terminal according to current time and the first historical act time.
The emergency for whether having setting in terminal inquiry terminal, as whether having in short message enquiry at current time or currently Whether have in the trip informations such as scheduled air ticket, ticket or terminal inquiry memorandum at the time of after moment at current time or Meeting at the time of after current time is reminded, and the concrete mode for detecting emergency in the present embodiment for terminal does not limit System, if can effectively detection terminal after current time or current time whether emergency.
A kind of scene of application is:Without emergency in terminal;According to current time and the first historical act time, determine Predict duration, when prediction duration that can be stopped in the first historical act position of a length of terminal.Specifically, the first history is lived The dynamic time included the first historical act finish time, can be more than for the first historical act finish time according to when current time, determine A length of 0 when the prediction charging of terminal;It was less than for the first historical act finish time when current time, by current time and the first history The difference at activity end moment is determined as the prediction charging duration of terminal.
Table three is the result schematic table for determining prediction charging duration, such as:Current time residing for terminal is 12:00, when The preceding moment is more than the first historical act finish time of number 1,3, a length of 0 when corresponding prediction is charged;Current time is less than First historical act finish time of number 2,4,9-12, corresponding prediction charging duration is respectively 5.3,5.2,5.2,5.2, 5.2,5.2, a length of 5.3+5.2+5.2+5.2+5.2+5.2/6=when prediction charging can be obtained according to the mode of averaging 5.2, it is contemplated that first remove bad data, then carry out the acquisition of average, wherein bad data can be in prediction duration Maximum value and/or minimum value;It is envisioned that other more complicated algorithms can also be used, such as exponential smoothing, line Property the Return Law etc. charge duration to obtain the prediction of terminal.The present embodiment is without limitation.
Table three
Number Start time Finish time Position Duration (hour)
1 201701100800 201701101120 A 0
2 201701101330 201701101720 A 5.3
3 201701110751 201701111145 B 0
4 201701111312 201701111710 B 5.2
9 201701191300 201701191720 A 5.2
10 201701201300 201701201720 B 5.2
11 201701211300 201701211720 A 5.2
12 201701221300 201701221720 B 5.2
Another application scene be:There is emergency in terminal;Then obtaining the mode of predictably terminal imagination duration specifically can be with It is:
According to pre-set preset duration and current time, the buffering moment is determined, wherein the buffering moment is current time With the adduction of preset duration, such as:Current time is 12:00, preset duration is 5 hours, then it is 17 to buffer the moment:00.
It inquires in terminal before buffering the moment, if whether record has emergency, wherein remember in terminal inquiry terminal Record has the mode of emergency identical as above-mentioned mode, and this is not restricted.
If record has emergency in terminal, terminal obtains the corresponding Emergency time of emergency, such as the memorandum of terminal 15 are shown in record:00 has minutes, then Emergency time is 15:00;The difference of current time and Emergency time is determined as The prediction charging duration of terminal, terminal can determine user 15:00 will leave, it is determined that a length of 3 when the prediction charging of terminal A hour.
S205 obtains the electricity to be charged of terminal according to remaining capacity.
The charge condition of the real-time detection terminal of terminal obtains the remaining capacity of current time terminal, according to the full electricity of terminal Amount and remaining capacity, obtain electricity to be charged.
S206, it is corresponding according to electricity to be charged, corresponding first charging rate of fast charge mode, normal charging mode Second charging rate, when the corresponding first charging duration of acquisition fast charge mode, normal charging mode corresponding second charge It is long.
Wherein, it is previously stored with corresponding first charging rate of fast charge mode in terminal and normal charging mode corresponds to The second charging rate, electricity to be charged divided by the first charging rate obtain the corresponding first charging duration of fast charge mode, Electricity to be charged divided by the second charging rate obtain the corresponding second charging duration of normal charging mode.
S207 determines that the charge mode of terminal is according to prediction charging duration, the first charging duration and the second charging duration Terminal charges.
Specifically, when prediction charging duration is less than the first charging duration, determine that fast charge mode is that terminal is filled Electricity;When prediction charging duration is more than the second charging duration, determine that normal charging mode is that terminal charges;When prediction is charged Duration be more than first charging duration, and less than second charging duration when, determine quickly/normal charging mode be terminal filled Electricity.
Wherein, when it is that terminal is charged to determine quickly/normal charging mode, specific practical fast charge mode charging Duration t1It formula one can be calculated according to the following formula:
t1=[[C-tr·(C/tc)]]/[[(C/tq)-(C/tc)]] formula one
The duration t of normal charging mode charging2It formula two can be calculated according to the following formula:
t2=tr-t1Formula two
Wherein, C is the electricity to be charged of terminal, trFor the prediction charging duration of terminal, tcTo be completed in fast charge mode Charging duration needed for electricity to be charged, tqTo complete the charging duration needed for electricity to be charged in normal charging mode.
In the present embodiment, according to pre-stored pre-determined distance and current location, the current active position of terminal is obtained, Corresponding third historical act position is determined in historical activity information, further, the identical history that will be greater than preset times is lived Dynamic location determination is the first historical act position, is terminal often movable range by the location determination around current location, and Eliminate the position (being less than preset times) that terminal infrequently stops so that the historical act position of the terminal of acquisition and its correspondence The historical act time it is more accurate;The present embodiment is based on geographical location, the activation record according to terminal in each geographical location, really The charge mode of terminal is determined, without artificial selection charging duration and charge mode, in addition, being provided with emergency in terminal When, it determines charge mode according to the Emergency time of emergency, under the premise of rationally charging for terminal, improves user's body It tests.
Fig. 4 is the structural schematic diagram one of terminal provided by the invention, as shown in figure 4, the terminal 300 includes:First history Activity time acquisition module 301, prediction charging duration determining module 302, charge mode determining module 303.
First historical act time-obtaining module 301, for according to the current location of terminal and pre-stored terminal Historical activity information obtains first historical act time of the terminal on the corresponding first historical act position of current location;It goes through History action message is used to indicate the second historical act time of terminal;First historical act time was the second historical act time Subset.
Prediction charging duration determining module 302, for according to current time and the first historical act time, determining terminal Prediction charging duration.
Charge mode determining module 303, for obtaining remaining capacity of the terminal at current time, and according to remaining capacity and Prediction charging duration determines that the charge mode of terminal is that terminal charges.
Terminal provided in this embodiment is similar with principle and technique effect that above-mentioned charging method is realized, does not go to live in the household of one's in-laws on getting married herein It states.
Optionally, historical activity information includes and the second historical act time corresponding second historical act position;
First historical act time-obtaining module 301 is specifically used for according to pre-stored pre-determined distance and current location, Obtain the current active position of terminal;
According to current active position and the second historical act position, the first historical act position is obtained;
According to historical activity information, the first historical act time corresponding with the first historical act position is obtained.
Optionally, the first historical act time-obtaining module 301, specifically for that will include in the second historical act position The location determination of current active position is third historical act position;
In third historical act position, inquiry is with the presence or absence of the identical historical act position more than preset times;
If so, the identical historical act location determination that will be greater than preset times is the first historical act position.
Optionally, the first historical act time included the first historical act finish time.
Prediction charging duration determining module 302, is specifically used for being more than for the first historical act finish time when current time, really Determine a length of 0 when the prediction charging of terminal;
It was less than for the first historical act finish time when current time, by current time and the first historical act finish time Difference is determined as the prediction charging duration of terminal.
Fig. 5 is the structural schematic diagram two of terminal provided by the invention, as shown in figure 5, the terminal 300 further includes:When buffering Carve determining module 304, emergency enquiry module 305, Emergency time acquisition module 306.
Moment determining module 304 is buffered, when being buffered for according to pre-set preset duration and current time, determining It carves.
Emergency enquiry module 305, for inquiring in terminal before buffering the moment, if record has emergency.
Emergency time acquisition module 306, for when 305 result of emergency enquiry module is to be, obtaining emergency Corresponding Emergency time.
Optionally, prediction charging duration determining module 302 is specifically used for determining the difference of current time and Emergency time For the prediction charging duration of terminal.
Optionally, charge mode includes:Fast charge mode and normal charging mode.
Optionally, charge mode determining module 303 is specifically used for, according to remaining capacity, obtaining the electricity to be charged of terminal;
According to electricity to be charged, corresponding first charging rate of fast charge mode, normal charging mode corresponding second Charging rate obtains the corresponding first charging duration of fast charge mode, the corresponding second charging duration of normal charging mode;
According to prediction charging duration, the first charging duration and the second charging duration, determine that the charge mode of terminal is terminal It charges.
Optionally, charge mode further includes:Quickly/normal charging mode;Quickly/normal charging mode is quick charge mould The charge mode that formula and normal charging mode combine.
Optionally, charge mode determining module 303 is specifically used for when prediction charging duration is less than the first charging duration, Determine that fast charge mode is that terminal charges;
When prediction charging duration is more than the second charging duration, determine that normal charging mode is that terminal charges;
When prediction charging duration is more than the first charging duration, and is less than the second charging duration, quick/common charge is determined Pattern is that terminal charges.
Fig. 6 is the structural schematic diagram three of terminal provided by the invention, as shown in fig. 6, the terminal 400 includes:Memory 401 With at least one processor 402.
Memory 401, for storing program instruction.
Processor 402, the charging method for being performed in program instruction in realizing the present embodiment, implements principle Above-described embodiment is can be found in, details are not described herein again for the present embodiment.
The terminal 400 can also include and input/output interface 403.
Input/output interface 403 may include independent output interface and input interface, or integrated input and defeated The integrated interface gone out.Wherein, output interface is used for output data, and input interface is used to obtain the data of input, above-mentioned output Data are the general designation exported in above method embodiment, and the data of input are the general designation inputted in above method embodiment.
The present invention also provides a kind of readable storage medium storing program for executing, be stored with and execute instruction in readable storage medium storing program for executing, when terminal extremely When a few processor executes this and executes instruction, when computer executed instructions are executed by processor, realize in above-described embodiment Charging method.
The present invention also provides a kind of program product, the program product include execute instruction, this execute instruction be stored in it is readable In storage medium.At least one processor of terminal can read this from readable storage medium storing program for executing and execute instruction, at least one processing Device executes this and executes instruction so that terminal implements the charging method that above-mentioned various embodiments provide.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English:Processor this hair) is executed The part steps of bright each embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access memory (English:Random Access Memory, letter Claim:RAM), the various media that can store program code such as magnetic disc or CD.
In the embodiment of the above-mentioned network equipment or terminal device, it should be appreciated that processor can be central processing unit (English:Central Processing Unit, referred to as:CPU), it can also be other general processors, digital signal processor (English:Digital Signal Processor, referred to as:DSP), application-specific integrated circuit (English:Application Specific Integrated Circuit, referred to as:ASIC) etc..General processor can be microprocessor or the processor It can also be any conventional processor etc..Hardware handles can be embodied directly in conjunction with the step of method disclosed in the present application Device executes completion, or in processor hardware and software module combination execute completion.
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, 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, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of charging method, which is characterized in that including:
According to the historical activity information of the current location of terminal and the pre-stored terminal, the terminal is obtained in present bit Set the first historical act time on corresponding first historical act position;The historical activity information is used to indicate the terminal The second historical act time;The first historical act time is the subset of the second historical act time;
According to current time and the first historical act time, the prediction charging duration of the terminal is determined;
When obtaining remaining capacity of the terminal at the current time, and being charged according to the remaining capacity and the prediction It is long, determine that the charge mode of the terminal is that terminal charges.
2. charging method according to claim 1, which is characterized in that the historical activity information includes:With described second Historical act time corresponding second historical act position;
The historical activity information of the current location and the pre-stored terminal according to terminal, obtains the terminal and is working as The first historical act time on the corresponding first historical act position of front position, including:
According to pre-stored pre-determined distance and the current location, the current active position of the terminal is obtained;
According to the current active position and the second historical act position, first historical act position is obtained;
According to the historical activity information, when obtaining first historical act corresponding with first historical act position Between.
3. charging method according to claim 2, which is characterized in that described to be gone through according to the current active position and second History moving position obtains first historical act position, including:
Will include in second historical act position current active position location determination be third historical act position It sets;
In third historical act position, inquiry is with the presence or absence of the identical historical act position more than preset times;
If so, being first historical act position by the identical historical act location determination more than preset times.
4. charging method according to claim 1, which is characterized in that the first historical act time includes the first history The activity end moment;
It is described to determine the prediction charging duration of the terminal according to current time and the first historical act time, including:
It is more than the first historical act finish time when the current time, a length of 0 when determining the prediction charging of the terminal;
It is less than the first historical act finish time when the current time, the current time and first history is lived The difference of dynamic finish time is determined as the prediction charging duration of the terminal.
5. charging method according to claim 1, which is characterized in that the method further includes:
According to pre-set preset duration and the current time, the buffering moment is determined;
It inquires in the terminal before the buffering moment, if record has emergency;
If so, obtaining the corresponding Emergency time of the emergency;
The difference at the current time and the Emergency time is determined as to the prediction charging duration of the terminal.
6. charging method according to claim 1, which is characterized in that the charge mode includes:Fast charge mode and Normal charging mode;
The remaining capacity that the terminal is obtained at the current time, and charged according to the remaining capacity and the prediction Duration determines that the charge mode of the terminal charges for terminal, including:
According to the remaining capacity, the electricity to be charged of the terminal is obtained;
According to the electricity to be charged, corresponding first charging rate of the fast charge mode, the normal charging mode pair The second charging rate answered obtains the corresponding first charging duration of the fast charge mode, the normal charging mode corresponds to Second charging duration;
According to prediction charging duration, the first charging duration and the second charging duration, filling for the terminal is determined Power mode is that terminal charges.
7. charging method according to claim 6, which is characterized in that the charge mode further includes:Quickly/commonly charging Pattern;Quick/the normal charging mode is the charge mode that the fast charge mode and the normal charging mode combine;
It is described according to the prediction charge duration, it is described first charging duration and it is described second charging duration, determine the terminal Charge mode be terminal charge, including:
When the prediction charging duration be less than it is described first charge duration when, determine the fast charge mode be the terminal into Row charging;
When the prediction charging duration be more than it is described second charge duration when, determine the normal charging mode be the terminal into Row charging;
When the prediction charging duration be more than it is described first charge duration, and less than it is described second charge duration when, determine described in Quickly/normal charging mode is that the terminal charges.
8. a kind of terminal, which is characterized in that including:
First historical act time-obtaining module is used for the history of the current location and the pre-stored terminal according to terminal Action message obtains first historical act time of the terminal on the corresponding first historical act position of current location;Institute State the second historical act time that historical activity information is used to indicate the terminal;The first historical act time is described the The subset of two historical act times;
Prediction charging duration determining module, for according to current time and the first historical act time, determining the terminal Prediction charge duration;
Charge mode determining module, for obtaining remaining capacity of the terminal at the current time, and according to the residue Electricity and prediction charging duration determine that the charge mode of the terminal is that terminal charges.
9. a kind of terminal, which is characterized in that including:At least one processor and memory;
The memory stores computer executed instructions;
At least one processor executes the computer executed instructions of the memory storage so that the terminal perform claim It is required that 1-7 any one of them methods.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium It executes instruction, when the computer executed instructions are executed by processor, realizes claim 1-7 any one of them methods.
CN201810512822.6A 2018-05-25 2018-05-25 Charging method and terminal Pending CN108736084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810512822.6A CN108736084A (en) 2018-05-25 2018-05-25 Charging method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810512822.6A CN108736084A (en) 2018-05-25 2018-05-25 Charging method and terminal

Publications (1)

Publication Number Publication Date
CN108736084A true CN108736084A (en) 2018-11-02

Family

ID=63936278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810512822.6A Pending CN108736084A (en) 2018-05-25 2018-05-25 Charging method and terminal

Country Status (1)

Country Link
CN (1) CN108736084A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110366117A (en) * 2019-07-17 2019-10-22 中国联合网络通信集团有限公司 A kind of mobile terminal network switching method and device
CN112655130A (en) * 2020-03-31 2021-04-13 华为技术有限公司 Battery charging progress prediction method and device
CN114498701A (en) * 2021-12-31 2022-05-13 广州奥鹏能源科技有限公司 Intelligent energy storage equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105895979A (en) * 2016-05-27 2016-08-24 维沃移动通信有限公司 Terminal charging method and terminal
CN106058965A (en) * 2016-06-03 2016-10-26 深圳市金立通信设备有限公司 Charging method and terminal
CN107181298A (en) * 2017-05-26 2017-09-19 珠海市魅族科技有限公司 Charge control method, device, terminal installation and storage medium
CN107342616A (en) * 2017-08-28 2017-11-10 上海传英信息技术有限公司 A kind of method, apparatus and its terminal of intelligent control charging
CN107707766A (en) * 2017-10-23 2018-02-16 上海爱优威软件开发有限公司 Charging reminding method based on routing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105895979A (en) * 2016-05-27 2016-08-24 维沃移动通信有限公司 Terminal charging method and terminal
CN106058965A (en) * 2016-06-03 2016-10-26 深圳市金立通信设备有限公司 Charging method and terminal
CN107181298A (en) * 2017-05-26 2017-09-19 珠海市魅族科技有限公司 Charge control method, device, terminal installation and storage medium
CN107342616A (en) * 2017-08-28 2017-11-10 上海传英信息技术有限公司 A kind of method, apparatus and its terminal of intelligent control charging
CN107707766A (en) * 2017-10-23 2018-02-16 上海爱优威软件开发有限公司 Charging reminding method based on routing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110366117A (en) * 2019-07-17 2019-10-22 中国联合网络通信集团有限公司 A kind of mobile terminal network switching method and device
CN112655130A (en) * 2020-03-31 2021-04-13 华为技术有限公司 Battery charging progress prediction method and device
CN114498701A (en) * 2021-12-31 2022-05-13 广州奥鹏能源科技有限公司 Intelligent energy storage equipment

Similar Documents

Publication Publication Date Title
CN104853422B (en) A kind of method and device of electricity saving of mobile terminal
CN108736084A (en) Charging method and terminal
CN107832132B (en) Application control method and device, storage medium and electronic equipment
CN107181298A (en) Charge control method, device, terminal installation and storage medium
CN107528316B (en) Intelligent charging pile power distribution method under transformer capacity limited condition of transformer area
CN109542907A (en) Database caches construction method, device, computer equipment and storage medium
CN107742757A (en) A kind of charging management method and device
CN104659881B (en) Charging method and device for mobile terminal
CN104424156A (en) Core processing method and device of processor and terminal
CN108390929A (en) Obtain the method and device that user resides position
CN103167171B (en) Selection method and mobile terminal of contact mode
CN103473343A (en) File management method, device and terminal
CN103037424A (en) Evaluation method and device of the 3rd generation telecommunication (3G) network coverage
CN102117340A (en) Dynamic data storage method
CN107623732A (en) A kind of date storage method based on cloud platform, device, equipment and storage medium
CN102624958B (en) Device and method for managing contact information
CN101938814A (en) Mobile terminal paging method and mobile call center equipment
CN102883021A (en) Method and device for searching contacts
CN103037056B (en) A kind of sort method of mobile terminal device telephone number and mobile terminal device
CN104796518A (en) Method for obtaining battery life of terminal and terminal
CN108881630B (en) Reverse charging management method and device and terminal
CN108287760A (en) Terminal equipment control method and device, terminal device and computer readable storage medium
CN108471476B (en) Reverse charging management method for mobile terminal and mobile terminal
CN103634470A (en) Human-computer interaction prediction method based on terminal mobile data access network Qos
CN105721348A (en) Traffic control method and device of intelligent terminal

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: 20181102

RJ01 Rejection of invention patent application after publication