Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7400528B2 - IC card with self-diagnosis function and IC card self-diagnosis method - Google Patents
[go: Go Back, main page]

JP7400528B2 - IC card with self-diagnosis function and IC card self-diagnosis method - Google Patents

IC card with self-diagnosis function and IC card self-diagnosis method Download PDF

Info

Publication number
JP7400528B2
JP7400528B2 JP2020028719A JP2020028719A JP7400528B2 JP 7400528 B2 JP7400528 B2 JP 7400528B2 JP 2020028719 A JP2020028719 A JP 2020028719A JP 2020028719 A JP2020028719 A JP 2020028719A JP 7400528 B2 JP7400528 B2 JP 7400528B2
Authority
JP
Japan
Prior art keywords
self
diagnosis
application
chip
card
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
JP2020028719A
Other languages
Japanese (ja)
Other versions
JP2021135539A (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.)
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 JP2020028719A priority Critical patent/JP7400528B2/en
Publication of JP2021135539A publication Critical patent/JP2021135539A/en
Application granted granted Critical
Publication of JP7400528B2 publication Critical patent/JP7400528B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Description

本発明は,ICチップ(半導体集積回路)を実装したカード媒体であるICカードに関し,更に詳しくは,ICカードが実行する自己診断に関する。 The present invention relates to an IC card, which is a card medium mounted with an IC chip (semiconductor integrated circuit), and more particularly relates to self-diagnosis performed by the IC card.

ICチップ(半導体集積回路)を実装したカード媒体であるICカードは,財布や鞄の中に入れられ,物理的に過酷な環境で取り扱われることが多いため,ICカードに実装したICチップが故障してしまう危険性がある。そのため,ICカードでは,ICチップに集積された回路の動作を確認する自己診断を起動時に実施することが一般的になっている。 IC cards, which are card media mounted with IC chips (semiconductor integrated circuits), are often placed in wallets or bags and handled in physically harsh environments, so the IC chips mounted on the IC cards may malfunction. There is a risk of doing so. Therefore, it has become common for IC cards to perform a self-diagnosis at startup to check the operation of the circuits integrated in the IC chip.

ICカードの起動時にすべての自己診断を完了できればよいが,近年ではICカードの多機能化が進み,ICチップに集積させる機能数やメモリ容量が増加する傾向にある。ICチップに集積させる機能数が増加すると,ICチップの自己診断に要する時間も長くなるため,起動時間に制約が設けられているICカードでは,自己診断に係る処理を起動時にすべて完了できないことがある。 It is sufficient if all self-diagnosis can be completed when the IC card is started, but in recent years, IC cards have become more multifunctional, and the number of functions integrated into the IC chip and the memory capacity tend to increase. As the number of functions integrated into an IC chip increases, the time required for the IC chip's self-diagnosis also increases, so with IC cards that have startup time constraints, it may not be possible to complete all self-diagnosis processing at startup. be.

この問題を解決するため,特許文献1で開示されたICカードは,効率良く自己診断を行えるように,起動時に加えて,上位装置からのコマンドの受信待ち状態のときに自己診断を行えるように構成されている。 To solve this problem, the IC card disclosed in Patent Document 1 is designed to be able to perform self-diagnosis not only at startup but also while waiting to receive commands from a host device, in order to efficiently perform self-diagnosis. It is configured.

特開2014-59731号公報Japanese Patent Application Publication No. 2014-59731

一方,近年では一枚のICカードに複数のアプリケーションを実装することが一般的になっている。アプリケーションが使用するICチップの機能は,アプリケーションごとに異なるため,アプリケーションによっては,アプリケーションごとに自己診断の実施内容を管理できた方が,自己診断の時間を短縮できると考えらえる。 On the other hand, in recent years, it has become common to implement multiple applications on a single IC card. Since the functions of IC chips used by applications differ depending on the application, it may be possible to reduce the time required for self-diagnosis if the content of self-diagnosis can be managed for each application.

そこで,本発明では,アプリケーションごとに自己診断の実施内容を管理できるICカードおよび方法を提案する。 Therefore, the present invention proposes an IC card and method that can manage the content of self-diagnosis for each application.

上述した課題を解決する第1発明は,NVMに記憶されたアプリケーションの選択に用いられるセレクトコマンドのコマンドメッセージを受信すると起動し,すべての前記アプリケーションで共通使用されるICチップ機能以外で,前記アプリケーションが使用するICチップ機能を前記アプリケーションごとに記した自己診断管理テーブルを参照し,前記セレクトコマンドで示される前記アプリケーションが使用するICチップ機能のみを自己診断する自己診断管理モジュールを備えたことを特徴とするICカードである。 A first invention for solving the above-mentioned problems is activated upon receiving a command message of a select command used for selecting an application stored in NVM, and is activated when a command message of a select command used for selecting an application stored in NVM is received, and the application The present invention is characterized by comprising a self-diagnosis management module that self-diagnoses only the IC chip functions used by the application indicated by the select command by referring to a self-diagnosis management table in which IC chip functions used by the application are recorded for each application. This is an IC card.

上述した課題を解決する第2発明は,NVMに記憶されたアプリケーションの選択に用いられるセレクトコマンドのコマンドメッセージを受信すると起動し,すべての前記アプリケーションで共通使用されるICチップ機能以外で,前記アプリケーションが使用するICチップ機能を前記アプリケーションごとに記した自己診断管理テーブルを参照し,前記セレクトコマンドで示される前記アプリケーションが使用するICチップ機能のみを自己診断する自己診断管理モジュールをメモリに実装したICカード用ICチップである。 A second invention for solving the above-mentioned problem is activated upon receiving a command message of a select command used for selecting an application stored in NVM, and is activated when a command message of a select command used for selecting an application stored in NVM is received, and the application The IC is equipped with a self-diagnosis management module in its memory that refers to a self-diagnosis management table in which the IC chip functions used by the application are recorded for each application, and self-diagnoses only the IC chip functions used by the application indicated by the select command. This is an IC chip for cards.

上述した課題を解決する第3発明は,ICカードが,NVMに記憶されたアプリケーションの選択に用いられるセレクトコマンドのコマンドメッセージを受信するステップと,前記ICカードが,すべての前記アプリケーションで共通使用されるICチップ機能以外で,前記アプリケーションが使用するICチップ機能を前記アプリケーションごとに記した自己診断管理テーブルを参照し,前記セレクトコマンドで示される前記アプリケーションが使用するICチップ機能を自己診断するステップを順に実行することを特徴とするICカードの自己診断方法である。 A third invention for solving the above-mentioned problems includes a step in which an IC card receives a command message of a select command used to select an application stored in NVM, and a step in which the IC card is used in common by all the applications. a step of self-diagnosing the IC chip functions used by the application indicated by the select command by referring to a self-diagnosis management table in which the IC chip functions used by the application other than the IC chip functions used by the application are recorded for each application; This is a self-diagnosis method for an IC card, which is characterized in that it is executed in sequence.

上述した本発明は,アプリケーションごとに自己診断の実施内容を管理できるように,すべてのアプリケーションで共通使用されるICチップ機能以外に,アプリケーションが使用するICチップ機能をアプリケーションごとに記した自己診断管理テーブルに基づいて,セレクトコマンドで示されるアプリケーションが使用するICチップ機能のみを自己診断するように構成されている。 The present invention described above provides self-diagnosis management in which the IC chip functions used by applications are described for each application in addition to the IC chip functions commonly used by all applications, so that the contents of self-diagnosis can be managed for each application. Based on the table, it is configured to self-diagnose only the IC chip functions used by the application indicated by the select command.

本実施形態に係るICカードの概略構成図。FIG. 1 is a schematic configuration diagram of an IC card according to the present embodiment. ICチップの概略構成図。A schematic configuration diagram of an IC chip. 自己診断管理テーブルを説明する図。FIG. 3 is a diagram illustrating a self-diagnosis management table. 自己診断管理モジュールの動作を説明する図。FIG. 3 is a diagram illustrating the operation of a self-diagnosis management module.

ここから,本発明に係る実施形態について記載する。本実施形態は,本発明の理解を容易にするためのものであり,本発明は,本実施形態に限定されるものではない。また,特に断りのない限り,図面は,本発明の理解を容易にするために描かれた模式的な図である。 From here, embodiments according to the present invention will be described. This embodiment is provided to facilitate understanding of the present invention, and the present invention is not limited to this embodiment. Further, unless otherwise specified, the drawings are schematic diagrams drawn to facilitate understanding of the present invention.

図1は,本実施形態に係るICカード1の概略構成図で,図2は,ICチップ2の概略構成図である。図1において,本実施形態に係るICカード1は,接触および非接触の二つのインターフェースを有するデュアルインターフェース型のカードである。ICカード1は,接触通信で用いる接触パッド211を表面に実装し,非接触通信で用いるアンテナコイル212を内部に実装する。図1で図示したICカード1において,ICカード1が備えるICチップ2は,接触パッド211の裏面に実装されている。 FIG. 1 is a schematic configuration diagram of an IC card 1 according to this embodiment, and FIG. 2 is a schematic configuration diagram of an IC chip 2. In FIG. 1, an IC card 1 according to the present embodiment is a dual interface card having two interfaces: contact and non-contact. The IC card 1 has a contact pad 211 used for contact communication mounted on its surface, and an antenna coil 212 used for non-contact communication mounted inside. In the IC card 1 illustrated in FIG. 1, the IC chip 2 included in the IC card 1 is mounted on the back surface of the contact pad 211.

