CN114237502A - Method and device for prolonging FLASH write life of eSIM (embedded subscriber identity Module) smart card - Google Patents
Method and device for prolonging FLASH write life of eSIM (embedded subscriber identity Module) smart card Download PDFInfo
- Publication number
- CN114237502A CN114237502A CN202111505781.6A CN202111505781A CN114237502A CN 114237502 A CN114237502 A CN 114237502A CN 202111505781 A CN202111505781 A CN 202111505781A CN 114237502 A CN114237502 A CN 114237502A
- Authority
- CN
- China
- Prior art keywords
- file
- area
- frequently updated
- smart card
- balanced
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000013507 mapping Methods 0.000 claims description 4
- 239000002699 waste material Substances 0.000 abstract description 7
- 238000013500 data storage Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 3
- 230000002035 prolonged effect Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a method and a device for prolonging FLASH write-in life of an eSIM (embedded subscriber identity Module) smart card, which relate to the technical field of computer data storage, and the method comprises the steps of acquiring frequent update files of each file system in the smart card, and creating an area in a storage space of the smart card as a balanced erasing area; storing the obtained frequent update files into a balance erasing area, and creating a corresponding table in a storage area of the balance erasing area based on each frequent update file; and reading/writing the frequently updated files based on the storage areas of the frequently updated files recorded by the corresponding table in the balanced erasing area. The invention ensures the service life of the smart card and avoids the waste of the storage space of the smart card.
Description
Technical Field
The invention relates to the technical field of computer data storage, in particular to a method and a device for prolonging the FLASH write life of an eSIM (embedded subscriber identity Module) smart card.
Background
An eSIM (Embedded-SIM) card is a conventional SIM (Subscriber identity Module) card directly Embedded in an equipment chip, and is not required to be added to equipment as an independent removable component, and an operator network can be used without inserting a physical SIM card in the equipment, so that the use cost of more mobile equipment is saved, and more convenience and security are brought.
Multiple sets of file systems generally exist in the eSIM card, and in the using process, the file systems need to perform read-write operation on a FLASH (FLASH memory) space of the eSIM smart card when performing file updating, and frequent read-write operation inevitably affects the service life of the storage space of the smart card. At present, in order to improve the service life of the storage space of the smart card, the storage area of the smart card is generally divided into physical blocks with the same size for use, and a huge number of mapping blocks are used, but the service life of the storage space of the smart card is still not greatly improved by the method, and the problem of wasting the storage space of the smart card exists.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method and a device for prolonging the FLASH write life of an eSIM smart card, so that the service life of the smart card is ensured, and the waste of the storage space of the smart card is avoided.
In order to achieve the above object, the method for prolonging the FLASH write life of the eSIM smart card provided by the invention specifically comprises the following steps:
acquiring frequent update files of each file system in the smart card, and creating an area in a storage space of the smart card as a balanced erasing area;
storing the obtained frequent update files into a balance erasing area, and creating a corresponding table in a storage area of the balance erasing area based on each frequent update file;
and reading/writing the frequently updated files based on the storage areas of the frequently updated files recorded by the corresponding table in the balanced erasing area.
On the basis of the technical scheme, the creating of the corresponding table in the storage area of the balanced erasing area based on each frequently updated file specifically comprises the following steps:
numbering a storage area used for storing frequently updated files in the balanced erasing area;
and corresponding the file ID of the frequently updated file to the number of the storage area storing the frequently updated file in the balanced erasing area to form a corresponding table.
On the basis of the above technical solution, the reading/writing of the frequently updated file based on the storage area of each frequently updated file recorded in the correspondence table in the balanced erasure area specifically includes:
when reading the frequently updated file, obtaining a corresponding storage area of the frequently updated file to be read in the balanced erasing area based on the corresponding table, and reading the latest file value of the storage area;
when writing of the frequently updated file is carried out, a corresponding storage area of the frequently updated file to be written in the balanced erasing area is obtained based on the corresponding table, and a file value of the frequently updated file is written in the storage area.
On the basis of the technical scheme, when reading the frequently updated file, the method comprises the following specific steps of obtaining a corresponding storage area of the frequently updated file to be read in the balanced erasing area based on the corresponding table, and reading the latest file value of the storage area, wherein the specific steps comprise:
when reading the file:
if the file to be read is a frequently updated file, obtaining a corresponding storage area of the file to be read in the balanced erasing area based on the corresponding table and the file ID of the file to be read, and reading the latest file value of the storage area;
and if the file to be read is the infrequently updated file, reading the latest file value of the file to be read in the unbalanced erasing area in the storage space of the intelligent card.
On the basis of the technical scheme, when writing the frequently updated file, obtaining a corresponding storage area of the frequently updated file to be written in the balanced erasing area based on the corresponding table, and writing a file value of the frequently updated file into the storage area, wherein the specific steps comprise:
when writing a file:
if the file to be written is a frequently updated file, obtaining a corresponding storage area of the file to be written in the balanced erasing area based on the corresponding table and the file ID of the file to be written, and writing the file value of the file to be written in the storage area;
and if the file to be written is an infrequently updated file, writing the file value of the file to be written in the unbalanced erasing area in the storage space of the smart card.
On the basis of the technical scheme, the method further comprises the following steps:
when updating the files of the file system, if the current file is not in the corresponding table, recording the file ID of the current file;
when the recording times do not reach the preset times, recording the current file as an infrequently updated file;
and when the recording times are more than or equal to the preset times, recording the current file as a frequently updated file.
On the basis of the technical scheme, when the intelligent card switches the file system:
backing up the latest file value of the frequently updated file in the corresponding table in the balanced erasing area to the current file system;
and switching the file systems, and storing the file values of the frequently updated files of the switched new file systems into the balanced erasing area after the switching of the file systems is completed.
On the basis of the technical scheme, the method further comprises the following steps:
based on the counting mode of the counter, when the writing times of the balance erasing area reach the preset writing times, the balance erasing area and the file system area in the storage space of the smart card are exchanged.
On the basis of the technical scheme, the exchange of the balanced erasing area and the file system area in the storage space of the smart card comprises the following specific steps:
backing up the latest file value of each frequently updated file in the original balance erasing area to the original file system area;
erasing the data in the original balanced erasing area, writing the content of the original file system area in the original balanced erasing area, and modifying the first address of the file system of the smart card so that the original balanced erasing area is used as the current file system area;
and modifying the corresponding table, taking the original file system area as the current balance erasing area, and storing the backup data in the current balance erasing area.
The invention provides a device for prolonging the FLASH write life of an eSIM smart card, which comprises:
the acquisition module is used for acquiring frequent update files of each file system in the smart card and creating an area in the storage space of the smart card as a balanced erasing area;
the creation module is used for storing the acquired frequent update files into the balance erasing area and creating a corresponding table in the storage area of the balance erasing area based on each frequent update file;
and the read-write module is used for reading/writing the frequently updated files based on the storage areas of the frequently updated files recorded by the corresponding table in the balanced erasing area.
Compared with the prior art, the invention has the advantages that: the method comprises the steps of establishing an area in a storage space of the smart card as a balanced erasing area, storing frequent update files of a file system into the balanced erasing area, establishing a corresponding table in the storage area of the balanced erasing area based on the frequent update files, subsequently reading and writing the frequent update files in the storage area of the balanced erasing area based on the frequent update files recorded by the corresponding table, reading/writing the frequent update files, and performing read-write operation on the frequent update files by independently establishing the balanced erasing area, so that the service life of the smart card is ensured, and meanwhile, the waste of the storage space of the smart card is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for improving FLASH write lifetime of an eSIM smart card in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for improving FLASH write lifetime of an eSIM smart card according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method for prolonging the FLASH write life of an eSIM (embedded storage Module) smart card, which comprises the steps of establishing an area in a storage space of the smart card as a balanced erasing area, storing frequent update files of a file system into the balanced erasing area, establishing a corresponding table in the storage area of the balanced erasing area based on the frequent update files, and subsequently reading and writing the frequent update files according to the storage area of the frequent update files recorded by the corresponding table in the balanced erasing area, reading/writing the frequent update files, and performing read-write operation on the frequent update files by independently establishing a balanced erasing area, thereby ensuring the service life of the smart card and avoiding the waste of the storage space of the smart card. The embodiment of the invention correspondingly provides a device for prolonging the FLASH write life of the eSIM smart card.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a method for improving FLASH write life of an eSIM smart card according to an embodiment of the present invention specifically includes the following steps:
s1: acquiring frequent update files of each file system in the smart card, and creating an area in a storage space of the smart card as a balanced erasing area;
for a single file system, the file system comprises a plurality of files, when the file system is updated, all the files contained in the file system cannot be updated, only part of the files are generally updated, when the number of times that a certain file in the file system is updated reaches a preset number of times, the certain file is defined as a frequently updated file, an area is separately created in a storage space of the smart card, the frequently updated files of all the file systems are stored, and when the subsequent read-write operation of updating the file is performed, only the read-write operation needs to be performed on the area, so that the service life of the storage space of the smart card is effectively prolonged.
S2: and storing the acquired frequent update files into the balance erasing area, and creating a corresponding table in the storage area of the balance erasing area based on each frequent update file. The intelligent card comprises a plurality of file systems and at least one frequently updated file; the balance erasing area is used for storing all frequently updated files of the file system, the corresponding table is used for recording all frequently updated files in the storage area of the balance erasing area, and the balance erasing area comprises a plurality of storage areas. The corresponding table is maintained by a Chip Operating System (COS).
The method comprises the steps of establishing a balance erasing area in a storage space of the smart card independently, storing a frequently updated file of a file system in the balance erasing area, and performing subsequent reading and writing operations on the frequently updated file in the balance erasing area.
In the embodiment of the invention, a corresponding table is created in the storage area of the balanced erasing area based on each frequently updated file, and the specific steps are as follows:
s201: numbering a storage area used for storing frequently updated files in the balanced erasing area;
s202: and corresponding the file ID (Identity Document) of the frequently updated file to the number of the storage area storing the frequently updated file in the balanced erasing area to form a corresponding table.
The number of the storage area of each frequently updated file in the balance erasing area is associated with the file ID of the frequently updated file to form a corresponding table, and the storage area of the current frequently updated file in the balance erasing area can be obtained by subsequently inquiring the corresponding table according to the file ID of the frequently updated file.
S3: and reading/writing the frequently updated files based on the storage areas of the frequently updated files recorded by the corresponding table in the balanced erasing area. Specifically, the method comprises the following steps:
when reading the frequently updated file, obtaining a corresponding storage area of the frequently updated file to be read in the balanced erasing area based on the corresponding table, and reading the latest file value of the storage area; the method comprises the steps of obtaining a storage area of a frequently updated file to be read currently in a balanced erasing area according to a corresponding table, and then reading the latest file value of the storage area to read the frequently updated file to be read currently.
When writing of the frequently updated file is carried out, a corresponding storage area of the frequently updated file to be written in the balanced erasing area is obtained based on the corresponding table, and a file value of the frequently updated file is written in the storage area. When writing the frequently updated file, the storage area of the frequently updated file to be written in the balanced erasing area is obtained according to the corresponding table, and then the file value of the frequently updated file to be written is written in the storage area, so that the writing of the frequently updated file to be written is realized.
In the embodiment of the present invention, when reading a frequently updated file, a corresponding storage area of the frequently updated file to be read in a balanced erasure area is obtained based on a mapping table, and a latest file value of the storage area is read, and the specific steps include:
when reading the file:
if the file to be read is a frequently updated file, obtaining a corresponding storage area of the file to be read in the balanced erasing area based on the corresponding table and the file ID of the file to be read, and reading the latest file value of the storage area;
and if the file to be read is the infrequently updated file, reading the latest file value of the file to be read in the unbalanced erasing area in the storage space of the intelligent card.
The frequently updated file is a file which needs to be read frequently, and the frequently updated file is stored in the balanced erasing area and is directly read in the balanced erasing area when being read; for the files which are not frequently updated, the reading operation times are less, and the files are stored in the unbalanced erasing area, so that the files which are not frequently updated can be read normally.
In the embodiment of the present invention, when writing a frequently updated file, a corresponding storage area of the frequently updated file to be written in the balanced erasure area is obtained based on the correspondence table, and a file value of the frequently updated file is written in the storage area, and the specific steps include:
when writing a file:
if the file to be written is a frequently updated file, obtaining a corresponding storage area of the file to be written in the balanced erasing area based on the corresponding table and the file ID of the file to be written, and writing the file value of the file to be written in the storage area;
and if the file to be written is an infrequently updated file, writing the file value of the file to be written in the unbalanced erasing area in the storage space of the smart card.
Because the frequently updated file is a file which needs to be written frequently, the frequently updated file is stored in the balanced erasing area, and when the frequently updated file is written, the frequently updated file is directly written in the balanced erasing area; for the infrequently updated file, the writing operation times are less, and the infrequently updated file is stored in the unbalanced erasing area, so that the infrequently updated file can be normally written.
In the embodiment of the present invention, the method for improving the FLASH write life of the eSIM smart card further includes:
when updating the files of the file system, if the current file is not in the corresponding table, recording the file ID of the current file;
based on the number of file ID records for the current file:
when the recording times do not reach the preset times, recording the current file as an infrequently updated file;
and when the recording times are more than or equal to the preset times, recording the current file as a frequently updated file.
When the file is updated, recording the ID of the updated file, and if the record exists before the ID of the current updated file, directly recording the previous record for a time number of + 1; if the recording frequency of the ID of a certain file reaches the preset frequency (the preset frequency can be 1000), the file is judged to be a frequently updated file, and the file is distributed to the balanced erasing area to be read and written and correspondingly recorded in the corresponding table. Of course, when a file is updated, if the currently updated file is already recorded in the correspondence table, no ID recording is performed on the currently updated file.
In the embodiment of the invention, when the intelligent card switches the file system:
a: backing up the latest file value of the frequently updated file in the corresponding table in the balanced erasing area to the current file system;
b: and switching the file systems, and storing the file values of the frequently updated files of the switched new file systems into the balanced erasing area after the switching of the file systems is completed. And through a switching mode, the frequently updated files of the currently used file system are ensured to be always stored in the balanced erasing area.
The method for prolonging the FLASH write-in service life of the eSIM smart card further comprises the step of exchanging the balance erasing area and the file system area in the storage space of the smart card when the write-in times of the balance erasing area reach the preset write-in times based on the counting mode of the counter. The writing times of the balance erasing area are recorded through the counter, and when the counter is increased by 10000 times, the balance erasing area and the file system area in the storage space of the smart card are exchanged. Through the exchange mode, the phenomenon that a certain region of the storage space of the smart card is subjected to read-write operation for a long time is avoided, and the region is further thoroughly damaged, so that the storage space of the smart card is reduced, when the writing times of the balanced erasing area reach the preset writing times, the balanced erasing area and the file system area in the storage space of the smart card are exchanged, and the read-write operation is performed on the exchanged region.
In the embodiment of the invention, the balance erasing area and the file system area in the storage space of the smart card are exchanged, and the specific steps comprise:
a: backing up the latest file value of each frequently updated file in the original balance erasing area to the original file system area;
b: erasing the data in the original balanced erasing area, writing the content of the original file system area in the original balanced erasing area, and modifying the first address of the file system of the smart card so that the original balanced erasing area is used as the current file system area;
c: and modifying the corresponding table, taking the original file system area as the current balanced erasing area, and storing the backup data in the current balanced erasing area, so that exchange between the balanced erasing area and the file system area is realized, and the service life of the storage space of the smart card is further prolonged.
The invention discloses a method for prolonging the FLASH write life of an eSIM smart card, which comprises the following steps: because multiple sets of file systems exist in the eSIM card, one set of file system can be used for a long time under normal conditions, and other file systems are hardly used, for frequently updated files in the file system, each file system shares a balanced erasing area to store the frequently updated files, so that the service life of the card is ensured, and the waste of card space is avoided; due to the diversity of the use scenes of the eSIM card, the invention protects the files which are updated frequently really by defining a set of automatic identification mechanism for updating the files frequently, thereby effectively prolonging the service life of the card; in the practical use of the eSIM card, in addition to frequent file updating, the updating frequency of other common files is extremely low, so that a mechanism for switching storage areas of the frequently updated files and the common files is defined, the FLASH erasing of the whole card is more uniform, and the service life of the card is prolonged.
The method for prolonging the FLASH write life of the eSIM smart card comprises the steps of establishing an area in a storage space of the smart card as a balanced erasing area, storing frequent update files of a file system into the balanced erasing area, establishing a corresponding table in the storage area of the balanced erasing area based on the frequent update files, reading/writing the frequent update files based on the storage area of the frequent update files recorded by the corresponding table in the balanced erasing area when reading and writing the frequent update files, and performing read-write operation on the frequent update files by independently establishing the balanced erasing area, so that the service life of the smart card is ensured, and meanwhile, the waste of the storage space of the smart card is avoided.
Referring to fig. 2, the apparatus for improving the FLASH write life of the eSIM smart card according to the embodiment of the present invention includes an obtaining module, a creating module, and a read-write module.
The acquisition module is used for acquiring frequent update files of each file system in the smart card and creating an area in the storage space of the smart card as a balanced erasing area; the creation module is used for storing the acquired frequent update files into the balance erasing area and creating a corresponding table in the storage area of the balance erasing area based on each frequent update file; the read-write module is used for reading/writing the frequently updated files based on the storage areas of the frequently updated files recorded by the corresponding table in the balanced erasing area.
The method comprises the steps of determining frequently updated files in a counting mode, independently creating an area in a storage space of the intelligent card for the determined frequently updated files, storing the frequently updated files of all file systems, subsequently performing read-write operation of file updating, only performing read-write operation on the area, and performing read-write operation of frequently updated files by independently creating a balanced erasing area, so that the service life of the intelligent card is ensured, and meanwhile, the waste of the storage space of the intelligent card is avoided.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Claims (10)
1. A method for prolonging the FLASH write life of an eSIM smart card is characterized by comprising the following steps:
acquiring frequent update files of each file system in the smart card, and creating an area in a storage space of the smart card as a balanced erasing area;
storing the obtained frequent update files into a balance erasing area, and creating a corresponding table in a storage area of the balance erasing area based on each frequent update file;
and reading/writing the frequently updated files based on the storage areas of the frequently updated files recorded by the corresponding table in the balanced erasing area.
2. The method for improving the FLASH write life of the eSIM smart card according to claim 1, wherein the creating of the correspondence table in the storage area of the balance erasing area based on each frequently updated file comprises the following specific steps:
numbering a storage area used for storing frequently updated files in the balanced erasing area;
and corresponding the file ID of the frequently updated file to the number of the storage area storing the frequently updated file in the balanced erasing area to form a corresponding table.
3. The method according to claim 2, wherein the reading/writing of the frequently updated files is performed in the storage area of the balanced erasure area based on each frequently updated file recorded by the correspondence table, and specifically comprises:
when reading the frequently updated file, obtaining a corresponding storage area of the frequently updated file to be read in the balanced erasing area based on the corresponding table, and reading the latest file value of the storage area;
when writing of the frequently updated file is carried out, a corresponding storage area of the frequently updated file to be written in the balanced erasing area is obtained based on the corresponding table, and a file value of the frequently updated file is written in the storage area.
4. The method according to claim 3, wherein when reading the frequently updated files, obtaining a corresponding storage area of the frequently updated files to be read in the balanced erasure area based on the mapping table, and reading a latest file value of the storage area, the method comprises the following steps:
when reading the file:
if the file to be read is a frequently updated file, obtaining a corresponding storage area of the file to be read in the balanced erasing area based on the corresponding table and the file ID of the file to be read, and reading the latest file value of the storage area;
and if the file to be read is the infrequently updated file, reading the latest file value of the file to be read in the unbalanced erasing area in the storage space of the intelligent card.
5. The method according to claim 3, wherein when writing the frequently updated file, obtaining a corresponding storage area of the frequently updated file to be written in the balanced erasure area based on the mapping table, and writing a file value of the frequently updated file into the storage area, the specific steps include:
when writing a file:
if the file to be written is a frequently updated file, obtaining a corresponding storage area of the file to be written in the balanced erasing area based on the corresponding table and the file ID of the file to be written, and writing the file value of the file to be written in the storage area;
and if the file to be written is an infrequently updated file, writing the file value of the file to be written in the unbalanced erasing area in the storage space of the smart card.
6. The method of claim 4 or 5, wherein the method further comprises:
when updating the files of the file system, if the current file is not in the corresponding table, recording the file ID of the current file;
when the recording times do not reach the preset times, recording the current file as an infrequently updated file;
and when the recording times are more than or equal to the preset times, recording the current file as a frequently updated file.
7. The method of claim 1, wherein when the smart card performs a file system switch:
backing up the latest file value of the frequently updated file in the corresponding table in the balanced erasing area to the current file system;
and switching the file systems, and storing the file values of the frequently updated files of the switched new file systems into the balanced erasing area after the switching of the file systems is completed.
8. The method of claim 1, wherein the method further comprises:
based on the counting mode of the counter, when the writing times of the balance erasing area reach the preset writing times, the balance erasing area and the file system area in the storage space of the smart card are exchanged.
9. The method for improving FLASH write lifetime of an eSIM smart card according to claim 8, wherein the exchanging of the balance erase/write area and the file system area in the smart card storage space comprises:
backing up the latest file value of each frequently updated file in the original balance erasing area to the original file system area;
erasing the data in the original balanced erasing area, writing the content of the original file system area in the original balanced erasing area, and modifying the first address of the file system of the smart card so that the original balanced erasing area is used as the current file system area;
and modifying the corresponding table, taking the original file system area as the current balance erasing area, and storing the backup data in the current balance erasing area.
10. An apparatus for improving FLASH write lifetime of an eSIM smart card, comprising:
the acquisition module is used for acquiring frequent update files of each file system in the smart card and creating an area in the storage space of the smart card as a balanced erasing area;
the creation module is used for storing the acquired frequent update files into the balance erasing area and creating a corresponding table in the storage area of the balance erasing area based on each frequent update file;
and the read-write module is used for reading/writing the frequently updated files based on the storage areas of the frequently updated files recorded by the corresponding table in the balanced erasing area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111505781.6A CN114237502A (en) | 2021-12-10 | 2021-12-10 | Method and device for prolonging FLASH write life of eSIM (embedded subscriber identity Module) smart card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111505781.6A CN114237502A (en) | 2021-12-10 | 2021-12-10 | Method and device for prolonging FLASH write life of eSIM (embedded subscriber identity Module) smart card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114237502A true CN114237502A (en) | 2022-03-25 |
Family
ID=80754602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111505781.6A Pending CN114237502A (en) | 2021-12-10 | 2021-12-10 | Method and device for prolonging FLASH write life of eSIM (embedded subscriber identity Module) smart card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114237502A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005124530A2 (en) * | 2004-06-21 | 2005-12-29 | Kabushiki Kaisha Toshiba | Method for controlling memory card and method for controlling nonvolatile semiconductor memory |
CN112231244A (en) * | 2020-12-21 | 2021-01-15 | 深圳杰睿联科技有限公司 | SIM card file erasing and writing system and method applied to SoftSIM and readable storage medium |
CN112256207A (en) * | 2020-10-30 | 2021-01-22 | 深圳市芯天下技术有限公司 | Method, device, storage medium and terminal for prolonging erasing and writing life of nonvolatile flash memory |
CN112905383A (en) * | 2019-12-03 | 2021-06-04 | 中国电信股份有限公司 | Method and device for processing file erasing times and 5G communication card |
CN113282521A (en) * | 2021-05-19 | 2021-08-20 | 武汉天喻信息产业股份有限公司 | Method and device for prolonging service life of smart card |
-
2021
- 2021-12-10 CN CN202111505781.6A patent/CN114237502A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005124530A2 (en) * | 2004-06-21 | 2005-12-29 | Kabushiki Kaisha Toshiba | Method for controlling memory card and method for controlling nonvolatile semiconductor memory |
CN112905383A (en) * | 2019-12-03 | 2021-06-04 | 中国电信股份有限公司 | Method and device for processing file erasing times and 5G communication card |
CN112256207A (en) * | 2020-10-30 | 2021-01-22 | 深圳市芯天下技术有限公司 | Method, device, storage medium and terminal for prolonging erasing and writing life of nonvolatile flash memory |
CN112231244A (en) * | 2020-12-21 | 2021-01-15 | 深圳杰睿联科技有限公司 | SIM card file erasing and writing system and method applied to SoftSIM and readable storage medium |
CN113282521A (en) * | 2021-05-19 | 2021-08-20 | 武汉天喻信息产业股份有限公司 | Method and device for prolonging service life of smart card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101533670B (en) | Method and memory device realizing loss balance of memory device | |
CN101582052B (en) | Memory module and method for performing wear-leveling of memory module | |
CN109753443B (en) | Data processing method and device and electronic equipment | |
CN109428913B (en) | Storage capacity expansion method and device | |
CN108932295A (en) | Primary database method for handover control, device, computer equipment and storage medium | |
CN108592313B (en) | Wireless networking method of air conditioner, air conditioner internal unit and air conditioner external unit | |
WO2017067519A1 (en) | Method, card allocation server and mobile terminal for realizing communication connection of a mobile terminal | |
CN109814809B (en) | Data compression method and device | |
CN113220239A (en) | Erasing and writing method, device and equipment for flash storage and readable storage medium | |
CN110134645B (en) | File system storage management method, file system storage reading method, file system storage management device and file system storage reading device | |
CN109213448B (en) | Method, device, equipment and storage medium for erasing and writing data of smart card | |
CN106170757A (en) | A kind of date storage method and device | |
CN110188850B (en) | Method, device and system for controlling temporary number of smart card | |
CN104794066A (en) | Storage apparatus and method for selecting storage area where data is written | |
CN101131649A (en) | Updating speed improving method for read-only memory of device with flash memory | |
CN114237502A (en) | Method and device for prolonging FLASH write life of eSIM (embedded subscriber identity Module) smart card | |
CN105472599A (en) | Method for accessing SIM cards and double-card mobile terminal | |
CN116225317A (en) | Data read-write method and device for user identification card, user identification card and medium | |
CN101778377B (en) | Parameter configuration method, mobile terminal and terminal equipment | |
CN114063905B (en) | Log storage method, log storage device, storage equipment and storage medium | |
CN105828316A (en) | Method for adapting subscriber identification module card and mobile terminal | |
CN111356094B (en) | SIM short message processing method and device | |
CN111367476B (en) | Data reading method and device of SIM card | |
CN113254273A (en) | Method, system, device and medium for real-time recovery of principal metadata | |
CN111399774B (en) | Data processing method and device based on snapshot under distributed storage system |
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: 20220325 |