JP2006302130A - Ic card and program for ic card - Google Patents

Ic card and program for ic card Download PDF

Info

Publication number
JP2006302130A
JP2006302130A JP2005125420A JP2005125420A JP2006302130A JP 2006302130 A JP2006302130 A JP 2006302130A JP 2005125420 A JP2005125420 A JP 2005125420A JP 2005125420 A JP2005125420 A JP 2005125420A JP 2006302130 A JP2006302130 A JP 2006302130A
Authority
JP
Japan
Prior art keywords
card
command
information
execution
application
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
JP2005125420A
Other languages
Japanese (ja)
Other versions
JP4784138B2 (en
Inventor
Hideyuki Koike
秀行 小池
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2005125420A priority Critical patent/JP4784138B2/en
Publication of JP2006302130A publication Critical patent/JP2006302130A/en
Application granted granted Critical
Publication of JP4784138B2 publication Critical patent/JP4784138B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an IC card in which the execution state of an application is not lost until a transaction is completed even when communication I/Fs are switched during execution of the transaction. <P>SOLUTION: The application 3 to be mounted on the IC card has profile information 32 describing the flow of transaction and at least a command 30 and the communication I/F by which the command 30 is executed are described in order of execution of the command 30 in the profile information 32. A cache manager 31 refers to the profile information 32, saves execution information 33 indicating the execution state of the application 3 in a cache file 34 provided in an EEPROM in the case of switching the communication I/Fs and restores the execution information 33 from the cache file 34 to a predetermined location, when the communication I/Fs are switched. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、複数の異なる通信インターフェースを備えたICカードに関し、更に詳しくは、通信I/Fが切替るトランザクションに対応できるICカード、および、このICカードに実装されるプログラムに関する。   The present invention relates to an IC card having a plurality of different communication interfaces, and more particularly, to an IC card that can handle a transaction for switching communication I / Fs, and a program mounted on the IC card.

接触インターフェース(以下I/F、I/F: InterFace)と非接触I/Fの2つの異なる通信I/Fを有するデュアルインターフェースICカードは、接触型ICカードと非接触ICカードを1枚のICカードにまとめることができる利便性の高いICカードである。   A dual interface IC card having two different communication I / Fs, a contact interface (hereinafter referred to as I / F, I / F: InterFace) and a non-contact I / F, includes a contact IC card and a non-contact IC card as one IC. It is a highly convenient IC card that can be combined into a card.

特許文献1では、デュアルインターフェースICカードの利便性を更に高めるために、接触I/Fで駆動しても非接触I/Fで駆動しても、同等の機能を有し、かつ、十分なセキユリティ機能を実現できるデュアルインターフェースICカードが開示されている。   In Patent Document 1, in order to further enhance the convenience of the dual interface IC card, it has the same function and sufficient security whether it is driven by a contact I / F or non-contact I / F. A dual interface IC card capable of realizing the function is disclosed.

しかしながら、従来のデュアルインターフェースICカードにおいては、特許文献1に記載されているように、通信I/Fが切替るごとに、ICチップの揮発性メモリ(例えば、RAM:Random Access Memory)は初期化されてしまうため、トランザクションの実行中に通信I/Fが切替わると、揮発性メモリに記憶されていたアプリケーションの実行状況を示す情報が失われてしまい、通信I/Fが切替わった後に、通信I/Fが切替わる前の処理を再度実行しなければならないケースがあり、時間的に大変ロスが多かった   However, in the conventional dual interface IC card, as described in Patent Document 1, each time the communication I / F is switched, the volatile memory (for example, RAM: Random Access Memory) of the IC chip is initialized. Therefore, if the communication I / F is switched during the execution of the transaction, the information indicating the execution status of the application stored in the volatile memory is lost, and after the communication I / F is switched, There was a case where the processing before switching the communication I / F had to be executed again, and there was a lot of time loss.

例えば、ユーザの指紋照合に成功した場合のみデータの読み出しが可能になる場合、たとえ、供給電源の安定している接触I/Fで指紋照合を行ったとしても、高速データ通信が可能な非接触I/Fでデータを読み出すときは、再度、非接触I/Fで指紋照合を行わなければならなかった。
特開平11-272824号公報
For example, when data can be read only when the user's fingerprint collation is successful, even if fingerprint collation is performed with a stable contact I / F of the power supply, high-speed data communication is possible. When reading data with the I / F, the fingerprint collation must be performed again with the non-contact I / F.
Japanese Patent Laid-Open No. 11-272824

上述した問題を鑑みて、本発明は、接触I/Fと非接触I/Fを有するデュアルインターフェースICカードのように、複数の異なる通信I/Fを有し、同一アプリケーションに複数のI/FからアクセスできるICカードにおいて、トランザクションの実行中に通信I/Fが切替っても、トランザクションが完了するまでの間は、アプリケーションの実行状況が失われることのないICカード、および、ICカードに実装されるプログラムを提供することを目的とする。   In view of the above-described problems, the present invention has a plurality of different communication I / Fs such as a dual interface IC card having a contact I / F and a non-contact I / F, and a plurality of I / Fs in the same application. Even if the communication I / F is switched during the execution of the transaction in the IC card that can be accessed from the IC card, the application execution status is not lost until the transaction is completed. The purpose is to provide a program.

上述した本発明を解決する第1の発明は、複数の異なる通信インターフェースを有し、同一アプリケーションに複数の前記通信インターフェースからアクセスできるICカードにおいて、前記ICカードは、実行されているアプリケーションの実行状況を示し、前記ICカードの電源がオフになると情報が消去される記憶素子に記憶されている実行情報を、前記ICカードの書換え可能な不揮発性メモリに退避/復帰させるキャッシュ手段を備えていることを特徴とするICカードである。   A first invention for solving the present invention described above is an IC card having a plurality of different communication interfaces and capable of accessing the same application from a plurality of the communication interfaces. And cache means for saving / returning execution information stored in a storage element whose information is erased when the power of the IC card is turned off to a rewritable nonvolatile memory of the IC card. Is an IC card characterized by

第2の発明は、第1の発明に記載のICカードにおいて、前記アプリケーションは、トランザクションのフローを記述したプロファイル情報を有し、前記プロファイル情報には、少なくとも、前記アプリケーションのコマンドと前記コマンドが実行される前記通信インターフェースとが、前記コマンドの実行順に記述され、前記キャッシュ手段は、前記コマンドの処理が終了し前記ICカードが応答動作をする前に、前記プロファイル情報を参照し、次の前記コマンドが実行されるときに、前記通信インターフェースが切替わる際は、前記ICカードの書換え可能な不揮発性メモリに前記実行情報を退避させる手段と、前記ICカードが活性化された後に、前記ICカードの書換え可能な不揮発性メモリを参照し、前記実行情報が退避されている際は、前記実行情報を所定の場所に復帰する手段とを備えていることを特徴とするICカードである。   According to a second aspect of the present invention, in the IC card according to the first aspect, the application has profile information describing a transaction flow, and at least the application command and the command are executed in the profile information. The communication interface is described in the order of execution of the commands, and the cache means refers to the profile information before the processing of the command is completed and the IC card performs a response operation, and the next command When the communication interface is switched, the means for saving the execution information to a rewritable nonvolatile memory of the IC card, and after the IC card is activated, Referring to a rewritable nonvolatile memory, the execution information is saved That case, an IC card, characterized in that it comprises a means for returning the execution information in place.

第1の発明によれば、前記ICカードが前記キャッシュ手段を備え、前記通信インターフェースが切替るときに、前記実行情報を前記書換え可能な不揮発性メモリに退避/復帰させることで、前記通信インターフェースが切替っても、前記実行情報は失われることはない。なお、ここで、前記ICカードの電源がオフになると情報が消去される記憶素子とは、ICカードのICチップに備えられた揮発性メモリ(例えば、RAM)や、CPUのレジスタを意味する。   According to the first invention, the IC card includes the cache unit, and when the communication interface is switched, the communication interface is saved / returned to the rewritable nonvolatile memory so that the communication interface Even when switching, the execution information is not lost. Here, the storage element from which information is erased when the power of the IC card is turned off means a volatile memory (for example, RAM) provided in the IC chip of the IC card or a register of the CPU.

第2の発明によれば、前記アプリケーションが前記プロファイル情報を有し、前記キャッシュ手段が、前記プロファイル情報に基づいて、前記実行情報を退避/復帰させる動作を行うことで、前記ICカードは上位システムからの指示を受けることなく、前記通信インターフェースが切替るときに、自立的に、前記実行情報を前記ICカードの書換え可能な不揮発性メモリに退避/復帰させることができる。   According to the second invention, the application has the profile information, and the cache means performs an operation of saving / restoring the execution information based on the profile information, so that the IC card is an upper system. The execution information can be saved / restored in the rewritable nonvolatile memory of the IC card autonomously when the communication interface is switched without receiving an instruction from.

上述した本発明を解決する第3の発明は、複数の異なる通信インターフェースを有し、同一アプリケーションに複数の前記通信インターフェースからアクセスできるICカードに実装されるICカード用プログラムであって、端末装置からの命令に従い、実行されているアプリケーションの実行状況を示し、前記ICカードの電源がオフになると情報が消去される記憶素子に記憶されている実行情報を、前記ICカードの書換え可能な不揮発性メモリに退避/復帰させる処理を行うことを特徴とするICカード用プログラムである。   A third invention for solving the above-described present invention is an IC card program mounted on an IC card that has a plurality of different communication interfaces and can access the same application from the plurality of communication interfaces. The execution information stored in the storage element that indicates the execution status of the application being executed and is erased when the power of the IC card is turned off is stored in the rewritable nonvolatile memory of the IC card. The IC card program is characterized in that processing for saving / returning to / from is performed.

更に、第4の発明は、複数の異なる通信インターフェースを有し、同一アプリケーションに複数の前記通信インターフェースからアクセスできるICカードに実装されるICカード用プログラムであって、前記アプリケーションは、トランザクションのフローとして、少なくとも、前記アプリケーションのコマンドと前記コマンドが実行される前記通信インターフェースとが、前記コマンドの実行順に記述されたプロファイル情報を有し、前記ICカード用プログラムは、前記アプリケーションの実行状況を示し、前記ICカードの電源がオフになると情報が消去される記憶素子に記憶されている実行情報を退避させる退避モジュールと、前記実行情報を前記ICカードの不揮発性メモリから所定の場所に復帰させる復帰モジュールとを有し、前記退避モジュールは、前記コマンドの処理が終了し前記ICカードが応答動作をする前に、前記プロファイル情報を参照し、次の前記コマンドが実行される前記通信インターフェースと、前記ICカードが活性化された前記通信インターフェースとを比較するステップ、次の前記コマンドが実行される前記通信インターフェースと、前記ICカードが活性化された前記通信インターフェースとが異なる場合は、前記実行情報を前記ICカードの書換え可能な不揮発性メモリに退避させるステップ、とを順に実行するプログラムであって、前記復帰モジュールは、前記ICカードの活性化後に、前記ICカードの不揮発性メモリに前記実行情報が記憶されているか確認するステップ、不揮発性メモリに前記実行情報が記憶されている際は、前記実行情報を所定の場所に復帰させるステップ、とを順に実行するプログラムであることを特徴とするICカード用プログラムである。   Furthermore, the fourth invention is a program for an IC card that has a plurality of different communication interfaces and is mounted on an IC card that can access the same application from a plurality of the communication interfaces. The application is a transaction flow. At least the command of the application and the communication interface on which the command is executed have profile information described in the execution order of the command, and the IC card program indicates the execution status of the application, A save module that saves execution information stored in a storage element from which information is erased when the power of the IC card is turned off, and a return module that returns the execution information from the nonvolatile memory of the IC card to a predetermined location; Have The evacuation module refers to the profile information before the processing of the command is completed and the IC card performs a response operation, and the communication card in which the next command is executed and the IC card are activated. The step of comparing the communication interface, and if the communication interface in which the next command is executed is different from the communication interface in which the IC card is activated, the execution information can be rewritten to the IC card. A program for sequentially executing the step of saving to a non-volatile memory, wherein the return module checks whether the execution information is stored in the non-volatile memory of the IC card after the activation of the IC card. Step, when the execution information is stored in the non-volatile memory, Step of restoring the serial execution information in place, a program for an IC card, which is a program for executing the city in order.

上述した本発明によれば、接触I/Fと非接触I/Fを有するデュアルインターフェースICカードのように、複数の異なる通信I/Fを有し、同一アプリケーションに複数のI/FからアクセスできるICカードにおいて、トランザクションの実行中に通信I/Fが切替っても、トランザクションが完了するまでの間は、アプリケーションの実行状況が失われることのないICカード、および、ICカードに実装されるプログラムを提供できる。   According to the above-described present invention, the same application can be accessed from a plurality of I / Fs having a plurality of different communication I / Fs such as a dual interface IC card having a contact I / F and a non-contact I / F. In an IC card, even if the communication I / F is switched during the execution of a transaction, the execution status of the application is not lost until the transaction is completed, and the program mounted on the IC card Can provide.

(第1の実施の形態)
ここから、本発明が適用され、通信インターフェース(以下、I/F: InterFace)が切替るトランザクションに対応できるデュアルインターフェースICカード(以下、ICカードと略して記す)の第1の実施の形態について、図を参照しながら詳細に説明する。
(First embodiment)
From here, the first embodiment of the dual interface IC card (hereinafter abbreviated as IC card) to which the present invention is applied and which can handle a transaction for switching the communication interface (hereinafter referred to as I / F: InterFace) will be described. This will be described in detail with reference to the drawings.

第1の実施の形態は、通信I/Fが切替るときに、ICカードが自立的に、アプリケーションの実行状況を示す情報である実行情報を前記書換え可能な不揮発性メモリに退避/復帰する実施の形態である。   In the first embodiment, when the communication I / F is switched, the IC card autonomously saves / restores execution information, which is information indicating the execution status of the application, to the rewritable nonvolatile memory. It is a form.

図1は、本発明が適用されたICカードの外観および内部構造を説明する図である。図1(a)に示したように、ICカード1とは、キャッシュカードサイズのカードにICチップ2が実装されたカードで、本発明において、ICチップ2は、図外の端末装置とコンタクト端子2aを介して通信する接触I/Fと、図外の端末装置と無線で通信する非接触I/Fとを備えた、デュアルインターフェースICチップである。   FIG. 1 is a diagram for explaining the external appearance and internal structure of an IC card to which the present invention is applied. As shown in FIG. 1A, an IC card 1 is a card in which an IC chip 2 is mounted on a cash card size card. In the present invention, the IC chip 2 is connected to a terminal device and a contact terminal not shown. This is a dual interface IC chip including a contact I / F that communicates via 2a and a non-contact I / F that communicates wirelessly with a terminal device (not shown).

図1(b)はICカード1の内部構造を説明する図で、ICカード1に実装されるICチップ2にはアンテナ2bが接続され、ICカード1が非接触I/Fで動作するときは、このアンテナ2bを利用して、図外の外部端末と無線で通信を行う。   FIG. 1B is a diagram for explaining the internal structure of the IC card 1. When the antenna 2 b is connected to the IC chip 2 mounted on the IC card 1 and the IC card 1 operates with a non-contact I / F. The antenna 2b is used for wireless communication with an external terminal not shown.

図2はICカード1に実装されるICチップ2のハードウェア構造図である。ICチップには、中央演算装置20(Central Processing Unit、以下CPUと記す)に、バス26を介して、読み出し専用メモリ21(Read Only Memory、以下ROMと記す)、書換え可能なメモリとしてEEPROM23(Electrically Erasable Programmable Read-Only Memoryの略)、揮発性メモリとしてランダムアクセスメモリ22(Random Access Memory、以下RAMと記す)、および、図外の端末装置とデータを通信するための接触I/F回路24、非接触I/F回路25などが接続されている。   FIG. 2 is a hardware structure diagram of the IC chip 2 mounted on the IC card 1. The IC chip includes a central processing unit 20 (hereinafter referred to as CPU), a bus 26 via a bus 26, a read only memory 21 (hereinafter referred to as ROM), and an EEPROM 23 (Electrically as rewritable memory). Erasable Programmable Read-Only Memory), random access memory 22 (Random Access Memory, hereinafter referred to as RAM) as volatile memory, and contact I / F circuit 24 for communicating data with a terminal device (not shown), A non-contact I / F circuit 25 or the like is connected.

