Summary of the invention
The invention provides a kind of method that mobile device is carried out charging process, this method can show the residue charging interval that mobile device is current exactly.
The invention provides a kind of system that mobile device is carried out charging process, this system can show the residue charging interval that mobile device is current exactly.
The invention provides a kind of mobile device, this mobile device can show the residue charging interval that mobile device is current exactly.
A kind of method that mobile device is carried out charging process, this method comprises:
Obtain non-linear relation equation, and obtain current electric quantity percentage about charging interval variable and electric weight percentage variables;
Obtain remaining the charging interval by current electric quantity percentage and non-linear relation Equation for Calculating;
Show the residue charging interval that calculates.
A kind of system that mobile device is carried out charging process, this system comprise that equation generates equipment and mobile device;
Said equation generates equipment, is used to gather historical charging data, and said charging data comprise the charging interval that the electric weight percentage is when corresponding; Obtain non-linear relation equation by the charging data fitting about electric weight percentage variables and charging interval variable;
Said mobile device is used for obtaining the non-linear relation equation from equation generation equipment, and obtains current electric quantity percentage; Obtain remaining the charging interval by current electric quantity percentage and non-linear relation Equation for Calculating; Show the residue charging interval that calculates.
A kind of mobile device, this mobile device comprise equation acquiring unit, electric weight acquiring unit, computing unit and electric weight display unit;
Said equation acquiring unit is used to obtain the non-linear relation equation about charging interval variable and electric weight percentage variables, sends computing unit to;
Said electric weight acquiring unit is used to obtain current electric quantity percentage, sends computing unit to;
Said computing unit is used for being obtained remaining the charging interval by current electric quantity percentage and non-linear relation Equation for Calculating, will remain the charging interval to send the electric weight display unit to;
Said electric weight display unit is used to show the residue charging interval that calculates.
Can find out from such scheme, among the present invention, at first obtain non-linear relation equation, obtain remaining the charging interval by current electric quantity percentage and non-linear relation Equation for Calculating about charging interval variable and electric weight percentage variables; Show the residue charging interval that calculates again.Thereby, realized the residue charging interval that accurate demonstration mobile device is current.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below in conjunction with embodiment and accompanying drawing, to further explain of the present invention.
The present invention combines the non-linear relation equation, to show the current residue charging interval of mobile device.Referring to Fig. 1, be the method indicative flowchart that the present invention carries out charging process to mobile device, it may further comprise the steps:
Step 101 is obtained the non-linear relation equation about charging interval variable and electric weight percentage variables, and obtains current electric quantity percentage.
In charging process, mobile device can be known the current electric quantity percentage of battery.
On mobile device, electric weight percentage and charging interval in the charging process are non-linear, and the present invention draws a non-linear relation equation that is applicable to common situation through gathering a large amount of charging data.
The non-linear relation equation can be generated by network side, just can obtain from network side when mobile device needs.Generating the non-linear relation equation can specifically comprise:
Gather historical charging data, said charging data comprise the charging interval that the electric weight percentage is when corresponding; Obtain non-linear relation equation by the charging data fitting about electric weight percentage variables and charging interval variable.
The historical charging of said collection data can specifically comprise: gather electric weight percentage P
i, with electric weight from P
iSupplement with money to P
iUsed time of+B is as electric weight percentage P
iCorresponding charging interval T
iWherein B for example is 1% for setting the electric weight increment size, and i is a natural number.Gather charging data (P
i, T
i) after, can adopt interpolation algorithm that the charging data fitting is obtained non-linear relation equation F (P)=T, particularly, can adopt glug Lang Ri interpolation algorithm or Newton interpolation algorithm etc.
Step 102 is obtained remaining the charging interval by current electric quantity percentage and non-linear relation Equation for Calculating.
Current electric quantity percentage is expressed as P
1, with P
1Supplement with money to P
1The used time representation of+B is T '.
This step can be by P
1And F (P)=T directly calculates, particularly:
With P
1+ kB substitution non-linear relation equation F (P)=T obtains T
kWherein, the k value is 0 to M integer, and the condition that M satisfies is: P
1+ MB is less than or equal to 100%; With the T that obtains
kSummation:
With S as the residue charging interval.
In the actual charging process, each time charge condition possibly there are differences, and in order to make the residue charging interval that obtains more accurate, the present invention also revises the residue charging interval, and particularly, this step comprises:
With P
1+ kB substitution non-linear relation equation F (P)=T obtains T
kWherein, the k value is 0 to M integer, and P
1+ MB is less than or equal to 100%; With the T that obtains
kSummation:
With T '/T
1As corrected parameter, with S and T '/T
1Multiply each other, with the product that obtains as the residue charging interval.
Step 103 shows the residue charging interval that calculates.
Particularly, can on the screen protection page or leaf, show the residue charging interval that calculates.
In order further to show current charged state, in the flow process of Fig. 1, step 101 is obtained after the current electric quantity percentage, and this method also comprises: confirm charged state by current electric quantity percentage, charged state is presented at the screen protection page or leaf; Said charged state comprises quick-charge state, trickle charge state and trickle charge state.The electric weight percentage range of quick-charge state is 0% ~ 80%, and the electric weight percentage range of trickle charge state is 80% ~ 100%, and the electric weight percentage range of trickle charge state is to continue charging a period of time after 100% again.
After accomplishing charging process, if continue inserting charging wire, after a period of time, battery will overcharge, and overcharge the life-span of loss battery.Thereby the present invention also carries out clock alarming after accomplishing charging, and particularly, step 101 is said to be obtained after the current electric quantity percentage, and this method also comprises: judge whether current electric quantity percentage equals 100%, if then carry out clock alarming.
The present invention program can be realized by the charging client that operates in the mobile device operation system; After the mobile device start; Operating system is sent start-up command to this charging client; This client judges whether to have stored the non-linear relation equation after receiving start-up command, if do not have, then execution in step 101; If stored the non-linear relation equation, obtained this equation before showing.Correspondingly, the said current electric quantity percentage that obtains of step 101 comprises: the calling system information interface, obtain current electric quantity percentage from operating system.Operating system provides the open system information interface for operation process above that, and each process can be obtained system information through calling this interface, and system information comprises current electric quantity percentage.
Operating system not only provides the open system information interface, also provides open system to draw interface.The residue charging interval that the 103 said demonstrations of Fig. 1 process step calculate specifically comprises: interface is drawn by charging client call system; Choose the format interface; Generate display interface the remaining time that input calculates in the format interface, on screen, shows the display interface that generates.System draws interface and is used to draw display interface; Draw interface through calling system; Can select the multiple format interface that system provides, and can import different information at the each several part at interface, the remaining time that needs input to calculate among the present invention according to the prompting at format interface.
In order to enrich the demonstration at format interface, also can generate and store a plurality of display interfaces among the present invention, then show the display interface of selecting based on user's needs.Particularly, choose at least two format interfaces, in each format interface input information content, generate the format interface, the information content of input comprises the remaining time that calculates; And, also can be as required add other guide at each format interface, for example, also import current electric quantity percentage, and also import the current time at another format interface at certain format interface, or the like; Generate the corresponding format interface identification storage of each display interface display interface; Then, show the prompting frame of selecting the format interface, receive the selection information of user's input to the user; Said selection information comprises the format interface identification, and the display interface that the format interface identification is corresponding is illustrated on the screen.
The present invention combines the non-linear relation equation, has realized the residue charging interval that accurate demonstration mobile device is current.Moreover, can also be to the charged state of user prompt current mobile device; And,, charging carries out clock alarming when accomplishing, and battery is full of the back as does not extract charging wire, and prompting also can overcharge; Like this, more charge information can be provided, to help charging better.
Referring to Fig. 2, be the system configuration sketch map that the present invention carries out charging process to mobile device, this system comprises that equation generates equipment and mobile device;
Said equation generates equipment, is used to gather historical charging data, and said charging data comprise the charging interval that the electric weight percentage is when corresponding; Obtain non-linear relation equation by the charging data fitting about electric weight percentage variables and charging interval variable;
Said mobile device is used for obtaining the non-linear relation equation from equation generation equipment, and obtains current electric quantity percentage; Obtain remaining the charging interval by current electric quantity percentage and non-linear relation Equation for Calculating; Show the residue charging interval that calculates.
Fig. 3 is the structural representation that equation generates equipment and mobile device in Fig. 2 system, and wherein, mobile device can comprise equation acquiring unit, electric weight acquiring unit, computing unit and electric weight display unit;
Said equation acquiring unit is used for obtaining the non-linear relation equation about charging interval variable and electric weight percentage variables from equation generation equipment, sends computing unit to;
Said electric weight acquiring unit is used to obtain current electric quantity percentage, sends computing unit to;
Said computing unit is used for being obtained remaining the charging interval by current electric quantity percentage and non-linear relation Equation for Calculating, will remain the charging interval to send the electric weight display unit to;
Said electric weight display unit is used to show the residue charging interval that calculates.
Alternatively, said equation generation equipment comprises data acquisition unit and match unit, and said computing unit comprises very first time computation subunit;
Said data acquisition unit is used to gather electric weight percentage P
i, with electric weight from P
iSupplement with money to P
iUsed time of+B is as electric weight percentage P
iCorresponding charging interval T
iWherein B is for setting increment size, and i is a natural number;
Said match unit is used for obtaining non-linear relation equation F (the P)=T about electric weight percentage variables and charging interval variable by the charging data fitting;
Said very first time computation subunit is used for P
1+ kB substitution non-linear relation equation F (P)=T obtains T
kWherein, P
1Be current electric quantity percentage, the k value is 0 to M integer, and P
1+ MB is less than or equal to 100%; With the T that obtains
kSummation:
With S as the residue charging interval.
Alternatively, said equation generation equipment comprises data acquisition unit and match unit, and said computing unit comprises the second Time Calculation subelement;
Said data acquisition unit is used to gather electric weight percentage P
i, with electric weight from P
iSupplement with money to P
iUsed time of+B is as electric weight percentage P
iCorresponding charging interval T
iWherein B is for setting increment size, and i is a natural number;
Said match unit is used for obtaining non-linear relation equation F (the P)=T about electric weight percentage variables and charging interval variable by the charging data fitting;
The said second Time Calculation subelement is used for current electric quantity percentage P
1Supplement with money to P
1The used time representation of+B is T '; With P
1+ kB substitution non-linear relation equation F (P)=T obtains T
kWherein, the k value is 0 to M integer, and P
1+ MB is less than or equal to 100%; With the T that obtains
kSummation:
With T '/T
1As corrected parameter, with S and T '/T
1Multiply each other, with the product that obtains as the residue charging interval.
Alternatively, this mobile device also comprises state conversion unit, is used for obtaining current electric quantity percentage from the electric weight acquiring unit, confirms charged state by current electric quantity percentage, sends charged state to the electric weight display unit; Said charged state comprises quick-charge state, trickle charge state and trickle charge state;
Said electric weight display unit also is used on the screen protection page or leaf, showing charged state.
Alternatively, this mobile device also comprises quarter-bell start unit and quarter-bell unit;
Said quarter-bell start unit is used for obtaining current electric quantity percentage from the electric weight acquiring unit, judges whether current electric quantity percentage equals 100%, if then send enabled instruction to the quarter-bell unit;
Said quarter-bell unit after being used to receive enabled instruction, carries out clock alarming.
Alternatively, said electric weight display unit comprises that generation shows subelement, is used for calling system and draws interface, chooses the format interface, generates display interface the remaining time that input calculates in the format interface, the display interface that displaying generates on screen.
The described system of the embodiment of the invention can realize in hardware, software, firmware or this three's combination in any.If in software, realize, these functions can store with computer-readable media on, or be transmitted on the computer-readable media with one or more instructions or code form.Computer readable medium comprises that the computer storage medium lets computer program transfer to other local communication medium from a place with being convenient to make.Storage medium can be the useable medium that any general or special computer can access.For example; Such computer-readable media can include but not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage device, or other any can be used to carry or store with instruction or data structure and other can be read the media of the program code of form by general or special computers or general or special processor.In addition; Any link can suitably be defined as computer readable medium; Described video disc (disk) and disk (disc) comprise Zip disk, radium-shine dish, CD, DVD, floppy disk and Blu-ray Disc; Disk is usually with the magnetic duplication data, and video disc carries out the optical reproduction data with laser usually.Above-mentioned combination also can be included in the computer readable medium.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.