JP2005332083A - Multi-application type ic card mounted with common command application - Google Patents

Multi-application type ic card mounted with common command application Download PDF

Info

Publication number
JP2005332083A
JP2005332083A JP2004148242A JP2004148242A JP2005332083A JP 2005332083 A JP2005332083 A JP 2005332083A JP 2004148242 A JP2004148242 A JP 2004148242A JP 2004148242 A JP2004148242 A JP 2004148242A JP 2005332083 A JP2005332083 A JP 2005332083A
Authority
JP
Japan
Prior art keywords
application
command
common command
common
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.)
Granted
Application number
JP2004148242A
Other languages
Japanese (ja)
Other versions
JP4774681B2 (en
Inventor
Akira Shibuya
彰 渋谷
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 JP2004148242A priority Critical patent/JP4774681B2/en
Publication of JP2005332083A publication Critical patent/JP2005332083A/en
Application granted granted Critical
Publication of JP4774681B2 publication Critical patent/JP4774681B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a multi-application type IC card for efficiently using a rewritable memory. <P>SOLUTION: An EEPROM 13 of a multi-application type IC card is mounted with a common command application 40 in which an application 30 can be used in common. A command executing means 21 entrusts the common command application 40 with the processing of a command received from an external device outside a figure, and entrusts the application 30 with the processing when the processing is not executable by the common application 40. Therefore, it is possible to efficiently use a writable memory by providing the common application 40. Also, a common command application erasing means 22 is provided with a function which does not erase the common command application 40 when the common application 40 is being currently used. Thus, the common application 40 can be prevented from being erased by mistake. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、クレジットカードサイズのプラスチックカードに半導体集積回路(以下、ICチップと記す)を埋め込んだICカードに関し、特に書き換え可能なメモリに複数のアプリケーションを実装できるマルチアプリケーション型ICカードに関する。   The present invention relates to an IC card in which a semiconductor integrated circuit (hereinafter referred to as an IC chip) is embedded in a credit card-sized plastic card, and more particularly to a multi-application type IC card capable of mounting a plurality of applications in a rewritable memory.

ICカードとは、クレジットカードサイズのプラスチックカードにICチップを埋め込み、前記ICチップのメモリにデータを記録するカードである。近年、ICカードはキャッシュカード、クレジットカードまたは電子マネーなどに幅広く応用されている。   An IC card is a card in which an IC chip is embedded in a credit card-sized plastic card and data is recorded in the memory of the IC chip. In recent years, IC cards have been widely applied to cash cards, credit cards, electronic money, and the like.

従来、ICカードには用途ごとに単一のソフトウェアすなわちアプリケーションを読み出し専用メモリ(Read Only Memory 、以下ROMと記す)に実装することが主流であったため、一枚のICカードは単一の機能しか持たず、用途ごとにICカードが必要であった。このため、利用者側は複数枚のICカードを常に所持する必要があり大変不便であった。この問題を解消すべく、現在は一枚のICカードに複数のアプリケーションを組み込むことができるマルチアプリケーション型ICカードが主流になりつつある。   Conventionally, it has been the mainstream to install a single software, that is, an application in a read only memory (hereinafter referred to as ROM) for each IC card, so a single IC card has only a single function. IC card was necessary for each application. For this reason, the user must always have a plurality of IC cards, which is very inconvenient. In order to solve this problem, multi-application type IC cards capable of incorporating a plurality of applications in one IC card are now becoming mainstream.

マルチアプリケーション型ICカードとは、複数のアプリケーションを書き換え可能なメモリに実装することができるICカードで、ICチップが備えているROMに基本処理を行うマルチアプリケーションオペレーティングシステム(Operating System、以下OSと記す)を実装し、同じくICチップが備えている電気的に消去・書き換えができるROM(Electrically Erasable Programmable Read Only Memory、以下EEPROMと記す)等の書き換え可能なメモリに一つまたは複数のアプリケーションを実装する。   A multi-application IC card is an IC card in which a plurality of applications can be mounted in a rewritable memory. A multi-application operating system (hereinafter referred to as OS) that performs basic processing on a ROM provided in an IC chip. ), And one or more applications are mounted on an electrically erasable and rewritable ROM (Electrically Erasable Programmable Read Only Memory, hereinafter referred to as EEPROM), which is also included in the IC chip. .

書き換え可能なメモリにアプリケーションを実装することで、利用者が使用する複数のアプリケーションを一枚のICカードに実装でき、またICカード製造後のアプリケーションの追加、不必要なアプリケーションの削除が行なえ、かつアプリケーションの機能拡充も容易になる。   By mounting applications in rewritable memory, multiple applications used by users can be mounted on a single IC card, and applications can be added after IC card manufacture, unnecessary applications can be deleted, and It is also easy to expand application functions.

ただし前述のマルチアプリケーション型ICカードでは、アプリケーションが有するコマンドコードが同じ内容でも、アプリケーションのすべてのデータを書き換え可能なメモリに実装する必要があるため、同一のコマンドコードを有する複数個のアプリケーションを書き換え可能なメモリに実装した場合、複数個の同一のコマンドコードが書き換え可能なメモリに存在することになり、書き換え可能なメモリを効率良く使用できない問題があった。   However, in the above-mentioned multi-application type IC card, even if the command code of the application has the same contents, it is necessary to mount all data of the application in a rewritable memory. Therefore, multiple applications having the same command code can be rewritten. When implemented in a rewritable memory, a plurality of identical command codes exist in the rewritable memory, and there is a problem that the rewritable memory cannot be used efficiently.