なお、本発明は、ICチップ2の仕様を限定するものではなく、ICカード1の用途に適した仕様のICチップ2を選択することができる。例えばROM21およびEEPROM23の容量については限定しないし、書換え可能なメモリは強誘電体メモリまたはフラッシュメモリ等のEEPROM以外のメモリであっても構わない。またICチップ2はタイマー回路、暗号演算回路またはコプロセッサ回路等の図示していない他のデバイスを備えていても構わない。   The present invention does not limit the specifications of the IC chip 2, and an IC chip 2 having specifications suitable for the application of the IC card 1 can be selected. For example, the capacities of the ROM 21 and the EEPROM 23 are not limited, and the rewritable memory may be a memory other than the EEPROM such as a ferroelectric memory or a flash memory. Further, the IC chip 2 may include other devices (not shown) such as a timer circuit, a cryptographic operation circuit, or a coprocessor circuit.

図3は、ICカード1に実装されるアプリケーション3を説明する図である。アプリケーション3は、3つのコマンド30a〜30cと、キャッシュマネージャ31と、プロファイル情報32と、実行情報33と、キャッシュファイル34とを備えている。   FIG. 3 is a diagram illustrating the application 3 mounted on the IC card 1. The application 3 includes three commands 30a to 30c, a cache manager 31, profile information 32, execution information 33, and a cache file 34.

アプリケーション3とはある特定の用途(例えば、コンピュータへのログインシステム)のために設計されたプログラムで、実行されるアプリケーション3は、図外の端末装置から送信される選択命令(例えば、ISO7816規格に記述されたSELECTコマンド)で指定される。   The application 3 is a program designed for a specific application (for example, a login system to a computer). The application 3 to be executed is a selection command (for example, conforming to the ISO7816 standard) transmitted from a terminal device not shown. Specified SELECT command).

図3において、アプリケーション3はコマンド30a〜30cを有し、コマンド30a〜30cとは、図外の端末装置がICカード1に送信する命令(例えば、データの書込み/読出し、ICカード1に記憶された情報に基づくユーザ認証など)を、ICカード1のCPU20が処理するコードが記述されたプログラムである。なお、今後、コマンド30a〜30cのそれぞれを区別しないときは、コマンド30と記述する。   3, the application 3 has commands 30a to 30c. The commands 30a to 30c are commands (for example, data writing / reading, data stored in the IC card 1) transmitted to the IC card 1 by a terminal device not shown in the figure. A program in which a code for processing the CPU 20 of the IC card 1 is described. In the future, when the commands 30a to 30c are not distinguished from each other, they are described as the command 30.

コマンド30a〜30cのそれぞれには、コマンド30a〜30cを識別するためのコマンド識別子(例えば、ISO7816規格で規定されているCLA,INS)を有し、図3のコマンドコマンド30a〜30cには、それぞれ「A」、「B」そして「C」のコマンド識別子が付加されている。   Each of the commands 30a to 30c has a command identifier for identifying the commands 30a to 30c (for example, CLA and INS defined in the ISO7816 standard). The command commands 30a to 30c in FIG. Command identifiers “A”, “B”, and “C” are added.

図3において、アプリケーション3が有する実行情報33とは、アプリケーション3の実行状況を示し、ICカード1の電源がオフになると情報が消去される記憶素子に記憶されている情報であって、例えば、RAM22に記憶され、ISO7816規格に記述されたセキュリティステータスであるとか、CPU20のプログラムカウンターなどの、アプリケーション3が再開されるときに必要となる情報である。   In FIG. 3, the execution information 33 included in the application 3 indicates the execution status of the application 3 and is information stored in a storage element from which information is erased when the power of the IC card 1 is turned off. This is information required when the application 3 is resumed, such as the security status stored in the RAM 22 and described in the ISO 7816 standard, or the program counter of the CPU 20.

図3において、アプリケーション3が有するキャッシュマネージャ31とは、プロファイル情報32に記述されるトランザクションのフローに従い、通信I/Fが切替るときに、アプリケーション3の実行情報33を、EEPROM23に設けられたキャッシュファイル34に退避/復帰する機能を備えたプログラムである。   In FIG. 3, the cache manager 31 included in the application 3 is a cache provided in the EEPROM 23 when the communication I / F is switched according to the transaction flow described in the profile information 32. This is a program having a function to save / restore to the file 34.

キャッシュマネージャ31が参照するプロファイル情報32には、通信I/Fを切替える処理が実行されるトランザクションのフローとして、ICカード1が実行する処理の内容を示す処理情報が実行順序通りに並べられている。本実施の形態において、一つの処理情報には、実行されるコマンド30のコマンド識別子と、そのコマンド30が実行される通信I/Fが、少なくとも、記憶される。   In the profile information 32 referred to by the cache manager 31, processing information indicating the contents of processing executed by the IC card 1 is arranged in the execution order as a transaction flow in which processing for switching the communication I / F is executed. . In the present embodiment, at least a command identifier of the command 30 to be executed and a communication I / F to execute the command 30 are stored in one piece of processing information.

ここから、図4を用いて、プロファイル情報32の一例を説明する。図4は、プロファイル情報32の一例を示した図である。プロファイル情報32には、実行順序を意味する番号32aに関連付けて処理情報32bが記憶され、処理情報32bには、コマンド30のコマンド識別子32cとそのコマンド30が実行されるときの通信I/F32dが記述されている。   From here, an example of the profile information 32 will be described with reference to FIG. FIG. 4 is a diagram showing an example of the profile information 32. In the profile information 32, processing information 32b is stored in association with a number 32a indicating the execution order. In the processing information 32b, the command identifier 32c of the command 30 and the communication I / F 32d when the command 30 is executed are stored. is described.

図4のプロファイル情報32によれば、通信I/Fを切替える処理が実行されるトランザクションのフローは、最初に接触I/Fでコマンド識別子が「A」のコマンド30aが実行され、次に接触I/Fでコマンド識別子が「B」のコマンド30bが実行され、最後に非接触I/Fでコマンド識別子が「C」のコマンド32cが実行されるフローである。   According to the profile information 32 of FIG. 4, in the transaction flow in which the process of switching the communication I / F is executed, the command 30 a with the contact I / F and the command identifier “A” is executed first, and then the contact I This is a flow in which a command 30b having a command identifier “B” is executed at / F, and a command 32c having a command identifier “C” is finally executed at a non-contact I / F.

加えて、本実施の形態においては、キャッシュマネージャ31が、プロファイル情報32で示されるトランザクションの進捗管理を行うために、プロファイル情報32には、処理情報の完了を示すフラグを記憶するトランザクションログ32eが設けられている。   In addition, in the present embodiment, in order for the cache manager 31 to manage the progress of the transaction indicated by the profile information 32, the profile information 32 includes a transaction log 32e that stores a flag indicating completion of processing information. Is provided.

キャッシュマネージャ31は、プロファイル情報32で示されるフローに従い、処理情報32cで示される処理を完了すると、完了した処理情報32cに対応するトランザクションログ32eの箇所に、この処理情報32cが完了したことを示すフラグを書き込む。キャッシュマネージャ31は、このトランザクションログ32eを参照することで、次のコマンドが実行するときの通信I/Fを知ることができる。   When the cache manager 31 completes the process indicated by the process information 32c in accordance with the flow indicated by the profile information 32, the cache manager 31 indicates that the process information 32c is completed at the location of the transaction log 32e corresponding to the completed process information 32c. Write a flag. The cache manager 31 can know the communication I / F when the next command is executed by referring to the transaction log 32e.

例えば、図4のプロファイル情報32では、トランザクションログ32eの「1」は完了を示し、「0」は未完了を示している。図4では、完了している処理情報32bは、番号「1」および番号「2」の処理情報で、次に実行される処理情報32bは番号「3」の処理情報で、番号「3」の処理情報では、通信I/F32dは、接触I/Fから非接触I/Fに切替わることが示されている。   For example, in the profile information 32 of FIG. 4, “1” in the transaction log 32e indicates completion, and “0” indicates incomplete. In FIG. 4, the completed process information 32b is the process information of the numbers “1” and “2”, the process information 32b to be executed next is the process information of the number “3”, and the number “3”. The processing information indicates that the communication I / F 32d is switched from the contact I / F to the non-contact I / F.

ここから、図3のキャッシュマネージャ31の説明に戻る。キャッシュマネージャ31は、端末装置から送信された命令を処理すると、プロファイル情報32を参照し、次のコマンド30が実行される通信I/Fが、ICカード1が活性化された通信I/Fと異なる場合は、実行情報33をキャッシュファイル34に一時的に退避させる。そして、実行情報33をキャッシュファイル34に退避した後、ICカード1は、図外の端末装置から送信された命令に対する応答動作を行う。   From here, it returns to description of the cache manager 31 of FIG. When the cache manager 31 processes the command transmitted from the terminal device, the communication I / F in which the next command 30 is executed is referred to as the communication I / F in which the IC card 1 is activated with reference to the profile information 32. If they are different, the execution information 33 is temporarily saved in the cache file 34. Then, after saving the execution information 33 to the cache file 34, the IC card 1 performs a response operation to a command transmitted from a terminal device (not shown).

そして、通信I/Fが切替り、上述した選択命令でアプリケーション3が指定されると、キャッシュマネージャ31は、キャッシュファイル34に一時的に退避させた実行情報33を、所定の場所に復帰させる。   Then, when the communication I / F is switched and the application 3 is designated by the selection command described above, the cache manager 31 restores the execution information 33 temporarily saved in the cache file 34 to a predetermined location.

キャッシュマネージャ31が、プロファイル情報32に基づいて、実行情報33をキャッシュファイル34に退避/復帰させることで、図外の端末装置がICカード1の通信I/Fを切替える手順を実行しても、実行情報33はICカード1から消去されることはない。   Even if the cache manager 31 saves / restores the execution information 33 to the cache file 34 based on the profile information 32, the terminal device (not shown) executes the procedure for switching the communication I / F of the IC card 1. The execution information 33 is not erased from the IC card 1.

ここから、キャッシュマネージャ31が実行情報33を退避/復帰させる手順について、図を参照しながら詳細に説明する。図5は、キャッシュマネージャ31が実行情報33を退避/復帰させる手順を示したフロー図である。   From here, the procedure by which the cache manager 31 saves / restores the execution information 33 will be described in detail with reference to the drawings. FIG. 5 is a flowchart showing a procedure for the cache manager 31 to save / restore the execution information 33.

この動作の最初のステップS10は、図外の端末装置からICカード1が命令を受信し、受信した命令を実行するステップである。そして、ステップS11は、ステップS10の実行結果をプロファイル情報32のトランザクションログに反映させ、トランザクションログを更新するステップである。   The first step S10 of this operation is a step in which the IC card 1 receives a command from a terminal device (not shown) and executes the received command. And step S11 is a step which reflects the execution result of step S10 in the transaction log of the profile information 32, and updates a transaction log.

次のステップS12では、実行したコマンドが、プロファイル情報32で示される最後のコマンドであるか確認するステップである。最終のコマンドでなければステップS13に進み、最終コマンドの場合は、ステップS18でプロファイル情報32のトランザクションログを初期化し、ICカード1は、端末装置から送信された命令に対する応答動作を行い、この手順を終了する。   The next step S12 is a step of confirming whether the executed command is the last command indicated by the profile information 32. If the command is not the final command, the process proceeds to step S13. If the command is the final command, the transaction log of the profile information 32 is initialized in step S18, and the IC card 1 performs a response operation to the command transmitted from the terminal device. Exit.

ステップS12で最終のコマンドでないときに実行されるステップS13は、キャッシュマネージャ31がプロファイル情報32を確認し、次に実行される処理情報から、次のコマンドが実行されるときに、通信I/Fが切替わるか確認するステップである。通信I/Fが切替わらないときはステップS10に戻り、切替わるときはステップS14に進む。   In step S13 executed when the command is not the final command in step S12, the cache manager 31 checks the profile information 32, and when the next command is executed from the processing information executed next, the communication I / F is executed. This is a step for checking whether or not. When the communication I / F is not switched, the process returns to step S10, and when switched, the process proceeds to step S14.

通信I/Fが切替わるときに実行されるステップS14は、実行情報33をEEPROM23のキャッシュファイル34に退避するステップである。   Step S14 executed when the communication I / F is switched is a step of saving the execution information 33 to the cache file 34 of the EEPROM 23.

次に実行されるステップS15は、通信I/Fが切替り、再度、アプリケーション3が選択されるステップである。通信I/Fが切替えると、ICカード1は、揮発性メモリの初期化などの予め定義された処理が実行され、上述している選択コマンドによって、再度、アプリケーション3が選択される   Step S15 to be executed next is a step in which the communication I / F is switched and the application 3 is selected again. When the communication I / F is switched, the IC card 1 executes a predetermined process such as initialization of the volatile memory, and the application 3 is selected again by the selection command described above.

次に実行されるステップS16は、キャッシュマネージャ31がキャッシュファイル34に実行情報33が退避されているか確認するステップである。キャッシュファイル34に実行情報33が退避されていないときはステップS10に戻り、退避されているときはステップS17に進む。   Step S16 to be executed next is a step in which the cache manager 31 confirms whether or not the execution information 33 is saved in the cache file 34. When the execution information 33 is not saved in the cache file 34, the process returns to step S10. When the execution information 33 is saved, the process proceeds to step S17.

次のステップS17は、キャッシュマネージャ31が、キャッシュファイル34に退避された実行情報33を所定の場所に復帰させるステップである。キャッシュマネージャ31が実行情報33をに復帰した後は、ステップS10に戻る。   In the next step S17, the cache manager 31 returns the execution information 33 saved in the cache file 34 to a predetermined location. After the cache manager 31 returns the execution information 33, the process returns to step S10.

(第2の実施の形態)
ここから、本発明が適用された、通信インターフェース(以下、I/F: InterFace)が切替るトランザクションに対応できるICカードの第2の実施の形態を説明する図である。第2の実施の形態は、図外の端末装置からの命令に従い、ICカードが、アプリケーションの実行状況を示し、揮発性メモリ(ここでは、RAM)やCPUのレジスタに記憶している情報をキャッシュファイルに退避/復帰させる実施の形態である。
(Second Embodiment)
From here, it is a figure explaining 2nd Embodiment of the IC card which can respond to the transaction which a communication interface (henceforth I / F: InterFace) switches to which this invention was applied. In the second embodiment, in accordance with a command from a terminal device (not shown), the IC card indicates the execution status of an application, and caches information stored in a volatile memory (in this case, RAM) or a CPU register. This is an embodiment for saving / restoring to a file.

図6は、第2の実施の形態において、ICカードに実装されるアプリケーションを説明する図である。図6に示したように、アプリケーション4は、コマンド40に加えて、実行情報42をキャッシュファイル43に退避/復帰させる機能を有するキャッシュコマンド41を有している。   FIG. 6 is a diagram for explaining an application mounted on an IC card in the second embodiment. As shown in FIG. 6, the application 4 has a cache command 41 having a function of saving / returning the execution information 42 to the cache file 43 in addition to the command 40.

ICカードは、端末装置からキャッシュコマンド41を実行する命令を受信すると、アプリケーション4に備えらたキャッシュコマンド41は、実行情報42をキャッシュファイル43に退避/復帰させる動作を行う。なお、キャッシュコマンド41がキャッシュファイル43に退避させるか、キャッシュファイル43からの復帰させるかについては、図外の端末装置から送信される命令のパラメータで指定される。   When the IC card receives an instruction to execute the cache command 41 from the terminal device, the cache command 41 provided in the application 4 performs an operation to save / restore the execution information 42 to the cache file 43. Whether the cache command 41 is saved in the cache file 43 or restored from the cache file 43 is specified by a parameter of a command transmitted from a terminal device (not shown).

ICカードの外観および内部構造を説明する図。The figure explaining the external appearance and internal structure of an IC card. ICカードに実装されるICチップのハードウェア構造図。The hardware structure figure of the IC chip mounted in an IC card. 第1の実施の形態で、ICカードに実装されるアプリケーションを説明する図。The figure explaining the application mounted in IC card in 1st Embodiment. プロファイル情報の一例を示した図。The figure which showed an example of profile information. キャッシュマネージャの動作を示したフロー図。The flowchart which showed operation | movement of the cache manager. 第2の実施の形態で、ICカードに実装されるアプリケーションを説明する図。The figure explaining the application mounted in IC card in 2nd Embodiment.

符号の説明Explanation of symbols

1 ICカード
2 ICチップ
20 CPU
22 RAM
23 EEPROM
3 アプリケーション
30 コマンド
31 キャッシュマネージャ
32 プロファイル情報
33 実行情報
34 キャッシュファイル
4 アプリケーション
41 キャッシュコマンド
1 IC card 2 IC chip 20 CPU
22 RAM
23 EEPROM
3 Application 30 Command 31 Cache Manager 32 Profile Information 33 Execution Information 34 Cache File 4 Application 41 Cache Command

Claims (4)

複数の異なる通信インターフェースを有し、同一アプリケーションに複数の前記通信インターフェースからアクセスできるICカードにおいて、前記ICカードは、実行されているアプリケーションの実行状況を示し、前記ICカードの電源がオフになると情報が消去される記憶素子に記憶されている実行情報を、前記ICカードの書換え可能な不揮発性メモリに退避/復帰させるキャッシュ手段を備えていることを特徴とするICカード。   In an IC card that has a plurality of different communication interfaces and can access the same application from a plurality of the communication interfaces, the IC card indicates the execution status of the application being executed, and information is provided when the power of the IC card is turned off. An IC card comprising: cache means for saving / returning execution information stored in a storage element from which data is erased to / from a rewritable nonvolatile memory of the IC card. 請求項1に記載のICカードにおいて、前記アプリケーションは、トランザクションのフローを記述したプロファイル情報を有し、前記プロファイル情報には、少なくとも、前記アプリケーションのコマンドと前記コマンドが実行される前記通信インターフェースとが、前記コマンドの実行順に記述され、前記キャッシュ手段は、前記コマンドの処理が終了し前記ICカードが応答動作をする前に、前記プロファイル情報を参照し、次の前記コマンドが実行されるときに、前記通信インターフェースが切替わる際は、前記ICカードの書換え可能な不揮発性メモリに前記実行情報を退避させる手段と、前記ICカードが活性化された後に、前記ICカードの書換え可能な不揮発性メモリを参照し、前記実行情報が退避されている際は、前記実行情報を所定の場所に復帰する手段とを備えていることを特徴とするICカード。   2. The IC card according to claim 1, wherein the application includes profile information describing a transaction flow, and the profile information includes at least the command of the application and the communication interface on which the command is executed. Are described in the order of execution of the commands, and the cache means refers to the profile information before the processing of the command ends and the IC card performs a response operation, and when the next command is executed, When the communication interface is switched, means for saving the execution information in a rewritable nonvolatile memory of the IC card, and a rewritable nonvolatile memory of the IC card after the IC card is activated When the execution information is saved, the actual information is saved. IC card characterized in that it comprises means for returning the information in place. 複数の異なる通信インターフェースを有し、同一アプリケーションに複数の前記通信インターフェースからアクセスできるICカードに実装されるICカード用プログラムであって、端末装置からの命令に従い、実行されているアプリケーションの実行状況を示し、前記ICカードの電源がオフになると情報が消去される記憶素子に記憶されている実行情報を、前記ICカードの書換え可能な不揮発性メモリに退避/復帰させる処理を行うことを特徴とするICカード用プログラム。   An IC card program that is mounted on an IC card that has a plurality of different communication interfaces and can access the same application from a plurality of the communication interfaces, and displays the execution status of the application being executed in accordance with a command from the terminal device The execution information stored in the storage element whose information is erased when the power of the IC card is turned off is saved / restored in the rewritable nonvolatile memory of the IC card. Program for IC card. 複数の異なる通信インターフェースを有し、同一アプリケーションに複数の前記通信インターフェースからアクセスできるICカードに実装されるICカード用プログラムであって、前記アプリケーションは、トランザクションのフローとして、少なくとも、前記アプリケーションのコマンドと前記コマンドが実行される前記通信インターフェースとが、前記コマンドの実行順に記述されたプロファイル情報を有し、前記ICカード用プログラムは、前記アプリケーションの実行状況を示し、前記ICカードの電源がオフになると情報が消去される記憶素子に記憶されている実行情報を退避させる退避モジュールと、前記実行情報を前記ICカードの不揮発性メモリから所定の場所に復帰させる復帰モジュールとを有し、前記退避モジュールは、前記コマンドの処理が終了し前記ICカードが応答動作をする前に、前記プロファイル情報を参照し、次の前記コマンドが実行される前記通信インターフェースと、前記ICカードが活性化された前記通信インターフェースとを比較するステップ、次の前記コマンドが実行される前記通信インターフェースと、前記ICカードが活性化された前記通信インターフェースとが異なる場合は、前記実行情報を前記ICカードの書換え可能な不揮発性メモリに退避させるステップ、とを順に実行するプログラムであって、前記復帰モジュールは、前記ICカードの活性化後に、前記ICカードの不揮発性メモリに前記実行情報が記憶されているか確認するステップ、不揮発性メモリに前記実行情報が記憶されている際は、前記実行情報を所定の場所に復帰させるステップ、とを順に実行するプログラムであることを特徴とするICカード用プログラム。

An IC card program mounted on an IC card having a plurality of different communication interfaces and capable of accessing the same application from a plurality of the communication interfaces, wherein the application includes at least a command of the application as a transaction flow The communication interface on which the command is executed has profile information described in the execution order of the command, the IC card program indicates the execution status of the application, and the IC card is turned off. A save module that saves execution information stored in a storage element from which information is erased; and a return module that returns the execution information from a nonvolatile memory of the IC card to a predetermined location. The communication interface in which the next command is executed by referring to the profile information before the processing of the command is completed and the IC card performs a response operation, and the communication interface in which the IC card is activated If the communication interface in which the next command is executed is different from the communication interface in which the IC card is activated, the execution information is rewritable nonvolatile memory of the IC card. And the step of confirming whether the execution information is stored in the non-volatile memory of the IC card after the activation of the IC card, When the execution information is stored in the memory, the execution information is Step of returning at, program IC card, which is a program for executing the city in order.

JP2005125420A 2005-04-22 2005-04-22 IC card and IC card program Expired - Fee Related JP4784138B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005125420A JP4784138B2 (en) 2005-04-22 2005-04-22 IC card and IC card program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005125420A JP4784138B2 (en) 2005-04-22 2005-04-22 IC card and IC card program

Publications (2)

Publication Number Publication Date
JP2006302130A true JP2006302130A (en) 2006-11-02
JP4784138B2 JP4784138B2 (en) 2011-10-05

Family

ID=37470317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005125420A Expired - Fee Related JP4784138B2 (en) 2005-04-22 2005-04-22 IC card and IC card program

Country Status (1)

Country Link
JP (1) JP4784138B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102015121879A1 (en) 2015-12-15 2017-06-22 Bombardier Transportation Gmbh Method for controlling a contact force between a contact wire and at least one current collector of a rail vehicle
CN111666069A (en) * 2020-06-09 2020-09-15 东信和平科技股份有限公司 Development platform and method for optimizing IC card program and use method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0850641A (en) * 1994-08-05 1996-02-20 Dainippon Printing Co Ltd Ic card
JP2003168092A (en) * 2001-11-29 2003-06-13 Sharp Corp Combination type ic card, controlling method thereof and system program thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0850641A (en) * 1994-08-05 1996-02-20 Dainippon Printing Co Ltd Ic card
JP2003168092A (en) * 2001-11-29 2003-06-13 Sharp Corp Combination type ic card, controlling method thereof and system program thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102015121879A1 (en) 2015-12-15 2017-06-22 Bombardier Transportation Gmbh Method for controlling a contact force between a contact wire and at least one current collector of a rail vehicle
CN111666069A (en) * 2020-06-09 2020-09-15 东信和平科技股份有限公司 Development platform and method for optimizing IC card program and use method thereof
CN111666069B (en) * 2020-06-09 2023-05-12 东信和平科技股份有限公司 Optimizing IC card program development platform, method and using method thereof

Also Published As

Publication number Publication date
JP4784138B2 (en) 2011-10-05

Similar Documents

Publication Publication Date Title
JP4896837B2 (en) Portable electronic device and method for controlling portable electronic device
JP4896842B2 (en) Portable electronic device
JP4776462B2 (en) Portable electronic device and method for controlling portable electronic device
JP4784138B2 (en) IC card and IC card program
JP2006293706A (en) Multi-application ic card with application updating function
JP2008310596A (en) Portable electronic equipment and control method for potable electronic equipment
JP2007087120A (en) Ic card mounted with multiple os (operating system) and issue consignment method
JP2007115187A (en) Portable electronic device and ic card
EP1384197B1 (en) Method of manufacturing smart cards
JP4836707B2 (en) Portable electronic device and IC card
JP4868979B2 (en) Portable electronic device and IC card
US8074023B2 (en) In-system programming to switch memory access from one area to another in memory cards
JP7420179B1 (en) Electronic information storage medium, IC card, issuance processing method, and program
JP2006172271A (en) Multi-application ic card, and program for ic card
JP7322923B2 (en) Secure element, transaction control method and device
JP6281302B2 (en) Information processing apparatus, IC card, and data processing method
JP5341947B2 (en) IC card, control method of IC card, and control method of portable electronic device
JP2003331236A (en) Portable electronic device
JP4811560B2 (en) IC card and IC card program
JP2008152452A (en) Portable electronic device, control method for portable electronic device, and ic card
AU2002254795B2 (en) Method of manufacturing smart cards
JP4774681B2 (en) Multi-application IC card with common command application
JP2007172301A (en) Ic card having function of protecting data during transaction execution, and ic card program
JP2004334747A (en) Portable electronic device
JP2005056259A (en) Portable electronic medium and portable electronic medium handling device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110523

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110627

R150 Certificate of patent or registration of utility model

Ref document number: 4784138

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140722

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees