JP2018049389A - Storage medium device and program - Google Patents

Storage medium device and program Download PDF

Info

Publication number
JP2018049389A
JP2018049389A JP2016183405A JP2016183405A JP2018049389A JP 2018049389 A JP2018049389 A JP 2018049389A JP 2016183405 A JP2016183405 A JP 2016183405A JP 2016183405 A JP2016183405 A JP 2016183405A JP 2018049389 A JP2018049389 A JP 2018049389A
Authority
JP
Japan
Prior art keywords
writing
data
storage medium
written
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016183405A
Other languages
Japanese (ja)
Other versions
JP6862734B2 (en
Inventor
之治 浅野
Yukiharu Asano
之治 浅野
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 Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
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)

Abstract

PROBLEM TO BE SOLVED: To allow a storage medium device itself to manage writing results of unit data in a file stored in the storage medium device.SOLUTION: A storage medium device includes: a storage medium for storing a file including one or more pieces of unit data associated with writing completion identification information; a communication unit for communicating with a data writing device; and an identification information control unit for rewriting the writing completion identification information corresponding to written unit data from a state indicating being yet to be written to a state indicating being already written in response to completion of writing unit data in a storage medium in response to instructions on data writing from the data writing device.SELECTED DRAWING: Figure 3

Description

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

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

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

ICカードに記憶されるファイルのデータは、さらにレコードと呼ばれる1以上の単位データの領域に対して格納される構造を有する。しかしながら、ICカードにおけるデータの書き込み可否に関する制御はファイル単位で行われている。このため、レコード単位でのデータの書き込みに関してエラーが生じていたとしても、このことをICカードにて把握することができない。このような事情から、レコード単位でのデータの書き込みに関するエラーの発生に対してデータ書込装置側で把握できないような場合には、データの記憶状態に不備のあるICカードが発行されることになる。   The file data stored in the IC card further has a structure stored in one or more unit data areas called records. However, control relating to whether data can be written to the IC card is performed on a file basis. For this reason, even if an error has occurred regarding the writing of data in record units, this cannot be grasped by the IC card. For this reason, if the data writing device cannot grasp the occurrence of an error related to data writing in units of records, an IC card having an inadequate data storage state is 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-described problems includes a storage medium that stores a file including one or more unit data associated with write completion identification information, a communication unit that communicates with a data writing device, In response to the writing of the unit data to the storage medium in accordance with the data writing instruction from the data writing device, the writing completion identification information corresponding to the written unit data is written. The storage medium device includes an identification information control unit that rewrites a state indicating that the writing is not completed to a state indicating the completion of writing.

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

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

本実施形態におけるICカードが備える記憶媒体の記憶領域についてのメモリマッピング例を示す図である。It is a figure which shows the memory mapping example about the storage area of the storage medium with which the IC card in this embodiment is provided. 本実施形態の記憶媒体に記憶されるファイルの構造例を示す図である。It is a figure which shows the example of a structure of the file memorize | stored in the storage medium of this embodiment. 本実施形態における書込完了フラグの状態遷移例を示す図である。It is a figure which shows the example of a state transition of the write completion flag in this embodiment. 本実施形態における書込完了フラグの状態遷移として、ファイルに格納されるレコードが3つである場合の例を示す図である。It is a figure which shows the example in case the number of records stored in a file is three as a 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 a process sequence which the IC card of this embodiment performs.

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

ICカードの記憶媒体にはファイル単位でデータが管理される。図1は、本実施形態のICカードが備える記憶媒体103の記憶領域についてのマッピング例を示している。同図に示すように、記憶媒体103の記憶領域は、ファイル管理領域AR1、システム領域AR2及びユーザデータ領域AR3を備える。   Data is managed in file units in the storage medium of the IC card. FIG. 1 shows an example of mapping for the storage area of the storage medium 103 provided in the IC card of this 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 for storing file management information for managing data stored in the system area AR2 and the user data area AR3 in units of files. As an example, file management information corresponding to a FAT (File Allocation Table) file system may be stored in the file management area AR1 in the present embodiment.

システム領域AR2は、OS(Operating System)や各種設定情報などをはじめとするシステム情報が記憶される領域である。
ユーザデータ領域AR3は、アプリケーションが使用するユーザデータが記憶される領域である。ファイルのデータは、ユーザデータ領域AR3に記憶される。
なお、記憶媒体103の記憶領域においては、ファイル管理領域AR1、システム領域AR2及びユーザデータ領域AR3以外の領域が含まれていてもよい。
The system area AR2 is an area for storing system information including an OS (Operating System) and various setting information.
The user data area AR3 is an area in which user data used by the application is stored. The file data is stored in the user data area AR3.
Note that 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.
The file header stores predetermined parameters related to the file.
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 of 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 exemplified below. That is, one file includes one or more records, and each record stores data of a type according to a predetermined definition, for example.
In this embodiment, a case where the maximum number of records that can be stored in the data area of the file FL is “8” is taken 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」により書き込みが完了したことを示すように定義されている場合を例に挙げる。
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 in 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 1-bit write completion flags corresponding to the bit positions b1 to b8. Write completion flags corresponding to bit positions b1 to b8 are associated with records # 1 to # 8, respectively.
The write completion flag indicates whether or not the record data has been written to the corresponding record. In the following description, the case where the write completion flag of this embodiment is defined to indicate that writing is not completed by “0” and that writing is completed by “1” is taken as an example. I will give you.

例えば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, immediately before the IC card starts a session with the IC card issuing device, as shown in FIG. 3A, all the eight write completion flags are in an initial state reset to “0”. Yes.
Then, when the IC card issuing device instructs to write 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 the record data to the record area arranged in the data area of the file FL to be written in accordance with the designation of the IC card issuing device.
In the process of executing data writing as described above, the IC card sets a write completion flag corresponding to the record for which record data has been written each time the record data has been written to the record. Rewrite from “0” to “1”. As a result, if writing of record data corresponding to each of the eight records # 1 to # 8 in the file FL is successful, as shown in FIG. 3B, the eight bits by the bits at the bit positions b1 to b8 are used. A state is obtained in which all the write completion flags are “1”. That is, the write completion flag at bit positions b1 to b8 in the write completion flag area FLA indicates that the writing of record data for all records # 1 to # 8 has been 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 illustration is omitted, when there is a record that has not been written in any of records # 1 to # 8 when writing corresponding to the file FL unit is completed, writing is not performed. The write completion flag at the bit position corresponding to the record remains “0”. Specifically, among the records # 1 to # 8, when only the record # 3 is not written with the record data, the write completion flags at the bit positions b1, b2, and b4 to b8 are set to “1”. However, the write completion flag at bit position b3 is in a “0” state. In this case, writing of record data is completed for records # 1, # 2, and # 4 to # 8 by the write completion flags at bit positions b1 to b8 in the write completion flag area FLA, but for record # 3 It indicates that no record data has 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」がセットされる。つまり、初期化段階にて既に書き込みが完了していることが示されるようにすることで無効化が図られる。
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 file FL stores less than 8 records will be described.
FIG. 4 shows an example of a write completion flag area FLA corresponding to a case where the file FL stores three records as a specific example. As described above, even when the number of records stored in the file FL is 3, which is 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.
In addition, in the initial state of the write completion flag, the write completion flags at bit positions b1 to b8 are reset as shown in FIG. 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 has not been 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 to which the record does not correspond. In other words, invalidation can be achieved by indicating that the writing has already been completed in 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 an instruction to write data to a certain file FL by the IC card issuing device, the IC card writes record data of three records when writing data of the designated file FL. As a result, in the write completion flag area FLA in the initial state shown in FIG. 4A, as shown in FIG. 4B, the 3-bit write completion flags at bit positions b1 to b3 are respectively set to “0”. By being rewritten to “1”, the write completion flag corresponding to all the bit positions b1 to b8 becomes “1”. Thus, the writing completion flag in the writing completion flag area FLA indicates that writing to all the records in the file FL has been completed.

一方、図示は省略するが、ファイルFLのデータ書き込みが完了した段階で、レコード#1〜#3のうちでレコードデータの書き込みが行われなかったものがあった場合、書き込みが行われなかったレコードに対応するビット位置の書込完了フラグについては「0」のままであり、レコードデータの書き込みが行われていないことが示される。   On the other hand, although illustration is omitted, when there is a record that has not been written in any of records # 1 to # 3 at the stage where data writing to the file FL has been completed, the record that has not been written. The write completion flag at the bit position corresponding to “0” remains “0”, indicating that no record data has 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 the 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における各書込完了フラグの値をリセットすることができる。
Note that the value of each write completion flag in the write completion flag area FLA is returned to the initial state when a session executed under the state where communication with the IC card issuing device is established, for example. Initialization is performed. Alternatively, initialization of each writing completion flag in the writing completion flag area FLA may be performed at a predetermined stage until a session is started in response to establishment of communication with the IC card issuing device, for example. .
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 stored in a predetermined area in 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 a volatile RAM area. By setting the write completion flag area FLA in the nonvolatile area in this way, for example, the transaction is completed and communication with the IC card issuing device is disconnected, and the power supply to the IC card is stopped. Accordingly, the value of each write completion flag in the write completion flag area FLA can be reset.

[ICカードの構成例]
続いて、図5を参照して、本実施形態におけるICカード100の構成例について説明する。同図においては、ICカード100とともに、ICカード発行装置200(データ書込装置の一例)が示されている。
[Configuration example of IC card]
Next, a configuration example of the IC card 100 in the present embodiment will be described with reference to FIG. In the figure, an 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 issue process related to the issue of the IC card 100. As an issuing process, the IC card issuing device 200 can execute file generation for creating a file storage area in which data of the file FL is stored in the storage medium 103 provided in the IC card 100. In addition, the IC card issuing device 200 can write file data in a file storage area created by file generation. When writing the data in the file FL, the IC card issuing device 200 specifies the data in the user data area AR3 in units of records 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 shown in FIG. The IC card 100 in FIG. 1 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 in the IC card 100. The function as the control unit 102 is realized by, for example, a CPU (Central Processing Unit) included in the IC card 100 executing a program stored in the storage medium 103.
The control unit 102 in this 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 of 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 units of records for the user data area AR3 in the file FL. In addition, the data writing unit 121 according to the present embodiment determines whether or not the writing of the record data to be written in response to the data writing instruction from the IC card issuing device 200 has been completed. This is determined based on a write completion flag (an example of write completion identification information). The data writing unit 121 writes data when it is determined that writing is not completed, and does not perform data writing when it is determined that writing is completed.

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

状態遷移制御部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 state transition of the IC card 100. Here, the “state” controlled by the state transition control unit 123 is a 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. Transition is made as “idle (0x00)”, “select (0x01)”, “Write Complete (0x02)”... “End (0xXX)”.
The state transition control unit 123 determines whether or not the record data has been written to all the records necessary for the state transition based on the write completion flag, and the record data has been written to all the records. State transition is prohibited when it is determined that it has not been performed, and state transition is permitted when it is determined that writing of record data to all records has been completed.

記憶媒体103は、制御部102が利用する各種の情報を記憶する。前述のように、本実施形態の記憶媒体103は、図1に示した領域の設定が行われたうえで、図2に示した構造のファイルを記憶する。なお、記憶媒体103が対応するハードウェアは、例えばEEPROM(Electrically Erasable Programmable Read-Only Memory)やフラッシュメモリなどであればよい。   The storage medium 103 stores various 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, an EEPROM (Electrically Erasable Programmable Read-Only Memory) or a flash memory.

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

ICカード100においてデータ書込部121は、ICカード発行装置200から受信したコマンドに対応するコマンド実行条件について確認する(ステップS101)。コマンド実行条件の確認にあたり、データ書込部121は、今回受信されたコマンドコードに対応するコマンド実行条件フラグの値を参照する。コマンド実行条件フラグは、対応のコマンドコードごとに対応して実行可能あるいは実行不可のいずれかを示す。   In the IC card 100, the data writing unit 121 checks the command execution condition corresponding to the command 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 condition 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 (YES in step S102), 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 write target record 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 retrieved in step S103 (step S104-YES), the data writing unit 121 checks 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 checks the value of the write completion flag in the write completion flag area FLA stored in the file header.

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

ここで、コマンドに応答した処理が実行不可であった場合(ステップS102−NO)、データ書込部121は、実行条件エラーに対応する処理を実行する(ステップS107)。具体的に、データ書込部121は、ステップS107として、コマンドに応答した以降のデータ書き込みの処理を実行しないようにする。また、データ書込部121は、ICカード発行装置200に対して実行条件エラーの発生を通知してもよい。   Here, when the process in response to the command cannot be executed (NO in step S102), the data writing unit 121 executes a process corresponding to the execution condition error (step S107). Specifically, in step S107, the data writing unit 121 does not execute the data writing process after the response to the command. 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)。   Even if the command execution condition flag indicates that the command is executable, the record to be written corresponding to the command is stored in the storage medium 103 because, for example, the command is originally not compatible with the IC card 100. May not exist. In such a case, as a result of the search for 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 processing corresponding to the execution condition error (step S107).

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

一方、ステップS105による書込完了フラグの確認の結果、書込完了レコードが1つも無い、即ち、書込対象のレコードの全てが未だ書き込まれていないことが判定された場合(ステップS106−NO)、データ書込部121は、以下の処理を実行する。
つまり、データ書込部121は、書込対象のレコードのうちの1つのレコードに格納されたレコードデータの書き込みを実行する(ステップS108)。データ書込部121は、書き込まれたレコードデータを、通信部101を介してICカード発行装置200に転送する。
On the other hand, when it is determined as a result of the confirmation of the write completion flag in step S105 that there is no write completion record, that is, all the records to be written have not been written yet (NO in step S106). The data writing unit 121 executes the following processing.
That is, the data writing unit 121 writes 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 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 writing has not yet been performed to “1” indicating that 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 the writing of the record data in the current step S108 (step S110).
If writing of record data for the last record has not yet been executed (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 for which record data has not yet been written, and the corresponding write completion flag is rewritten.

一方、最後の書込対象として指定されたレコードに対するレコードデータの書き込みが完了した場合(ステップS110−YES)、状態遷移制御部123は、コマンドに対する応答として書き込むべきレコードのそれぞれに対応する書込完了フラグの値を確認する(ステップS111)。
状態遷移制御部123は、ステップS111による確認結果から、コマンドに対する応答として書き込むべき書込対象のレコードの全てに対するレコードデータの書き込みが完了しているか否かについて判定する(ステップS112)。
On the other hand, when the writing of record data to the record designated as the last writing target is completed (step S110-YES), the state transition control unit 123 completes writing corresponding to each record to be written as a response to the command. The flag value is confirmed (step S111).
The state transition control unit 123 determines whether or not writing of record data for all the records to be written to be written as a response to the command is completed from the confirmation result in step S111 (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 or a data write error on the data writing unit 121 side. There is. In such a case, the corresponding write completion flag is not rewritten in step S108 for the record that has not been written. In this case, as a result of the confirmation in step S111, it is determined that writing has not been completed for all the records to be written (step S112—NO).
As described above, when it is determined that writing has not been completed for all of the records to be written, the state transition control unit 123 executes processing corresponding to the state transition error (step S113). Specifically, the state transition control unit 123 does not perform transition to the next state according to the completion of data writing in response to the current command. That is, the state transition control unit 123 in this case performs control for prohibiting 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 writing has been completed for all the records to be written (YES in step S112), the state transition control unit 123 performs control so that transition to the next state is performed ( Step S114). That is, the state transition control unit 123 in this case performs control to permit transition to the next state.

以上説明したように、本実施形態におけるICカード100は、記憶媒体103に記憶されるファイルFLに格納されるレコードごとに対応する書込完了フラグの管理が可能なようにされている。これにより、ICカード100自体が、1セッションにおけるレコード単位のデータの書き込みが完了しているか否かの判定を行うことが可能になる。   As described above, the IC card 100 according to this embodiment is capable of managing the write completion flag corresponding to each record stored in the file FL stored in the storage medium 103. As a result, the IC card 100 itself can determine whether or not the writing of data in record units 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, prior to data writing, the IC card 100 does not perform data writing when the writing completion flag indicates that writing to the record to be written has been completed. (Step S105, Step S106, Step S107). As a result, for example, even if the writing of the file FL is permitted in response to satisfying the command execution condition, it is possible to prevent the occurrence of the problem that the writing is executed a plurality of times for the same record in the file FL. be able to. In addition to preventing the occurrence of defects, such control can prevent data from being written due to unauthorized access to the storage medium 103 after satisfying command execution conditions, for example.
Further, the IC card 100 checks the write completion flag at the stage where the writing of record data to the record designated as the write target is completed, and if writing to all the records to be written is not completed, The transition to the state is not performed (prohibited) (steps S111, S112, S113). Thereby, in the IC card 100 according to the present embodiment, it is possible to prevent the occurrence of the problem that the data state under a certain state is not properly completed but transitions to the next state. For example, even if the command execution condition is cleared with a fake command, for example, if the specification of the record to be written is different, a state transition error occurs and the state transition does not occur.
In the present embodiment, the above-described trouble prevention and fraud prevention can be realized by the IC card 100 itself without depending on the higher-level IC card issuing device 200.

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

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

100 ICカード、101 通信部、102 制御部、103 記憶媒体、121 データ書込部、122 識別情報制御部、123 状態遷移制御部、200 ICカード発行装置 DESCRIPTION OF SYMBOLS 100 IC card, 101 Communication part, 102 Control part, 103 Storage medium, 121 Data writing part, 122 Identification information control part, 123 State transition control part, 200 IC card issuing apparatus

Claims (4)

書込完了識別情報が対応付けられた単位データを1以上含むファイルが記憶される記憶媒体と、
データ書込装置と通信する通信部と、
前記データ書込装置からのデータ書込の指示に応じて前記記憶媒体に対する単位データの書き込みが行われたことに応じて、書き込まれた単位データに対応する書込完了識別情報を、書き込みが行われていないことを示す状態から書き込み完了を示す状態に書き換える識別情報制御部と
を備える記憶媒体装置。
A storage medium storing a file including one or more unit data associated with write completion identification information;
A communication unit communicating 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. A storage medium device comprising: an identification information control unit that rewrites a state indicating no writing to a state indicating completion of writing.
記憶媒体装置の状態遷移にあたり、前記状態遷移に必要な全ての単位データの書き込みが完了しているか否かを前記書込完了識別情報に基づいて判定し、前記全ての単位データの書き込みが完了していないことを判定した場合に前記状態遷移を禁止し、前記全ての単位データの書き込みが完了していることを判定した場合に前記状態遷移を許可する状態遷移制御部をさらに備える
請求項1に記載の記憶媒体装置。
At the time of the state transition of the storage medium device, it is determined based on the write completion identification information whether or not the writing of all unit data necessary for the state transition is completed, and the writing of all the unit data is completed. The system further includes a state transition control unit that prohibits the state transition when it is determined that the state transition is not performed and permits the state transition when it is determined that writing of all the unit data is completed. The storage medium device described.
前記データ書込装置からのデータ書込の指示に対応して書込対象とされた単位データについて書き込みが完了しているか否かを前記書込完了識別情報に基づいて判定し、書き込みが完了していないことを判定した場合にデータの書き込みを行い、書き込みが完了していることを判定した場合にデータの書き込みを行わないようにされたデータ書込部をさらに備える
請求項1または2に記載の記憶媒体装置。
Based on the write completion identification information, it is determined whether or not writing has been completed for the unit data to be written in response to the data writing instruction from the data writing device. The data writing unit according to claim 1, further comprising: a data writing unit configured to perform data writing when it is determined that the writing is not performed, and not to perform data writing when it is determined that the writing is completed. Storage media device.
書込完了識別情報が対応付けられた単位データを1以上含むファイルが記憶される記憶媒体と、データ書込装置と通信する通信部とを備える記憶媒体装置としてのコンピュータを、
前記データ書込装置により前記記憶媒体に対する単位データの書き込みが行われたことに応じて、書き込まれた単位データに対応する書込完了識別情報を、書き込みが行われていないことを示す状態から書き込み完了を示す状態に書き換える識別情報制御部
として機能させるためのプログラム。
A computer as a storage medium device comprising a storage medium storing a file including one or more unit data associated with write completion identification information and a communication unit communicating with the data writing device,
In response to writing of unit data to the storage medium by the data writing device, writing completion identification information corresponding to the written unit data is written from a state indicating that writing has not been performed. A program for functioning as an identification information control unit that rewrites the status to indicate completion.
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 true JP2018049389A (en) 2018-03-29
JP6862734B2 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)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07306921A (en) * 1995-05-24 1995-11-21 Citizen Watch Co Ltd 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
JP2013109714A (en) * 2011-11-24 2013-06-06 Nippon Telegr & Teleph Corp <Ntt> Portable recording medium, control method for portable recording medium and control program for portable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07306921A (en) * 1995-05-24 1995-11-21 Citizen Watch Co Ltd 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
JP2013109714A (en) * 2011-11-24 2013-06-06 Nippon Telegr & Teleph Corp <Ntt> Portable recording medium, control method for portable recording medium and control program for portable recording medium

Also Published As

Publication number Publication date
JP6862734B2 (en) 2021-04-21

Similar Documents

Publication Publication Date Title
JP5346253B2 (en) Firmware update system, information device, and program
US20080047000A1 (en) Program Execution Device And Program Execution Method
JP4393733B2 (en) Portable information recording medium
KR102007532B1 (en) Hardware security module with means to selectively activate or inhibit debugging and corresponding debugging method
CN113064604B (en) Firmware upgrading method and device
TWI548233B (en) Server, server management system and server management method
JP6923582B2 (en) Information processing equipment, information processing methods, and programs
JP2013196436A (en) Ic card, portable electronic device and ic card control method
WO2020194425A1 (en) Apparatus, method, program, and recording medium for assisting system designing
JP2018049389A (en) Storage medium device and program
JP2018128722A (en) Programmable logic controller
JP6844169B2 (en) Storage medium device and program
WO2015136964A1 (en) License information management device, license information management method, and program
JP4443699B2 (en) Portable electronic device and method for controlling portable electronic device
JP2001056848A (en) Command execution control method for ic card, ic card, and recording medium where ic card program is recorded
JP2007226658A (en) Information processing terminal device, information processing method, and program for information processing
JP2005011084A (en) Ic card
JP7287844B2 (en) Information processing device, security strength switching method, and program
JP6379688B2 (en) Mobile communication terminal, server, information processing system, information processing method, and SIM
JP6617551B2 (en) SETTING VALUE MANAGEMENT DEVICE, COMPUTER DEVICE, METHOD, AND PROGRAM
JP2004220328A (en) Ap addition/ap personalization method, execution device therefor and processing program therefor
JP6331647B2 (en) Storage medium device, storage medium control method, and program
JP2019028602A (en) Electronic information storage medium, ic card, update method by electronic information storage medium and update program
JP6915338B2 (en) IC card
JP6520090B2 (en) IC card system, IC card and IC card management device

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