この問題を解決すべく、例えば特許文献1においては、書き換え可能なメモリを、アプリケーションのコードを記憶するアプリケーションコード領域と前記アプリケーションプログラムが使用するアプリケーションデータ領域とに分割して管理することで、同じ処理を行うアプリケーションの場合は、アプリケーションプログラムコードを共通化し、データのみを個別化することで、書き換え可能なメモリを効率良く使用する発明を開示している。
特開2003−203211号公報
In order to solve this problem, for example, in Patent Document 1, a rewritable memory is divided into an application code area for storing an application code and an application data area used by the application program. In the case of an application for processing, an invention is disclosed that efficiently uses a rewritable memory by sharing application program code and individualizing only data.
JP 2003-202111 A

しかしながら、前述の従来の技術には、アプリケーション毎に個別なコマンドを実装しづらい問題がある。多くのアプリケーションの場合は、パスワードの認証・データの読み書きといった共通化できるコマンドと、ポイント等のアプリケーション毎に個別のコマンドを有していることが多く、全く同一の動作を行なう異なるアプリケーションを同じICカードに実装することは稀である。   However, the above-described conventional technique has a problem that it is difficult to implement individual commands for each application. Many applications often have commands that can be shared, such as password authentication and data reading and writing, and individual commands for each application such as point, and different applications that perform the same operation can be used in the same IC. It is rare to mount on a card.

加えて、書き換え可能なメモリに実装されている共通コマンドを使用するアプリケーションが実装されているにも関わらず、前記共通コマンドを誤って削除すると、前記共通コマンドを使用するアプリケーションが正常に動作しなくなる問題もある。   In addition, if an application that uses a common command that is implemented in a rewritable memory is installed, if the common command is deleted by mistake, the application that uses the common command will not operate normally. There is also a problem.

そこで本発明は上述の問題を鑑みて、アプリケーションで共通に使用できる共通コマンドアプリケーションを実装することで書き換え可能なメモリを効率的に使用し、更にアプリケーション毎に個別なコマンドを容易に実装でき、加えて前記共通コマンドを誤って削除することのないマルチアプリケーション型ICカードを提供することを目的とする。   Therefore, in view of the above problems, the present invention can efficiently use a rewritable memory by implementing a common command application that can be commonly used by applications, and can easily implement individual commands for each application. An object of the present invention is to provide a multi-application IC card that does not accidentally delete the common command.

上記課題を解決する第1の課題解決手段は、アプリケーションを書き換え可能なメモリに実装できるマルチアプリケーション型ICカードにおいて、アプリケーションが共通で使用するコマンドを記憶した共通コマンドアプリケーションを前記書き換え可能なメモリに実装し、外部端末から受信したコマンドの処理を前記共通コマンドアプリケーションに委任し、前記コマンドが前記共通コマンドアプリケーションで処理できなかった場合は、選択されているアプリケーションに前記コマンドの処理を委任するコマンド実行手段を備えたことを特徴とするマルチアプリケーション型ICカードである。   A first problem-solving means for solving the above-mentioned problem is to implement a common command application storing commands commonly used by applications in the rewritable memory in a multi-application type IC card capable of mounting applications in a rewritable memory. And command execution means for delegating the processing of the command received from the external terminal to the common command application, and delegating the processing of the command to the selected application when the command cannot be processed by the common command application. A multi-application type IC card.

第1の課題解決手段によれば、前記共通コマンドアプリケーションを備え、アプリケーションが前記共通コマンドアプリケーションを使用できることで、アプリケーション間で重複するコマンドは書き換え可能なメモリに一つのみ実装すればよく、書き換え可能なメモリを効率良く使用できる。また前記共通コマンドアプリケーションで処理できないコマンドは選択されているアプリケーションに処理が移行するため、アプリケーション毎に個別なコマンドを容易に設定できる。   According to the first problem solving means, since the common command application is provided and the application can use the common command application, only one command that overlaps between applications needs to be mounted in a rewritable memory and can be rewritten. Memory can be used efficiently. In addition, since commands that cannot be processed by the common command application are transferred to the selected application, individual commands can be easily set for each application.

更に第2の課題解決手段は、第1の課題解決手段に記載のマルチアプリケーション型ICカードにおいて、前記書き換え可能なメモリには複数の前記共通コマンドアプリケーションを記憶していることを特徴とするマルチアプリケーション型ICカードである。   Further, the second problem solving means is the multi-application IC card described in the first problem solving means, wherein the rewritable memory stores a plurality of the common command applications. Type IC card.

第2の課題解決手段によれば、前記書き換え可能なメモリに複数の前記共通コマンドアプリケーションを記憶することで、ICカードの用途毎に前記共通コマンドアプリケーションを設定できる。   According to the second problem solving means, by storing a plurality of the common command applications in the rewritable memory, the common command application can be set for each use of the IC card.

