CN112835530A - Method for prolonging service life of memory and air conditioner - Google Patents

Method for prolonging service life of memory and air conditioner Download PDF

Info

Publication number
CN112835530A
CN112835530A CN202110206314.7A CN202110206314A CN112835530A CN 112835530 A CN112835530 A CN 112835530A CN 202110206314 A CN202110206314 A CN 202110206314A CN 112835530 A CN112835530 A CN 112835530A
Authority
CN
China
Prior art keywords
data
memory
space
storage
grade
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
CN202110206314.7A
Other languages
Chinese (zh)
Inventor
李志逢
杨华生
邹宏亮
刘智荣
陈维旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110206314.7A priority Critical patent/CN112835530A/en
Publication of CN112835530A publication Critical patent/CN112835530A/en
Pending legal-status Critical Current

Links

Images

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
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]

Abstract

The invention discloses a method for prolonging the service life of a memory and an air conditioner, comprising the following steps: calculating the G value of each data according to the attribute of the data required to be stored in the memory, dividing a plurality of grade spaces according to the distribution range of the G value, wherein each grade space is used for respectively storing the data of the G value in the corresponding range; recording the sum of times of erasing and writing data between the storage areas corresponding to each grade space; when the sum of the times of erasing and writing data in the storage areas corresponding to the level space is larger than the preset erasing and writing times, a new storage interval is divided for the level space, and the data storage address corresponding to the level space is shifted to the new storage interval. The invention can continue to memorize after the service life of the initialization interval of the EEPROM chip is finished, thereby prolonging the service life of the memory on the product and enhancing the reliability of the product. Meanwhile, data with different characteristics are separately stored in different grade spaces, so that the service life of the memory can be prolonged to the maximum extent.

Description

