CN109901787A - The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system - Google Patents

The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system Download PDF

Info

Publication number
CN109901787A
CN109901787A CN201711298702.2A CN201711298702A CN109901787A CN 109901787 A CN109901787 A CN 109901787A CN 201711298702 A CN201711298702 A CN 201711298702A CN 109901787 A CN109901787 A CN 109901787A
Authority
CN
China
Prior art keywords
energy
state parameter
storage
parameter
flash
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711298702.2A
Other languages
Chinese (zh)
Inventor
米耀忠
黄饶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201711298702.2A priority Critical patent/CN109901787A/en
Priority to PCT/CN2018/119336 priority patent/WO2019109941A1/en
Publication of CN109901787A publication Critical patent/CN109901787A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present invention proposes the storage of energy-storage battery parameter, read method, device and equipment in a kind of energy-storage system, and wherein method comprises determining that the current state parameter of energy-storage battery;Current state parameter is stored in the non-volatile memory medium into energy-storage system;Judge the time interval at current time and the last storage state parameter into flash, if be less than threshold value;If time interval is not less than threshold value, current state parameter is deposited into flash.The integrality of energy-storage battery state parameter has not only been effectively ensured in this method, also improves the accuracy and reliability to energy-storage battery state-detection, the user experience is improved.

Description

The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system
Technical field
The present invention relates to the storages of energy-storage battery parameter, reading side in battery technology field more particularly to a kind of energy-storage system Method, device and equipment.
Background technique
With the enhancing of people's environmental consciousness, more and more new energy are exploited.After wherein the energy is developed, It is to utilize the battery as storage medium to be stored mostly.
In actual use, in order to guarantee the use reliability and safety of battery, it will usually obtain the surplus of battery The parameter informations such as remaining electricity, voltage, electric current, and the parameter information that will acquire is buffered in flash memory (Flash Memory), then Over time according to the parameter information in flash memory, the service condition of battery is detected.
However, generally there are the limitations of write-in number for above-mentioned flash memory, after flash memory write indegree is more than preset number, Flash memory will generate bad block, and the parameter information of caching is caused to be damaged, so that the service condition to battery judges inaccuracy, To reduce the safety and reliability that battery uses.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose energy-storage battery parameter storage method in a kind of energy-storage system.It should The integrality of energy-storage battery state parameter has not only been effectively ensured in method, also improves the accuracy to energy-storage battery state-detection And reliability, the user experience is improved.
Second object of the present invention is to propose a kind of read method of energy-storage battery parameter in energy-storage system.
Third object of the present invention is to propose a kind of storage device of energy-storage battery parameter in energy-storage system.
Fourth object of the present invention is to propose a kind of reading device of energy-storage battery parameter in energy-storage system.
5th purpose of the invention is to propose a kind of electronic equipment.
6th purpose of the invention is to propose a kind of computer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of depositing for energy-storage battery parameter in energy-storage system Method for storing, which comprises
Determine the current state parameter of the energy-storage battery;
The current state parameter is stored into the non-volatile memory medium in the energy-storage system;
Judge the time at current time and the last storage state parameter in flash (Flash Memory, flash memory) Interval, if be less than threshold value;
If the time interval is not less than threshold value, the current state parameter is deposited into flash.The present embodiment In the energy-storage system of offer in the storage method of energy-storage battery parameter, it is first determined the current state parameter of energy-storage battery, and will Current state parameter stores in the non-volatile memory medium into energy-storage system, then judges current time and the last time Into flash, whether the time interval of storage state parameter is less than threshold value, if judge time interval not less than threshold value, will work as Preceding state parameter is stored into flash.Hereby it is achieved that being avoided when carrying out storage operation to energy-storage battery state parameter Because the write-in number of flash media limits, and the impaired situation of the state parameter of storage is caused to occur, is not only effectively ensured The integrality of energy-storage battery state parameter, also improves the accuracy and reliability to energy-storage battery state-detection, improves User experience.
In addition, the storage method of energy-storage battery parameter can also have in the energy-storage system that the above embodiment of the present invention proposes Following additional technical characteristic:
In one embodiment of the invention, the judgement current time and the last time storage state into flash are joined Several time interval, if be greater than after threshold value, further includes:
If so, redefining the current state parameter of the energy-storage battery.
In another embodiment of the present invention, it non-volatile is deposited what current state parameter stored into energy-storage system While in storage media, the first check code is written in Xiang Suoshu non-volatile memory medium;Current state parameter storage is arrived While in flash, the second check code is written into flash.
In another embodiment of the present invention, the non-volatile memory medium is located in real-time timepiece chip.
In order to achieve the above object, the second aspect of the present invention embodiment proposes a kind of reading of energy-storage battery in energy-storage system Method, described device include:
The reading state parameter from non-volatile memory medium;
Verify the integrality of the state parameter read from non-volatile memory medium;If from non-volatile memory medium The state parameter of reading is complete, then calculates by the parameter that the state parameter carries out energy-storage system;If from non-volatile memory medium The state parameter of middle reading is imperfect, then the reading state parameter from flash;
After reading state parameter in the flash, the integrality of the state parameter read from flash is verified;If from The state parameter read in flash is complete, then calculates by the parameter that the state parameter carries out energy-storage system;If being read from flash The state parameter taken is imperfect, then the default parameter for reading energy-storage system is calculated.
In energy-storage system provided in this embodiment in the read method of energy-storage battery parameter, when getting read requests, By elder generation from non-volatile memory medium reading state parameter, and whether the state parameter for verifying reading complete, if complete It is calculated by the parameter that the state parameter carries out energy-storage system, otherwise the reading state parameter from flash, and verifies the state of reading Whether parameter is complete, calculates if complete by the parameter that the state parameter carries out energy-storage system, otherwise reads lacking for energy-storage system Parameter is saved to be calculated.Hereby it is achieved that when the energy-storage battery state parameter to reading carries out completeness check, it can be according to storage Can the corresponding check code of state parameter of battery realize verification operation, to improve to the accurate of energy-storage battery state-detection Property and reliability, meet with demand, further the user experience is improved.
In addition, the read method of energy-storage battery parameter can also have in the energy-storage system that the above embodiment of the present invention proposes Following additional technical characteristic:
In one embodiment of the invention, it is written with the first check code in the non-volatile memory medium, passes through institute State the integrality for the state parameter that the first verification code check is read from non-volatile memory medium;It is written in the flash Second check code passes through the integrality for the state parameter that the second verification code check is read from flash.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of depositing for energy-storage battery parameter in energy-storage system Storage device, described device include:
First determining module, for determining the current state parameter of the energy-storage battery;
First control module non-volatile is deposited for store into the energy-storage system by the current state parameter In storage media;
First judgment module, for judging current time and the last time into flash between the time of storage state parameter Every, if it is less than threshold value;
The current state parameter is stored in by the second control module if being not less than threshold value for the time interval Into flash.
In energy-storage system provided in this embodiment in the storage device of energy-storage battery parameter, it is first determined energy-storage battery is current State parameter, and current state parameter stored in the non-volatile memory medium into energy-storage system, then judgement is worked as Whether preceding moment and the last time time interval of storage state parameter into flash are less than threshold value, if judging time interval When not less than threshold value, current state parameter is stored into flash.Hereby it is achieved that energy-storage battery state parameter into When row storage operation, the write-in number limitation because of flash media is avoided, and leads to the impaired situation of state parameter of storage Occur, the integrality of energy-storage battery state parameter has not only been effectively ensured, has also improved to the accurate of energy-storage battery state-detection Property and reliability, the user experience is improved.
In addition, the storage device of energy-storage battery parameter can also have in the energy-storage system that the above embodiment of the present invention proposes Following additional technical characteristic:
In one embodiment of the invention, first control module is also used into the non-volatile memory medium The first check code is written;Second control module is also used to that the second check code is written into flash.
In one embodiment of the invention, the non-volatile memory medium is located in real-time timepiece chip.
In order to achieve the above object, the 4th aspect embodiment of the present invention proposes a kind of reading of energy-storage battery parameter in energy-storage system Device is taken, described device includes:
First read module, for the reading state parameter from non-volatile memory medium;
First correction verification module, for verifying the integrality of the state parameter read from non-volatile memory medium;
Processing module, if the state parameter for reading from non-volatile memory medium is complete, by the state parameter The parameter for carrying out energy-storage system calculates;
Second read module, if the state parameter for reading from non-volatile memory medium is imperfect, from flash Middle reading state parameter;
Second correction verification module, for verifying the state read from flash after reading state parameter in the flash The integrality of parameter;
The processing module carries out energy storage by the state parameter if the state parameter for reading from flash is complete The parameter of system calculates;If the state parameter read from flash is imperfect, the default parameter for reading energy-storage system is counted It calculates.
In energy-storage system provided in this embodiment in the reading device of energy-storage battery parameter, when getting read requests, By elder generation from non-volatile memory medium reading state parameter, and whether the state parameter for verifying reading complete, if complete It is calculated by the parameter that the state parameter carries out energy-storage system, otherwise the reading state parameter from flash, and verifies the state of reading Whether parameter is complete, calculates if complete by the parameter that the state parameter carries out energy-storage system, otherwise reads lacking for energy-storage system Parameter is saved to be calculated.Hereby it is achieved that when the energy-storage battery state parameter to reading carries out completeness check, it can be according to storage Can the corresponding check code of state parameter of battery realize verification operation, to improve to the accurate of energy-storage battery state-detection Property and reliability, meet with demand, further the user experience is improved.
In addition, the reading device of energy-storage battery parameter can also have in the energy-storage system that the above embodiment of the present invention proposes Following additional technical characteristic:
In one embodiment of the invention, it is written with the first check code in the non-volatile memory medium, passes through institute State the integrality for the state parameter that the first verification code check is read from non-volatile memory medium;It is written in the flash Second check code passes through the integrality for the state parameter that the second verification code check is read from flash.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of electronic equipment, comprising: memory, processing Device and communication port;
The communication port, for realizing the access communication of energy-storage battery state parameter;
The memory, for storing executable program code;
The processor, running for reading the executable program code stored in the memory can be performed with described The corresponding program of program code, with the storage method and reading for realizing energy-storage battery parameter in any energy-storage system Method.
In electronic equipment provided in this embodiment, it is first determined the current state parameter of energy-storage battery, and by current shape Then the storage of state parameter judges current time and the last to flash in the non-volatile memory medium into energy-storage system Whether the time interval of middle storage state parameter is less than threshold value, if judge time interval not less than threshold value, by current shape State parameter is stored into flash.Hereby it is achieved that avoiding when carrying out storage operation to energy-storage battery state parameter because dodging The write-in number limitation of medium is deposited, and the impaired situation of the state parameter of storage is caused to occur, energy storage has not only been effectively ensured The integrality of battery status parameter also improves the accuracy and reliability to energy-storage battery state-detection, improves user's body It tests.
In order to achieve the above object, sixth aspect present invention embodiment proposes a kind of computer readable storage medium, deposit thereon Computer program is contained, which realizes the storage of energy-storage battery parameter in any energy-storage system when being executed by processor Method and read method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the storage method of energy-storage battery parameter in the energy-storage system of one embodiment of the invention;
Fig. 2 is one embodiment of the invention real-time timepiece chip and chargeable capacitor and the signal of other device connection types Figure;
Fig. 3 is the flow chart of the read method of energy-storage battery parameter in the energy-storage system of one embodiment of the invention;
Fig. 4 is the structural schematic diagram of the storage device of energy-storage battery parameter in the energy-storage system of one embodiment of the invention;
Fig. 5 is the structural schematic diagram of the reading device of energy-storage battery parameter in the energy-storage system of one embodiment of the invention;
Fig. 6 is the structural schematic diagram of the electronic equipment of one embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
When storing present invention is generally directed to the battery parameter that in the prior art, will acquire to flash memory, be written because flash memory exists The limitation of number, and battery parameter is caused to be likely to be broken, so that the judgement inaccuracy of the service condition to battery, to reduce The problem of safety and reliability that battery uses, proposes a kind of storage method of energy-storage battery parameter in energy-storage system.
The storage method of energy-storage battery parameter in energy-storage system proposed by the present invention, it is first determined the current shape of energy-storage battery State parameter, and the current state parameter of energy-storage battery is stored in the non-volatile memory medium into energy-storage system, right family is sentenced The time interval at disconnected current time and the last storage state parameter in flash (Flash Memory, flash memory), if small In threshold value, if judging, not less than threshold value, current state parameter is deposited into flash for time interval.Hereby it is achieved that When carrying out storage operation to energy-storage battery state parameter, the write-in number limitation because of flash media is avoided, and leads to storage The impaired situation of state parameter occurs, and the integrality of energy-storage battery state parameter has not only been effectively ensured, has also improved to storage The accuracy and reliability of energy battery status detection, the user experience is improved.
The storage method of energy-storage battery parameter in energy-storage system provided in an embodiment of the present invention is carried out with reference to the accompanying drawing Detailed description.
Fig. 1 is the flow chart of the storage method of energy-storage battery parameter in the energy-storage system of one embodiment of the invention.
As described in Figure 1, the storage method of energy-storage battery parameter may include following in the energy-storage system of the embodiment of the present invention Step:
Step 101, the current state parameter of energy-storage battery is determined.
Specifically, in energy-storage system provided in this embodiment energy-storage battery parameter storage method, can be mentioned by the present invention The storage device of energy-storage battery parameter executes in the energy-storage system of confession, which can be configured in the electronic device, to realize The state parameter of energy-storage battery is controlled or managed.
Wherein, the state parameter of energy-storage battery may include in the present embodiment, but be not limited to: state-of-charge (State Of Charge, referred to as are as follows: SOC), voltage, electric current, internal resistance, temperature etc..
When specific implementation, it can obtain energy-storage battery by voltage sensor, current sensor and temperature sensor etc. and work as Preceding state parameter, the present invention are not particularly limited this.
Step 102, current state parameter is stored in the non-volatile memory medium into energy-storage system.
Specifically, after determining the current state parameter of energy-storage battery, in order to complete reliable storage energy storage The current state parameter of battery, the micro-control unit in storage device that the present embodiment passes through energy-storage battery parameter in energy-storage system (Microcontroller Unit, referred to as MCU), which stores the current state parameter of energy-storage battery to non-volatile memories, to be situated between In matter.
Wherein, non-volatile memory medium is located at real-time timepiece chip (Real Time Clock, abbreviation in the present embodiment It is internal for RTC).
It is understood that by the way that the current state parameter of energy-storage battery to be stored in non-volatile memory medium, energy The integrality of energy-storage battery state parameter has enough been effectively ensured.
It should be noted that being usually to pass through button cell to RTC to save space due in actual use Chip is powered, however there are the pot lives for button cell, therefore when button cell electricity exhausts, user is not noticeable, NVRAM area loss of data in RTC chip can be caused in user in unconscious, unwitting situation.
Therefore, in order to effectively avoid causing the storage stored in NVRAM area in RTC chip because of power supply unit not enough power supply The state parameter of energy battery is lost, and the present invention can first pass through the power supply system in energy-storage system and power to RTC chip.
Wherein, voltage when can be worked normally to voltage value provided by RTC chip according to RTC chip carries out adaptability Setting, the present invention are not especially limited this.For example, can be 3.3 volts (V).
Further, it while the present invention is powered by energy-storage system to RCT chip, also charges to chargeable capacitor Operation, thus can continue to be powered RTC chip by chargeable capacitor when the power supply system power down in energy-storage system, To ensure that the state parameter of the energy-storage battery of NVRAM area storage in RTC chip is not in lose.
In the present embodiment, when carrying out charging operations to chargeable capacitor, according to the normal working voltage of chargeable capacitor Charging operations are carried out, for example can be 5V, the present invention is not especially limited this.
Wherein, the chargeable capacitor in the present invention can be farad capacitor, and the present invention is not especially limited this.
When specific implementation, the feeder ear of real-time timepiece chip can be connect with one end of chargeable capacitor, specific connection side Formula, reference can be made to Fig. 2.
As shown in Fig. 2, chargeable capacitor is illustrated by taking farad capacitor as an example, wherein by by farad capacitor just The connection of the backup power source anode pin 3 of pole and RTC chip, and the cathode pin 4 of the cathode of farad capacitor and RTC chip is connected It connects, the purpose being powered to RTC chip can be realized.
In addition, RTC chip further includes following pin, crystal oscillator input/output pin 1 and 2, enable pin 5, data transfer tube Foot 6, communication clock pin 7 and main electricity anode pin 8.
Wherein, crystal oscillator input/output pin 1 and 2 is connect with clock circuit, to provide clock pulses for RTC chip.At this In embodiment, clock circuit provides the clock pulses using 1s as interval to RTC chip.
The pin 5 and pin 6 of RTC chip are connect with micro-control unit respectively, to be realized according to the control of micro-control unit The state parameter accessing operation of energy-storage battery.
Main electricity anode pin 8 is to realize purpose that energy-storage system is powered to RTC chip.
Step 103, judge the time interval at current time and the last storage state parameter into flash, if small In threshold value, if not less than thening follow the steps 104, it is no to then follow the steps 105.
In the present embodiment, flash is the physical medium for embedded device storing data.
Specifically, in order to avoid being limited because of the write-in number of flash media, and cause the state parameter of storage impaired Situation, the present embodiment is after the state parameter that energy-storage battery is current is stored into non-volatile memory medium, energy-storage system The storage device of middle energy-storage battery parameter is believed from the time for obtaining the history read-write operation of flash in energy-storage system in storage unit Breath, and obtain apart from the recent read-write operation moment at current time.
Then, it is poor the last read-write operation moment at current time and acquisition make, and by difference and threshold value into Row compares, and determines whether difference is greater than threshold value.If difference is not less than threshold value, illustrate that current time meets determining energy storage The current state parameter of battery is stored in the condition in the flash in energy-storage system, is otherwise unsatisfactory for condition.
Wherein, threshold value can carry out adaptability setting according to the characteristic of flash media read-write operation number, and the present invention is to this It is not especially limited.For example, can be 600 seconds (s), 650 seconds etc..
In the present embodiment, flash is used for the physical medium of embedded device storing data.
Step 104, current state parameter is deposited into flash.
Specifically, when determining that current time and the last time flash are written and read the time interval between the moment not When less than threshold value, the current state parameter of energy-storage battery can be stored directly in flash by the present embodiment by MCU, to realize Dual backup is carried out to the important parameter in the state parameter of energy-storage battery, so that the important shape of subsequent authentication energy-storage battery When state parameter, accuracy is higher.
Step 105, the current state parameter of energy-storage battery is redefined.
Specifically, when determining that it is small that current time and the last time flash are written and read the time interval between the moment When threshold value, then illustrate that the current state parameter of energy-storage battery cannot be completely written in flash.Therefore, the present embodiment can terminate pair The storage of the state parameter currently obtained operates, and reacquires the state parameter of energy-storage battery.
Further, the subsequent state parameter to energy-storage battery carries out completeness check for convenience, and the present invention is in determination When the current state parameter of energy-storage battery, the corresponding check code of state parameter may further determine that, and when executing storage operation, it can State parameter and corresponding check code are stored jointly, so that in the subsequent state parameter for reading energy-storage battery, It is whether complete legal that the state parameter read can be verified according to the check code of storage.
Specifically, while in the non-volatile memory medium current state parameter stored into energy-storage system, to The first check code is written in non-volatile memory medium;While by current state parameter deposit flash, into flash The second check code is written.
When specific implementation, the present embodiment can be verified current state parameter, the first check code, second according to mapping relations Code, the second check code are stored, and the present embodiment is not especially limited this.
Wherein, the first check code, the second check code may be, but not limited to, cyclic redundancy check code (Cyclic Redundancy Check, referred to as cyclic redundancy check code), Hamming code etc., the present invention is not especially limited this.
In energy-storage system provided in this embodiment in the storage method of energy-storage battery parameter, it is first determined energy-storage battery is current State parameter, and current state parameter stored in the non-volatile memory medium into energy-storage system, then judgement is worked as Whether preceding moment and the last time time interval of storage state parameter into flash are less than threshold value, if judging time interval When not less than threshold value, current state parameter is stored into flash.Hereby it is achieved that energy-storage battery state parameter into When row storage operation, the write-in number limitation because of flash media is avoided, and leads to the impaired situation of state parameter of storage Occur, the integrality of energy-storage battery state parameter has not only been effectively ensured, has also improved to the accurate of energy-storage battery state-detection Property and reliability, the user experience is improved.
By above-mentioned analysis it is found that the present invention is stored by energy-storage battery current state parameter to the non-volatile of energy-storage system Property storage medium in after, also judge current time and the last time interval from the storage state parameter to flash whether Less than threshold value, if time interval is not less than threshold value, by current state parameter storage to flash.Further, it will store up Can battery current state storage to after the non-volatile memory medium, flash of energy-storage system, the present invention can also be to storage Energy-storage battery state parameter be read, and to the state parameter of reading carry out completeness check.Below with reference to Fig. 3, The read method of energy-storage battery parameter in energy-storage system of the invention is described in detail.
Fig. 3 is the flow chart of the read method of energy-storage battery parameter in the energy-storage system of one embodiment of the present of invention.
As shown in figure 3, the read method of energy-storage battery parameter may include following in the energy-storage system of the embodiment of the present invention Step:
Step 301, energy-storage battery state parameter read requests are obtained.
When specific implementation, it can be sent out by micro-control unit to non-volatile memory medium, the memory of energy-storage system and flash Send read requests.
Step 302, according to read requests, the reading state parameter from non-volatile memory medium.
Step 303, the integrality for the state parameter that verification is read from non-volatile memory medium, executes step if complete Rapid 304, it is no to then follow the steps 305.
Specifically, due to being stored with the first check code in non-volatile memory medium, in non-volatile memory medium When the middle state parameter for reading energy-storage battery, can not only obtain corresponding state parameter can also obtain corresponding first verification Code.
In order to facilitate the state parameter integrality that verification obtains, the present embodiment is when obtaining state parameter, energy-storage battery ginseng Several reading devices can generate a check code (third check code) at random, thus the present invention can according to the check code of generation with obtain The first check code taken is matched, to determine whether the state parameter of the energy-storage battery read goes out active or damage.
Wherein, if the third check code generated at random is matched with the first check code, illustrate the state parameter of energy-storage battery Save complete, not active or damage out;If the third check code generated at random and the first check code mismatch, illustrate to store up The state parameter of energy battery is likely to occur phenomena such as loss or damage.
Step 304, it is calculated by the parameter that the state parameter carries out energy-storage system.
For example, if the state parameter read is the electric current of energy-storage battery, then can be carried out according to the current parameters of acquisition Integral operation, so that it may get the capacity information of energy-storage battery.
Step 305, the reading state parameter from flash.
Specifically, since flash also stores the state parameter of energy-storage battery, when determining third check code and first Check code mismatch when, the state parameter of energy-storage battery can be obtained from flash come determine energy-storage battery state parameter whether Completely.
Step 306, after reading state parameter in flash, the integrality of the state parameter read from flash is verified, It is no to then follow the steps 308 if completely thening follow the steps 307.
Specifically, state parameter and corresponding second check code due to also storing energy-storage battery in flash, root When reading the state parameter of energy-storage battery from flash according to read requests, the reading device of energy-storage battery parameter can also give birth at random At a check code (the 4th check code), then the 4th check code is matched with the second check code, to determine the storage read Whether the state parameter of energy battery goes out active or damage.
Wherein, if the 4th check code generated at random is matched with the second check code, illustrate the state parameter of energy-storage battery Save complete, not active or damage out;If the 4th check code generated at random and the second check code mismatch, illustrate to store up The state parameter of energy battery is likely to occur phenomena such as loss or damage.
Step 307, it is calculated by the parameter that the state parameter carries out energy-storage system.
Step 308, the default parameter for reading energy-storage system is calculated.
Specifically, then illustrating that non-volatile memories are situated between when the 4th check code generated at random and the second verification mismatch The energy-storage battery state parameter stored in matter and flash goes out active or damage, then at this time according to preset default parameter Mode calculates the state parameter of energy-storage battery.
Wherein, the state parameter of energy-storage battery can be, and battery health, battery inferior health, battery are abnormal etc., the present invention It is not specifically limited in this embodiment.
It is understood that the present invention is by being respectively stored in non-volatile memory medium for the state parameter of energy-storage battery And in flash, to realize the dual backup to energy-storage battery state parameter.Wherein, it is carried out by the state parameter of energy-storage battery It is first choice with non-volatile memory medium when storage, flash is time choosing.To carried out in the state parameter to energy-storage battery When whole property verifies, completeness check first can be carried out to the state parameter of non-volatile memory medium storage, if it find that read The state parameter of storage, and proofing state parameter integrality are then read in loss of data or damage from alternative flash, if on State the state parameter stored in the two occur state parameter lose or damage when, then according in energy-storage system default setting join Number mode calculates the state of energy-storage battery, to improve the accuracy and reliability to energy-storage battery detection.
In energy-storage system provided in this embodiment in the read method of energy-storage battery parameter, after reading instruction, first The reading state parameter from non-volatile memory medium, and whether the state parameter for verifying reading is complete, and the shape is pressed if complete The parameter that state parameter carries out energy-storage system calculates, otherwise the reading state parameter from flash, and the state parameter for verifying reading is It is no complete, it is calculated if complete by the parameter that the state parameter carries out energy-storage system, otherwise reads the default parameter of energy-storage system It is calculated.Hereby it is achieved that when the energy-storage battery state parameter to reading carries out completeness check, it can be according to energy-storage battery State parameter corresponding check code realize verification operation, to improve the accuracy to energy-storage battery state-detection and can It by property, meets with demand, further the user experience is improved.
In order to realize above-described embodiment, the invention also provides a kind of storage dresses of energy-storage battery parameter in energy-storage system It sets.
Fig. 4 is the structural schematic diagram of the storage device of energy-storage battery parameter in the energy-storage system of one embodiment of the invention.
As shown in figure 4, the storage device of energy-storage battery parameter includes: the first determining module 11, first in the energy-storage system Control module 12, first judgment module 13 and the second control module 14.
Wherein, the first determining module 11 is for determining the current state parameter of the energy-storage battery;
First control module 12 is used for the current state parameter storage is non-volatile into the energy-storage system In storage medium;
Wherein, non-volatile memory medium is located in real-time timepiece chip.
First judgment module 13 is for judging current time and the last time into flash between the time of storage state parameter Every, if it is less than threshold value;
If the second control module 14 is not less than threshold value for the time interval, the current state parameter is stored in Into flash.
Further, in one embodiment of the invention, first control module is also used to described non-volatile The first check code is written in storage medium;Second control module is also used to that the second check code is written into flash.
It should be noted that the aforementioned explanation to the storage method embodiment of energy-storage battery parameter in energy-storage system The storage device of energy-storage battery parameter suitable for the energy-storage system of the embodiment, realization principle is similar, and details are not described herein again.
In energy-storage system provided in this embodiment in the storage device of energy-storage battery parameter, it is first determined energy-storage battery is current State parameter, and current state parameter stored in the non-volatile memory medium into energy-storage system, then judgement is worked as Whether preceding moment and the last time time interval of storage state parameter into flash are less than threshold value, if judging time interval When not less than threshold value, current state parameter is stored into flash.Hereby it is achieved that energy-storage battery state parameter into When row storage operation, the write-in number limitation because of flash media is avoided, and leads to the impaired situation of state parameter of storage Occur, the integrality of energy-storage battery state parameter has not only been effectively ensured, has also improved to the accurate of energy-storage battery state-detection Property and reliability, the user experience is improved.
In order to realize above-described embodiment, the invention also provides a kind of reading dresses of energy-storage battery parameter in energy-storage system It sets.
Fig. 5 is the structural schematic diagram of the reading device of energy-storage battery parameter in the energy-storage system of one embodiment of the invention.
As shown in figure 5, the reading device of energy-storage battery parameter includes: the first read module 21, first in the energy-storage system Correction verification module 22, processing module 23, the second read module 24, the second correction verification module 25.
Wherein, the first read module 21 is used for the reading state parameter from non-volatile memory medium;
First correction verification module 22 is used to verify the integrality of the state parameter read from non-volatile memory medium;
If the state parameter that processing module 23 is used to read from non-volatile memory medium is complete, by the state parameter The parameter for carrying out energy-storage system calculates;
If the state parameter that the second read module 24 is used to read from non-volatile memory medium is imperfect, from Reading state parameter in flash;
Second correction verification module 25 is used for after reading state parameter in flash, verifies the state parameter read from flash Integrality;
If the state parameter that the processing module 23 is used to read from flash is complete, stored up by the state parameter The parameter of energy system calculates;If the state parameter read from flash is imperfect, the default parameter for reading energy-storage system is carried out It calculates.
Wherein, in the present embodiment, it is written with the first check code in the non-volatile memory medium, passes through described first The integrality for the state parameter that verification code check is read from non-volatile memory medium;The second school is written in the flash Code is tested, the integrality for the state parameter that the second verification code check is read from flash is passed through.
It should be noted that the aforementioned explanation to the read method embodiment of energy-storage battery parameter in energy-storage system The reading device of energy-storage battery parameter suitable for the energy-storage system of the embodiment, realization principle is similar, and details are not described herein again.
In energy-storage system provided in this embodiment in the reading device of energy-storage battery parameter, after reading instruction, first The reading state parameter from non-volatile memory medium, and whether the state parameter for verifying reading is complete, and the shape is pressed if complete The parameter that state parameter carries out energy-storage system calculates, otherwise the reading state parameter from flash, and the state parameter for verifying reading is It is no complete, it is calculated if complete by the parameter that the state parameter carries out energy-storage system, otherwise reads the default parameter of energy-storage system It is calculated.Hereby it is achieved that when the energy-storage battery state parameter to reading carries out completeness check, it can be according to energy-storage battery State parameter corresponding check code realize verification operation, to improve the accuracy to energy-storage battery state-detection and can It by property, meets with demand, further the user experience is improved.
In order to realize above-described embodiment, the present invention also proposes a kind of electronic equipment.
Fig. 6 is the structural schematic diagram of the electronic equipment of one embodiment of the invention.
Referring to Fig. 6, which includes memory 31, processor 32 and communication port 33;
The communication port 33 for realizing energy-storage battery state parameter access communication;
The memory 31 is for storing executable program code;
The processor 32 be used to read the executable program code that stores in the memory 31 run with it is described can The corresponding program of program code is executed, with the storage for realizing energy-storage battery parameter in energy-storage system described in above-described embodiment Method and read method.
Wherein, electronic equipment can be smart phone, electric car etc. in the present invention.
It should be noted that aforementioned to the solution of energy-storage battery parameter storage method and read method embodiment in energy-storage system The electronic equipment that explanation is also applied for the embodiment is released, realization principle is similar, and details are not described herein again.
In electronic equipment provided in this embodiment, it is first determined the current state parameter of energy-storage battery, and by current shape Then the storage of state parameter judges current time and the last to flash in the non-volatile memory medium into energy-storage system Whether the time interval of middle storage state parameter is less than threshold value, if judge time interval not less than threshold value, by current shape State parameter is stored into flash.Hereby it is achieved that avoiding when carrying out storage operation to energy-storage battery state parameter because dodging The write-in number limitation of medium is deposited, and the impaired situation of the state parameter of storage is caused to occur, energy storage has not only been effectively ensured The integrality of battery status parameter also improves the accuracy and reliability to energy-storage battery state-detection, improves user's body It tests.
In order to realize above-described embodiment, the invention also provides a kind of computer readable storage mediums.
The computer readable storage medium, is stored thereon with computer program, realizes when which is executed by processor State energy-storage battery parameter storage method and read method in the energy-storage system of embodiment.
In the present invention unless specifically defined or limited otherwise, the terms such as term " setting ", " connection " should do broad sense reason Solution, for example, it may be mechanical connection, is also possible to be electrically connected;It can be directly connected, the indirect phase of intermediary can also be passed through Even, the connection inside two elements or the interaction relationship of two elements be can be, unless otherwise restricted clearly.For this For the those of ordinary skill in field, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (13)

1. the storage method of energy-storage battery parameter in a kind of energy-storage system characterized by comprising
Determine the current state parameter of the energy-storage battery;
The current state parameter is stored into the non-volatile memory medium in the energy-storage system;
Judge the time interval at current time and the last storage state parameter into flash, if be less than threshold value;
If the time interval is not less than threshold value, the current state parameter is deposited into flash.
2. the storage method of energy-storage battery parameter in energy-storage system as described in claim 1, which is characterized in that the judgement is worked as The time interval at preceding moment and the last storage state parameter into flash, if be greater than after threshold value, further includes:
If so, redefining the current state parameter of the energy-storage battery.
3. the storage method of energy-storage battery parameter in energy-storage system as claimed in claim 1 or 2, which is characterized in that will be current State parameter while store in non-volatile memory medium into energy-storage system, in Xiang Suoshu non-volatile memory medium The first check code is written;While current state parameter is stored into flash, the second check code is written into flash.
4. the storage method of energy-storage battery parameter in energy-storage system as described in claim 1, which is characterized in that described non-volatile Property storage medium is located in real-time timepiece chip.
5. the reading of energy-storage battery parameter in a kind of energy-storage system based on storage method described in claim 1-4 any one Method characterized by comprising
The reading state parameter from non-volatile memory medium;
Verify the integrality of the state parameter read from non-volatile memory medium;If being read from non-volatile memory medium State parameter it is complete, then by the state parameter carry out energy-storage system parameter calculate;If being read from non-volatile memory medium The state parameter taken is imperfect, then the reading state parameter from flash;
After reading state parameter in the flash, the integrality of the state parameter read from flash is verified;If from flash The state parameter of middle reading is complete, then calculates by the parameter that the state parameter carries out energy-storage system;If the shape read from flash State parameter is imperfect, then the default parameter for reading energy-storage system is calculated.
6. the read method of energy-storage battery parameter as claimed in claim 5, which is characterized in that the non-volatile memory medium In be written with the first check code, pass through the state parameter that reads from non-volatile memory medium of the first verification code check Integrality;The second check code is written in the flash, the state read from flash by the second verification code check The integrality of parameter.
7. the storage of energy-storage battery parameter in a kind of energy-storage system based on storage method described in claim 1-4 any one Device characterized by comprising
First determining module, for determining the current state parameter of the energy-storage battery;
First control module, for the current state parameter storage to be situated between to the non-volatile memories in the energy-storage system In matter;
First judgment module is for judging the time interval at current time and the last storage state parameter into flash It is no to be less than threshold value;
The current state parameter is deposited by the second control module if being not less than threshold value for the time interval In flash.
8. the storage device of energy-storage battery parameter in energy-storage system as claimed in claim 7, which is characterized in that first control Molding block is also used to that the first check code is written into the non-volatile memory medium;Second control module be also used to The second check code is written in flash.
9. the storage device of energy-storage battery parameter in energy-storage system as claimed in claim 7, which is characterized in that described non-volatile Property storage medium is located in real-time timepiece chip.
10. the reading device of energy-storage battery parameter in a kind of energy-storage system based on read method described in claim 5 or 6, It is characterised by comprising:
First read module, for the reading state parameter from non-volatile memory medium;
First correction verification module, for verifying the integrality of the state parameter read from non-volatile memory medium;
Processing module is carried out if the state parameter for reading from non-volatile memory medium is complete by the state parameter The parameter of energy-storage system calculates;
Second read module is read from flash if the state parameter for reading from non-volatile memory medium is imperfect Take state parameter;
Second correction verification module, for verifying the state parameter read from flash after reading state parameter in the flash Integrality;
The processing module carries out energy-storage system by the state parameter if the state parameter for reading from flash is complete Parameter calculate;If the state parameter read from flash is imperfect, the default parameter for reading energy-storage system is calculated.
11. the reading device of energy-storage battery parameter as claimed in claim 10, which is characterized in that the non-volatile memories are situated between The first check code is written in matter, the state parameter read from non-volatile memory medium by the first verification code check Integrality;The second check code is written in the flash, the shape read from flash by the second verification code check The integrality of state parameter.
12. a kind of electronic equipment characterized by comprising memory, processor and communication port;
The communication port, for realizing the access communication of energy-storage battery state parameter;
The memory, for storing executable program code;
The processor is run and the executable program for reading the executable program code stored in the memory The corresponding program of code, with the storage for realizing energy-storage battery parameter in the energy-storage system as described in claim 1-6 is any Method or read method.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor When execution, the storage method and read method of energy-storage battery parameter in the energy-storage system as described in claim 1-6 is any are realized.
CN201711298702.2A 2017-12-08 2017-12-08 The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system Pending CN109901787A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711298702.2A CN109901787A (en) 2017-12-08 2017-12-08 The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system
PCT/CN2018/119336 WO2019109941A1 (en) 2017-12-08 2018-12-05 Method, apparatus and device for storing parameter of energy storage battery in energy storage system, and method, apparatus and device for reading parameter of energy storage battery in energy storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711298702.2A CN109901787A (en) 2017-12-08 2017-12-08 The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system

Publications (1)

Publication Number Publication Date
CN109901787A true CN109901787A (en) 2019-06-18

Family

ID=66750807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711298702.2A Pending CN109901787A (en) 2017-12-08 2017-12-08 The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system

Country Status (2)

Country Link
CN (1) CN109901787A (en)
WO (1) WO2019109941A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258922A (en) * 2020-01-14 2020-06-09 深圳天邦达科技有限公司 Reading method and device of threshold parameter
CN113791936A (en) * 2021-09-28 2021-12-14 中国第一汽车股份有限公司 Data backup method and device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091616A (en) * 2014-06-20 2014-10-08 广东九联科技股份有限公司 Method for detecting data consistency of set top box built-in flash chip
CN104699421A (en) * 2014-12-01 2015-06-10 华立仪表集团股份有限公司 Meter memory medium
CN105183386A (en) * 2015-09-14 2015-12-23 联想(北京)有限公司 Information processing method and electronic equipment
US20160034202A1 (en) * 2014-07-30 2016-02-04 Excelero Multi-tiered storage device system and method thereof
US20160231934A1 (en) * 2015-02-09 2016-08-11 International Business Machines Corporation Management of extents for space efficient storage volumes by reusing previously allocated extents
US20170285972A1 (en) * 2016-03-31 2017-10-05 EMC IP Holding Company LLC Managing ssd write quotas in data storage systems
CN107364359A (en) * 2017-08-01 2017-11-21 华南理工大学 A kind of extremely low electric automobile power battery management method of oneself power consumption

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201285600Y (en) * 2008-11-07 2009-08-05 深圳市聚奥能电子科技有限公司 Multi-parameter monitoring digital recorder instrument
CN101707265A (en) * 2009-11-11 2010-05-12 惠州市亿能电子有限公司 Novel battery management system suitable for mixed power automobile
CN102646439A (en) * 2011-02-21 2012-08-22 上海讯垒网络科技有限公司 Equipment for accessing information at high frequency in complex environment
CN103425438B (en) * 2013-07-15 2016-08-10 记忆科技(深圳)有限公司 Optimize method and the solid state hard disc thereof of write request of solid state disk

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091616A (en) * 2014-06-20 2014-10-08 广东九联科技股份有限公司 Method for detecting data consistency of set top box built-in flash chip
US20160034202A1 (en) * 2014-07-30 2016-02-04 Excelero Multi-tiered storage device system and method thereof
CN104699421A (en) * 2014-12-01 2015-06-10 华立仪表集团股份有限公司 Meter memory medium
US20160231934A1 (en) * 2015-02-09 2016-08-11 International Business Machines Corporation Management of extents for space efficient storage volumes by reusing previously allocated extents
CN105183386A (en) * 2015-09-14 2015-12-23 联想(北京)有限公司 Information processing method and electronic equipment
US20170285972A1 (en) * 2016-03-31 2017-10-05 EMC IP Holding Company LLC Managing ssd write quotas in data storage systems
CN107364359A (en) * 2017-08-01 2017-11-21 华南理工大学 A kind of extremely low electric automobile power battery management method of oneself power consumption

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258922A (en) * 2020-01-14 2020-06-09 深圳天邦达科技有限公司 Reading method and device of threshold parameter
CN111258922B (en) * 2020-01-14 2023-10-27 深圳天邦达科技有限公司 Method and device for reading threshold parameters
CN113791936A (en) * 2021-09-28 2021-12-14 中国第一汽车股份有限公司 Data backup method and device and storage medium

Also Published As

Publication number Publication date
WO2019109941A1 (en) 2019-06-13

Similar Documents

Publication Publication Date Title
US20010009361A1 (en) Method for monitoring operating parameters of a rechargeable power supply
KR100751141B1 (en) A Method and an Apparatus for Identifying a Battery
US10845417B2 (en) Battery state estimation device, battery control device, battery system, battery state estimation method
CN105045386B (en) Sleep state monitoring method and terminal, air-conditioner system
JP2017514127A (en) How to estimate battery health
US11762023B2 (en) Battery diagnosing system and method
KR102256602B1 (en) Apparatus and method for measuring voltage
KR102569897B1 (en) Method and apparatus for diagnosing vehicle battery
KR102256097B1 (en) Battery back
US6137264A (en) Battery pack
US11228063B2 (en) Battery pack for diagnosing fault of charging contactor
CN109901787A (en) The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system
EP3624249B1 (en) Battery pack
CN112541260A (en) Battery equalization control method and system, storage medium and electronic equipment
CN108387847A (en) Rechargeable battery charge-discharge test method, computer equipment and storage medium
CN111521945B (en) Battery health state detection method and device, electronic equipment and storage medium
CN115972985A (en) Battery pack balancing method and device, vehicle and storage medium
CN109903792A (en) The storage of energy-storage battery parameter, read method, device and equipment in energy-storage system
TW200849104A (en) Device for checking energy received by an antenna for preventing data corruption during a write operation in a non volatile transponder memory
CN110875610A (en) Electronic equipment power supply method and device, electronic equipment and storage medium
CN106772092B (en) Charging current setting system and method for obtaining battery voltage based on mobile terminal
CN115579989A (en) Charging control circuit and control method
US11808819B2 (en) Real time backup battery life check
CN205680443U (en) Capacitance detecting device detects device with power-on time
CN217087527U (en) Intelligent charging equipment with data storage and communication transmission combined

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190618

RJ01 Rejection of invention patent application after publication