更に第3の課題解決手段は、第1または第2の課題解決手段に記載のマルチアプリケーション型ICカードにおいて、前記アプリケーションは、前記アプリケーションが使用する前記共通コマンドアプリケーションを示す共通コマンド情報を備え、前記コマンド実行手段は、選択されている前記アプリケーションの前記共通コマンド情報で示された前記共通コマンドアプリケーションに前記コマンドの処理を委任することを特徴とするマルチアプリケーション型ICカードである。   Further, the third problem solving means is the multi-application type IC card according to the first or second problem solving means, wherein the application includes common command information indicating the common command application used by the application, The command execution means is a multi-application type IC card that delegates processing of the command to the common command application indicated by the common command information of the selected application.

第3の課題解決手段によれば、前記共通コマンド情報を設けることで、前記アプリケーションごとに前記アプリケーションが使用する前記共通コマンドアプリケーションを設定することができる。また、前記アプリケーションごとに前記共通コマンドアプリケーションを設定できることで、複数の前記共通コマンドアプリケーションを実装した場合、前記アプリケーションが使用する前記共通コマンドアプリケーションを複数の前記共通コマンドアプリケーションの中から選択できる。   According to the third problem solving means, by providing the common command information, the common command application used by the application can be set for each application. In addition, since the common command application can be set for each application, when the plurality of common command applications are implemented, the common command application used by the application can be selected from the plurality of common command applications.

更に第4の課題解決手段は、第3の課題解決手段に記載のマルチアプリケーション型ICカードにおいて、前記マルチアプリケーション型ICカードは前記共通コマンドアプリケーションを削除する共通コマンドアプリケーション削除手段を備え、前記共通コマンドアプリケーション削除手段は、前記書き換え可能なメモリに記憶されている前記共通コマンド情報に削除する前記共通コマンドアプリケーションが示されている場合は、前記共通コマンドアプリケーションの削除を中止する機能を備えていることを特徴とするICカードである。   Further, the fourth problem solving means is the multi-application type IC card according to the third problem solving means, wherein the multi-application type IC card comprises common command application deletion means for deleting the common command application, and the common command The application deletion means has a function of canceling the deletion of the common command application when the common command application to be deleted is indicated in the common command information stored in the rewritable memory. This is an IC card.

第4の課題解決手段によれば、前記共通コマンドアプリケーション削除手段を備えることで、削除する前記共通コマンドアプリケーションを使用するアプリケーションが書き換え可能なメモリに実装されている場合には、前記共通コマンドアプリケーションは削除されない。   According to the fourth problem solving means, by providing the common command application deleting means, when the application using the common command application to be deleted is mounted in a rewritable memory, the common command application is Not deleted.

これまで述べた発明によれば、アプリケーションが共通に使用する共通コマンドアプリケーションを備えることで書き換え可能なメモリを効率的に使用し、更にアプリケーション毎に個別なコマンドを容易に実装でき、更にアプリケーションで使用する前記共通コマンドアプリケーションをアプリケーションごとに設定することができ、加えて前記共通コマンドを誤って削除することのないマルチアプリケーション型ICカードを提供できる。   According to the inventions described so far, it is possible to efficiently use a rewritable memory by providing a common command application that is used in common by the application, and further easily implement individual commands for each application, and further use in the application. The common command application to be set can be set for each application, and in addition, a multi-application IC card can be provided in which the common command is not accidentally deleted.

本発明の実施の形態を、以下に図を参照にしながら詳細に説明する   Embodiments of the present invention will be described below in detail with reference to the drawings.

まず初めに本実施の形態のマルチアプリケーション型ICカードのソフトウェアおよびデータの構造について説明する。まずマルチアプリケーション型ICカードのソフトウェアの構造およびICチップの構造について説明する。図1はマルチアプリケーション型ICカードのソフトウェアの構造を説明するための図、図2はICチップの構造を説明するため図である。   First, the software and data structure of the multi-application IC card of this embodiment will be described. First, the software structure of the multi-application IC card and the structure of the IC chip will be described. FIG. 1 is a diagram for explaining the software structure of a multi-application IC card, and FIG. 2 is a diagram for explaining the structure of an IC chip.

図1に示すようにマルチアプリケーション型ICカードのソフトウェア構造は、ICチップ10、マルチアプリケーションOS20、アプリケーション30およびアプリケーション30が共通で使用する共通コマンドを記憶した共通コマンドアプリケーション40(以下、共通コマンドAppと記す。AppはApplicationの略)からなる。   As shown in FIG. 1, the software structure of the multi-application type IC card has a common command application 40 (hereinafter referred to as a common command App) that stores a common command used in common by the IC chip 10, the multi-application OS 20, the application 30, and the application 30. App is an abbreviation of Application).

図2はICチップ10の構造図である。ICチップ10には、中央演算装置11(Central Processing Unit、以下CPUと記す)、読み出し専用メモリ12(Read Only Memory、以下ROMと記す)、書換え可能なメモリとしてEEPROM13(Electrically Erasable Programmable Read-Only Memoryの略)、揮発性メモリとしてランダムアクセスメモリ14(Random Access Memory、以下RAMと記す)および図外の外部端末とデータを通信するためのI/O回路15を少なくとも備なえている。   FIG. 2 is a structural diagram of the IC chip 10. The IC chip 10 includes a central processing unit 11 (hereinafter referred to as “CPU”), a read-only memory 12 (hereinafter referred to as “ROM”), and an EEPROM 13 (Electrically Erasable Programmable Read-Only Memory) as rewritable memory. A random access memory 14 (hereinafter referred to as RAM) as a volatile memory and an I / O circuit 15 for communicating data with an external terminal (not shown).

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

マルチアプリケーションOS20は、アプリケーション30および共通コマンドApp40をEEPROM13へ実装する機能、EEPROM13に実装したアプリケーション30の削除機能、ならびにI/O回路15を制御し図外の外部端末と通信する機能等のICカードが動作するための基本機能に加え、図外の外部端末から受信したコマンドメッセージを共通コマンドApp40を利用して処理するコマンド実行手段21と共通コマンドアプリケーションを削除する共通コマンドアプリケーション削除手段22(以下、共通コマンドApp削除手段と記す)とを備えている。一般的にマルチアプリケーションOS20はROM12に実装される。   The multi-application OS 20 is an IC card such as a function for mounting the application 30 and the common command App 40 on the EEPROM 13, a function for deleting the application 30 mounted on the EEPROM 13, and a function for controlling the I / O circuit 15 and communicating with an external terminal not shown. In addition to the basic functions for operating, a command execution means 21 for processing a command message received from an external terminal (not shown) using a common command App 40 and a common command application deletion means 22 for deleting a common command application (hereinafter, referred to as “command command means 21”). Common command App deletion means). In general, the multi-application OS 20 is mounted on the ROM 12.

なお、現在ICカード用マルチアプリケーションOS20としては、JAVA(登録商標)、Multos(登録商標)が有名であるが、本発明は何らマルチアプリケーションOSの種類を限定するものではない。   Currently, JAVA (registered trademark) and Multis (registered trademark) are well known as IC card multi-application OS 20, but the present invention does not limit the type of multi-application OS.

アプリケーション30はある用途ために設計されたソフトウェアであり、EEPROM13に利用者が必要とする一つまたは複数のアプリケーション30が実装される。なお実装されるアプリケーション30は、マルチアプリケーションOS20が対応している中間言語で記述されることが一般的である。   The application 30 is software designed for a certain use, and one or a plurality of applications 30 required by the user are mounted on the EEPROM 13. Note that the application 30 to be mounted is generally described in an intermediate language supported by the multi-application OS 20.

共通コマンドApp40は、アプリケーション30が共通で使用するコマンド(例えば、パスワード認証コマンド、データ読み書きコマンド等)を記述したアプリケーションである。共通コマンドApp40が使用するデータは、共通コマンドApp40自身がデータを有してもよく(例えば、共通コマンドがパスワード認証コマンドの場合は、共通コマンドがパスワードを有する)、またアプリケーション30のデータを利用してもよい(例えば、共通コマンドがデータ読み書きコマンドの場合は、アプリケーション30のデータを読み書きする)。   The common command App40 is an application in which commands (for example, password authentication command, data read / write command, etc.) used in common by the application 30 are described. The data used by the common command App 40 may have data (for example, when the common command is a password authentication command, the common command has a password), and the data of the application 30 is used. (For example, when the common command is a data read / write command, the data of the application 30 is read / written).

またEEPROM13には、共通コマンド情報としてアプリケーション情報50が記憶されている。共通コマンドApp40またはアプリケーション30を一つEEPROM13に実装する毎に、マルチアプリケーションOS20によって実装した共通コマンドApp40またはアプリケーション30に対応したアプリケーション情報50がEEPROM13に一つ記憶される。   The EEPROM 13 stores application information 50 as common command information. Each time one common command App 40 or application 30 is installed in the EEPROM 13, one application information 50 corresponding to the common command App 40 or application 30 implemented by the multi-application OS 20 is stored in the EEPROM 13.

図3は、アプリケーション情報50を説明するための図である。一つのアプリケーション情報50には、アプリケーション30(または共通コマンドApp40)を識別する情報であるアプリケーション名称501、アプリケーション30(または共通コマンドApp40)を記憶したアプリケーション記憶アドレス502、アプリケーション30(または共通コマンドApp40)が使用する共通コマンドApp40を特定する情報として共通コマンドApp名称503が記憶される。   FIG. 3 is a diagram for explaining the application information 50. One piece of application information 50 includes an application name 501 that is information for identifying the application 30 (or common command App40), an application storage address 502 that stores the application 30 (or common command App40), and an application 30 (or common command App40). The common command App name 503 is stored as information for specifying the common command App 40 used by.

アプリケーション名称501とは、例えばISO7816規格で定められているAID(Application Identification Data)等のアプリケーション(または共通コマンドApp40)を識別する情報で、アプリケーション30を選択する際に使用される情報でもある。   The application name 501 is information for identifying an application (or common command App40) such as AID (Application Identification Data) defined in the ISO 7816 standard, for example, and is information used when selecting the application 30.

