Method for saving a file to a portable storage device

By storing frequently updated files in volatile memory during sessions and using an update counter, the method addresses the limited lifespan issue of portable data carriers, enhancing their operational longevity and reducing replacement costs.

DE102010054783B4Active Publication Date: 2024-09-19GIESECKE DEVRIENT MOBILE SECURITY GERMANY GMBH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
DE102010054783
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2010-12-16
Publication Date
2024-09-19
Estimated Expiration
2030-12-16

AI Technical Summary

Technical Problem

The limited lifespan of portable data carriers due to excessive write accesses to non-volatile memory areas, particularly in integrated components like M2M modules, is exacerbated by frequent updates, leading to premature device failure and high replacement costs.

Method used

A method for storing file contents with a 'High Update Activity' attribute exclusively in volatile memory during a session, avoiding permanent storage in non-volatile memory unless necessary, and using an update counter to manage frequent updates.

Benefits of technology

Extends the lifespan of portable data carriers by reducing wear on non-volatile memory, allowing all performance capabilities to be utilized without software workarounds, and minimizing replacement costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Method for storing a file (10) in a portable data carrier (1), wherein the file (10) has a file descriptor (11) and a file content (12) comprising the method steps: - Receiving (17) a file content (12) of the file (10) during the operation of the data carrier (1) in the data carrier (1); and - Checking (18) an attribute (13) of the file (10) whose file content (12) was received, by the data carrier (1); characterized in that the file content (12) is stored in a volatile memory area (3) of the data carrier (1) for use during this operation of the data carrier (1) when the file (10) has a certain attribute (13);- wherein the file (10) is an elementary file of a file system (8) of a SIM card and the certain attribute (13) is the ‘High Update Activity’ attribute;- wherein the data carrier (1) is a subscriber identification module for a mobile network (6), the structure and operation of which is specified in ETSI 3GPP TS 11.11 / 51.011 or the ETSI 3GPP TS 31.102 is defined.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The invention relates to a method for storing a file in a portable data carrier, a computer product and a portable data storage device.

[0002] A portable data carrier is preferably a data carrier with corresponding Security functionalities such as smart cards, chip cards, tokens, mass storage cards, multimedia cards and / or electronic identity documents, such as an electronic identity card, a passport with, on machine-readable identification data of a person stored on a chip. For example, a chip card is the term portable data carrier, whereby the application area of ​​the chip card is very diverse, for example as a credit or debit payment card, health card, access authorization card, company ID card, identification card, electronic vehicle registration document or driver's license. In particular, a subscriber identification card, or SIM card for short, for identifying a subscriber in a mobile network is understood as a portable data carrier.

[0003] Alternatively, the data carrier may be a security element integrated into a mobile device The security element is designed in particular as a hardware component and as a permanently integrated Component arranged in the mobile device, whereby it is either in the form not removed from the mobile device can be used, for example, as an M2M module, co-processor or as a trusted processor part, such as Trusted Base. Alternatively, the security element can be used as a removable module with security functionality with the mobile terminal in, for example in the form of a chip card, in particular a Subscriber Identification Modules, in short SIM card, mass storage card, USB token, mass storage card, Secure MicroSD card, as Mobile network token, e.g. a UMTS surf stick. Alternatively, the security element is a software component in the form of a Trusted Platform Module as a trusted part of the operating system kernel of the mobile device or as a Security software algorithm designed.

[0004] The file system of a data carrier includes, according to the 5th edition of the ´´Handbook of Chip Cards´´ by the authors Wolfgang Rankl and Wolfgang Effing, hereinafter referred to as Rankl / Effing, published in 2008 by Carl Hanser Verlag Dedicated Files (DF) and individual files, known as Elementary Files (EF for short).

[0005] According to Rankl / Effing, the file system is in a rewritable non-volatile storage area, for example, the EEPROM or FLASH memory of the portable data storage device, so that the file system is also available after the disk is deactivated. The management and organization of the files in the file system is taken over by the operating system of the data carrier.

[0006] In an object-oriented structure of the file system, the files have a file descriptor, also known as a file Header contains all information about the file itself. Furthermore, the files have the File content, also called the file body, which contains the payload of the file. The file descriptor is in turn contain the attribute of the file, which identifies special properties of the file. The file descriptor can have a fixed or variable length.

[0007] Parts of the file system of today's portable data storage devices can be used for maintenance purposes, innovations, extensions and / or error correction can be carried out subsequently, i.e. after the data carrier has been issued to a user. A part of the file system includes, for example, an application with a directory file DF and associated Files EF. One part of the file system is, for example, an application for maintaining any functionality. Changes or updates to the file system affect the file contents of a single or multiple Files in the file system or only certain parts of a file's content are replaced by current parts of the File contents replaced.

[0008] In today’s data storage devices, the number of read / write accesses in the non-volatile memory is limited and highly depending on the technology used to manufacture the non-volatile memory, the manufacturing process itself and the Environment in which the semiconductor chip is operated. This number decreases with increasing performance and simultaneous Reduction in the area of ​​the storage areas in the data carrier. A semiconductor chip manufacturer usually guarantees a minimum number of write cycles. Typically, an EEPROM memory manufacturer guarantees between 100,000 and 500,000 Write cycles, with FLASH memory up to 100,000 write cycles are guaranteed. Is the guaranteed minimum number Write cycles to a sector / block or to the same byte in a memory area, the No guarantee is given regarding the functionality of the chip. In most cases, the The data storage device is no longer functional and must be replaced.

[0009] The problem is aggravated when the data carrier is incorporated as a permanently integrated component into a terminal device , for example, a machine-to-machine (M2M) module or a trusted processor area. On the one hand, such data carriers should have longer operating times, on the other hand, the data carrier cannot be can be easily replaced. Usually, the entire device has to be replaced.

[0010] To avoid such problems, the operation of non-volatile memory areas For example, a ´´Wear Leveling´´ process is used. This process allows an unused or previously little-used sector of the non-volatile memory area is used to write the updated file content, instead of writing a sector with updated data content immediately after a deletion process. This allows the number of read / write accesses can be effectively increased.

[0011] Alternatively, data storage device manufacturers often indicate that the non-volatile memory can be written to using To bypass software routines, such as program code loops, complex register evaluations, etc., so that the non-volatile memory area needs to be written less frequently in order to ensure the longest possible lifetime of the data carrier The disadvantage here is that a programmer of software for the data carrier has to be software codes, especially the performance of the data carrier due to higher computing effort, Program runtimes and can be massively weakened by such circumvention software routines.

[0012] DE 10 2004 013 132 B4 describes a data carrier having a data structure in which several files The file header represents the content of the respective file and context information represents the Content of the respective additional file which has a file body which has a factual reference to the content of an open file has.

[0013] DE 199 60 114 A1 describes a method for storing data in a file of a data storage system, which comprises a working memory which is directly associated with a microprocessor and in which the Microprocessor stores the data required to execute data processing programs, as well as a Mass storage device intended to store additional data, with the data being stored in at least two different fragments of the file are stored, which are assigned to separate areas of the data storage system, and where an allocation list is created in which the allocation of the file fragments to different areas of the It is intended that the data will be stored at least partly in file fragments of the mass storage and that the entries of the assignment list are stored in the main memory become.

[0014] DE 694 27 070 T2 describes a file management system for managing data of a plurality of files which are divided into a permanent memory, in a so-called IC card, which uses an IC chip that has a permanent memory and a control unit, such as a CPU for controlling the permanent memory and the like.

[0015] DE 697 25 677 T2 describes methods and devices for storing geographical information on physical storage media, and in particular methods and devices for providing geographical data on a physical storage medium for use in a computer-based navigation system.

[0016] Wikipedia, The Free Encyclopedia. Last edited: July 9, 2010. URL: https: / / de.wikipedia.org / w / index.php? title=Disk cache&oldid=76495915 [accessed on July 18, 2023] describes a hard disk cache.

[0017] Information technology - AT Attachment 8 - ATA / ATAPI Command Set (ATA8-ACS). T13 / 1699-D, revision 6a, American National Standards Institute, Inc. Edit status: September 6, 2008. Archived from the original (PDF) on August 6, 2020. Retrieved December 14, 2020. URL: https: / / web.archive.org / web / 20200806025823 / http: / / www.t13.org / Documents / UploadedDocuments / docs2008 / D1699r6a-ATA8-ACS.pdf [accessed on 18.07.2023] describes an ATA / ATAPI- Instruction set (ATA8-ACS).

[0018] The invention is therefore based on the object of significantly increasing the service life of portable data carriers and in particular to significantly reduce write accesses to a non-volatile memory area. Workarounds are prevented so that a programmer can use all the possibilities and features of the data carrier The process should be simple to implement and efficient.

[0019] The object of the invention is achieved by the features described in the independent claims Measures resolved. Advantageous Embodiments are described in the respective dependent claims.

[0020] The object is achieved in particular by a method for storing a file in a portable data carrier The file has a file descriptor and a file content. In a first step, a The file contents of the file are received during operation of the data storage device. In a second process step, a Attribute of the file whose contents were received is checked by the data carrier. The file contents are used to Use during this operation of the data carrier is stored in a volatile memory area if the file is a specific attribute. The file is an elementary file of a SIM card file system and the specific Attribute is the ´´High Update Activity´´ attribute, where the data carrier is a subscriber identification module for a mobile network whose construction and operation are specified in the ETSI 3GPP TS 11.11 / 51.011 or the ETSI 3GPP TS 31.102 is defined.

[0021] Saving in the volatile memory area means in particular that the file contents are not further stored in the non-volatile memory and stored there. Until the end of the session, the file content stored exclusively in the volatile memory area. If this file content is necessarily needed, it is not loaded from the non-volatile memory as usual, but directly from the volatile Memory area, for example the RAM, is loaded.

[0022] This procedure also includes the creation of new files. For example, if the command CREATE FILE in the data carrier and the file has the specific attribute, the file is stored exclusively in the volatile Memory area is created and discarded after the session ends.

[0023] An attribute of the file of a portable data carrier is particularly described in Rankl / Effing under point 12.9 ´´Attributes of files'' starting on page 474. They are used to mark special properties of the file. The attribute is stored in the file descriptor. In an object-oriented structure, this file descriptor contains a pointer to the original file contents of the file. The file descriptor and original file contents are stored in a non-volatile A specific attribute in the sense of registration is an attribute which a specific property of the file or its contents. This property of the file shows the inventive method that the file content can be discarded after the session of the data carrier has ended and is therefore only stored in the volatile memory area of ​​the data carrier.

[0024] The term operation of the data carrier is synonymous with the term session of the data carrier. The data carrier has been made operational by means of a terminal device, in particular with a Power supply and possibly other electrical signals such as reset, clock etc. are supplied by the terminal device. the data carrier is operational in a session and receives file contents, these are preferably only available in this session available. If the power supply signals are deactivated by the data carrier, the operation of the data carrier ends, the Session is therefore ended.

[0025] According to the invention, the file is thus in particular an elementary file of a SIM card file system.

[0026] According to the invention, the specific attribute is the ´´High Update Activity´´ attribute. This attribute characterizes Files that are updated very frequently, which reduces the lifetime of the disks when these are used frequently. files rapidly. Therefore, storage device manufacturers always warn against this and advise programmers not to to use such files at all, although the use during a session of the data storage device is quite The problem is that these files are always overwritten in the same sector of the non-volatile memory so that special memory cells are loaded excessively often, resulting in a drastic reduction in the The inventive method enables the use of files with This attribute is possible without any disadvantages, since it can be assumed that updating the files has no relevance after End the session and can be discarded.

[0027] According to one embodiment and in particular, the file content is an updated file content and the file is with the original file content in a non-volatile memory area of ​​the data carrier. The update command known on data storage devices is UPDATE BINARY / RECORD, which is used to update an original File contents on a disk can be updated.

[0028] In the sense of the description, the term updated file content refers, on the one hand, to the replacement of a file already in the The original file content stored in a non-volatile memory area. Alternatively, the term also understood that a downloadable file content in addition to already existing file content is received, which can also be discarded if the session of the data carrier has ended. The term updated file content therefore also includes reloadable file content.

[0029] In contrast to the state of the art, where any update of file contents is considered a backup in the non-volatile memory, the method according to the invention first checks an attribute and Depending on the attribute, it is determined whether saving to the non-volatile memory area is necessary. a lot of time that would be needed to access the non-volatile memory. Since volatile memory, For example, RAM cells can be written to much more frequently, the lifetime of the data storage device is drastically extended.

