JP6370669B2 - IC card, portable electronic device, and IC card processing device - Google Patents

IC card, portable electronic device, and IC card processing device Download PDF

Info

Publication number
JP6370669B2
JP6370669B2 JP2014212876A JP2014212876A JP6370669B2 JP 6370669 B2 JP6370669 B2 JP 6370669B2 JP 2014212876 A JP2014212876 A JP 2014212876A JP 2014212876 A JP2014212876 A JP 2014212876A JP 6370669 B2 JP6370669 B2 JP 6370669B2
Authority
JP
Japan
Prior art keywords
processing
command
card
unit
completion information
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
JP2014212876A
Other languages
Japanese (ja)
Other versions
JP2016081344A (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.)
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
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 Toshiba Corp, Toshiba Infrastructure Systems and Solutions Corp filed Critical Toshiba Corp
Priority to JP2014212876A priority Critical patent/JP6370669B2/en
Publication of JP2016081344A publication Critical patent/JP2016081344A/en
Application granted granted Critical
Publication of JP6370669B2 publication Critical patent/JP6370669B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明の実施形態は、ICカード、携帯可能電子装置、及び、ICカード処理装置に関する。   Embodiments described herein relate generally to an IC card, a portable electronic device, and an IC card processing device.

ICカードなどの携帯可能電子装置は、上位端末からコマンドを受信し、コマンドに応じた処理を実行する。ICカードは、発行時などにおいて一連の処理を実行するために、上位端末から、一度の通信中に複数のコマンドを受信することがある。しかしながら、従来、ICカードは、一連の処理が途中で中断した場合、最初の処理からやり直す必要がある。   A portable electronic device such as an IC card receives a command from a host terminal and executes a process according to the command. An IC card may receive a plurality of commands during one communication from a host terminal in order to execute a series of processes at the time of issuance or the like. However, conventionally, when a series of processing is interrupted in the middle of the IC card, it is necessary to start over from the first processing.

特開2011−13830JP2011-13830

上記の課題を解決するために、一連の処理の途中から処理を再開することができるICカード、携帯可能電子装置、及び、ICカード処理装置を提供する。   In order to solve the above problems, an IC card, a portable electronic device, and an IC card processing device capable of resuming processing from the middle of a series of processing are provided.

実施形態によれば、ICカードは、通信部と、記憶部と、送信処理部と、実行部と、更新部と、を備える。通信部は、外部装置とデータを送受信する。記憶部は、所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する。送信処理部は、前記通信部を通じて、前記処理完了済情報を要求するコマンドを受信した場合に、受信された前記コマンドに応じて、前記通信部を通じて、前記記憶部が格納する前記処理完了済情報を含むレスポンスを送信する。実行部は、前記通信部を通じて、前記所定の一連の処理に関する処理コマンドを受信した場合に、受信された前記処理コマンドを実行する。更新部は、前記実行部が前記処理コマンドの実行に成功した場合に、前記記憶部が格納する前記処理完了済情報を更新する。   According to the embodiment, the IC card includes a communication unit, a storage unit, a transmission processing unit, an execution unit, and an update unit. The communication unit transmits / receives data to / from an external device. The storage unit stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing. When the transmission processing unit receives a command requesting the processing completion information through the communication unit, the processing completion information stored in the storage unit through the communication unit according to the received command. Send a response containing The execution unit executes the received processing command when receiving a processing command related to the predetermined series of processing through the communication unit. The update unit updates the process completion information stored in the storage unit when the execution unit succeeds in executing the process command.

図1は、第1実施形態に係るICカードとICカード処理装置とを有するICカード処理システムの構成例を示す図である。FIG. 1 is a diagram illustrating a configuration example of an IC card processing system having an IC card and an IC card processing device according to the first embodiment. 図2は、第1実施形態に係るICカードの構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration example of the IC card according to the first embodiment. 図3は、第1実施形態に係るICカードが格納する処理完了済情報の構成例を示す図である。FIG. 3 is a diagram illustrating a configuration example of the process completion information stored in the IC card according to the first embodiment. 図4は、第1実施形態に係るICカード処理装置が送信するコマンドの構成例を示す図である。FIG. 4 is a diagram illustrating a configuration example of a command transmitted by the IC card processing device according to the first embodiment. 図5は、第1実施形態に係るICカード処理システムの動作例を示すシーケンシャル図である。FIG. 5 is a sequential diagram illustrating an operation example of the IC card processing system according to the first embodiment. 図6は、第1実施形態に係るICカードの動作例を示すフローチャートである。FIG. 6 is a flowchart showing an operation example of the IC card according to the first embodiment. 図7は、第2実施形態に係るICカード処理システムの動作例を示すシーケンシャル図である。FIG. 7 is a sequential diagram illustrating an operation example of the IC card processing system according to the second embodiment. 図8は、第2実施形態に係るICカードの動作例を示すフローチャートである。FIG. 8 is a flowchart showing an operation example of the IC card according to the second embodiment. 図9は、第3実施形態に係るICカード処理システムの動作例を示すシーケンシャル図である。FIG. 9 is a sequential diagram illustrating an operation example of the IC card processing system according to the third embodiment. 図10は、第3実施形態に係るICカードの動作例を示すフローチャートである。FIG. 10 is a flowchart illustrating an operation example of the IC card according to the third embodiment. 図11は、第4実施形態に係るICカード処理装置が格納する処理完了済情報データベースの構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of a process completed information database stored in the IC card processing apparatus according to the fourth embodiment. 図12は、第4実施形態に係るICカード処理システムの動作例を示すシーケンシャル図である。FIG. 12 is a sequential diagram illustrating an operation example of the IC card processing system according to the fourth embodiment. 図13は、第4実施形態に係るICカードの動作例を示すフローチャートである。FIG. 13 is a flowchart illustrating an operation example of the IC card according to the fourth embodiment. 図14は、第4実施形態に係るICカード処理装置の動作例を示すフローチャートである。FIG. 14 is a flowchart illustrating an operation example of the IC card processing device according to the fourth embodiment. 図15は、第4実施形態に係るICカード処理装置の動作例を示すフローチャートである。FIG. 15 is a flowchart illustrating an operation example of the IC card processing device according to the fourth embodiment.

以下、実施形態について、図面を参照して説明する。
(第1実施形態)
まず、第1実施形態について説明する。
図1は、実施形態に係る携帯可能電子装置としてのICカード2と、ICカード2と通信を行う外部装置としてのICカード処理装置1とを備えるICカード処理システム10の構成例について説明するためのブロック図である。
Hereinafter, embodiments will be described with reference to the drawings.
(First embodiment)
First, the first embodiment will be described.
FIG. 1 illustrates a configuration example of an IC card processing system 10 including an IC card 2 as a portable electronic device according to the embodiment and an IC card processing device 1 as an external device that communicates with the IC card 2. FIG.

図1が示す構成例において、ICカード処理装置1(外部装置)は、基本的な構成として、CPU11、ROM12、RAM13、NVM14、カードリーダライタ15、操作部16、及び、ディスプレイ17などを有する。これらの各部は、データバスを介して互いに接続されている。なお、ICカード処理装置1は、図1が示すような構成の他に、必要に応じた構成を具備したり特定の構成を除外したりしてもよい。   In the configuration example shown in FIG. 1, the IC card processing device 1 (external device) includes a CPU 11, a ROM 12, a RAM 13, an NVM 14, a card reader / writer 15, an operation unit 16, a display 17, and the like as basic configurations. These units are connected to each other via a data bus. In addition to the configuration shown in FIG. 1, the IC card processing apparatus 1 may have a configuration as necessary or exclude a specific configuration.

CPU11は、ICカード処理装置1全体の動作を制御する機能を有する。CPU11は、内部キャッシュおよび各種のインターフェースなどを備えても良い。CPU11は、内部メモリ、ROM12あるいはNVM14に予め記憶したプログラムを実行することにより種々の処理を実現する。   The CPU 11 has a function of controlling the operation of the entire IC card processing apparatus 1. The CPU 11 may include an internal cache and various interfaces. The CPU 11 implements various processes by executing programs stored in advance in the internal memory, the ROM 12 or the NVM 14.

CPU11は、カードリーダライタ15によりICカード2へコマンドを送信する機能、ICカード2から受信するレスポンスなどのデータを基に種々の処理を行う機能などを有する。たとえば、CPU11は、カードリーダライタ15を介して、操作部16などに入力されたデータ又は所定のデータなどを含む書き込みコマンドをICカード2に送信することにより、ICカード2に当該データの書き込み処理を要求する制御を行う。   The CPU 11 has a function of transmitting a command to the IC card 2 by the card reader / writer 15 and a function of performing various processes based on data such as a response received from the IC card 2. For example, the CPU 11 transmits a write command including data input to the operation unit 16 or predetermined data to the IC card 2 via the card reader / writer 15, thereby writing the data into the IC card 2. Control that requires

なお、CPU11がプログラムを実行することにより実現する各種の機能のうちの一部は、ハードウエア回路により実現されるものであっても良い。この場合、CPU11は、ハードウエア回路により実行される機能を制御する。   Note that some of the various functions realized by the CPU 11 executing the program may be realized by a hardware circuit. In this case, the CPU 11 controls functions executed by the hardware circuit.

ROM12は、予め制御用のプログラム及び制御データなどが記憶された不揮発性のメモリである。ROM12に記憶される制御プログラム及び制御データは、予めICカード処理装置1の仕様に応じて組み込まれる。ROM12は、たとえば、ICカード処理装置1の回路基板を制御するプログラム(例えば、BIOS)などを格納している。   The ROM 12 is a non-volatile memory in which a control program and control data are stored in advance. The control program and control data stored in the ROM 12 are incorporated in advance according to the specifications of the IC card processing apparatus 1. The ROM 12 stores, for example, a program (for example, BIOS) that controls the circuit board of the IC card processing apparatus 1.

RAM13は、揮発性のメモリである。RAM13は、CPU11の処理中のデータなどを一時的に格納する。RAM13は、CPU11からの命令に基づき種々のアプリケーションプログラムを格納している。また、RAM13は、アプリケーションプログラムの実行に必要なデータ及びアプリケーションプログラムの実行結果などを格納してもよい。   The RAM 13 is a volatile memory. The RAM 13 temporarily stores data being processed by the CPU 11. The RAM 13 stores various application programs based on instructions from the CPU 11. The RAM 13 may store data necessary for executing the application program, an execution result of the application program, and the like.

NVM14は、データの書き込み及び書き換えが可能な不揮発性のメモリである。NVM14は、例えば、ハードディスク、SSD、EEPROM又はフラッシュメモリなどにより構成される。NVM14は、ICカード処理装置1の運用用途に応じて制御プログラム、アプリケーション、及び種々のデータを格納する。   The NVM 14 is a nonvolatile memory capable of writing and rewriting data. The NVM 14 is configured by, for example, a hard disk, SSD, EEPROM, flash memory, or the like. The NVM 14 stores a control program, an application, and various data according to the operation usage of the IC card processing apparatus 1.

カードリーダライタ15(請求項11乃至13の通信部に対応)は、ICカード2との通信を行うためのインターフェース装置である。カードリーダライタ15は、ICカード2の通信方式に応じたインターフェースにより構成される。たとえば、ICカード2が接触型のICカードである場合、カードリーダライタ15は、ICカード2のコンタクト部と物理的かつ電気的に接続するための接触部などにより構成される。   The card reader / writer 15 (corresponding to the communication unit of claims 11 to 13) is an interface device for performing communication with the IC card 2. The card reader / writer 15 is configured by an interface corresponding to the communication method of the IC card 2. For example, when the IC card 2 is a contact type IC card, the card reader / writer 15 is configured by a contact portion for physically and electrically connecting with a contact portion of the IC card 2.

また、ICカード2が非接触型のICカードである場合、カードリーダライタ15は、ICカード2との無線通信を行うためのアンテナおよび通信制御部などにより構成される。カードリーダライタ15では、ICカード2に対する電源供給、クロック供給、リセット制御、データの送受信が行われるようになっている。   When the IC card 2 is a non-contact type IC card, the card reader / writer 15 includes an antenna for performing wireless communication with the IC card 2 and a communication control unit. The card reader / writer 15 performs power supply, clock supply, reset control, and data transmission / reception with respect to the IC card 2.

このような機能によってカードリーダライタ15は、CPU11による制御に基づいてICカード2に対する電源供給、ICカード2の活性化(起動)、クロック供給、リセット制御、種々のコマンドの送信、及び送信したコマンドに対する応答(レスポンス)の受信などを行なう。   Based on such functions, the card reader / writer 15 supplies power to the IC card 2, activation (activation) of the IC card 2, clock supply, reset control, transmission of various commands, and transmission of commands based on control by the CPU 11. The response to the response (response) is received.

操作部16は、ICカード処理装置1の操作者によって、種々の操作指示が入力される。操作部16は、操作者に入力された操作指示のデータをCPU11へ送信する。操作部16は、たとえば、キーボード、テンキー、及び、タッチパネルなどである。   Various operation instructions are input to the operation unit 16 by the operator of the IC card processing apparatus 1. The operation unit 16 transmits operation instruction data input to the operator to the CPU 11. The operation unit 16 is, for example, a keyboard, a numeric keypad, and a touch panel.

ディスプレイ17は、CPU11の制御により種々の情報を表示する表示装置である。ディスプレイ17は、たとえば、液晶モニタなどである。なお、ディスプレイ17は、操作部16と一体的に形成されてもよい。   The display 17 is a display device that displays various information under the control of the CPU 11. The display 17 is, for example, a liquid crystal monitor. The display 17 may be formed integrally with the operation unit 16.

次に、ICカード2について説明する。
ICカード2は、ICカード処理装置1などの上位装置から電力などの供給を受けて活性化される(動作可能な状態になる)ようになっている。例えば、ICカード2が接触型の通信によりICカード処理装置1と接続される場合、つまり、ICカード2が接触型のICカードで構成される場合、ICカード2は、通信インターフェースとしてのコンタクト部を介してICカード処理装置1からの動作電源及び動作クロックの供給を受けて活性化される。
Next, the IC card 2 will be described.
The IC card 2 is activated (becomes operable) upon receiving power supply from a host device such as the IC card processing device 1. For example, when the IC card 2 is connected to the IC card processing device 1 by contact-type communication, that is, when the IC card 2 is configured by a contact-type IC card, the IC card 2 is a contact unit as a communication interface. The IC card processor 1 is activated by receiving the operation power supply and the operation clock from the IC card processing apparatus 1 through the IC card.

また、ICカード2が非接触型の通信方式によりICカード処理装置1と接続される場合、つまり、ICカード2が非接触式のICカードで構成される場合、ICカード2は、通信インターフェースとしてのアンテナ及び変復調回路などを介してICカード処理装置1からの電波を受信し、その電波から図示しない電源部により動作電源及び動作クロックを生成して活性化するようになっている。   Further, when the IC card 2 is connected to the IC card processing device 1 by a non-contact type communication method, that is, when the IC card 2 is constituted by a non-contact type IC card, the IC card 2 is used as a communication interface. A radio wave is received from the IC card processing apparatus 1 via the antenna and modulation / demodulation circuit, and an operation power supply and an operation clock are generated from the radio wave by a power supply unit (not shown) and activated.

次に、ICカード2の構成例について説明する。
図2は、実施形態に係るICカード2の構成例を概略的に示すブロック図である。
ICカード2は、プラスチックなどで形成されたカード状の本体Cを有する。ICカード2は、本体C内にモジュールMが内蔵されている。モジュールMは、1つまたは複数のICチップCaと通信部としての外部インターフェース(通信インターフェース)とが接続された状態で一体的に形成され、ICカード2の本体C内に埋設されている。
Next, a configuration example of the IC card 2 will be described.
FIG. 2 is a block diagram schematically showing a configuration example of the IC card 2 according to the embodiment.
The IC card 2 has a card-like main body C formed of plastic or the like. The IC card 2 has a module M built in the main body C. The module M is integrally formed in a state where one or a plurality of IC chips Ca and an external interface (communication interface) as a communication unit are connected, and is embedded in the main body C of the IC card 2.

図2に示す構成例において、ICカード2は、CPU21、ROM22、RAM23、NVM24、及び、通信部25などを備えている。これらの各部は、データバスを介して互いに接続されている。また、CPU21、ROM22、RAM23、およびNVM24は、1つ又は複数のICチップCaにより構成され、通信部25に接続された状態でモジュールMを構成している。   In the configuration example illustrated in FIG. 2, the IC card 2 includes a CPU 21, a ROM 22, a RAM 23, an NVM 24, a communication unit 25, and the like. These units are connected to each other via a data bus. Further, the CPU 21, ROM 22, RAM 23, and NVM 24 are configured by one or a plurality of IC chips Ca, and configure the module M in a state of being connected to the communication unit 25.

CPU21は、ICカード2全体の制御を司る制御部として機能する。CPU21は、ROM22あるいはNVM24に記憶されている制御プログラム及び制御データに基づいて種々の処理を行う。たとえば、CPU21は、ROM22に記憶されているプログラムを実行することにより、ICカード2の動作制御あるいはICカード2の運用形態に応じた種々の処理を行う。   The CPU 21 functions as a control unit that controls the entire IC card 2. The CPU 21 performs various processes based on the control program and control data stored in the ROM 22 or the NVM 24. For example, the CPU 21 executes various programs according to the operation control of the IC card 2 or the operation mode of the IC card 2 by executing a program stored in the ROM 22.

なお、各種の機能のうちの一部は、ハードウエア回路により実現されるものであっても良い。この場合、CPU21は、ハードウエア回路により実行される機能を制御する。   Note that some of the various functions may be realized by a hardware circuit. In this case, the CPU 21 controls functions executed by the hardware circuit.

ROM22は、予め制御用のプログラム及び制御データなどを記憶する不揮発性のメモリである。ROM22は、製造段階で制御プログラム及び制御データなどを記憶した状態でICカード2に組み込まれる。即ち、ROM22に記憶される制御プログラム及び制御データは、予めICカード2の仕様に応じて組み込まれる。   The ROM 22 is a non-volatile memory that stores a control program and control data in advance. The ROM 22 is incorporated in the IC card 2 in a state where a control program, control data, and the like are stored at the manufacturing stage. That is, the control program and control data stored in the ROM 22 are incorporated in advance according to the specifications of the IC card 2.

RAM23は、揮発性のメモリである。RAM23は、CPU21の処理中のデータなどを一時的に格納する。たとえば、RAM23は、計算用バッファ、受信用バッファ及び送信用バッファとして機能する。計算用バッファとしては、CPU21が実行する種々の演算処理の結果などを一時的に保持する。受信用バッファとしては、通信部25を介してICカード処理装置1から受信するコマンドデータなどを保持する。送信用バッファとしては、通信部25を介してICカード処理装置1へ送信するメッセージ(レスポンスデータ)などを保持する。また、RAM23は、動作状態を示すフラグを記憶する。   The RAM 23 is a volatile memory. The RAM 23 temporarily stores data being processed by the CPU 21. For example, the RAM 23 functions as a calculation buffer, a reception buffer, and a transmission buffer. The calculation buffer temporarily holds the results of various arithmetic processes executed by the CPU 21. The reception buffer holds command data received from the IC card processing apparatus 1 via the communication unit 25. As a transmission buffer, a message (response data) to be transmitted to the IC card processing apparatus 1 via the communication unit 25 is held. Further, the RAM 23 stores a flag indicating an operation state.

NVM24は、例えば、EEPROMあるいはフラッシュROMなどのデータの書き込み及び書換えが可能な不揮発性のメモリにより構成される。NVM24は、ICカード2の運用用途に応じて制御プログラム、アプリケーション、及び種々のデータを格納する。例えば、NVM24では、プログラムファイル及びデータファイルなどが作成される。作成された各ファイルは、制御プログラム及び種々のデータなどが書き込まれる。   The NVM 24 is configured by a non-volatile memory that can write and rewrite data, such as an EEPROM or a flash ROM. The NVM 24 stores a control program, an application, and various data according to the operation usage of the IC card 2. For example, in the NVM 24, a program file and a data file are created. Each created file is written with a control program and various data.

NVM24は、処理完了済情報を格納する記憶領域24a(請求項1乃至10の記憶部に対応)などを備える。
処理完了済情報は、所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す。即ち、処理完了済み情報は、一連の処理についてICカード2がどの処理までを完了しているかを示す。一連の処理は、複数の処理コマンドを要する処理である。たとえば、一連の処理は、ICカード2の発行処理、又は、決済処理などである。なお、一連の処理は、特定の処理に限定されるものではない。
The NVM 24 includes a storage area 24a for storing processing completion information (corresponding to the storage unit of claims 1 to 10) and the like.
The processing completion information indicates a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing. That is, the process completion information indicates which process the IC card 2 has completed for a series of processes. A series of processing is processing that requires a plurality of processing commands. For example, the series of processes is an IC card 2 issuance process or a settlement process. Note that the series of processes is not limited to a specific process.

図3は、記憶領域24aが格納する処理完了済情報の構成例を示す。
処理完了済情報は、処理が完了している処理コマンドのコマンド識別子を示す。コマンド識別子は、各処理コマンドに処理の順序に従って割り振られる。図3が示す例において、処理完了済情報は、「na−1」を格納している。即ち、処理完了済情報は、コマンド識別子が「na−1」である処理コマンドまでの実行が終了しており、コマンド識別子が「na」であるコマンドから未実行であることを示す。
なお、処理完了済情報の構成は、特定の構成に限定されるものではない。
FIG. 3 shows a configuration example of the process completion information stored in the storage area 24a.
The process completion information indicates a command identifier of a process command that has been processed. The command identifier is assigned to each processing command according to the processing order. In the example illustrated in FIG. 3, the process completion information stores “na-1”. In other words, the processing completion information indicates that the execution up to the processing command having the command identifier “na-1” has been completed and the command having the command identifier “na” has not been executed yet.
The configuration of the process completion information is not limited to a specific configuration.

通信部25は、ICカード処理装置1のカードリーダライタ15との通信を行うためのインターフェースである。非接触型のICカードとしてのICカード2においては、通信部25は、ICカード処理装置1のカードリーダライタ15との無線通信を行うための変復調回路などの通信制御部とアンテナとにより構成される。   The communication unit 25 is an interface for performing communication with the card reader / writer 15 of the IC card processing apparatus 1. In the IC card 2 as a non-contact type IC card, the communication unit 25 includes a communication control unit such as a modulation / demodulation circuit for performing wireless communication with the card reader / writer 15 of the IC card processing device 1 and an antenna. The

通信部25は、ICカード処理装置1のカードリーダライタ15との通信を行うためのインターフェースである。ICカード2が接触型のICカードとして実現される場合、通信部25は、ICカード処理装置1のカードリーダライタ15と物理的かつ電気的に接触して信号の送受信を行うための通信制御部とコンタクト部とにより構成される。また、ICカード2が非接触型のICカードとして実現される場合、通信部25は、ICカード処理装置1のカードリーダライタ15との無線通信を行うための変復調回路などの通信制御部とアンテナとにより構成される。   The communication unit 25 is an interface for performing communication with the card reader / writer 15 of the IC card processing apparatus 1. When the IC card 2 is realized as a contact type IC card, the communication unit 25 is a communication control unit for physically transmitting and receiving signals in contact with the card reader / writer 15 of the IC card processing device 1. And a contact portion. When the IC card 2 is realized as a non-contact type IC card, the communication unit 25 includes a communication control unit such as a modulation / demodulation circuit for performing wireless communication with the card reader / writer 15 of the IC card processing device 1 and an antenna. It consists of.

次に、ICカード処理装置1のCPU11が実現する機能について説明する。
CPU11は、ICカード2から処理完了済情報を取得する機能を有する。即ち、CPU11は、カードリーダライタ15を通じて、処理完了済情報を要求するコマンドをICカード2へ送信する(請求項12の第1送信処理部に対応)。たとえば、CPU11は、カードリーダライタ15を通じて、処理完了済情報を読み取るリードコマンドをICカード2へ送信する。CPU11は、カードリーダライタ15を通じて、処理完了済情報を含むレスポンスをICカード2から受信する。
Next, functions realized by the CPU 11 of the IC card processing apparatus 1 will be described.
The CPU 11 has a function of acquiring processing completion information from the IC card 2. That is, the CPU 11 transmits a command for requesting processing completion information to the IC card 2 through the card reader / writer 15 (corresponding to the first transmission processing unit of claim 12). For example, the CPU 11 transmits a read command for reading processing completion information to the IC card 2 through the card reader / writer 15. The CPU 11 receives a response including processing completion information from the IC card 2 through the card reader / writer 15.

また、CPU11は、カードリーダライタ15を通じて、所定の一連の処理に関するコマンドを所定の順序に従ってICカード2へ送信する機能を有する(請求項11の送信処理部に対応)。   Further, the CPU 11 has a function of transmitting a command related to a predetermined series of processes to the IC card 2 through the card reader / writer 15 in a predetermined order (corresponding to the transmission processing unit of claim 11).

図5は、CPU11が送信するコマンドの構成例を示す。
図5が示すように、コマンドは、コマンドヘッドとデータとを備える。
コマンドヘッドは、コマンドの種類、又は、パラメータなどを格納する。
データは、コマンド識別子などを格納する。
コマンド識別子は、前述の通り、実行する順序に従って各処理コマンドに割り振られた値である。たとえば、コマンド識別子が「1」である場合、コマンド識別子は、処理コマンドが最初に実行されることを示す。
FIG. 5 shows a configuration example of a command transmitted by the CPU 11.
As shown in FIG. 5, the command includes a command head and data.
The command head stores a command type or a parameter.
The data stores a command identifier and the like.
As described above, the command identifier is a value assigned to each processing command according to the execution order. For example, when the command identifier is “1”, the command identifier indicates that the processing command is executed first.

また、CPU11は、処理完了済情報に基づいて、未処理の処理コマンドを生成する機能を有する(請求項12の生成部に対応)。即ち、CPU11は、処理完了済情報が格納するコマンド識別子に1を加えたコマンド識別子に対応する処理コマンドを生成する。たとえば、処理完了済情報が「5」を格納する場合、CPU11は、未処理の処理コマンドとして、コマンド識別子が「6」であるコマンドを生成する。   Further, the CPU 11 has a function of generating an unprocessed processing command based on the processing completion information (corresponding to the generating unit of claim 12). That is, the CPU 11 generates a processing command corresponding to the command identifier obtained by adding 1 to the command identifier stored in the processing completion information. For example, when the processing completion information stores “5”, the CPU 11 generates a command having a command identifier “6” as an unprocessed processing command.

次に、ICカード2のCPU21が実現する機能について説明する。
CPU21は、通信部25を通じて、処理完了済情報をICカード処理装置1へ送信する機能を有する。即ち、CPU21は、通信部25を通じて、処理完了済情報を要求するコマンドをICカード処理装置1から受信する。CPU21は、通信部25を通じて、記憶領域24aが格納する処理完了済情報をICカード処理装置1へ送信する(請求項1、7又は9の送信処理部に対応)。
Next, functions realized by the CPU 21 of the IC card 2 will be described.
The CPU 21 has a function of transmitting processing completion information to the IC card processing device 1 through the communication unit 25. That is, the CPU 21 receives a command for requesting processing completion information from the IC card processing apparatus 1 through the communication unit 25. The CPU 21 transmits the processing completion information stored in the storage area 24a to the IC card processing device 1 through the communication unit 25 (corresponding to the transmission processing unit of claim 1, 7 or 9).

また、CPU21は、処理完了済情報を更新する機能を有する(請求項1乃至10の更新部に対応)。即ち、CPU21は、ICカード処理装置1からのコマンドを実行すると、処理完了済情報を、実行されたコマンドのコマンド識別子に書き換える。   Further, the CPU 21 has a function of updating the process completion information (corresponding to the update unit of claims 1 to 10). That is, when executing a command from the IC card processing apparatus 1, the CPU 21 rewrites the processing completion information with the command identifier of the executed command.

次に、ICカード処理システム10の動作例について説明する。
図5は、ICカード処理システム10の動作例を説明するためのシーケンシャル図である。
ここでは、ICカード処理装置1とICカード2とは、通信可能な状態であるものとする。また、ICカード処理装置1は、所定の一連の処理をICカード2に実行させるものとする。
Next, an operation example of the IC card processing system 10 will be described.
FIG. 5 is a sequential diagram for explaining an operation example of the IC card processing system 10.
Here, it is assumed that the IC card processing device 1 and the IC card 2 are in a communicable state. Further, the IC card processing device 1 is assumed to cause the IC card 2 to execute a predetermined series of processing.

まず、ICカード処理装置1は、カードリーダライタ15を通じて、処理完了済情報を要求するコマンドをICカード処理装置1へ送信する(ステップS11)。   First, the IC card processing device 1 transmits a command for requesting processing completion information to the IC card processing device 1 through the card reader / writer 15 (step S11).

ICカード2のCPU21は、通信部25を通じて、当該コマンドを受信する。当該コマンドを受信すると、CPU21は、通信部25を通じて、記憶領域24aが格納する処理完了済情報を含むレスポンスをICカード処理装置1へ送信する(ステップS12)。なお、CPU21は、ICカード2を識別するICカード識別子を同時に送信してもよい。   The CPU 21 of the IC card 2 receives the command through the communication unit 25. When receiving the command, the CPU 21 transmits a response including the processing completion information stored in the storage area 24a to the IC card processing apparatus 1 through the communication unit 25 (step S12). Note that the CPU 21 may simultaneously transmit an IC card identifier for identifying the IC card 2.

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、当該レスポンスを受信する。当該レスポンスを受信すると、ICカード処理装置1は、RAM13などにレスポンスが含む処理完了済情報を格納する(ステップS13)。   The CPU 11 of the IC card processing apparatus 1 receives the response through the card reader / writer 15. When receiving the response, the IC card processing device 1 stores the processing completion information included in the response in the RAM 13 or the like (step S13).

処理完了済情報を格納すると、CPU11は、処理完了済情報に基づいて、処理コマンドを生成する(ステップS14)。ここでは、処理完了済情報は「na−1」を格納しているので、CPU11は、コマンド識別子「na」の処理コマンドを生成する。   When the process completion information is stored, the CPU 11 generates a process command based on the process completion information (step S14). Here, since the processing completion information stores “na-1”, the CPU 11 generates a processing command with the command identifier “na”.

処理コマンドを生成すると、CPU11は、カードリーダライタ15を通じて、生成された処理コマンドをICカード2へ送信する(ステップS15)(請求項12の第2送信処理部に対応)。   When the processing command is generated, the CPU 11 transmits the generated processing command to the IC card 2 through the card reader / writer 15 (step S15) (corresponding to the second transmission processing unit of claim 12).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。当該処理コマンドを受信すると、CPU21は、受信された処理コマンドを実行する(ステップS16)。ここでは、CPU21は、処理コマンドの実行に成功したものとする。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. When receiving the processing command, the CPU 21 executes the received processing command (step S16). Here, it is assumed that the CPU 21 has successfully executed the processing command.

処理コマンドを実行すると、CPU21は、通信部25を通じて、処理コマンドの実行に成功したことを示す処理成功情報を含むレスポンスをICカード処理装置1に送信する(ステップS17)。   When the processing command is executed, the CPU 21 transmits a response including processing success information indicating that the processing command has been successfully executed to the IC card processing device 1 through the communication unit 25 (step S17).

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、当該レスポンスを受信する。当該レスポンスを受信すると、CPU11は、カードリーダライタ15を通じて、次の処理コマンド(即ち、コマンド識別子が「na+1」である処理コマンド)をICカード2へ送信する(ステップS18)。   The CPU 11 of the IC card processing apparatus 1 receives the response through the card reader / writer 15. When receiving the response, the CPU 11 transmits the next processing command (that is, the processing command whose command identifier is “na + 1”) to the IC card 2 through the card reader / writer 15 (step S18).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。当該処理コマンドを受信すると、CPU21は、当該処理コマンドを実行する(ステップS19)。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. When receiving the processing command, the CPU 21 executes the processing command (step S19).

当該処理コマンドを受信すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1へ送信する(ステップS20)。   When receiving the processing command, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S20).

ICカード処理システム10は、ステップS15〜17(又は、ステップS18〜20)を繰り返すことで、ICカード2に一連の処理を実行させる。   The IC card processing system 10 causes the IC card 2 to execute a series of processes by repeating Steps S15 to 17 (or Steps S18 to 20).

ICカード処理装置1のCPU21は、カードリーダライタ15を通じて最後の処理コマンドに対するレスポンスを受信すると、動作を終了する。   When the CPU 21 of the IC card processing apparatus 1 receives a response to the last processing command through the card reader / writer 15, the operation is terminated.

次に、ICカード2の動作例について説明する。
図6は、ICカード2の動作例を説明するためのフローチャートである。
Next, an operation example of the IC card 2 will be described.
FIG. 6 is a flowchart for explaining an operation example of the IC card 2.

まず、ICカード2のCPU21は、通信部25を通じて、コマンドを受信する(ステップS20)。   First, the CPU 21 of the IC card 2 receives a command through the communication unit 25 (step S20).

コマンドを受信すると、CPU21は、処理コマンドを正常に受信したか判定する(ステップS22)。たとえば、CPU21は、冗長化検査符号などをチェックする。   When receiving the command, the CPU 21 determines whether the processing command has been received normally (step S22). For example, the CPU 21 checks a redundancy check code.

コマンドを正常に受信したと判定すると(ステップS22、YES)、CPU21は、コマンドが処理完了済情報を要求しているか判定する(ステップS23)。   If it is determined that the command has been normally received (step S22, YES), the CPU 21 determines whether the command requests processing completion information (step S23).

コマンドが処理完了済情報を要求していると判定すると(ステップS23、YES)、CPU21は、通信部25を通じて、記憶領域24aが格納する処理完了済情報をICカード処理装置1へ送信する(ステップS24)。   If it is determined that the command requests processing completion information (step S23, YES), the CPU 21 transmits the processing completion information stored in the storage area 24a to the IC card processing device 1 through the communication unit 25 (step S23). S24).

コマンドが処理完了済情報を要求してないと判定すると(即ち、コマンドが一連の処理に関する処理コマンドであると判定すると)(ステップS23、NO)、CPU21は、受信された処理コマンドを実行する(ステップS25)(請求項1、7又は9の実行部に対応)。   When it is determined that the command does not request processing completion information (that is, when it is determined that the command is a processing command related to a series of processing) (step S23, NO), the CPU 21 executes the received processing command ( Step S25) (corresponding to the execution part of claim 1, 7 or 9).

受信された処理コマンドを実行すると、CPU21は、記憶領域24aが格納する処理完了済情報を更新する(ステップS26)。即ち、CPU21は、処理完了済情報を、実行された処理コマンドのコマンド識別子に書き換える。   When the received processing command is executed, the CPU 21 updates the processing completion information stored in the storage area 24a (step S26). That is, the CPU 21 rewrites the process completion information with the command identifier of the executed process command.

処理完了済情報を更新すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1へ送信する(ステップS27)。   When the process completion information is updated, the CPU 21 transmits a response including the process success information to the IC card processing apparatus 1 through the communication unit 25 (step S27).

当該レスポンスを送信すると、CPU21は、実行された処理コマンドが最後のコマンドであるか判定する(ステップS28)。たとえば、CPU21は、処理コマンドが格納するデータに基づいて処理コマンドが最後のコマンドであるか判定する。また、NVM24が処理コマンドのリストを格納し、CPU21は、当該リストに基づいて、処理コマンドが最後のコマンドであるか判定してもよい。   When the response is transmitted, the CPU 21 determines whether the executed processing command is the last command (step S28). For example, the CPU 21 determines whether the processing command is the last command based on data stored in the processing command. Further, the NVM 24 may store a list of processing commands, and the CPU 21 may determine whether the processing command is the last command based on the list.

処理完了済情報をICカード処理装置1へ送信した場合(ステップS24)、又は、処理コマンドが最後のコマンドでないと判定した場合(ステップS28、NO)、CPU21は、ステップS21へ戻る。   When the process completion information is transmitted to the IC card processing apparatus 1 (step S24), or when it is determined that the process command is not the last command (step S28, NO), the CPU 21 returns to step S21.

処理コマンドを正常に受信していないと判定すると(ステップS22、NO)、CPU21は、処理を中断する(ステップS29)。   When determining that the processing command has not been received normally (step S22, NO), the CPU 21 interrupts the processing (step S29).

処理コマンドが最後のコマンドであると判定した場合(ステップS28、YES)、又は、処理を中断した場合(ステップS29)、CPU21は、処理を終了する。   When it is determined that the process command is the last command (step S28, YES), or when the process is interrupted (step S29), the CPU 21 ends the process.

以上のように構成されたICカード処理システムは、一連の処理を途中で中断したICカードに対して、途中から処理を再開させることができる。その結果、ICカード処理システムは、一連の処理を中断したICカードを容易に再利用することができる。   The IC card processing system configured as described above can restart the process for an IC card that interrupts a series of processes in the middle. As a result, the IC card processing system can easily reuse the IC card for which a series of processing has been interrupted.

(第2実施形態)
次に、第2実施形態について説明する。
第2実施形態に係るICカード処理システム10は、ICカード2が実行済みの処理コマンドを識別する点で、第1実施形態に係るICカード処理システム10と異なる。従って、その他の点については、同様の符号を付して、詳細な説明を省略する。
(Second Embodiment)
Next, a second embodiment will be described.
The IC card processing system 10 according to the second embodiment is different from the IC card processing system 10 according to the first embodiment in that a processing command that has been executed by the IC card 2 is identified. Accordingly, other points are denoted by the same reference numerals, and detailed description thereof is omitted.

ICカード処理装置1及びICカード2の構成は、第1実施形態のそれらと同様であるので説明を省略する。   The configurations of the IC card processing device 1 and the IC card 2 are the same as those of the first embodiment, and thus description thereof is omitted.

次に、ICカード2のCPU21が実現する機能について説明する。
CPU21は、記憶領域24aが格納する処理完了済情報に基づいて、受信された処理コマンドが処理済みであるか判定する機能を有する(判定部に対応)。即ち、CPU21は、処理完了済情報が格納するコマンド識別子よりも若いコマンド識別子を有する処理コマンドを処理済みであると判定する。
Next, functions realized by the CPU 21 of the IC card 2 will be described.
The CPU 21 has a function of determining whether the received processing command has been processed based on the processing completion information stored in the storage area 24a (corresponding to a determination unit). That is, the CPU 21 determines that a processing command having a command identifier smaller than the command identifier stored in the processing completion information has been processed.

また、CPU21は、処理済みであると判定された処理コマンドを実行せずに、通信部25を通じて、当該処理コマンドに対する処理成功情報を含むレスポンスをICカード処理装置1へ送信する機能を有する(請求項2、8又は10の送信処理部に対応)。CPU21は、処理済みであると判定された処理コマンドが適切であるか判定してもよい。たとえば、CPU21は、当該処理コマンドが書き込もうとしているデータと、すでに書き込まれたデータとを比較して、処理済みであると判定された処理コマンドが適切であるか判定する。   Further, the CPU 21 has a function of transmitting a response including processing success information for the processing command to the IC card processing device 1 through the communication unit 25 without executing the processing command determined to be processed (invoice). (Corresponding to the transmission processing unit of item 2, 8 or 10). The CPU 21 may determine whether the processing command determined to have been processed is appropriate. For example, the CPU 21 compares the data to be written by the processing command with the already written data, and determines whether the processing command determined to have been processed is appropriate.

次に、ICカード処理システム10の動作例について説明する。
図7は、実施形態に係るICカード処理システム10の動作例を示すシーケンシャル図である。
Next, an operation example of the IC card processing system 10 will be described.
FIG. 7 is a sequential diagram illustrating an operation example of the IC card processing system 10 according to the embodiment.

ここでは、ICカード処理装置1とICカード2とは、通信可能な状態であるものとする。また、ICカード処理装置1は、所定の一連の処理を最初からICカード2に実行させるものとする。   Here, it is assumed that the IC card processing device 1 and the IC card 2 are in a communicable state. Further, the IC card processing device 1 is assumed to cause the IC card 2 to execute a predetermined series of processes from the beginning.

まず、ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、コマンド識別子が「1」である処理コマンドをICカード2に送信する(ステップS31)。   First, the CPU 11 of the IC card processing apparatus 1 transmits a processing command having a command identifier “1” to the IC card 2 through the card reader / writer 15 (step S31).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。当該処理コマンドを受信すると、CPU21は、記憶領域24aが格納する処理完了済情報に基づいて、当該処理コマンドが処理済みであるか判定する(ステップS32)。ここでは、処理完了済情報は、「na−1」を格納しているので、CPU21は、当該処理コマンドを処理済みと判定する。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. When receiving the processing command, the CPU 21 determines whether or not the processing command has been processed based on the processing completion information stored in the storage area 24a (step S32). Here, since the processing completion information stores “na-1”, the CPU 21 determines that the processing command has been processed.

当該処理コマンドを処理済みと判定すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1に送信する(ステップS33)。   When determining that the processing command has been processed, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S33).

ICカード処理装置1とICカード2とは、ステップS31〜33までの処理をコマンド識別子が「na−2」である処理コマンドを送信するまで繰り返す。   The IC card processing device 1 and the IC card 2 repeat the processing from steps S31 to S33 until a processing command having a command identifier “na-2” is transmitted.

次に、ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、コマンド識別子が「na−1」である処理コマンドをICカード2に送信する(ステップS34)。   Next, the CPU 11 of the IC card processing apparatus 1 transmits a processing command having a command identifier “na-1” to the IC card 2 through the card reader / writer 15 (step S34).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。当該処理コマンドを受信すると、CPU21は、記憶領域24aが格納する処理完了済情報に基づいて、当該処理コマンドが処理済みであるか判定する(ステップS35)。ここでは、処理完了済情報は、「na−1」を格納しているので、CPU21は、当該処理コマンドを処理済みと判定する。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. When the processing command is received, the CPU 21 determines whether or not the processing command has been processed based on the processing completion information stored in the storage area 24a (step S35). Here, since the processing completion information stores “na-1”, the CPU 21 determines that the processing command has been processed.

当該処理コマンドを処理済みと判定すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1に送信する(ステップS36)。   When determining that the processing command has been processed, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S36).

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、当該レスポンスを受信する。当該レスポンスを受信すると、CPU11は、カードリーダライタ15を通じて、コマンド識別子が「na」である処理コマンドをICカード2に送信する(ステップS37)。   The CPU 11 of the IC card processing apparatus 1 receives the response through the card reader / writer 15. When receiving the response, the CPU 11 transmits a processing command having a command identifier “na” to the IC card 2 through the card reader / writer 15 (step S37).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。当該処理コマンドを受信すると、CPU21は、記憶領域24aが格納する処理完了済情報に基づいて、当該処理コマンドが処理済みであるか判定する(ステップS38)。ここでは、処理完了済情報は、「na−1」を格納しているので、CPU21は、当該処理コマンドを処理済みでないと判定する。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. When the processing command is received, the CPU 21 determines whether or not the processing command has been processed based on the processing completion information stored in the storage area 24a (step S38). Here, since the processing completion information stores “na-1”, the CPU 21 determines that the processing command has not been processed.

当該処理コマンドを処理済みと判定すると、CPU21は、当該処理コマンドを実行する。ここでは、CPU21は、当該処理コマンドの実行に成功したものとする。   When determining that the processing command has been processed, the CPU 21 executes the processing command. Here, it is assumed that the CPU 21 has succeeded in executing the processing command.

当該処理コマンドを実行すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1に送信する(ステップS39)。   When the processing command is executed, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S39).

ICカード処理システム10は、ステップS37〜39を繰り返すことで、ICカード2に一連の処理を実行させる。   The IC card processing system 10 causes the IC card 2 to execute a series of processes by repeating steps S37 to S39.

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて最後の処理コマンドに対するレスポンスを受信すると、動作を終了する。   When the CPU 11 of the IC card processing apparatus 1 receives a response to the last processing command through the card reader / writer 15, the operation ends.

次に、ステップS32、35、又は、38におけるICカード2の動作例について説明する。
図8は、ステップS32、35、又は、38におけるICカード2の動作例について説明するためのフローチャートである。
Next, an operation example of the IC card 2 in step S32, 35, or 38 will be described.
FIG. 8 is a flowchart for explaining an operation example of the IC card 2 in step S32, 35, or 38.