Method for prolonging service life of memory and air conditioner
Technical Field
The invention relates to the technical field of memory data management, in particular to a method for prolonging the service life of a memory and an air conditioner.
Background
An EEPROM (electrically Erasable Programmable Read Only memory), namely an electronic erasing Read Only memory, is a memory chip with no data loss after power failure, has the characteristic that the stored data still exist after the power supply disappears, and can be erased and reprogrammed by the action of higher than common voltage; the device is widely applied to application occasions with high requirements on data storage safety and reliability.
The EEPROM has a fixed service life, and in the application of the EEPROM, frequent erasing operation on the EEPROM needs to be reduced as much as possible; in the prior art, the data stored in the memory is not classified and stored, and the service life cannot be prolonged to the maximum extent under the condition that the data to be stored are different in erasing frequency.
Disclosure of Invention
The invention provides a method for prolonging the service life of a memory and an air conditioner, aiming at solving the technical problem that the service life of the memory cannot be prolonged to the maximum extent under the condition that the characteristics of data stored in the memory are different in the prior art.
The technical scheme adopted by the invention is as follows:
the invention provides a method for prolonging the service life of a memory, which comprises the following steps:
calculating the grade G value of each data according to the attribute of the data needing to be stored in the memory, dividing a plurality of grade spaces according to the distribution range of the grade G value, wherein each grade space is used for respectively storing the data of the grade G value in the corresponding range;
taking a storage interval with corresponding capacity from the free storage intervals of the storage for each grade space to store data corresponding to the grade space;
recording the sum of times of erasing and writing data between the storage areas corresponding to each grade space;
when the sum of the times of erasing and writing data in the storage areas corresponding to the level space is larger than the preset erasing and writing times, a new storage interval is divided for the level space, and the data storage address corresponding to the level space is shifted to the new storage interval.
Further, the start point of the address of the new storage section is the end of the address of the storage section corresponding to the level space in which the erasure data has been recorded.
Preferably, the memory is an electronically erasable read only memory.
Further, the data to be stored is: set parameters and/or operating parameters of the product. The attributes of the data needing to be stored comprise: the preset adjustment coefficient k1, the preset adjustment coefficient k2, the preset erasing frequency F and the preset importance E of the set parameters and/or the running parameters of the product. And the G value calculation formula of the set parameters and/or the running parameters of the product is G = k 1F + k 2E.
Preferably, the preset write-in times are 95% of the preset maximum write-in times of the memory.
Preferably, the number of pages of the storage section corresponding to each of the hierarchical spaces is divided according to the data size corresponding to the hierarchical space.
And recording the sum of times of erasing and writing data of the grade space on the last page of the page number of the storage interval corresponding to each grade space.
The invention also provides an air conditioner which comprises a memory and a controller, wherein the controller uses the memory by using the method for prolonging the service life of the memory.
Compared with the prior art, the invention can continue to memorize after the service life of the initialization interval of the EEPROM chip is finished, thereby prolonging the service life of the memory on the product and enhancing the reliability of the product. Meanwhile, data with different characteristics are stored separately, so that the service life of the memory can be prolonged to the maximum extent.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart in an embodiment of the invention;
FIG. 2 is a diagram illustrating a memory space distribution according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The principles and construction of the present invention will be described in detail below with reference to the drawings and examples.
As shown in fig. 1 and fig. 2, the present invention provides a method for prolonging the storage life, comprising the steps of: calculating a grade G value according to the attribute of the data needing to be stored in the memory to obtain all G values corresponding to the data needing to be stored; dividing a plurality of grade spaces according to the distribution range of the G value, namely, each grade space corresponds to a G value range, and each grade space stores data of the G value in the corresponding range of the G value of the grade space; taking a storage interval with corresponding capacity from the free storage intervals of the storage for each grade space, and storing data corresponding to the grade space; and each grade space records the total number of times of erasing and writing data of the storage space occupied by the grade space; judging whether the sum of times of erasing and writing data of each level space is greater than the preset erasing and writing times, when the sum of times of erasing and writing data of the level space is greater than the preset erasing and writing times, dividing a new storage interval for the level space, and shifting the address of the data in the level space to the new storage interval, namely completing the backup and the migration of the data in the level space. Through the steps, the memory can be continuously memorized after the service life of the initialization interval of the memory is finished, so that the service life of the memory on a product is prolonged, and the reliability of the product is enhanced. Meanwhile, data with different characteristics are stored separately, so that the service life of the memory can be prolonged to the maximum extent.
And after the address of the data stored in the level space is shifted to a new storage interval, returning to the step of judging whether the sum of the times of erasing and writing data of each level space is greater than the preset erasing and writing times. And after the address of the data stored in the level space is shifted to a new storage interval, the total number of times of erasing and writing the data in the level space is recorded again so as to facilitate the next judgment.
The preset write-in times may be set to between 95% and 99% of the preset maximum write-in times, and are optimally set to 95% of the preset maximum write-in times of the memory. Data corruption prior to migration and backup of data is avoided.
And dividing the page number of the storage interval occupied by each grade space according to the data volume of the storage data corresponding to each grade space. Namely, the more the data amount corresponding to the grade space is, the more the occupied page number is, and the waste of the space is avoided. And the last page of the page number of the storage interval corresponding to each grade space records the sum of times of erasing and writing data of the grade space, so that the storage intervals corresponding to the grade spaces can be conveniently distinguished.
In a specific embodiment, the memory is an EEPROM chip, that is, an electronically erasable read only memory, which is a memory chip with no data loss after power failure, and has a characteristic that stored data still exists after a power supply disappears. The EEPROM chip is used for memorizing the set parameters or the operating parameters of a product, the EEPROM memory chip is usually selected to have a margin, and the service life of the EEPROM chip can be realized by fully utilizing the margin space through the method.
The method is particularly applied to a controller of an air conditioner, and the storage space is graded according to dimensions such as erasing frequency of data to be memorized, importance degree of parameters and the like; may be represented by the formula G = k 1F + k 2E; wherein k1 and k2 are preset adjustment coefficients; f is the preset erasing frequency, E is the importance degree of the preset parameter; determining the grade according to the value of G; taking an air conditioner controller as an example, the following table; each storage space can store all data to be stored, the EEPROM chip is generally erased and written in pages or blocks, and the quantity of the data stored in each page depends on the characteristics of the EEPROM chip.
Figure 792813DEST_PATH_IMAGE002
As shown in fig. 2, the hierarchical space a stores data with the maximum range of the value G according to the above steps, and the last page of the hierarchical space is the sum of the erasing times of the storage space, for example, the range of the value G corresponding to the hierarchical space a is 2.5 to 3.5, that is, the hierarchical space a mainly stores the on/off data; similarly, the level space B is data with the G value in the middle range, y pages of space are divided according to the actual situation, and the sum of times of erasing and writing the data of the storage space is memorized in the last page; the level space C is data with the G value in the minimum range, and is divided into z page space according to the actual situation. The controller can continuously compare data to be stored in the running process, and when the numerical value to be stored changes, the EEPROM chip can be subjected to write memory operation; for example, when it is determined that the total number of erasing times in the rank space a has exceeded the threshold lifetime by 0.95 x (x d S), (where d is the number of data per page of the EEPROM chip, x is the number of data pages in the rank space, and S is the maximum number of erasing times per memory cell of the EEPROM chip), the addresses of all the stored data in the rank space a are shifted backward by (x + y + z) d, and the address is skipped over the first storage space, i.e., the address of the second storage space is the rank space a', i.e., backup and migration of the data in the rank space a are completed; and meanwhile, the controller also updates the storage address of the level space A to be A ', and then the controller program continuously inquires whether the sum of the erasing times of the three level spaces of the level space B, the level space C and the level space A' exceeds a threshold value. Through the steps, the EEPROM data can be continuously memorized after the service life of the EEPROM data in the initialization interval is finished, so that the service life of the EEPROM on the product is prolonged, and the reliability of the product is enhanced.
The invention also provides an air conditioner which comprises a memory and a controller, wherein the controller uses the memory by using the method for prolonging the service life of the memory.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A method for extending the lifetime of a memory, comprising the steps of:
calculating the G value of each data according to the attribute of the data required to be stored in the memory, dividing a plurality of grade spaces according to the distribution range of the G value, wherein each grade space is used for respectively storing the data of the G value in the corresponding range;
taking a storage interval with corresponding capacity from the free storage intervals of the storage for each grade space to store data corresponding to the grade space;
recording the sum of times of erasing and writing data between the storage areas corresponding to each grade space;
when the sum of the times of erasing and writing data in the storage areas corresponding to the level space is larger than the preset erasing and writing times, a new storage interval is divided for the level space, and the data storage address corresponding to the level space is shifted to the new storage interval.
2. The method as claimed in claim 1, wherein the start of the address of the new storage section is the end of the address of the storage section corresponding to the level space of the recorded erasure data.
3. The method of extending the lifetime of a memory as in claim 1, wherein said memory is an eeprom.
4. The method for extending the lifetime of memory as claimed in claim 1, wherein said data to be stored is: set parameters and/or operating parameters of the product.
5. The method of extending the lifetime of memory as in claim 1, wherein said attributes of the data to be stored comprise: the preset adjustment coefficient k1, the preset adjustment coefficient k2, the preset erasing frequency F and the preset importance E of the set parameters and/or the running parameters of the product.
6. The method for prolonging the service life of the memory according to claim 5, wherein the G value of the set parameters and/or the operating parameters of the product is calculated by G = k 1F + k 2E.
7. The method for extending the lifespan of a memory as recited in claim 1, wherein said predetermined number of writes is 95% of a predetermined maximum number of writes for the memory.
8. The method for extending the service life of a memory according to claim 1, wherein the number of pages of the storage section corresponding to each grade space is divided according to the data amount corresponding to the grade space.
9. The method for extending the lifespan of a memory as set forth in claim 1, wherein the last page of the number of pages of the storage section corresponding to each of said rank spaces records the sum of the number of times of erasing data of the rank space.
10. An air conditioner comprising a storage and a controller, wherein the controller uses the storage by using the method for prolonging the service life of the storage according to any one of claims 1 to 9.
CN202110206314.7A 2021-02-24 2021-02-24 Method for prolonging service life of memory and air conditioner Pending CN112835530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110206314.7A CN112835530A (en) 2021-02-24 2021-02-24 Method for prolonging service life of memory and air conditioner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110206314.7A CN112835530A (en) 2021-02-24 2021-02-24 Method for prolonging service life of memory and air conditioner

