CN106354718A - File management method and device of subscriber identity module - Google Patents

File management method and device of subscriber identity module Download PDF

Info

Publication number
CN106354718A
CN106354718A CN201510408918.4A CN201510408918A CN106354718A CN 106354718 A CN106354718 A CN 106354718A CN 201510408918 A CN201510408918 A CN 201510408918A CN 106354718 A CN106354718 A CN 106354718A
Authority
CN
China
Prior art keywords
file
partition holding
class
page
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510408918.4A
Other languages
Chinese (zh)
Other versions
CN106354718B (en
Inventor
刘辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510408918.4A priority Critical patent/CN106354718B/en
Publication of CN106354718A publication Critical patent/CN106354718A/en
Application granted granted Critical
Publication of CN106354718B publication Critical patent/CN106354718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file management method and device of SIM card, including dividing the storage area into a first storage subarea and a second storage subarea; when a file is created, the file header of the file is stored in the first storage subarea, wherein the file attribute of the file header marks the type of the file, namely class I file or class II file; when the file attribute shows the file created belongs to class I file, the file data volume of class I file will be stored in the first storage subarea; when the file attribute shows the file created belongs to class II file, the file data volume of class II file will be stored in the second storage subarea.

Description

The file management method of subscriber identification module and device
Technical field
The present invention relates to the file system in subscriber identification module (sim, subscriber identity module) System, more particularly, to a kind of file management method of sim card and device.
Background technology
Sim card is the widely used user identification module of mobile device, sim card be used for stepping on net authentication, Secure data stores, and sim card has the features such as high security, reliability.The data of sim card is with file shape Formula is stored in card, and the logical construction of file follows iso 7816 specification.With reference to Fig. 1, the file of sim card Structure be divided into catalogue file (mf, main file and df, directory file) and constituent instruments (ef, Element file), wherein, ef is used for storage file data.
The main physical storage medium of sim card is flash memory (flash), and flash is a kind of high density, non- Volatibility (non-volatile) storage medium.With reference to Fig. 2, the logical construction of flash is with page (page) For unit, the capacity of every page of flash is 256 bytes or 512 bytes, and flash has specific read-write behaviour It is required, is wiped by page, writing data need to be from logic 1 to 0, if it is right to rewrite data needs Flash is wiped, and the number of times wiped is conditional, and general permission erasing times are at 100,000 times about.
In view of the feature of flash storage, the file system based on flash storage medium often needs to consider Equilibrium erasing.Equilibrium erasing refer to the erasing times averagely using the every one page of flash of should try one's best, as to Do not update in raw address when flash updates the data, update new flash and can use page.Equilibrium erasing can Improve the service life of flash, but the efficiency of file system can be reduced, especially in disposal ability and storage On all limited sim card of resource, the impact of performance can become apparent from.
The existing sim card file system based on flash storage medium be exemplified as two schemes:
Scheme one, with reference to Fig. 3, navigates to data volume (bata body) by head table (head table). The program does not differentiate between the otherness of physical storage medium, updates the original position that file data is in physical storage medium Put renewal, because the speed of service is fast, expend the little feature of resource and used, for example, update the data being numbered 6 Body.
Scheme two, with reference to Fig. 4, for realizing, to flash equilibrium erasing management, recycling flash page Carry out data storage, that is, the physical location of data storage is change, the management information data of data is followed together Ring moves.Each start of Page position preservation management information (admin info) such as file id, this page of remainder Divide data storage.The program is updated the data using new free page, averagely uses the page erasing of flash Number of times, because file system life-span length, good reliability are used.For example, update file1 (being designated 2 and 3).
There are the following problems for prior art:
Scheme one, the storage of file relies on flash service life, easily causes Gao Gengxin frequency file and lost efficacy.
Scheme two, provides equilibrium erasing management to All Files, and file system speed is slow, takies storage resource (flash and ram) is many.And increasing with sim card memory capacity, All Files is implemented Equilibrium erasing management can bring bigger problem.
Content of the invention
For solve above-mentioned technical problem, embodiments provide a kind of file management method of sim card and Device.
The file management method of sim card provided in an embodiment of the present invention includes:
Storage region is divided into the first partition holding and the second partition holding;
During establishment file, the file header of file is stored in described first partition holding, wherein, described file File attribute in head identifies the type of described file, and the type of described file is the first class file or second Class file;
When described file attribute shows that created file belongs to the first class file, deposit in the first partition holding Store up the file data body of described first class file;
When described file attribute shows that created file belongs to the second class file, deposit in the second partition holding Store up the file data body of described second class file.
In the embodiment of the present invention, methods described also includes:
Mark (id) according to file determines the file header of described file;
According to the file attribute in described file header, determine the type of described file;
When the type of described file is the second class file, in the second partition holding, find free page;
The renewal file data body of described file is stored to described free page, and by the described file that is stored with The page setup of source file data volume is invalid page.
In the embodiment of the present invention, methods described also includes:
When not finding free page in described second partition holding, search in described second partition holding To invalid page;
Wipe described invalid page, and the file data body that updates of described file is stored the invalid page to erasing.
In the embodiment of the present invention, methods described also includes:
Quantity and size, the update times of described second class file, described use according to described second class file The erasable number of times of the page in the identification module of family, determines the page quantity in described second partition holding.
In the embodiment of the present invention, methods described also includes:
When the type of described file is the first class file, be stored with the first partition holding described file Described file data body is updated on the page of source file data volume.
The document management apparatus of sim card provided in an embodiment of the present invention include:
Zoning unit, for being divided into the first partition holding and the second partition holding by storage region;
First memory cell, during for establishment file, the file header of file is stored in described first storage point Area, wherein, the file attribute in described file header identifies the type of described file, the type of described file For the first class file or the second class file;When described file attribute shows that created file belongs to first kind literary composition The file data body of described first class file during part, is stored in the first partition holding;
Second memory cell, for when described file attribute shows that created file belongs to the second class file, Store the file data body of described second class file in the second partition holding.
In the embodiment of the present invention, described device also includes:
First determining unit, for determining the file header of described file according to the id of file;
Second determining unit, for according to the file attribute in described file header, determining the type of described file;
First searching unit, for when the type of described file is the second class file, in the second partition holding In find free page;
First updating block, for the renewal file data body of described file is stored to described free page, and The page setup of the source file data volume of the described file that is stored with is invalid page.
In the embodiment of the present invention, described device also includes:
Second searching unit, for when not finding free page in described second partition holding, described Invalid page is found in second partition holding;
Described first updating block, is additionally operable to wipe described invalid page, and the renewal number of files by described file Store the invalid page to erasing according to body.
In the embodiment of the present invention, described device also includes:
3rd determining unit, for according to the quantity of described second class file and size, described second class file Update times, in described subscriber identification module the page erasable number of times, determine in described second partition holding Page quantity.
In the embodiment of the present invention, described device also includes:
Second updating block, for when the type of described file is the first class file, in the first partition holding In be stored with the page of source file data volume of described file and update described file data body.
In the technical scheme of the embodiment of the present invention, for the storage medium flash in sim card, by flash Storage region be divided into the first partition holding and the second partition holding, here, the first partition holding refers to general Logical partition holding, i.e. low regeneration block, the second partition holding refers to Gao Gengxin subregion.In establishment file, The file header of All Files is stored in the first partition holding, wherein, file attribute mark in described file header Know the type of described file, the type of described file is the first class file or the second class file.Here, One class file refers to low renewal frequency file, and the second class file refers to Gao Gengxin frequency file.When described file When attribute shows that created file belongs to the first class file, store described first kind literary composition in the first partition holding The file data body of part;When described file attribute shows that created file belongs to the second class file, Two partition holdings store the file data body of described second class file.The technical scheme of the embodiment of the present invention is to literary composition Part system has carried out subregion, and the file of different update frequency is stored in different subregions, for not With the file in subregion, support different renewal operations, to manage the height in sim card file system respectively more New frequency file and low renewal frequency file, can consume less storage resource, improve process performance, Drastically increase the reliability of sim card file system.
Brief description
Fig. 1 is the file logical structure schematic diagram of sim card;
Fig. 2 is logical construction schematic diagram in units of page for the flash;
Fig. 3 is the schematic diagram one that in flash, data updates;
Fig. 4 is the schematic diagram two that in flash, data updates;
Fig. 5 is the schematic flow sheet of the file management method of sim card of the embodiment of the present invention one;
Fig. 6 is the schematic flow sheet of the file management method of sim card of the embodiment of the present invention two;
Fig. 7 is the structure composition schematic diagram of the document management apparatus of sim card of the embodiment of the present invention one;
Fig. 8 is the structure composition schematic diagram of the document management apparatus of sim card of the embodiment of the present invention two;
Fig. 9 is the subregion schematic diagram of embodiment of the present invention flash;
Figure 10 is the storage schematic diagram of the establishment Gao Gengxin frequency file of the embodiment of the present invention;
Figure 11 is the storage schematic diagram of the renewal Gao Gengxin frequency file of the embodiment of the present invention;
Figure 12 is the schematic diagram of the dynamic configuration file partition of the embodiment of the present invention.
Specific embodiment
In order to more fully hereinafter understand feature and the technology contents of the embodiment of the present invention, below in conjunction with the accompanying drawings Realization to the embodiment of the present invention is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for Limit the embodiment of the present invention.
Fig. 5 is the schematic flow sheet of the file management method of sim card of the embodiment of the present invention one, as Fig. 5 institute Show, the file management method of described sim card comprises the following steps:
Step 501: storage region is divided into the first partition holding and the second partition holding.
In the embodiment of the present invention, the storage medium of sim card is flash, and the storage region of flash is drawn It is divided into two regions, the respectively first partition holding and the second partition holding.
With reference to Fig. 9, for the first partition holding, this partition holding is generic storage subregion, or referred to as low Regeneration block (low update area), this partition holding is used for storing the relatively low data of renewal frequency.For Second partition holding, this partition holding is Gao Gengxin subregion (high update area), and this partition holding is used for The higher data of storage renewal frequency.Here, the height of renewal frequency is come by the factor such as performance of flash Determine, the erasing times of such as flash are very high, then the renewal frequency of partition holding tolerance is higher, flash Erasing times relatively low, then storage region tolerance renewal frequency relatively low.Here, each partition holding All in units of page, every page of capacity is 256 bytes or 512 bytes to the logical construction of flash.
In the embodiment of the present invention, sim card is special electronic device, and sim card has a characteristic that
1) most of file updates that operation is few, and read operation is many, such as international member identification code (imsi, International mobile subscriber identification number), phonebook files, note file.
2) minority file renewal frequency is high, such as positional information file, Authentication Counter device file.
3) operation of establishment file and deletion file is less.
4) compare terminal device, disposal ability is limited, and hardware resource is limited.
Gao Gengxin frequency file accounts for sim card entirety file 8% about, but these file content inefficacies can be made Become sim card using serious problems occur, according to sim card feature, rationally realize height more using limited resource New frequency file management is the emphasis of the embodiment of the present invention.
For this reason, sim card file system partitioning is generic storage subregion and Gao Gengxin subregion by the embodiment of the present invention, Two subregions are respectively adopted different memory management methods, and low renewal frequency file is stored in generic storage subregion, The file header of Gao Gengxin frequency file is stored in generic storage subregion, the file data body of Gao Gengxin frequency file It is stored in Gao Gengxin subregion.
Step 502: during establishment file, the file header of file is stored in described first partition holding, wherein, File attribute in described file header identifies the type of described file, and the type of described file is first kind literary composition Part or the second class file.
In the embodiment of the present invention, during establishment file, the file header of file is stored in described first partition holding. File attribute in file header identifies the type of described file, the type of described file be the first class file or Second class file.Here, the first class file refers to low renewal frequency file, and the second class file refers to Gao Gengxin Frequency file.It is low renewal frequency file that the file header of file has a mark file, or Gao Gengxin frequency File attribute.
With reference to Figure 10, for the file of Gao Gengxin subregion, it is Gao Gengxin frequency file that file header identifies this document. During establishment file, file header is stored in generic storage subregion, according to file attribute in file header, judges file Type.
Step 503: when described file attribute shows that created file belongs to the first class file, first Partition holding stores the file data body of described first class file.
With reference to Figure 10, if file attribute table prescribed paper is low renewal frequency file, in generic storage subregion it is File data distributes memory space.
Step 504: when described file attribute shows that created file belongs to the second class file, second Partition holding stores the file data body of described second class file.
With reference to Figure 10, if file attribute table prescribed paper is Gao Gengxin frequency file, it is literary composition in Gao Gengxin subregion Part data distribution memory space.
With reference to Figure 11, when being updated to the Gao Gengxin frequency file in Gao Gengxin subregion, using such as dirty Journey:
Find the file header of this document according to file id, according to the file attribute of file header, whether judge file It is Gao Gengxin frequency file;If file is Gao Gengxin frequency file, find the new free time in Gao Gengxin subregion Page, the old page of original storage file data is set to invalid page by free page new for the data updating write. Find new free page without in Gao Gengxin subregion, then look for invalid page in Gao Gengxin subregion, erasing is looked for The invalid page arriving, by the invalid page after the data updating write erasing.
The subregion of embodiment of the present invention dynamic configuration file system, specifically, the Gao Gengxin that creates as needed The size and number of frequency file, the file update times requiring and the erasable number of times of flash limit, and calculate The flash number of pages that Gao Gengxin subregion takies.During sim card System build, according to the Gao Gengxin subregion calculating Flash number of pages distribution memory space, referring to Figure 12.When sim card system starts, file system is divided Area is initialized.
In the technical scheme of the embodiment of the present invention, for the storage medium flash in sim card, by flash Storage region be divided into the first partition holding and the second partition holding, here, the first partition holding refers to general Logical partition holding, i.e. low regeneration block, the second partition holding refers to Gao Gengxin subregion.In establishment file, The file header of All Files is stored in the first partition holding, wherein, file attribute mark in described file header Know the type of described file, the type of described file is the first class file or the second class file.Here, One class file refers to low renewal frequency file, and the second class file refers to Gao Gengxin frequency file.When described file When attribute shows that created file belongs to the first class file, store described first kind literary composition in the first partition holding The file data body of part;When described file attribute shows that created file belongs to the second class file, Two partition holdings store the file data body of described second class file.The technical scheme of the embodiment of the present invention is to literary composition Part system has carried out subregion, and the file of different update frequency is stored in different subregions, for not With the file in subregion, support different renewal operations.The technical scheme of the embodiment of the present invention consumes less Storage resource and performance, are greatly enhanced the reliability of sim card file system.And, dynamic configuration height is more New frequency file subregion, rationally, has been efficiently used sim card storage resource.
Fig. 6 is the schematic flow sheet of the file management method of sim card of the embodiment of the present invention two, as Fig. 6 institute Show, the file management method of described sim card comprises the following steps:
Step 601: storage region is divided into the first partition holding and the second partition holding.
In the embodiment of the present invention, the storage medium of sim card is flash, and the storage region of flash is drawn It is divided into two regions, the respectively first partition holding and the second partition holding.
With reference to Fig. 9, for the first partition holding, this partition holding is generic storage subregion, or referred to as low Regeneration block (low update area), this partition holding is used for storing the relatively low data of renewal frequency.For Second partition holding, this partition holding is Gao Gengxin subregion (high update area), and this partition holding is used for The higher data of storage renewal frequency.Here, the height of renewal frequency is come by the factor such as performance of flash Determine, the erasing times of such as flash are very high, then the renewal frequency of partition holding tolerance is higher, flash Erasing times relatively low, then storage region tolerance renewal frequency relatively low.Here, each partition holding All in units of page, every page of capacity is 256 bytes or 512 bytes to the logical construction of flash.
In the embodiment of the present invention, sim card is special electronic device, and sim card has a characteristic that
1) most of file updates operation less, and read operation is many, such as imsi, phonebook files, note literary composition Part.
2) minority file renewal frequency is high, such as positional information file, Authentication Counter device file.
3) operation of establishment file and deletion file is less.
4) compare terminal device, disposal ability is limited, and hardware resource is limited.
Gao Gengxin frequency file accounts for sim card entirety file 8% about, but these file content inefficacies can be made Become sim card using serious problems occur, according to sim card feature, rationally realize height more using limited resource New frequency file management is the emphasis of the embodiment of the present invention.
For this reason, sim card file system partitioning is generic storage subregion and Gao Gengxin subregion by the embodiment of the present invention, Two subregions are respectively adopted different memory management methods, and low renewal frequency file is stored in generic storage subregion, The file header of Gao Gengxin frequency file is stored in generic storage subregion, the file data body of Gao Gengxin frequency file It is stored in Gao Gengxin subregion.
Step 602: during establishment file, the file header of file is stored in described first partition holding, wherein, File attribute in described file header identifies the type of described file, and the type of described file is first kind literary composition Part or the second class file.
In the embodiment of the present invention, during establishment file, the file header of file is stored in described first partition holding. File attribute in file header identifies the type of described file, the type of described file be the first class file or Second class file.Here, the first class file refers to low renewal frequency file, and the second class file refers to Gao Gengxin Frequency file.It is low renewal frequency file that the file header of file has a mark file, or Gao Gengxin frequency File attribute.
With reference to Figure 10, for the file of Gao Gengxin subregion, it is Gao Gengxin frequency file that file header identifies this document. During establishment file, file header is stored in generic storage subregion, according to file attribute in file header, judges file Type.
Step 603: when described file attribute shows that created file belongs to the first class file, first Partition holding stores the file data body of described first class file.
With reference to Figure 10, if file attribute table prescribed paper is low renewal frequency file, in generic storage subregion it is File data distributes memory space.
Step 604: when described file attribute shows that created file belongs to the second class file, second Partition holding stores the file data body of described second class file.
With reference to Figure 10, if file attribute table prescribed paper is Gao Gengxin frequency file, it is literary composition in Gao Gengxin subregion Part data distribution memory space.
Step 605: determine the file header of described file according to the id of file;According in described file header File attribute, determines the type of described file;When the type of described file is the second class file, second Free page is found in partition holding;The renewal file data body of described file is stored to described free page, And by the page setup of the source file data volume of the described file that is stored be invalid page.
With reference to Figure 11, when being updated to the Gao Gengxin frequency file in Gao Gengxin subregion, using such as dirty Journey:
Find the file header of this document according to file id, according to the file attribute of file header, whether judge file It is Gao Gengxin frequency file;If file is Gao Gengxin frequency file, find the new free time in Gao Gengxin subregion Page, the old page of original storage file data is set to invalid page by free page new for the data updating write. Find new free page without in Gao Gengxin subregion, then look for invalid page in Gao Gengxin subregion, erasing is looked for The invalid page arriving, by the invalid page after the data updating write erasing.
Step 606: when not finding free page in described second partition holding, in the described second storage Invalid page is found in subregion;Wipe described invalid page, and the renewal file data body storage by described file Invalid page to after wipe.
In the embodiment of the present invention, according to the quantity of described second class file and size, described second class file The erasable number of times of the page in update times, described subscriber identification module, determines in described second partition holding Page quantity.
The subregion of embodiment of the present invention dynamic configuration file system, specifically, the Gao Gengxin that creates as needed The size and number of frequency file, the file update times requiring and the erasable number of times of flash limit, and calculate The flash number of pages that Gao Gengxin subregion takies.During sim card System build, according to the Gao Gengxin subregion calculating Flash number of pages distribution memory space, referring to Figure 12.When sim card system starts, file system is divided Area is initialized.
In the embodiment of the present invention, when the type of described file is the first class file, in the first partition holding It is stored with the page of source file data volume of described file and update described file data body.
In the technical scheme of the embodiment of the present invention, for the storage medium flash in sim card, by flash Storage region be divided into the first partition holding and the second partition holding, here, the first partition holding refers to general Logical partition holding, i.e. low regeneration block, the second partition holding refers to Gao Gengxin subregion.In establishment file, The file header of All Files is stored in the first partition holding, wherein, file attribute mark in described file header Know the type of described file, the type of described file is the first class file or the second class file.Here, One class file refers to low renewal frequency file, and the second class file refers to Gao Gengxin frequency file.When described file When attribute shows that created file belongs to the first class file, store described first kind literary composition in the first partition holding The file data body of part;When described file attribute shows that created file belongs to the second class file, Two partition holdings store the file data body of described second class file.The technical scheme of the embodiment of the present invention is to literary composition Part system has carried out subregion, and the file of different update frequency is stored in different subregions, for not With the file in subregion, support different renewal operations.The technical scheme of the embodiment of the present invention consumes less Storage resource and performance, are greatly enhanced the reliability of sim card file system.And, dynamic configuration height is more New frequency file subregion, rationally, has been efficiently used sim card storage resource.
Fig. 7 is the structure composition schematic diagram of the document management apparatus of sim card of the embodiment of the present invention one, such as schemes Shown in 7, described device includes:
Zoning unit 71, for being divided into the first partition holding and the second partition holding by storage region;
First memory cell 72, during for establishment file, the file header of file is stored in described first storage Subregion, wherein, the file attribute in described file header identifies the type of described file, the class of described file Type is the first class file or the second class file;When described file attribute shows that created file belongs to the first kind The file data body of described first class file during file, is stored in the first partition holding;
When described file attribute, second memory cell 73, for showing that created file belongs to the second class file When, the file data body of described second class file is stored in the second partition holding.
It will be appreciated by those skilled in the art that each unit in the document management apparatus of sim card shown in Fig. 7 Function of realizing can refer to the associated description of file management method of aforementioned sim card and understand.
Fig. 8 is the structure composition schematic diagram of the document management apparatus of sim card of the embodiment of the present invention two, such as schemes Shown in 8, described device includes:
Zoning unit 81, for being divided into the first partition holding and the second partition holding by storage region;
First memory cell 82, during for establishment file, the file header of file is stored in described first storage Subregion, wherein, the file attribute in described file header identifies the type of described file, the class of described file Type is the first class file or the second class file;When described file attribute shows that created file belongs to the first kind The file data body of described first class file during file, is stored in the first partition holding;
When described file attribute, second memory cell 83, for showing that created file belongs to the second class file When, the file data body of described second class file is stored in the second partition holding.
Described device also includes:
First determining unit 84, for determining the file header of described file according to the mark id of file;
Second determining unit 85, for according to the file attribute in described file header, determining the class of described file Type;
First searching unit 86, for when the type of described file is the second class file, in the second storage point Free page is found in area;
First updating block 87, for the renewal file data body of described file is stored to described free page, And by the page setup of the source file data volume of the described file that is stored be invalid page.
Described device also includes:
Second searching unit 88, for when not finding free page in described second partition holding, in institute State in the second partition holding and find invalid page;
Described first updating block 87, is additionally operable to wipe described invalid page, and the more new file by described file Data volume stores the invalid page to erasing.
Described device also includes:
3rd determining unit 89, for civilian according to the quantity of described second class file and size, described Equations of The Second Kind The erasable number of times of the page in the update times of part, described subscriber identification module, determines described second partition holding In page quantity.
Described device also includes: the second updating block 810, for being first kind literary composition when the type of described file During part, the page of source file data volume of described file that is stored with the first partition holding updates described literary composition Part data volume.
It will be appreciated by those skilled in the art that each unit in the document management apparatus of sim card shown in Fig. 8 Function of realizing can refer to the associated description of file management method of aforementioned sim card and understand.
Between technical scheme described in the embodiment of the present invention, in the case of not conflicting, can be in any combination.
It should be understood that disclosed method and smart machine in several embodiments provided by the present invention, Can realize by another way.Apparatus embodiments described above are only schematically, for example, The division of described unit, only a kind of division of logic function, actual can have other division side when realizing Formula, such as: multiple units or assembly can combine, or are desirably integrated into another system, or some features can To ignore, or do not execute.In addition, the coupling or straight each other of shown or discussed each part Connecing coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of equipment or unit or communication connection, Can be electrical, machinery or other forms.
The above-mentioned unit illustrating as separating component can be or may not be physically separate, as The part that unit shows can be or may not be physical location, you can positioned at a place, also may be used To be distributed on multiple NEs;Part or all of unit therein can be selected according to the actual needs Realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a second processing list In unit or each unit individually as a unit it is also possible to two or more unit collection Become in a unit;Above-mentioned integrated unit both can be to be realized in the form of hardware, it would however also be possible to employ hard The form that part adds SFU software functional unit is realized.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art the invention discloses technical scope in, can readily occur in Change or replacement, all should be included within the scope of the present invention.

Claims (10)

1. a kind of file management method of subscriber identification module is it is characterised in that methods described includes:
Storage region is divided into the first partition holding and the second partition holding;
During establishment file, the file header of file is stored in described first partition holding, wherein, described file File attribute in head identifies the type of described file, and the type of described file is the first class file or second Class file;
When described file attribute shows that created file belongs to the first class file, deposit in the first partition holding Store up the file data body of described first class file;
When described file attribute shows that created file belongs to the second class file, deposit in the second partition holding Store up the file data body of described second class file.
2. the file management method of subscriber identification module according to claim 1 is it is characterised in that institute Method of stating also includes:
The file header of described file is determined according to the mark id of file;
According to the file attribute in described file header, determine the type of described file;
When the type of described file is the second class file, in the second partition holding, find free page;
The renewal file data body of described file is stored to described free page, and by the described file that is stored with The page setup of source file data volume is invalid page.
3. the file management method of subscriber identification module according to claim 2 is it is characterised in that institute Method of stating also includes:
When not finding free page in described second partition holding, search in described second partition holding To invalid page;
Wipe described invalid page, and the file data body that updates of described file is stored the invalid page to erasing.
4. the file management method of subscriber identification module according to claim 1 is it is characterised in that institute Method of stating also includes:
Quantity and size, the update times of described second class file, described use according to described second class file The erasable number of times of the page in the identification module of family, determines the page quantity in described second partition holding.
5. the file management method of the subscriber identification module according to any one of Claims 1-4, it is special Levy and be, methods described also includes:
When the type of described file is the first class file, be stored with the first partition holding described file Described file data body is updated on the page of source file data volume.
6. a kind of document management apparatus of subscriber identification module are it is characterised in that described device includes:
Zoning unit, for being divided into the first partition holding and the second partition holding by storage region;
First memory cell, during for establishment file, the file header of file is stored in described first storage point Area, wherein, the file attribute in described file header identifies the type of described file, the type of described file For the first class file or the second class file;When described file attribute shows that created file belongs to first kind literary composition The file data body of described first class file during part, is stored in the first partition holding;
Second memory cell, for when described file attribute shows that created file belongs to the second class file, Store the file data body of described second class file in the second partition holding.
7. the document management apparatus of subscriber identification module according to claim 6 are it is characterised in that institute State device also to include:
First determining unit, for determining the file header of described file according to the mark id of file;
Second determining unit, for according to the file attribute in described file header, determining the type of described file;
First searching unit, for when the type of described file is the second class file, in the second partition holding In find free page;
First updating block, for the renewal file data body of described file is stored to described free page, and The page setup of the source file data volume of the described file that is stored with is invalid page.
8. the document management apparatus of subscriber identification module according to claim 7 are it is characterised in that institute State device also to include:
Second searching unit, for when not finding free page in described second partition holding, described Invalid page is found in second partition holding;
Described first updating block, is additionally operable to wipe described invalid page, and the renewal number of files by described file Store the invalid page to erasing according to body.
9. the document management apparatus of subscriber identification module according to claim 6 are it is characterised in that institute State device also to include:
3rd determining unit, for according to the quantity of described second class file and size, described second class file Update times, in described subscriber identification module the page erasable number of times, determine in described second partition holding Page quantity.
10. the document management apparatus of the subscriber identification module according to any one of claim 6 to 9, its It is characterised by, described device also includes:
Second updating block, for when the type of described file is the first class file, in the first partition holding In be stored with the page of source file data volume of described file and update described file data body.
CN201510408918.4A 2015-07-13 2015-07-13 File management method and device of user identification module Active CN106354718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510408918.4A CN106354718B (en) 2015-07-13 2015-07-13 File management method and device of user identification module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510408918.4A CN106354718B (en) 2015-07-13 2015-07-13 File management method and device of user identification module

Publications (2)

Publication Number Publication Date
CN106354718A true CN106354718A (en) 2017-01-25
CN106354718B CN106354718B (en) 2021-05-25

Family

ID=57842085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510408918.4A Active CN106354718B (en) 2015-07-13 2015-07-13 File management method and device of user identification module

Country Status (1)

Country Link
CN (1) CN106354718B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213448A (en) * 2018-08-30 2019-01-15 东信和平科技股份有限公司 A kind of method, apparatus, equipment and the storage medium of the erasable data of smart card
CN111565245A (en) * 2020-04-28 2020-08-21 武汉天喻聚联网络有限公司 Multi-code storage method and system
CN111782605A (en) * 2020-07-06 2020-10-16 东信和平科技股份有限公司 Chip card file management method, device, terminal and storage medium
CN113282521A (en) * 2021-05-19 2021-08-20 武汉天喻信息产业股份有限公司 Method and device for prolonging service life of smart card

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369451A (en) * 2007-08-14 2009-02-18 三星电子株式会社 Solid state memory (ssm), computer system including an ssm, and method of operating an ssm
CN101571869A (en) * 2009-05-31 2009-11-04 北京握奇数据系统有限公司 File memory and read method of smart card and device thereof
CN101740110A (en) * 2009-12-17 2010-06-16 中兴通讯股份有限公司 Method and device for erasure balance of Nand Flash
CN101903866A (en) * 2007-11-21 2010-12-01 提琴存储器公司 Method and system for storage of data in non-volatile media
CN101911074A (en) * 2008-01-10 2010-12-08 帝斯科匹尔公司 Selecting storage location for file storage based on storage longevity and speed
US20120254513A1 (en) * 2011-04-04 2012-10-04 Hitachi, Ltd. Storage system and data control method therefor
CN102799534A (en) * 2012-07-18 2012-11-28 上海宝存信息科技有限公司 Storage system and method based on solid state medium and cold-hot data identification method
CN102981966A (en) * 2012-11-09 2013-03-20 青岛海信宽带多媒体技术有限公司 Data storage method with Flash storage blocks evenly assigned
CN104461935A (en) * 2014-11-27 2015-03-25 华为技术有限公司 Method, device and system for data storage

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369451A (en) * 2007-08-14 2009-02-18 三星电子株式会社 Solid state memory (ssm), computer system including an ssm, and method of operating an ssm
CN101903866A (en) * 2007-11-21 2010-12-01 提琴存储器公司 Method and system for storage of data in non-volatile media
CN101911074A (en) * 2008-01-10 2010-12-08 帝斯科匹尔公司 Selecting storage location for file storage based on storage longevity and speed
CN101571869A (en) * 2009-05-31 2009-11-04 北京握奇数据系统有限公司 File memory and read method of smart card and device thereof
CN101740110A (en) * 2009-12-17 2010-06-16 中兴通讯股份有限公司 Method and device for erasure balance of Nand Flash
US20120254513A1 (en) * 2011-04-04 2012-10-04 Hitachi, Ltd. Storage system and data control method therefor
CN102799534A (en) * 2012-07-18 2012-11-28 上海宝存信息科技有限公司 Storage system and method based on solid state medium and cold-hot data identification method
CN102981966A (en) * 2012-11-09 2013-03-20 青岛海信宽带多媒体技术有限公司 Data storage method with Flash storage blocks evenly assigned
CN104461935A (en) * 2014-11-27 2015-03-25 华为技术有限公司 Method, device and system for data storage

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213448A (en) * 2018-08-30 2019-01-15 东信和平科技股份有限公司 A kind of method, apparatus, equipment and the storage medium of the erasable data of smart card
CN109213448B (en) * 2018-08-30 2022-04-05 东信和平科技股份有限公司 Method, device, equipment and storage medium for erasing and writing data of smart card
CN111565245A (en) * 2020-04-28 2020-08-21 武汉天喻聚联网络有限公司 Multi-code storage method and system
CN111782605A (en) * 2020-07-06 2020-10-16 东信和平科技股份有限公司 Chip card file management method, device, terminal and storage medium
CN113282521A (en) * 2021-05-19 2021-08-20 武汉天喻信息产业股份有限公司 Method and device for prolonging service life of smart card
WO2022241917A1 (en) * 2021-05-19 2022-11-24 武汉天喻信息产业股份有限公司 Method and apparatus for prolonging service life of smart card

Also Published As

Publication number Publication date
CN106354718B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN102511044B (en) Method for deleting the data and device thereof
KR20150095781A (en) Memory recycling method and device
CN101263462B (en) Nonvolatile memory with block management
CN106354718A (en) File management method and device of subscriber identity module
CN104933051B (en) File storage recovery method and device
CN102135942B (en) Method for realizing wear-leveling in storage equipment as well as the storage equipment
CN103064639A (en) Method and device for storing data
CN103440205B (en) A kind of set top box data storage method and device
CN103186622B (en) The update method of index information and device in a kind of text retrieval system
KR20080086828A (en) Memory management device and method, and memory management system
CN106708968A (en) Distributed database system and data processing method in distributed database system
CN101268449A (en) Information recording medium access apparatus, and data recording method
CN106066818B (en) A kind of data layout method improving data de-duplication standby system restorability
US8296270B2 (en) Adaptive logging apparatus and method
CN103268291A (en) Method for delaying persistent indexing metadata in flash memory storage system
CN105389266B (en) A kind of data managing method and device
CN110955488A (en) Virtualization method and system for persistent memory
CN111831691B (en) Data reading and writing method and device, electronic equipment and storage medium
CN109408416B (en) Address mapping table entry page management method and device
CN107479834A (en) A kind of file memory method and device based on COS
CN104572681A (en) Intelligent card file management system and method based on registry
CN107430546B (en) File updating method and storage device
CN108563586A (en) A kind of method of garbage reclamation data and user data in separation solid-state disk
CN107148612A (en) A kind of method and apparatus of extending user subregion
CN108664482A (en) FLASH memory and storage file management method

Legal Events

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