第2実施形態に係るICカード2の動作例は、ステップS23並びに24がない点、及び、ステップS41並びに42が追加される点で、第1実施形態に係るICカード2の動作例と異なる。従って、他のステップについては同一の符号を付して詳細な説明を省略する。   The operation example of the IC card 2 according to the second embodiment is different from the operation example of the IC card 2 according to the first embodiment in that steps S23 and 24 are not provided and steps S41 and 42 are added. Accordingly, the other steps are denoted by the same reference numerals and detailed description thereof is omitted.

CPU21は、通信部25を通じてコマンドを受信する(ステップS21)。ここでは、CPU21が受信するコマンドは、一連の処理に関する処理コマンドである。処理コマンドを受信すると、CPU21は、処理コマンドを正常に受信したか判定する(ステップS22)
処理コマンドを正常に受信したと判定すると(ステップS22、YES)、CPU21は、記憶領域24aが格納する処理完了済情報に基づいて、受信された処理コマンドが処理済みであるか判定する(ステップS41)。処理コマンドが処理済みでないと判定すると(ステップS41、NO)、CPU21は、ステップS25に進む(請求項2、8又は10の実行部に対応)。
The CPU 21 receives a command through the communication unit 25 (step S21). Here, the command received by the CPU 21 is a processing command related to a series of processing. When receiving the processing command, the CPU 21 determines whether the processing command has been received normally (step S22).
If it is determined that the processing command has been normally received (step S22, YES), the CPU 21 determines whether the received processing command has been processed based on the processing completion information stored in the storage area 24a (step S41). ). If it is determined that the processing command has not been processed (NO at step S41), the CPU 21 proceeds to step S25 (corresponding to the execution unit of claim 2, 8 or 10).

処理コマンドが処理済みであると判定すると(ステップS41、YES)、CPU21は、受信された処理コマンドが書き込もうとするデータと、すでにNVM24などに書き込まれているデータとが整合するか判定する(ステップS42)。なお、処理コマンドが書込みコマンドでない場合は、CPU21は、ステップS25に進んでもよい。   If it is determined that the processing command has been processed (step S41, YES), the CPU 21 determines whether the data to be written by the received processing command matches the data already written in the NVM 24 or the like (step S41). S42). If the processing command is not a write command, the CPU 21 may proceed to step S25.

両データが整合すると判定すると(ステップS42、YES)、CPU21は、ステップS27に進む。
両データが整合しないと判定すると(ステップS42、NO)、CPU21は、ステップS29に進む。
If it is determined that the two data are matched (step S42, YES), the CPU 21 proceeds to step S27.
If it is determined that the two data do not match (step S42, NO), the CPU 21 proceeds to step S29.

なお、ICカード処理装置1のCPU11は、処理コマンドにコマンド識別子を格納しなくともよい。この場合、ICカード2のNVM24は予め処理コマンドが送信される順序を示すリストを格納する。また、処理完了済情報は、処理が完了した処理コマンドを示す情報を格納する。CPU21は、当該リストと当該処理完了済情報とに基づいて、受信された処理コマンドが処理済みであるか判定する。   Note that the CPU 11 of the IC card processing apparatus 1 may not store the command identifier in the processing command. In this case, the NVM 24 of the IC card 2 stores a list indicating the order in which processing commands are transmitted in advance. Further, the process completion information stores information indicating a process command for which the process has been completed. The CPU 21 determines whether the received processing command has been processed based on the list and the processing completion information.

以上のように構成されたICカード処理システムは、ICカード処理装置が処理完了済情報を取得しない。その結果、ICカード2は、外部にどこまで処理が進んでいるかを知らせる必要がなく、より安全なシステムを実現することができる。また、ICカード処理システムは、ICカード処理装置の負担を軽減することができる。   In the IC card processing system configured as described above, the IC card processing device does not acquire processing completion information. As a result, the IC card 2 does not need to inform the outside of how far the process has progressed, and a safer system can be realized. Further, the IC card processing system can reduce the burden on the IC card processing device.

(第3実施形態)
次に、第3実施形態について説明する。
第3実施形態に係るICカード処理システム10は、ICカード2が処理を中断した際に処理完了済情報をリセットする点で、第2実施形態に係るICカード処理システム10と異なる。従って、その他の点については、同一の符号を付して詳細な説明を省略する。
(Third embodiment)
Next, a third embodiment will be described.
The IC card processing system 10 according to the third embodiment is different from the IC card processing system 10 according to the second embodiment in that the processing completion information is reset when the IC card 2 interrupts the processing. Therefore, about other points, the same numerals are attached and detailed explanation is omitted.

ICカード処理装置1及びICカード2の構成は、第1実施形態のそれらと同様であるので説明を省略する。   The configurations of the IC card processing device 1 and the IC card 2 are the same as those of the first embodiment, and thus description thereof is omitted.

ICカード2の記憶領域24aが格納する処理完了済情報は、リセットされているものとする。   It is assumed that the processing completion information stored in the storage area 24a of the IC card 2 has been reset.

次に、ICカード2のCPU21が実現する機能について説明する。
CPU21は、ICカード処理装置1との通信中にエラーが生じた場合に、処理完了済情報をリセットする機能を有する(リセット部に対応)。たとえば、CPU21は、処理コマンドを適切に受信していないと判定した場合、又は、受信された処理コマンドが書き込もうとするデータと、すでにNVM24などに書き込まれているデータとが整合しないと判定した場合などに、処理完了済情報をリセットする。
Next, functions realized by the CPU 21 of the IC card 2 will be described.
The CPU 21 has a function of resetting the processing completion information when an error occurs during communication with the IC card processing device 1 (corresponding to a reset unit). For example, when the CPU 21 determines that the processing command is not properly received, or when it is determined that the data to be written by the received processing command does not match the data already written in the NVM 24 or the like For example, the processing completion information is reset.

たとえば、CPU21は、処理完了済情報を初期値に書き換えることで、処理完了済情報をリセットする。また、CPU21は、処理完了済情報を削除してもよい。   For example, the CPU 21 resets the processing completion information by rewriting the processing completion information to an initial value. Further, the CPU 21 may delete the processing completion information.

次に、ICカード処理システム10の動作例について説明する。
図9は、実施形態に係るICカード処理システム10の動作例を示すシーケンシャル図である。
Next, an operation example of the IC card processing system 10 will be described.
FIG. 9 is a sequential diagram illustrating an operation example of the IC card processing system 10 according to the embodiment.

ここでは、ICカード処理装置1とICカード2とは、通信可能な状態であるものとする。また、ICカード処理装置1は、所定の一連の処理を最初からICカード2に実行させるものとする。   Here, it is assumed that the IC card processing device 1 and the IC card 2 are in a communicable state. Further, the IC card processing device 1 is assumed to cause the IC card 2 to execute a predetermined series of processes from the beginning.

まず、ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、コマンド識別子が「1」である処理コマンドをICカード2に送信する(ステップS51)。   First, the CPU 11 of the IC card processing apparatus 1 transmits a processing command having a command identifier “1” to the IC card 2 through the card reader / writer 15 (step S51).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。処理完了済情報がリセットされているため、当該処理コマンドを受信すると、CPU21は、当該処理コマンドを実行する(ステップS52)。ここでは、CPU21は、当該処理コマンドの実行に成功したものとする。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. Since the process completion information is reset, when receiving the process command, the CPU 21 executes the process command (step S52). Here, it is assumed that the CPU 21 has succeeded in executing the processing command.

当該処理コマンドを実行すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1に送信する(ステップS53)。   When the processing command is executed, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S53).

ICカード処理装置1とICカード2とは、ステップS51〜53までの処理をコマンド識別子が「na−1」である処理コマンドを送信するまで繰り返す。   The IC card processing device 1 and the IC card 2 repeat the processing from steps S51 to S53 until a processing command having a command identifier “na-1” is transmitted.

次に、ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、コマンド識別子が「na」である処理コマンドをICカード2に送信する(ステップS54)。   Next, the CPU 11 of the IC card processing apparatus 1 transmits a processing command having a command identifier “na” to the IC card 2 through the card reader / writer 15 (step S54).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。ここでは、CPU21は、当該処理コマンドを正常に受信できなかったと判定するものとする(ステップS55)。当該処理コマンドを正常に受信できなかったと判定すると、CPU21は、処理完了済情報をリセットする(ステップS56)。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. Here, it is assumed that the CPU 21 determines that the processing command has not been received normally (step S55). If it is determined that the processing command has not been received normally, the CPU 21 resets the processing completed information (step S56).

当該処理コマンドを実行すると、CPU21は、通信部25を通じて、処理に失敗したことを示す処理失敗情報を含むレスポンスをICカード処理装置1に送信する(ステップS57)。   When the processing command is executed, the CPU 21 transmits a response including processing failure information indicating that the processing has failed to the IC card processing device 1 through the communication unit 25 (step S57).

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて当該レスポンスを受信すると、動作を終了する。   When the CPU 11 of the IC card processing apparatus 1 receives the response through the card reader / writer 15, the operation ends.

次に、ICカード2の動作例について説明する。
図10は、ICカード2の動作例について説明するためのフローチャートである。
Next, an operation example of the IC card 2 will be described.
FIG. 10 is a flowchart for explaining an operation example of the IC card 2.

第3実施形態に係るICカード2の動作例は、ステップS43が追加される点で、第3実施形態に係るICカード2の動作例と異なる。従って、他のステップについては同一の符号を付して詳細な説明を省略する。   The operation example of the IC card 2 according to the third embodiment is different from the operation example of the IC card 2 according to the third embodiment in that step S43 is added. Accordingly, the other steps are denoted by the same reference numerals and detailed description thereof is omitted.

両データが整合しないと判定すると(ステップS42、NO)、CPU21は、記憶領域24aが格納する処理完了済情報をリセットする(ステップS43)。   If it is determined that the two data do not match (step S42, NO), the CPU 21 resets the processing completion information stored in the storage area 24a (step S43).

処理完了済情報をリセットすると、CPU21は、ステップS29に進む。   When the process completion information is reset, the CPU 21 proceeds to step S29.

なお、CPU21は、処理コマンドの実行に失敗した場合に、処理完了済情報をリセットしてもよい。   Note that the CPU 21 may reset the processing completion information when the execution of the processing command fails.

また、CPU21は、必要に応じて処理完了済情報をリセットしてもよい。たとえば、CPU21は、ICカード処理装置1からの指示に基づいて、処理完了済情報をリセットしてもよい。   Further, the CPU 21 may reset the processing completion information as necessary. For example, the CPU 21 may reset the processing completion information based on an instruction from the IC card processing device 1.

以上のように構成されたICカード処理システムは、ICカード2が格納する処理完了済情報をリセットすることができる。その結果、ICカード処理システムは、一連の処理を最初からICカードに実行させることができる。   The IC card processing system configured as described above can reset the processing completion information stored in the IC card 2. As a result, the IC card processing system can cause the IC card to execute a series of processes from the beginning.

(第4実施形態)
次に、第4実施形態について説明する。
第4実施形態に係るICカード処理システム10は、ICカード処理装置1が処理完了済情報を格納する点で、第1実施形態に係るICカード処理システム10と異なる。従って、その他の点については同様の符号を付して詳細な説明を省略する。
(Fourth embodiment)
Next, a fourth embodiment will be described.
The IC card processing system 10 according to the fourth embodiment is different from the IC card processing system 10 according to the first embodiment in that the IC card processing device 1 stores processing completion information. Accordingly, the other points are denoted by the same reference numerals and detailed description thereof is omitted.

まず、ICカード処理装置1の構成について説明する。
図1の破線が示すように、ICカード処理装置1のNVM14は、処理完了済情報を格納する記憶領域14a(請求項13の記憶部に対応)などを備える。
First, the configuration of the IC card processing apparatus 1 will be described.
As indicated by a broken line in FIG. 1, the NVM 14 of the IC card processing apparatus 1 includes a storage area 14a (corresponding to a storage unit in claim 13) for storing processing completion information.

図11は、記憶領域14aが格納する処理完了済情報の例を示す。   FIG. 11 shows an example of processing completion information stored in the storage area 14a.

図11が示すように、記憶領域14aは、複数個の処理完了済情報を格納する。   As shown in FIG. 11, the storage area 14a stores a plurality of processing completed information.

記憶領域14aは、ICカード識別子と処理完了済情報とを対応付けて格納する。   The storage area 14a stores the IC card identifier and the process completion information in association with each other.

ICカード識別子は、ICカード処理装置1が管理するICカードを識別するために各ICカードに固有に割り振られた識別子である。   The IC card identifier is an identifier uniquely assigned to each IC card in order to identify the IC card managed by the IC card processing apparatus 1.

処理完了済情報は、前述の通りである。初期値を格納する場合、処理完了済情報は、対応するICカードが処理コマンドを実行していないことを示す。   The processing completion information is as described above. When the initial value is stored, the processing completion information indicates that the corresponding IC card is not executing the processing command.

図11が示す例において、たとえば、ICカード識別子が「x」であるICカードの処理完了済情報は、コマンド識別子が「nx−1」である処理コマンドまで当該ICカードが実行していることを示す。   In the example shown in FIG. 11, for example, the processing completion information of the IC card whose IC card identifier is “x” indicates that the IC card has been executed up to the processing command whose command identifier is “nx−1”. Show.

記憶領域14aが格納する処理完了済情報の個数は、特定の個数に限定されるものではない。   The number of processing completed information stored in the storage area 14a is not limited to a specific number.

次に、ICカード2の構成について説明する。
図2の破線が示すように、ICカード2のNVM24は、ICカード2のICカード識別子を格納する記憶領域24bなどを備える。
Next, the configuration of the IC card 2 will be described.
As indicated by the broken line in FIG. 2, the NVM 24 of the IC card 2 includes a storage area 24 b that stores an IC card identifier of the IC card 2.

記憶領域24bは、予めICカード識別子を格納する。たとえば、記憶領域24bは、ICカード2の製造時などにICカード識別子を格納する。また、記憶領域24bは、CPU21からの信号に従って、ICカード識別子を更新してもよい。   The storage area 24b stores an IC card identifier in advance. For example, the storage area 24b stores an IC card identifier when the IC card 2 is manufactured. In addition, the storage area 24b may update the IC card identifier in accordance with a signal from the CPU 21.

なお、記憶領域24bは、ROM22内にあってもよい。   The storage area 24b may be in the ROM 22.

次に、ICカード処理装置1のCPU11が実現する機能について説明する。
CPU11は、ICカード2からICカード識別子を取得する機能を有する。即ち、CPU11は、カードリーダライタ15を通じて、ICカード識別子を要求するコマンドをICカード2へ送信する(請求項13の第1送信処理部に対応)。たとえば、CPU11は、ICカード識別子を読み出すリードコマンドを送信する。CPU11は、カードリーダライタ15を通じて、ICカード識別子を含むレスポンスをICカード2から受信する。
Next, functions realized by the CPU 11 of the IC card processing apparatus 1 will be described.
The CPU 11 has a function of acquiring an IC card identifier from the IC card 2. That is, the CPU 11 transmits a command for requesting an IC card identifier to the IC card 2 through the card reader / writer 15 (corresponding to the first transmission processing unit of claim 13). For example, the CPU 11 transmits a read command for reading an IC card identifier. The CPU 11 receives a response including the IC card identifier from the IC card 2 through the card reader / writer 15.

また、CPU11は、ICカード識別子に対応する処理完了済情報を検索する機能を有する(請求項13の検索部に対応)。即ち、CPU11は、ICカード識別子に対応する処理完了済情報を記憶領域14b内から検索する。   Further, the CPU 11 has a function of searching for the processing completed information corresponding to the IC card identifier (corresponding to the search unit of claim 13). In other words, the CPU 11 searches the storage area 14b for processing completion information corresponding to the IC card identifier.

また、CPU11は、検索された処理完了済情報に基づいて、ICカード2が実行していない処理コマンドを生成する機能を有する(請求項13の生成部に対応)。   Further, the CPU 11 has a function of generating a processing command that is not executed by the IC card 2 based on the searched processing completion information (corresponding to the generating unit of claim 13).

また、CPU11は、ICカード2からのレスポンスに基づいて、当該ICカード2に対応する処理完了済情報を更新する機能を有する(請求項13の更新部に対応)。たとえば、レスポンスが処理完了済情報を含む場合に、CPU11は、当該ICカード2に対応する処理完了済情報を、直前に送信された処理コマンドのコマンド識別子に書き換える。   Further, the CPU 11 has a function of updating the processing completion information corresponding to the IC card 2 based on the response from the IC card 2 (corresponding to the update unit of claim 13). For example, when the response includes processing completion information, the CPU 11 rewrites the processing completion information corresponding to the IC card 2 to the command identifier of the processing command transmitted immediately before.

次に、ICカード処理システム10の動作例について説明する。
図12は、ICカード処理システム10の動作例を説明するためのシーケンシャル図である。
ここでは、ICカード処理装置1とICカード2とは、通信可能な状態であるものとする。また、ICカード処理装置1は、所定の一連の処理をICカード2に実行させるものとする。
Next, an operation example of the IC card processing system 10 will be described.
FIG. 12 is a sequential diagram for explaining an operation example of the IC card processing system 10.
Here, it is assumed that the IC card processing device 1 and the IC card 2 are in a communicable state. Further, the IC card processing device 1 is assumed to cause the IC card 2 to execute a predetermined series of processing.

まず、ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、ICカード識別子を要求するコマンドをICカード2へ送信する(ステップS61)。   First, the CPU 11 of the IC card processing apparatus 1 transmits a command requesting an IC card identifier to the IC card 2 through the card reader / writer 15 (step S61).

ICカード2のCPU21は、通信部25を通じて、当該コマンドを受信する。当該コマンドを受信すると、CPU21は、通信部25を通じて、記憶領域14bが格納するICカード識別子を含むレスポンスをICカード処理装置1へ送信する(ステップS62)。ここでは、CPU21は、ICカード識別子として「x」を送信するものとする。   The CPU 21 of the IC card 2 receives the command through the communication unit 25. When receiving the command, the CPU 21 transmits a response including the IC card identifier stored in the storage area 14b to the IC card processing apparatus 1 through the communication unit 25 (step S62). Here, it is assumed that the CPU 21 transmits “x” as the IC card identifier.

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、ICカード識別子をICカード2から受信する。ICカード識別子を受信すると、CPU11は、受信されたICカード識別子に基づいて、未処理の処理コマンドを生成する(ステップS63)。ICカード識別子「x」に対応する処理完了済情報が「nx−1」であるため、CPU11は、コマンド識別子が「nx」である処理コマンドを生成するものとする。   The CPU 11 of the IC card processing apparatus 1 receives the IC card identifier from the IC card 2 through the card reader / writer 15. When receiving the IC card identifier, the CPU 11 generates an unprocessed processing command based on the received IC card identifier (step S63). Since the processing completed information corresponding to the IC card identifier “x” is “nx−1”, the CPU 11 generates a processing command having a command identifier “nx”.

未処理の処理コマンドを生成すると、CPU11は、カードリーダライタ15を通じて、生成された処理コマンドをICカード2へ送信する(ステップS64)。   When the unprocessed process command is generated, the CPU 11 transmits the generated process command to the IC card 2 through the card reader / writer 15 (step S64).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。当該処理コマンドを受信すると、CPU21は、受信された当該処理コマンドを実行する(ステップS65)。ここでは、CPU21は、当該処理コマンドの実行に成功したものとする。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. When receiving the processing command, the CPU 21 executes the received processing command (step S65). Here, it is assumed that the CPU 21 has succeeded in executing the processing command.

当該処理コマンドを実行すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1へ送信する(ステップS66)。   When the processing command is executed, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S66).

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、当該レスポンスを受信する。当該レスポンスを受信すると、CPU11は、次の処理コマンドを生成する(ステップS67)。ここでは、CPU11は、コマンド識別子が「nx+1」である処理コマンドを生成する。   The CPU 11 of the IC card processing apparatus 1 receives the response through the card reader / writer 15. When receiving the response, the CPU 11 generates the next processing command (step S67). Here, the CPU 11 generates a processing command whose command identifier is “nx + 1”.

処理コマンドを生成すると、CPU11は、カードリーダライタ15を通じて、生成された処理コマンドをICカード2へ送信する(ステップS68)。   When the processing command is generated, the CPU 11 transmits the generated processing command to the IC card 2 through the card reader / writer 15 (step S68).

ICカード2のCPU21は、通信部25を通じて、当該処理コマンドを受信する。当該処理コマンドを受信すると、CPU21は、受信された当該処理コマンドを実行する(ステップS69)。ここでは、CPU21は、当該処理コマンドの実行に成功したものとする。   The CPU 21 of the IC card 2 receives the processing command through the communication unit 25. When receiving the processing command, the CPU 21 executes the received processing command (step S69). Here, it is assumed that the CPU 21 has succeeded in executing the processing command.

当該処理コマンドを実行すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1へ送信する(ステップS70)。   When the processing command is executed, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S70).

ICカード処理システム10は、ステップS67〜70を繰り返すことで、ICカード2に一連の処理を実行させる。   The IC card processing system 10 causes the IC card 2 to execute a series of processes by repeating steps S67 to S70.

ICカード処理装置1のCPU11は、カードリーダライタ15を通じて最後の処理コマンドに対するレスポンスを受信すると、動作を終了する。   When the CPU 11 of the IC card processing apparatus 1 receives a response to the last processing command through the card reader / writer 15, the operation ends.

次に、ステップS65、又は、69におけるICカード2の動作例について説明する。
図13は、ステップS65、又は、69におけるICカード2の動作例について説明するためのフローチャートである。
Next, an operation example of the IC card 2 in step S65 or 69 will be described.
FIG. 13 is a flowchart for explaining an operation example of the IC card 2 in step S65 or 69.

第4実施形態に係るICカード2の動作例は、ステップS24がない点で、第1実施形態に係るICカード2の動作例と異なる。従って、他のステップについては同一の符号を付して詳細な説明を省略する。   The operation example of the IC card 2 according to the fourth embodiment is different from the operation example of the IC card 2 according to the first embodiment in that step S24 is not provided. Accordingly, the other steps are denoted by the same reference numerals and detailed description thereof is omitted.

処理コマンドを正常に受信したと判定すると(ステップS22、YES)、CPU21は、受信された処理コマンドを実行する(ステップS23)。   If it is determined that the processing command has been normally received (step S22, YES), the CPU 21 executes the received processing command (step S23).

受信された処理コマンドを実行すると、CPU21は、通信部25を通じて、処理成功情報を含むレスポンスをICカード処理装置1へ送信する(ステップS25)。   When the received processing command is executed, the CPU 21 transmits a response including processing success information to the IC card processing device 1 through the communication unit 25 (step S25).

次に、ステップS63におけるICカード処理装置1の動作例について説明する。
図14は、ステップS63におけるICカード処理装置1の動作例について説明するためのフローチャートである。
Next, an operation example of the IC card processing apparatus 1 in step S63 will be described.
FIG. 14 is a flowchart for explaining an operation example of the IC card processing apparatus 1 in step S63.

まず、ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、ICカード識別子を含むレスポンスをICカード2から受信する(ステップS71)。   First, the CPU 11 of the IC card processing apparatus 1 receives a response including an IC card identifier from the IC card 2 through the card reader / writer 15 (step S71).

ICカード識別子を含むレスポンスを受信すると、CPU11は、当該ICカード識別子に対応する処理完了済情報を記憶領域14bから検索する(ステップS72)。   When receiving the response including the IC card identifier, the CPU 11 searches the storage area 14b for the processing completed information corresponding to the IC card identifier (step S72).

処理完了済情報を検索すると、CPU21は、検索された処理完了済情報が初期値を格納しているか判定する(ステップS73)。   When the process completion information is retrieved, the CPU 21 determines whether the retrieved process completion information stores an initial value (step S73).

処理完了済情報が初期値を格納していないと判定すると(ステップS73、NO)、CPU11は、処理完了済情報に基づいて、一連の処理が完了しているか判定する(ステップS74)。たとえば、CPU11は、処理完了済情報が最後の処理コマンドのコマンド識別子を格納しているか判定する。   If it is determined that the process completion information does not store the initial value (step S73, NO), the CPU 11 determines whether a series of processes is completed based on the process completion information (step S74). For example, the CPU 11 determines whether the process completion information stores the command identifier of the last process command.

一連の処理が完了していないと判定すると(ステップS74、NO)、CPU11は、処理完了済情報に基づいて、未処理の処理コマンドを生成する(ステップS75)。即ち、CPU11は、処理完了済情報が格納するコマンド識別子に1を加えたコマンド識別子に対応する処理コマンドを生成する。   If it is determined that a series of processing has not been completed (step S74, NO), the CPU 11 generates an unprocessed processing command based on the processing completion information (step S75). That is, the CPU 11 generates a processing command corresponding to the command identifier obtained by adding 1 to the command identifier stored in the processing completion information.

処理完了済情報が初期値を格納していると判定すると(ステップS73、YES)、CPU11は、最初の処理コマンド(即ち、コマンド識別子が「1」である処理コマンド)を生成する(ステップS76)。   If it is determined that the processing completion information stores the initial value (step S73, YES), the CPU 11 generates the first processing command (that is, the processing command whose command identifier is “1”) (step S76). .

一連の処理が完了していると判定した場合(ステップS74、YES)、未処理の処理コマンドを生成した場合(ステップS75)、又は、最初の処理コマンドを生成した場合(ステップS76)、CPU11は、動作を終了する。   When it is determined that a series of processing has been completed (step S74, YES), when an unprocessed processing command is generated (step S75), or when an initial processing command is generated (step S76), the CPU 11 End the operation.

次に、ステップS65におけるICカード処理装置1の動作例について説明する。
図15は、ステップS65におけるICカード処理装置1の動作例について説明するためのフローチャートである。
Next, an operation example of the IC card processing apparatus 1 in step S65 will be described.
FIG. 15 is a flowchart for explaining an operation example of the IC card processing apparatus 1 in step S65.

まず、ICカード処理装置1のCPU11は、カードリーダライタ15を通じて、処理成功情報を含むレスポンスをICカード2から受信する(ステップS81)。   First, the CPU 11 of the IC card processing apparatus 1 receives a response including processing success information from the IC card 2 through the card reader / writer 15 (step S81).

処理成功情報を含むレスポンスを受信すると、CPU11は、記憶領域14bが格納する処理完了済情報を更新する(ステップS82)。即ち、CPU11は、処理完了済情報を、レスポンスに対応する処理コマンド(即ち、直前に送信された処理コマンド)のコマンド識別子に書き換える。   When receiving the response including the processing success information, the CPU 11 updates the processing completion information stored in the storage area 14b (step S82). That is, the CPU 11 rewrites the processing completion information with the command identifier of the processing command corresponding to the response (that is, the processing command transmitted immediately before).

処理完了済情報を更新すると、CPU11は、一連の処理が完了したか判定する(ステップS83)。   When the process completion information is updated, the CPU 11 determines whether a series of processes has been completed (step S83).

一連の処理が完了していないと判定すると(ステップS83、NO)、CPU11は、次の処理コマンド(即ち、処理完了済情報が格納するコマンド識別子に1を加えたコマンド識別子に対応する処理コマンド)を生成する(ステップS84)。   If it is determined that the series of processing has not been completed (step S83, NO), the CPU 11 determines the next processing command (that is, the processing command corresponding to the command identifier obtained by adding 1 to the command identifier stored in the processing completion information). Is generated (step S84).

一連の処理が完了していると判定した場合(ステップS83、YES)、又は、次の処理コマンドを生成した場合(ステップS84)、CPU11は、処理を終了する。   When it is determined that a series of processing has been completed (step S83, YES), or when the next processing command is generated (step S84), the CPU 11 ends the processing.

以上のように構成されたICカード処理システムは、ICカード処理装置が処理完了済情報を管理する。その結果、ICカードは、処理完了済情報を格納するメモリを節約することができる。   In the IC card processing system configured as described above, the IC card processing device manages the processing completion information. As a result, the IC card can save the memory for storing the processing completion information.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

1…ICカード処理装置、2…ICカード、10…ICカード処理システム、11…CPU、14…NVM、14a…記憶領域、15…カードリーダライタ、21…CPU、124…NVM、24a及びb…記憶領域、25…通信部、M…モジュール、C…本体。   DESCRIPTION OF SYMBOLS 1 ... IC card processing apparatus, 2 ... IC card, 10 ... IC card processing system, 11 ... CPU, 14 ... NVM, 14a ... Storage area, 15 ... Card reader / writer, 21 ... CPU, 124 ... NVM, 24a and b ... Storage area, 25 ... communication unit, M ... module, C ... main body.

Claims (13)