Publications (1)

Publication Number Publication Date
CN112835530A true CN112835530A (en) 2021-05-25

Family

ID=75933118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110206314.7A Pending CN112835530A (en) 2021-02-24 2021-02-24 Method for prolonging service life of memory and air conditioner

Country Status (1)

Country Link
CN (1) CN112835530A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296634A (en) * 2021-12-03 2022-04-08 珠海格力电器股份有限公司 Method and device for detecting utilization rate of memory resources and allocating memory
CN114647534A (en) * 2022-05-24 2022-06-21 国网山东省电力公司营销服务中心(计量中心) Data storage method and device based on digital control equipment
CN115755860A (en) * 2022-11-28 2023-03-07 山东理工大学 Fault storage method for electric control system of new energy automobile

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054456A1 (en) * 2010-08-26 2012-03-01 Cleversafe, Inc. Migrating an encoded data slice based on an end-of-life memory level of a memory device
CN108052287A (en) * 2017-12-12 2018-05-18 深圳市创维软件有限公司 Partition data management method, set-top box and the medium of a kind of nonvolatile memory
CN108960670A (en) * 2018-07-23 2018-12-07 叶苑庭 A kind of warehouse logistics smart allocation storage system
CN109196459A (en) * 2016-05-31 2019-01-11 重庆大学 A kind of distributed heterogeneous memory system data location mode of decentralization
CN110471900A (en) * 2019-07-10 2019-11-19 平安科技(深圳)有限公司 Data processing method and terminal device
CN111008389A (en) * 2019-12-05 2020-04-14 成都星时代宇航科技有限公司 Data processing method and device based on file system in satellite

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054456A1 (en) * 2010-08-26 2012-03-01 Cleversafe, Inc. Migrating an encoded data slice based on an end-of-life memory level of a memory device
CN109196459A (en) * 2016-05-31 2019-01-11 重庆大学 A kind of distributed heterogeneous memory system data location mode of decentralization
CN108052287A (en) * 2017-12-12 2018-05-18 深圳市创维软件有限公司 Partition data management method, set-top box and the medium of a kind of nonvolatile memory
CN108960670A (en) * 2018-07-23 2018-12-07 叶苑庭 A kind of warehouse logistics smart allocation storage system
CN110471900A (en) * 2019-07-10 2019-11-19 平安科技(深圳)有限公司 Data processing method and terminal device
CN111008389A (en) * 2019-12-05 2020-04-14 成都星时代宇航科技有限公司 Data processing method and device based on file system in satellite

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296634A (en) * 2021-12-03 2022-04-08 珠海格力电器股份有限公司 Method and device for detecting utilization rate of memory resources and allocating memory
CN114296634B (en) * 2021-12-03 2024-01-30 珠海格力电器股份有限公司 Method and device for detecting and storing and distributing memory resource utilization rate
CN114647534A (en) * 2022-05-24 2022-06-21 国网山东省电力公司营销服务中心(计量中心) Data storage method and device based on digital control equipment
CN115755860A (en) * 2022-11-28 2023-03-07 山东理工大学 Fault storage method for electric control system of new energy automobile

Similar Documents

Publication Publication Date Title
CN112835530A (en) Method for prolonging service life of memory and air conditioner
US20200167083A1 (en) Techniques for controlling recycling of blocks of memory
CN107368429B (en) Data storage device, memory controller, data management method thereof and data block management method
US7596656B2 (en) Memory cards with end of life recovery and resizing
US8826100B2 (en) Adjustable memory allocation based on error correction
US8046526B2 (en) Wear leveling method and controller using the same
US6675281B1 (en) Distributed mapping scheme for mass storage system
KR101014599B1 (en) Adaptive mode switching of flash memory address mapping based on host usage characteristics
US20080082725A1 (en) End of Life Recovery and Resizing of Memory Cards
US10126970B2 (en) Paired metablocks in non-volatile storage device
CN101099125A (en) Cluster auto-alignment
WO2008042467A1 (en) End of life recovery and resizing of memory cards
TWI707232B (en) Flash memory controller and associated accessing method and electronic device
JP5570406B2 (en) Memory controller and data recording apparatus
CN103365786A (en) Data storage method, device and system
CN109256166A (en) The method for deleting and flash memories of flash memories
CN105988950A (en) Memory management method, memory control circuit unit and memory storage device
CN105512047A (en) Method and device for write operation and erasure operation of Flash memory
US10684785B2 (en) Storage system
CN109240615A (en) A kind of method for reading data of solid state hard disk, device and equipment
CN111078128A (en) Data management method and device and solid state disk
TW201933366A (en) Method and device for adjusting a plurality of the threshold voltages of a non-volatile memory device
US8566562B2 (en) Method for sequentially writing data with an offset to a non-volatile memory
JP4818453B1 (en) Electronic device and data reading method
CN106484630A (en) The Memory Controller of the access method of flash memory and correlation and electronic installation

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: 20210525

RJ01 Rejection of invention patent application after publication