CN107193779A - Residue charging duration calculation method, terminal and computer-readable recording medium - Google Patents

Residue charging duration calculation method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107193779A
CN107193779A CN201710301004.7A CN201710301004A CN107193779A CN 107193779 A CN107193779 A CN 107193779A CN 201710301004 A CN201710301004 A CN 201710301004A CN 107193779 A CN107193779 A CN 107193779A
Authority
CN
China
Prior art keywords
charging
charge
value
duration
charging duration
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
CN201710301004.7A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710301004.7A priority Critical patent/CN107193779A/en
Publication of CN107193779A publication Critical patent/CN107193779A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/46Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using electromechanical counter-type accumulators
    • G06F7/461Adding; subtracting

Abstract

The invention discloses a kind of remaining charging duration calculation method, terminal and computer-readable recording medium, belong to field of terminal technology.Methods described includes:Corresponding charge data storehouse is pre-established according to charging environment;In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value, and charge data storehouse described in real-time update are calculated;The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.The present invention combines different charging environment, with the remaining charging duration of targetedly calculating, charging duration is refined to each charge value of correspondence, and in each charging, the charging duration of each charge value currently is calculated in real time so that the remaining charging duration calculated is more accurate, is not limited by battery of mobile terminal aging, the limitation for environmental change of charging, allow user precisely to know remaining charging duration, improve Consumer's Experience sense.

Description

Residue charging duration calculation method, terminal and computer-readable recording medium
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of remaining charging duration calculation method, terminal and computer Readable storage medium storing program for executing.
Background technology
With continuing to develop for mobile communication technology, various mobile terminal products emerge in an endless stream, and with it quickly, easily Operation and powerful function excite the strong desire to buy of consumer.User buy mobile phone when except select its fashion and Property profile outside, operate intuitive and convenient, powerful is also essential selection factor.Therefore, it is desirable in numerous competitions Taken the course of its own in product, good Consumer's Experience is very important.
Existing mobile terminal charging display interface is all that single charging progress is shown, or is also only display battery How much percentage filled.This intuitive display is poor, and more often user wishes oneself to can directly be seen that also many Few time is full of, and then goes when plan plugs charge power supply line according to the remaining time.If moved for example, user wants to carry Dynamic terminal is gone out, and there remains that how many electricity are filled or had been filled with how much percentage without one if can only see If accurate remaining time, user is difficult intuitively to plan outgoing time point.In addition, existing many batteries of mobile phone are shown Function can hard requirement user battery electric quantity is exhausted or is completely filled with after could correct display parameters, and this is undoubtedly The use of user is limited, but because a lot of reasons user can not charge fully according to this premise, this is undoubtedly greatly reduced The experience of user.
The content of the invention
It is a primary object of the present invention to propose a kind of remaining charging duration calculation method, terminal and computer-readable storage Medium, it is intended to which solution can calculate remaining charging duration, the problem of improving Consumer's Experience exactly.
To achieve the above object, the remaining charging duration calculation method of one kind that the present invention is provided, methods described includes:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB charges and wireless charging, and the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and Charge data storehouse described in real-time update;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
Further, it is described in charging, according to current charging environment and voltage value, calculate voltage value correspondence Charging duration, and described in real-time update the step of charge data storehouse, including:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current The actual charging duration of charge value;
The corresponding charging duration of voltage value is calculated, and in the charge data storehouse renewal voltage value correspondence Charging duration.
Further, the calculation formula of the corresponding charging duration of the calculating voltage value is:
Wherein, t 'iFor the corresponding charging durations of charge value i, TiFilled for charge value i is corresponding in the charge data storehouse Electric duration, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
Further, the calculation formula of the remaining charging duration is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
In addition, to achieve the above object, the present invention proposes a kind of terminal again, and the terminal installation includes:Memory, processing Device and the computer program that can be run on the memory and on the processor is stored in, the computer program is described Following step is realized during computing device:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB charges and wireless charging, and the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and Charge data storehouse described in real-time update;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
Further, the computer program by the computing device when also realize following step:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current The actual charging duration of charge value;
The corresponding charging duration of voltage value is calculated, and in the charge data storehouse renewal voltage value correspondence Charging duration.
Further, the calculation formula of the corresponding charging duration of the calculating voltage value is:
Wherein, t 'iFor the corresponding charging durations of charge value i, TiFilled for charge value i is corresponding in the charge data storehouse Electric duration, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
Further, the calculation formula of the remaining charging duration is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable Be stored with remaining charging duration calculation program on storage medium, and the remaining charging duration calculation program is real when being executed by processor Existing following steps:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB charges and wireless charging, and the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and Charge data storehouse described in real-time update;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
Further, following steps are also realized when the Ad blocking program is executed by processor:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current The actual charging duration of charge value;
The corresponding charging duration of voltage value is calculated, and in the charge data storehouse renewal voltage value correspondence Charging duration.
Further, the calculation formula of the corresponding charging duration of the calculating voltage value is:
Wherein, t 'iFor the corresponding charging durations of charge value i, TiFilled for charge value i is corresponding in the charge data storehouse Electric duration, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
Further, the calculation formula of the remaining charging duration is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
A kind of remaining charging duration calculation method proposed by the present invention, terminal and computer-readable recording medium, with reference to not With charging environment, with targetedly calculating remaining charging duration, charging duration is refined to each charge value of correspondence, and Every time during charging, the charging duration of each charge value currently is calculated in real time so that the remaining charging duration calculated is more accurate, It is not limited by battery of mobile terminal aging, the limitation for environmental change of charging so that when user can precisely know remaining charging It is long, improve Consumer's Experience sense.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
The method flow diagram for the remaining charging duration calculation method that Fig. 3 provides for first embodiment of the invention;
Fig. 4 is the initial value form of the corresponding charging duration of charge value provided in an embodiment of the present invention;
The method flow diagram for the remaining charging duration calculation method that Fig. 5 provides for second embodiment of the invention;
The schematic diagram for the terminal that Fig. 6 provides for third embodiment of the invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera) Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Reference picture 3, the method flow diagram for the remaining charging duration calculation method that Fig. 3 provides for first embodiment of the invention.
Step S301, corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Electricity Source charging, USB chargings and wireless charging, the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging time Number.
Step S302, in charging, according to current charging environment and voltage value, calculates that voltage value is corresponding to fill Electric duration, and real-time update charge data storehouse.
Step S303, reads the corresponding charging duration of each value to be charged in charge data storehouse, when obtaining remaining charging It is long.
In step S301, mobile terminal is related to different charging environment, above-mentioned charging environment includes in charging: Power source charges, USB chargings and wireless charging, above-mentioned power source charges are charged by charger, under this charging environment The efficiency charged to mobile terminal is charged and wireless charging higher than USB, and above-mentioned USB chargings are connected by USB data line Charged to computer end, above-mentioned wireless charging is charged by wireless charger, this wireless charging is to be different from biography The charge power supply line of system is connected to the charger on the mobile terminal for needing to charge.For different charging environment, to mobile whole End charging duration involved when charging simultaneously is differed, accordingly, it would be desirable to according to charging environment, targetedly set up charge data Storehouse.
In embodiments of the present invention, for above-mentioned different charging environment, corresponding charge data storehouse is set up, including:Electricity Source charge data storehouse, USB charge datas storehouse and wireless charging database.Above-mentioned charge data storehouse includes:Charge value, charge value pair The charging duration and charging times answered;During the corresponding charging of charge value in each charge data storehouse of correspondence, its charge data storehouse Long and charging times may be differed, and specifically, power source charges database includes:During the corresponding charging of charge value, charge value Long and charging times;USB charge datas storehouse includes:The corresponding charging duration of charge value, charge value and charging times;And wireless charging Electric database includes:The corresponding charging duration of charge value, charge value and charging times.Wherein, the span of charge value is 1- 100, respectively correspondingly electricity is from 0%~1% ... 99%~100%;The corresponding charging duration of charge value is expressed as often filling 1% institute Need time, unit is the second, for example, charge value be 14 when, correspondence charge capacity be 13%~14%, be in fully charged value The time needed for 1% electricity when 14, wherein, under each charging environment, the initial value form of the corresponding charging duration of charge value, Referring to Fig. 4, specifically, when charging environment is power source charges, the initial value of the corresponding charging duration of charge value is 72 seconds, charging ring When border is that USB charges, the initial value of the corresponding charging duration of charge value is 72*2 seconds, when charging environment is wireless charging, electricity The initial value of the corresponding charging duration of value is 72*2 second, and charging times are charging times when filling voltage value, with filling The increase of electric number of times, recalculates the corresponding charging duration of a charge value.In primary charging, according to upper in charge data storehouse Calculation of initial value residue charging duration is stated, in charging, with reference to the initial value of the corresponding charging duration of above-mentioned charge value, Yi Jishi Charge duration on border, the corresponding charging duration of charge value during current charging is calculated, to update the data.
In step s 302, in charging, judge current charging environment, can be the input current for obtaining mobile terminal Value, power source charges or USB chargings and wireless charging, as a rule, power source charges can be distinguished according to input current value Input current value is more than the input current value of USB chargings and wireless charging, and USB chargings and wireless charging can be entered with access way Row is distinguished.It is determined that after charging environment, targetedly read the data in corresponding charge data storehouse, working as mobile terminal is read Preceding charge value, voltage value is read in above-mentioned charge data storehouse according to above-mentioned charge value in corresponding above-mentioned charge data storehouse In the corresponding charging duration and corresponding charging times of voltage value, and record the actual charging duration of voltage value, So as to calculate the corresponding charging duration of voltage value, now, the corresponding charging duration of charge value can be accurately anti- Mirror charging duration, the corresponding charging duration of the charge value updated into original charging duration, with ensure data accuracy and It is ageing.
Such as, when charging every time, the environment that charges first is judged, it is assumed that be USB chargings, it is necessary to be charged to from 13% 82%, it is not involved in calculating by 13% time for being charged to 14%, since 14%, the duration that charges can all be recorded by often filling 1%, Calculate after the corresponding charging duration of charge value, be updated in charge data storehouse.
In step S303, the residual electric quantity of mobile terminal is being read, so that each value to be charged is learnt, in charging number According to the corresponding charging duration of each value to be charged is read in storehouse, the corresponding duration that charges of each value to be charged is summed, entered And obtain remaining charging duration.
In embodiments of the present invention, with reference to different charging environment, with remaining charging duration is targetedly calculated, it will fill Electric duration is refined to each charge value of correspondence, and in each charging, the charging duration of each charge value currently is calculated in real time, is made The remaining charging duration that must be calculated is more accurate, is not limited by battery of mobile terminal aging, the limitation for environmental change of charging, Allow user precisely to know remaining charging duration, improve Consumer's Experience sense.
Reference picture 5, the method flow diagram for the remaining charging duration calculation method that Fig. 5 provides for second embodiment of the invention.
Step S501, corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Electricity Source charging, USB chargings and wireless charging, the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging time Number.
Step S502, obtains the corresponding charging duration of voltage value and charging times in corresponding charge data storehouse, And record the actual charging duration of voltage value.
Step S503, calculates the corresponding charging duration of voltage value, and update voltage value pair in charge data storehouse The charging duration answered.
Step S504, reads the corresponding charging duration of each value to be charged in charge data storehouse, when obtaining remaining charging It is long.
In step S501, mobile terminal is related to different charging environment, above-mentioned charging environment includes in charging: Power source charges, USB chargings and wireless charging, above-mentioned power source charges are charged by charger, under this charging environment The efficiency charged to mobile terminal is charged and wireless charging higher than USB, and above-mentioned USB chargings are connected by USB data line Charged to computer end, above-mentioned wireless charging is charged by wireless charger, this wireless charging is to be different from biography The charge power supply line of system is connected to the charger on the mobile terminal for needing to charge.For different charging environment, to mobile whole End charging duration involved when charging simultaneously is differed, accordingly, it would be desirable to according to charging environment, targetedly set up charge data Storehouse.
In embodiments of the present invention, for above-mentioned different charging environment, corresponding charge data storehouse is set up, including:Electricity Source charge data storehouse, USB charge datas storehouse and wireless charging database.Above-mentioned charge data storehouse includes:Charge value, charge value pair The charging duration and charging times answered;During the corresponding charging of charge value in each charge data storehouse of correspondence, its charge data storehouse Long and charging times may be differed, and specifically, power source charges database includes:During the corresponding charging of charge value, charge value Long and charging times;USB charge datas storehouse includes:The corresponding charging duration of charge value, charge value and charging times;And wireless charging Electric database includes:The corresponding charging duration of charge value, charge value and charging times.Wherein, the span of charge value is 1- 100, respectively correspondingly electricity is from 0%~1% ... 99%~100%;The corresponding charging duration of charge value is expressed as often filling 1% institute Need time, unit is the second, for example, charge value be 14 when, correspondence charge capacity be 13%~14%, be in fully charged value The time needed for 1% electricity when 14, wherein, under each charging environment, the initial value form of the corresponding charging duration of charge value, Referring to Fig. 4, specifically, when charging environment is power source charges, the initial value of the corresponding charging duration of charge value is 72 seconds, charging ring When border is that USB charges, the initial value of the corresponding charging duration of charge value is 72*2 seconds, when charging environment is wireless charging, electricity The initial value of the corresponding charging duration of value is 72*2 second, and charging times are charging times when filling voltage value, with filling The increase of electric number of times, recalculates the corresponding charging duration of a charge value.In primary charging, according to upper in charge data storehouse Calculation of initial value residue charging duration is stated, in charging, with reference to the initial value of the corresponding charging duration of above-mentioned charge value, Yi Jishi Charge duration on border, the corresponding charging duration of charge value during current charging is calculated, to update the data.
In step S502, in charging, judge current charging environment, can be the input current for obtaining mobile terminal Value, power source charges or USB chargings and wireless charging, as a rule, power source charges can be distinguished according to input current value Input current value is more than the input current value of USB chargings and wireless charging, and USB chargings and wireless charging can be entered with access way Row is distinguished.It is determined that after charging environment, targetedly read the data in corresponding charge data storehouse, working as mobile terminal is read Preceding charge value, voltage value is read in above-mentioned charge data storehouse according to above-mentioned charge value in corresponding above-mentioned charge data storehouse In the corresponding charging duration and corresponding charging times of voltage value, and record the actual charging duration of voltage value, So as to calculate the corresponding charging duration of voltage value, now, the corresponding charging duration of charge value can be accurately anti- Mirror charging duration, the corresponding charging duration of the charge value updated into original charging duration, with ensure data accuracy and It is ageing.
Such as, when charging every time, the environment that charges first is judged, it is assumed that be USB chargings, it is necessary to be charged to from 13% 82%, it is not involved in calculating by 13% time for being charged to 14%, since 14%, the duration that charges can all be recorded by often filling 1%, Calculate after the corresponding charging duration of charge value, be updated in charge data storehouse.
In step S503, the calculation formula for calculating the corresponding charging duration of voltage value is:
Wherein, t 'iFor the corresponding charging durations of charge value i, TiFilled for charge value i is corresponding in the charge data storehouse Electric duration, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
In step S504, the residual electric quantity of mobile terminal is being read, so that each value to be charged is learnt, in charging number According to the corresponding charging duration of each value to be charged is read in storehouse, the corresponding duration that charges of each value to be charged is summed, entered And obtain remaining charging duration.
Further, the calculation formula of remaining charging duration is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
In embodiments of the present invention, with reference to different charging environment, with remaining charging duration is targetedly calculated, it will fill Electric duration is refined to each charge value of correspondence, and in each charging, the charging duration of each charge value currently is calculated in real time, is made The remaining charging duration that must be calculated is more accurate, is not limited by battery of mobile terminal aging, the limitation for environmental change of charging, Allow user precisely to know remaining charging duration, improve Consumer's Experience sense.
A kind of terminal provided with reference to Fig. 6, third embodiment of the invention, the terminal 60 includes:Memory 610, processor 620 and it is stored in the computer program 630 that can be run on memory 610 and on processor 620, above computer program 630 Following step is realized when being performed by above-mentioned processor 620:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB Charging and wireless charging, the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and Charge data storehouse described in real-time update;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
In embodiments of the present invention, mobile terminal is related to different charging environment, above-mentioned charging environment bag in charging Include:Power source charges, USB chargings and wireless charging, above-mentioned power source charges are charged by charger, in this charging environment Under the efficiency that is charged to mobile terminal charged higher than USB and wireless charging, above-mentioned USB chargings are connected by USB data line It is connected to computer end to be charged, above-mentioned wireless charging is charged by wireless charger, this wireless charging is to be different from Traditional charge power supply line is connected to the charger on the mobile terminal for needing to charge.For different charging environment, to movement Involved charging duration and differed during terminal charge, accordingly, it would be desirable to according to charging environment, targetedly set up charging number According to storehouse.
In embodiments of the present invention, for above-mentioned different charging environment, corresponding charge data storehouse is set up, including:Electricity Source charge data storehouse, USB charge datas storehouse and wireless charging database.Above-mentioned charge data storehouse includes:Charge value, charge value pair The charging duration and charging times answered;During the corresponding charging of charge value in each charge data storehouse of correspondence, its charge data storehouse Long and charging times may be differed, and specifically, power source charges database includes:During the corresponding charging of charge value, charge value Long and charging times;USB charge datas storehouse includes:The corresponding charging duration of charge value, charge value and charging times;And wireless charging Electric database includes:The corresponding charging duration of charge value, charge value and charging times.Wherein, the span of charge value is 1- 100, respectively correspondingly electricity is from 0%~1% ... 99%~100%;The corresponding charging duration of charge value is expressed as often filling 1% institute Need time, unit is the second, for example, charge value be 14 when, correspondence charge capacity be 13%~14%, be in fully charged value The time needed for 1% electricity when 14, wherein, under each charging environment, the initial value form of the corresponding charging duration of charge value, Referring to Fig. 4, specifically, when charging environment is power source charges, the initial value of the corresponding charging duration of charge value is 72 seconds, charging ring When border is that USB charges, the initial value of the corresponding charging duration of charge value is 72*2 seconds, when charging environment is wireless charging, electricity The initial value of the corresponding charging duration of value is 72*2 second, and charging times are charging times when filling voltage value, with filling The increase of electric number of times, recalculates the corresponding charging duration of a charge value.In primary charging, according to upper in charge data storehouse Calculation of initial value residue charging duration is stated, in charging, with reference to the initial value of the corresponding charging duration of above-mentioned charge value, Yi Jishi Charge duration on border, the corresponding charging duration of charge value during current charging is calculated, to update the data.
In embodiments of the present invention, in charging, judge current charging environment, can be the input electricity for obtaining mobile terminal Flow valuve, power source charges or USB chargings and wireless charging, as a rule, power source charges can be distinguished according to input current value Input current value be more than USB charge and wireless charging input current value, and USB charging and wireless charging can be with access way Make a distinction.It is determined that after charging environment, targetedly read the data in corresponding charge data storehouse, mobile terminal is read Voltage value, voltage value is read in above-mentioned charge data according to above-mentioned charge value in corresponding above-mentioned charge data storehouse Corresponding charging duration and the corresponding charging times of voltage value in storehouse, and when recording the actual charging of voltage value Long, so as to calculate the corresponding charging duration of voltage value, now, the corresponding charging duration of charge value can be accurate Reflect charging duration, the corresponding charging duration of the charge value is updated into original charging duration, to ensure the accuracy of data And it is ageing.
Such as, when charging every time, the environment that charges first is judged, it is assumed that be USB chargings, it is necessary to be charged to from 13% 82%, it is not involved in calculating by 13% time for being charged to 14%, since 14%, the duration that charges can all be recorded by often filling 1%, Calculate after the corresponding charging duration of charge value, be updated in charge data storehouse.
In embodiments of the present invention, the residual electric quantity of mobile terminal is being read, so as to learn each value to be charged, filled The corresponding charging duration of each value to be charged is read in electric database, the corresponding duration that charges of each value to be charged is asked With, and then obtain remaining charging duration.
In embodiments of the present invention, with reference to different charging environment, with remaining charging duration is targetedly calculated, it will fill Electric duration is refined to each charge value of correspondence, and in each charging, the charging duration of each charge value currently is calculated in real time, is made The remaining charging duration that must be calculated is more accurate, is not limited by battery of mobile terminal aging, the limitation for environmental change of charging, Allow user precisely to know remaining charging duration, improve Consumer's Experience sense.
Further, in charging, according to current charging environment and voltage value, calculate that voltage value is corresponding to fill Electric duration, and described in real-time update the step of charge data storehouse, including:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current The actual charging duration of charge value;
The corresponding charging duration of voltage value is calculated, and in the corresponding charging of charge data storehouse renewal voltage value It is long.
Specifically, the calculation formula of the corresponding charging duration of calculating voltage value is:
Wherein, t 'iFor the corresponding charging durations of charge value i, TiFilled for charge value i is corresponding in the charge data storehouse Electric duration, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
Further, the calculation formula of remaining charging duration is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
Deposited on a kind of computer-readable recording medium that fourth embodiment of the invention is provided, the computer-readable recording medium Remaining charging duration calculation program is contained, residue charging duration calculation program realizes following steps when being executed by processor:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB Charging and wireless charging, the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and Charge data storehouse described in real-time update;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
In embodiments of the present invention, mobile terminal is related to different charging environment, above-mentioned charging environment bag in charging Include:Power source charges, USB chargings and wireless charging, above-mentioned power source charges are charged by charger, in this charging environment Under the efficiency that is charged to mobile terminal charged higher than USB and wireless charging, above-mentioned USB chargings are connected by USB data line It is connected to computer end to be charged, above-mentioned wireless charging is charged by wireless charger, this wireless charging is to be different from Traditional charge power supply line is connected to the charger on the mobile terminal for needing to charge.For different charging environment, to movement Involved charging duration and differed during terminal charge, accordingly, it would be desirable to according to charging environment, targetedly set up charging number According to storehouse.
In embodiments of the present invention, for above-mentioned different charging environment, corresponding charge data storehouse is set up, including:Electricity Source charge data storehouse, USB charge datas storehouse and wireless charging database.Above-mentioned charge data storehouse includes:Charge value, charge value pair The charging duration and charging times answered;During the corresponding charging of charge value in each charge data storehouse of correspondence, its charge data storehouse Long and charging times may be differed, and specifically, power source charges database includes:During the corresponding charging of charge value, charge value Long and charging times;USB charge datas storehouse includes:The corresponding charging duration of charge value, charge value and charging times;And wireless charging Electric database includes:The corresponding charging duration of charge value, charge value and charging times.Wherein, the span of charge value is 1- 100, respectively correspondingly electricity is from 0%~1% ... 99%~100%;The corresponding charging duration of charge value is expressed as often filling 1% institute Need time, unit is the second, for example, charge value be 14 when, correspondence charge capacity be 13%~14%, be in fully charged value The time needed for 1% electricity when 14, wherein, under each charging environment, the initial value form of the corresponding charging duration of charge value, Referring to Fig. 4, specifically, when charging environment is power source charges, the initial value of the corresponding charging duration of charge value is 72 seconds, charging ring When border is that USB charges, the initial value of the corresponding charging duration of charge value is 72*2 seconds, when charging environment is wireless charging, electricity The initial value of the corresponding charging duration of value is 72*2 second, and charging times are charging times when filling voltage value, with filling The increase of electric number of times, recalculates the corresponding charging duration of a charge value.In primary charging, according to upper in charge data storehouse Calculation of initial value residue charging duration is stated, in charging, with reference to the initial value of the corresponding charging duration of above-mentioned charge value, Yi Jishi Charge duration on border, the corresponding charging duration of charge value during current charging is calculated, to update the data.
In embodiments of the present invention, in charging, judge current charging environment, can be the input electricity for obtaining mobile terminal Flow valuve, power source charges or USB chargings and wireless charging, as a rule, power source charges can be distinguished according to input current value Input current value be more than USB charge and wireless charging input current value, and USB charging and wireless charging can be with access way Make a distinction.It is determined that after charging environment, targetedly read the data in corresponding charge data storehouse, mobile terminal is read Voltage value, voltage value is read in above-mentioned charge data according to above-mentioned charge value in corresponding above-mentioned charge data storehouse Corresponding charging duration and the corresponding charging times of voltage value in storehouse, and when recording the actual charging of voltage value Long, so as to calculate the corresponding charging duration of voltage value, now, the corresponding charging duration of charge value can be accurate Reflect charging duration, the corresponding charging duration of the charge value is updated into original charging duration, to ensure the accuracy of data And it is ageing.
Such as, when charging every time, the environment that charges first is judged, it is assumed that be USB chargings, it is necessary to be charged to from 13% 82%, it is not involved in calculating by 13% time for being charged to 14%, since 14%, the duration that charges can all be recorded by often filling 1%, Calculate after the corresponding charging duration of charge value, be updated in charge data storehouse.
In embodiments of the present invention, the residual electric quantity of mobile terminal is being read, so as to learn each value to be charged, filled The corresponding charging duration of each value to be charged is read in electric database, the corresponding duration that charges of each value to be charged is asked With, and then obtain remaining charging duration.
In embodiments of the present invention, with reference to different charging environment, with remaining charging duration is targetedly calculated, it will fill Electric duration is refined to each charge value of correspondence, and in each charging, the charging duration of each charge value currently is calculated in real time, is made The remaining charging duration that must be calculated is more accurate, is not limited by battery of mobile terminal aging, the limitation for environmental change of charging, Allow user precisely to know remaining charging duration, improve Consumer's Experience sense.
Further, in charging, according to current charging environment and voltage value, calculate that voltage value is corresponding to fill Electric duration, and described in real-time update the step of charge data storehouse, including:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current The actual charging duration of charge value;
The corresponding charging duration of voltage value is calculated, and in the corresponding charging of charge data storehouse renewal voltage value It is long.
Specifically, the calculation formula of the corresponding charging duration of calculating voltage value is:
Wherein, t 'iFor the corresponding charging durations of charge value i, TiFilled for charge value i is corresponding in the charge data storehouse Electric duration, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
Further, the calculation formula of remaining charging duration is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of remaining charging duration calculation method, it is characterised in that methods described includes step:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB fill Electricity and wireless charging, the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and in real time Update the charge data storehouse;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
2. remaining charging duration calculation method according to claim 1, it is characterised in that described in charging, according to working as Preceding charging environment and voltage value, calculate the corresponding charging duration of voltage value, and charge data storehouse described in real-time update The step of, including:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current electric quantity The actual charging duration of value;
The corresponding charging duration of voltage value is calculated, and updates in the charge data storehouse that the voltage value is corresponding to fill Electric duration.
3. remaining charging duration calculation method according to claim 1, it is characterised in that the calculating voltage value pair The calculation formula for the charging duration answered is:
<mrow> <msubsup> <mi>t</mi> <mi>i</mi> <mo>&amp;prime;</mo> </msubsup> <mo>=</mo> <mfrac> <mrow> <msub> <mi>T</mi> <mi>i</mi> </msub> <mo>&amp;times;</mo> <msub> <mi>N</mi> <mi>i</mi> </msub> <mo>+</mo> <msub> <mi>t</mi> <mi>i</mi> </msub> </mrow> <mrow> <msub> <mi>N</mi> <mi>i</mi> </msub> <mo>+</mo> <mn>1</mn> </mrow> </mfrac> </mrow>
Wherein, t 'iFor the corresponding charging durations of charge value i, TiIt is charge value i in the charge data storehouse during corresponding charging It is long, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
4. remaining charging duration calculation method according to claim 1, it is characterised in that the meter of the remaining charging duration Calculating formula is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
5. a kind of terminal, it is characterised in that the terminal installation includes:Memory, processor and it is stored on the memory And the computer program that can be run on the processor, following steps are realized when the computer program is by the computing device Suddenly:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB fill Electricity and wireless charging, the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and in real time Update the charge data storehouse;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
6. remaining charging duration calculation device according to claim 5, it is characterised in that the computer program is described Following step is also realized during computing device:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current electric quantity The actual charging duration of value;
The corresponding charging duration of voltage value is calculated, and updates in the charge data storehouse that the voltage value is corresponding to fill Electric duration.
7. remaining charging duration calculation device according to claim 5, it is characterised in that the calculating voltage value It is corresponding charging duration calculation formula be:
<mrow> <msubsup> <mi>t</mi> <mi>i</mi> <mo>&amp;prime;</mo> </msubsup> <mo>=</mo> <mfrac> <mrow> <msub> <mi>T</mi> <mi>i</mi> </msub> <mo>&amp;times;</mo> <msub> <mi>N</mi> <mi>i</mi> </msub> <mo>+</mo> <msub> <mi>t</mi> <mi>i</mi> </msub> </mrow> <mrow> <msub> <mi>N</mi> <mi>i</mi> </msub> <mo>+</mo> <mn>1</mn> </mrow> </mfrac> </mrow>
Wherein, t 'iFor the corresponding charging durations of charge value i, TiIt is charge value i in the charge data storehouse during corresponding charging It is long, NiFor the corresponding charging times of charge value i, tiFor charge value i actual charging duration.
8. remaining charging duration calculation device according to claim 5, it is characterised in that the remaining charging duration Calculation formula is:
Wherein, TneedFor residue charging duration, TiFor charge value i in the charge data storehouse corresponding charging duration.
9. a kind of computer-readable recording medium, it is characterised in that the residue that is stored with the computer-readable recording medium is filled Electric duration calculation program, the remaining charging duration calculation program realizes following steps when being executed by processor:
Corresponding charge data storehouse is pre-established according to charging environment, wherein, the charging environment includes:Power source charges, USB fill Electricity and wireless charging, the charge data storehouse includes:The corresponding charging duration of charge value, charge value and charging times;
In charging, according to current charging environment and voltage value, the corresponding charging duration of voltage value is calculated, and in real time Update the charge data storehouse;
The corresponding charging duration of each value to be charged is read in charge data storehouse, remaining charging duration is obtained.
10. computer-readable recording medium according to claim 9, it is characterised in that the Ad blocking program is located Reason device also realizes following steps when performing:
The corresponding charging duration of voltage value and charging times are obtained in corresponding charge data storehouse, and record current electric quantity The actual charging duration of value;
The corresponding charging duration of voltage value is calculated, and updates in the charge data storehouse that the voltage value is corresponding to fill Electric duration.
CN201710301004.7A 2017-05-02 2017-05-02 Residue charging duration calculation method, terminal and computer-readable recording medium Pending CN107193779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710301004.7A CN107193779A (en) 2017-05-02 2017-05-02 Residue charging duration calculation method, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710301004.7A CN107193779A (en) 2017-05-02 2017-05-02 Residue charging duration calculation method, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107193779A true CN107193779A (en) 2017-09-22

Family

ID=59873199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710301004.7A Pending CN107193779A (en) 2017-05-02 2017-05-02 Residue charging duration calculation method, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107193779A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108649644A (en) * 2018-05-31 2018-10-12 出门问问信息科技有限公司 A kind of smartwatch charging unit and charging method
CN108932048A (en) * 2018-06-11 2018-12-04 Oppo(重庆)智能科技有限公司 Determine the method and Related product of battery available duration
CN109982066A (en) * 2017-12-27 2019-07-05 浙江宇视科技有限公司 Diagnose particle calculation method, device and readable storage medium storing program for executing
CN110109024A (en) * 2019-05-15 2019-08-09 广州小鹏汽车科技有限公司 The prediction technique of battery charge time, device, battery management system
CN111257752A (en) * 2018-11-30 2020-06-09 宁德时代新能源科技股份有限公司 Remaining charge time estimation method, apparatus, system, and storage medium
CN112202959A (en) * 2020-09-25 2021-01-08 努比亚技术有限公司 Electric quantity information processing method, electronic equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181087A1 (en) * 2012-12-07 2014-06-26 Lithium Technologies, Inc. Device, Method and User Interface for Determining a Correlation between a Received Sequence of Numbers and Data that Corresponds to Metrics
CN103902005A (en) * 2014-03-25 2014-07-02 可牛网络技术(北京)有限公司 Battery charging management method, battery charging management device and mobile device
CN103926537A (en) * 2014-04-08 2014-07-16 可牛网络技术(北京)有限公司 Obtaining method of electric quantity information and electronic equipment
KR101576165B1 (en) * 2014-09-04 2015-12-09 주식회사 마이쿤 Method for searching battery charge places

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181087A1 (en) * 2012-12-07 2014-06-26 Lithium Technologies, Inc. Device, Method and User Interface for Determining a Correlation between a Received Sequence of Numbers and Data that Corresponds to Metrics
CN103902005A (en) * 2014-03-25 2014-07-02 可牛网络技术(北京)有限公司 Battery charging management method, battery charging management device and mobile device
CN103926537A (en) * 2014-04-08 2014-07-16 可牛网络技术(北京)有限公司 Obtaining method of electric quantity information and electronic equipment
KR101576165B1 (en) * 2014-09-04 2015-12-09 주식회사 마이쿤 Method for searching battery charge places

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109982066A (en) * 2017-12-27 2019-07-05 浙江宇视科技有限公司 Diagnose particle calculation method, device and readable storage medium storing program for executing
CN109982066B (en) * 2017-12-27 2021-02-02 浙江宇视科技有限公司 Diagnostic particle calculation method, device and readable storage medium
CN108649644A (en) * 2018-05-31 2018-10-12 出门问问信息科技有限公司 A kind of smartwatch charging unit and charging method
CN108932048A (en) * 2018-06-11 2018-12-04 Oppo(重庆)智能科技有限公司 Determine the method and Related product of battery available duration
CN111257752A (en) * 2018-11-30 2020-06-09 宁德时代新能源科技股份有限公司 Remaining charge time estimation method, apparatus, system, and storage medium
CN111257752B (en) * 2018-11-30 2021-02-26 宁德时代新能源科技股份有限公司 Remaining charge time estimation method, apparatus, system, and storage medium
US11269011B2 (en) 2018-11-30 2022-03-08 Contemporary Amperex Technology Co., Limited Method, device, system for estimating remaining charging time and storage medium
CN110109024A (en) * 2019-05-15 2019-08-09 广州小鹏汽车科技有限公司 The prediction technique of battery charge time, device, battery management system
CN110109024B (en) * 2019-05-15 2021-12-07 广州小鹏汽车科技有限公司 Method and device for predicting battery charging time and battery management system
CN112202959A (en) * 2020-09-25 2021-01-08 努比亚技术有限公司 Electric quantity information processing method, electronic equipment and computer storage medium
CN112202959B (en) * 2020-09-25 2022-05-27 努比亚技术有限公司 Electric quantity information processing method, electronic equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN107277216A (en) A kind of volume adjusting method, terminal and computer-readable recording medium
CN107133092A (en) Multi-thread synchronization processing method, terminal and computer-readable recording medium
CN107193779A (en) Residue charging duration calculation method, terminal and computer-readable recording medium
CN107517494A (en) A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN107425888A (en) Multi-input/output antenna, mobile terminal and antenna switching method
CN107436779A (en) A kind of application management method, equipment and computer-readable recording medium
CN107463481A (en) Data interactive method, mobile terminal and storage medium
CN107895561A (en) Method, terminal and the computer-readable recording medium of a kind of intelligent bright screen and the screen that goes out
CN107566635A (en) Screen intensity method to set up, mobile terminal and computer-readable recording medium
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107528369A (en) Terminal and its wireless charging control method, computer-readable recording medium
CN107314774A (en) A kind of digital map navigation method, equipment and computer-readable recording medium
CN107844333A (en) One kind applies method for cleaning, mobile terminal and computer-readable recording medium
CN107333324A (en) A kind of network selecting method, equipment and computer-readable recording medium
CN107182097A (en) A kind of method for switching network, terminal and computer-readable recording medium
CN106953684A (en) A kind of method for searching star, mobile terminal and computer-readable recording medium
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN106953989A (en) Incoming call reminding method and device, terminal, computer-readable recording medium
CN107315515A (en) Color change method, terminal and the computer-readable recording medium of status bar icon
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107315673A (en) Power consumption monitoring method, mobile terminal and computer-readable recording medium
CN107067842A (en) Colour method of adjustment, mobile terminal and storage medium
CN107566605A (en) A kind of interactive interface processing method, equipment and computer-readable recording medium
CN107506163A (en) Adjust method, terminal and the computer-readable recording medium of screen display
CN107124513A (en) Breath screen method, mobile terminal and computer-readable recording medium under talking state

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922