外部装置からのコマンドを実行するICカードであって、
外部装置とデータを送受信する通信部と、
所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する記憶部と、
前記通信部を通じて、前記処理完了済情報を要求するコマンドを受信した場合に、受信された前記コマンドに応じて、前記通信部を通じて、前記記憶部が格納する前記処理完了済情報を含むレスポンスを送信する送信処理部と、
前記通信部を通じて、前記所定の一連の処理に関する処理コマンドを受信した場合に、受信された前記処理コマンドを実行する実行部と、
前記実行部が前記処理コマンドの実行に成功した場合に、前記記憶部が格納する前記処理完了済情報を更新する更新部と、
を備えるICカード。
An IC card that executes a command from an external device,
A communication unit for transmitting and receiving data to and from an external device;
A storage unit that stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing;
When a command requesting the processing completion information is received through the communication unit, a response including the processing completion information stored in the storage unit is transmitted through the communication unit according to the received command. A transmission processing unit to
An execution unit that executes the received processing command when a processing command related to the predetermined series of processing is received through the communication unit;
An update unit that updates the processing completion information stored in the storage unit when the execution unit succeeds in executing the processing command;
IC card equipped with.
外部装置からのコマンドを実行するICカードであって、
外部装置とデータを送受信する通信部と、
所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する記憶部と、
通信部を通じて、前記所定の一連の処理に関する処理コマンドを受信した場合に、前記記憶部が格納する前記処理完了済情報に基づいて、受信された前記処理コマンドが処理済みであるか判定する判定部と、
前記判定部が前記処理コマンドが処理済みであると判定した場合に、通信部を通じて、前記処理コマンドの実行が成功したことを示す処理成功情報を示すレスポンスを送信する送信処理部と、
前記判定部が前記処理コマンドが処理済みでないと判定した場合に、前記処理コマンドを実行する実行部と、
前記実行部が前記処理コマンドの実行に成功した場合に、前記記憶部が格納する前記処理完了済情報を更新する更新部と、
を備えるICカード。
An IC card that executes a command from an external device,
A communication unit for transmitting and receiving data to and from an external device;
A storage unit that stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing;
A determination unit that determines whether the received processing command has been processed based on the processing completion information stored in the storage unit when a processing command related to the predetermined series of processing is received through the communication unit When,
When the determination unit determines that the processing command has been processed, a transmission processing unit that transmits a response indicating processing success information indicating that the execution of the processing command is successful through the communication unit;
An execution unit that executes the processing command when the determination unit determines that the processing command has not been processed;
An update unit that updates the processing completion information stored in the storage unit when the execution unit succeeds in executing the processing command;
IC card equipped with.
前記判定部は、前記所定の一連の処理で実行される処理コマンドの順序を示すリストにさらに基づいて、前記処理コマンドが処理済みであるか判定する、
前記請求項2に記載のICカード。
The determination unit determines whether or not the processing command has been processed based on a list indicating the order of processing commands executed in the predetermined series of processing.
The IC card according to claim 2.
エラーが生じた場合に、前記記憶部が格納する前記処理完了済情報をリセットするリセット部を備える、
前記請求項2又は3に記載のICカード。
A reset unit that resets the processing completion information stored in the storage unit when an error occurs;
The IC card according to claim 2 or 3.
前記処理完了済情報は,処理済みの処理コマンドを識別するコマンド識別子である、
前記請求項1乃至4の何れか1項に記載のICカード。
The processing completion information is a command identifier for identifying a processed processing command.
The IC card according to any one of claims 1 to 4.
前記コマンド識別子は、前記所定の一連の処理の順序に従って各処理コマンドに割り振られる、
前記請求項5に記載のICカード。
The command identifier is allocated to each processing command according to the predetermined sequence of processing.
The IC card according to claim 5.
外部装置からのコマンドを実行するICカードであって、
外部装置とデータを送受信する通信部と、所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する記憶部と、前記通信部を通じて、前記処理完了済情報を要求するコマンドを受信した場合に、受信された前記コマンドに応じて、前記通信部を通じて、前記記憶部が格納する前記処理完了済情報を含むレスポンスを送信する送信処理部と、前記通信部を通じて、前記所定の一連の処理に関する処理コマンドを受信した場合に、受信された前記処理コマンドを実行する実行部と、
前記実行部が前記処理コマンドの実行に成功した場合に、前記記憶部が格納する前記処理完了済情報を更新する更新部と、を備えるモジュールと、
前記モジュールを内蔵した本体と、
を備えるICカード。
An IC card that executes a command from an external device,
A communication unit that transmits / receives data to / from an external device, a storage unit that stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing, and the processing completion through the communication unit A transmission processing unit that transmits a response including the processing completion information stored in the storage unit through the communication unit, in response to the received command requesting the completed information, and the communication An execution unit that executes the received processing command when a processing command related to the predetermined series of processing is received through the unit;
An update unit that updates the processing completion information stored in the storage unit when the execution unit succeeds in executing the processing command;
A body containing the module;
IC card equipped with.
外部装置からのコマンドを実行するICカードであって、
外部装置とデータを送受信する通信部と、所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する記憶部と、通信部を通じて、前記所定の一連の処理に関する処理コマンドを受信した場合に、前記記憶部が格納する前記処理完了済情報に基づいて、受信された前記処理コマンドが処理済みであるか判定する判定部と、前記判定部が前記処理コマンドが処理済みであると判定した場合に、通信部を通じて、前記処理コマンドの実行が成功したことを示す処理成功情報を示すレスポンスを送信する送信処理部と、前記判定部が前記処理コマンドが処理済みでないと判定した場合に、前記処理コマンドを実行する実行部と、前記実行部が前記処理コマンドの実行に成功した場合に、前記記憶部が格納する前記処理完了済情報を更新する更新部と、を備えるモジュールと、
前記モジュールを内蔵した本体と、
を備えるICカード。
An IC card that executes a command from an external device,
A communication unit that transmits / receives data to / from an external device, a storage unit that stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing, and the predetermined series through the communication unit A determination unit that determines whether the received processing command has been processed based on the processing completion information stored in the storage unit when the processing command related to the processing is received; and When it is determined that the command has been processed, a transmission processing unit that transmits a response indicating processing success information indicating that the execution of the processing command has succeeded through the communication unit, and the determination unit processes the processing command. An execution unit that executes the processing command when it is determined that the processing command is not completed, and the storage unit when the execution unit succeeds in executing the processing command. An update unit that updates the processing Completed information stored, the module comprising,
A body containing the module;
IC card equipped with.
外部装置からのコマンドを実行する携帯可能電子装置であって、
外部装置とデータを送受信する通信部と、
所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する記憶部と、
前記通信部を通じて、前記処理完了済情報を要求するコマンドを受信した場合に、受信された前記コマンドに応じて、前記通信部を通じて、前記記憶部が格納する前記処理完了済情報を含むレスポンスを送信する送信処理部と、
前記通信部を通じて、前記所定の一連の処理に関する処理コマンドを受信した場合に、受信された前記処理コマンドを実行する実行部と、
前記実行部が前記処理コマンドの実行に成功した場合に、前記記憶部が格納する前記処理完了済情報を更新する更新部と、
を備える携帯可能電子装置。
A portable electronic device that executes commands from an external device,
A communication unit for transmitting and receiving data to and from an external device;
A storage unit that stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing;
When a command requesting the processing completion information is received through the communication unit, a response including the processing completion information stored in the storage unit is transmitted through the communication unit according to the received command. A transmission processing unit to
An execution unit that executes the received processing command when a processing command related to the predetermined series of processing is received through the communication unit;
An update unit that updates the processing completion information stored in the storage unit when the execution unit succeeds in executing the processing command;
A portable electronic device comprising:
外部装置からのコマンドを実行する携帯可能電子装置であって、
外部装置とデータを送受信する通信部と、
所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する記憶部と、
通信部を通じて、前記所定の一連の処理に関する処理コマンドを受信した場合に、前記記憶部が格納する前記処理完了済情報に基づいて、受信された前記処理コマンドが処理済みであるか判定する判定部と、
前記判定部が前記処理コマンドが処理済みであると判定した場合に、通信部を通じて、前記処理コマンドの実行が成功したことを示す処理成功情報を示すレスポンスを送信する送信処理部と、
前記判定部が前記処理コマンドが処理済みでないと判定した場合に、前記処理コマンドを実行する実行部と、
前記実行部が前記処理コマンドの実行に成功した場合に、前記記憶部が格納する前記処理完了済情報を更新する更新部と、
を備える携帯可能電子装置。
A portable electronic device that executes commands from an external device,
A communication unit for transmitting and receiving data to and from an external device;
A storage unit that stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing;
A determination unit that determines whether the received processing command has been processed based on the processing completion information stored in the storage unit when a processing command related to the predetermined series of processing is received through the communication unit When,
When the determination unit determines that the processing command has been processed, a transmission processing unit that transmits a response indicating processing success information indicating that the execution of the processing command is successful through the communication unit;
An execution unit that executes the processing command when the determination unit determines that the processing command has not been processed;
An update unit that updates the processing completion information stored in the storage unit when the execution unit succeeds in executing the processing command;
A portable electronic device comprising:
ICカードに対してコマンドを供給するICカード処理装置であって、
ICカードとデータを送受信する通信部と、
前記通信部を通じて、所定の一連の処理の順序に従って割り振られるコマンド識別子を含む処理コマンドを送信する送信処理部と、
を備えるICカード処理装置。
An IC card processing device for supplying commands to an IC card,
A communication unit for transmitting and receiving data to and from the IC card;
A transmission processing unit that transmits a processing command including a command identifier allocated according to a predetermined sequence of processing through the communication unit;
An IC card processing device.
ICカードに対してコマンドを供給するICカード処理装置であって、
ICカードとデータを送受信する通信部と、
前記通信部を通じて、所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を要求するコマンドを送信する第1送信処理部と、
前記通信部を通じて、前記処理完了済情報を含むレスポンスを受信した場合に、受信された前記レスポンスが含む前記処理完了済情報に基づいて、未処理の処理コマンドを生成する生成部と、
前記通信部を通じて、前記生成部が生成した前記未処理の処理コマンドを送信する第2送信処理部と、
を備えるICカード処理装置。
An IC card processing device for supplying commands to an IC card,
A communication unit for transmitting and receiving data to and from the IC card;
A first transmission processing unit that transmits a command for requesting processing completion information indicating a processed processing command among a plurality of processing commands related to a predetermined series of processing through the communication unit;
A generation unit that generates an unprocessed processing command based on the processing completion information included in the received response when a response including the processing completion information is received through the communication unit;
A second transmission processing unit that transmits the unprocessed processing command generated by the generation unit through the communication unit;
An IC card processing device.
ICカードに対してコマンドを供給するICカード処理装置であって、
ICカードとデータを送受信する通信部と、
所定の一連の処理に関する複数の処理コマンドの中で処理済みの処理コマンドを示す処理完了済情報を格納する記憶部と、
前記通信部を通じて、ICカード識別子を要求するコマンドを送信する第1送信処理部と、
前記通信部を通じて、前記ICカード識別子を含むレスポンスを受信した場合に、前記記憶部から、受信された前記レスポンスが含む前記ICカード識別子に対応する処理完了済情報を検索する検索部と、
前記検索部が検索した前記処理完了済情報に基づいて、未処理の処理コマンドを生成する生成部と、
前記通信部を通じて、前記生成部が生成した前記未処理の処理コマンドを送信する第2送信処理部と、
前記通信部を通じて、前記処理コマンドの実行が成功したことを示す処理成功情報を含むレスポンスを受信した場合に、前記記憶部が格納する前記処理完了済情報を更新する更新部と、
を備えるICカード処理装置。
An IC card processing device for supplying commands to an IC card,
A communication unit for transmitting and receiving data to and from the IC card;
A storage unit that stores processing completion information indicating a processing command that has been processed among a plurality of processing commands related to a predetermined series of processing;
A first transmission processing unit for transmitting a command for requesting an IC card identifier through the communication unit;
When a response including the IC card identifier is received through the communication unit, a search unit that searches the storage unit for processing completed information corresponding to the IC card identifier included in the received response;
Based on the processing completion information searched by the search unit, a generation unit that generates an unprocessed processing command;
A second transmission processing unit that transmits the unprocessed processing command generated by the generation unit through the communication unit;
When receiving a response including processing success information indicating that the execution of the processing command is successful through the communication unit, an update unit that updates the processing completion information stored in the storage unit;
An IC card processing device.
JP2014212876A 2014-10-17 2014-10-17 IC card, portable electronic device, and IC card processing device Active JP6370669B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014212876A JP6370669B2 (en) 2014-10-17 2014-10-17 IC card, portable electronic device, and IC card processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014212876A JP6370669B2 (en) 2014-10-17 2014-10-17 IC card, portable electronic device, and IC card processing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2018129418A Division JP2018152142A (en) 2018-07-06 2018-07-06 IC card, portable electronic device, and IC card processing device

Publications (2)

Publication Number Publication Date
JP2016081344A JP2016081344A (en) 2016-05-16
JP6370669B2 true JP6370669B2 (en) 2018-08-08

Family

ID=55958842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014212876A Active JP6370669B2 (en) 2014-10-17 2014-10-17 IC card, portable electronic device, and IC card processing device

Country Status (1)

Country Link
JP (1) JP6370669B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018152142A (en) * 2018-07-06 2018-09-27 株式会社東芝 IC card, portable electronic device, and IC card processing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5413326B2 (en) * 2010-08-09 2014-02-12 三菱電機株式会社 IC card issuing method and IC card issuing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018152142A (en) * 2018-07-06 2018-09-27 株式会社東芝 IC card, portable electronic device, and IC card processing device

Also Published As

Publication number Publication date
JP2016081344A (en) 2016-05-16

Similar Documents

Publication Publication Date Title
JP5843674B2 (en) IC card, portable electronic device, and control method of IC card
JP2010182270A (en) Mobile electronic apparatus and data management method in mobile electronic apparatus
CN107908417B (en) Firmware upgrading method and electronic equipment
JP6721435B2 (en) IC card, portable electronic device, and information processing method
JP5259513B2 (en) Portable electronic device, IC card, and portable electronic device control method
JP6370669B2 (en) IC card, portable electronic device, and IC card processing device
JP6447469B2 (en) Rewriting system
JP2018152142A (en) IC card, portable electronic device, and IC card processing device
JP2016057868A (en) Ic card, portable electronic device, and program code
JP2020013212A (en) Portable electronic device, IC card, and issuing device
JP2008310596A (en) Portable electronic equipment and control method for potable electronic equipment
EP3379424B1 (en) Ic card, portable electronic device, program, processing apparatus, and processing system
JP6325394B2 (en) IC card, portable electronic device, and IC card processing device
JP2014059806A (en) Ic card, portable electronic device, and ic card processor
JP2010211516A (en) Portable electronic device and access control method in the same
JP6039036B2 (en) IC card, portable electronic device, and control method of IC card
JP2016081117A (en) Ic card, portable electronic device, and manufacturing method for ic card
JP2012133656A (en) Portable electronic apparatus and ic card
US10732955B2 (en) Electronic apparatus and information processing system
JP5341947B2 (en) IC card, control method of IC card, and control method of portable electronic device
JP2018101252A (en) Ic card, portable electronic device, and processing device
JP5038918B2 (en) Portable electronic device and method for controlling portable electronic device
JPH1027225A (en) Memory management system for non-contact ic card
JP2016206975A (en) IC card, portable electronic device, IC card processing device, and IC card processing system
JP2016177850A (en) Ic card, portable electronic device and ic card processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170525

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20170904

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20170905

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180529

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: 20180612

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180711

R150 Certificate of patent or registration of utility model

Ref document number: 6370669

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150