CN105842632A - Data processing method and apparatus - Google Patents
Data processing method and apparatus Download PDFInfo
- Publication number
- CN105842632A CN105842632A CN201610350213.6A CN201610350213A CN105842632A CN 105842632 A CN105842632 A CN 105842632A CN 201610350213 A CN201610350213 A CN 201610350213A CN 105842632 A CN105842632 A CN 105842632A
- Authority
- CN
- China
- Prior art keywords
- electric quantity
- quantity data
- electricity
- data
- battery
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000007599 discharging Methods 0.000 claims abstract description 67
- 238000000034 method Methods 0.000 claims abstract description 44
- 230000005611 electricity Effects 0.000 claims description 154
- 238000012545 processing Methods 0.000 claims description 24
- 230000008569 process Effects 0.000 abstract description 19
- 230000002265 prevention Effects 0.000 abstract 1
- 230000008859 change Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 230000010354 integration Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 239000003795 chemical substances by application Substances 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000010420 art technique Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000011469 building brick Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/382—Arrangements for monitoring battery or accumulator variables, e.g. SoC
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The disclosure relates to a data processing method and apparatus. The method comprises: when electrification of a system is detected, first electric quantity data stored in advance are read, wherein the first electric quantity data have a power-down losing prevention characteristic; and the first electric quantity data are written into a preset voltameter, so that the voltameter calibrates an electric quantity value according to the first electric quantity data. According to the technical scheme, during electrification of the system, the first quantity data are read and are written into a preset register again; and thus during the charging and discharging process of current equipment, electric quantity calibration can be carried out according to the correct first electric quantity data and a pre-stored electric quantity display algorithm and then a proper electric quantity display value is displayed, so that the equipment usage experience of the user is improved.
Description
Technical field
It relates to technical field of data processing, particularly relate to data processing method and device.
Background technology
In the related, can charge-discharge battery use process can along with the increase of charge and discharge cycles number of times,
Capacity is gradually lowered, and after the electronic equipment caused to solve this situation uses for a long time, electricity shows
Inaccurate, electricity display algorithm can be entered by equipment by monitoring the charging-discharging cycle of its battery used
Row supplements, but electronic equipment be likely to occur in actual use power down (such as running down of battery or
Battery roll) and cause the parameters such as the charging-discharging cycle of storage to be lost so that final electricity show value is not
Accurately, Consumer's Experience is bad.
Summary of the invention
Disclosure embodiment provides data processing method and device.Described technical scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of data processing method, including:
When system electrification being detected, read the first electric quantity data of pre-stored, described first electric quantity data
There is power down and do not lose characteristic;
Described first electric quantity data write is preset in coulant meter, so that described default coulant meter is according to described
First electric quantity data calibration electricity.
In one embodiment, described by described first electric quantity data write described default coulant meter include:
Read the second electric quantity data in the default register in described default coulant meter;
Judge that described first electric quantity data is the most identical with described second electric quantity data;
When described first electric quantity data and described second electric quantity data differ, by described first electricity number
According to writing in described default register.
In one embodiment, described method also includes:
Described first electric quantity data is being write after described default register, when described second electric quantity data more
Time new, read the second electric quantity data after the renewal of described default register record;
The second electric quantity data after described renewal is used to replace the first electric quantity data of described pre-stored.
In one embodiment, described method also includes:
After described first electric quantity data is write described default register, start timing;
When timing reaches preset duration, read the 3rd electricity after the renewal of described default register record
Data;
Described 3rd electric quantity data is used to replace the first electric quantity data of described pre-stored.
In one embodiment, described first electric quantity data includes: adding up of the battery that current device is corresponding
Charging-discharging cycle number, and
In the first read only memory in described default coulant meter, storage has accumulative charging-discharging cycle number and electricity
Default corresponding relation between amount parameter, wherein,
Described electrical parameter includes: the battery capacity of described battery, charge volume and electricity show value, or
Described electrical parameter includes: the battery capacity of described battery, discharge capacity and electricity show value.
In one embodiment, described write by described first electric quantity data is preset in coulant meter, so that institute
State default coulant meter and calibrate electricity according to described first electric quantity data, including:
Described first electric quantity data is being write after described default register or described first electric quantity data
Time identical with described second electric quantity data, statistics target electrical parameter and current accumulative charging-discharging cycle number;
According to described target electrical parameter, described current accumulative charging-discharging cycle number and described default correspondence
Relation, determines current electric quantity show value, wherein,
Described target electrical parameter includes: at least one in present battery capacity, current charge volume, institute
State target charge value to include: at least one in present battery capacity, present discharge amount.An enforcement
In example, described first electric quantity data is pre-stored in the second read only memory built-in in described battery.
Second aspect according to disclosure embodiment, it is provided that a kind of data processing equipment, including:
First read module, for when system electrification being detected, reads the first electric quantity data of pre-stored,
Described first electric quantity data has power down and does not lose characteristic;
Processing module, for described first electric quantity data write being preset in coulant meter, presets so that described
Coulant meter is according to described first electric quantity data calibration electricity.
In one embodiment, described processing module includes:
Reading submodule, for reading the second electricity number in the default register in described default coulant meter
According to;
Judge submodule, be used for judging that described first electric quantity data is the most identical with described second electric quantity data;
Write submodule, is used for when described first electric quantity data and described second electric quantity data differ,
Described first electric quantity data is write in described default register.
In one embodiment, described device also includes:
Second read module, is used for after described first electric quantity data is write described default register, when
When described second electric quantity data updates, read the second electricity number after the renewal of described default register record
According to;
First replacement module, the second electric quantity data after using described renewal replaces described pre-stored
First electric quantity data.
In one embodiment, described device also includes:
Start module, for, after described first electric quantity data is write described default register, starting meter
Time;
Third reading delivery block, for when timing reaches preset duration, reads described default register record
Renewal after the 3rd electric quantity data;
Second replacement module, for using described 3rd electric quantity data to replace the first electricity of described pre-stored
Data.
In one embodiment, described first electric quantity data includes: adding up of the battery that current device is corresponding
Charging-discharging cycle number, and
In the first read only memory in described default coulant meter, storage has accumulative charging-discharging cycle number and electricity
Default corresponding relation between amount parameter, wherein,
Described electrical parameter includes: the battery capacity of described battery, charge volume and electricity show value, or
Described electrical parameter includes: the battery capacity of described battery, discharge capacity and electricity show value.
In one embodiment, described processing module includes:
Statistics submodule, for will described first electric quantity data write described default register after or
When described first electric quantity data is identical with described second electric quantity data, statistics target electrical parameter is tired with current
Meter charging-discharging cycle number;
Determine submodule, for according to described target electrical parameter, described current accumulative charging-discharging cycle number
Mesh and described default corresponding relation, determine current electric quantity show value, wherein,
Described target electrical parameter includes: at least one in present battery capacity, current charge volume, institute
State target charge value to include: at least one in present battery capacity, present discharge amount.
In one embodiment, described first electric quantity data is pre-stored in built-in in described battery second
Read in memorizer.
The third aspect according to disclosure embodiment, it is provided that a kind of data processing equipment, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When system electrification being detected, read the first electric quantity data of pre-stored, described first electric quantity data
There is power down and do not lose characteristic;
Described first electric quantity data write is preset in coulant meter, so that described default coulant meter is according to described
First electric quantity data calibration electricity.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
The technical scheme of offer is provided, when system electrification, the first electricity number can be read
According to, and the first electric quantity data is re-write in this default register, in order to current device is in discharge and recharge
During, it is possible to according to the electricity display algorithm of the first correct electric quantity data and pre-stored, electricity is carried out
Calibration, demonstrates suitable electricity show value, thus improves the equipment experience of user.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe
, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet these public affairs
The embodiment opened, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart according to a kind of data processing method shown in an exemplary embodiment.
Fig. 2 is the flow chart according to the another kind of data processing method shown in an exemplary embodiment.
Fig. 3 is the flow chart according to another data processing method shown in an exemplary embodiment one.
Fig. 4 is the flow chart according to another data processing method shown in an exemplary embodiment one.
Fig. 5 is the flow chart according to another data processing method shown in an exemplary embodiment one.
Fig. 6 is the block diagram according to a kind of data processing equipment shown in an exemplary embodiment.
Fig. 7 is the block diagram according to the another kind of data processing equipment shown in an exemplary embodiment.
Fig. 8 is the block diagram according to another data processing equipment shown in an exemplary embodiment.
Fig. 9 is the block diagram according to another data processing equipment shown in an exemplary embodiment.
Figure 10 is the block diagram according to another data processing equipment shown in an exemplary embodiment.
Figure 11 is according to the block diagram being applicable to data processing equipment shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches
Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous and wants
Element.Embodiment described in following exemplary embodiment does not represent own consistent with the disclosure
Embodiment.On the contrary, they only with as appended claims describes in detail, the disclosure some
The example of the apparatus and method that aspect is consistent.
In the related, can charge-discharge battery use process can along with the increase of charge and discharge cycles number of times,
Capacity is gradually lowered, and after the electronic equipment caused to solve this situation uses for a long time, electricity shows
Inaccurate, electricity display algorithm can be entered by equipment by monitoring the charging-discharging cycle of its battery used
Row supplements, but electronic equipment be likely to occur in actual use power down (such as running down of battery or
Battery roll) and cause the parameters such as the charging-discharging cycle of storage to be lost so that final electricity show value is not
Accurately, Consumer's Experience is bad.
In order to solve above-mentioned technical problem, disclosure embodiment provides a kind of data processing method, the method
Can be used in data processor, system or device, and executive agent corresponding to the method can be to use
Can any terminal of charge-discharge battery, as it is shown in figure 1, the method comprising the steps of S101 is to step S102:
In step S101, when system electrification being detected, read the first electric quantity data of pre-stored,
First electric quantity data has power down and does not lose characteristic;
Wherein, system refers to the operating system of executive agent, and system electrification refers to executive agent and carries out
Start shooting, the operation such as restart, and this first electric quantity data is system because change battery, dismounting battery or
Before the reason generation power down such as person's running down of battery pre-stored up-to-date, be available for this current device and combine and prestore
The electricity show value algorithm of storage calculates the data of correct electricity show value, and this first electric quantity data exists
During system power failure, can't lose, there is power down not lose characteristic, additionally, this first electric quantity data can
During to be system electrification, the up-to-date accumulative charging-discharging cycle number of the battery used;
Further, since all it may be found that be pre-stored in current device should be with every time when system powers on
These corresponding data of the first electric quantity data probably due to power down and lose, and this first electric quantity data has
Electricity does not lose characteristic, can't lose because of power down, so, when system powers on every time, it is required to
Automatically the first electric quantity data of pre-stored is read.
In step s 102, the first electric quantity data write is preset in coulant meter, so that presetting coulant meter
According to the first electric quantity data calibration electricity, calibration electricity represents according to the first up-to-date electric quantity data and prestores
The electricity display algorithm of storage demonstrates suitable electricity show value.
In order to prevent showing inappropriate owing to current device cannot read the first correct electric quantity data
Electricity show value, and then affect the experience of user, the first electric quantity data can be re-write this pre-
If in coulant meter, in order to current device is in charge and discharge process, and default coulant meter can be according to correct
The electricity display algorithm of the first electric quantity data and pre-stored can show that when calibrating electricity suitably
Electricity show value, thus improve the equipment experience of user.
As in figure 2 it is shown, in one embodiment, above-mentioned steps S102 in Fig. 1 can be performed as:
In step A1, read the second electric quantity data in the default register preset in coulant meter;
Owing to when not there is power down Loss in the second electric quantity data in default register, should
Identical with the first electric quantity data, and in dead battery or change that battery etc. is various does not has power supply to supply
In the case of, can reset, cause pre-stored should be identical with the first electric quantity data the second electric quantity data
Lose, and this first electric quantity data differing, thus, after system electrification, need to read and preset
This second electric quantity data in depositor, in order to confirm this first electric quantity data and the second electricity number afterwards
According to the most identical.
In step A2, it is judged that the first electric quantity data and the second electric quantity data are the most identical;
The most identical by judging this first electric quantity data and the second electric quantity data, it can be determined that this is preset and posts
Whether storage occurs resetting.
In step A3, when the first electric quantity data and the second electric quantity data differ, by the first electricity
In data write default register.
When this first electric quantity data and this second electric quantity data differ, basis in this default register is described
Second electric quantity data identical with the first electric quantity data should be stored probably due to dismantle battery or battery
Electricity exhausts and occurs in that power down is lost or do not has and the first electric quantity data phase owing to changing battery
The second same electric quantity data, thus, in order to prevent owing to current device cannot read the first correct electricity
Measure data and show inappropriate electricity show value, and then affect the experience of user, can be by first
Electric quantity data re-writes in this default register as the second electric quantity data, in order to current device is filling
In discharge process, it is possible to demonstrate according to the electricity display algorithm of the first correct electric quantity data and pre-stored
Suitably electricity show value, calibrates electricity, thus improves the equipment experience of user.
In addition, it is necessary to explanation:
Owing to the electric quantity data in the default register in default coulant meter is all the second electric quantity data, thus
The first electric quantity data in write default register is also referred to as the second electric quantity data by the disclosure, correspondingly,
In other embodiments, after the second electric quantity data in default register updates, by default register
Data be referred to as update after the second electric quantity data or the 3rd electric quantity data;
When this default register resets because not having power supply supply, lost should be with the first electric quantity data
After the second identical electric quantity data, the second electric quantity data after it resets can be default value, such as 0,1
Or sky etc., and default value is specially how many, can freely arrange, and in order to guarantee this first electricity
Amount data can be by this default register of correct and complete write, and this default register can be that N position is posted
Storage, and the battery that the value of N and the service life of this current device or this current device are used
Service life is directly proportional.
As it is shown on figure 3, in one embodiment, said method may also include that
In step S301, after by the first electric quantity data write default register, when the second electricity number
According to when updating, read the second electric quantity data after the renewal of default register record;
In step s 302, the second electric quantity data after updating is used to replace the first electricity number of pre-stored
According to, the first electric quantity data using the second electric quantity data after updating to replace pre-stored represents the first electricity
Data are updated to the second electric quantity data after updating, to be updated this first electric quantity data.
After the first electric quantity data is write this default register, first it is stated that in this default register
The second electric quantity data be the first electric quantity data up-to-date before system power failure, and system electrification it
After, may be charged or electric discharge etc. operates so that the first electric quantity data is (such as accumulative discharge and recharge week
Issue mesh) it is continuously increased, thus, when this second electric quantity data updates, all can preset from this and deposit
Device reads the second electric quantity data after updating, and then uses the second electric quantity data replacement after updating to prestore
First electric quantity data of storage, to be updated this first electric quantity data so that the first electricity of pre-stored
Data are always the up-to-date electric quantity data during current device uses, and so can avoid due to battery
Electricity exhaust or change battery, dismounting battery and when causing system power failure (as shutdown), preset electricity
Default register in gauge can be because power-off reset cannot preserve up-to-date second of power down eve in time
Electric quantity data and make the default coulant meter in current device cannot utilize pre-stored and this second electric quantity data
The electricity display algorithm of relevant pre-stored shows suitable electricity show value, calibrates electricity.
As shown in Figure 4, in one embodiment, said method may also include that
In step S401, after by the first electric quantity data write default register, start timing;
In step S402, when timing reaches preset duration, read the renewal of default register record
After the 3rd electric quantity data;
In step S403, use the 3rd electric quantity data to replace the first electric quantity data of pre-stored, use
The 3rd electric quantity data after renewal is replaced the first electric quantity data of pre-stored and is represented the first electric quantity data renewal
For update after the 3rd electric quantity data, so that this first electric quantity data is updated.
When this first electric quantity data is updated, it is also possible to be updated according to duration and need not be every
Update second electric quantity data, just this first electric quantity data updated once, thus reduce update times,
The data alleviating current device update burden, specifically: by the first electric quantity data write default register
Time, just start timing, add up from the moment accumulative duration to current time that powers on recently, and then judge should
Whether accumulative duration reaches preset duration, if reached, after can reading renewal from this default register
The 3rd electric quantity data, and then use update after the 3rd electric quantity data replace pre-stored the first electricity number
According to, so that this first electric quantity data is updated so that the first electric quantity data of pre-stored is the most current
Equipment use during up-to-date electric quantity data, so can avoid due to dead battery capability or
Change battery, dismounting battery and when causing system power failure (as shutdown), that presets in coulant meter default posts
Storage can make to work as because power-off reset cannot preserve up-to-date 3rd electric quantity data of power down eve in time
Default coulant meter in front equipment cannot utilize the electricity of the pre-stored that pre-stored is relevant to the 3rd electric quantity data
Amount display algorithm shows suitable electricity show value, calibrates electricity.
In one embodiment, the first electric quantity data includes: the accumulative charge and discharge of the battery that current device is corresponding
Electricity number of cycles, this battery be this current device use can the battery of discharge and recharge, this first electric quantity data
May include that the accumulative charging-discharging cycle number of this battery.
Presetting storage in the first read only memory in coulant meter has accumulative charging-discharging cycle number to join with electricity
Default corresponding relation between number, wherein,
Electrical parameter includes: the battery capacity of battery, charge volume and electricity show value, or
Electrical parameter includes: the battery capacity of battery, discharge capacity and electricity show value, and battery capacity is electricity
The actual maximum electricity capacity that pond is current, charge volume is the integration of the charge volume in the unit interval and time, puts
Electricity is the integration of the discharge capacity in the unit interval and time, and this default corresponding relation electricity the most above shows
Show algorithm;
Secondly, in this default corresponding relation, each accumulative charging-discharging cycle all can corresponding a set of electricity ginseng
Number, and also can be the most corresponding in order to alleviate equipment the process complexity of data, multiple accumulative charging-discharging cycle
A set of electrical parameter is i.e. in the case of battery capacity is basically unchanged, if charge volume or discharge capacity are identical,
Then M~n-th add up charging-discharging cycle can corresponding identical electricity show value, and this presets correspondence
Relation can be to be the form of form or function, and this default corresponding relation can store equipment in this prior
Coulant meter in the first read only memory in, the most whatsoever reason causes system power failure, all will not
Lose;
It addition, this default corresponding relation can be to add up between charging+discharge cycle and electrical parameter
Individual corresponding relation, it is also possible to include two corresponding relations: i.e. add up between charge cycle and electrical parameter
Corresponding relation between corresponding relation and accumulated discharge cycle and electrical parameter;
Finally, due to can charge-discharge battery in use can along with the increase of charge and discharge cycles number of times,
Capacity can be gradually lowered, thus after using for a long time in order to avoid current device, electricity shows inaccurate (example
As: the raw capacity of this battery is 4000mAh, and during first charge cycle, charge volume reaches 3200mAh
Time, electricity show value is 80%, and charge volume reaches 4000mAh, and electricity show value is just 100%, and
When this battery used half a year after 150 charging-discharging cycle, the capacity of battery be reduced to 3200mAh,
When the charge volume of battery reaches 3200mAh, if according to initial electricity display algorithm, electricity show value
It is 80%, it means that user cannot see that charge volume has reached 100%, and along with the increase of the time of use,
The maximum charge amount that user sees can be more and more lower, and meanwhile, the experience of user can worse and worse), need
Will pre-stored is relevant to accumulative charging-discharging cycle number in current device default corresponding relation, to guarantee
Current device, can be according to this when reading up-to-date accumulative charging-discharging cycle number corresponding to this battery
The currently practical capacity of up-to-date accumulative charging-discharging cycle number and this battery and currently practical charge volume or
The currently practical discharge capacity of person shows suitable electricity show value, to avoid making user directly perceive electricity
Amount cannot be full of or discharge too fast, so that it is guaranteed that user has good experience.
As it is shown in figure 5, in one embodiment, step S102 in above-mentioned Fig. 2 may also include that
In step S501, by first electric quantity data write default register after or the first electricity
When data are identical with the second electric quantity data, statistics target electrical parameter and current accumulative charging-discharging cycle number;
When this first electric quantity data is identical with this second electric quantity data, power down last time (such as shutdown) is described
Time, there is not changing battery, the dismounting phenomenon such as battery or dead battery capability, thus, in advance
If the first electric quantity data of storage originally is not lost in depositor.
After the first electric quantity data is write this default register or this first electric quantity data and this
When two electric quantity datas are identical, first illustrating when this powers on, the data in this default register have been these
The accumulative charging-discharging cycle number that up-to-date the first electric quantity data when battery is used again is the most up-to-date, and
After upon power-up of the system, may be charged or electric discharge etc. operates so that this accumulative discharge and recharge week
Issue mesh is continuously increased, thus, in this prior in the charge and discharge process of equipment, can constantly add up this mesh
Mark electrical parameter and current accumulative charging-discharging cycle number.
It addition, the most accumulative charging-discharging cycle number includes currently adding up charge cycle, current accumulated discharge
Cycle or currently add up charging+discharge cycle, thus, during charging and discharging, currently tire out
The process that meter charging-discharging cycle number updates is as follows:
When this most accumulative charging-discharging cycle number is current accumulative charge cycle, if charge volume is corresponding
Charge volume in unit interval and the charging integration between the time often expire an integration, then add up discharge and recharge week
Issue mesh will add 1,
When this accumulative charging-discharging cycle number is the current accumulated discharge cycle, if the unit that discharge capacity is corresponding
Discharge capacity in time and the electric discharge integration between the time often expire an integration, then add up charging-discharging cycle number
Mesh will add 1,
When this accumulative charging-discharging cycle number is current accumulative charging+discharge cycle, if charging integration and
Electric discharge integration all expires an integration, then add up charging-discharging cycle number and just can add 1.
In step S502, according to described target electrical parameter, described current accumulative charging-discharging cycle number
Mesh and described default corresponding relation, determine current electric quantity show value, wherein,
Described target electrical parameter includes: at least one in present battery capacity, current charge volume, institute
State target charge value to include: at least one in present battery capacity, present discharge amount.
Charging or electric discharge time, by by this current battery capacity (the actual electricity capacity that battery is current),
Current discharge charge electricity (this actual discharge charge electricity) and up-to-date current accumulative charging-discharging cycle number generation
Enter in this default corresponding relation write in coulant meter, i.e. can determine that and this most accumulative charging-discharging cycle
The correct current electric quantity show value that number and this target electrical parameter adapt, calibrates electricity,
Thus avoid declining or cannot get this correct the most accumulative charging-discharging cycle due to battery capacity
Number, and make user directly perceive electricity cannot be full of or electricity decline too fast.
In one embodiment, described first electric quantity data is pre-stored in described battery built-in second read-only
In memorizer, wherein, when this battery is the new battery that this current device newly changes, its first electric quantity data
It can be sky or 0;When this battery is the used batteries that this current device newly changes, this first electric quantity data
It can be this battery up-to-date accumulative charging-discharging cycle during use before;When this battery is system
During the galvanic element used before power down, this first electric quantity data is up-to-date the adding up before this system power failure
Charging-discharging cycle, thus, regardless of the service condition of this battery, this first electric quantity data is this all the time
Up-to-date accumulative charging-discharging cycle when battery is used again, and the first electric quantity data is pre-stored in
In two read only memory so that the first electric quantity data has power down and do not loses characteristic.
By arrange in rechargeable battery read only memory i.e. rom chip (read-only memory,
Read only memory), can by this first electric quantity data pre-stored rom chip in the battery rather than
Being stored in the read only memory in current device, so, no matter current device is because battery electric quantity consumption
To the greatest extent, dismantle this battery, be also because changing battery and causing power down (such as: shutdown), upon power-up of the system,
When the first electric quantity data and the second electric quantity data differ, all can be by the first up-to-date electricity of this battery
Data write in the default register of this default coulant meter, so that current device is owing to reading
Up-to-date accumulative charging-discharging cycle number, and conjunction can be demonstrated in conjunction with the default corresponding relation of pre-stored
Suitable electricity show value.
The above-mentioned data processing method that corresponding disclosure embodiment provides, disclosure embodiment also provides for one
Data processing equipment, as shown in Figure 6, this device includes:
First read module 601, is configured to when system electrification being detected, reads the first of pre-stored
Electric quantity data, the first electric quantity data timing updates, and the first electric quantity data has power down and do not loses characteristic;
Wherein, system refers to the operating system of executive agent, and system electrification refers to executive agent and carries out
Start shooting, the operation such as restart, and this first electric quantity data is system because change battery, dismounting battery or
Before the reason generation power down such as person's running down of battery pre-stored up-to-date, be available for this current device and combine and prestore
The electricity show value algorithm of storage calculates the data of correct electricity show value, and this first electric quantity data exists
During system power failure, can't lose, there is power down not lose characteristic, additionally, this first electric quantity data can
During to be system electrification, the up-to-date accumulative charging-discharging cycle number of the battery used;
Further, since all it may be found that be pre-stored in current device should be with every time when system powers on
These corresponding data of the first electric quantity data probably due to power down and lose, and this first electric quantity data has
Electricity does not lose characteristic, can't lose because of power down, so, when system powers on every time, it is required to
Automatically the first electric quantity data of pre-stored is read.
Processing module 602, is configured to preset in coulant meter, so that presetting the first electric quantity data write
Coulant meter is according to the first electric quantity data calibration electricity.
In order to prevent showing inappropriate owing to current device cannot read the first correct electric quantity data
Electricity show value, and then affect the experience of user, the first electric quantity data can be re-write this pre-
If in coulant meter, in order to current device is in charge and discharge process, and default coulant meter can be according to correct
The electricity display algorithm of the first electric quantity data and pre-stored can show that when calibrating electricity suitably
Electricity show value, thus improve the equipment experience of user.
As it is shown in fig. 7, in one embodiment, the processing module 602 in above-mentioned Fig. 6 may include that
Reading submodule 6021, is configured to the second electricity reading in the default register in default coulant meter
Amount data;
Owing to when not there is power down Loss in the second electric quantity data in default register, should
Identical with the first electric quantity data, and in dead battery or change that battery etc. is various does not has power supply to supply
In the case of, can reset, cause pre-stored should be identical with the first electric quantity data the second electric quantity data
Lose, and this first electric quantity data differing, thus, after system electrification, need to read and preset
This second electric quantity data in depositor, in order to confirm this first electric quantity data and the second electricity number afterwards
According to the most identical.
Judge submodule 6022, be configured to judge the first electric quantity data and the second electric quantity data whether phase
With;
The most identical by judging this first electric quantity data and the second electric quantity data, it can be determined that this is preset and posts
Whether storage occurs resetting.
Write submodule 6023, is configured as the first electric quantity data and time the second electric quantity data differs,
By in the first electric quantity data write default register.
When this first electric quantity data and this second electric quantity data differ, basis in this default register is described
Second electric quantity data identical with the first electric quantity data should be stored probably due to dismantle battery or battery
Electricity exhausts and occurs in that power down is lost or do not has and the first electric quantity data phase owing to changing battery
The second same electric quantity data, thus, in order to prevent owing to current device cannot read the first correct electricity
Measure data and show inappropriate electricity show value, and then affect the experience of user, can be by first
Electric quantity data re-writes in this default register as the second electric quantity data, in order to current device is filling
In discharge process, it is possible to demonstrate according to the electricity display algorithm of the first correct electric quantity data and pre-stored
Suitably electricity show value, calibrates electricity, thus improves the equipment experience of user.
As shown in Figure 8, in one embodiment, said apparatus may also include that
Second read module 801, is configured to after by the first electric quantity data write default register, when
When second electric quantity data updates, read the second electric quantity data after the renewal of default register record;
First replacement module 802, is configured with the second electric quantity data after updating and replaces pre-stored
First electric quantity data.
After the first electric quantity data is write this default register, first it is stated that in this default register
The second electric quantity data be the first electric quantity data up-to-date before system power failure, and system electrification it
After, may be charged or electric discharge etc. operates so that the first electric quantity data is (such as accumulative discharge and recharge week
Issue mesh) it is continuously increased, thus, when this second electric quantity data updates, all can preset from this and deposit
Device reads the second electric quantity data after updating, and then uses the second electric quantity data replacement after updating to prestore
First electric quantity data of storage, to be updated this first electric quantity data so that the first electricity of pre-stored
Data are always the up-to-date electric quantity data during current device uses, and so can avoid due to battery
Electricity exhaust or change battery, dismounting battery and when causing system power failure (as shutdown), preset electricity
Default register in gauge can be because power-off reset cannot preserve up-to-date second of power down eve in time
Electric quantity data and make the default coulant meter in current device cannot utilize pre-stored and this second electric quantity data
The electricity display algorithm of relevant pre-stored shows suitable electricity show value, calibrates electricity.
As it is shown in figure 9, in one embodiment, said apparatus may also include that
Start module 901, be configured to, after by the first electric quantity data write default register, start meter
Time;
Third reading delivery block 902, is configured as timing when reaching preset duration, reads default register
The 3rd electric quantity data after the renewal of record;
Second replacement module 903, is configured with the 3rd electric quantity data and replaces the first electricity of pre-stored
Data.
When this first electric quantity data is updated, it is also possible to be updated according to duration and need not be every
Update second electric quantity data, just this first electric quantity data updated once, thus reduce update times,
The data alleviating current device update burden, specifically: by the first electric quantity data write default register
Time, just start timing, add up from the moment accumulative duration to current time that powers on recently, and then judge should
Whether accumulative duration reaches preset duration, if reached, after can reading renewal from this default register
The 3rd electric quantity data, and then use update after the 3rd electric quantity data replace pre-stored the first electricity number
According to, so that this first electric quantity data is updated so that the first electric quantity data of pre-stored is the most current
Equipment use during up-to-date electric quantity data, so can avoid due to dead battery capability or
Change battery, dismounting battery and when causing system power failure (as shutdown), that presets in coulant meter default posts
Storage can make to work as because power-off reset cannot preserve up-to-date 3rd electric quantity data of power down eve in time
Default coulant meter in front equipment cannot utilize the electricity of the pre-stored that pre-stored is relevant to the 3rd electric quantity data
Amount display algorithm shows suitable electricity show value, calibrates electricity.
In one embodiment, the first electric quantity data includes: the accumulative charge and discharge of the battery that current device is corresponding
Electricity number of cycles, and
Presetting storage in the first read only memory in coulant meter has accumulative charging-discharging cycle number to join with electricity
Default corresponding relation between number, wherein,
Electrical parameter includes: the battery capacity of battery, charge volume and electricity show value, or
Electrical parameter includes: the battery capacity of battery, discharge capacity and electricity show value.
As shown in Figure 10, in one embodiment, processing module 602 may also include that
Statistics submodule 6024, be configured to by first electric quantity data write default register after or
When first electric quantity data and the second electric quantity data are identical, statistics target electrical parameter and current accumulative discharge and recharge
Number of cycles;
When this first electric quantity data is identical with this second electric quantity data, power down last time (such as shutdown) is described
Time, there is not changing battery, the dismounting phenomenon such as battery or dead battery capability, thus, in advance
If the first electric quantity data of storage originally is not lost in depositor.
After the first electric quantity data is write this default register or this first electric quantity data and this
When two electric quantity datas are identical, first illustrating when this powers on, the data in this default register have been these
The accumulative charging-discharging cycle number that up-to-date the first electric quantity data when battery is used again is the most up-to-date, and
After upon power-up of the system, may be charged or electric discharge etc. operates so that this accumulative discharge and recharge week
Issue mesh is continuously increased, thus, in this prior in the charge and discharge process of equipment, can constantly add up this mesh
Mark electrical parameter and current accumulative charging-discharging cycle number.
Determine submodule 6025, be configured to according to target electrical parameter, current accumulative charging-discharging cycle number
Mesh and default corresponding relation, determine current electric quantity show value, wherein,
Target electrical parameter includes: at least one in present battery capacity, current charge volume, target electricity
Value includes: at least one in present battery capacity, present discharge amount.
Charging or electric discharge time, by by this current battery capacity (the actual electricity capacity that battery is current),
Current discharge charge electricity (this actual discharge charge electricity) and up-to-date current accumulative charging-discharging cycle number generation
Enter in this default corresponding relation write in coulant meter, i.e. can determine that and this most accumulative charging-discharging cycle
The correct current electric quantity show value that number and this target electrical parameter adapt, calibrates electricity,
Thus avoid declining or cannot get this correct the most accumulative charging-discharging cycle due to battery capacity
Number, and make user directly perceive electricity cannot be full of or electricity decline too fast.
In one embodiment, the second read only memory that the first electric quantity data pre-stored is the most built-in
In.
By arrange in rechargeable battery read only memory i.e. rom chip (read-only memory,
Read only memory), can by this first electric quantity data pre-stored rom chip in the battery rather than
Being stored in the read only memory in current device, so, no matter current device is because battery electric quantity consumption
To the greatest extent, dismantle this battery, be also because changing battery and causing power down (such as: shutdown), upon power-up of the system,
When the first electric quantity data and the second electric quantity data differ, all can be by the first up-to-date electricity of this battery
Data write in the default register of this default coulant meter, so that current device is owing to reading
Up-to-date accumulative charging-discharging cycle number, and conjunction can be demonstrated in conjunction with the default corresponding relation of pre-stored
Suitable electricity show value.
The third aspect according to disclosure embodiment, it is provided that a kind of data processing equipment, including:
Processor;
For storing the memorizer of processor executable;
Wherein, processor is configured to:
When system electrification being detected, read the first electric quantity data of pre-stored, described first electric quantity data
There is power down and do not lose characteristic;
Described first electric quantity data write is preset in coulant meter, so that described default coulant meter is according to described
First electric quantity data calibration electricity.
Above-mentioned processor is also configured to:
Described by described first electric quantity data write described default coulant meter include:
Read the second electric quantity data in the default register in described default coulant meter;
Judge that described first electric quantity data is the most identical with described second electric quantity data;
When described first electric quantity data and described second electric quantity data differ, by described first electricity number
According to writing in described default register.
Above-mentioned processor is also configured to:
Described method also includes:
Described first electric quantity data is being write after described default register, when described second electric quantity data more
Time new, read the second electric quantity data after the renewal of described default register record;
The second electric quantity data after described renewal is used to replace the first electric quantity data of described pre-stored.
Above-mentioned processor is also configured to:
Described method also includes:
After described first electric quantity data is write described default register, start timing;
When timing reaches preset duration, read the 3rd electricity after the renewal of described default register record
Data;
Described 3rd electric quantity data is used to replace the first electric quantity data of described pre-stored.
Above-mentioned processor is also configured to:
Described first electric quantity data includes: the accumulative charging-discharging cycle number of the battery that current device is corresponding,
And
In the first read only memory in described default coulant meter, storage has accumulative charging-discharging cycle number and electricity
Default corresponding relation between amount parameter, wherein,
Described electrical parameter includes: the battery capacity of described battery, charge volume and electricity show value, or
Described electrical parameter includes: the battery capacity of described battery, discharge capacity and electricity show value.
Above-mentioned processor is also configured to:
Described described first electric quantity data write is preset in coulant meter so that described default coulant meter according to
Described first electric quantity data calibration electricity, including:
Described first electric quantity data is being write after described default register or described first electric quantity data
Time identical with described second electric quantity data, statistics target electrical parameter and current accumulative charging-discharging cycle number;
According to described target electrical parameter, described current accumulative charging-discharging cycle number and described default correspondence
Relation, determines current electric quantity show value, wherein,
Described target electrical parameter includes: at least one in present battery capacity, current charge volume, institute
State target charge value to include: at least one in present battery capacity, present discharge amount.An enforcement
In example, described first electric quantity data is pre-stored in the second read only memory built-in in described battery.
Figure 11 is according to a kind of block diagram for data processing equipment 1100 shown in an exemplary embodiment,
This device is applicable to terminal unit.Such as, device 1100 can be mobile phone, computer, and numeral is wide
Broadcast terminal, messaging devices, game console, tablet device, armarium, body-building equipment, individual
Number assistant etc..
With reference to Figure 11, device 1100 can include with next or at least two assembly: processes assembly 1102,
Memorizer 1104, power supply module 1106, multimedia groupware 1108, audio-frequency assembly 1110, input/output
(I/O) interface 1112, sensor cluster 1114, and communications component 1116.
Process assembly 1102 and generally control the integrated operation of device 1100, such as with display, call,
The operation that data communication, camera operation and record operation are associated.Process assembly 1102 and can include one
Or at least two processor 1120 performs instruction, to complete all or part of step of above-mentioned method.
Additionally, process assembly 1102 can include one or at least two module, it is simple to process assembly 1102 He
Mutual between other assemblies.Such as, process assembly 1102 and can include multi-media module, many to facilitate
Media component 1108 and process between assembly 1102 mutual.
Memorizer 1104 is configured to store various types of data to support the operation at device 1100.
The example of these data includes any storage object for operation on device 1100 or the instruction of method,
Contact user data, telephone book data, message, picture, video etc..Memorizer 1104 can be by any
The volatibility of type or non-volatile memory device or combinations thereof realize, as static random-access is deposited
Reservoir (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is only
Reading memorizer (EPROM), programmable read only memory (PROM), read only memory (ROM),
Magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 1106 is device 1100 provide power supply.Power supply module 1106 can wrap
Include power-supply management system, one or at least two power supply, and other with generate for device 1100, manage and
The assembly that distribution power supply is associated.
One output interface of offer that multimedia groupware 1108 is included between described device 1100 and user
Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).
If screen includes that touch panel, screen may be implemented as touch screen, to receive the input from user
Signal.Touch panel includes that one or at least two touch sensor touch with sensing, slide and touch surface
Gesture on plate.Described touch sensor can not only sense touch or the border of sliding action, but also
Detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many matchmakers
Body assembly 1108 includes a front-facing camera and/or post-positioned pick-up head.When device 1100 is in operation mould
Formula, during such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside
Multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems
Or there is focal length and optical zoom ability.
Audio-frequency assembly 1110 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1110
Including a mike (MIC), when device 1100 is in operator scheme, such as call model, record mould
When formula and speech recognition mode, mike is configured to receive external audio signal.The audio frequency letter received
Number can be further stored at memorizer 1104 or send via communications component 1116.Implement at some
In example, audio-frequency assembly 1110 also includes a speaker, is used for exporting audio signal.
I/O interface 1112 is to process to provide interface between assembly 1102 and peripheral interface module, above-mentioned outside
Enclosing interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: homepage
Button, volume button, start button and locking press button.
Sensor cluster 1114 includes one or at least two sensor, for providing each for device 1100
The state estimation of individual aspect.Such as, sensor cluster 1114 can detect the opening of device 1100/
Closed mode, the relative localization of assembly, the most described assembly is display and the keypad of device 1100,
Sensor cluster 1114 can also detect device 1100 or the position change of 1,100 1 assemblies of device, uses
The presence or absence that family contacts with device 1100, device 1100 orientation or acceleration/deceleration and device 1100
Variations in temperature.Sensor cluster 1114 can include proximity transducer, is configured to the most any
Physical contact time detection near the existence of object.Sensor cluster 1114 can also include optical sensor,
Such as CMOS or ccd image sensor, it is used for using in imaging applications.In certain embodiments,
This sensor cluster 1114 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure
Force transducer or temperature sensor.
Communications component 1116 is configured to facilitate wired or wireless mode between device 1100 and other equipment
Communication.Device 1100 can access wireless network based on communication standard, such as WiFi, 2G or 3G,
Or combinations thereof.In one exemplary embodiment, communications component 1116 receives via broadcast channel
From broadcast singal or the broadcast related information of external broadcasting management system.In one exemplary embodiment,
Described communications component 1116 also includes near-field communication (NFC) module, to promote junction service.Such as,
Can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology,
Ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1100 can be by one or at least two application specific integrated circuit
(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), able to programme patrol
Collect device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor
Or other electronic building bricks realize, it is used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage including instruction is additionally provided
Medium, such as, include the memorizer 1104 of instruction, and above-mentioned instruction can be by the processor 1120 of device 1100
Perform to complete said method.Such as, described non-transitory computer-readable recording medium can be ROM,
Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by above-mentioned dress
When putting the processor execution of 1100 so that said apparatus 1100 is able to carry out a kind of data processing method,
Including:
When system electrification being detected, read the first electric quantity data of pre-stored, described first electric quantity data
There is power down and do not lose characteristic;
Described first electric quantity data write is preset in coulant meter, so that described default coulant meter is according to described
First electric quantity data calibration electricity.
In one embodiment, described by described first electric quantity data write described default coulant meter include:
Read the second electric quantity data in the default register in described default coulant meter;
Judge that described first electric quantity data is the most identical with described second electric quantity data;
When described first electric quantity data and described second electric quantity data differ, by described first electricity number
According to writing in described default register.
In one embodiment, described method also includes:
Described first electric quantity data is being write after described default register, when described second electric quantity data more
Time new, read the second electric quantity data after the renewal of described default register record;
The second electric quantity data after described renewal is used to replace the first electric quantity data of described pre-stored.
In one embodiment, described method also includes:
After described first electric quantity data is write described default register, start timing;
When timing reaches preset duration, read the 3rd electricity after the renewal of described default register record
Data;
Described 3rd electric quantity data is used to replace the first electric quantity data of described pre-stored.
In one embodiment, described first electric quantity data includes: adding up of the battery that current device is corresponding
Charging-discharging cycle number, and
In the first read only memory in described default coulant meter, storage has accumulative charging-discharging cycle number and electricity
Default corresponding relation between amount parameter, wherein,
Described electrical parameter includes: the battery capacity of described battery, charge volume and electricity show value, or
Described electrical parameter includes: the battery capacity of described battery, discharge capacity and electricity show value.
In one embodiment, described write by described first electric quantity data is preset in coulant meter, so that institute
State default coulant meter and calibrate electricity according to described first electric quantity data, including:
Described first electric quantity data is being write after described default register or described first electric quantity data
Time identical with described second electric quantity data, statistics target electrical parameter and current accumulative charging-discharging cycle number;
According to described target electrical parameter, described current accumulative charging-discharging cycle number and described default correspondence
Relation, determines current electric quantity show value, wherein,
Described target electrical parameter includes: at least one in present battery capacity, current charge volume, institute
State target charge value to include: at least one in present battery capacity, present discharge amount.An enforcement
In example, described first electric quantity data is pre-stored in the second read only memory built-in in described battery.
Art technology user person, after considering description and putting into practice disclosure disclosed herein, will readily occur to
Other embodiment of the disclosure.The application is intended to any modification, purposes or the adaptation of the disclosure
Property change, these modification, purposes or adaptations are followed the general principle of the disclosure and include this
Undocumented common knowledge in the art or conventional techniques means are disclosed.Description and embodiments is only
Being considered exemplary, the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure be not limited to described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by institute
Attached claim limits.
Claims (15)
1. a data processing method, it is characterised in that including:
When system electrification being detected, read the first electric quantity data of pre-stored, described first electric quantity data
There is power down and do not lose characteristic;
Described first electric quantity data write is preset in coulant meter, so that described default coulant meter is according to described
First electric quantity data calibration electricity.
Method the most according to claim 1, it is characterised in that described by described first electric quantity data
Write described default coulant meter to include:
Read the second electric quantity data in the default register in described default coulant meter;
Judge that described first electric quantity data is the most identical with described second electric quantity data;
When described first electric quantity data and described second electric quantity data differ, by described first electricity number
According to writing in described default register.
Method the most according to claim 2, it is characterised in that described method also includes:
Described first electric quantity data is being write after described default register, when described second electric quantity data more
Time new, read the second electric quantity data after the renewal of described default register record;
The second electric quantity data after described renewal is used to replace the first electric quantity data of described pre-stored.
Method the most according to claim 2, it is characterised in that described method also includes:
After described first electric quantity data is write described default register, start timing;
When timing reaches preset duration, read the 3rd electricity after the renewal of described default register record
Data;
Described 3rd electric quantity data is used to replace the first electric quantity data of described pre-stored.
5. according to the method according to any one of claim 2 to 4, it is characterised in that described first electricity
Amount data include: the accumulative charging-discharging cycle number of the battery that current device is corresponding, and
In the first read only memory in described default coulant meter, storage has accumulative charging-discharging cycle number and electricity
Default corresponding relation between amount parameter, wherein,
Described electrical parameter includes: the battery capacity of described battery, charge volume and electricity show value, or
Described electrical parameter includes: the battery capacity of described battery, discharge capacity and electricity show value.
Method the most according to claim 5, it is characterised in that
Described described first electric quantity data write is preset in coulant meter so that described default coulant meter according to
Described first electric quantity data calibration electricity, including:
Described first electric quantity data is being write after described default register or described first electric quantity data
Time identical with described second electric quantity data, statistics target electrical parameter and current accumulative charging-discharging cycle number;
According to described target electrical parameter, described current accumulative charging-discharging cycle number and described default correspondence
Relation, determines current electric quantity show value, wherein,
Described target electrical parameter includes: at least one in present battery capacity, current charge volume, institute
State target charge value to include: at least one in present battery capacity, present discharge amount.
Method the most according to claim 5, it is characterised in that
Described first electric quantity data is pre-stored in the second read only memory built-in in described battery.
8. a data processing equipment, it is characterised in that including:
First read module, for when system electrification being detected, reads the first electric quantity data of pre-stored,
Described first electric quantity data has power down and does not lose characteristic;
Processing module, for described first electric quantity data write being preset in coulant meter, presets so that described
Coulant meter is according to described first electric quantity data calibration electricity.
Device the most according to claim 8, it is characterised in that described processing module includes:
Reading submodule, for reading the second electricity number in the default register in described default coulant meter
According to;
Judge submodule, be used for judging that described first electric quantity data is the most identical with described second electric quantity data;
Write submodule, is used for when described first electric quantity data and described second electric quantity data differ,
Described first electric quantity data is write in described default register.
Device the most according to claim 9, it is characterised in that described device also includes:
Second read module, is used for after described first electric quantity data is write described default register, when
When described second electric quantity data updates, read the second electricity number after the renewal of described default register record
According to;
First replacement module, the second electric quantity data after using described renewal replaces described pre-stored
First electric quantity data.
11. devices according to claim 9, it is characterised in that described device also includes:
Start module, for, after described first electric quantity data is write described default register, starting meter
Time;
Third reading delivery block, for when timing reaches preset duration, reads described default register record
Renewal after the 3rd electric quantity data;
Second replacement module, for using described 3rd electric quantity data to replace the first electricity of described pre-stored
Data.
12. according to the device according to any one of claim 9 to 11, it is characterised in that described first
Electric quantity data includes: the accumulative charging-discharging cycle number of the battery that current device is corresponding, and
In the first read only memory in described default coulant meter, storage has accumulative charging-discharging cycle number and electricity
Default corresponding relation between amount parameter, wherein,
Described electrical parameter includes: the battery capacity of described battery, charge volume and electricity show value, or
Described electrical parameter includes: the battery capacity of described battery, discharge capacity and electricity show value.
13. devices according to claim 12, it is characterised in that
Described processing module includes:
Statistics submodule, for will described first electric quantity data write described default register after or
When described first electric quantity data is identical with described second electric quantity data, statistics target electrical parameter is tired with current
Meter charging-discharging cycle number;
Determine submodule, for according to described target electrical parameter, described current accumulative charging-discharging cycle number
Mesh and described default corresponding relation, determine current electric quantity show value, wherein,
Described target electrical parameter includes: at least one in present battery capacity, current charge volume, institute
State target charge value to include: at least one in present battery capacity, present discharge amount.
14. devices according to claim 12, it is characterised in that
Described first electric quantity data is pre-stored in the second read only memory built-in in described battery.
15. 1 kinds of data processing equipments, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When system electrification being detected, read the first electric quantity data of pre-stored, described first electric quantity data
There is power down and do not lose characteristic;
Described first electric quantity data write is preset in coulant meter, so that described default coulant meter is according to described
First electric quantity data calibration electricity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610350213.6A CN105842632A (en) | 2016-05-24 | 2016-05-24 | Data processing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610350213.6A CN105842632A (en) | 2016-05-24 | 2016-05-24 | Data processing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105842632A true CN105842632A (en) | 2016-08-10 |
Family
ID=56593318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610350213.6A Pending CN105842632A (en) | 2016-05-24 | 2016-05-24 | Data processing method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105842632A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106572259A (en) * | 2016-11-09 | 2017-04-19 | 惠州Tcl移动通信有限公司 | Mobile terminal battery power displaying method and system |
CN108344952A (en) * | 2018-02-26 | 2018-07-31 | 深圳市道通智能航空技术有限公司 | Battery power amount calculation method and its device |
CN115993940A (en) * | 2023-03-23 | 2023-04-21 | 青岛鼎信通讯股份有限公司 | Electric quantity loss prevention method and device, electric energy meter equipment and storage medium |
CN118444946A (en) * | 2023-12-26 | 2024-08-06 | 荣耀终端有限公司 | A method for upgrading the firmware of an electric meter, an electronic device and a storage medium |
CN118539572A (en) * | 2024-07-26 | 2024-08-23 | 浙江艾罗网络能源技术股份有限公司 | Data processing method and energy storage device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2434791Y (en) * | 2000-06-07 | 2001-06-13 | 天霸通讯科技股份有限公司 | Mobile phone battery with charge count recording function |
WO2012130393A1 (en) * | 2011-03-31 | 2012-10-04 | Li-Tec Battery Gmbh | Method for the control and handling of electrochemical cells or batteries, electrochemical cell and battery |
CN104698388A (en) * | 2015-03-02 | 2015-06-10 | 惠州Tcl移动通信有限公司 | Method and device for detecting battery ageing of mobile terminal |
CN105334466A (en) * | 2015-09-28 | 2016-02-17 | Tcl移动通信科技(宁波)有限公司 | Method for accurately displaying total battery electric quantity of mobile terminal and system thereof |
-
2016
- 2016-05-24 CN CN201610350213.6A patent/CN105842632A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2434791Y (en) * | 2000-06-07 | 2001-06-13 | 天霸通讯科技股份有限公司 | Mobile phone battery with charge count recording function |
WO2012130393A1 (en) * | 2011-03-31 | 2012-10-04 | Li-Tec Battery Gmbh | Method for the control and handling of electrochemical cells or batteries, electrochemical cell and battery |
CN104698388A (en) * | 2015-03-02 | 2015-06-10 | 惠州Tcl移动通信有限公司 | Method and device for detecting battery ageing of mobile terminal |
CN105334466A (en) * | 2015-09-28 | 2016-02-17 | Tcl移动通信科技(宁波)有限公司 | Method for accurately displaying total battery electric quantity of mobile terminal and system thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106572259A (en) * | 2016-11-09 | 2017-04-19 | 惠州Tcl移动通信有限公司 | Mobile terminal battery power displaying method and system |
CN108344952A (en) * | 2018-02-26 | 2018-07-31 | 深圳市道通智能航空技术有限公司 | Battery power amount calculation method and its device |
CN115993940A (en) * | 2023-03-23 | 2023-04-21 | 青岛鼎信通讯股份有限公司 | Electric quantity loss prevention method and device, electric energy meter equipment and storage medium |
CN115993940B (en) * | 2023-03-23 | 2023-07-25 | 青岛鼎信通讯股份有限公司 | Electric quantity loss prevention method and device, electric energy meter equipment and storage medium |
CN118444946A (en) * | 2023-12-26 | 2024-08-06 | 荣耀终端有限公司 | A method for upgrading the firmware of an electric meter, an electronic device and a storage medium |
CN118539572A (en) * | 2024-07-26 | 2024-08-23 | 浙江艾罗网络能源技术股份有限公司 | Data processing method and energy storage device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107134823B (en) | Charging prompting method and device | |
CN105842632A (en) | Data processing method and apparatus | |
CN104219383A (en) | Terminal power information prompting method and device | |
JP2016530491A (en) | Power usage statistics method, power usage statistics device, power usage statistics system, program, and recording medium | |
EP3407339A1 (en) | Method and device for screen-off display | |
CN105446858B (en) | The replacement reminding method and device of battery | |
CN106712219A (en) | Charging protection method and device | |
CN105530384A (en) | Method and device for power reminding based on alarm clock | |
US20220060042A1 (en) | Charging control method, electronic device and storage medium | |
CN106407079A (en) | Mobile terminal charging prompting method, device and equipment | |
CN108777330A (en) | charging management method, device and terminal | |
CN115480179A (en) | Method and device for predicting health degree of battery and storage medium | |
CN108539804B (en) | Battery charging control method, battery charging control device and electronic equipment | |
CN113285499A (en) | Charging control method, electronic device, control device, and storage medium | |
CN106502370A (en) | The method of control intelligent terminal and intelligent terminal | |
CN104202470B (en) | Terminal supplying power control method and device | |
CN108429312B (en) | Charging control method and device | |
EP4084267A1 (en) | Method and apparatus for charging a battery and terminal | |
CN104991634A (en) | Terminal control method and device | |
CN103985895A (en) | Cell control method, device and terminal | |
CN112986879B (en) | Fuel gauge correction method and device, electronic equipment and storage medium | |
CN116679220A (en) | Electronic equipment, battery control method and device and storage medium | |
EP3893320B1 (en) | Shutdown method, shutdown apparatus, terminal and storage medium | |
CN104679515A (en) | Display method and device of charging ratio and electronic equipment | |
CN106655413B (en) | Electronic equipment and charging method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20160810 |