図1で示したように,ICカード1は,ハードウェアとなるICチップ2と,ICチップ2の上で直接動作するオペレーティングシステム3と,オペレーティングシステム3を基盤として動作する少なくとも一つ(ここでは,二つ)のアプリケーション4から構成される。 As shown in FIG. 1, the IC card 1 includes an IC chip 2 serving as hardware, an operating system 3 that operates directly on the IC chip 2, and at least one operating system based on the operating system 3 (here, , two) applications 4.

ICカード1に実装したICチップ2には様々な機能が集積される。図2で図示したように,本実施形態において,ICチップ2には,データの保存に用いるメモリ機能以外のICチップ2機能として,中央演算処理装置であるCPU200(Central Processing Unit)と,特定の暗号演算処理を行う機能であるコプロセッサー204(Co-processor)と,巡回冗長検査に係る誤り符号の演算処理を行う機能であるCRC演算回路206(CRC: Cyclic Redundancy Check)がバス210に接続している。更に,ICチップ2には,ICチップ機能として,接触パッド211のI/O端子と接続し接触通信に係る処理を実行する機能であるUART205(Universal Asynchronous Receiver/Transmitter)と,アンテナコイル212と接続し非接触通信に係る処理を実行する機能であるRFI209(RFI: Radio Frequency Interface)がバス210に接続している。更に,ICチップ2には,ICチップ機能として,疑似乱数を生成する回路である乱数生成器 207(RNG: Random Number Generator)と,時間を計測する回路であるタイマー208(Timer)がバス210に接続している。 Various functions are integrated into the IC chip 2 mounted on the IC card 1. As illustrated in FIG. 2, in this embodiment, the IC chip 2 has a CPU 200 (Central Processing Unit), which is a central processing unit, and a specific function other than the memory function used for data storage. A co-processor 204 (Co-processor), which has a function of performing cryptographic calculation processing, and a CRC calculation circuit (CRC) 206 (CRC), which has a function of performing calculation processing of error codes related to cyclic redundancy check, are connected to the bus 210. ing. Furthermore, the IC chip 2 has a UART 205 (Universal Asynchronous Receiver/Transmitter) that connects to the I/O terminal of the contact pad 211 and executes processing related to contact communication, and is connected to the antenna coil 212 as an IC chip function. An RFI (Radio Frequency Interface) 209 (RFI), which has a function of executing processing related to contactless communication, is connected to the bus 210 . Furthermore, the IC chip 2 has a random number generator 207 (RNG), which is a circuit that generates pseudo-random numbers, and a timer 208 (Timer), which is a circuit that measures time, as IC chip functions, and is connected to the bus 210. Connected.

更に,図2では,ICチップ2には,データの保存に用いるメモリ機能として,読み出しのみが可能なメモリであるROM201(ROM: Read Only Memory)と,揮発性メモリであるRAM202(RAM: Random Access Memory)と,電気的に書き換え可能な不揮発性メモリであるNVM203(NVM: Non-volatile memory)が集積されている。RAM202には,オペレーティングシステム3やアプリケーション4が一時的に記憶するデータが記憶される。ROM201には,オペレーティングシステム3のプログラムコードなどが記憶される。NVM203には,オペレーティングシステム3のデータや,アプリケーション4のプログラムコードとデータが記憶される。 Furthermore, in FIG. 2, the IC chip 2 has a ROM 201 (ROM: Read Only Memory), which is a memory that can only be read, and a RAM 202 (RAM: Random Access Memory), which is a volatile memory, as memory functions used for storing data. Memory) and NVM203 (NVM: Non-volatile memory), which is electrically rewritable non-volatile memory, are integrated. The RAM 202 stores data temporarily stored by the operating system 3 and applications 4. The ROM 201 stores program codes for the operating system 3 and the like. The NVM 203 stores data of the operating system 3 and program codes and data of the application 4.

オペレーティングシステム3は,ICカード1の基本機能と,アプリケーション4が利用する機能をアプリケーション4に提供するコンピュータプログラムである。本実施形態において,オペレーティングシステム3は,ICカード1の基本機能として,アプリケーション4などの選択に用いるコマンドであるセレクトコマンド30(Select Command)と,ICチップ機能の自己診断を行うコンピュータプログラムである自己診断管理モジュール31(Self-Test Management Module)を備える。 The operating system 3 is a computer program that provides the basic functions of the IC card 1 and the functions used by the application 4 to the application 4. In this embodiment, the operating system 3 has two basic functions of the IC card 1: a select command 30, which is a command used to select an application 4, etc., and a select command, which is a computer program that performs self-diagnosis of the IC chip function. A diagnosis management module 31 (Self-Test Management Module) is provided.

セレクトコマンド30は,セレクトコマンド30のコマンドメッセージで示されるアプリケーション4を起動させるコマンドである。オペレーティングシステム3は,セレクトコマンド30により選択可能なアプリケーション4を示すアプリケーションテーブル32を有し,このアプリケーションテーブル32には,アプリケーション識別子(AID: Application Identifier)とアプリケーション4を記憶したNVM203の領域が少なくともアプリケーション4ごとに記載されている。 The select command 30 is a command for starting the application 4 indicated by the command message of the select command 30. The operating system 3 has an application table 32 that shows applications 4 that can be selected by a select command 30, and this application table 32 includes at least an area of the NVM 203 that stores application identifiers (AIDs) and applications 4. It is listed every 4.

一般的に,ICチップ2が有するICチップ機能に係る自己診断はICカード1が起動したときに実行される。しかし,ICカード1に複数のアプリケーション4を実装する場合,アプリケーション4で使用するICチップ機能はアプリケーション4ごとに異なることがあるため,本実施形態に係るICカード1は,アプリケーション4ごとに自己診断の実施内容を管理できるように構成されている。 Generally, self-diagnosis regarding the IC chip functions of the IC chip 2 is executed when the IC card 1 is activated. However, when a plurality of applications 4 are installed on the IC card 1, the IC chip functions used by the applications 4 may differ for each application 4. The system is structured so that the content of implementation can be managed.

アプリケーション4ごとに自己診断の実施内容を管理できるように,本実施形態に係る自己診断管理モジュール31は,すべてのアプリケーション4で共通使用されるICチップ機能以外で,アプリケーション4が使用するICチップ機能をアプリケーション4ごとに記した自己診断管理テーブル310と,ICチップ機能の自己診断を行う機能別診断モジュール311をこのICチップ機能ごとに備える。 In order to manage the implementation content of self-diagnosis for each application 4, the self-diagnosis management module 31 according to the present embodiment has IC chip functions used by the application 4, in addition to the IC chip functions commonly used by all applications 4. A self-diagnosis management table 310 is provided for each application 4, and a function-specific diagnosis module 311 for performing self-diagnosis of the IC chip function is provided for each IC chip function.

図3は,自己診断管理テーブル310を説明する図である。図3で図示したように,自己診断管理テーブル310は,すべてのアプリケーション4で共通使用されるICチップ機能以外で,アプリケーション4が使用するICチップ機能をアプリケーション4ごとに記したテーブルである。図3では,行はアプリケーション4で,列はICチップ機能になっている。 FIG. 3 is a diagram illustrating the self-diagnosis management table 310. As illustrated in FIG. 3, the self-diagnosis management table 310 is a table in which IC chip functions used by the applications 4 are written for each application 4, other than the IC chip functions commonly used by all the applications 4. In FIG. 3, the row is application 4 and the column is IC chip function.

自己診断管理テーブル310の列に対応するICチップ機能は,すべてのアプリケーション4で共通使用されるICチップ機能以外のICチップ機能になる。図2で図示したICチップ機能において,CPU200およびメモリ機能(ROM201,RAM202,NVM203)は,すべてのアプリケーション4が共通使用するICチップ機能になるため,図3で図示した自己診断管理テーブル310には,これらに対応する列は設けられていない。 The IC chip functions corresponding to the columns of the self-diagnosis management table 310 are IC chip functions other than those commonly used by all applications 4. In the IC chip functions illustrated in FIG. 2, the CPU 200 and memory functions (ROM 201, RAM 202, NVM 203) are IC chip functions commonly used by all applications 4, so the self-diagnosis management table 310 illustrated in FIG. , no columns corresponding to these are provided.

図3では,アプリケーション4が使用するICチップ機能に「1」を,アプリケーション4が使用しないICチップ機能に「0」を付けている。例えば,アプリケーション4Aに対応する行において,「1」になっている列に対応するICチップ機能が,アプリケーション4Aが使用するICチップ機能になる。図3によれば,接触で動作するアプリケーション4Aが使用するICチップ機能は,タイマー208とUART205になる。また,非接触で動作するアプリケーション4Bが使用するICチップ機能は,コプロセッサー204,CRC演算回路206,RFI209,乱数生成器207およびタイマー208になる。 In FIG. 3, "1" is assigned to the IC chip functions used by the application 4, and "0" is assigned to the IC chip functions not used by the application 4. For example, in the row corresponding to application 4A, the IC chip function corresponding to the column with "1" is the IC chip function used by application 4A. According to FIG. 3, the IC chip functions used by the application 4A that operates on contact are a timer 208 and a UART 205. Further, the IC chip functions used by the application 4B that operates without contact are a coprocessor 204, a CRC calculation circuit 206, an RFI 209, a random number generator 207, and a timer 208.

機能別診断モジュール311は,ICチップ機能の単位で自己診断を行うモジュールで,自己診断を行う内容はICチップ機能ごとに異なる。機能別診断モジュール311は,BIST (Built-In Self-Test)に代表される自己診断専用のハードウェアモジュールでもよく,または,ICチップ機能を自己診断するためのソフトウェアモジュールでもよい。 The functional diagnostic module 311 is a module that performs self-diagnosis in units of IC chip functions, and the content of self-diagnosis differs depending on the IC chip function. The functional diagnostic module 311 may be a hardware module dedicated to self-diagnosis, such as BIST (Built-In Self-Test), or a software module for self-diagnosing IC chip functions.

図4は,自己診断管理モジュール31の動作を説明する図である。図4を参照する説明は,発明に係る自己診断方法の説明を兼ねている。 FIG. 4 is a diagram illustrating the operation of the self-diagnosis management module 31. The explanation with reference to FIG. 4 also serves as an explanation of the self-diagnosis method according to the invention.

ICカード1のオペレーティングシステム3が,アプリケーション4を選択するセレクトコマンド30のコマンドメッセージを上位装置から受信すると(ステップS1),自己診断管理モジュール31が起動する(ステップS2)。 When the operating system 3 of the IC card 1 receives the command message of the select command 30 for selecting the application 4 from the host device (step S1), the self-diagnosis management module 31 is activated (step S2).

ICカード1で起動した自己診断管理モジュール31は,まず,セレクトコマンド30で示されたアプリケーション4に対応するNVM203の領域を自己診断する(ステップS3)。アプリケーション4に対応するNVM203の領域は,アプリケーションテーブル32に記載されており,この自己診断には,アプリケーション4に対応するNVM203の領域に記憶された誤り符号が利用される。なお,セレクトコマンド30のコマンドメッセージを受信したときに,アプリケーション4に対応するNVM203の領域を自己診断するのは,アプリケーション4に対応するNVM203の領域はアプリケーション4ごとに異なるからである。 The self-diagnosis management module 31 activated by the IC card 1 first self-diagnoses the area of the NVM 203 corresponding to the application 4 indicated by the select command 30 (step S3). The area of NVM 203 corresponding to application 4 is listed in the application table 32, and the error code stored in the area of NVM 203 corresponding to application 4 is used for this self-diagnosis. The reason why the area of the NVM 203 corresponding to the application 4 is self-diagnosed when the command message of the select command 30 is received is that the area of the NVM 203 corresponding to the application 4 is different for each application 4.

自己診断管理モジュール31は,セレクトコマンド30で示されたアプリケーション4に対応するNVM203の領域に係る自己診断結果を確認する(ステップS4)。この自己診断結果が異常の場合,自己診断管理テーブル310に記載されたICチップ機能ごとに繰り返し実行する機能別自己診断処理(ステップS5)を実行することなく,自己診断異常時の処理(ステップS9)を実行して,図4の手順は終了する。 The self-diagnosis management module 31 checks the self-diagnosis result regarding the area of the NVM 203 corresponding to the application 4 indicated by the select command 30 (step S4). If this self-diagnosis result is abnormal, the self-diagnosis abnormality process (step S9) is performed without executing the function-specific self-diagnosis process (step S5) that is repeatedly executed for each IC chip function listed in the self-diagnosis management table 310. ) is executed, and the procedure in FIG. 4 ends.

セレクトコマンド30で示されたアプリケーション4に対応するNVM203の領域に係る自己診断結果が正常であれば,自己診断管理モジュール31は,自己診断管理テーブル310に記載されたICチップ機能ごとに繰り返し実行する機能別自己診断処理を実行する(ステップS5)。 If the self-diagnosis result regarding the area of the NVM 203 corresponding to the application 4 indicated by the select command 30 is normal, the self-diagnosis management module 31 repeatedly executes each IC chip function listed in the self-diagnosis management table 310. Functional self-diagnosis processing is executed (step S5).

(ステップS5)の機能別自己診断処理において,自己診断管理モジュール31は,機能別自己診断処理の対象になるICチップ機能が,セレクトコマンド30で示されたアプリケーション4の自己診断対象になっているか確認する(ステップS6)。これは,自己診断管理テーブル310において,セレクトコマンド30で示されたアプリケーション4に対応する行と機能別自己診断処理の対象になるICチップ機能に対応する列で特定される箇所の値が「1」になっているか否かで確認できる。 In the function-specific self-diagnosis process (step S5), the self-diagnosis management module 31 determines whether the IC chip function targeted for the function-specific self-diagnosis process is the self-diagnosis target of the application 4 indicated by the select command 30. Confirm (step S6). This means that in the self-diagnosis management table 310, the value specified in the row corresponding to application 4 indicated by the select command 30 and the column corresponding to the IC chip function targeted for the self-diagnosis process by function is "1". You can check whether it is.

機能別自己診断処理の対象になるICチップ機能が,セレクトコマンド30で示されたアプリケーション4の自己診断対象になっていない場合,自己診断管理モジュール31は,機能別自己診断処理の対象になるICチップ機能に係る自己診断を終了する。 If the IC chip function that is the target of the functional self-diagnosis process is not the self-diagnostic target of the application 4 indicated by the select command 30, the self-diagnosis management module 31 selects the IC chip function that is the target of the functional self-diagnostic process. Ends self-diagnosis related to chip functions.

図4の(ステップS6)において,機能別自己診断処理の対象になるICチッ機能が,セレクトコマンド30で示されたアプリケーション4の自己診断対象になっている場合,自己診断管理モジュール31は,機能別自己診断処理の対象になるICチップ機能に対応する機能別診断モジュール311を作動させ,機能別自己診断処理の対象になるICチップ機能を自己診断する(ステップS7)。 In FIG. 4 (step S6), if the IC check function that is the target of the function-specific self-diagnosis process is the self-diagnosis target of the application 4 indicated by the select command 30, the self-diagnosis management module 31 The functional diagnostic module 311 corresponding to the IC chip function to be subjected to separate self-diagnosis processing is activated to self-diagnose the IC chip function to be subjected to functional self-diagnosis processing (step S7).

次に,自己診断管理モジュール31は,機能別診断モジュール311が実行したICチップ機能の自己診断結果を確認する(ステップS8)。自己診断結果が正常の場合,自己診断管理モジュール31は,機能別自己診断処理の対象になるICチップ機能に係る自己診断を終了する。 Next, the self-diagnosis management module 31 checks the self-diagnosis result of the IC chip function executed by the functional diagnosis module 311 (step S8). If the self-diagnosis result is normal, the self-diagnosis management module 31 ends the self-diagnosis related to the IC chip function that is the target of the functional self-diagnosis process.

自己診断結果が異常の場合,自己診断管理モジュール31は,機能別自己診断処理(S5)の対象にしていないICチップ機能が自己診断管理テーブル310にあるかないかに係わらず,ループ処理である機能別自己診断処理を抜けて,自己診断異常時の処理(ステップS9)を実行し,図4の手順は終了する。自己診断異常時の処理の内容は任意である。自己診断異常時の処理として,ICチップ機能の異常を示すセレクトコマンド30のレスポンスAPDUを返信してもよく,これ以降の処理を実行しない状態にICチップ2を遷移させてもよい。 If the self-diagnosis result is abnormal, the self-diagnosis management module 31 performs the function-specific self-diagnosis process (S5), which is a loop process, regardless of whether or not there is an IC chip function that is not subject to the function-specific self-diagnosis process (S5) in the self-diagnosis management table 310. The self-diagnosis processing is exited, and the self-diagnosis abnormality processing (step S9) is executed, and the procedure of FIG. 4 ends. The content of the process when a self-diagnosis abnormality occurs is arbitrary. As a process when the self-diagnosis is abnormal, a response APDU of the select command 30 indicating an abnormality in the IC chip function may be returned, or the IC chip 2 may be transitioned to a state in which no further processing is executed.

機能別自己診断処理の対象になるICチップ機能の自己診断を終了すると,自己診断管理モジュール31は,機能別自己診断処理の対象にしていないICチップ機能が自己診断管理テーブル310にあるか確認し,ある場合は,機能別自己診断処理の対象にしていないICチップ機能の一つを次の機能別自己診断処理の対象にする。また,機能別自己診断処理の対象にしていないICチップ機能が自己診断管理テーブル310にない場合,機能別自己診断処理は終了し,図4の手順は終了する。 When the self-diagnosis of the IC chip function that is the target of the function-specific self-diagnosis process is completed, the self-diagnosis management module 31 checks whether there is an IC chip function that is not the target of the function-specific self-diagnosis process in the self-diagnosis management table 310. , in some cases, one of the IC chip functions that has not been subjected to the functional self-diagnosis processing is made the next functional self-diagnosis processing target. Furthermore, if the self-diagnosis management table 310 does not include any IC chip functions that are not subject to the functional self-diagnosis processing, the functional self-diagnosis processing ends, and the procedure of FIG. 4 ends.

アプリケーション4が使用するICチップ機能やアプリケーション4の容量が大きい場合,ICカード1の規格で定められたレスポンスの待ち時間より図4で図示した処理に要する時間が長くなることがある。しかし,セレクトコマンド30のコマンドメッセージを受信したときに機能別自己診断処理などを行うことで,レスポンスの待ち時間より図4で図示した処理に要する時間が長くても,時間延長要求(例えば,ISO7816などで定義されているS(WTX要求)ブロック)を利用すれば,自己診断に係る処理を完了させることができる。 If the IC chip function used by the application 4 or the capacity of the application 4 is large, the time required for the processing illustrated in FIG. 4 may be longer than the response waiting time specified by the IC card 1 standard. However, by performing function-specific self-diagnosis processing when receiving the command message of the select command 30, even if the time required for the processing illustrated in FIG. 4 is longer than the response waiting time, the time extension request (for example, By using the S (WTX request) block defined in, for example, the process related to self-diagnosis can be completed.

なお,すべてのアプリケーション4で共通使用されるICチップ機能は,自己診断管理テーブル310を参照せずに自己診断される。例えば,セレクトコマンド30のコマンドメッセージを受信したときではなく,CPU200とメモリ機能の一部(ROM201とRAM202)は,ICカード1の起動時に自己診断するとよい。 Note that the IC chip functions commonly used by all applications 4 are self-diagnosed without referring to the self-diagnosis management table 310. For example, the CPU 200 and some of the memory functions (ROM 201 and RAM 202) may self-diagnose when the IC card 1 is started, rather than when the command message of the select command 30 is received.

また,本発明は,デュアルインターフェース型のカード以外(例えば,接触型のカード)にも適用できる。 Furthermore, the present invention can be applied to cards other than dual interface cards (for example, contact cards).

1 ICカード
2 ICチップ
3 オペレーティングシステム
30 セレクトコマンド
31 自己診断管理モジュール
310 自己診断管理テーブル
311 機能別診断モジュール
32 アプリケーションテーブル
4 アプリケーション
1 IC card 2 IC chip 3 Operating system 30 Select command 31 Self-diagnosis management module 310 Self-diagnosis management table 311 Diagnosis module by function 32 Application table 4 Application

Claims (3)

NVMに記憶されたアプリケーションの選択に用いられるセレクトコマンドのコマンドメッセージを受信すると起動し,すべての前記アプリケーションで共通使用されるICチップ機能以外で,前記アプリケーションが使用するICチップ機能を前記アプリケーションごとに記した自己診断管理テーブルを参照し,前記セレクトコマンドで示される前記アプリケーションが使用するICチップ機能のみを自己診断する自己診断管理モジュールを備えたことを特徴とするICカード。 It is activated when a command message of a select command used to select an application stored in NVM is received, and the IC chip function used by the application is specified for each application, except for the IC chip function commonly used by all the applications. An IC card comprising: a self-diagnosis management module that self-diagnoses only the IC chip functions used by the application indicated by the select command by referring to the self-diagnosis management table described above. NVMに記憶されたアプリケーションの選択に用いられるセレクトコマンドのコマンドメッセージを受信すると起動し,すべての前記アプリケーションで共通使用されるICチップ機能以外で,前記アプリケーションが使用するICチップ機能を前記アプリケーションごとに記した自己診断管理テーブルを参照し,前記セレクトコマンドで示される前記アプリケーションが使用するICチップ機能のみを自己診断する自己診断管理モジュールをメモリに実装したICカード用ICチップ。 It is activated when a command message of a select command used to select an application stored in NVM is received, and the IC chip function used by the application is specified for each application, except for the IC chip function commonly used by all the applications. An IC chip for an IC card, in which a self-diagnosis management module is mounted in a memory, which self-diagnoses only the IC chip functions used by the application indicated by the select command by referring to the self-diagnosis management table described above. ICカードが,NVMに記憶されたアプリケーションの選択に用いられるセレクトコマンドのコマンドメッセージを受信するステップと,前記ICカードが,すべての前記アプリケーションで共通使用されるICチップ機能以外で,前記アプリケーションが使用するICチップ機能を前記アプリケーションごとに記した自己診断管理テーブルを参照し,前記セレクトコマンドで示される前記アプリケーションが使用するICチップ機能を自己診断するステップを順に実行することを特徴とするICカードの自己診断方法。
a step in which the IC card receives a command message of a select command used to select an application stored in NVM; The IC card is characterized in that it refers to a self-diagnosis management table in which the IC chip functions to be used are recorded for each application, and sequentially executes steps for self-diagnosing the IC chip functions used by the application indicated by the select command. Self-diagnosis method.
JP2020028719A 2020-02-21 2020-02-21 IC card with self-diagnosis function and IC card self-diagnosis method Active JP7400528B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020028719A JP7400528B2 (en) 2020-02-21 2020-02-21 IC card with self-diagnosis function and IC card self-diagnosis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020028719A JP7400528B2 (en) 2020-02-21 2020-02-21 IC card with self-diagnosis function and IC card self-diagnosis method

Publications (2)

Publication Number Publication Date
JP2021135539A JP2021135539A (en) 2021-09-13
JP7400528B2 true JP7400528B2 (en) 2023-12-19

Family

ID=77661172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020028719A Active JP7400528B2 (en) 2020-02-21 2020-02-21 IC card with self-diagnosis function and IC card self-diagnosis method

Country Status (1)

Country Link
JP (1) JP7400528B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003022425A (en) 2001-07-09 2003-01-24 Dainippon Printing Co Ltd IC card self-diagnosis device and diagnosis method
JP2003331236A (en) 2002-05-08 2003-11-21 Toshiba Corp Portable electronic devices
JP2006252284A (en) 2005-03-11 2006-09-21 Toshiba Corp Portable electronic device and IC card
JP2008310597A (en) 2007-06-14 2008-12-25 Toshiba Corp Portable electronic device and method for controlling portable electronic device
JP2009187474A (en) 2008-02-08 2009-08-20 Toppan Printing Co Ltd Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program
JP2014059731A (en) 2012-09-18 2014-04-03 Toshiba Corp Ic card and mobile electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3014538B2 (en) * 1992-04-30 2000-02-28 株式会社エヌ・ティ・ティ・データ IC card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003022425A (en) 2001-07-09 2003-01-24 Dainippon Printing Co Ltd IC card self-diagnosis device and diagnosis method
JP2003331236A (en) 2002-05-08 2003-11-21 Toshiba Corp Portable electronic devices
JP2006252284A (en) 2005-03-11 2006-09-21 Toshiba Corp Portable electronic device and IC card
JP2008310597A (en) 2007-06-14 2008-12-25 Toshiba Corp Portable electronic device and method for controlling portable electronic device
JP2009187474A (en) 2008-02-08 2009-08-20 Toppan Printing Co Ltd Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program
JP2014059731A (en) 2012-09-18 2014-04-03 Toshiba Corp Ic card and mobile electronic device

Also Published As

Publication number Publication date
JP2021135539A (en) 2021-09-13

Similar Documents

Publication Publication Date Title
US9418224B2 (en) Portable electronic device and control method of portable electronic device
JPS63225886A (en) Ic card
KR940007351B1 (en) Portable electronic equipement
JP3590338B2 (en) Portable electronic devices
JP2003242452A (en) Self-diagnosis method for ic card reader
JP7400528B2 (en) IC card with self-diagnosis function and IC card self-diagnosis method
US20120234926A1 (en) Portable electronic apparatus
EP3023925B1 (en) Secure element with applications
EP1384197B1 (en) Method of manufacturing smart cards
JPH0855200A (en) IC card
JP4764034B2 (en) Portable electronic device, IC card and portable electronic device self-diagnosis method
JP7438432B1 (en) Electronic information storage medium, IC chip, IC card, record writing method, and program
CN101533373B (en) data access system
US7730115B2 (en) System, microcontroller and methods thereof
JP4784138B2 (en) IC card and IC card program
JP7420179B1 (en) Electronic information storage medium, IC card, issuance processing method, and program
JP5367236B2 (en) Portable electronic device and IC card
JP7468757B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RESPONSE TRANSMISSION METHOD, AND PROGRAM
JP7600322B1 (en) IC Card
JP7322923B2 (en) Secure element, transaction control method and device
JP2003288215A (en) Information processing equipment
JP2016126441A (en) Portable electronic device
JP2005301657A (en) IC card storing a plurality of command tables in rewritable memory and command execution method
JP4774681B2 (en) Multi-application IC card with common command application
JP2025091715A (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, ERROR CODE RESPONSE METHOD, AND PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231018

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231120

R150 Certificate of patent or registration of utility model

Ref document number: 7400528

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150