[0030] According to one embodiment and advantageously, the updated file content is stored exclusively in the volatile memory area of ​​the disk, so that the updated file content is not lost when the If the attribute determines that an update of the data carrier is If updating the file content is not necessary, the updated file content is not saved in the non-volatile memory area.

[0031] The invention makes use of the fact that a large number of updates of file contents are not must be stored permanently and is only necessary for one session of the data storage device. Therefore, these Updates are only stored in volatile memory.

[0032] According to one embodiment, when the data carrier is put into operation again, i.e. at the start of a new session, the original file contents of the file are loaded from the non-volatile storage area of ​​the disk.

[0033] According to the invention, the data carrier is a subscriber identification module for a Mobile network. The setup and operation of such data carriers is described in detail in the ETSI 3GPP TS 11.11 / 51 specification. 011 or ETSI 3GPP TS 31.102. This GSM / USIM specification also defines the files that may be updated again if necessary.

[0034] According to one embodiment, the name of the file is also checked when checking the attribute. File contents updated to remove erroneous file contents or to display information for a user, It is advisable not to discard this update without saving it. A list of the respective file names is Figure description can be found.

[0035] In an advantageous embodiment, an update counter is provided in the data carrier, which upon receipt of the file content is incremented if the updated file content is only stored in the volatile memory area of ​​the disk The counter value of the update counter is stored in the non-volatile memory area, so that it can also available after the session has ended. The counter value is stored, for example, in the file descriptor of the file, whose updated file content has been received and is queried when checking the attribute. Alternatively, With each updated file content, the version of the file is transmitted, so that access to the non-volatile storage area can be completely blocked.

[0036] In an advantageous embodiment, the counter reading of the update counter is compared with a preset The updated file content is stored in the non-volatile memory regardless of the file's attribute. memory area when the counter value exceeds the preset value. The original file content will be overwritten by the updated file content. The default value can be any value. For example, This advantageously ensures that every x-th update is stored in the non-volatile memory area so that the other nine updates received in the meantime are discarded.

[0037] In an advantageous embodiment, the updated file content is always first is stored in the non-volatile memory area when the original file content is updated for the first time. Most updates in the field are only important the first time, so this first update of the original file content should also be stored in the non-volatile memory area. All subsequent Updates are discarded because they are only relevant for the current session.

[0038] In one embodiment, the updated file content is transmitted via an over-the-air service from a remote Mobile radio entity in a mobile network or through a communication connection with a terminal in the Data carriers are received. In this application, a mobile network is understood as a technical infrastructure on which the Transmission of signals for mobile communications takes place. This is essentially the mobile switching network in which the Transmission and switching of signals between fixed installations and mobile network platforms take place, as well as the access network (also called air interface), in which the transmission of signals between a mobile phone antenna and a mobile device. For example, the 'Global System for Mobile Communications´´, abbreviated to GSM as a representative of the so-called second generation or the General Packet Radio Service, GPRS and Universal Mobile Telecommunications System, UMTS for short, as representatives of the so-called third generation of mobile networks are mentioned here as examples, whereby in the third generation the mobile switching network is expanded to include the The ability of packet-oriented data transmission is expanded, but the radio network itself remains unchanged.

[0039] Alternatively, the updated file content is transmitted through a communication connection with a terminal in the Receive data carriers. This occurs either via a contact interface or a contactless interface. The operating system of the data carrier is designed in such a way that the update of the file content via the contactless Interface of the data carrier, for example, according to one of the ISO / IEC 14443, 15693, 18092 or contact-based according to ISO / IEC 7816 or USB standard is received.

[0040] The basic idea of ​​the invention further comprises a computer program product which is directly integrated into the volatile or non-volatile memory of the data carrier and includes software code sections that allow the previous embodiments of the method according to the invention can be carried out when the product is on the disk expires.

[0041] The basic idea of ​​the invention further comprises a portable data carrier with an integrated Semiconductor circuit. The circuit includes a communication interface for receiving an updated file contents of a file, a volatile storage area for storing the updated file contents and a non-volatile memory area for storing the original file content and a file descriptor of the file. The disk also has a verification unit that stores an attribute of the file and the updated file content only in the volatile memory area for use during operation of the data carrier when the file is a specific attribute. The integrated semiconductor circuit of the data carrier further comprises a Update counter, wherein the update counter is incremented when the updated file content (12a) is received and a comparison unit, wherein the comparison unit compares the counter reading of the update counter with a preset value. The original file content in the non-volatile memory area is updated file content is overwritten if the comparison of the comparison unit shows that the counter reading is equal to or is greater than the preset value.

[0042] The invention and further embodiments and advantages of the invention are described below with reference to figures The figures merely describe exemplary embodiments of the invention. Identical components in the Figures are provided with the same reference symbols. The figures are not to be considered as true to scale, individual elements of the figures may be exaggeratedly large or excessively simplified.

[0043] Shown are: Fig. 1 Receiving an updated file content via a mobile network according to the state of the art Fig. 2 A block diagram of functional units of a portable data storage device State-of-the-art semiconductor circuit Fig. 3 A file system with files in a SIM card according to the state of the art Fig. 4 An object-oriented structure of a file consisting of file descriptor and file content according to the state the technology Fig. 5 A flowchart of a first embodiment of a method according to the invention for storing a file on a disk Fig. 6 An alternative embodiment of the flow chart shown in Fig. 5 Fig. 7 An alternative embodiment of the invention shown in Fig. 5 and Fig. 6 Flowchart

[0044] Fig. 1 shows a system consisting of a mobile terminal 5 with an internal terminal circuit 5a. mobile terminal 5 is still a portable data carrier 1 in the form of a SIM card. However, the data carrier 1 could also be designed in one of the ways described above and integrated in the terminal 5. The terminal 5 is in Fig. 1 a mobile radio terminal and by means of a mobile radio connection 6 with a remote mobile radio instance 7 in a Communication connection. Part of the mobile radio instance 7 is an update server 7a. On the SIM card 1, a not shown file system, whose files 10 have a file content 12, which is transmitted via the update server 7a The update of the file system 8 and the files 10 contained therein in the SIM 1 takes place initiated by an update command 15 by the remote mobile network entity 7 via OTA. Alternatively, the terminal device 5 required to operate the SIM 1 can make pending updates.

[0045] The terminal 5 shown in Fig. 1 is, for example, a smart phone, a PDA or an alternative mobile Terminal 5. It is primarily suitable for a mobile radio connection 6 with a mobile radio instance 7. A non- The terminal 5 receives the updated file content 12a as part of the file system 8 on SIM 1. This update is transferred from the terminal 5 to SIM 1. In SIM 1, the original File content 12b is replaced by the updated file content 12a in the non-volatile memory area 4b. The update takes place at irregular intervals and for a variety of purposes, in particular for remote maintenance, Bug fixing, information sharing and more.

[0046] In Fig. 2 is an exemplary block diagram of a semiconductor circuit 2 incorporated in the data carrier 1 The semiconductor circuit comprises a central processing unit CPU, at least one interface I / O, via which a contact and / or contactless communication connection to the terminal 5 is enabled. Via this I / O Interface, the data carrier 1 is made operational by transmitting the necessary signals, in particular the Power supply, clock, reset signal and possibly other data channels are transmitted. The transmission takes place for example via an electrical cable or an electromagnetic field.

[0047] The semiconductor circuit 2 further comprises a volatile memory area 3, in particular a random access Memory, or RAM for short. This memory is characterized by fast access times compared to other Storage technologies and the loss of memory content when the power supply is interrupted. Furthermore, the circuit 2 a non-volatile memory area 4 is provided. This memory area 4 has an easily rewritable non-volatile memory 4a and a rewritable non-volatile memory 4b. The memory 4a is For example, a read-only memory that is loaded with files during a production and / or personalization phase which are stored in an unchangeable manner in area 4a. Memory 4b, on the other hand, is writable. The memory area 4b is primarily used in today's data storage devices in EEPROM or FLASH technology designed.

[0048] The data carrier 1 shown in Fig. 2 now receives via the I / O interface the data carrier mentioned in Fig. 1 updated file content 12a in the form of APDU and transmits this updated file content 12b to the computing unit CPU. The CPU, in turn, has certain access rights to the volatile memory area 3 as well as the non-volatile memory areas 4a and 4b. According to the state of the art and the GSM and ETSI specifications, upon receipt of the updated file contents 12a, the updated file contents 12a is stored in the non-volatile, rewritable memory area 4b.

[0049] Figure 3 shows an exemplary file system 8 according to the prior art. The file system has a Master File, MF and two Dedicated Files DF1, DF2 as directory files 9. Hierarchically subordinate, each DF two elementary files EF1, EF2 and EF3, EF4, which are referred to below as files 10. In Fig. 3, dashed lines As shown, a directory file DF1 can contain another directory file DF3, which in turn can contain Elementary Files EF5, EF6. If file contents updated during an update command 15 are now 12a for the files EF1, EF2, the original file contents 12b are replaced by the updated file contents 12a was replaced as part of the update 15, so to speak, the file contents 12b were overwritten with the file contents 12a. This file content 12 is always on the same sector of the rewritable storage area 4b, this Sector may be written more often than other sectors that are only read, whereby at some point the maximum write access count is reached. Thus, these sectors of the storage area 4b reduce the lifetime of the data carrier 1 and lead in particular to its inoperability. Especially with permanently installed data storage devices 1 in the terminal device 5 This can lead to massive costs, as replacing data carrier 1 is complex.

[0050] Fig. 4 shows an object-oriented structure of a file 10. A file descriptor 11 is shown. Descriptor 11, also known as the file header, contains the administratively relevant information of the actual file content 12. The file descriptor 11 has an attribute 13 which specifies the property of the file 10 As attribute 13 there is in particular the WORM attribute, a marking that the corresponding File 10 can only be written once, but can be read multiple times. Another attribute 13 is the EDC attribute, a Marking that the file content 12 of this file 10 is particularly sensitive and with an error detection code, EDC for short, is equipped to immediately detect the flipping of individual memory bits in the non-volatile memory. Attribute 13 is also the atomic Write access is provided, a flag indicating that this file 10 can only be written completely or not at all Additional attributes can be used for interface management, the boot process of the data carrier, the File encryption and much more can be assigned.

[0051] A very important attribute 13 for this application is the attribute for frequent writing, English: High Update Activity. This is a label for a file 10 that is updated very frequently and therefore requires a lot of writing. / Read accesses to the non-volatile memory area 4b.

[0052] The actual file content 12 of the file 10 is again contained in the file body. The file descriptor 11 has always a pointer to the address of the memory area 4b in which the file content 12 belonging to the descriptor 11 is located, When updating file content 12, a complete replacement of the original file is no longer necessary. File content 12b with the updated file content 12a, but in particular only parts of the file content 12b. Thus, an update command 15 can update the file contents 12a for only one fraction of an original file content 12b.

[0053] In the sense of the application, the term updated file content means, on the one hand, the replacement of a file already in the non-volatile memory area, but also loadable File content conceivable.

[0054] Fig. 5 shows a program flow of a method according to the invention. Here, the data carrier 1 is Operation is indicated by the start of a session. Upon commissioning, the supply of data carrier 1 with clock, reset, voltage and possibly other signals. During the session, the reception of 17 of a updated file content 12a. The receiving is explained in Fig. 1 only and not explicitly Component of the invention. Once the reception 17 is completed, the check 18 for the attribute 13 of the file 10, which concerns the updated file content 12a. This attribute 13 is either during reception 17 received or alternatively by reading the updated file content 12a file descriptor 11 in the non-volatile memory area 4b. According to the invention, the specific attribute 13 is the Attribute ´´High Update Activity´´ is used.

[0055] If the attribute 13 ´´High Update Activity´´ is not recognized during the check 18, the updated file content 12a is written to the non-volatile memory area 4b. In particular, the corresponding original file content 12b overwritten.

[0056] If, however, the attribute 13 ´´High Update Activity´´ is detected during the check 18, the updated File content is only stored in the volatile memory area 3, specifically the RAM for this session. The file content 12a can be used for this session and represents all necessary operations in disk 1 The ETSI TS 102 241 specification describes internal card processes for SIM / USIM cards 1, for example, the process ´´FILE UPDATE EVENT´´, which continues to work if the updated file content 12a is stored exclusively in the volatile memory area 3. The updated file content 12a is Applications, such as Java Card Applets, on disk 1 remain completely transparent and are stored without This means in particular that an application will still be triggered if a file 10 of the application an updated file content 12a was received and it is irrelevant whether the updated file content 12a is stored in the volatile memory 3 or in the non-volatile memory 4b.

[0057] If the data carrier is deactivated, for example by ending the session, the RAM memory area 3 loses its contents and the updated file content 12a is discarded. When the storage device is restarted, If necessary, the original file content 12b is loaded from the non-volatile memory area 4b.

[0058] By storing in RAM 3 it is understood that the files are not further stored in the non-volatile memory area 4b are stored and are stored exclusively in RAM 3 until the end of the session.

[0059] According to the mentioned specification, all files 10 should be stored in the non-volatile memory area 4b. By applying the method according to the invention, specially marked files 10 are simply not updated, since these files 10 do not contain any counter readings or other continuous file contents 12, which the Interaction between the mobile network 6, terminal device 5 and data carrier 1. In the present case So the updating of the files is radically omitted, since this update is only important for this current session and is otherwise irrelevant. In order not to overload RAM 3 unnecessarily, attributes 13 of files 10 should be selected which are not too large due to the limited size of the RAM 3, especially have few bytes.

[0060] According to Fig. 6, an alternative embodiment to the process flow diagram shown in Fig. 5 is shown. The procedures differ only in that after checking 18 the specific attribute 13 a further checking 20 of the file descriptor 11, in particular the name of the file 10 to be updated. If this check 20 shows that the update of the file 10 must take place in the non-volatile memory area 4b, regardless of the attribute 13, this update of the file content 12 is stored in the non-volatile memory 4b written.

[0061] If this check 20 shows that the update of the file 10 is not in the non-volatile memory area 4b must be done, this update of the file content 12 is only stored in the volatile memory 3.

[0062] The following lists examples of names of EF files 10 that have the attribute 13 ´´High Update Activity´´ and can be easily discarded after the session on disk 1 has ended: - EF Loci - EF Kc - EF KcGPRS - EF LociGPRS

[0063] This list is not exhaustive. As already mentioned, other attributes or other markings used to apply the method according to the invention

[0064] Fig. 7 shows an alternative embodiment to Fig. 5 and Fig. 6. In contrast to Fig. 5 After reception 17, an update counter provided in the data carrier 1 will be incremented 21. Subsequently, a comparison 22 of the counter reading of this update counter with a preset value X is made. the counter value is equal to or greater than the value X, is carried out independently of the attribute check 18 or the further Verification 20 saves the updated file content 12a in the non-volatile memory area 4b.

[0065] This configuration makes it possible to store every x-th update of a file 10.

[0066] This update counter can alternatively be incremented if it is determined that the updated file content 12a is only stored in RAM 3.

[0067] Alternatively, and not shown, an update counter value is received at the time when the updated file content 12a is received. Based on the supplied counter reading, the comparison 22 is carried out and decided whether the file content should be stored in the volatile memory area 3 or in the non-volatile memory area 4 becomes.

[0068] It is also conceivable that the file descriptor 11 has an identification of the file version 16 and with The current version is communicated to reception 17. Based on version 16 of file 10, a decision is made as to whether the File content is stored in the volatile memory area 3 or the non-volatile memory area 4.

[0069] In particular, and not further shown here, the update takes place in the non-volatile memory area 4b on in any case, when the first update of file 10 has been received, as this is necessary for the correct operation of the data carrier 1, the terminal device 5 and the remote mobile radio instance 7 may be necessary.

[0070] In a further embodiment not shown in the figures, the received updated file content 12a stored in the non-volatile memory area 4b if the file content 12a differs from the original file content 12b Using the EF loci as an example, an indicator of this strong distinction would be if a different MCC (Mobile Country Code) or another MNC (Mobile Network Code) in the LAI (Location Area Identity) field of the updated EF loci instead of the original EF loci. List of reference symbols 1 portable data storage device; SIM 2 Integrated circuit 3 Volatile memory area, RAM 4 Non-volatile memory area 4a Non-volatile write-once memory ROM 4b Non-volatile rewritable memory, EEPROM, FLASH 5 End device 5a Internal terminal circuit 6 Mobile connection, OTA 7 mobile phone instance, 7a Update server 8 File system 9 Directory Master File (MF), Dedicated File (DF) 10 file, elementary file (EF) File descriptor 11 12 File contents 12a Updated file content 12b Original file content 13 Attribute of the file 14 Part of the file content 15 Update command 16 File version 17 Receive an update of an EF 18 Checking the EF attribute 19 Saving the EF depending on the attribute of the EF 20 Saving the EF depending on the EF 21 Incrementing the update counter 22 Comparing the update counter value with the preset value

Claims

1. Method for storing a file (10) in a portable data carrier (1), wherein the file (10) has a file descriptor (11) and a file content (12) with the method steps: - receiving (17) a file content (12) of the file (10) during operation of the data carrier (1) in the data carrier (1); and - checking (18) an attribute (13) of the file (10) whose file content (12) was received by the data carrier (1); characterized in that the file content (12) is stored in a volatile memory area (3) of the data carrier (1) for Use during this operation of the data carrier (1) is stored if the file (10) has a certain attribute (13); - wherein the file (10) is an elementary file of a file system (8) of a SIM card and the specific attribute (13) is the ´´High Update Activity´´ attribute is; - wherein the data carrier (1) is a subscriber identification module for a mobile radio network (6), the construction and operation of which the specification ETSI 3GPP TS 11.11 / 51.011 or ETSI 3GPP TS 31.

102.

2. The method according to claim 1, wherein the file content (12) is an updated file content (12a) and the file (10) is provided with a original file content (12b) is stored in a non-volatile memory area (4b) of the data carrier (1).

3. Method according to claim 2, wherein the updated file content (12a) is stored exclusively in the volatile memory area (3) of the data carrier (1) is stored so that the updated file content (12a) when the data carrier (1) is deactivated is discarded without security.

4. Method according to claim 2 or 3, wherein when the data carrier (1) is put into operation again, the original File content (12b) of the file (10) is loaded from the non-volatile memory area (4b) of the data carrier (1).

5. Method according to one of the preceding claims, wherein when checking (18) the attribute (13) the name of the File (10) is checked.

6. Method according to one of the preceding claims, wherein an update counter is provided in the data carrier (1) which is incremented (21) upon receipt (17) of the file content (12) if the updated file content (12a) is only in volatile memory area (3) of the data carrier (1).

7. The method according to claim 6, wherein the counter reading of the update counter is set to a preset value and wherein the updated file content (12a) is independent of the attribute (13) of the file (10) in the non-volatile memory area (4b) when the counter reading exceeds the preset value, whereby the original file content (12b) is overwritten by the updated file content (12a).

8. Method according to one of the preceding claims, wherein the updated file content (12a) is independent of the attribute (13) is stored in the non-volatile memory area (4b) when the original file content (12b) is first is updated.

9. Method according to one of the preceding claims, wherein the updated file content (12a) is transmitted by means of over-the-air Service (6) from a remote mobile radio entity (7) or through a communication connection with a terminal (5) in the data carrier (1).

10. Computer program product which is directly recorded in a volatile or non-volatile memory (3, 4b) of a data carrier (1) and comprises software code sections with which the method steps according to one of the preceding Method claims 1 to 9 are carried out when the product runs on the data carrier (1).

11. Portable data carrier (1) comprising an integrated semiconductor circuit (2) with: - a communication interface (I / O) for receiving (17) an updated file content (12a) of a file (10); - a volatile memory area (3) for storing (19) the updated file content (12a); and - a non-volatile memory area (4b) for storing (19) an original file content (12b) and a File descriptor (11) of the file (10); - characterized in that the data carrier further comprises a checking unit which checks an attribute (13) of the file (10) and the updated file content (12a) is stored only in the volatile memory area (3) for use during a operation of the data carrier (1) if the file (10) has a certain attribute (13); - wherein the integrated semiconductor circuit (2) of the data carrier (1) further comprises: - an update counter, the update counter being incremented (21) when the updated file content (12a) is received; - a comparison unit, wherein the comparison unit compares the counter reading of the update counter with a preset value; characterized in that the original file content (12b) in the non-volatile memory area (4b) is overwritten by the updated file content (12a) if the comparison of the comparison unit shows that the Counter reading is equal to or greater than the preset value.

Citation Information

Patent Citations

  • Storage medium has data structure storing files with context information representing content of respective further file having file body which exhibits material reference to content of opened file

    DE102004013132B4

  • Method of storing data in a file of a data storage system

    DE19960114A1

  • file management system for a memory card

    DE69427070T2

  • Device and method for storing geographic data on a physical storage medium

    DE69725677T2