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
JP6717154B2 - IC card - Google Patents
[go: Go Back, main page]

JP6717154B2 - IC card - Google Patents

IC card Download PDF

Info

Publication number
JP6717154B2
JP6717154B2 JP2016198711A JP2016198711A JP6717154B2 JP 6717154 B2 JP6717154 B2 JP 6717154B2 JP 2016198711 A JP2016198711 A JP 2016198711A JP 2016198711 A JP2016198711 A JP 2016198711A JP 6717154 B2 JP6717154 B2 JP 6717154B2
Authority
JP
Japan
Prior art keywords
interface
card
control information
nvm
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.)
Active
Application number
JP2016198711A
Other languages
Japanese (ja)
Other versions
JP2018060433A (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 JP2016198711A priority Critical patent/JP6717154B2/en
Publication of JP2018060433A publication Critical patent/JP2018060433A/en
Application granted granted Critical
Publication of JP6717154B2 publication Critical patent/JP6717154B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Description

本発明は,複数のインタフェースに対応し,アプリケーションをNVM(Non-volatile memory)にロード可能に設計されたオペレーティングシステム(Operating System)を実装したICカードに関する。 The present invention relates to an IC card having an operating system (Operating System) that supports a plurality of interfaces and is designed to load an application in an NVM (Non-volatile memory).

複数のインタフェースに対応したICカードが普及している。複合ICカードまたはコンビネーションICカードとも称され,接触型(Contact)インタフェースと非接触型(Contactless)インタフェースに対応したデュアルインタフェースICカードは,クレジットカード機能付きICカード定期券に利用されている。また,NFC(Near Field Communication)に対応したモバイル端末(例えば,スマートフォン)に実装されるUIM(User Identity Module)は,モバイル端末のプロセッサと通信するインタフェースとなるISO7816インタフェースと,NFCチップと通信するインタフェースとなるSWP/HCI(Single Wire Protocol/Host Controller Interface)の2つの接触型インタフェースに対応する。 IC cards compatible with a plurality of interfaces are in widespread use. A dual interface IC card, which is also called a composite IC card or a combination IC card and is compatible with a contact interface and a contactless interface, is used for an IC card commuter pass with a credit card function. A UIM (User Identity Module) installed in a mobile terminal (for example, a smartphone) compatible with NFC (Near Field Communication) has an ISO7816 interface which is an interface for communicating with a processor of the mobile terminal and an interface for communicating with an NFC chip. It supports two contact-type interfaces of SWP/HCI (Single Wire Protocol/Host Controller Interface).

複数のインタフェースに対応したICカードは,ICカードが対応しているインタフェースそれぞれで動作可能であるため,複数のインタフェースに対応したICカードは,インタフェースに応じて振る舞いを変更するように構成される場合がある。 When an IC card that supports multiple interfaces can operate on each of the interfaces that the IC card supports, if the IC card that supports multiple interfaces is configured to change the behavior according to the interface. There is.

例えば,特許文献1では,ICカードを駆動させたインタフェースに対応するアプリケーションを起動するICカードが開示されている。また,特許文献2では,接触型インタフェース及び非接触型インタフェースのどちらにより起動されているかを判別し,この判別手段による判別結果に基づいて実行可能なコマンドを切り替えるICカードが開示されている。また,特許文献3では,接触型インタフェース領域と非接触型インタフェース領域をメモリに設け,接触型インタフェースで駆動している場合は,メモリへのアクセスを接触型インタフェース領域内に制限し、非接触型インタフェースで駆動している場合は,メモリへのアクセスを非接触型インタフェース領域内に制限するICカードが開示されている。 For example, Patent Document 1 discloses an IC card that starts an application corresponding to an interface that drives the IC card. Further, Patent Document 2 discloses an IC card that determines which of a contact type interface and a non-contact type interface is activated and switches the executable command based on the determination result by the determining means. Further, in Patent Document 3, a contact type interface area and a non-contact type interface area are provided in the memory, and when the contact type interface is used for driving, the access to the memory is restricted to within the contact type interface area. An IC card is disclosed which limits access to the memory within the contactless interface area when driven by the interface.

しかしながら,インタフェースに応じて振る舞いを変更するようにICカードを構成すると,アプリケーションをロード可能に設計されたOSを実装したICカードの場合,アプリケーションのロードには接触型インタフェースを利用することが一般的であるため,ICカードにロードするアプリケーションを開発するソフトウェア開発工程や,ICカードにアプリケーションをロードするカード発行工程において,インタフェースに応じて振る舞いを変更する機能が障害になることがある。 However, if the IC card is configured to change the behavior according to the interface, in the case of an IC card that has an OS designed to load the application, it is common to use the contact type interface to load the application. Therefore, in the software development process of developing an application to be loaded on the IC card and the card issuing process of loading the application to the IC card, the function of changing the behavior depending on the interface may be an obstacle.

例えば,接触型インタフェースと非接触型インタフェースに対応したICカードに,インタフェースに応じて振る舞いを変更する機能を持たせると,アプリケーションのロードには接触型インタフェースを利用することが一般的であるため,ソフトウェア開発フェーズにおいて,非接触型インタフェースで動作するアプリケーションの振る舞いを確認する際,ソフトウェアの開発に用いるエミュレータのインタフェースを,接触型インタフェースから非接触型インタフェースに切り替える必要があった。 For example, if an IC card that supports a contact-type interface and a non-contact-type interface has a function of changing the behavior according to the interface, it is common to use the contact-type interface for loading an application. In the software development phase, when confirming the behavior of the application that operates with the contactless interface, it was necessary to switch the interface of the emulator used for software development from the contact interface to the contactless interface.

また,接触型インタフェースと非接触型インタフェースに対応したICカードに,インタフェースに応じて振る舞いを変更する機能を持たせると,アプリケーションのロードには接触型インタフェースを利用することが一般的であるため,カード発行フェーズにおいて,非接触型インタフェースで動作するアプリケーションのデータを読む出す際,ICカードの発行に用いるカード発行機のインタフェースを,接触型インタフェースから非接触型インタフェースに切り替える必要があった。 Also, if an IC card that supports a contact-type interface and a non-contact-type interface has a function that changes the behavior according to the interface, it is common to use the contact-type interface for loading applications. In the card issuing phase, when reading out the data of the application operating on the contactless interface, it was necessary to switch the interface of the card issuing machine used for issuing the IC card from the contact interface to the contactless interface.

特開平11−154207号公報JP-A-11-154207 特開平11−272824号公報JP, 11-272824, A 特開2004−206542号公報JP, 2004-206542, A

そこで,本発明は,複数のインタフェースに対応したICカードにおいて,ICカードで動作しているインタフェースとして,仮想的なインタフェースをアプリケーションに認識させることのできるICカードを提供することを課題とする。 Therefore, it is an object of the present invention to provide an IC card that is compatible with a plurality of interfaces and that allows an application to recognize a virtual interface as an interface operating on the IC card.

上述した課題を解決する本発明は,複数のインタフェースに対応し,NVMにロードされたアプリケーションの実行環境を提供するオペレーティングシステムを実装したICカードであって,仮想インタフェースとして設定されたインタフェースを示す仮想インタフェース情報と,前記仮想インタフェースの有効または無効を示す通知制御フラグを含む制御情報をNVMに記憶し,端末装置から受信したコマンドAPDUを処理する前記アプリケーションからインタフェース通知要求を受けると,NVMから前記制御情報を読み出し,NVMから読み出した前記通知制御フラグにより仮想インタフェースの有効が示される場合,前記仮想インタフェース情報を前記アプリケーションに通知し,NVMから読み出した前記制御情報の前記通知制御フラグにより前記仮想インタフェースの無効が示される場合,コマンドAPDUを受信したインタフェースを示す情報を前記アプリケーションへ通知するインタフェース通知部を前記オペレーティングシステムに備え,前記オペレーティングシステム上で動作する前記アプリケーションは,前記オペレーティングシステムからコマンドAPDUが引き渡されると,前記インタフェース通知部にインタフェース通知要求を行うことを特徴とするICカードである。
また,デュアルインタフェースICカードは広く普及しているため,本発明に係るICカードを,接触型インタフェースと非接触型インタフェースに対応したデュアルインタフェースICカードにすることが望ましい。
更に,本発明に係るICカードは,前記制御情報を更新できるように,前記制御情報の更新可または前記制御情報の更新不可を示す更新制御フラグを前記制御情報に含み,前記制御情報を更新するコマンドAPDUを端末装置から受信すると,NVMから前記制御情報を読出し,NVMから読み出した前記更新制御フラグにより前記制御情報の更新可が示される場合,前記端末装置から受信したコマンドAPDUに応じてNVMに記憶された前記制御情報を更新する制御情報更新部を前記オペレーティングシステムに備えることが望ましい。
The present invention, which solves the above-mentioned problems, is an IC card that is compatible with a plurality of interfaces and has an operating system that provides an execution environment for applications loaded in an NVM, and that indicates an interface set as a virtual interface. The interface information and the control information including the notification control flag indicating whether the virtual interface is valid or invalid are stored in the NVM, and when the interface notification request is received from the application that processes the command APDU received from the terminal device, the control is performed from the NVM. When information is read and the notification control flag read from the NVM indicates that the virtual interface is valid, the virtual interface information is notified to the application, and the notification control flag of the control information read from the NVM indicates the virtual interface. When invalid is indicated, the operating system is provided with an interface notifying unit for notifying the application of information indicating the interface that has received the command APDU, and the application operating on the operating system receives the command APDU from the operating system. Then, the IC card makes an interface notification request to the interface notification unit.
Further, since the dual interface IC card is widely used, it is desirable that the IC card according to the present invention is a dual interface IC card compatible with the contact interface and the non-contact interface.
Furthermore, the IC card according to the present invention updates the control information by including an update control flag indicating whether the control information can be updated or the control information cannot be updated so that the control information can be updated. When the command APDU is received from the terminal device, the control information is read from the NVM, and when the update control flag read from the NVM indicates that the control information can be updated, the NVM is transmitted to the NVM according to the command APDU received from the terminal device. It is desirable that the operating system be provided with a control information updating unit that updates the stored control information.

ICカードで動作しているインタフェースとして,仮想的なインタフェースをアプリケーションに認識させるために,上述した本発明に係るICカードは,ICカードで実際に動作しているインタフェースに依存しない,NVMに記憶された仮想インタフェース情報をアプリケーションに認識させるように構成されている。 In order for an application to recognize a virtual interface as an interface operating on the IC card, the above-described IC card according to the present invention is stored in the NVM that does not depend on the interface actually operating on the IC card. The virtual interface information is configured to be recognized by the application.

ICカードを説明する図。The figure explaining an IC card. ICカードに実装されるICチップを説明する図。The figure explaining the IC chip mounted in an IC card. ICカードが備える機能を説明する図。The figure explaining the function with which an IC card is provided. アプリケーションにインタフェースを通知する時の動作を説明する図。The figure explaining the operation|movement when notifying an interface to an application. 制御情報を更新する時の動作を説明する図。The figure explaining the operation|movement at the time of updating control information.

ここから,本発明の好適な実施形態を記載する。なお,以下の記載は本発明の技術的範囲を束縛するものでなく,理解を助けるために記述するものである。 The preferred embodiments of the present invention will now be described. It should be noted that the following description does not limit the technical scope of the present invention, but is provided to aid understanding.

図1は,本実施形態に係るICカード1を説明する図で,図2は,ICカード1に実装されるICチップ2を説明する図である。 FIG. 1 is a diagram illustrating an IC card 1 according to this embodiment, and FIG. 2 is a diagram illustrating an IC chip 2 mounted on the IC card 1.

本実施形態に係るICカード1は,複数のインタフェースに対応したカードで,図1に図示したように,本実施形態では,ICカード1を,接触型の端末装置3と接続するときに用いる接触端子20aがカード表面に設けられ,更に,非接触型の端末装置3と接続するときに用いるアンテナコイル21aが内蔵されたデュアルインタフェースICカードとしている。 The IC card 1 according to the present embodiment is a card compatible with a plurality of interfaces, and as shown in FIG. 1, in the present embodiment, a contact used when the IC card 1 is connected to the contact-type terminal device 3. The terminal 20a is provided on the surface of the card, and the antenna coil 21a used when connecting with the non-contact type terminal device 3 is built in the dual interface IC card.

図2に図示したように,本実施形態に係るICカード1に実装されるICチップ2は,CPU(Central Processing Unit)22,不揮発性メモリであるROM23(Read Only Memory),揮発性メモリであるRAM(Random Access Memory)24,電気的に書き換え可能な不揮発性メモリであるNVM25を備える。 As shown in FIG. 2, the IC chip 2 mounted on the IC card 1 according to this embodiment is a CPU (Central Processing Unit) 22, a ROM 23 (Read Only Memory) that is a non-volatile memory, and a volatile memory. A RAM (Random Access Memory) 24 and an electrically rewritable nonvolatile memory NVM 25 are provided.

更に,本実施形態に係るICカード1に実装されるICチップ2は,端末装置3との通信を制御する回路であるインタフェースとして,ICカード1のカード表面に設けられた接触端子20aを利用して接触型の端末装置3aと接続するための接触型インタフェース20と,ICカード1に内蔵されたアンテナコイルを利用して非接触型の端末装置3bと接続するための非接触型インタフェース21を備える。なお,接触型インタフェース20は,接触端子から電気信号が入力される入力端子に入力された電気信号を処理するI/O回路になり,非接触型インタフェース21は,アンテナコイル21aと接続する入力端子に入力された電気信号を処理する回路になる。 Further, the IC chip 2 mounted on the IC card 1 according to the present embodiment uses the contact terminal 20a provided on the card surface of the IC card 1 as an interface which is a circuit for controlling communication with the terminal device 3. A contact-type interface 20 for connecting to the contact-type terminal device 3a, and a contactless-type interface 21 for connecting to the contactless-type terminal device 3b using the antenna coil built in the IC card 1. .. The contact-type interface 20 is an I/O circuit that processes an electric signal input to an input terminal to which an electric signal is input, and the non-contact-type interface 21 is an input terminal connected to the antenna coil 21a. It becomes a circuit that processes the electric signal input to.

図3は,ICカード1が備える機能を説明する図である。本実施形態に係るICカード1には,バーチャルマシンやAPI(Application Programming Interface)などを用いて構成され,NVM25にロードされたアプリケーション11の実行環境を提供するオペレーティングシステム10(以下、OS10)と,OS10上で動作するアプリケーション11が実装される。なお,OS10を実装するメモリはROM23で,アプリケーション11を実装するメモリはNVM25になる。 FIG. 3 is a diagram for explaining the functions of the IC card 1. The IC card 1 according to the present embodiment includes an operating system 10 (hereinafter, OS 10) that is configured by using a virtual machine, an API (Application Programming Interface), etc., and provides an execution environment for the application 11 loaded in the NVM 25. An application 11 that runs on the OS 10 is installed. The memory for mounting the OS 10 is the ROM 23, and the memory for mounting the application 11 is the NVM 25.

ICカード1に実装されたOS10は,ICカード1で動作しているインタフェースに依存しない仮想的なインタフェースである仮想インタフェースをアプリケーション11に認識させるための機能を提供するインタフェース通知部100と,インタフェース通知部100がアプリケーション11に通信するインタフェースを決定するときに用いる情報である制御情報102をNVM25に記憶する。 The OS 10 installed in the IC card 1 includes an interface notification unit 100 that provides a function for causing the application 11 to recognize a virtual interface that is a virtual interface that does not depend on the interface operating in the IC card 1, and an interface notification. The control information 102, which is information used when the unit 100 determines an interface for communicating with the application 11, is stored in the NVM 25.

更に,ICカード1に実装されたOS10は,NVM25に記憶された制御情報102を更新する機能を提供する制御情報更新部101を備え,端末装置3が送信したコマンドAPDU(Application Protocol Data Unit)を,コマンドAPDUに対応するプログラムに引き渡す機能を提供するコマンド処理部103を備える。 Further, the OS 10 mounted on the IC card 1 includes a control information updating unit 101 that provides a function of updating the control information 102 stored in the NVM 25, and transmits a command APDU (Application Protocol Data Unit) transmitted by the terminal device 3. , A command processing unit 103 that provides a function of delivering to a program corresponding to the command APDU.

ICカード1のコマンド処理部103は,ICカード1が受信したコマンドAPDUが,OS10が有するコマンドのコマンドAPDUの場合,コマンドAPDUに対応するOS10のコマンドにコマンドAPDUを引き渡す動作を行う。また,ICカード1のコマンド処理部103は,ICカード1が受信したコマンドAPDUが,OS10のコマンド以外のコマンドAPDUの場合,この時点で選択されているアプリケーション11にコマンドAPDUを引き渡す動作を行う。 When the command APDU received by the IC card 1 is the command APDU of the command included in the OS 10, the command processing unit 103 of the IC card 1 performs an operation of delivering the command APDU to the command of the OS 10 corresponding to the command APDU. Further, when the command APDU received by the IC card 1 is a command APDU other than the command of the OS 10, the command processing unit 103 of the IC card 1 delivers the command APDU to the application 11 selected at this point.

ICカード1が備えるインタフェース通知部100は,OS10上で動作するアプリケーション11が呼び出せるAPI(Application Programming Interface)を有し,このAPIを呼び出したアプリケーション11に対し,制御情報102を用いて決定したインタフェースを記したインタフェース通知情報を引き渡すことで,インタフェース通知部100が決定したインタフェースをアプリケーション11に通知する動作を行う。 The interface notifying unit 100 included in the IC card 1 has an API (Application Programming Interface) that can be called by the application 11 operating on the OS 10, and an interface determined by using the control information 102 is provided to the application 11 that called this API. The interface notifying unit 100 notifies the application 11 of the interface determined by passing the described interface notification information.

インタフェース通知部100がインタフェースを決定するときに用いる制御情報102は,仮想インタフェース情報102a,通知制御フラグ102bおよび更新制御フラグ102cを含む。 The control information 102 used when the interface notification unit 100 determines the interface includes virtual interface information 102a, a notification control flag 102b, and an update control flag 102c.

通知制御フラグ102bは,「仮想インタフェースの有効」または「仮想インタフェースの無効」を示すフラグである。仮想インタフェース情報102aは,仮想インタフェースとして設定されたインタフェースを示す情報で,本実施形態において,仮想インタフェース情報102aは,接触型インタフェース20または非接触型インタフェース21のいずれかを示す情報になる。 The notification control flag 102b is a flag indicating "valid of virtual interface" or "invalid of virtual interface". The virtual interface information 102a is information indicating an interface set as a virtual interface, and in this embodiment, the virtual interface information 102a is information indicating either the contact interface 20 or the contactless interface 21.

制御情報102に含まれる通知制御フラグ102bが「仮想インタフェースの有効」を示す値の時,インタフェース通知部100が,制御情報102に含まれる仮想インタフェース情報102aをアプリケーション11に通知することで,コマンドAPDUを受信したインタフェースではなく,仮想インタフェース情報102aに設定されているインタフェースに応じた振る舞いをアプリケーション11に実行させることができる。 When the notification control flag 102b included in the control information 102 has a value indicating “valid of virtual interface”, the interface notification unit 100 notifies the application 11 of the virtual interface information 102a included in the control information 102, and thus the command APDU It is possible to cause the application 11 to execute the behavior according to the interface set in the virtual interface information 102a instead of the interface that received the.

更新制御フラグ102cは,「制御情報102の更新可」または「制御情報102の更新不可」を示すフラグで,更新制御フラグ102cが「制御情報102の更新可」を示す値の場合のみ,制御情報更新部101による制御情報102の更新が許可される。 The update control flag 102c is a flag indicating "updatable control information 102" or "not updatable control information 102". Only when the update control flag 102c has a value indicating "updatable control information 102", the control information The updating of the control information 102 by the updating unit 101 is permitted.

ICカード1が備える制御情報更新部101は,OS10が有するコマンドにより実現される機能で,更新制御フラグ102cが「制御情報102の更新可」を示す値の場合のみ,NVM25に記憶された制御情報を更新する動作を行う。 The control information update unit 101 included in the IC card 1 is a function realized by a command included in the OS 10, and only when the update control flag 102c has a value indicating “updatable control information 102”, the control information stored in the NVM 25 is stored. The operation to update is performed.

アプリケーション11に仮想インタフェースを通知するか否か示す通知制御フラグ102b,および,仮想インタフェースとして設定されたインタフェースを示す仮想インタフェース情報102aを含む制御情報102を更新できることで,インタフェース通知部100がアプリケーション11に通知するインタフェースを変更できる。 Since the control information 102 including the notification control flag 102b indicating whether to notify the application 11 of the virtual interface and the virtual interface information 102a indicating the interface set as the virtual interface can be updated, the interface notification unit 100 notifies the application 11 of the virtual interface. You can change the notification interface.

図4は,アプリケーション11にインタフェースを通知する時の動作を説明する図である。端末装置3がICカード1へコマンドAPDUを送信すると,端末装置3に対応したICカード1のインタフェースがコマンドAPDUを受信する(S1)。接触通信を行う端末装置3の場合,ICカード1の接触型インタフェース20がコマンドAPDUを受信し,非接触通信を行う端末装置3の場合,ICカード1の非接触型インタフェース21がコマンドAPDUを受信する。 FIG. 4 is a diagram for explaining the operation when notifying the application 11 of the interface. When the terminal device 3 transmits the command APDU to the IC card 1, the interface of the IC card 1 corresponding to the terminal device 3 receives the command APDU (S1). In the case of the terminal device 3 that performs contact communication, the contact interface 20 of the IC card 1 receives the command APDU, and in the case of the terminal device 3 that performs contactless communication, the contactless interface 21 of the IC card 1 receives the command APDU. To do.

ICカード1が備えるコマンド処理部103は,ICカード1が受信したコマンドAPDU等を解析し,コマンドAPDUに対応するコマンドを処理するコンピュータプログラムにコマンドAPDUを引き渡す動作を行う(S2)。ここでは,端末装置3は,アプリケーション11が処理するコマンドのコマンドAPDUをICカード1へ送信し,ICカード1が備えるコマンド処理部103は,端末装置3が送信したコマンドAPDUをアプリケーション11に引き渡す。 The command processing unit 103 included in the IC card 1 analyzes the command APDU or the like received by the IC card 1 and delivers the command APDU to the computer program that processes the command corresponding to the command APDU (S2). Here, the terminal device 3 transmits the command APDU of the command processed by the application 11 to the IC card 1, and the command processing unit 103 included in the IC card 1 delivers the command APDU transmitted by the terminal device 3 to the application 11.

ICカード1に実装されたアプリケーション11は,コマンドAPDUが引き渡されると,コマンドAPDUに対応するコマンドの実行が許可されているインタフェースであるか否かを判断するために,OS10が備えるインタフェース通知部100を呼び出すことで、インタフェース通知部100にインタフェース通知要求を行う(S3)。 When the command APDU is handed over, the application 11 mounted on the IC card 1 determines whether or not the interface corresponding to the command APDU is an interface for which execution of the command is permitted. Is called to make an interface notification request to the interface notification unit 100 (S3).

ICカード1が備えるインタフェース通知部100は,コマンドAPDUが引き渡されたアプリケーション11からインタフェース通知要求を受けると,ICカード1のNVM25に記憶されている制御情報102を読み出し(S4),ICカード1のNVM25から読み出した制御情報102の通知制御フラグ102bに従い処理を分岐させる(S5)。 When the interface notification unit 100 included in the IC card 1 receives the interface notification request from the application 11 to which the command APDU is delivered, the interface notification unit 100 reads the control information 102 stored in the NVM 25 of the IC card 1 (S4), The processing is branched according to the notification control flag 102b of the control information 102 read from the NVM 25 (S5).

NVM25から読み出した制御情報102の通知制御フラグ102bが「仮想インタフェースの有効」を示す値の場合,インタフェース通知部100は,アプリケーション11に引き渡すインタフェース通知情報を,NVM25から読み出した制御情報102の仮想インタフェース情報102aに設定し(S6a),インタフェース通知部100を呼び出したアプリケーション11にインタフェース通知情報を引き渡す(S7)。 When the notification control flag 102b of the control information 102 read from the NVM 25 has a value indicating “valid virtual interface”, the interface notification unit 100 sends the interface notification information to be passed to the application 11 to the virtual interface of the control information 102 read from the NVM 25. The information 102a is set (S6a), and the interface notification information is delivered to the application 11 that called the interface notification unit 100 (S7).

また,NVM25から読み出した制御情報102の通知制御フラグ102bが「仮想インタフェースの無効」を示す値の場合,インタフェース通知部100は,アプリケーション11に引き渡すインタフェース通知情報を,コマンドAPDUを受信したインタフェースを示す情報に設定し(S6b),インタフェース通知部100を呼び出したアプリケーション11にインタフェース通知情報を引き渡す(S7)。コマンドAPDUを受信したインタフェースが,接触型インタフェース20または非接触型インタフェース21のいずれかであるかは,ICカード1に電力を供給しているインタフェースにより判別できる。また,コマンドAPDUを受信したインタフェースは,コマンドAPDUが送信された伝送プロトコルからでも判別できる。 If the notification control flag 102b of the control information 102 read from the NVM 25 has a value indicating “invalid virtual interface”, the interface notification unit 100 indicates the interface notification information to be passed to the application 11, and the interface on which the command APDU is received. Information is set (S6b), and the interface notification information is delivered to the application 11 that called the interface notification unit 100 (S7). Whether the interface that received the command APDU is the contact type interface 20 or the non-contact type interface 21 can be determined by the interface supplying power to the IC card 1. Also, the interface that has received the command APDU can be identified from the transmission protocol in which the command APDU was transmitted.

インタフェース通知部100からインタフェース通知情報が引き渡されることで,インタフェース通知部100からインタフェースが通知されたアプリケーション11は,インタフェース通知情報によって示されるインタフェースが,コマンド処理部103から引き渡されたコマンドAPDUに対応するコマンドの実行が許可されているインタフェースであるか否かを判断する(S8)。 When the interface notification information is passed from the interface notification unit 100, the application 11 notified of the interface from the interface notification unit 100 has the interface indicated by the interface notification information corresponding to the command APDU passed from the command processing unit 103. It is determined whether or not the interface is one in which command execution is permitted (S8).

インタフェース通知情報によって示されるインタフェースが,コマンドAPDUに対応するコマンドの実行が許可されているインタフェースの場合,アプリケーション11は,コマンドAPDUに対応するコマンドを実行して(S9),図4の手順は終了し,インタフェース通知情報によって示されるインタフェースが,コマンドAPDUに対応するコマンドの実行が許可されているインタフェースでない場合,アプリケーション11は,コマンドAPDUに対応するコマンドを実行することなく,図4の手順は終了する。 When the interface indicated by the interface notification information is an interface in which execution of the command corresponding to the command APDU is permitted, the application 11 executes the command corresponding to the command APDU (S9), and the procedure of FIG. 4 ends. However, when the interface indicated by the interface notification information is not an interface in which execution of the command corresponding to the command APDU is permitted, the application 11 does not execute the command corresponding to the command APDU, and the procedure of FIG. 4 ends. To do.

このように,インタフェース通知部100が,制御情報102を用いて決定したインタフェースを記したインタフェース通知情報をアプリケーション11に通知できるようにすることで,コマンドAPDUを実際に受信したインタフェースとは異なるインタフェースで動作している時の振る舞いをアプリケーション11に実行させることができる。例えば,仮想インタフェース情報102aを,非接触型インタフェース21を示す情報にしておくと,コマンドAPDUを実際に受信したインタフェースが接触型インタフェース20であっても,非接触型インタフェース21でコマンドAPDUを受信した時の振る舞いをアプリケーション11に実行させることができる。 In this way, the interface notification unit 100 can notify the application 11 of the interface notification information that describes the interface determined by using the control information 102, so that the interface different from the interface that actually received the command APDU. It is possible to cause the application 11 to execute the behavior when operating. For example, if the virtual interface information 102a is information indicating the contactless interface 21, even if the interface that actually received the command APDU is the contact interface 20, the contactless interface 21 receives the command APDU. It is possible to make the application 11 execute the behavior of time.

図5は,制御情報102を更新する時の動作を説明する図である。端末装置3がICカード1へコマンドAPDUを送信すると,端末装置3に対応したICカード1のインタフェースがコマンドAPDUを受信する(S10)。 FIG. 5 is a diagram for explaining the operation when updating the control information 102. When the terminal device 3 transmits the command APDU to the IC card 1, the interface of the IC card 1 corresponding to the terminal device 3 receives the command APDU (S10).

ICカード1が備えるコマンド処理部103は,ICカード1が受信したコマンドAPDU等を解析し,コマンドAPDUに対応するコマンドを処理するコンピュータプログラムにコマンドAPDUを引き渡す動作を行う(S11)。ここでは,端末装置3は,制御情報更新部101を作動させるコマンドのコマンドAPDUをICカード1へ送信し,ICカード1が備えるコマンド処理部103は,OS10が有する制御情報更新部101にコマンドAPDUを引き渡す。 The command processing unit 103 included in the IC card 1 analyzes the command APDU or the like received by the IC card 1 and delivers the command APDU to the computer program that processes the command corresponding to the command APDU (S11). Here, the terminal device 3 transmits a command APDU of a command for operating the control information updating unit 101 to the IC card 1, and the command processing unit 103 included in the IC card 1 instructs the control information updating unit 101 included in the OS 10 to execute the command APDU. Hand over.

ICカード1が備える制御情報更新部101は,コマンド処理部103からコマンドAPDUが引き渡されると,コマンドAPDUを受信したインタフェース(インタフェース通知部100が決定したインタフェースでない)が接触型インタフェース20であるか確認し,確認結果に応じて処理を分岐させ(S12),制御情報更新部101に対応するコマンドAPDUを受信したインタフェースが接触型インタフェース20でない場合,これ以降の処理を中止する。 When the command APDU is delivered from the command processing unit 103, the control information updating unit 101 included in the IC card 1 confirms whether the interface that received the command APDU (not the interface determined by the interface notifying unit 100) is the contact interface 20. Then, the process is branched according to the confirmation result (S12), and if the interface that receives the command APDU corresponding to the control information updating unit 101 is not the contact type interface 20, the subsequent process is stopped.

また,ICカード1が備える制御情報更新部101は,制御情報更新部101に対応するコマンドAPDUを受信したインタフェースが接触型インタフェース20の場合,NVM25に記憶されている制御情報102を読み出す動作を行い(S13),NVM25から読み出した制御情報102の更新制御フラグ102cに従い処理を分岐させる(S14)。 Further, when the interface that receives the command APDU corresponding to the control information updating unit 101 is the contact interface 20, the control information updating unit 101 included in the IC card 1 performs an operation of reading the control information 102 stored in the NVM 25. (S13), the process is branched according to the update control flag 102c of the control information 102 read from the NVM 25 (S14).

なお,コマンドAPDUを受信したインタフェースが接触型インタフェース20であるか否かにより,制御情報更新部101の処理を分岐させているのは,デュアルインタフェースICカードの場合,ソフトウェア開発工程やカード発行工程では接触型インタフェース20を利用するのが一般的なためである。 In the case of the dual interface IC card, the process of the control information updating unit 101 is branched depending on whether the interface receiving the command APDU is the contact type interface 20 or not in the software development process or the card issuing process. This is because the contact type interface 20 is generally used.

NVM25から読み出した制御情報102の更新制御フラグ102cが「制御情報102の更新可」を示す値の場合,ICカードが備える制御情報更新部101は,コマンドAPDUに含まれるコマンドデータを利用して制御情報102を更新する動作を行って(S15),この手順は終了し,NVM25から読み出した制御情報102の更新制御フラグ102cが「制御情報102の更新不可」を示す値の場合,制御情報102を更新することなく,この手順は終了する。 When the update control flag 102c of the control information 102 read from the NVM 25 has a value indicating “updatable control information 102”, the control information updating unit 101 included in the IC card controls using the command data included in the command APDU. When the update control flag 102c of the control information 102 read from the NVM 25 has a value indicating "unable to update the control information 102", the control information 102 is updated. The procedure ends without updating.

制御情報102を更新するための機能をICカード1に備えさせることで,仮想インタフェースをアプリケーション11に通知する機能を必要な工程でのみ有効にすることができる。例えば,制御情報102の通知制御フラグ102bを「仮想インタフェースの有効」を示す値にし,更に,制御情報102の更新制御フラグ102cを「制御情報102の更新可」を示す値にしておけば,ソフトウェア開発工程やカード発行工程において,アプリケーション11に認識させるインタフェースを任意に設定できる。また,ICカード1のカード発行工程の最終工程にて,制御情報102の通知制御フラグ102bを「仮想インタフェースの無効」を示す値に更新し,更に,制御情報102の更新制御フラグ102cを「制御情報102の更新不可」を示す値に更新すれば,エンドユーザがICカード1を利用する運用工程において,アプリケーション11が認識するインタフェースを,コマンドAPDUを受信したインタフェースに限定できる。 By providing the IC card 1 with the function for updating the control information 102, the function of notifying the application 11 of the virtual interface can be enabled only in the necessary steps. For example, if the notification control flag 102b of the control information 102 is set to a value indicating "valid of virtual interface" and the update control flag 102c of the control information 102 is set to a value indicating "updatable control information 102", software An interface to be recognized by the application 11 can be arbitrarily set in the development process and the card issuing process. In the final process of the card issuing process of the IC card 1, the notification control flag 102b of the control information 102 is updated to a value indicating "invalid virtual interface", and the update control flag 102c of the control information 102 is set to "control." If the value is updated to a value indicating that the information 102 cannot be updated, the interface recognized by the application 11 can be limited to the interface that received the command APDU in the operation process in which the end user uses the IC card 1.

なお,本実施形態では,ICカード1が対応しているインタフェースは,接触型インタフェース20(例えば,ISO7816−3に準拠したインタフェース)および非接触型インタフェース21(例えば,ISO14443−2準拠したインタフェース)にしているが,ICカード1が対応しているインタフェースはこれ以外の組合せでもよい。例えば,ICカード1は,WO2005/122070号公報に記載されたICカードのように,ISO7816−3に準拠したインタフェースとUSBインタフェースに対応したICカードでもよい。また,ICカード1は,スマートフォンに代表されるUIMのように,ISO7816−3に準拠したインタフェースとSWP/HCIに対応したICカードでもよい。 In the present embodiment, the interface supported by the IC card 1 is the contact type interface 20 (for example, the interface conforming to ISO7816-3) and the non-contact type interface 21 (for example, the interface conforming to ISO14443-2). However, the interface supported by the IC card 1 may be a combination other than this. For example, the IC card 1 may be an IC card compatible with an interface conforming to ISO7816-3 and a USB interface, such as the IC card described in WO2005/122070. Further, the IC card 1 may be an IC card compatible with an interface conforming to ISO7816-3 and SWP/HCI, such as UIM typified by a smartphone.

1 ICカード
10 オペレーティングシステム(OS)
100 インタフェース通知部
101 制御情報更新部
102 制御情報
102a 仮想インタフェース情報
102b 通知制御フラグ
102c 更新制御フラグ
103 コマンド処理部
11 アプリケーション
20 接触型インタフェース
21 非接触型インタフェース
1 IC card 10 Operating system (OS)
100 Interface Notification Unit 101 Control Information Update Unit 102 Control Information 102a Virtual Interface Information 102b Notification Control Flag 102c Update Control Flag 103 Command Processing Unit 11 Application 20 Contact Interface 21 Contactless Interface

Claims (3)

複数のインタフェースに対応し,NVMにロードされたアプリケーションの実行環境を提供するオペレーティングシステムを実装したICカードであって,
仮想インタフェースとして設定されたインタフェースを示す仮想インタフェース情報と,前記仮想インタフェースの有効または無効を示す通知制御フラグを含む制御情報をNVMに記憶し,端末装置から受信したコマンドAPDUを処理する前記アプリケーションからインタフェース通知要求を受けると,NVMから前記制御情報を読み出し,NVMから読み出した前記通知制御フラグにより仮想インタフェースの有効が示される場合,前記仮想インタフェース情報を前記アプリケーションに通知し,NVMから読み出した前記制御情報の前記通知制御フラグにより前記仮想インタフェースの無効が示される場合,コマンドAPDUを受信したインタフェースを示す情報を前記アプリケーションへ通知するインタフェース通知部を前記オペレーティングシステムに備え,
前記オペレーティングシステム上で動作する前記アプリケーションは,前記オペレーティングシステムからコマンドAPDUが引き渡されると,前記インタフェース通知部にインタフェース通知要求を行う,
ことを特徴とするICカード。
An IC card having an operating system that supports multiple interfaces and provides an execution environment for applications loaded in NVM.
Virtual interface information indicating an interface set as a virtual interface and control information including a notification control flag indicating whether the virtual interface is valid or invalid are stored in the NVM, and an interface from the application that processes the command APDU received from the terminal device is received. When the notification request is received, the control information is read from the NVM, and when the notification control flag read from the NVM indicates that the virtual interface is valid, the virtual interface information is notified to the application and the control information read from the NVM. If the notification control flag indicates that the virtual interface is invalid, the operating system is provided with an interface notification unit that notifies the application of information indicating an interface that has received a command APDU,
When the command APDU is delivered from the operating system, the application operating on the operating system makes an interface notification request to the interface notifying unit,
An IC card characterized by
接触型インタフェースと非接触型インタフェースに対応したデュアルインタフェースICカードとしたことを特徴する,請求項1に記載したICカード。 The IC card according to claim 1, wherein the IC card is a dual interface IC card compatible with a contact type interface and a non-contact type interface. 前記制御情報の更新可または前記制御情報の更新不可を示す更新制御フラグを前記制御情報に含み,前記制御情報を更新するコマンドAPDUを端末装置から受信すると,NVMから前記制御情報を読み出し,NVMから読み出した前記更新制御フラグにより前記制御情報の更新可が示される場合,前記端末装置から受信したコマンドAPDUに応じてNVMに記憶された前記制御情報を更新する制御情報更新部を前記オペレーティングシステムに備えたことを特徴とする,請求項1または請求項2に記載したICカード。
When the control information includes an update control flag indicating whether the control information can be updated or the control information cannot be updated, and a command APDU for updating the control information is received from the terminal device, the control information is read from the NVM and the NVM is read. When the read update control flag indicates that the control information can be updated, the operating system is provided with a control information update unit that updates the control information stored in the NVM according to the command APDU received from the terminal device. The IC card according to claim 1 or 2, characterized in that
JP2016198711A 2016-10-07 2016-10-07 IC card Active JP6717154B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016198711A JP6717154B2 (en) 2016-10-07 2016-10-07 IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016198711A JP6717154B2 (en) 2016-10-07 2016-10-07 IC card

Publications (2)

Publication Number Publication Date
JP2018060433A JP2018060433A (en) 2018-04-12
JP6717154B2 true JP6717154B2 (en) 2020-07-01

Family

ID=61910058

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016198711A Active JP6717154B2 (en) 2016-10-07 2016-10-07 IC card

Country Status (1)

Country Link
JP (1) JP6717154B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3863011B2 (en) * 2001-11-29 2006-12-27 シャープ株式会社 Combination type IC card, control method therefor, and system program therefor
JP2011043878A (en) * 2009-08-19 2011-03-03 Toppan Printing Co Ltd Inspection system and inspection method

Also Published As

Publication number Publication date
JP2018060433A (en) 2018-04-12

Similar Documents

Publication Publication Date Title
JP2012064048A (en) Portable electronic device, non-contact ic card and command processing method for portable electronic device
US10498671B2 (en) IC card, portable electronic apparatus, and IC card processing apparatus
JP6717154B2 (en) IC card
WO2013042682A1 (en) Ic card, portable electronic device, and ic card control method
JP5085254B2 (en) Portable electronic device, IC card, and command processing method in portable electronic device
JP7366765B2 (en) Control program for IC cards, IC card processing systems, and IC card processing devices
JP5823109B2 (en) Portable electronic device and method for controlling portable electronic device
JP2015125627A (en) Ic card and mobile electronic device
JP2014059731A (en) Ic card and mobile electronic device
JP6092342B2 (en) Non-contact portable electronic device and method for issuing non-contact portable electronic device
JP2011150661A (en) Portable electronic device and portable electronic device control method
EP4053743B1 (en) Ic card and control program for ic card
JP7605017B2 (en) Contactless secure element, device and extended ATQB transmission control method
JP5684051B2 (en) Portable electronic device, IC card, and control method for portable electronic device
JP5832940B2 (en) IC card and portable electronic device
JP2007087120A (en) IC card mounted with a plurality of OSs, and issuance delegation method
EP3174213A1 (en) Application activation in a smart device
JP6178387B2 (en) Electronic device and method for controlling electronic device
JP2017142655A (en) Electronic information storage medium, information processing method, and information processing program
JP2018060455A (en) Electronic information storage medium, command processing method, and command processing program
JP2018097470A (en) Ic card, portable electronic device and processor
JP6221454B2 (en) Processing device, IC card, processing method, and processing program
JP6819201B2 (en) Electronic information storage medium, IC card, setting information transmission method, and setting information transmission program
JP5875772B2 (en) Portable electronic device, control method for portable electronic device, and processing system for portable electronic device
JP5677195B2 (en) Portable electronic device and method for controlling portable electronic device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190829

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200423

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200525

R150 Certificate of patent or registration of utility model

Ref document number: 6717154

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150