JP2007206957A - Ic card, information processing system, integrated circuit chip, and data processor - Google Patents
Ic card, information processing system, integrated circuit chip, and data processor Download PDFInfo
- Publication number
- JP2007206957A JP2007206957A JP2006024660A JP2006024660A JP2007206957A JP 2007206957 A JP2007206957 A JP 2007206957A JP 2006024660 A JP2006024660 A JP 2006024660A JP 2006024660 A JP2006024660 A JP 2006024660A JP 2007206957 A JP2007206957 A JP 2007206957A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage medium
- volatile storage
- card
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明はICカード,情報処理システム,集積回路チップ,およびデータ処理装置にかかり,特に,不揮発性メモリと揮発性メモリを有し,不揮発性メモリではデータを二重化(有効面・無効面)して管理し,データ更新時には2つの管理データのうちの有効面を読み取って揮発性メモリへコピーし,データ更新のための準備を行うICカード,情報処理システム,集積回路チップ,およびデータ処理装置に関する。 The present invention relates to an IC card, an information processing system, an integrated circuit chip, and a data processing device. In particular, the present invention has a nonvolatile memory and a volatile memory, and the nonvolatile memory doubles data (effective side / ineffective side). The present invention relates to an IC card, an information processing system, an integrated circuit chip, and a data processing device that perform management, read an effective surface of two management data at the time of data update, copy it to a volatile memory, and prepare for data update.
ICカードにおけるファイルシステムの構成にはさまざまなものが開発されている。その一例として,不揮発性メモリ(EEPROMなど)と揮発性メモリ(RAMなど)を有し,不揮発性メモリにおいて処理中の電源断に対応するためデータを二重化して管理するICカードがある。このようなICカードでは,起動時にすべてのファイルシステムについて不揮発性メモリの管理データの有効面を読み取って揮発性メモリへコピーし,データ更新のための準備を予め行っておく(例えば,特許文献1参照。)。 Various file system configurations for IC cards have been developed. As an example, there is an IC card that has a nonvolatile memory (such as an EEPROM) and a volatile memory (such as a RAM), and manages data by duplicating data in order to cope with power interruption during processing in the nonvolatile memory. In such an IC card, at the time of activation, the effective side of the management data in the nonvolatile memory is read for all file systems, copied to the volatile memory, and preparation for data update is made in advance (for example, Patent Document 1). reference.).
ところで,ICカード内の不揮発性メモリのデータに対して読み取りしか行わない場合,データ更新は行われないため,データを揮発性メモリへコピーする処理は無駄である。また,複数のファイルシステムが存在する場合,起動時にすべてのファイルシステムについて不揮発性メモリの管理データの有効面を揮発性メモリへコピーすると,ファイルシステムの数だけ起動時間が増大してしまう。 By the way, when data is only read from the nonvolatile memory in the IC card, the data update is not performed, so that the process of copying the data to the volatile memory is useless. In addition, when there are a plurality of file systems, if the effective side of the management data in the nonvolatile memory is copied to the volatile memory for all file systems at the time of startup, the startup time increases by the number of file systems.
本発明は,従来のICカードが有する上記問題点に鑑みてなされたものであり,本発明の目的は,ICカードの起動時間を短縮することの可能な,新規かつ改良されたICカード,情報処理システム,集積回路チップ,およびデータ処理装置を提供することである。 The present invention has been made in view of the above-described problems of conventional IC cards, and an object of the present invention is to provide a new and improved IC card and information capable of shortening the startup time of the IC card. A processing system, an integrated circuit chip, and a data processing device are provided.
上記課題を解決するため,本発明の第1の観点によれば,ファイルシステムを記憶するメモリを備えたICカードが提供される。本発明のICカードにおいて,前記メモリは,外部から読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体(EEPROMなど)と,データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体(RAMなど)と,を含み,起動時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,起動後の最初のデータ更新時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする。 In order to solve the above problems, according to a first aspect of the present invention, an IC card having a memory for storing a file system is provided. In the IC card of the present invention, the memory includes a user block for storing data read / written from the outside and a management block for storing a pointer indicating the user block, and is capable of reading and writing data. (Such as an EEPROM) and a volatile storage medium (such as a RAM) that stores work data that is rewritten at the time of data update. At startup, data is transferred from the user block of the nonvolatile storage medium to the volatile storage medium. Without copying, at the first data update after startup, the management block of the nonvolatile storage medium is referred to, and the data to be updated is copied from the user block of the nonvolatile storage medium to the volatile storage medium It is characterized by doing.
かかる構成によれば,ICカード内の不揮発性記憶媒体(Nonvolatile Memory:NVM)のデータを二重化して管理するファイルシステムにおいて,最初のデータ更新時に不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーすることができる。このようにして,ICカードの起動時間を短縮することが可能である。また,読み出しだけを行うリーダライタの場合,従来に比べ高速化を図ることができる。 According to such a configuration, in a file system that manages data in a nonvolatile storage medium (Nonvolatile Memory: NVM) in an IC card by duplicating, the effective side of the management data in the nonvolatile storage medium is read at the time of the first data update. It can be copied to a volatile storage medium. In this way, the startup time of the IC card can be shortened. In the case of a reader / writer that performs only reading, the speed can be increased as compared with the conventional case.
本発明のICカードにおいて,前記メモリは,所定のメモリ管理機能により相互にアクセスを禁止された,複数のファイルシステムを記憶することも可能である。本発明は,ICカード内に複数のファイルシステムが存在する場合は特に有効である。すなわち,従来方式を利用した場合は,起動時にすべてのファイルシステムについて不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーするため,揮発性記憶媒体へコピーする時間がファイルシステムの数だけ必要となる。この点,本発明によれば,揮発性記憶媒体へコピーする量が減り,結果的に起動時間を短縮することが可能である。 In the IC card of the present invention, the memory can also store a plurality of file systems that are prohibited from accessing each other by a predetermined memory management function. The present invention is particularly effective when there are a plurality of file systems in an IC card. That is, when the conventional method is used, since the effective side of the management data of the nonvolatile storage medium is read and copied to the volatile storage medium for all file systems at the time of startup, the time for copying to the volatile storage medium is the file system. Is required. In this regard, according to the present invention, the amount of copying to the volatile storage medium is reduced, and as a result, the startup time can be shortened.
また,上記課題を解決するため,本発明の第2の観点によれば,ファイルシステムを記憶するメモリを備えたICカードと,前記ICカードとの間で通信を行い情報を処理する情報処理装置(例えばリーダライタ)とを含む情報処理システムが提供される。本発明の情報処理システムにおいて,前記ICカードのメモリは,前記情報処理装置との間で読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体(EEPROMなど)と,データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体(RAMなど)と,を含む。 In order to solve the above problems, according to a second aspect of the present invention, an information processing apparatus that communicates between an IC card having a memory for storing a file system and the IC card to process information. An information processing system including a reader / writer is provided. In the information processing system according to the present invention, the memory of the IC card includes a user block that stores data read from and written to the information processing apparatus and a management block that stores a pointer indicating the user block. A non-volatile storage medium (such as an EEPROM) that can be read and written and a volatile storage medium (such as a RAM) that stores work data that is rewritten when data is updated are included.
そして,前記ICカードは,前記情報処理装置からデータの更新(書き込み)または取得(読み出し)の要求を受信し,前記情報処理装置からのデータ取得要求時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,前記情報処理装置からの起動後の最初のデータ更新要求時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする。 The IC card receives a data update (write) or acquisition (read) request from the information processing apparatus, and from the user block of the nonvolatile storage medium when the data acquisition request is received from the information processing apparatus. Without copying data to the volatile storage medium, at the time of the first data update request after startup from the information processing device, the management block of the nonvolatile storage medium is referred to and the data to be updated is stored in the nonvolatile storage medium. Copying from the user block of the volatile storage medium to the volatile storage medium.
かかる構成によれば,ICカード内の不揮発性記憶媒体(Nonvolatile Memory:NVM)のデータを二重化して管理するファイルシステムにおいて,最初のデータ更新時に不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーすることができる。このようにして,ICカードの起動時間を短縮することが可能である。また,ICカードとの間で通信を行い情報を処理する情報処理装置が読み出しだけを行う場合,従来に比べ高速化を図ることができる。 According to such a configuration, in a file system that manages data in a nonvolatile storage medium (Nonvolatile Memory: NVM) in an IC card by duplicating, the effective side of the management data in the nonvolatile storage medium is read at the time of the first data update. It can be copied to a volatile storage medium. In this way, the startup time of the IC card can be shortened. In addition, when an information processing apparatus that communicates with an IC card and processes information only performs reading, the speed can be increased as compared with the conventional case.
本発明の情報処理システムにおいて,前記ICカードのメモリは,所定のメモリ管理機能により相互にアクセスを禁止された,複数のファイルシステムを記憶することも可能である。本発明は,ICカード内に複数のファイルシステムが存在する場合は特に有効である。すなわち,従来方式を利用した場合は,起動時にすべてのファイルシステムについて不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーするため,
揮発性記憶媒体へコピーする時間がファイルシステムの数だけ必要となる。この点,本発明によれば,揮発性記憶媒体へコピーする量が減り,結果的に起動時間を短縮することが可能である。
In the information processing system of the present invention, the memory of the IC card can store a plurality of file systems whose access is prohibited by a predetermined memory management function. The present invention is particularly effective when there are a plurality of file systems in an IC card. In other words, when using the conventional method, the effective side of the management data of the nonvolatile storage medium is read and copied to the volatile storage medium for all file systems at startup.
The time required for copying to the volatile storage medium is the same as the number of file systems. In this regard, according to the present invention, the amount of copying to the volatile storage medium is reduced, and as a result, the startup time can be shortened.
また,上記課題を解決するため,本発明の第3の観点によれば,ファイルシステムを記憶するメモリを備えた集積回路チップが提供される。本発明の集積回路チップにおいて,前記メモリは,外部から読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体(EEPROMなど)と,データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体(RAMなど)と,を含み,起動時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,起動後の最初のデータ更新時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする。 In order to solve the above problem, according to a third aspect of the present invention, there is provided an integrated circuit chip including a memory for storing a file system. In the integrated circuit chip of the present invention, the memory includes a user block that stores data read / written from the outside and a management block that stores a pointer indicating the user block, and is a non-volatile memory capable of reading and writing data Including a medium (such as an EEPROM) and a volatile storage medium (such as a RAM) that stores work data that is rewritten when data is updated, and when starting, data is transferred from the user block of the nonvolatile storage medium to the volatile storage medium. Without first copying, the management block of the nonvolatile storage medium is referred to at the time of the first data update after startup, and the data to be updated is transferred from the user block of the nonvolatile storage medium to the volatile storage medium. It is characterized by copying.
かかる構成によれば,不揮発性記憶媒体(Nonvolatile Memory:NVM)のデータを二重化して管理するファイルシステムにおいて,最初のデータ更新時に不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーすることができる。このようにして,起動時間を短縮することが可能である。 According to this configuration, in a file system that manages data in a nonvolatile storage medium (NVM) by duplication, the effective side of the management data in the nonvolatile storage medium is read at the time of the first data update, and the volatile storage medium Can be copied to. In this way, it is possible to shorten the startup time.
本発明の集積回路チップにおいて,前記メモリは,所定のメモリ管理機能により相互にアクセスを禁止された,複数のファイルシステムを記憶することも可能である。本発明は,複数のファイルシステムが存在する場合は特に有効である。すなわち,従来方式を利用した場合は,起動時にすべてのファイルシステムについて不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーするため,揮発性記憶媒体へコピーする時間がファイルシステムの数だけ必要となる。この点,本発明によれば,揮発性記憶媒体へコピーする量が減り,結果的に起動時間を短縮することが可能である。 In the integrated circuit chip of the present invention, the memory can also store a plurality of file systems that are prohibited from accessing each other by a predetermined memory management function. The present invention is particularly effective when there are a plurality of file systems. That is, when the conventional method is used, since the effective side of the management data of the nonvolatile storage medium is read and copied to the volatile storage medium for all file systems at the time of startup, the time for copying to the volatile storage medium is Is required. In this regard, according to the present invention, the amount of copying to the volatile storage medium is reduced, and as a result, the startup time can be shortened.
また,上記課題を解決するため,本発明の第4の観点によれば,ファイルシステムを記憶するメモリを備えた集積回路チップを搭載したデータ処理装置が提供される。本発明のデータ処理装置において,前記メモリは,外部から読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体(EEPROMなど)と,データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体(RAMなど)と,を含み,起動時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,起動後の最初のデータ更新時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする。 In order to solve the above problems, according to a fourth aspect of the present invention, there is provided a data processing apparatus equipped with an integrated circuit chip having a memory for storing a file system. In the data processing device according to the present invention, the memory includes a user block that stores data read / written from the outside and a management block that stores a pointer indicating the user block, and is a non-volatile memory capable of reading and writing data Including a medium (such as an EEPROM) and a volatile storage medium (such as a RAM) that stores work data that is rewritten when data is updated, and when starting, data is transferred from the user block of the nonvolatile storage medium to the volatile storage medium. Without first copying, the management block of the nonvolatile storage medium is referred to at the time of the first data update after startup, and the data to be updated is transferred from the user block of the nonvolatile storage medium to the volatile storage medium. It is characterized by copying.
かかる構成によれば,不揮発性記憶媒体(Nonvolatile Memory:NVM)のデータを二重化して管理するファイルシステムにおいて,最初のデータ更新時に不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーすることができる。このようにして,起動時間を短縮することが可能である。 According to this configuration, in a file system that manages data in a nonvolatile storage medium (NVM) by duplication, the effective side of the management data in the nonvolatile storage medium is read at the time of the first data update, and the volatile storage medium Can be copied to. In this way, it is possible to shorten the startup time.
本発明のデータ処理装置において,前記メモリは,所定のメモリ管理機能により相互にアクセスを禁止された,複数のファイルシステムを記憶することも可能である。本発明は,複数のファイルシステムが存在する場合は特に有効である。すなわち,従来方式を利用した場合は,起動時にすべてのファイルシステムについて不揮発性記憶媒体の管理データの有効面を読み取って揮発性記憶媒体へコピーするため,揮発性記憶媒体へコピーする時間がファイルシステムの数だけ必要となる。この点,本発明によれば,揮発性記憶媒体へコピーする量が減り,結果的に起動時間を短縮することが可能である。 In the data processing apparatus of the present invention, the memory can also store a plurality of file systems that are prohibited from accessing each other by a predetermined memory management function. The present invention is particularly effective when there are a plurality of file systems. That is, when the conventional method is used, since the effective side of the management data of the nonvolatile storage medium is read and copied to the volatile storage medium for all file systems at the time of startup, the time for copying to the volatile storage medium is the file system. Is required. In this regard, according to the present invention, the amount of copying to the volatile storage medium is reduced, and as a result, the startup time can be shortened.
以上のように,本発明によれば,ICカード内の不揮発性記憶媒体(EEPROMなど)のデータを二重化して管理するファイルシステムにおいて,ICカードの起動時間を短縮することが可能である。また,読み出しだけを行うリーダライタの場合,従来に比べ高速化を図ることができる。 As described above, according to the present invention, it is possible to shorten the startup time of an IC card in a file system that manages data in a nonvolatile storage medium (such as an EEPROM) in an IC card by duplication. In the case of a reader / writer that performs only reading, the speed can be increased as compared with the conventional case.
また本発明は,ICカード内に複数のファイルシステムが存在する場合は特に有効であり,起動時に揮発性記憶媒体へコピーする量が減り,結果的に起動時間を短縮することが可能である。 The present invention is particularly effective when there are a plurality of file systems in the IC card, and the amount of copying to the volatile storage medium at the time of activation is reduced, and as a result, the activation time can be shortened.
以下に添付図面を参照しながら,本発明にかかるICカード,情報処理システム,集積回路チップ,およびデータ処理装置の好適な実施形態について詳細に説明する。なお,本明細書および図面において,実質的に同一の機能構成を有する構成要素については,同一の符号を付することにより重複説明を省略する。 Exemplary embodiments of an IC card, an information processing system, an integrated circuit chip, and a data processing device according to the present invention will be described below in detail with reference to the accompanying drawings. In the present specification and drawings, components having substantially the same functional configuration are denoted by the same reference numerals, and redundant description is omitted.
(1)ICカードとリーダライタとの通信(図1)
図1は,本実施形態にかかる情報処理システムを示す説明図であり,ICカードとリーダライタとの通信状態を示している。
(1) Communication between IC card and reader / writer (Fig. 1)
FIG. 1 is an explanatory diagram showing an information processing system according to the present embodiment, and shows a communication state between an IC card and a reader / writer.
本実施形態にかかる情報処理システムは,図1に示したように,ICカード10と,リーダライタ20と,リーダライタ20と,ホスト30を含んで構成される。ICカード10とリーダライタ20との間のデータ通信は,例えば電磁誘導の原理に基づく無線通信により実現される。
As shown in FIG. 1, the information processing system according to this embodiment includes an
ICカード10は,ファイルシステムを記憶するメモリを備えたカード型のデータ通信装置である。ICカード10は,独立した一個のデータ通信装置であってもよく,また,ICカード機能を有する集積回路チップを携帯電話機等の情報通信端末機器(データ処理装置)に内蔵したものであってもよい。ICカードが機器に内蔵される場合であっても,機器に着脱可能に構成される場合であっても,本明細書では便宜上「ICカード」と称する場合がある。また,ICカード機能を有する集積回路チップは,例えば携帯電話機やPDAなどの携帯端末,あるいはパーソナルコンピュータ(PC)などの情報処理端末に搭載されて外部機器とデータ通信を行う。この場合,リーダライタ装置と有線あるいは無線で接続するためのインタフェース以外に,外部機器接続用のインタフェースを備えている。ICカード10内のメモリの構成については,図2を参照しながらさらに後述する。
The
リーダライタ20は,ICカード10との間で通信を行い情報を処理する情報処理装置の一例であり,ICカード10に記録されたデータの読み出しおよび書き込みを行う機能を有する。ただし本発明はこれに限定されず,ICカード10に記録されたデータの読み出機能のみを有するリーダライタであってもよい。リーダライタ20は所定のホスト30に接続されている。
The reader /
ホスト30は,ICカード10から読み出されたデータまたはICカード10に書き込むデータを処理する装置である。リーダライタ20とホスト30とは一体の構成であってもよく,また,ケーブル等を介して空間的に離隔された構成であってもよい。
The
(2)メモリ構成(図2)
図2は,図1のICカード10内のメモリの構成を示す説明図である。
ICカード内のメモリ100は,図2に示したように,読み出し専用の不揮発性メモリであるROM(Read Only Memory)110と,読み出しおよび書き込みが可能な揮発性メモリであるRAM(Random Access Memory)120と,読み出しおよび書き込みが可能な不揮発性メモリであるNVM(Nonvolatile Memory)130とを含んで構成される。
(2) Memory configuration (Fig. 2)
FIG. 2 is an explanatory diagram showing the configuration of the memory in the
As shown in FIG. 2, the memory 100 in the IC card includes a ROM (Read Only Memory) 110 that is a read-only nonvolatile memory and a RAM (Random Access Memory) that is a volatile memory that can be read and written. 120 and an NVM (Nonvolatile Memory) 130 that is a readable and writable nonvolatile memory.
ROM110は,プログラムコード等を格納する。RAM120は,プログラムの作業データ等を格納する。NVM130は,ユーザブロックを含むファイルシステム等を格納する。RAM120としては,例えば,DRAMと比べて情報のアクセスが高速で消費電力が少ないSRAM(Static RAM)を採用することができる。また,NVM130としては,例えば,データの消去を電気的に行うことが可能なEEPROM(Electrically Erasable PROM)を採用することができる。
The
(3)ファイルシステムの構成(図3)
図3は,ファイルシステムの構成を示す説明図である。ファイルシステムは,NVM130上のデータおよびRAM120上のデータで構成される。
(3) File system configuration (Fig. 3)
FIG. 3 is an explanatory diagram showing the configuration of the file system. The file system is composed of data on the
NVM130上には,図3に示したように,スイッチ132と,管理ブロック134と,ユーザブロック136とが含まれる。スイッチ132は,管理ブロック134の有効面を示すポインタである。管理ブロック134は,ユーザブロック136を示すポインタを格納する。ユーザブロック136は,実際にICカードの外部から読み書きされるデータを格納する。
As shown in FIG. 3, the
NVM130では処理中の電源断に対応するためデータを二重化して管理する。スイッチ132が指し示す管理ブロック134を「有効面」と称し,図面において実線で示す。二重化された他のブロックを「無効面」と称し,図面において破線で示す。図3に示した例では,管理ブロック134の有効面はユーザブロック136のデータA,データB,ID情報を指し示し,管理ブロック134の無効面はユーザブロック136の古いデータA,データB,ID情報を指し示す。ID情報本体には,ICカード10を特定するデータとICカード10のアプリケーションを特定するデータが格納されているものとする。
In the
一方,RAM120上には,図3に示したように,作業データとして,スイッチ122と,管理ブロック有効面124と,ID情報126とが含まれる。RAM120上の作業データは,データ更新時に書き換えられる。
On the other hand, the
なお,図3では,ファイルシステムを1つのみ代表的に示しているが,メモリ内に複数のファイルシステムが存在してもよい。この場合,その複数のファイルシステムは,所定のメモリ管理機能により相互にアクセスを禁止されているものとする。 In FIG. 3, only one file system is representatively shown, but a plurality of file systems may exist in the memory. In this case, it is assumed that the plurality of file systems are prohibited from accessing each other by a predetermined memory management function.
以上,本実施形態の構成について説明した。
次いで,本実施形態の動作について,初期化処理(図4),データ更新準備処理(図5),データ更新処理(図6〜図8),データ取得処理(図9)の順に説明する。
The configuration of this embodiment has been described above.
Next, the operation of the present embodiment will be described in the order of initialization processing (FIG. 4), data update preparation processing (FIG. 5), data update processing (FIGS. 6 to 8), and data acquisition processing (FIG. 9).
(4)初期化処理(図4)
図4は,初期化処理を示す説明図である。
NVMのスイッチ132から管理ブロック134の有効面を取得してID情報へのポインタを取得し,スイッチ132およびID情報本体をRAMのスイッチ122とID情報126へコピーする。ID情報本体には,ICカードを特定するデータとICカードのアプリケーションを特定するデータが格納されているものとする。
(4) Initialization process (Fig. 4)
FIG. 4 is an explanatory diagram showing the initialization process.
The effective side of the
本実施形態では,起動時の初期化処理では図4に示した動作のみを行い,NVMの管理ブロック134の有効面をRAMの管理ブロック124へコピーする動作は行わない。これにより,起動時間が短縮される。図4ではNVM130に1つのファイルシステムのみを示しているが,ファイルシステムが複数存在する場合は特に有効である。
In this embodiment, only the operation shown in FIG. 4 is performed in the initialization process at the time of startup, and the operation of copying the effective surface of the
(5)データ更新準備処理(図5)
図5は,データ更新準備処理を示す説明図である。
NVMのスイッチ132から管理ブロック134の有効面を取得し,NVMの管理ブロック134の有効面をRAMの管理ブロック124へコピーする。本実施形態ではこのように,データ更新を行う直前のデータ更新準備処理において,NVMの管理ブロック134の有効面をRAMの管理ブロック124へコピーすることを特徴とする。
(5) Data update preparation process (FIG. 5)
FIG. 5 is an explanatory diagram showing the data update preparation process.
The effective surface of the
(6)データ更新処理(図6〜図8)
データ更新準備処理後,データ更新処理が行われる。データ更新処理の具体的な一例について,図6〜図8を参照しながら説明する。図6は,データ更新処理の流れを示す流れ図である。図7は,図6のステップS110,S120を示す説明図である。図8は,図6のステップS140〜S160を示す説明図である。
(6) Data update processing (FIGS. 6 to 8)
After the data update preparation process, the data update process is performed. A specific example of the data update process will be described with reference to FIGS. FIG. 6 is a flowchart showing the flow of data update processing. FIG. 7 is an explanatory diagram showing steps S110 and S120 of FIG. FIG. 8 is an explanatory diagram showing steps S140 to S160 of FIG.
ファイルシステムに対して,更新対象の管理ブロック位置とデータが指定される。図7に示したように,ファイルシステムは,NVMのユーザブロック136の空き領域からブロックを新規に割り当てて,指定されたデータを書き込む(ステップS110)。次に,RAMの管理ブロック124における,更新対象の管理ブロック位置の内容を新規に割り当てたブロックに書き換える(ステップS120)。
The management block position and data to be updated are specified for the file system. As shown in FIG. 7, the file system newly allocates a block from the free area of the
別のブロック位置とデータが指定された場合は,同様に,ブロックの割り当て(S110)と,RAMの管理ブロック124の書き換え(S120)を繰り返し行う(ステップS130)。 When another block position and data are designated, similarly, block allocation (S110) and rewriting of the RAM management block 124 (S120) are repeated (step S130).
更新対象の管理ブロック位置とデータの指定が終わると,図8に示したように,RAMの管理ブロック124の内容を,NVMの管理ブロック134の無効面へコピーする(ステップS140)。その後,RAMのスイッチ122を有効面から無効面へ切り替える(データの値を変える)(ステップS150)。さらに,RAMのスイッチ122をNVMのスイッチ132へコピーする(ステップS160)。
When the management block position and data to be updated are designated, the contents of the
(7)データ取得処理(図9)
図9は,データ取得処理を示す説明図である。
ファイルシステムに対して,取得対象の管理ブロック位置が指定される。ファイルシステムでは,NVMの管理ブロック134の有効面の管理ブロック位置からユーザブロック136を取得する。読み出しのみを行うリーダライタについては,図9に示した読み出し動作のみを行い,書き込み動作(図5〜図8)は行わない。このため,読み出しのみを行うリーダライタに対するレスポンスが速くなる。
(7) Data acquisition process (Fig. 9)
FIG. 9 is an explanatory diagram showing data acquisition processing.
The management block position to be acquired is specified for the file system. In the file system, the
(本実施形態の効果)
以上説明したように,本実施形態によれば,ICカード10の起動時間を短縮することが可能である。すなわち,従来方式では起動時に初期化処理とデータ更新準備処理を行っていた。この点,本実施形態では,上記の2つの処理を2つのタイミングに分けて,起動時に初期化処理を行い,データ更新要求前にデータ更新処理を行うようにした。これにより,起動時間が短縮される。
(Effect of this embodiment)
As described above, according to the present embodiment, the activation time of the
また,RAM120とNVM130には,所定のメモリ管理機能により相互にアクセスを禁止された複数のファイルシステムを記憶することが可能である。従来方式を利用した場合は,起動時にすべてのファイルシステムについてNVM130の管理データの有効面を読み取ってRAM120へコピーするため,RAM120へコピーする時間がファイルシステムの数だけ必要となる。この点,本実施形態によれば,RAM120へコピーする量が減り,結果的に起動時間を短縮することが可能である。
In addition, the
また,リーダライタ20が読み出しのみを行う場合には,書き込み動作を行わないことから,レスポンスを速くすることが可能である。
Further, when the reader /
以上,添付図面を参照しながら本発明にかかるICカード,情報処理システム,集積回路チップ,およびデータ処理装置の好適な実施形態について説明したが,本発明はかかる例に限定されない。当業者であれば,特許請求の範囲に記載された技術的思想の範疇内において各種の変更例または修正例に想到し得ることは明らかであり,それらについても当然に本発明の技術的範囲に属するものと了解される。 The preferred embodiments of the IC card, the information processing system, the integrated circuit chip, and the data processing device according to the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to such examples. It will be obvious to those skilled in the art that various changes or modifications can be conceived within the scope of the technical idea described in the claims, and these are naturally within the technical scope of the present invention. It is understood that it belongs.
例えば,上記実施形態では,ファイルシステムが複数存在する場合について説明したが,本発明はこれに限定されず,ファイルシステムが1つの場合でも優れた効果が得られる。すなわち,たとえファイルシステムが1つの場合でも,起動時にファイルシステムについてNVMの管理データの有効面を読み取ってRAMへコピーする必要がないため,結果的に起動時間が短縮される。また,読み出しのみを行うリーダライタに対するレスポンスが速くなるという効果についても同様である。 For example, in the above embodiment, the case where there are a plurality of file systems has been described. However, the present invention is not limited to this, and an excellent effect can be obtained even when there is one file system. That is, even when there is only one file system, it is not necessary to read the effective side of the NVM management data for the file system and copy it to the RAM at the time of startup, resulting in a reduction in startup time. The same applies to the effect that the response to the reader / writer that performs only reading is faster.
(産業上の利用可能性)
本発明はICカード,情報処理システム,集積回路チップ,およびデータ処理装置に利用可能であり,特に,不揮発性メモリと揮発性メモリを有し,不揮発性メモリではデータを二重化(有効面・無効面)して管理し,データ更新時には2つの管理データのうちの有効面を読み取って揮発性メモリへコピーし,データ更新のための準備を行うICカード,情報処理システム,集積回路チップ,およびデータ処理装置に利用可能である。
(Industrial applicability)
The present invention can be used for an IC card, an information processing system, an integrated circuit chip, and a data processing device. In particular, the nonvolatile memory has a nonvolatile memory and a volatile memory. IC card, information processing system, integrated circuit chip, and data processing that read the effective side of the two management data and copy it to volatile memory and prepare for data update Available to the device.
10 ICカード
20 リーダライタ
30 ホスト
100 メモリ
110 ROM
120 RAM
122 RAMのスイッチ
124 RAMの管理ブロック
126 RAMのID情報
130 NVM
132 NVMのスイッチ
134 NVMの管理ブロック
136 NVMのユーザブロック
10
120 RAM
122
132
Claims (8)
前記メモリは,
外部から読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体と,
データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体と,
を含み,
起動時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,
起動後の最初のデータ更新時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする,ICカード。 An IC card having a memory for storing a file system,
The memory is
A non-volatile storage medium capable of reading and writing data, including a user block for storing data read / written from outside and a management block for storing a pointer indicating the user block;
A volatile storage medium for storing work data to be rewritten when data is updated;
Including
At startup, without copying data from the user block of the non-volatile storage medium to the volatile storage medium,
In the first data update after startup, the management block of the nonvolatile storage medium is referred to, and data to be updated is copied from the user block of the nonvolatile storage medium to the volatile storage medium. Yes, IC card.
前記ICカードのメモリは,
前記情報処理装置との間で読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体と,
データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体と,
を含み,
前記ICカードは,
前記情報処理装置からデータの更新または取得の要求を受信し,
前記情報処理装置からのデータ取得要求時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,
前記情報処理装置からの起動後の最初のデータ更新要求時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする,情報処理システム。 An information processing system including an IC card having a memory for storing a file system, and an information processing device for communicating with the IC card to process information,
The memory of the IC card is
A non-volatile storage medium capable of reading and writing data, including a user block for storing data to be read from and written to the information processing apparatus, and a management block for storing a pointer indicating the user block;
A volatile storage medium for storing work data to be rewritten when data is updated;
Including
The IC card is
Receiving a data update or acquisition request from the information processing apparatus;
At the time of data acquisition request from the information processing apparatus, without copying data from the user block of the nonvolatile storage medium to the volatile storage medium,
At the time of the first data update request after startup from the information processing device, the management block of the nonvolatile storage medium is referred to, and the data to be updated is transferred from the user block of the nonvolatile storage medium to the volatile storage medium. An information processing system characterized by copying to
前記メモリは,
外部から読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体と,
データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体と,
を含み,
起動時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,
起動後の最初のデータ更新時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする,集積回路チップ。 An integrated circuit chip having a memory for storing a file system,
The memory is
A non-volatile storage medium capable of reading and writing data, including a user block for storing data read / written from outside and a management block for storing a pointer indicating the user block;
A volatile storage medium for storing work data to be rewritten when data is updated;
Including
At startup, without copying data from the user block of the non-volatile storage medium to the volatile storage medium,
In the first data update after startup, the management block of the nonvolatile storage medium is referred to, and data to be updated is copied from the user block of the nonvolatile storage medium to the volatile storage medium. Integrated circuit chip.
前記メモリは,
外部から読み書きされるデータを格納するユーザブロックと前記ユーザブロックを示すポインタを格納する管理ブロックとを含み,データの読み出しおよび書き込みが可能な不揮発性記憶媒体と,
データ更新時に書き換えられる作業データを記憶する揮発性記憶媒体と,
を含み,
起動時には,前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へデータをコピーすることなく,
起動後の最初のデータ更新時に,前記不揮発性記憶媒体の管理ブロックを参照し,データ更新対象となるデータを前記不揮発性記憶媒体の前記ユーザブロックから前記揮発性記憶媒体へコピーすることを特徴とする,データ処理装置。 A data processing device equipped with an integrated circuit chip having a memory for storing a file system,
The memory is
A non-volatile storage medium capable of reading and writing data, including a user block for storing data to be read / written from the outside and a management block for storing a pointer indicating the user block;
A volatile storage medium for storing work data to be rewritten when data is updated;
Including
At startup, without copying data from the user block of the non-volatile storage medium to the volatile storage medium,
In the first data update after startup, the management block of the nonvolatile storage medium is referred to, and data to be updated is copied from the user block of the nonvolatile storage medium to the volatile storage medium. A data processing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006024660A JP2007206957A (en) | 2006-02-01 | 2006-02-01 | Ic card, information processing system, integrated circuit chip, and data processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006024660A JP2007206957A (en) | 2006-02-01 | 2006-02-01 | Ic card, information processing system, integrated circuit chip, and data processor |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007206957A true JP2007206957A (en) | 2007-08-16 |
JP2007206957A5 JP2007206957A5 (en) | 2009-03-12 |
Family
ID=38486376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006024660A Pending JP2007206957A (en) | 2006-02-01 | 2006-02-01 | Ic card, information processing system, integrated circuit chip, and data processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007206957A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001142774A (en) * | 1999-11-11 | 2001-05-25 | Toshiba Corp | Memory card and address converting method to be applied to it |
JP2005346611A (en) * | 2004-06-07 | 2005-12-15 | Matsushita Electric Ind Co Ltd | Secure device and information processor |
-
2006
- 2006-02-01 JP JP2006024660A patent/JP2007206957A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001142774A (en) * | 1999-11-11 | 2001-05-25 | Toshiba Corp | Memory card and address converting method to be applied to it |
JP2005346611A (en) * | 2004-06-07 | 2005-12-15 | Matsushita Electric Ind Co Ltd | Secure device and information processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100874998B1 (en) | Data writing method of semiconductor integrated circuit device | |
US20170228154A1 (en) | Device and method for power loss protection in solid state drive | |
US20100131695A1 (en) | Method for Utilizing a Memory Interface to Control Partitioning of a Memory Module | |
JP2008033788A (en) | Nonvolatile storage device, data storage system, and data storage method | |
US8775758B2 (en) | Memory device and method for performing a write-abort-safe firmware update | |
JP2008009527A (en) | Memory system | |
JP2006039966A (en) | Memory card, card controller installed in memory card, and processing unit of memory card | |
CN109685190B (en) | Power-down protection method and device for IC card | |
EP1868097B1 (en) | Integrated circuit chip, data reading method and data writing method | |
JP2011022760A (en) | Data erasure method and information apparatus | |
JP2009187604A (en) | Magnetic disk device | |
JP2003216511A (en) | Non-volatile memory device, data updating method, data updating program and computer readable recording medium with recorded program | |
JP2008225672A (en) | Semiconductor memory device | |
JPWO2005041050A1 (en) | Recording medium, data processing apparatus, and data processing method | |
JP2009176147A (en) | Electronic equipment and method for determining permission of access to memory of electronic equipment | |
JP2008310596A (en) | Portable electronic equipment and control method for potable electronic equipment | |
JP4460850B2 (en) | IC card and IC card processing method | |
JP2019049876A (en) | Electronic information storage medium, ic card, table management method with electronic information storage medium, and table management program | |
JP2007206957A (en) | Ic card, information processing system, integrated circuit chip, and data processor | |
JP6233134B2 (en) | Electronic information storage medium, information processing method, and information processing program | |
JP6769150B2 (en) | Electronic information storage media, information processing methods, and information processing programs | |
KR20030065223A (en) | Host equipped with stabilizing function for flash memory and the method thereof | |
JP7322923B2 (en) | Secure element, transaction control method and device | |
JP2006133889A (en) | Method for updating program, program and device | |
JP2022184327A (en) | Secure element, device and nonvolatile memory managing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090122 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090122 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110831 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110906 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20120110 |