アプリケーション記憶アドレス502とは、アプリケーション名称501で特定されるアプリケーション30(または共通コマンドApp40)が実装されているEEPROM13のアドレスを示す。   The application storage address 502 indicates the address of the EEPROM 13 on which the application 30 (or common command App40) specified by the application name 501 is mounted.

また、共通コマンドApp名称503とは、アプリケーション30(または共通コマンドApp40)が使用する共通コマンドApp40を特定する情報で、アプリケーション30が(または共通コマンドApp40)使用する共通コマンドApp40のアプリケーション名称501が記憶される。共通コマンドApp名称503を記憶することで、アプリケーション30(または共通コマンドApp40)が使用する共通コマンドApp40を設定できる。   The common command App name 503 is information specifying the common command App 40 used by the application 30 (or common command App 40), and the application name 501 of the common command App 40 used by the application 30 (or common command App 40) is stored. Is done. By storing the common command App name 503, the common command App40 used by the application 30 (or the common command App40) can be set.

マルチアプリケーションOS20に備えられたコマンド実行手段21は、選択されているアプリケーション30でコマンドを処理する前に、共通コマンドApp40でコマンドを処理させる手段である。   The command execution means 21 provided in the multi-application OS 20 is a means for processing a command with the common command App 40 before processing the command with the selected application 30.

図外の外部端末からコマンドメッセージを受信すると、コマンド実行手段21は前記コマンドの処理を共通コマンドApp40に委任する。   When receiving a command message from an external terminal (not shown), the command execution means 21 delegates the processing of the command to the common command App40.

前記コマンド処理を委任する共通コマンドApp40は、選択されているアプリケーション30のアプリケーション情報50に記憶されている共通コマンドApp名称503で特定される共通コマンドApp40である。前記共通コマンドApp40が記憶されているEEPROM13のアドレスは、前記共通コマンドApp名称503と一致するアプリケーション名称501を有するアプリケーション情報50に記憶されている。   The common command App 40 for delegating the command processing is the common command App 40 specified by the common command App name 503 stored in the application information 50 of the selected application 30. The address of the EEPROM 13 in which the common command App 40 is stored is stored in the application information 50 having the application name 501 that matches the common command App name 503.

選択されているアプリケーション30のアプリケーション情報50に複数の共通コマンドApp名称503が記憶されている場合、コマンド実行手段21はアプリケーション情報50に記憶されている順番に従い、共通コマンドApp名称503で特定される共通コマンドApp40に前記コマンドの処理を委任する。   When a plurality of common command App names 503 are stored in the application information 50 of the selected application 30, the command execution means 21 is specified by the common command App name 503 according to the order stored in the application information 50. The command processing is delegated to the common command App40.

共通コマンドApp40で前記コマンドの処理ができない場合は、コマンド実行手段21は、選択されているアプリケーション30に前記コマンドの処理を委任する。なお選択されているアプリケーション30が記憶されているEEPROM13のアドレスは、選択されているアプリケーション情報50のアプリケーション記憶アドレス502に記憶されている。   When the command cannot be processed by the common command App 40, the command execution unit 21 delegates the command processing to the selected application 30. The address of the EEPROM 13 in which the selected application 30 is stored is stored in the application storage address 502 of the selected application information 50.

マルチアプリケーションOS20に備えられた共通コマンドApp削除手段22は、EEPROM13に実装されている共通コマンドApp40を削除する手段である。   The common command App deletion means 22 provided in the multi-application OS 20 is means for deleting the common command App 40 mounted on the EEPROM 13.

共通コマンドApp削除手段22は、EEPROM13に実装されている共通コマンドApp40を削除する際は、EEPROM13に記憶されいるすべてのアプリケーション情報50に削除する共通コマンドApp40を示す共通コマンドApp名称503が記憶されていないか調査する。   When deleting the common command App 40 mounted on the EEPROM 13, the common command App deletion means 22 stores a common command App name 503 indicating the common command App 40 to be deleted in all application information 50 stored in the EEPROM 13. Investigate whether there is any.

削除する共通コマンドApp40を示す共通コマンドApp名称503が記憶されているアプリケーション情報50が一つでもあれば、共通コマンドApp削除手段22は共通コマンドApp40を削除する処理を中断する。   If there is at least one application information 50 in which the common command App name 503 indicating the common command App 40 to be deleted is stored, the common command App deletion unit 22 interrupts the process of deleting the common command App 40.

また共通コマンドApp削除手段22が共通コマンドApp40を削除する際は、共通コマンドApp40と共に削除した共通コマンドApp40のアプリケーション情報50もEEPROM13から削除する。   When the common command App deleting means 22 deletes the common command App 40, the application information 50 of the common command App 40 deleted together with the common command App 40 is also deleted from the EEPROM 13.

<ICカードの動作の説明>
ここから、これまで述べた構成のICカードの動作について説明する。図4は図外の外部装置から受信したコマンドメッセージの処理動作の手順を示したフロー図、図5は共通コマンドApp40を削除する動作手順を示したフロー図である。
<Description of IC card operation>
From here, the operation of the IC card configured as described above will be described. FIG. 4 is a flowchart showing a procedure for processing a command message received from an external device (not shown), and FIG. 5 is a flowchart showing an procedure for deleting the common command App40.

まずに図外の外部装置から受信したコマンドメッセージの処理動作の手順ついて、図4を参照しながら説明する。マルチアプリケーションOS20が図外の外部端末からコマンドのメッセージを受信すると(ステップS100)、コマンド実行手段21は選択されているアプリケーション30のアプリケーション情報50に含まれる共通コマンドApp名称503を調査する(ステップS110)。   First, a procedure for processing a command message received from an external device (not shown) will be described with reference to FIG. When the multi-application OS 20 receives a command message from an external terminal (not shown) (step S100), the command execution means 21 checks the common command App name 503 included in the application information 50 of the selected application 30 (step S110). ).

次のステップでは、アプリケーション情報50に共通コマンドApp名称503が設定されていない場合はステップS200に進みアプリケーションプログラムにコマンド処理を委任する。共通コマンドApp名称503が設定されている場合は、コマンドの処理を委任する共通コマンドApp40を最初に記憶されている共通コマンド名称App503で特定される共通コマンドApp40に設定するステップS130に進む(ステップS120)。   In the next step, if the common command App name 503 is not set in the application information 50, the process proceeds to step S200 and command processing is delegated to the application program. If the common command App name 503 is set, the process proceeds to step S130 in which the common command App40 to which command processing is delegated is set to the common command App40 specified by the first stored common command name App503 (step S120). ).

ここで共通コマンド名称App503で特定される共通コマンドApp40に設定とは、共通コマンド名称App503と同一のアプリケーション名称501を有する共通コマンドApp40のアプリケーション記憶アドレス502をRAM14またはCPU11のレジスタに記憶することを意味する。   Here, setting to the common command App 40 identified by the common command name App 503 means storing the application storage address 502 of the common command App 40 having the same application name 501 as the common command name App 503 in the RAM 14 or the register of the CPU 11. To do.

ステップS130では、RAM14またはCPU11のレジスタにアプリケーション記憶アドレス502が設定されている共通コマンドApp40にコマンド処理を委任するステップである。   In step S130, command processing is delegated to the common command App40 in which the application storage address 502 is set in the register of the RAM 14 or the CPU 11.

次のステップでは、前記共通コマンドApp40が受信したコマンドを処理できる場合は、ステップS300に進み受信したコマンドのメッセージに対応する共通コマンドが実行される。前記共通コマンドApp40が受信したコマンドを処理できない場合はステップS150に進む(ステップS140)。   In the next step, if the command received by the common command App 40 can be processed, the process proceeds to step S300 and the common command corresponding to the received command message is executed. If the command received by the common command App40 cannot be processed, the process proceeds to step S150 (step S140).

ステップS150では、コマンド実行手段21が残りの共通コマンドApp名称503を調査するステップである。残りの共通コマンドApp名称503がない場合はステップS200に進みアプリケーション30に受信したコマンドの処理を委任する。残りの共通コマンドApp名称503が設定されている場合は、コマンドの処理を委任する共通コマンドApp40を次に記憶されている共通コマンド名称App503で特定される共通コマンドApp40に設定し、ステップS130に戻る。   In step S150, the command execution means 21 checks the remaining common command App name 503. If there is no remaining common command App name 503, the process proceeds to step S200 and the received command is delegated to the application 30. If the remaining common command App name 503 is set, the common command App40 for delegating command processing is set to the common command App40 specified by the next stored common command name App503, and the process returns to step S130. .

コマンド実行手段21はステップS130からステップS150を繰り返し実行することで、コマンド実行手段21は、選択されたアプリケーション情報50に記憶されている共通コマンドApp名称503で特定されるすべての共通コマンドApp40に前記コマンドの処理を委任することができる。   The command execution means 21 repeatedly executes step S130 to step S150, so that the command execution means 21 adds the common command App 40 specified by the common command App name 503 stored in the selected application information 50 to the common command App 40. Command processing can be delegated.

コマンド処理を委任委任した共通コマンドApp40で、受信したコマンドを処理できる場合は、ステップS300で共通コマンドの処理が実行される。すべての共通コマンドApp40で受信したコマンドを処理できなかった場合は、ステップS200でアプリケーション30に受信したコマンドの処理が委任される。   If the received command can be processed by the common command App 40 that has been delegated the command processing, the processing of the common command is executed in step S300. When the command received by all the common commands App40 cannot be processed, the processing of the received command is delegated to the application 30 in step S200.

ステップS200は、コマンド実行手段21がアプリケーション30にコマンドの処理を委任するステップである。   Step S <b> 200 is a step in which the command execution unit 21 delegates command processing to the application 30.

ステップS210は、アプリケーション30が受信したコマンドを処理できるか確認するステップである。前記コマンドを処理できる場合はステップS310に進み、受信したコマンドに対応するアプリケーションのコマンドが実行され、処理できない場合はステップS320に進み受信したコマンドが処理できない実行エラーと判断される。   Step S210 is a step of confirming whether the command received by the application 30 can be processed. If the command can be processed, the process proceeds to step S310, and the application command corresponding to the received command is executed. If the command cannot be processed, the process proceeds to step S320, where it is determined that the received command cannot be processed.

これまで述べたように、選択されているアプリケーション30のアプリケーション情報50に含まれる共通コマンドApp名称503で特定される共通コマンドApp40でコマンドの処理ができる場合は、ステップS300で共通コマンドは実行される。   As described above, when the command can be processed by the common command App 40 specified by the common command App name 503 included in the application information 50 of the selected application 30, the common command is executed in step S300. .

また、前記共通コマンドApp40でコマンドの処理ができない場合は、選択されているアプリケーション30にコマンドの処理が委任され、アプリケーション30でコマンドの処理ができる場合はステップS310でアプリケーション30の独自のコマンドが実行される。   If the command cannot be processed by the common command App40, the command processing is delegated to the selected application 30, and if the command can be processed by the application 30, the unique command of the application 30 is executed in step S310. Is done.

加えて、前記共通コマンドApp40およびアプリケーション30でコマンド処理がっできない場合は、ステップS320で受信コマンドエラーとなる。   In addition, if command processing cannot be performed with the common command App 40 and the application 30, a reception command error occurs in step S320.

次に共通コマンドApp40を削除する動作について、図5を参照しながら説明する。共通コマンドApp40を削除する命令を受信すると、共通コマンドApp削除手段22は、EEPROM13に記憶されているすべてのアプリケーション情報50に含まれる共通コマンドApp名称503の調査を開始する(S400)。   Next, an operation for deleting the common command App40 will be described with reference to FIG. When the command for deleting the common command App 40 is received, the common command App deleting means 22 starts to investigate the common command App name 503 included in all the application information 50 stored in the EEPROM 13 (S400).

ステップ410では、調査したアプリケーション情報50に削除する共通コマンドApp40の共通コマンドApp名称503が設定されているか確認するステップである。   In step 410, it is confirmed whether the common command App name 503 of the common command App40 to be deleted is set in the investigated application information 50.

調査したアプリケーション情報50に削除する共通コマンドApp40の共通コマンドApp名称503が一つでも設定されている場合はステップS420に進み、共通コマンドApp削除手段22は共通コマンドApp40の削除処理を中止する。   If even one common command App name 503 of the common command App 40 to be deleted is set in the investigated application information 50, the process proceeds to step S420, and the common command App deletion unit 22 stops the deletion process of the common command App 40.

削除する共通コマンドApp40を特定する共通コマンドApp名称503が一つも設定されていない場合はステップS430に進み、共通コマンドApp削除手段22は共通コマンドApp40および削除する共通コマンドApp40のアプリケーション情報50を削除する。   If no common command App name 503 that identifies the common command App 40 to be deleted is set, the process proceeds to step S430, and the common command App deletion unit 22 deletes the common command App 40 and the application information 50 of the common command App 40 to be deleted. .

ソフトウェアの構造を説明するための図。The figure for demonstrating the structure of software. ICチップの構造を説明するための図。The figure for demonstrating the structure of IC chip. アプリケーション情報を説明するための図。The figure for demonstrating application information. コマンドの動作手順を説明するためのフロー図。The flowchart for demonstrating the operation | movement procedure of a command. 共通コマンドアプリケーションの削除手順を説明するためのフロー図。The flowchart for demonstrating the deletion procedure of a common command application.

符号の説明Explanation of symbols

10 ICチップ
12 ROM
13 EEPROM
20 マルチアプリケーションOS
21 コマンド実行手段
22 共通コマンドアプリケーション削除手段
30 アプリケーション
40 共通コマンドアプリケーション
50 アプリケーション情報
501 アプリケーション情報に含まれるアプリケーション名称
502 アプリケーション情報に含まれるアプリケーション記憶アドレス
503 アプリケーション情報に含まれる共通コマンドアプリケーション名称
10 IC chip 12 ROM
13 EEPROM
20 Multi-application OS
21 Command execution means 22 Common command application deletion means 30 Application 40 Common command application 50 Application information 501 Application name included in application information 502 Application storage address included in application information 503 Common command application name included in application information

Claims (4)

アプリケーションを書き換え可能なメモリに実装できるマルチアプリケーション型ICカードにおいて、アプリケーションが共通で使用するコマンドを記憶した共通コマンドアプリケーションを前記書き換え可能なメモリに実装し、外部端末から受信したコマンドの処理を前記共通コマンドアプリケーションに委任し、前記コマンドが前記共通コマンドアプリケーションで処理できなかった場合は、選択されているアプリケーションに前記コマンドの処理を委任するコマンド実行手段を備えたことを特徴とするマルチアプリケーション型ICカード。   In a multi-application IC card in which an application can be mounted in a rewritable memory, a common command application storing a command commonly used by the application is mounted in the rewritable memory, and processing of a command received from an external terminal is performed in the common A multi-application type IC card comprising command execution means for delegating to a command application and delegating the processing of the command to a selected application when the command cannot be processed by the common command application . 請求項1に記載のマルチアプリケーション型ICカードにおいて、前記書き換え可能なメモリには複数の前記共通コマンドアプリケーションを記憶していることを特徴とするマルチアプリケーション型ICカード。   2. The multi-application IC card according to claim 1, wherein a plurality of the common command applications are stored in the rewritable memory. 請求項1または請求項2に記載のマルチアプリケーション型ICカードにおいて、前記アプリケーションは、前記アプリケーションが使用する前記共通コマンドアプリケーションを示す共通コマンド情報を備え、前記コマンド実行手段は、選択されている前記アプリケーションの前記共通コマンド情報で示された前記共通コマンドアプリケーションに前記コマンドの処理を委任することを特徴とするマルチアプリケーション型ICカード。   3. The multi-application IC card according to claim 1, wherein the application includes common command information indicating the common command application used by the application, and the command execution unit selects the selected application. A multi-application type IC card, wherein the command processing is delegated to the common command application indicated by the common command information. 請求項3に記載のマルチアプリケーション型ICカードにおいて、前記マルチアプリケーション型ICカードは前記共通コマンドアプリケーションを削除する共通コマンドアプリケーション削除手段を備え、前記共通コマンドアプリケーション削除手段は、前記書き換え可能なメモリに記憶されている前記共通コマンド情報に削除する前記共通コマンドアプリケーションが示されている場合は、前記共通コマンドアプリケーションの削除を中止する機能を備えていることを特徴とするICカード。

4. The multi-application type IC card according to claim 3, wherein the multi-application type IC card includes a common command application deleting unit that deletes the common command application, and the common command application deleting unit is stored in the rewritable memory. An IC card having a function of canceling deletion of the common command application when the common command application to be deleted is indicated in the common command information that is deleted.

JP2004148242A 2004-05-18 2004-05-18 Multi-application IC card with common command application Expired - Fee Related JP4774681B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004148242A JP4774681B2 (en) 2004-05-18 2004-05-18 Multi-application IC card with common command application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004148242A JP4774681B2 (en) 2004-05-18 2004-05-18 Multi-application IC card with common command application

Publications (2)

Publication Number Publication Date
JP2005332083A true JP2005332083A (en) 2005-12-02
JP4774681B2 JP4774681B2 (en) 2011-09-14

Family

ID=35486726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004148242A Expired - Fee Related JP4774681B2 (en) 2004-05-18 2004-05-18 Multi-application IC card with common command application

Country Status (1)

Country Link
JP (1) JP4774681B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019159799A (en) * 2018-03-13 2019-09-19 大日本印刷株式会社 Electronic information storage medium and IC card

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1040350A (en) * 1996-07-26 1998-02-13 Dainippon Printing Co Ltd Ic card and method for executing command
JP2002149411A (en) * 2000-11-09 2002-05-24 Nec Microcomputer Technology Ltd Multi-function smart card and method for managing the same
JP2003036425A (en) * 2001-07-25 2003-02-07 Hitachi Ltd Security card
JP2004030532A (en) * 2002-06-28 2004-01-29 Dainippon Printing Co Ltd Ic card and ic card program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1040350A (en) * 1996-07-26 1998-02-13 Dainippon Printing Co Ltd Ic card and method for executing command
JP2002149411A (en) * 2000-11-09 2002-05-24 Nec Microcomputer Technology Ltd Multi-function smart card and method for managing the same
JP2003036425A (en) * 2001-07-25 2003-02-07 Hitachi Ltd Security card
JP2004030532A (en) * 2002-06-28 2004-01-29 Dainippon Printing Co Ltd Ic card and ic card program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019159799A (en) * 2018-03-13 2019-09-19 大日本印刷株式会社 Electronic information storage medium and IC card

Also Published As

Publication number Publication date
JP4774681B2 (en) 2011-09-14

Similar Documents

Publication Publication Date Title
JP2009048415A (en) Portable electronic device and control method of portable electronic device
JP2010146410A (en) Portable electronic device
JP4774681B2 (en) Multi-application IC card with common command application
EP1079340A2 (en) Integrated circuit card protected from unauthorized access
JP2006293706A (en) Multi-application ic card with application updating function
JP4549731B2 (en) Multi-application IC card with command code that is commonly used by applications
EP3023925B1 (en) Secure element with applications
JP2001167236A (en) Portable electronic device
JP4836707B2 (en) Portable electronic device and IC card
JP4784138B2 (en) IC card and IC card program
JP4580660B2 (en) Multi-application IC card and application program with application installed in ROM
JP2008500601A (en) Semiconductor memory card
JP4641157B2 (en) Multi-application IC card and application program
JP7468757B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RESPONSE TRANSMISSION METHOD, AND PROGRAM
JP2004334745A (en) Ic card
JP7438432B1 (en) Electronic information storage medium, IC chip, IC card, record writing method, and program
JP7439847B2 (en) Electronic information storage medium, key data setting method, and program
JP2012133656A (en) Portable electronic apparatus and ic card
JP7322923B2 (en) Secure element, transaction control method and device
JP2006058920A (en) Multi-application ic card for controlling inter-application message processing and program for ic card
JP2006172271A (en) Multi-application ic card, and program for ic card
JP6662140B2 (en) IC card and memory control method in IC card
JP2006172005A (en) Portable electronic instrument
JP2008299416A (en) Portable electronic device, file access method in portable electronic device, and ic card
JP2008152452A (en) Portable electronic device, control method for portable electronic device, and ic card

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070423

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100824

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101013

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4774681

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

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees