JP6862734B2 - Storage medium device and program - Google Patents

Storage medium device and program Download PDF

Info

Publication number
JP6862734B2
JP6862734B2 JP2016183405A JP2016183405A JP6862734B2 JP 6862734 B2 JP6862734 B2 JP 6862734B2 JP 2016183405 A JP2016183405 A JP 2016183405A JP 2016183405 A JP2016183405 A JP 2016183405A JP 6862734 B2 JP6862734 B2 JP 6862734B2
Authority
JP
Japan
Prior art keywords
data
writing
written
storage medium
record
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.)
Active
Application number
JP2016183405A
Other languages
Japanese (ja)
Other versions
JP2018049389A (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.)
Toppan Inc
Original Assignee
Toppan Inc
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 Toppan Inc filed Critical Toppan Inc
Priority to JP2016183405A priority Critical patent/JP6862734B2/en
Publication of JP2018049389A publication Critical patent/JP2018049389A/en
Application granted granted Critical
Publication of JP6862734B2 publication Critical patent/JP6862734B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、記憶媒体装置及びプログラムに関する。 The present invention relates to a storage medium device and a program.

IC(Integrated Circuit)カードの発行段階において、ICカード発行機(データ書込装置)によりICカードに対してデータを書き込むことが行われる(例えば、特許文献1参照)。 At the issuing stage of an IC (Integrated Circuit) card, data is written to the IC card by an IC card issuing machine (data writing device) (see, for example, Patent Document 1).

特開2007−206765号公報JP-A-2007-206765

ICカードに記憶されるファイルのデータは、さらにレコードと呼ばれる1以上の単位データの領域に対して格納される構造を有する。しかしながら、ICカードにおけるデータの書き込み可否に関する制御はファイル単位で行われている。このため、レコード単位でのデータの書き込みに関してエラーが生じていたとしても、このことをICカードにて把握することができない。このような事情から、レコード単位でのデータの書き込みに関するエラーの発生に対してデータ書込装置側で把握できないような場合には、データの記憶状態に不備のあるICカードが発行されることになる。 The data of the file stored in the IC card has a structure of being further stored in an area of one or more unit data called a record. However, control regarding whether or not data can be written in the IC card is performed on a file-by-file basis. Therefore, even if an error occurs in writing data in record units, this cannot be grasped by the IC card. Under these circumstances, if the data writing device cannot grasp the occurrence of an error related to data writing in record units, an IC card with an inadequate data storage state will be issued. Become.

本発明は、このような事情に鑑みてなされたもので、記憶媒体装置に記憶されるファイルにおける単位データについての書き込み結果の管理を、記憶媒体装置自体で行えるようにすることを目的とする。 The present invention has been made in view of such circumstances, and an object of the present invention is to enable the storage medium device itself to manage the writing result of unit data in a file stored in the storage medium device.

上述した課題を解決する本発明の一態様は、書込完了識別情報が対応付けられた単位データを1以上含むファイルが記憶される記憶媒体と、データ書込装置と通信する通信部と、前記データ書込装置からのデータ書込の指示に応じて前記記憶媒体に対する単位データの書き込みが行われたことに応じて、書き込まれた単位データに対応する書込完了識別情報を、書き込みが行われていないことを示す状態から書き込み完了を示す状態に書き換える識別情報制御部とを備える記憶媒体装置である。 One aspect of the present invention that solves the above-mentioned problems is a storage medium that stores a file containing one or more unit data associated with write completion identification information, a communication unit that communicates with the data writing device, and the above. In response to the writing of the unit data to the storage medium in response to the data writing instruction from the data writing device, the writing completion identification information corresponding to the written unit data is written. It is a storage medium device including an identification information control unit that rewrites from a state indicating that the data has not been written to a state indicating that writing has been completed.

上述した課題を解決する本発明の一態様は、書込完了識別情報が対応付けられた単位データを1以上含むファイルが記憶される記憶媒体と、データ書込装置と通信する通信部とを備える記憶媒体装置としてのコンピュータを、前記データ書込装置により前記記憶媒体に対する単位データの書き込みが行われたことに応じて、書き込まれた単位データに対応する書込完了識別情報を、書き込みが行われていないことを示す状態から書き込み完了を示す状態に書き換える識別情報制御部として機能させるためのプログラムである。 One aspect of the present invention that solves the above-mentioned problems includes a storage medium that stores a file containing one or more unit data associated with write completion identification information, and a communication unit that communicates with the data writing device. In response to the writing of the unit data to the storage medium by the data writing device on the computer as the storage medium device, the writing completion identification information corresponding to the written unit data is written. This is a program for functioning as an identification information control unit that rewrites from a state indicating that the data has not been written to a state indicating that writing has been completed.

以上説明したように、本発明によれば、記憶媒体装置に記憶されるファイルにおける単位データについての書き込み結果の管理を、記憶媒体装置自体で行えるようになるという効果が得られる。 As described above, according to the present invention, it is possible to obtain the effect that the storage medium device itself can manage the writing result of the unit data in the file stored in the storage medium device.

本実施形態におけるICカードが備える記憶媒体の記憶領域についてのメモリマッピング例を示す図である。It is a figure which shows the memory mapping example about the storage area of the storage medium included in the IC card in this embodiment. 本実施形態の記憶媒体に記憶されるファイルの構造例を示す図である。It is a figure which shows the structural example of the file stored in the storage medium of this embodiment. 本実施形態における書込完了フラグの状態遷移例を示す図である。It is a figure which shows the state transition example of the writing completion flag in this embodiment. 本実施形態における書込完了フラグの状態遷移として、ファイルに格納されるレコードが3つである場合の例を示す図である。It is a figure which shows the example of the case where three records are stored in a file as the state transition of the write completion flag in this embodiment. 本実施形態におけるICカードの構成例を示す図である。It is a figure which shows the structural example of the IC card in this embodiment. 本実施形態のICカードが実行する処理手順例を示すフローチャートである。It is a flowchart which shows the example of the processing procedure executed by the IC card of this embodiment.

以下、図面を参照して本実施形態について説明する。
[ICカードの記憶媒体におけるデータ構造]
以下、本発明の実施形態としてのICカード(記憶媒体装置の一例)について図面を参照して説明する。
本実施形態のICカードは、内部に記憶媒体を備え、ICカード発行装置やリーダライタなどの外部通信装置と通信が可能に構成される。ICカードは、外部通信装置との通信により、外部通信装置の制御に応じて、記憶媒体に対するデータの書き込み、あるいは読み出しを実行する。
Hereinafter, the present embodiment will be described with reference to the drawings.
[Data structure in the storage medium of the IC card]
Hereinafter, an IC card (an example of a storage medium device) as an embodiment of the present invention will be described with reference to the drawings.
The IC card of the present embodiment is provided with a storage medium inside, and is configured to be capable of communicating with an external communication device such as an IC card issuing device or a reader / writer. The IC card executes data writing or reading to the storage medium according to the control of the external communication device by communicating with the external communication device.

ICカードの記憶媒体にはファイル単位でデータが管理される。図1は、本実施形態のICカードが備える記憶媒体103の記憶領域についてのマッピング例を示している。同図に示すように、記憶媒体103の記憶領域は、ファイル管理領域AR1、システム領域AR2及びユーザデータ領域AR3を備える。 Data is managed in file units on the storage medium of the IC card. FIG. 1 shows a mapping example for the storage area of the storage medium 103 included in the IC card of the present embodiment. As shown in the figure, the storage area of the storage medium 103 includes a file management area AR1, a system area AR2, and a user data area AR3.

ファイル管理領域AR1は、システム領域AR2やユーザデータ領域AR3に記憶されるデータをファイル単位で管理するファイル管理情報が記憶される領域である。一例として本実施形態におけるファイル管理領域AR1には、FAT(File Allocation Table)ファイルシステムに対応したファイル管理情報が格納されればよい。 The file management area AR1 is an area in which file management information for managing data stored in the system area AR2 and the user data area AR3 is stored in file units. As an example, the file management area AR1 in the present embodiment may store file management information corresponding to the FAT (File Allocation Table) file system.

システム領域AR2は、OS(Operating System)や各種設定情報などをはじめとするシステム情報が記憶される領域である。
ユーザデータ領域AR3は、アプリケーションが使用するユーザデータが記憶される領域である。ファイルのデータは、ユーザデータ領域AR3に記憶される。
なお、記憶媒体103の記憶領域においては、ファイル管理領域AR1、システム領域AR2及びユーザデータ領域AR3以外の領域が含まれていてもよい。
The system area AR2 is an area in which system information such as an OS (Operating System) and various setting information is stored.
The user data area AR3 is an area in which user data used by the application is stored. The data of the file is stored in the user data area AR3.
The storage area of the storage medium 103 may include areas other than the file management area AR1, the system area AR2, and the user data area AR3.

図2は、ファイルFLの構造例を示している。同図に示すように、ファイルFLは、ファイルヘッダとデータ領域とを含む構造である。
ファイルヘッダには、ファイルに関連する所定のパラメータが格納される。
データ領域には、ファイルとしてのデータが格納される。本実施形態において、データ領域に格納されるファイルは、固定長によるレコードが配置されるレコード構造を有する。このようなレコード構造においては、レコードごとにデータ(レコードデータ:単位データの一例)が格納される。レコードに格納されるレコードデータは、以下に例示するように、それぞれ所定の定義に従った内容を有する。即ち、1つのファイルは1以上のレコードを含み、各レコードには、例えば所定の定義に従った種別のデータが格納される。
本実施形態においては、ファイルFLのデータ領域に格納可能なレコード数が最大で「8」とされている場合を例に挙げる。同図においては、ファイルFLのデータ領域において、格納可能なレコードの最大数に対応する8個のレコード#1〜#8が格納された例を示している。
FIG. 2 shows an example of the structure of the file FL. As shown in the figure, the file FL has a structure including a file header and a data area.
A predetermined parameter related to the file is stored in the file header.
Data as a file is stored in the data area. In the present embodiment, the file stored in the data area has a record structure in which records having a fixed length are arranged. In such a record structure, data (record data: an example of unit data) is stored for each record. The record data stored in the record has contents according to a predetermined definition, as illustrated below. That is, one file contains one or more records, and each record stores, for example, data of a type according to a predetermined definition.
In the present embodiment, the case where the maximum number of records that can be stored in the data area of the file FL is "8" will be given as an example. In the figure, an example is shown in which eight records # 1 to # 8 corresponding to the maximum number of records that can be stored are stored in the data area of the file FL.

また、本実施形態では、ファイルヘッダにおける所定の位置に書込完了フラグエリアFLAが配置される。
図3を参照して、図2のファイルFLに対応する書込完了フラグエリアFLAの例について説明する。図3(A)に示されるように、書込完了フラグエリアFLAは、ビット位置b1〜b8ごとに対応する各1ビットの書込完了フラグが8個配置されて形成される。ビット位置b1〜b8ごとに対応する書込完了フラグが、それぞれ、レコード#1〜#8に対応付けられている。
書込完了フラグは、対応のレコードに対するレコードデータの書き込みが完了したか否かを示す。以降の説明において、本実施形態の書込完了フラグは、「0」により書き込みが完了していないことを示し、「1」により書き込みが完了したことを示すように定義されている場合を例に挙げる。
Further, in the present embodiment, the write completion flag area FLA is arranged at a predetermined position in the file header.
An example of the write completion flag area FLA corresponding to the file FL of FIG. 2 will be described with reference to FIG. As shown in FIG. 3A, the write completion flag area FLA is formed by arranging eight write completion flags of each 1 bit corresponding to each bit position b1 to b8. The corresponding write completion flags for each bit position b1 to b8 are associated with records # 1 to # 8, respectively.
The write completion flag indicates whether or not the writing of record data to the corresponding record is completed. In the following description, the write completion flag of the present embodiment is defined as an example in which "0" indicates that the writing is not completed and "1" indicates that the writing is completed. I will list it.

例えばICカードがICカード発行装置とセッションを開始する直前の段階においては、図3(A)に示すように、8個の書込完了フラグは全て「0」にリセットされた初期状態となっている。
そして、ICカード発行装置によりファイルFLの書き込みが指示されると、ICカードは、記憶媒体103に対してファイルFLのデータの書き込みを行う。この際、ICカードは、書込対象のファイルFLのデータ領域に配置されるレコードの領域に対して、ICカード発行装置の指定に応じて、順次、レコードデータの書き込みを行う。
そして、ICカードは、上記のようにデータの書き込みを実行していく過程において、レコードに対するレコードデータの書き込みを完了するごとに、レコードデータの書き込みが完了されたレコードに対応する書込完了フラグを「0」から「1」に書き換える。この結果、ファイルFLにおけるレコード#1〜#8の8つのレコードごとに対応するレコードデータの書き込みが全て成功すれば、図3(B)のように、ビット位置b1〜b8ごとのビットによる8つの書込完了フラグの全てが「1」となる状態が得られる。つまり、書込完了フラグエリアFLAにおけるビット位置b1〜b8の書込完了フラグによって、レコード#1〜#8の全てに対するレコードデータの書き込みが完了したことが示される。
For example, at the stage immediately before the IC card starts a session with the IC card issuing device, as shown in FIG. 3A, all eight write completion flags are reset to "0" in the initial state. There is.
Then, when the IC card issuing device instructs the writing of the file FL, the IC card writes the data of the file FL to the storage medium 103. At this time, the IC card sequentially writes record data to the record area arranged in the data area of the file FL to be written according to the designation of the IC card issuing device.
Then, in the process of executing the data writing as described above, the IC card sets a write completion flag corresponding to the record in which the record data writing is completed each time the writing of the record data to the record is completed. Rewrite from "0" to "1". As a result, if all the record data corresponding to each of the eight records of records # 1 to # 8 in the file FL are successfully written, as shown in FIG. 3B, eight bits are used for each of the bit positions b1 to b8. A state is obtained in which all the writing completion flags are set to "1". That is, the write completion flag of the bit positions b1 to b8 in the write completion flag area FLA indicates that the writing of the record data to all of the records # 1 to # 8 is completed.

一方、図示は省略するが、ファイルFL単位に対応する書き込みが完了した段階で、レコード#1〜#8のうちでレコードデータの書き込みが行われなかったものがあった場合、書き込みが行われなかったレコードに対応するビット位置の書込完了フラグについては「0」のままである。具体的に、レコード#1〜#8のうち、レコード#3のみがレコードデータの書き込みが行われなかった場合、ビット位置b1、b2、b4〜b8の書込完了フラグについてはそれぞれ「1」であるが、ビット位置b3の書込完了フラグについてはそれぞれ「0」の状態となる。この場合、書込完了フラグエリアFLAにおけるビット位置b1〜b8の書込完了フラグによって、レコード#1、#2、#4〜#8についてはレコードデータの書き込みが完了したが、レコード#3についてはレコードデータの書き込みが行われていないことが示される。 On the other hand, although not shown, if there is a record # 1 to # 8 in which the record data is not written at the stage when the writing corresponding to the file FL unit is completed, the writing is not performed. The write completion flag at the bit position corresponding to the record remains "0". Specifically, when record data is not written only to record # 3 among records # 1 to # 8, the write completion flags at bit positions b1, b2, and b4 to b8 are set to "1", respectively. However, the write completion flag at the bit position b3 is in the "0" state. In this case, the write completion flag of the bit positions b1 to b8 in the write completion flag area FLA completes the writing of the record data for the records # 1, # 2, and # 4 to # 8, but the record # 3 is written. It is shown that the record data has not been written.

また、ファイルFLにおいて格納可能なレコードの最大数が8個である場合において、ファイルFLが8個未満のレコードを格納する場合に対応する書込完了フラグエリアFLAの例について説明する。
図4は、一具体例として、ファイルFLが3つのレコードを格納する場合に対応する書込完了フラグエリアFLAの例が示されている。このようにファイルFLが格納するレコード数が3つとされて8個より少ない場合においても、書込完了フラグエリアFLAは、格納可能なレコードの最大数に対応させて8ビットにより形成される。
そのうえで、書込完了フラグの初期状態においては、図4(A)に示すようにビット位置b1〜b8の各書込完了フラグがリセットされる。つまり、ビット位置b1〜b3に対応する3ビットの書込完了フラグについてはそれぞれ「0」がセットされ、書き込みが完了していないことを示す。一方、レコードが対応しないビット位置b4〜b8に対応する5ビットの書込完了フラグについてはそれぞれ「1」がセットされる。つまり、初期化段階にて既に書き込みが完了していることが示されるようにすることで無効化が図られる。
Further, an example of the write completion flag area FLA corresponding to the case where the maximum number of records that can be stored in the file FL is 8 and the record in the file FL is less than 8 will be described.
As a specific example, FIG. 4 shows an example of the write completion flag area FLA corresponding to the case where the file FL stores three records. Even when the number of records stored in the file FL is 3 and less than 8, the write completion flag area FLA is formed by 8 bits corresponding to the maximum number of records that can be stored.
Then, in the initial state of the write completion flag, each write completion flag at the bit positions b1 to b8 is reset as shown in FIG. 4 (A). That is, "0" is set for each of the 3-bit write completion flags corresponding to the bit positions b1 to b3, indicating that the writing is not completed. On the other hand, "1" is set for each of the 5-bit write completion flags corresponding to the bit positions b4 to b8 that the records do not correspond to. That is, invalidation is achieved by indicating that writing has already been completed at the initialization stage.

そして、或る1つのファイルFLに対するデータの書き込みがICカード発行装置により指示されたことに応じて、ICカードは、指定されたファイルFLのデータの書き込みにあたり、3つのレコードのレコードデータを書き込む。この結果、図4(A)に示す初期状態の書込完了フラグエリアFLAは、図4(B)に示すように、ビット位置b1〜b3の3ビットの書込完了フラグがそれぞれ「0」から「1」に書き換えられたことで、ビット位置b1〜b8の全てに対応する書込完了フラグが「1」となる。これにより、書込完了フラグエリアFLAの書込完了フラグにより、ファイルFLにおける全てのレコードに対する書き込みを完了したことが示される。 Then, in response to the instruction by the IC card issuing device to write the data to a certain file FL, the IC card writes the record data of three records when writing the data of the designated file FL. As a result, in the write completion flag area FLA in the initial state shown in FIG. 4 (A), as shown in FIG. 4 (B), the write completion flags of the three bits of the bit positions b1 to b3 start from "0", respectively. By being rewritten to "1", the write completion flag corresponding to all of the bit positions b1 to b8 becomes "1". As a result, the write completion flag in the write completion flag area FLA indicates that the writing to all the records in the file FL has been completed.

一方、図示は省略するが、ファイルFLのデータ書き込みが完了した段階で、レコード#1〜#3のうちでレコードデータの書き込みが行われなかったものがあった場合、書き込みが行われなかったレコードに対応するビット位置の書込完了フラグについては「0」のままであり、レコードデータの書き込みが行われていないことが示される。 On the other hand, although not shown, if there is a record # 1 to # 3 in which the record data is not written at the stage when the data writing of the file FL is completed, the record in which the writing is not performed is performed. The write completion flag of the bit position corresponding to is still "0", indicating that the record data has not been written.

上記図3、図4の書込完了フラグエリアFLAは、ファイルFLに格納可能なレコードの最大数に応じたビット数による固定長である。しかしながら、書込完了フラグエリアは、例えばファイルFLに格納されるレコード数に応じたビット数を有する可変長であってもよい。 The write completion flag area FLA in FIGS. 3 and 4 has a fixed length according to the number of bits corresponding to the maximum number of records that can be stored in the file FL. However, the write completion flag area may have a variable length having a number of bits corresponding to the number of records stored in the file FL, for example.

なお、書込完了フラグエリアFLAにおける各書込完了フラグの値は、例えば、ICカード発行装置との通信が確立した状態のもとで実行されるセッションが完了した段階で初期状態に戻されるように初期化が行われる。あるいは、書込完了フラグエリアFLAにおける各書込完了フラグの初期化は、例えばICカード発行装置との通信の確立に応じてセッションが開始されるまでの所定の段階で行われるようにしてもよい。
また、書込完了フラグエリアFLAは、図2に示したようにファイルFLのファイルヘッダに格納されている。つまり、図2の書込完了フラグエリアFLAは、ファイルFLの構造内に格納された例を示している。
しかしながら、例えば書込完了フラグエリアFLAは、ファイルFLとの関連付けが為されたうえで、ファイルFLに含まれない個別の情報として記憶媒体103における所定の領域に格納されるようにしてよい。この場合において、書込完了フラグエリアFLAは、揮発性のRAM領域に格納されるようにしてよい。このように不揮発性の領域に書込完了フラグエリアFLAの領域を設定することで、例えばトランザクションが完了してICカード発行装置との通信が切断されて、ICカードへの電源供給が停止することに応じて、書込完了フラグエリアFLAにおける各書込完了フラグの値をリセットすることができる。
The value of each write completion flag in the write completion flag area FLA is returned to the initial state when the session executed under the state where communication with the IC card issuing device is established is completed, for example. Is initialized. Alternatively, the initialization of each write completion flag in the write completion flag area FLA may be performed at a predetermined stage until the session is started in response to the establishment of communication with the IC card issuing device, for example. ..
Further, the write completion flag area FLA is stored in the file header of the file FL as shown in FIG. That is, the write completion flag area FLA in FIG. 2 shows an example stored in the structure of the file FL.
However, for example, the write completion flag area FLA may be associated with the file FL and then stored in a predetermined area of the storage medium 103 as individual information not included in the file FL. In this case, the write completion flag area FLA may be stored in the volatile RAM area. By setting the write completion flag area FLA area in the non-volatile area in this way, for example, the transaction is completed, the communication with the IC card issuing device is cut off, and the power supply to the IC card is stopped. The value of each write completion flag in the write completion flag area FLA can be reset according to the above.

[ICカードの構成例]
続いて、図5を参照して、本実施形態におけるICカード100の構成例について説明する。同図においては、ICカード100とともに、ICカード発行装置200(データ書込装置の一例)が示されている。
[IC card configuration example]
Subsequently, a configuration example of the IC card 100 according to the present embodiment will be described with reference to FIG. In the figure, the IC card issuing device 200 (an example of a data writing device) is shown together with the IC card 100.

先に、ICカード発行装置200について説明する。ICカード発行装置200は、ICカード100の発行に関連する発行処理を行う装置である。ICカード発行装置200は、発行処理として、ICカード100が備える記憶媒体103に、ファイルFLのデータが格納されるファイル格納領域を作成するファイル生成を実行することができる。そのうえで、ICカード発行装置200は、ファイル生成により作成されたファイル格納領域にファイルのデータを書き込むことができる。ICカード発行装置200は、ファイルFLのデータの書き込みに際して、ユーザデータ領域AR3のデータについては、レコード単位で指定を行ってデータ(レコードデータ)の書き込みを行う。 First, the IC card issuing device 200 will be described. The IC card issuing device 200 is a device that performs an issuing process related to issuing the IC card 100. As an issuing process, the IC card issuing device 200 can execute file generation for creating a file storage area for storing file FL data on the storage medium 103 included in the IC card 100. Then, the IC card issuing device 200 can write the file data to the file storage area created by the file generation. When writing the data of the file FL, the IC card issuing device 200 specifies the data in the user data area AR3 in record units and writes the data (record data).

次に、同図のICカード100について説明する。同図のICカード100は、通信部101、制御部102及び記憶媒体103を備える。
通信部101は、ICカード発行装置200と通信を実行する。
制御部102は、ICカード100における各種制御を実行する。制御部102としての機能は、例えばICカード100が備えるCPU(Central Processing Unit)が、記憶媒体103に記憶されたプログラムを実行することにより実現される。
本実施形態における制御部102は、記憶媒体103に記憶されるデータの書き込みに関連する機能部として、データ書込部121、識別情報制御部122、及び状態遷移制御部123を備える。
Next, the IC card 100 of the figure will be described. The IC card 100 in the figure includes a communication unit 101, a control unit 102, and a storage medium 103.
The communication unit 101 executes communication with the IC card issuing device 200.
The control unit 102 executes various controls on the IC card 100. The function as the control unit 102 is realized, for example, by the CPU (Central Processing Unit) included in the IC card 100 executing the program stored in the storage medium 103.
The control unit 102 in the present embodiment includes a data writing unit 121, an identification information control unit 122, and a state transition control unit 123 as functional units related to writing data stored in the storage medium 103.

データ書込部121は、ICカード発行装置200から送信されるコマンドに応じて、記憶媒体103に対するデータの書き込みを実行する。この際、データ書込部121は、ファイルFLにおけるユーザデータ領域AR3については、レコード単位でレコードデータの書き込みを行う。そのうえで、本実施形態のデータ書込部121は、ICカード発行装置200からのデータ書き込みの指示に対応して書込対象とされたレコードデータについて書き込みが完了している状態にあるか否かを書込完了フラグ(書込完了識別情報の一例)に基づいて判定する。データ書込部121は、書き込みが完了していないことを判定した場合にデータの書き込みを行い、書き込みが完了していることを判定した場合にデータの書き込みを行わないようにする。 The data writing unit 121 writes data to the storage medium 103 in response to a command transmitted from the IC card issuing device 200. At this time, the data writing unit 121 writes record data in record units for the user data area AR3 in the file FL. Then, the data writing unit 121 of the present embodiment determines whether or not the record data to be written has been written in response to the data writing instruction from the IC card issuing device 200. Judgment is made based on the write completion flag (an example of write completion identification information). The data writing unit 121 writes data when it is determined that the writing is not completed, and prevents the data from being written when it is determined that the writing is completed.

識別情報制御部122は、ICカード発行装置200からのデータ書き込みの指示に応じて記憶媒体103に対するレコードデータの書き込みが行われたことに応じて、書き込まれたレコードデータに対応する書込完了フラグを、書き込みが行われていないことを示す状態から書き込み完了を示す状態に書き換える。 The identification information control unit 122 has a write completion flag corresponding to the written record data in response to the record data being written to the storage medium 103 in response to the data writing instruction from the IC card issuing device 200. Is rewritten from a state indicating that writing has not been performed to a state indicating writing completion.

状態遷移制御部123は、ICカード100の状態遷移を制御する。ここで、状態遷移制御部123が制御する「状態」は、1セッションにおけるICカード発行装置200からのコマンド等に対応して設定されるICカード100の状態(ステイタス)であり、例えば1セッションにおいて「idle(0x00)」、「select(0x01)」、「Write Complete(0x02)」・・・「end(0xXX)」のように遷移する。
状態遷移制御部123は、状態遷移に必要な全てのレコードへのレコードデータの書き込みが完了しているか否かを書込完了フラグに基づいて判定し、全てのレコードへのレコードデータの書き込みが完了していないことを判定した場合に状態遷移を禁止し、全てのレコードへのレコードデータの書き込みが完了していることを判定した場合に状態遷移を許可する。
The state transition control unit 123 controls the state transition of the IC card 100. Here, the "state" controlled by the state transition control unit 123 is the state (status) of the IC card 100 set in response to a command or the like from the IC card issuing device 200 in one session, for example, in one session. Transitions such as "idle (0x00)", "select (0x01)", "Write Complete (0x02)" ... "end (0xXX)".
The state transition control unit 123 determines whether or not the writing of the record data to all the records required for the state transition is completed based on the writing completion flag, and the writing of the record data to all the records is completed. The state transition is prohibited when it is determined that the record data has not been written, and the state transition is permitted when it is determined that the writing of the record data to all the records has been completed.

記憶媒体103は、制御部102が利用する各種の情報を記憶する。前述のように、本実施形態の記憶媒体103は、図1に示した領域の設定が行われたうえで、図2に示した構造のファイルを記憶する。なお、記憶媒体103が対応するハードウェアは、例えばEEPROM(Electrically Erasable Programmable Read-Only Memory)やフラッシュメモリなどであればよい。 The storage medium 103 stores various types of information used by the control unit 102. As described above, the storage medium 103 of the present embodiment stores the file having the structure shown in FIG. 2 after the area shown in FIG. 1 is set. The hardware supported by the storage medium 103 may be, for example, EEPROM (Electrically Erasable Programmable Read-Only Memory) or flash memory.

[処理手順例]
続いて、図6のフローチャートを参照して、本実施形態におけるICカード100が実行する処理手順例について説明する。同図の処理は、ICカード100がセッション内で或る1のコマンドに応じて実行するシーケンスに対応する。
[Example of processing procedure]
Subsequently, an example of the processing procedure executed by the IC card 100 in the present embodiment will be described with reference to the flowchart of FIG. The process shown in the figure corresponds to a sequence executed by the IC card 100 in response to a certain command in a session.

ICカード100においてデータ書込部121は、ICカード発行装置200から受信したコマンドに対応するコマンド実行条件について確認する(ステップS101)。コマンド実行条件の確認にあたり、データ書込部121は、今回受信されたコマンドコードに対応するコマンド実行条件フラグの値を参照する。コマンド実行条件フラグは、対応のコマンドコードごとに対応して実行可能あるいは実行不可のいずれかを示す。 In the IC card 100, the data writing unit 121 confirms the command execution conditions corresponding to the commands received from the IC card issuing device 200 (step S101). In confirming the command execution condition, the data writing unit 121 refers to the value of the command execution condition flag corresponding to the command code received this time. The command execution condition flag indicates whether the command can be executed or cannot be executed for each corresponding command code.

データ書込部121は、ステップS101によりコマンド実行条件を確認した結果、コマンドに応答した処理を実行可能であるか否かについて判定する(ステップS102)。
コマンドに応答した処理を実行可能である場合(ステップS102−YES)、データ書込部121は、コマンドに対する応答として書込対象となるファイルFL内のレコードを検索する(ステップS103)。データ書込部121は、ステップS103による検索の結果、書込対象レコードが検索されたか否かについて判定する(ステップS104)。
As a result of confirming the command execution conditions in step S101, the data writing unit 121 determines whether or not the process in response to the command can be executed (step S102).
When the process in response to the command can be executed (step S102-YES), the data writing unit 121 searches for a record in the file FL to be written as a response to the command (step S103). The data writing unit 121 determines whether or not the record to be written has been searched as a result of the search in step S103 (step S104).

書込対象のレコードがステップS103により検索された場合(ステップS104−YES)、データ書込部121は、書込対象のレコードごとについての書込完了フラグの値を確認する(ステップS105)。この際、データ書込部121は、書込対象のレコードを含むファイルFLにアクセスし、ファイルヘッダに格納された書込完了フラグエリアFLA内の書込完了フラグの値を確認する。 When the record to be written is searched by step S103 (step S104-YES), the data writing unit 121 confirms the value of the write completion flag for each record to be written (step S105). At this time, the data writing unit 121 accesses the file FL including the record to be written, and confirms the value of the writing completion flag in the writing completion flag area FLA stored in the file header.

データ書込部121は、ステップS105による書込完了フラグの確認の結果、既に書き込みが完了しているレコード(書込完了レコード)が少なくとも1つ有るか否かについて判定する(ステップS106)。 As a result of checking the write completion flag in step S105, the data writing unit 121 determines whether or not there is at least one record for which writing has already been completed (write completion record) (step S106).

ここで、コマンドに応答した処理が実行不可であった場合(ステップS102−NO)、データ書込部121は、実行条件エラーに対応する処理を実行する(ステップS107)。具体的に、データ書込部121は、ステップS107として、コマンドに応答した以降のデータ書き込みの処理を実行しないようにする。また、データ書込部121は、ICカード発行装置200に対して実行条件エラーの発生を通知してもよい。 Here, when the process in response to the command cannot be executed (step S102-NO), the data writing unit 121 executes the process corresponding to the execution condition error (step S107). Specifically, the data writing unit 121 prevents the data writing process after responding to the command from being executed in step S107. Further, the data writing unit 121 may notify the IC card issuing device 200 of the occurrence of an execution condition error.

また、コマンド実行条件フラグが実行可能を示していたとしても、例えばそのコマンドが本来はICカード100が対応不可のものであるなどの理由で、コマンドに対応する書込対象のレコードが記憶媒体103に存在しない場合がある。このような場合には、ステップS103による書込対象のレコードの検索の結果、書込対象のレコードの少なくとも一部が存在しないと判定される(ステップS104−NO)。この場合、データ書込部121は、実行条件エラーに対応する処理を実行する(ステップS107)。 Further, even if the command execution condition flag indicates that the command can be executed, the record to be written corresponding to the command is stored in the storage medium 103 because the command is originally not compatible with the IC card 100. May not exist in. In such a case, as a result of searching the record to be written in step S103, it is determined that at least a part of the record to be written does not exist (step S104-NO). In this case, the data writing unit 121 executes the process corresponding to the execution condition error (step S107).

また、コマンド実行条件フラグが実行可能を示しており、書込対象のレコードが記憶媒体103に存在していたとしても、今回のICカード発行装置200とのセッションにおいて、今回のコマンドに対応して書込対象とされたレコードが、既に書き込まれている場合がある。この場合には、ステップS105による書込完了フラグの確認の結果、書込完了レコードが有ると判定されることになる(ステップS106−YES)。本実施形態において、1セッションにおいて同じレコードに対して複数回のレコードデータの書き込みが行われることは許容されていない。そこで、この場合のデータ書込部121は、実行条件エラーに対応する処理を実行する(ステップS107)。これにより、1セッションにおいて同じレコードに対して複数回のレコードデータの書き込みが行われることが防止される。 Further, even if the command execution condition flag indicates that the record can be executed and the record to be written exists in the storage medium 103, the command is supported in the session with the IC card issuing device 200 this time. The record to be written may have already been written. In this case, as a result of checking the write completion flag in step S105, it is determined that there is a write completion record (step S106-YES). In the present embodiment, it is not allowed that the record data is written to the same record a plurality of times in one session. Therefore, the data writing unit 121 in this case executes the process corresponding to the execution condition error (step S107). This prevents the record data from being written multiple times for the same record in one session.

一方、ステップS105による書込完了フラグの確認の結果、書込完了レコードが1つも無い、即ち、書込対象のレコードの全てが未だ書き込まれていないことが判定された場合(ステップS106−NO)、データ書込部121は、以下の処理を実行する。
つまり、データ書込部121は、書込対象のレコードのうちの1つのレコードに格納されたレコードデータの書き込みを実行する(ステップS108)。データ書込部121は、書き込まれたレコードデータを、通信部101を介してICカード発行装置200に転送する。
On the other hand, as a result of checking the write completion flag in step S105, it is determined that there is no write completion record, that is, all of the records to be written have not been written yet (step S106-NO). , The data writing unit 121 executes the following processing.
That is, the data writing unit 121 executes the writing of the record data stored in one of the records to be written (step S108). The data writing unit 121 transfers the written record data to the IC card issuing device 200 via the communication unit 101.

識別情報制御部122は、ステップS108によりレコードデータの書き込みが実行されたことに応じて、書き込まれたレコードデータのレコードに対応する書込完了フラグの書き換えを行う(ステップS109)。つまり、識別情報制御部122は、書き込まれたレコードデータのレコードに対応する書込完了フラグについて、未だ書き込まれていないことを示す「0」から、書き込みが完了したことを示す「1」に変更する。 The identification information control unit 122 rewrites the write completion flag corresponding to the record of the written record data in response to the writing of the record data being executed in step S108 (step S109). That is, the identification information control unit 122 changes the write completion flag corresponding to the record of the written record data from "0" indicating that the writing has not been completed to "1" indicating that the writing has been completed. To do.

データ書込部121は、今回のステップS108によるレコードデータの書き込みにより、書込対象のレコードのうち最後のレコードに対するレコードデータの書き込みが完了したか否かについて判定する(ステップS110)。
最後のレコードに対するレコードデータの書き込みを未だ実行していない場合(ステップS110−NO)、データ書込部121は、ステップS108に処理を戻す。これにより、未だレコードデータの書き込みが行われていない書込対象のレコードのうちの1つを対象としてレコードデータが書き込まれ、対応の書込完了フラグの書き換えが行われる。
The data writing unit 121 determines whether or not the writing of the record data for the last record among the records to be written has been completed by writing the record data in step S108 this time (step S110).
If the record data has not yet been written to the last record (step S110-NO), the data writing unit 121 returns the process to step S108. As a result, the record data is written for one of the records to be written to which the record data has not been written yet, and the corresponding write completion flag is rewritten.

一方、最後の書込対象として指定されたレコードに対するレコードデータの書き込みが完了した場合(ステップS110−YES)、状態遷移制御部123は、コマンドに対する応答として書き込むべきレコードのそれぞれに対応する書込完了フラグの値を確認する(ステップS111)。
状態遷移制御部123は、ステップS111による確認結果から、コマンドに対する応答として書き込むべき書込対象のレコードの全てに対するレコードデータの書き込みが完了しているか否かについて判定する(ステップS112)。
On the other hand, when the writing of the record data for the record designated as the last write target is completed (step S110-YES), the state transition control unit 123 completes the writing corresponding to each of the records to be written as a response to the command. Check the value of the flag (step S111).
From the confirmation result in step S111, the state transition control unit 123 determines whether or not the writing of the record data for all the records to be written to be written as a response to the command is completed (step S112).

ICカード発行装置200による書き込み対象のレコードの指定のエラーや、データ書込部121側のデータ書き込みのエラーなどにより、コマンドに対する応答として書き込むべきレコードのうちのいずれかがステップS108によって書き込まれない場合がある。このような場合には、書き込まれなかったレコードについてはステップS108により対応の書込完了フラグの書き換えが行われない。この場合、ステップS111による確認の結果、書込対象のレコードの全てについて書き込みが完了していないと判定される(ステップS112−NO)。
このように書込対象のレコードの全てについて書き込みが完了していないことが判定された場合、状態遷移制御部123は、状態遷移エラーに対応する処理を実行する(ステップS113)。具体的に、状態遷移制御部123は、今回のコマンドに応答したデータの書き込みの完了に応じた次の状態への遷移を行わないようにする。つまり、この場合の状態遷移制御部123は、次の状態への遷移を禁止する制御を行う。また、状態遷移制御部123は、状態遷移エラーが発生したことをICカード発行装置200に対して通知してもよい。
When any of the records to be written as a response to the command is not written in step S108 due to an error in specifying the record to be written by the IC card issuing device 200, an error in writing data on the data writing unit 121 side, or the like. There is. In such a case, the corresponding write completion flag is not rewritten in step S108 for the record that was not written. In this case, as a result of the confirmation in step S111, it is determined that the writing has not been completed for all the records to be written (step S112-NO).
When it is determined that the writing of all the records to be written is not completed in this way, the state transition control unit 123 executes the process corresponding to the state transition error (step S113). Specifically, the state transition control unit 123 prevents the transition to the next state according to the completion of writing the data in response to this command. That is, the state transition control unit 123 in this case controls to prohibit the transition to the next state. Further, the state transition control unit 123 may notify the IC card issuing device 200 that a state transition error has occurred.

一方、書込対象のレコードの全てについて書き込みが完了していることが判定された場合(ステップS112−YES)、状態遷移制御部123は、次の状態への遷移が行われるように制御する(ステップS114)。つまり、この場合の状態遷移制御部123は、次の状態への遷移を許可する制御を行う。 On the other hand, when it is determined that the writing is completed for all the records to be written (step S112-YES), the state transition control unit 123 controls so that the transition to the next state is performed (step S112-YES). Step S114). That is, the state transition control unit 123 in this case controls to allow the transition to the next state.

以上説明したように、本実施形態におけるICカード100は、記憶媒体103に記憶されるファイルFLに格納されるレコードごとに対応する書込完了フラグの管理が可能なようにされている。これにより、ICカード100自体が、1セッションにおけるレコード単位のデータの書き込みが完了しているか否かの判定を行うことが可能になる。 As described above, the IC card 100 in the present embodiment is capable of managing the write completion flag corresponding to each record stored in the file FL stored in the storage medium 103. This makes it possible for the IC card 100 itself to determine whether or not the writing of data for each record in one session has been completed.

そのうえで、ICカード100は、データの書き込みに先立って、書込完了フラグにより書込対象のレコードに対する書き込みの完了していることが示されている場合には、データの書き込みを行わないようにする(ステップS105、ステップS106、ステップS107)。これにより、例えばコマンド実行条件を満足したことに応じてファイルFLの書き込みが許可されていたとしても、ファイルFL内の同じレコードを対象として複数回の書き込みが実行されてしまうという不具合の発生を防ぐことができる。また、このような制御によって、不具合の発生の防止のほか、例えばコマンド実行条件を満たした後における不正な記憶媒体103へのアクセスによるデータの書き込みを防止できる。
また、ICカード100は、書込対象として指定されたレコードに対するレコードデータの書き込みが終了した段階において書込完了フラグを確認し、書込対象のレコードの全てに対する書き込みが完了していなければ、次の状態への遷移を行わない(禁止する)ようにしている(ステップS111、S112、S113)。これにより、本実施形態のICカード100においては、或る状態のもとでのデータの書き込みが適切に完了していないのに次の状態に遷移してしまうという不具合の発生を防止できる。また、例えば偽のコマンドでコマンド実行条件をクリアしたとしても、例えば書込対象のレコードの指定が異なっていれば状態遷移エラーとなって状態遷移が生じないことから、不正を有効に防止できる。
本実施形態においては、上記のような不具合発生の防止や不正の防止について、上位のICカード発行装置200に依ることなく、ICカード100自体で実現できる。
In addition, the IC card 100 does not write the data when the writing completion flag indicates that the writing to the record to be written has been completed prior to writing the data. (Step S105, step S106, step S107). This prevents the occurrence of a problem that the same record in the file FL is written multiple times even if the writing of the file FL is permitted according to the satisfaction of the command execution condition, for example. be able to. Further, by such control, in addition to preventing the occurrence of a problem, it is possible to prevent data writing due to access to the unauthorized storage medium 103 after the command execution condition is satisfied, for example.
Further, the IC card 100 confirms the write completion flag at the stage when the writing of the record data to the record designated as the writing target is completed, and if the writing to all the records to be written is not completed, the next The transition to the state of is not performed (prohibited) (steps S111, S112, S113). As a result, in the IC card 100 of the present embodiment, it is possible to prevent the occurrence of a problem that the data is transferred to the next state even though the writing of data under a certain state is not properly completed. Further, even if the command execution condition is cleared by a fake command, for example, if the record to be written is specified differently, a state transition error occurs and the state transition does not occur, so that fraud can be effectively prevented.
In the present embodiment, the prevention of the occurrence of defects and the prevention of fraud as described above can be realized by the IC card 100 itself without relying on the higher-level IC card issuing device 200.

なお、ICカード100に対するデータの書き込み(書き換えも含む)は、ICカードの発行後の運用段階においてもリーダライタ等の制御によって行われる場合がある。本実施形態のICカード100における上記のような書込完了フラグの管理、及び書込完了フラグに基づくレコード書込制御、状態遷移制御は、運用段階においても適用されてよい。 Data writing (including rewriting) to the IC card 100 may be performed by the control of a reader / writer or the like even in the operation stage after the IC card is issued. The above-mentioned management of the write completion flag in the IC card 100 of the present embodiment, and the record write control and the state transition control based on the write completion flag may be applied even in the operation stage.

なお、上述のICカード100としての機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより上述のICカード100としての処理を行ってもよい。ここで、「記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行する」とは、コンピュータシステムにプログラムをインストールすることを含む。ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータシステム」は、インターネットやWAN、LAN、専用回線等の通信回線を含むネットワークを介して接続された複数のコンピュータ装置を含んでもよい。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。このように、プログラムを記憶した記録媒体は、CD−ROM等の非一過性の記録媒体であってもよい。また、記録媒体には、当該プログラムを配信するために配信サーバからアクセス可能な内部または外部に設けられた記録媒体も含まれる。配信サーバの記録媒体に記憶されるプログラムのコードは、端末装置で実行可能な形式のプログラムのコードと異なるものでもよい。すなわち、配信サーバからダウンロードされて端末装置で実行可能な形でインストールができるものであれば、配信サーバで記憶される形式は問わない。なお、プログラムを複数に分割し、それぞれ異なるタイミングでダウンロードした後に端末装置で合体される構成や、分割されたプログラムのそれぞれを配信する配信サーバが異なっていてもよい。さらに「コンピュータ読み取り可能な記録媒体」とは、ネットワークを介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。また、上記プログラムは、上述した機能の一部を実現するためのものであってもよい。さらに、上述した機能をコンピュータシステムに既に記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。 The above-mentioned IC is recorded by recording a program for realizing the function as the above-mentioned IC card 100 on a computer-readable recording medium, reading the program recorded on the recording medium into a computer system, and executing the program. The processing as the card 100 may be performed. Here, "loading a computer system with a program recorded on a recording medium and executing it" includes installing the program on the computer system. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. Further, the "computer system" may include a plurality of computer devices connected via a network including a communication line such as the Internet, WAN, LAN, and a dedicated line. Further, the "computer-readable recording medium" refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM, or a storage device such as a hard disk built in a computer system. As described above, the recording medium in which the program is stored may be a non-transient recording medium such as a CD-ROM. The recording medium also includes an internal or external recording medium that can be accessed from the distribution server to distribute the program. The code of the program stored in the recording medium of the distribution server may be different from the code of the program in a format that can be executed by the terminal device. That is, the format stored in the distribution server does not matter as long as it can be downloaded from the distribution server and installed in a form that can be executed by the terminal device. The program may be divided into a plurality of parts, downloaded at different timings, and then combined by the terminal device, or the distribution server for distributing each of the divided programs may be different. Furthermore, a "computer-readable recording medium" is a volatile memory (RAM) inside a computer system that serves as a server or client when a program is transmitted via a network, and holds the program for a certain period of time. It shall also include things. Further, the above program may be for realizing a part of the above-mentioned functions. Further, it may be a so-called difference file (difference program) that can realize the above-mentioned function in combination with a program already recorded in the computer system.

100 ICカード、101 通信部、102 制御部、103 記憶媒体、121 データ書込部、122 識別情報制御部、123 状態遷移制御部、200 ICカード発行装置 100 IC card, 101 communication unit, 102 control unit, 103 storage medium, 121 data writing unit, 122 identification information control unit, 123 state transition control unit, 200 IC card issuing device

Claims (4)

書込完了識別情報が対応付けられた単位データを1以上含み、前記単位データを格納する領域と異なる領域に前記書込完了識別情報を格納するファイルが記憶される記憶媒体と、
データ書込装置と通信する通信部と、
前記データ書込装置からのデータ書込の指示に応じて前記記憶媒体に対する単位データの書き込みが行われたことに応じて、書き込まれた単位データに対応する書込完了識別情報を、書き込みが行われていないことを示す状態から書き込み完了を示す状態に書き換える識別情報制御部とを備え
前記書込完了識別情報は、前記データ書込装置と通信が確立していない状態では初期状態となるように制御される
記憶媒体装置。
A storage medium containing one or more unit data associated with the write completion identification information and storing a file for storing the write completion identification information in an area different from the area for storing the unit data.
The communication unit that communicates with the data writing device,
In response to the writing of the unit data to the storage medium in response to the data writing instruction from the data writing device, the writing completion identification information corresponding to the written unit data is written. It is equipped with an identification information control unit that rewrites from a state indicating that it has not been written to a state indicating that writing has been completed.
The writing completion identification information is a storage medium device controlled so as to be in an initial state when communication with the data writing device is not established.
記憶媒体装置の状態遷移にあたり、前記状態遷移に必要な全ての単位データの書き込みが完了しているか否かを前記書込完了識別情報に基づいて判定し、前記全ての単位データの書き込みが完了していないことを判定した場合に前記状態遷移を禁止し、前記全ての単位データの書き込みが完了していることを判定した場合に前記状態遷移を許可する状態遷移制御部をさらに備える
請求項1に記載の記憶媒体装置。
In the state transition of the storage medium device, it is determined based on the writing completion identification information whether or not all the unit data required for the state transition has been written, and the writing of all the unit data is completed. The first aspect of claim 1 further includes a state transition control unit that prohibits the state transition when it is determined that the data has not been written, and permits the state transition when it is determined that the writing of all the unit data has been completed. The storage medium device according to the description.
前記データ書込装置からのデータ書込の指示に対応して書込対象とされた単位データについて書き込みが完了しているか否かを前記書込完了識別情報に基づいて判定し、書き込みが完了していないことを判定した場合にデータの書き込みを行い、書き込みが完了していることを判定した場合にデータの書き込みを行わないようにされたデータ書込部をさらに備える
請求項1または2に記載の記憶媒体装置。
Based on the writing completion identification information, it is determined whether or not the unit data to be written is completed in response to the data writing instruction from the data writing device, and the writing is completed. The invention according to claim 1 or 2, further comprising a data writing unit that writes data when it is determined that the data has not been written, and does not write data when it is determined that the writing has been completed. Storage medium device.
書込完了識別情報が対応付けられた単位データを1以上含み、前記単位データを格納する領域と異なる領域に前記書込完了識別情報を格納するファイルが記憶される記憶媒体と、データ書込装置と通信する通信部とを備える記憶媒体装置としてのコンピュータを、
前記データ書込装置により前記記憶媒体に対する単位データの書き込みが行われたことに応じて、書き込まれた単位データに対応する書込完了識別情報を、書き込みが行われていないことを示す状態から書き込み完了を示す状態に書き換える識別情報制御部として機能させるためのプログラムであって、
前記書込完了識別情報は、前記データ書込装置と通信が確立していない状態では初期状態となるように制御される
プログラム。
A storage medium containing one or more unit data associated with the write completion identification information and storing a file for storing the write completion identification information in an area different from the area for storing the unit data, and a data writing device. A computer as a storage medium device equipped with a communication unit that communicates with
In response to the writing of the unit data to the storage medium by the data writing device, the writing completion identification information corresponding to the written unit data is written from the state indicating that the writing is not performed. It is a program to function as an identification information control unit that rewrites to a state indicating completion.
The write completion identification information is a program controlled so as to be in an initial state when communication with the data writing device is not established.
JP2016183405A 2016-09-20 2016-09-20 Storage medium device and program Active JP6862734B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016183405A JP6862734B2 (en) 2016-09-20 2016-09-20 Storage medium device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016183405A JP6862734B2 (en) 2016-09-20 2016-09-20 Storage medium device and program

Publications (2)

Publication Number Publication Date
JP2018049389A JP2018049389A (en) 2018-03-29
JP6862734B2 true JP6862734B2 (en) 2021-04-21

Family

ID=61766252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016183405A Active JP6862734B2 (en) 2016-09-20 2016-09-20 Storage medium device and program

Country Status (1)

Country Link
JP (1) JP6862734B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2520583B2 (en) * 1995-05-24 1996-07-31 シチズン時計株式会社 IC card
JP2002251524A (en) * 2001-02-23 2002-09-06 Sony Corp Communication system, card, control server, communication method, program, and recording medium recorded with program
JP2008310596A (en) * 2007-06-14 2008-12-25 Toshiba Corp Portable electronic equipment and control method for potable electronic equipment
JP5689050B2 (en) * 2011-11-24 2015-03-25 日本電信電話株式会社 Portable recording medium, portable recording medium control method, and portable recording medium control program

Also Published As

Publication number Publication date
JP2018049389A (en) 2018-03-29

Similar Documents

Publication Publication Date Title
TWI446183B (en) Methods and systems for configuring computers
JP2914360B2 (en) External storage device and data processing method
EP0451936B1 (en) Program control system for portable data storage device
CN105917308B (en) Subregion be include metadata area multiple regions byte-addressable non-volatile read-write main memory
JP4393733B2 (en) Portable information recording medium
US20080005531A1 (en) Data Storage Device
TWI548233B (en) Server, server management system and server management method
KR20140108666A (en) Writing data in a non-volatile memory of a smart card
US20160112342A1 (en) Machine providing method, machine providing system and computer-readable recording medium having stored therein machine providing program
CN113064604A (en) Firmware upgrading method and device
CN109388485A (en) A kind of processing method, device, equipment and the storage medium of task execution thread
US11080909B2 (en) Image layer processing method and computing device
JP6862734B2 (en) Storage medium device and program
EP2199994A1 (en) Portable electronic device
JP6844169B2 (en) Storage medium device and program
JP2018128722A (en) Programmable logic controller
US8028142B2 (en) Controller of storage device, storage device, and control method of storage device
KR101690066B1 (en) Server, system and the method for on-line game patch
US20130036257A1 (en) Memory system which can avoid unavailability due to operation error by user
WO2020194425A1 (en) Apparatus, method, program, and recording medium for assisting system designing
JP2005011084A (en) Ic card
JP2007226658A (en) Information processing terminal device, information processing method, and program for information processing
US20070208929A1 (en) Device information managements systems and methods
JP4580660B2 (en) Multi-application IC card and application program with application installed in ROM
JP3835508B2 (en) SEQUENCE CONTROL DEVICE, HOLDING AREA MAINTENANCE METHOD IN THE DEVICE, AND RECORDING MEDIUM CONTAINING COMPUTER PROGRAM FOR EXECUTING THE METHOD

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20160921

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181102

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190821

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200623

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201013

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201211

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210302

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210315

R150 Certificate of patent or registration of utility model

Ref document number: 6862734

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250