CN109116290A - A kind of optimization method, device and the electronic equipment of the metering of equipment voltameter - Google Patents

A kind of optimization method, device and the electronic equipment of the metering of equipment voltameter Download PDF

Info

Publication number
CN109116290A
CN109116290A CN201810612712.7A CN201810612712A CN109116290A CN 109116290 A CN109116290 A CN 109116290A CN 201810612712 A CN201810612712 A CN 201810612712A CN 109116290 A CN109116290 A CN 109116290A
Authority
CN
China
Prior art keywords
voltameter
parameter
backup
equipment
metering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810612712.7A
Other languages
Chinese (zh)
Other versions
CN109116290B (en
Inventor
吴韶祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chumen Wenwen Information Technology Co Ltd
Original Assignee
Chumen Wenwen Information 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 Chumen Wenwen Information Technology Co Ltd filed Critical Chumen Wenwen Information Technology Co Ltd
Priority to CN201810612712.7A priority Critical patent/CN109116290B/en
Publication of CN109116290A publication Critical patent/CN109116290A/en
Application granted granted Critical
Publication of CN109116290B publication Critical patent/CN109116290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Secondary Cells (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses optimization method, device and the electronic equipments of a kind of metering of equipment voltameter, are related to technical field of data processing, and the method for the embodiment of the present invention includes: to judge whether voltameter resets when equipment starting;If so, detecting whether there is backup voltameter parameter;When there are the backup voltameter parameter, extracts the backup voltameter parameter and the voltameter is configured, so that the voltameter is measured according to the backup voltameter parameter.It realizes after device looses power is restarted, configuration metering is carried out to voltameter using the backup voltameter parameter of preservation, improve the accuracy of voltameter metering.

Description

A kind of optimization method, device and the electronic equipment of the metering of equipment voltameter
Technical field
The present embodiments relate to the optimization sides that technical field of data processing more particularly to a kind of equipment voltameter are measured Method, device and electronic equipment.
Background technique
Portable electronic device in daily life using more and more extensive.Voltameter is must in portable electronic device Indispensable accessory.Voltameter is capable of the residual capacity of Meter electronics battery, completely fills capacity, percent capacity, voltage, electricity The parameters such as stream, temperature.Under normal conditions, it can be configured in voltameter according to device battery parameter and characteristic when equipment produces Corresponding volume production parameter value, so that voltameter measures corresponding data according to the volume production parameter value of configuration and refers to when equipment enables Mark.
However, battery performance state can change with the aging of battery in equipment use process, voltameter can basis The continuous self study of the current state of battery updates the parameter of itself, to ensure the accuracy of voltameter metering, but works as equipment Voltameter parameter can revert to default value after power-down rebooting, and inventor in the specific implementation process, has found in the prior art at this time Voltameter can be measured according to the voltameter parameter configuration initially configured, and can be made still according to the voltameter parameter of initial configuration Metric results inaccuracy, the lower problem of the accuracy for causing voltameter to measure.
Summary of the invention
In view of the above problems, the embodiment of the present invention provides optimization method, device and the electronics of a kind of equipment voltameter metering Equipment, main purpose are after device looses power is restarted, and are configured according to backup voltameter parameter to voltameter, improve electricity The accuracy of metering.
In order to solve the above technical problems, in a first aspect, the embodiment of the invention provides a kind of the excellent of equipment voltameter metering Change method, this method comprises:
When equipment starting, judge whether voltameter resets;
If so, detecting whether there is backup voltameter parameter, the backup voltameter parameter is according between preset time Every preservation in the apparatus for calibrating the parameter of the voltameter;
When there are the backup voltameter parameter, extracts the backup voltameter parameter and the voltameter is matched It sets, so that the voltameter is measured according to the backup voltameter parameter.
Optionally, described to judge whether voltameter occurs reset and include:
Current electric quantity meter parameter and preset voltameter parameter are obtained, when the preset voltameter parameter is that the equipment is dispatched from the factory The default parameters of the voltameter carries the first version information of the voltameter parameter in the current electric quantity meter parameter, The version information is used to identify the version of the voltameter parameter;
When the current electric quantity meter parameter is identical with the preset voltameter parameter, it is multiple to determine that the voltameter occurs Position.
Optionally, the method also includes:
Amount to obtain produces electricity meter parameter, and the volume production voltameter parameter is raw according to the characteristic and parameter of the device battery At, and the second edition information of the voltameter parameter is carried in the volume production parameter.
Optionally, the method also includes:
If the voltameter does not reset, detect the first version information and the second edition information whether phase Together;
If it is different, then being configured using the volume production voltameter parameter to the voltameter.
Optionally, the third version information of the voltameter parameter is also carried in the backup voltameter parameter, it is described When there are the backup voltameter parameter, the method can also include:
It detects third version information and whether the second edition information is identical;
It is described extract the backup voltameter parameter and the voltameter configure include:
If they are the same, then it extracts the backup voltameter parameter and the voltameter is configured.
Optionally, the method also includes:
If the third version information is different from the second edition information, using the volume production voltameter parameter to institute Voltameter is stated to be configured.
Second aspect, the embodiment of the invention also provides a kind of optimization device of equipment voltameter metering, which includes:
Judging unit, for judging whether voltameter resets when equipment starting;
Detection unit detects whether there is backup voltameter parameter if resetting for the voltameter, described standby Part voltameter parameter is to save according to preset time interval in the apparatus for calibrating the parameter of the voltameter;
Extraction unit, for extracting the backup voltameter parameter when there are the backup voltameter parameter;
Configuration unit, for being configured using the backup voltameter parameter to the voltameter, so that the electricity Meter is measured according to the backup voltameter parameter.
Optionally, the judging unit includes:
Module is obtained, by obtaining parameter and preset voltameter parameter based on current electric quantity, the preset voltameter parameter is The default parameters of the voltameter when equipment is dispatched from the factory carries the voltameter parameter in the current electric quantity meter parameter First version information, the version information are used to identify the version of the voltameter parameter;
Determining module, described in determining when parameter is identical with the preset voltameter parameter based on the current electric quantity Voltameter resets.
Optionally, described device further include:
Acquiring unit produces electricity meter parameter for amount to obtain, and the volume production voltameter parameter is according to the device battery Characteristic and parameter generate, and the second edition information of the voltameter parameter is carried in the volume production parameter.
Optionally, the detection unit does not reset if being also used to the voltameter, detects the current electric quantity meter Whether the first version information and the second edition information in parameter are identical;
The configuration unit utilizes institute if being also used to the first version information and the second edition information difference Volume production voltameter parameter is stated to configure the voltameter.
Optionally,
The detection unit, the third version information for being also used to detect in the backup voltameter parameter and the second edition Whether this information is identical;
The configuration unit includes:
Extraction module extracts the backup if identical as the second edition information for the third version information Voltameter parameter;
Configuration module, for being configured using the backup voltameter parameter to the voltameter.
Optionally,
The configuration unit utilizes institute if it is different from the second edition information to be also used to the third version information Volume production voltameter parameter is stated to configure the voltameter.
To achieve the goals above, according to a third aspect of the embodiments of the present invention, a kind of storage medium is provided, it is described to deposit Storage media includes the program of storage, wherein equipment where controlling the storage medium in described program operation executes above-mentioned institute The optimization method for the equipment voltameter metering stated.
To achieve the goals above, according to a fourth aspect of the embodiments of the present invention, a kind of electronic equipment, the electricity are provided Sub- equipment includes: one or more processors;Memory, for storing one or more programs;When one or more of journeys Sequence is executed the optimization method that equipment voltameter described above measures by one or more of processors.
By above-mentioned technical proposal, optimization method, the device, storage of equipment voltameter metering provided in an embodiment of the present invention Medium and electronic equipment, for the prior art after device looses power is restarted, voltameter is still according to initial configuration in equipment When volume production parameter carries out configuration metering, the lower problem of caused voltameter metering accuracy, the embodiment of the present invention is opened in equipment When dynamic, judge first whether voltameter in equipment occurs to reset, and when judging result is that voltameter resets, detection is It is no to preserve backup voltameter parameter, voltameter is matched using backup parameter when if detecting the presence of backup voltameter parameter It sets, therefore compared with the prior art, the embodiment of the present invention can save backup voltameter parameter in equipment running process, thus Voltameter is configured using backup voltameter parameter after device looses power is restarted, is avoided after device looses power is restarted still The lower problem of accurate measurement rate caused by being configured according to volume production parameter of the initial configuration in equipment, to improve electricity The accuracy of meter metering.In addition, by the version information for obtaining and being stored in voltameter parameter, and detecting version letter When breath changes, voltameter is configured using updated new version voltameter parameter, further improves voltameter The accuracy of metering.
Above description is only the general introduction of technical solution of the embodiment of the present invention, in order to better understand the embodiment of the present invention Technological means, and can be implemented in accordance with the contents of the specification, and in order to allow above and other mesh of the embodiment of the present invention , feature and advantage can be more clearly understood, the special specific embodiment for lifting the embodiment of the present invention below.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention The limitation of embodiment.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of optimization method flow chart of equipment voltameter metering provided in an embodiment of the present invention;
Fig. 2 shows the optimization method flow charts of another equipment voltameter metering provided in an embodiment of the present invention;
Fig. 3 shows a kind of voltameter parameter configuration flow diagram provided in an embodiment of the present invention;
Fig. 4 shows a kind of composition block diagram of the optimization device of equipment voltameter metering provided in an embodiment of the present invention;
Fig. 5 shows the composition block diagram of the optimization device of another equipment voltameter metering provided in an embodiment of the present invention;
Fig. 6 shows a kind of composition frame of the electronic equipment of optimization equipment voltameter metering provided in an embodiment of the present invention Figure.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In order to improve the accuracy that voltameter measures in equipment, the embodiment of the invention provides a kind of meterings of equipment voltameter Optimization method, as shown in Figure 1, this method comprises:
101, when equipment starts, judge whether voltameter resets.
For the embodiment of the present invention, when the voltameter in equipment resets, the parameter configured in voltameter can be extensive Voltameter default parameters when dispatching from the factory again for equipment, therefore this step is specifically as follows current electricity when starting by detection device The default parameters of voltameter judges whether voltameter resets when whether meter parameter is equipment factory.It is, of course, also possible to root According to the state judgement of the flag bit of voltameter, the embodiment of the present invention is not specifically limited in this embodiment.
It should be noted that can be used in terminal device to electricity for configuration for the executing subject of the embodiment of the present invention The device of meter metering optimization illustrates to need this moment pair when the device monitoring to device looses power restarts afterwards for a period of time Voltameter metering method optimizes, then triggers decision instruction, and then realizes and utilize voltameter optimization metering.
102, if so, detecting whether there is backup voltameter parameter.
Wherein, the backup voltameter parameter is described for calibrating in the apparatus according to preset time interval preservation The parameter of voltameter.It should be noted that the charge and discharge lasting due to device battery, voltameter can be to it according to device battery phase Parameter is closed, if the internal resistance of cell, battery completely fill capacity, cell degradation situation etc., by voltameter self study calibration current portions ginseng Number, for being adapted to current device battery status.By calibrating corresponding voltameter parameter, Ke Yifu according to battery status self study It helps voltameter to be measured according to device battery difference aging conditions, can be improved the accuracy of voltameter metering.
In addition, the backup voltameter parameter can obtain currently according to certain time interval in the process of running for equipment Voltameter parameter and save.For example, equipment is in the process of running, in each interval of one day the voltameter parameter current to voltameter into Row is obtained and is saved, while replacing the voltameter parameter of last preservation, to complete the backup to voltameter parameter, guarantees backup Voltameter parameter is accurately adapted to the battery of current device.
103, when there are the backup voltameter parameter, extract the backup voltameter parameter and to the voltameter into Row configuration.
Further, so that the voltameter is measured according to the backup voltameter parameter.Specifically, this step The middle embodiment configured according to voltameter parameter to voltameter can be with reference to voltameter parameter configuration side in the prior art Formula, the embodiment of the present invention are not done this and are excessively repeated.
Equipment, which is first, at this time is shown when detecting that equipment voltameter resets in step 101 for the embodiment of the present invention Using or for reactivating after system is powered down, therefore detected in a step 102 to the presence or absence of backup voltameter parameter, And show that equipment is reactivates at this time after power down when detecting the presence of backup voltameter parameter, and the Backup Data is to set The preceding newest backup parameter for system is powered down then obtains backup voltameter parameter and using the backup parameter to electricity in this step Meter is configured, and voltameter is enabled to directly to be measured according to the current state of current device battery, without according to setting The standby interior volume production parameter initially configured is measured, and is avoided and is carried out meter caused by configuration metering still according to volume production parameter at this time Measure the lower problem of accuracy.
The optimization method of equipment voltameter metering provided in an embodiment of the present invention, the prior art is restarted in device looses power Afterwards, when voltameter carries out configuration metering still according to volume production parameter of the initial configuration in equipment, caused voltameter metering is quasi- The lower problem of true property, the embodiment of the present invention are sentenced when equipment starts, first to whether voltameter in equipment occurs to reset It is disconnected, and when judging result is that voltameter resets, it detects whether to preserve backup voltameter parameter, if detecting the presence of backup electricity Voltameter is configured using backup parameter when meter parameter, therefore compared with the prior art, the embodiment of the present invention can be Backup voltameter parameter is saved in equipment running process, thus using backup voltameter parameter to electricity after device looses power is restarted Meter is configured, and is avoided configure still according to volume production parameter of the initial configuration in equipment after device looses power is restarted and be made At the lower problem of accurate measurement rate, to improve the accuracy of voltameter metering.
Further, as the refinement and extension to embodiment illustrated in fig. 1, the embodiment of the invention also provides another kinds to set The optimization method of standby voltameter metering, as shown in Figure 2.
201, when equipment starts, judge whether voltameter resets.
For the embodiment of the present invention, the step 201 may include: to obtain current electric quantity meter parameter and preset voltameter ginseng Number;When the current electric quantity meter parameter is identical with the preset voltameter parameter, determine that the voltameter resets.It is described Preset voltameter parameter is the default parameters of voltameter when the equipment is dispatched from the factory, and is carried in the current electric quantity meter parameter described The first version information of voltameter parameter.And the version information can be configured according to different application scenarios, such as Setting version number is 00 when equipment is dispatched from the factory, and is carrying out repairing the version number when volume production parameter updates later every time Change, such as 01,02, but not limited to this.
It should be noted that current electric quantity meter parameter described in this step is identical as preset voltameter parameter, Ke Yiwei Current electric quantity meter parameter and preset voltameter parameter are all identical, or identical number of parameters is more than certain quantity model It encloses.For example, separately included 4 kinds of parameters in current electric quantity meter parameter and preset voltameter parameter, i.e., battery capacity, battery mark Title voltage, battery corresponding voltage value and cell cutoff charging current when being full of, and can when this four parameters are identical To be judged as that voltameter resets, or when in this four parameters there are three parameters be it is identical, also may determine that as electricity Meter resets.Certainly, this step can also be judged according to the state of the flag bit of voltameter, the embodiment of the present invention pair This is not specifically limited.
202, amount to obtain produces electricity meter parameter.
Wherein, the volume production voltameter parameter is matching for the voltameter generated according to the characteristic and parameter of the device battery Parameter is set, and carries the second edition information of the voltameter parameter in the volume production parameter, and the version information is used for Identify the version of the voltameter parameter.Specifically, when updating the volume production parameter of voltameter, the version of voltameter parameter With update.For the embodiment of the present invention, the voltameter parameter of volume production and backup voltameter parameter can be maintained in equipment Local storage zone, can make volume production voltameter parameter and backup voltameter parameter when device looses power that can't lose, In order to be measured according to the two voltameter parameters and determine the parameter configured to voltameter.
If 203a, the voltameter reset, detect whether there is backup voltameter parameter.
Wherein, the backup voltameter parameter is described for calibrating in the apparatus according to preset time interval preservation The parameter of voltameter, and specific concept explanation can with reference to accordingly being described in the step 102, the embodiment of the present invention to this not It repeats again.
204a, third version letter when there are the backup voltameter parameter, in the detection backup voltameter parameter It ceases whether identical as the second edition information.
It should be noted that when device systems update, if voltameter volume production parameter needs to update, more new procedures meeting Volume production voltameter parameter is updated, and configures corresponding version information in voltameter parameter.Therefore, when in the presence of backup letter Show that equipment is power down after a period of use and reactivates at this time when breath, although there is backup voltameter parameter at this time, There is still a need for being detected to the version information in volume production voltameter parameter, to judge that equipment voltameter volume production parameter whether there is It updates.And configured when device systems are updated using the volume production voltameter parameter configured in new system, it is standby without using Part voltameter parameter.
205a, if they are the same, then extract the backup voltameter parameter and configure to the voltameter.
For the embodiment of the present invention, working as when the backup voltameter parameter saved when running before equipment starts with equipment When preceding voltameter parameter version is consistent, show that the version of the equipment voltameter volume production parameter before and after device looses power does not update, institute The parameter of device battery current state is closest to the backup voltameter parameter saved in a device at this time, therefore in this step It is middle that voltameter is configured using backup voltameter parameter, it can utmostly ensure the accuracy of voltameter metering.
If step 205b arranged side by side, the third version information and the second edition information are not with the step 205a Together, then the voltameter is configured using the volume production voltameter parameter.
For example, detect that the version information in backup voltameter parameter is 03, and the voltameter of the volume production at this time ginseng got Number version informations be 04, show system is powered down restart after voltameter volume production parameter version update, so need at this time by Voltameter is configured according to the volume production voltameter parameter configured after update.
For the embodiment of the present invention, by first detecting whether that there are standby when detecting that equipment voltameter resets Part voltameter parameter, and further detection backup voltameter parameter and saved in equipment at this time when there is backup voltameter parameter Volume production voltameter parameter in version information it is whether identical, to ensure to adopt when equipment voltameter volume production parameter updates Voltameter is configured with updated volume production voltameter parameter, power down is used when equipment voltameter volume production parameter does not update The backup voltameter parameter of preceding preservation configures voltameter, can ensure the accurate of voltameter parameter configuration from many aspects Property, and then improve the accuracy of voltameter metering.
If step 203b arranged side by side, the voltameter do not reset with the step 203a, the first edition is detected Whether this information and the second edition information are identical.
It should be noted that show that equipment voltameter is normal operating condition when voltameter does not reset, and in electricity In meter normal use process, voltameter can continue acquisition battery status parameter and automatically updated using self study for configuring The parameter of voltameter.Therefore when voltameter does not reset, it is only necessary to it is detected to whether equipment voltameter volume production parameter updates, And voltameter is configured using the volume production voltameter parameter under latest edition in system update, to ensure voltameter parameter The accuracy of configuration, and then improve the accuracy of voltameter metering.
204b, if it is different, then being configured using the volume production voltameter parameter to the voltameter.
Likewise, needing to join using the initialization configured after updating when detecting that equipment voltameter volume production parameter updates Several pairs of voltameters configure.
Further, the method according to step 201-205b is illustrated in conjunction with voltameter parameter configuration as shown in Figure 3 Figure, the embodiment of the present invention can also provide the embodiment party configured under a kind of specific application scenarios of combination to voltameter parameter Formula, the implementation process is divided into four execution steps, specifically, as described below:
The first step, when detect equipment starting when, judge whether the voltameter in equipment resets, if voltameter does not have It resets, then detects the version information in parameter current and whether the version information in volume production voltameter parameter is consistent, if different It causes, then utilization electricity production meter parameter configures voltameter, and keeps current electric quantity meter parameter constant if consistent.
Second step, when detecting that voltameter resets, detection trigger whether there is backup voltameter parameter.
Third step, when exist backup voltameter parameter when, further detect backup voltameter parameter in version information and Whether the version information in volume production voltameter parameter is consistent, if unanimously, being matched using backup voltameter parameter to voltameter It sets.
4th step, the version information when backup voltameter parameter is not present or in backup voltameter parameter and volume production electricity When version information in meter parameter is inconsistent, equal utilization electricity production meter parameter configures voltameter.
But it should be recognized that specific embodiment described in above-mentioned application scenarios is only exemplary, not this hair Unique specific embodiment of bright embodiment, herein be only meet method described in the embodiment of the present invention optimal enforcement mode it One.
Further, as the realization to method shown in above-mentioned Fig. 1 and Fig. 2, the embodiment of the invention also provides one kind to set The optimization device of standby voltameter metering.The Installation practice is corresponding with preceding method embodiment, is easy to read, present apparatus implementation Example no longer repeats the detail content in preceding method embodiment one by one, it should be understood that the device energy in the present embodiment Enough corresponding full contents realized in preceding method embodiment.As shown in figure 4, the device includes: judging unit 31, detection unit 32, extraction unit 33, configuration unit 34, wherein
Judging unit 31 can be used for judging whether voltameter resets when equipment starts.
Detection unit 32 detects whether if can be used for the judging unit 31 judges that the voltameter resets In the presence of backup voltameter parameter, the backup voltameter parameter is to save to be used for school in the apparatus according to preset time interval The parameter of the quasi- voltameter.
Extraction unit 33 can be used for when there are the backup voltameter parameter, extract the backup voltameter parameter.
Configuration unit 34, the backup voltameter parameter that can be used for extracting using the extraction unit 33 is to the voltameter It is configured, so that the voltameter is measured according to the backup voltameter parameter.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiment of the invention also provides another equipment electricity The optimization device of meter metering, for being realized to above-mentioned method shown in Fig. 2.The Installation practice and preceding method are implemented Example is corresponding, be it is easy to read, present apparatus embodiment no longer repeats the detail content in preceding method embodiment one by one, but It will be appreciated that the device in the present embodiment can correspond to the full content realized in preceding method embodiment.As shown in figure 5, should Device includes: judging unit 41, detection unit 42, extraction unit 43, configuration unit 44, wherein
Judging unit 41 can be used for judging whether voltameter resets when equipment starts.
Detection unit 42 detects whether if can be used for the judging unit 41 judges that the voltameter resets In the presence of backup voltameter parameter, the backup voltameter parameter is to save to be used for school in the apparatus according to preset time interval The parameter of the quasi- voltameter.
Extraction unit 43 can be used for when there are the backup voltameter parameter, extract the backup voltameter parameter.
Configuration unit 44, the backup voltameter parameter that can be used for extracting using the extraction unit 33 is to the voltameter It is configured, so that the voltameter is measured according to the backup voltameter parameter.
Further, described device further include:
Acquiring unit 45, can be used for amount to obtain electricity production meter parameter, and the volume production voltameter parameter is to set according to What the characteristic and parameter of standby battery generated, and the second edition information of the voltameter parameter is carried in the volume production parameter, The version information is used to identify the version of the voltameter parameter.
Further, the judging unit 41 includes:
Module 4101 is obtained, can be used for obtaining current electric quantity meter parameter and preset voltameter parameter.
Determining module 4102 can be used for when the current electric quantity meter parameter is identical with the preset voltameter parameter, Determine that the voltameter resets.
Further,
The detection unit 42 can be also used for when there are the backup voltameter parameter, detect the backup electricity Whether the third version information and the second edition information in meter parameter are identical.
The extraction unit 43 extracts institute if it is identical as second edition information specifically to can be used for third version information It states backup voltameter parameter and the voltameter is configured.
Further, the configuration unit 44, if can be also used for the third version information and second edition letter Breath is different, then is configured using the volume production voltameter parameter to the voltameter.
Further,
The detection unit 42 does not reset if can be also used for the voltameter, detects the first version letter Whether breath and the second edition information are identical.
The configuration unit 44 can be also used for if it is different, then using the volume production voltameter parameter to the voltameter It is configured.
The optimization device of another kind equipment voltameter metering provided in an embodiment of the present invention.Described device includes: that judgement is single Member, detection unit, extraction unit and configuration unit.For the prior art after device looses power is restarted, voltameter is still according to most When just volume production parameter of the configuration in equipment carries out configuration metering, the lower problem of caused voltameter metering accuracy, this hair Bright embodiment judges when equipment starts, first whether voltameter in equipment occurs to reset, and working as judging result is electricity It when meter resets, detects whether to preserve backup voltameter parameter, if utilizing backup when detecting the presence of backup voltameter parameter Parameter configures voltameter, therefore compared with the prior art, and the embodiment of the present invention can save in equipment running process Backup voltameter parameter is avoided to be configured using backup voltameter parameter to voltameter after device looses power is restarted Accurate measurement rate caused by being configured after device looses power is restarted still according to volume production parameter of the initial configuration in equipment compared with Low problem, to improve the accuracy of voltameter metering.In addition, passing through the version for obtaining and being stored in voltameter parameter Information, and when detecting that version information changes, voltameter is matched using updated new version voltameter parameter It sets, further improves the accuracy of voltameter metering.
Since the optimization device that the equipment voltameter that the present embodiment is introduced measures is that can execute in the embodiment of the present invention The metering of equipment voltameter optimization method device, so measured based on equipment voltameter described in the embodiment of the present invention Optimization method, those skilled in the art can understand the present embodiment equipment voltameter metering optimization device it is specific Embodiment and its various change form, so how to realize this hair for the optimization device of equipment voltameter metering herein The optimization method of more equipment voltameters metering in bright embodiment is no longer discussed in detail.As long as those skilled in the art implement Device used by the optimization method that equipment voltameter measures in the embodiment of the present invention, belongs to the model to be protected of the application It encloses.
The text processing apparatus includes processor and memory, above-mentioned judging unit 31, detection unit 32, extraction unit 33 and configuration unit 34 etc. store in memory as program unit, are executed by processor stored in memory above-mentioned Program unit realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, the accuracy of voltameter metering is improved by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of non-transient computer readable storage medium, the non-transient computer is readable to be deposited Storage media stores computer instruction, and the computer instruction makes the computer execute equipment voltameter described in above-described embodiment The optimization method of metering.
The embodiment of the invention provides a kind of electronic equipment, as shown in Figure 6, comprising: at least one processor (processor)41;And at least one processor (memory) 52, the bus 53 being connect with the processor 51;Wherein,
The processor 51, memory 52 complete mutual communication by the bus 53;
The processor 51 is used to call the program instruction in the memory 52, to execute following steps: when equipment opens When dynamic, judge whether voltameter resets;If so, detecting whether there is backup voltameter parameter, the backup voltameter Parameter is to save according to preset time interval in the apparatus for calibrating the parameter of the voltameter;When there are the backups When voltameter parameter, extracts the backup voltameter parameter and the voltameter is configured, so that the voltameter root It is measured according to the backup voltameter parameter.
Further, described to judge whether voltameter occurs reset and include:
Current electric quantity meter parameter and preset voltameter parameter are obtained, when the preset voltameter parameter is that the equipment is dispatched from the factory The default parameters of the voltameter carries the first version information of the voltameter parameter in the current electric quantity meter parameter, The version information is used to identify the version of the voltameter parameter;
When the current electric quantity meter parameter is identical with the preset voltameter parameter, it is multiple to determine that the voltameter occurs Position.
Further, the method also includes:
Amount to obtain produces electricity meter parameter, and the volume production voltameter parameter is raw according to the characteristic and parameter of the device battery At, and the second edition information of the voltameter parameter is carried in the volume production parameter.
Further, if the voltameter does not reset, the first version information and the second edition are detected Whether information is identical;
If it is different, then being configured using the volume production voltameter parameter to the voltameter.
Further, the third version information of the voltameter parameter, institute are also carried in the backup voltameter parameter It states when there are the backup voltameter parameter, the method can also include:
It detects third version information and whether the second edition information is identical;
It is described extract the backup voltameter parameter and the voltameter configure include:
If they are the same, then it extracts the backup voltameter parameter and the voltameter is configured.
Further, the method also includes:
If the third version information is different from the second edition information, using the volume production voltameter parameter to institute Voltameter is stated to be configured.
Equipment in the embodiment of the present invention can be server, PC, PAD, mobile phone etc..
The embodiment of the invention also provides a kind of computer program products, when executing on data processing equipment, are suitable for It executes the program of initialization there are as below methods step: when equipment starting, judging whether voltameter resets;If so, inspection It surveys and whether there is backup voltameter parameter, the backup voltameter parameter is to save in the apparatus according to preset time interval For calibrating the parameter of the voltameter;When there are the backup voltameter parameter, the backup voltameter parameter is extracted simultaneously The voltameter is configured, so that the voltameter is measured according to the backup voltameter parameter.
Further, described to judge whether voltameter occurs reset and include:
Current electric quantity meter parameter and preset voltameter parameter are obtained, when the preset voltameter parameter is that the equipment is dispatched from the factory The default parameters of the voltameter carries the first version information of the voltameter parameter in the current electric quantity meter parameter, The version information is used to identify the version of the voltameter parameter;
When the current electric quantity meter parameter is identical with the preset voltameter parameter, it is multiple to determine that the voltameter occurs Position.
Further, the method also includes:
Amount to obtain produces electricity meter parameter, and the volume production voltameter parameter is raw according to the characteristic and parameter of the device battery At, and the second edition information of the voltameter parameter is carried in the volume production parameter.
Further, if the voltameter does not reset, the first version information and the second edition are detected Whether information is identical;
If it is different, then being configured using the volume production voltameter parameter to the voltameter.
Further, the third version information of the voltameter parameter, institute are also carried in the backup voltameter parameter It states when there are the backup voltameter parameter, the method can also include:
It detects third version information and whether the second edition information is identical;
It is described extract the backup voltameter parameter and the voltameter configure include:
If they are the same, then it extracts the backup voltameter parameter and the voltameter is configured.
Further, the method also includes:
If the third version information is different from the second edition information, using the volume production voltameter parameter to institute Voltameter is stated to be configured.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of optimization method of equipment voltameter metering, which is characterized in that the described method includes:
When equipment starting, judge whether voltameter resets;
If so, detecting whether there is backup voltameter parameter, the backup voltameter parameter is to protect according to preset time interval It deposits in the apparatus for calibrating the parameter of the voltameter;
When there are the backup voltameter parameter, extracts the backup voltameter parameter and the voltameter is configured, So that the voltameter is measured according to the backup voltameter parameter.
2. judging whether voltameter occurs reset and include: the method according to claim 1, wherein described
Obtain current electric quantity meter parameter and preset voltameter parameter, the preset voltameter parameter be when the equipment is dispatched from the factory described in The default parameters of voltameter carries the first version information of the voltameter parameter in the current electric quantity meter parameter, described Version information is used to identify the version of the voltameter parameter;
When the current electric quantity meter parameter is identical with the preset voltameter parameter, determine that the voltameter resets.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Amount to obtain produces electricity meter parameter, and the volume production voltameter parameter is to be generated according to the characteristic and parameter of the device battery , and the second edition information of the voltameter parameter is carried in the volume production parameter.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the voltameter does not reset, detects the first version information and whether the second edition information is identical;
If it is different, then being configured using the volume production voltameter parameter to the voltameter.
5. according to the method described in claim 3, it is characterized in that, also carrying the electricity in the backup voltameter parameter The third version information of parameter is counted, described when there are the backup voltameter parameter, the method can also include:
It detects third version information and whether the second edition information is identical;
It is described extract the backup voltameter parameter and the voltameter configure include:
If they are the same, then it extracts the backup voltameter parameter and the voltameter is configured.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
If the third version information is different from the second edition information, using the volume production voltameter parameter to the electricity Meter is configured.
7. a kind of optimization device of equipment voltameter metering, which is characterized in that described device includes:
Judging unit, for judging whether voltameter resets when equipment starting;
Detection unit detects whether there is backup voltameter parameter if resetting for the voltameter, the backup electricity Meter parameter is to save according to preset time interval in the apparatus for calibrating the parameter of the voltameter;
Extraction unit, for extracting the backup voltameter parameter when there are the backup voltameter parameter;
Configuration unit, for being configured using the backup voltameter parameter to the voltameter, so that the voltameter It is measured according to the backup voltameter parameter.
8. device according to claim 7, which is characterized in that the judging unit includes:
Module is obtained, by obtaining parameter and preset voltameter parameter based on current electric quantity, the preset voltameter parameter is described The default parameters of voltameter when equipment is dispatched from the factory carries the first of the voltameter parameter in the current electric quantity meter parameter Version information, the version information are used to identify the version of the voltameter parameter;
Determining module, by determining the electricity when parameter is identical with the preset voltameter parameter based on the current electric quantity Meter resets.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require 1 to the equipment voltameter described in any one of claim 6 The optimization method of metering.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of realizations are as weighed Benefit require 1 to the equipment voltameter metering described in any one of claim 6 optimization method.
CN201810612712.7A 2018-06-14 2018-06-14 Optimization method and device for metering of equipment electricity meter and electronic equipment Active CN109116290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810612712.7A CN109116290B (en) 2018-06-14 2018-06-14 Optimization method and device for metering of equipment electricity meter and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810612712.7A CN109116290B (en) 2018-06-14 2018-06-14 Optimization method and device for metering of equipment electricity meter and electronic equipment

Publications (2)

Publication Number Publication Date
CN109116290A true CN109116290A (en) 2019-01-01
CN109116290B CN109116290B (en) 2020-08-11

Family

ID=64821971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810612712.7A Active CN109116290B (en) 2018-06-14 2018-06-14 Optimization method and device for metering of equipment electricity meter and electronic equipment

Country Status (1)

Country Link
CN (1) CN109116290B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011257226A (en) * 2010-06-08 2011-12-22 Mazda Motor Corp Detection method and detection device for residual capacity of battery
CN102946479A (en) * 2012-11-02 2013-02-27 惠州Tcl移动通信有限公司 Method for mobile terminal to update electric quantity of battery and mobile terminal
CN103685706A (en) * 2012-09-21 2014-03-26 中兴通讯股份有限公司 Method for correcting electric quantity of mobile terminal and mobile terminal
CN104301499A (en) * 2013-07-15 2015-01-21 腾讯科技(深圳)有限公司 Method and device for analyzing battery capacity records of mobile terminal, platform and mobile terminal
CN105470590A (en) * 2014-09-05 2016-04-06 宇龙计算机通信科技(深圳)有限公司 Method and device for managing battery parameters
CN106680728A (en) * 2016-12-30 2017-05-17 深圳天珑无线科技有限公司 Electricity quantity detecting method and device
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment
CN107295175A (en) * 2017-06-23 2017-10-24 广东欧珀移动通信有限公司 A kind of display control method, device, storage medium and the mobile terminal of mobile terminal electricity
CN107911438A (en) * 2017-11-06 2018-04-13 出门问问信息科技有限公司 The method, apparatus and system of data processing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011257226A (en) * 2010-06-08 2011-12-22 Mazda Motor Corp Detection method and detection device for residual capacity of battery
CN103685706A (en) * 2012-09-21 2014-03-26 中兴通讯股份有限公司 Method for correcting electric quantity of mobile terminal and mobile terminal
CN102946479A (en) * 2012-11-02 2013-02-27 惠州Tcl移动通信有限公司 Method for mobile terminal to update electric quantity of battery and mobile terminal
CN104301499A (en) * 2013-07-15 2015-01-21 腾讯科技(深圳)有限公司 Method and device for analyzing battery capacity records of mobile terminal, platform and mobile terminal
CN105470590A (en) * 2014-09-05 2016-04-06 宇龙计算机通信科技(深圳)有限公司 Method and device for managing battery parameters
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment
CN106680728A (en) * 2016-12-30 2017-05-17 深圳天珑无线科技有限公司 Electricity quantity detecting method and device
CN107295175A (en) * 2017-06-23 2017-10-24 广东欧珀移动通信有限公司 A kind of display control method, device, storage medium and the mobile terminal of mobile terminal electricity
CN107911438A (en) * 2017-11-06 2018-04-13 出门问问信息科技有限公司 The method, apparatus and system of data processing

Also Published As

Publication number Publication date
CN109116290B (en) 2020-08-11

Similar Documents

Publication Publication Date Title
US11704221B2 (en) Systems and methods for collecting, tracking, and storing system performance and event data for computing devices
CN110709717A (en) Method for estimating battery health of mobile device based on relaxation voltage
US20190353709A1 (en) Trusted battery meter and battery monitoring system
CN111176575A (en) SSD (solid State disk) service life prediction method, system, terminal and storage medium based on Prophet model
WO2016145621A1 (en) Electrical power estimating method and terminal
CN110033130A (en) The monitoring method and device of abnormal traffic
CN108254697A (en) Battery type detection method, detection terminal and storage medium
CN106021054A (en) Method and apparatus for testing upgrading and downgrading stability of BMC
CN108776634A (en) Cabinet environment abnormality eliminating method and device
CN108051755A (en) Battery internal resistance acquisition method and device, battery management system and computer storage readable medium
CN104954528A (en) Detection method and apparatus of electricity consumption information of terminal equipment
CN108919132B (en) Method and device for tracking overdischarge of battery, chip, battery and aircraft
CN109116290A (en) A kind of optimization method, device and the electronic equipment of the metering of equipment voltameter
CN104350476B (en) A kind of version detection period control method and device
CN111312326A (en) Flash memory life testing method and device, power acquisition terminal and storage medium
CN116047296A (en) Method for predicting battery cut-off capacity, terminal device and storage medium
CN113608953B (en) Test data generation method and device, electronic equipment and readable storage medium
CN111800807A (en) Method and device for alarming number of base station users
JP7395812B2 (en) Battery condition management system and method
CN106371019A (en) Electric quantity display system and method
Kumar et al. Battery health estimation for iot devices using v-edge dynamics
CN105514924B (en) A kind of leakage protection method and device of terminal device
US20220247196A1 (en) Schedule-based charging of batteries
CN105188071A (en) Method, device and system for testing terminal power consumption
US8515698B2 (en) Digital power meter communication system, method and computer-readable storage medium for storing thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant