JP2023039526A - Contactless communication device, contactless chip, and upper layer message processing method - Google Patents
Contactless communication device, contactless chip, and upper layer message processing method Download PDFInfo
- Publication number
- JP2023039526A JP2023039526A JP2021146685A JP2021146685A JP2023039526A JP 2023039526 A JP2023039526 A JP 2023039526A JP 2021146685 A JP2021146685 A JP 2021146685A JP 2021146685 A JP2021146685 A JP 2021146685A JP 2023039526 A JP2023039526 A JP 2023039526A
- Authority
- JP
- Japan
- Prior art keywords
- application
- communication device
- upper layer
- collision
- processing
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
【課題】アンチコリジョン処理で用いられるデバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションを,カレントになるアプリケーションに基づいて決定する非接触通信デバイスを提供する。
【解決手段】非接触通信デバイス1は,暗黙的にカレントにするアプリケーションを示すアプリケーション情報を記憶したメモリ21と,アンチコリジョン処理において,上位層メッセージを格納したデバイス選択コマンドを受信すると,アプリケーション情報をメモリ21から検索し,メモリ21から検索できたアプリケーション情報で示されるアプリケーションに上位層メッセージを引き渡して処理させるアンチコリジョン手段10を備える。
【選択図】図7
Kind Code: A1 A contactless communication device is provided that determines an application to which an upper layer message stored in a device selection command used in anticollision processing is delivered, based on the current application.
A non-contact communication device 1 receives a memory 21 storing application information indicating an application to be made current implicitly, and upon receiving a device selection command storing an upper layer message in anticollision processing, the contactless communication device 1 stores the application information. An anti-collision means 10 is provided for retrieving from the memory 21 and passing the upper layer message to the application indicated by the application information retrieved from the memory 21 for processing.
[Selection drawing] Fig. 7
Description
本発明は,非接触通信に対応した非接触チップを実装した非接触通信デバイスに関する。 The present invention relates to a contactless communication device mounted with a contactless chip compatible with contactless communication.
NFC規格(NFC: Near field communication)に対応した非接触チップは,非接触ICカードまたはスマートフォンなどの様々なデバイスに実装されている。ここでは,非接触チップを実装したデバイスを非接触通信デバイスと呼んでいる。 Contactless chips compatible with the NFC standard (NFC: Near field communication) are mounted in various devices such as contactless IC cards and smartphones. Here, a device mounted with a contactless chip is called a contactless communication device.
NFC規格で規定されている非接触通信規格は1つではない。NFC規格で規定された非接触通信規格には,ISO/IEC18092(例えば,Felica(登録商標))に加え,ISO/IEC14443_TypeAおよびISO/IEC14443_TypeBがある。 The NFC standard defines more than one contactless communication standard. Contactless communication standards defined by the NFC standard include ISO/IEC14443_TypeA and ISO/IEC14443_TypeB in addition to ISO/IEC18092 (for example, Felica (registered trademark)).
ISO/IEC14443_TypeBは,日本国内において,高いセキュリティが要求される用途で利用されている。例えば,日本国内において,ISO/IEC14443_TypeBは,マイナンバーカード,パスポートおよび運転免許証などで利用されている。 ISO/IEC14443_TypeB is used in Japan for applications that require high security. For example, in Japan, ISO/IEC14443_TypeB is used for my number cards, passports, driver's licenses, and the like.
図8は,ISO/IEC14443_TypeBのアンチコリジョン処理を説明する図である。なお,ISO/IEC14443_TypeBでは,アンチコリジョン処理を初期化および衝突防止と呼んでいる。 FIG. 8 is a diagram for explaining anti-collision processing of ISO/IEC14443_TypeB. In ISO/IEC14443_TypeB, anticollision processing is called initialization and anticollision.
ISO/IEC14443_TypeBのアンチコリジョン処理において,非接触通信デバイスの最初の状態はPOWER-OFF状態S20である。POWER-OFF状態S20は,非接触通信デバイスに実装された非接触チップに電力が供給されていない状態である。すなわち,POWER-OFF状態S20において,非接触通信デバイスは,動作磁界を発生するPCD(Proximity Coupling Device)の近傍にない。 In the ISO/IEC14443_TypeB anti-collision process, the initial state of the contactless communication device is the POWER-OFF state S20. The POWER-OFF state S20 is a state in which power is not supplied to the contactless chip mounted on the contactless communication device. That is, in the POWER-OFF state S20, the contactless communication device is not in the vicinity of the PCD (Proximity Coupling Device) that generates the operating magnetic field.
動作磁界を発生するPCDの近傍に非接触通信デバイスが置かれると,非接触チップに電力が供給される。非接触通信デバイスの状態は,POWER-OFF状態S20からIDLE状態S21に遷移する。IDLE状態S21において,非接触通信デバイスは,リクエストコマンド(REQB)を認識する。IDLE状態S21において非接触通信デバイスが,AFI(Application Family Identifier)が一致するリクエストコマンド(または,AFIが「0」のリクエストコマンド)を認識すると,非接触通信デバイスの状態は,IDLE状態S21からREADY-REQUESTED状態S22に遷移する。 Power is supplied to the contactless chip when the contactless communication device is placed in the vicinity of the PCD that produces the operating magnetic field. The state of the contactless communication device transitions from the POWER-OFF state S20 to the IDLE state S21. In IDLE state S21, the contactless communication device recognizes a request command (REQB). When the contactless communication device recognizes a request command whose AFI (Application Family Identifier) matches (or a request command whose AFI is “0”) in the IDLE state S21, the state of the contactless communication device changes from the IDLE state S21 to READY. - Transition to the REQUESTED state S22.
リクエストコマンドを認識した非接触通信デバイスは,READY-REQUESTED状態S22において,リクエストコマンドの応答であるリクエスト応答(ATQB)を送出する。リクエスト応答を送出すると,非接触通信デバイスの状態は,READY-REQUESTED状態S22からREADY-DECLARED状態S23に遷移する。 The contactless communication device that has recognized the request command sends out a request response (ATQB) as a response to the request command in the READY-REQUESTED state S22. When the request response is sent, the state of the contactless communication device transitions from READY-REQUESTED state S22 to READY-DECLARED state S23.
READY-DECLARED状態S23において,非接触通信デバイスは,非接触通信デバイスを選択するコマンドであるデバイス選択コマンド(ATTRIB)を少なくとも認識できる。非接触チップが保持しているPUPI(Pseudo-Unique PICC Identifier)と一致するPUPIを含むデバイス選択コマンドを非接触通信デバイスが受信すると,非接触通信デバイスの状態は,READY-REQUESTED状態S23から活性化状態S24(ACTIVE状態)に遷移する。活性化状態S24は,アプリケーションのコマンドを受け付ける状態である。 In the READY-DECLARED state S23, the contactless communication device can at least recognize a device selection command (ATTRIB), which is a command to select the contactless communication device. When the contactless communication device receives a device selection command including a PUPI (Pseudo-Unique PICC Identifier) that matches the PUPI held by the contactless chip, the state of the contactless communication device is activated from the READY-REQUESTED state S23. It transitions to state S24 (ACTIVE state). The activated state S24 is a state in which application commands are accepted.
このように,ISO/IEC14443_TypeBにおいて,アプリケーションのコマンドを受け付ける活性化状態S24に非接触通信デバイスの状態を遷移させるコマンドはデバイス選択コマンドになる。ISO/IEC14443_TypeBでは,オプションの情報として上位層に引き渡す上位層メッセージをデバイス選択コマンドに格納できる。上位層に引き渡す上位層メッセージを格納したデバイス選択コマンドの応答には上位層メッセージの処理結果を含ませることができる。 As described above, in ISO/IEC14443_TypeB, the command for changing the state of the non-contact communication device to the activated state S24 that accepts the application command is the device selection command. In ISO/IEC14443_TypeB, an upper layer message to be passed to the upper layer as optional information can be stored in the device selection command. A response to the device selection command storing the upper layer message to be passed to the upper layer can include the processing result of the upper layer message.
このように,デバイス選択コマンドには上位層に引き渡す上位層メッセージを格納できる。しかし,この上位層メッセージの具体的な使用方法は,ISO/IEC14443_TypeBでは定義されていない。例えば,特許文献1では,ファイルの指定情報(ファイルの識別情報)を上位層メッセージとしてデバイス選択コマンドに格納させている。また,特許文献2では,相互認証コマンドの少なくとも一部を上位層メッセージとしてデバイス選択コマンドに格納している。更に,特許文献3では,TVL構造のコマンドを上位層メッセージとしてデバイス選択コマンドに格納している。
Thus, the device selection command can store an upper layer message to be passed to the upper layer. However, the specific method of using this upper layer message is not defined in ISO/IEC14443_TypeB. For example, in
デバイス選択コマンドに格納された上位層メッセージは上位層のアプリケーションに引き渡すデータになるが,非接触通信デバイスを認識して活性化状態にするアンチコリジョン処理を実行している時点で,アプリケーションは選択されていない。よって,デバイス選択コマンドに格納された上位層メッセージをアプリケーションに引き渡すには,この上位層メッセージを引き渡すアプリケーションを明確にしておく必要がある。 The upper-layer message stored in the device selection command becomes the data to be passed to the upper-layer application. not Therefore, in order to pass the upper layer message stored in the device selection command to the application, it is necessary to clarify the application to which this upper layer message is passed.
非接触通信デバイスでは,カレントになるアプリケーションに設定されたセキュリティが適用される。このため,デバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションを,カレントになるアプリケーションに基づいて決定できることが望ましいと考えられる。 The contactless communication device applies the security set for the application that becomes current. Therefore, it would be desirable to be able to determine the application to which the upper layer message contained in the device selection command is passed based on the current application.
そこで,本発明では,アンチコリジョン処理で用いられるデバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションを,カレントになるアプリケーションに基づいて決定する非接触通信デバイスを提供する。また,本発明では,この非接触通信デバイスに実装する非接触ICチップを提供する。更に,本発明では,アンチコリジョン処理で用いられるデバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションを,カレントになるアプリケーションに基づいて決定する方法を提供する。 Therefore, the present invention provides a non-contact communication device that determines an application to which an upper layer message stored in a device selection command used in anticollision processing is passed based on the current application. The present invention also provides a contactless IC chip to be mounted on this contactless communication device. Furthermore, the present invention provides a method of determining, based on the current application, the application to which the upper layer message stored in the device selection command used in anticollision processing is delivered.
上述した課題を解決する第1発明に係る非接触通信デバイスは,暗黙的にカレントにするアプリケーションを把握できるように,暗黙的にカレントにするアプリケーションを示すアプリケーション情報を記憶したメモリを備える。また,前記非接触通信デバイスは,デバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションを,暗黙的にカレントになるアプリケーションに基づいて決定できるように,アンチコリジョン処理において,上位層メッセージを格納したデバイス選択コマンドを受信すると,前記アプリケーション情報を前記メモリから検索し,前記メモリから検索できた前記アプリケーション情報で示されるアプリケーションに上位層メッセージを引き渡して処理させるアンチコリジョン手段を備える。 A non-contact communication device according to a first aspect of the present invention for solving the above-described problems includes a memory storing application information indicating an implicit current application so that an implicit current application can be grasped. Further, the contactless communication device stores the upper layer message in anti-collision processing so that the application to which the upper layer message stored in the device selection command is passed can be implicitly determined based on the current application. An anti-collision means is provided for, upon receiving a device selection command, retrieving the application information from the memory and delivering an upper layer message to the application indicated by the application information retrieved from the memory for processing.
第1発明に係る非接触通信デバイスでは,暗黙的にカレントにするアプリケーションを,アンチコリジョン処理が終了して活性化状態になったときに暗黙的にカレントにするデフォルトアプリケーションにできる。この場合,第1発明に係る非接触通信デバイスにおいて,アンチコリジョン処理が終了して活性化状態になったときに暗黙的にカレントにするデフォルトアプリケーションを示す前記アプリケーション情報を前記メモリに記憶させる。また,前記アンチコリジョン手段は,前記デフォルトアプリケーションを示す前記アプリケーション情報のみを前記メモリから検索できた場合,前記デフォルトアプリケーションに上位層メッセージを引き渡して処理させる。 In the contactless communication device according to the first aspect of the invention, the application that is implicitly made current can be the default application that is implicitly made current when the anti-collision process is completed and the device is activated. In this case, in the contactless communication device according to the first aspect of the invention, the memory stores the application information indicating the default application implicitly made current when the anticollision process is finished and the anticollision process is finished and the anticollision process is activated. Further, when only the application information indicating the default application can be retrieved from the memory, the anti-collision means hands over the upper layer message to the default application for processing.
第1発明に係る非接触通信デバイスでは,暗黙的にカレントにするアプリケーションを,アンチコリジョン処理において暗黙的にカレントするアンチコリジョン用アプリケーションにできる。この場合,第1発明に係る非接触通信デバイスにおいて,アンチコリジョン処理において暗黙的にカレントするアンチコリジョン用アプリケーションを示す前記アプリケーション情報を前記メモリに記憶させる。また,前記アンチコリジョン手段は,前記デフォルトアプリケーションを示す前記アプリケーション情報を検索できたか否かに係わらず,前記アンチコリジョン用アプリケーションを示す前記アプリケーション情報を前記メモリから検索できた場合,前記アンチコリジョン用アプリケーションに上位層メッセージを引き渡して処理させる。 In the contactless communication device according to the first invention, the implicit current application can be an anti-collision application that is implicitly current in anti-collision processing. In this case, in the non-contact communication device according to the first invention, the memory stores the application information indicating the anti-collision application implicitly current in the anti-collision process. Further, the anti-collision means, regardless of whether or not the application information indicating the default application has been retrieved, if the application information indicating the anti-collision application can be retrieved from the memory, the anti-collision application hand over the upper layer message for processing.
第2発明に係る非接触チップは,第1発明に係る非接触通信デバイスに実装する非接触チップである。第1発明に係る非接触通信デバイスの構成要素は,前記非接触通信デバイスに実装する非接触チップに備えさせることができる。よって,本発明では,前記非接触通信デバイスに実装する非接触チップについても特許権を請求する。 A contactless chip according to the second invention is a contactless chip to be mounted on the contactless communication device according to the first invention. The constituent elements of the contactless communication device according to the first invention can be provided in a contactless chip mounted on the contactless communication device. Therefore, in the present invention, a patent right is also claimed for the contactless chip mounted on the contactless communication device.
第3発明に係る上位層メッセージの処理方法は,非接触通信デバイスにおいてアンチコリジョン処理を実行する手段が実行する手順として,手順a,手順bおよび手順cを含む。前記手順aにおいて,前記手段は,アンチコリジョン処理において,上位層メッセージを格納したデバイス選択コマンドを受信する。デバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションを,暗黙的にカレントになるアプリケーションに基づいて決定できるように,前記手順bにおいて,前記手段は,暗黙的にカレントにするアプリケーションを示すアプリケーション情報をメモリから検索し,前記手順cにおいて,前記手段は,メモリから検索した前記アプリケーション情報で示されるアプリケーションに上位層メッセージを引き渡して処理させる。 A method for processing an upper layer message according to a third aspect of the present invention includes procedure a, procedure b, and procedure c as procedures executed by means for executing anticollision processing in a contactless communication device. In the procedure a, the means receives a device selection command containing an upper layer message in anticollision processing. In step b, the means includes application information indicating the implicitly current application so that the application to which the upper layer message stored in the device selection command is delivered can be determined based on the implicitly current application. is retrieved from the memory, and in the procedure c, the means hands over the upper layer message to the application indicated by the application information retrieved from the memory for processing.
第3発明に係る上位層メッセージの処理方法では,暗黙的にカレントにするアプリケーションを,アンチコリジョン処理が終了して活性化状態になったときに暗黙的にカレントにするデフォルトアプリケーションにできる。この場合,前記手順bにおいて,前記手段は,アンチコリジョン処理が終了して活性化状態になったときに暗黙的にカレントにするデフォルトアプリケーションを示すアプリケーション情報のみをメモリから検索すると,前記手順cにおいて,前記デフォルトアプリケーションに上位層メッセージを引き渡して処理させる。 In the upper-layer message processing method according to the third aspect of the present invention, the application that is implicitly made current can be made the default application that is implicitly made current when the anti-collision process ends and the application is activated. In this case, in the procedure b, the means retrieves from the memory only the application information indicating the default application that is implicitly made current when the anti-collision process is completed and activated, and in the procedure c, , to pass the upper layer message to the default application for processing.
第3発明に係る上位層メッセージの処理方法では,暗黙的にカレントにするアプリケーションを,アンチコリジョン処理において暗黙的にカレントするアンチコリジョン用アプリケーションにできる。この場合,前記手順bにおいて,前記手段は,アンチコリジョン処理において暗黙的にカレントするアンチコリジョン用アプリケーションを示すアプリケーション情報をメモリから検索すると,前記手順cにおいて,前記手段は,前記デフォルトアプリケーションを示す前記アプリケーション情報を検索できたか否かに係わらず,前記アンチコリジョン用アプリケーションに上位層メッセージを引き渡して処理させる。 In the upper layer message processing method according to the third aspect of the present invention, an application that is implicitly made current can be an anticollision application that is implicitly made current in anticollision processing. In this case, in the procedure b, the means searches the memory for the application information indicating the anti-collision application implicitly current in the anti-collision process, and in the procedure c, the means indicates the default application. The upper layer message is passed to the anti-collision application for processing regardless of whether the application information can be retrieved.
本発明の課題を解決するため,本発明では,暗黙的にカレントになるアプリケーションを示すアプリケーション情報を非接触通信デバイスのメモリに記憶させ,アンチコリジョン処理で用いられるデバイス選択コマンドに含まれる上位層メッセージを引き渡すアプリケーションを,メモリに記憶されたアプリケーション情報に基づいて決定している。 In order to solve the problem of the present invention, in the present invention, application information indicating an application that implicitly becomes current is stored in the memory of a contactless communication device, and an upper layer message included in a device selection command used in anticollision processing is stored. based on application information stored in memory.
ここから,本発明に係る実施形態について記載する。本実施形態は,本発明の理解を容易にするためのものであり,本発明は,本実施形態に限定されるものではない。また,特に断りのない限り,図面は,本発明の理解を容易にするために描かれた模式的な図である。 Embodiments according to the present invention will now be described. This embodiment is intended to facilitate understanding of the present invention, and the present invention is not limited to this embodiment. In addition, unless otherwise specified, the drawings are schematic diagrams drawn to facilitate understanding of the present invention.
本実施形態に係る非接触通信デバイス1について説明する。図1は,本実施形態に係る非接触通信デバイス1を説明する図である。本実施形態に係る非接触通信デバイス1は,ISO/IEC14443_TypeBに対応したデバイスである。PCD6(Proximity Coupling Device)は,非接触通信デバイス1に電力を誘導結合で供給し,かつ,非接触通信デバイス1とデータ交換を行う読み書き装置である。非接触通信デバイス1は,コイルアンテナ1aとこれに接続した非接触チップ2を内蔵し,PCD6が送信したコマンドを処理する。
A
図1では,非接触通信デバイス1を非接触ICカードとして図示しているが,非接触ICカードは非接触通信デバイス1の1つの形態にしか過ぎない。非接触通信デバイス1は,コイルアンテナ1aとこれに接続した非接触チップ2を実装した媒体であればよい。非接触通信デバイス1の形状をスティック状またはコイン状にもできる。また,非接触チップ2を実装したスマートフォンなどのモバイル端末も非接触通信デバイス1の形態に含まれる。
Although FIG. 1 illustrates the
図2では,非接触通信デバイス1のハードウェア構成図を図示している。図2では,非接触通信に係る非接触通信デバイス1の回路のみを図示している。図2で図示したごとく,非接触通信デバイス1は,コイルアンテナ1aを備えている。コイルアンテナ1aには非接触チップ2が接続している。ISO/IEC14443_TypeBに対応するために,コイルアンテナ1aは13.56MHの周波数に調整されている。
FIG. 2 shows a hardware configuration diagram of the
図2で図示した非接触チップ2は,電源回路22,変調回路24,復調回路23,CPU20(Central Processing Unit)およびメモリ21を備えている。電源回路22は,PCD6が発振する搬送波から非接触チップ2の動作電力を発生させる回路である。変調回路24は,PCD6が発振する搬送波にデータを載せる処理を行う回路である。復調回路23は,PCD6が発振する搬送波に載せられたデータを復元する処理を行う回路である。CPU20は,非接触チップ2の中心的な処理装置である。メモリ21は,電気的に書き換え可能な不揮発性メモリである。
The
図2で図示したごとく,電源回路22,復調回路23および変調回路24それぞれはコイルアンテナ1aと接続している。また,電源回路22,復調回路23および変調回路24に加えて,メモリ21がCPU20と接続している。なお,図2では,非接触チップ2が備える一部の回路のみを図示している。非接触チップ2には,図2で図示した回路以外に,非接触チップ2の動作に必要な様々な回路を備える。例えば,非接触チップ2は,電気的に書き換え可能なメモリ21以外に,読取専用の不揮発性メモリおよび揮発性メモリを備える。
As shown in FIG. 2, the
図3では,非接触通信デバイス1の階層構造3を図示している。非接触通信デバイス1の階層構造3は,物理層(ハードウェア)30,物理層(電波)31,データリンク層32,トランスポート層33およびアプリケーション層34を含む。物理層(ハードウェア)30は,ISO/IEC14443_Part1で規定された層である。物理層(電波)31は,ISO/IEC14443_Part2で規定された層である。データリンク層32は,ISO/IEC14443_Part3で規定された層である。データリンク層32は,アンチコリジョン処理(初期化および衝突防止)を実行する層になる。トランスポート層33は,ISO/IEC14443_Part4で規定された層になる。トランスポート層33は,伝送プロトコルを実行する層になる。アプリケーション層34は,ISO/IEC7816_Part4などで規定されている。例えば,アプリケーション層34は,ISO/IEC7816_Part4で規定されたコマンドAPDU(Application Protocol Data Unit)を処理する層になる。
In FIG. 3, the
図3で図示した非接触通信デバイス1の階層構造3において,物理層(ハードウェア)30および物理層(電波)31は,コイルアンテナ1aおよび非接触チップ2により実現される。データリンク層32,トランスポート層33およびアプリケーション層34は,非接触チップ2に実装されるコンピュータプログラムにより実現される。
In the
図4は,本実施形態に係る非接触通信デバイス1の機能ブロック図を図示している。本実施形態に係る非接触通信デバイス1は,データリンク層32に係る処理を実行する手段として,アンチコリジョン手段10を備えている。アンチコリジョン手段10は,非接触チップ2のCPU20を動作させるコンピュータプログラムで実現される。本実施形態に係るアンチコリジョン手段10は,データリンク層32に係る処理として,ISO/IEC14443-TypeBで規定されたアンチコリジョン処理に係る処理を実行する。
FIG. 4 illustrates a functional block diagram of the
ISO/IEC14443-TypeBで規定されたアンチコリジョン処理で使用するコマンドの一つに,PCD6が非接触通信デバイスを選択するときに用いるデバイス選択コマンドがある。ISO/IEC14443-TypeBでは,デバイス選択コマンドのことをATTRIBと呼んでいる。デバイス選択コマンドには,上位層に処理させる上位層メッセージを格納させることができる。ISO/IEC14443-TypeBでは,デバイス選択コマンドの上層階層フィールドに上位層メッセージを格納する。
One of the commands used in the anti-collision processing defined by ISO/IEC14443-Type B is a device selection command used when the
非接触通信デバイス1の場合,デバイス選択コマンドに格納された上位層メッセージを引き渡す階層は,データリンク層32の上層になるアプリケーション層34になる。図4では,デフォルトアプリケーション12とアンチコリジョン用アプリケーション11がアプリケーション層34に実装されている。
In the case of the
アンチコリジョン処理はデータリンク層32に係る処理になる。このため,アンチコリジョン処理の実行中は,アプリケーション層34のアプリケーションを選択していない状態である。よって,デバイス格納コマンドに格納された上位層メッセージを引き渡す階層がアプリケーション層34になる場合,この上位層メッセージを引き渡すアプリケーションを明確にしなければならない。
Anti-collision processing is processing related to the
このことを鑑みて,本実施形態に係る非接触通信デバイス1が備えるアンチコリジョン手段10は,デバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションを暗黙的に選択するアプリケーションにするように構成されている。
In view of this, the anti-collision means 10 provided in the
非接触通信デバイス1の場合,暗黙的に選択するアプリケーションの一つとして,活性化状態S24になると暗黙的に選択するアプリケーションがある。本実施形態では,アンチコリジョン処理が終了して非接触通信デバイス1が活性化状態S24になったときに暗黙的に選択するアプリケーションをデフォルトアプリケーション12と呼んでいる。デバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションをデフォルトアプリケーション12にすることで,デフォルトアプリケーション12に設定された認証処理をアンチコリジョン処理で済ませておくことができる。
In the case of the
また,非接触通信デバイス1の場合,暗黙的に選択するアプリケーションの一つとして,アンチコリジョン処理において暗黙的に選択するアプリケーションがある。本実施形態では,アンチコリジョン処理で暗黙的に選択するアプリケーションをアンチコリジョン用アプリケーション11と呼んでいる。デバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションをアンチコリジョン用アプリケーション11にすることで,アンチコリジョン用アプリケーション11に設定された認証処理をアンチコリジョン処理で済ませておくことができる。
In the case of the
図5では,非接触通信デバイス1のファイル構造4の一例を図示している。非接触通信デバイス1のファイル構造4は,非接触通信デバイス1のメモリ21に格納されたファイルの構造である。図5で図示したごとく,非接触通信デバイス1のファイル構造4は,ファイル構造4の根幹となる主ファイルMF(Master File)と,アプリケーションを格納する専用ファイルDF(dedicated file)を含む。
FIG. 5 shows an example of the
図5では,非接触通信デバイス1のファイル構造4を,主ファイルMFの配下に専用ファイルDFを配置する階層構造にしているが,非接触通信デバイス1のファイル構造4は図5の構造に限定されない。非接触通信デバイス1のファイル構造4は,主ファイルMFとは独立して専用ファイルDFを配置する構造にもできる。
In FIG. 5, the
図5で図示したファイル構造4では,非接触通信デバイス1の全体に係るセキュリティ機能を有しているアプリケーションは主ファイルMFになる。よって,図5で図示したファイル構造4では,主ファイルMFがアンチコリジョン用アプリケーション11になる。この場合,主ファイルMFに関連付けられた認証処理をアンチコリジョ手続きで行える。また,図5で図示したファイル構造では,専用ファイルDFの1つがデフォルトアプリケーション12になる。この場合,専用ファイルDFに設定された認証処理をアンチコリジョ手続きで行える。
In the
このように,本実施形態に係る非接触通信デバイス1では,暗黙的にカレントになるアプリケーションは,デフォルトアプリケーション12とアンチコリジョン用アプリケーション11である。当然のことながら,暗黙的にカレントになるアプリケーションは,デフォルトアプリケーション12のみの場合もある。また,暗黙的にカレントになるアプリケーションは,アンチコリジョン用アプリケーション11のみの場合もある。
Thus, in the
データリンク層32に係るアンチコリジョン処理は,アプリケーション層34に格納されたアプリケーションの選択より前に実行される。このため,デフォルトアプリケーション12とアンチコリジョン用アプリケーション11の両方が非接触通信デバイス1に格納されている場合,デバイス選択コマンドに格納された上位層メッセージを引き渡すアプリケーションはアンチコリジョン用アプリケーション11になる。
Anti-collision processing related to the
図6は,非接触通信デバイス1のアンチコリジョン手段10が使用する情報を図示している。非接触通信デバイス1に実装されたメモリ21には,暗黙的に選択するアプリケーションを示すアプリケーション情報が記憶される。アンチコリジョン用アプリケーション11が非接触通信デバイス1に格納される場合,アンチコリジョン用アプリケーション情報13がメモリ21に記憶される。また,デフォルトアプリケーション12が非接触通信デバイス1に格納される場合,デフォルトアプリケーション情報14がメモリ21に記憶される。
FIG. 6 illustrates information used by the anti-collision means 10 of the
なお,アプリケーション情報は,アプリケーションの種別(アンチコリジョン用アプリケーション11またはデフォルトアプリケーション12)示すTagを有するTLV構造のデータにできる。このTLV構造のデータのValueには,アプリケーションに対応する専用ファイルの名称またはファイル識別子など,アプリケーションを指定するためのデータが格納される。
The application information can be data of a TLV structure having a tag indicating the type of application (
図7では,非接触通信デバイス1のアンチコリジョン手段10の動作を説明する図である。図7の説明は,本発明に係る上位層メッセージの処理方法に係る説明も兼ねている。非接触通信デバイス1が備えるアンチコリジョン手段10は,ISO14443_TypeBで規定されたアンチコリジョン処理に係る一連の処理を実行するが,図7では,デバイス選択コマンドに格納できる上位層メッセージに関連する処理のみ図示している。
FIG. 7 is a diagram for explaining the operation of the anti-collision means 10 of the
非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S1において,PCD6から受信したデバイス選択コマンドを処理する際,デバイス選択コマンドに上位層メッセージが格納されているか確認する。
The anti-collision means 10 provided in the
デバイス選択コマンドに上位層メッセージが格納されていない場合,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S10に進み,上位層メッセージの処理結果のないデバイス選択コマンドの応答を送信して,図7の手順は終了する。
If no upper layer message is stored in the device selection command, the anti-collision means 10 provided in the
デバイス選択コマンドに上位層メッセージが格納されている場合,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S2に進み,アプリケーション情報をメモリ21から検索する。
If an upper layer message is stored in the device selection command, the anti-collision means 10 provided in the
非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S3において,アンチコリジョン用アプリケーション情報13を検索できたか確認する。アンチコリジョン用アプリケーション情報13を検索できた場合,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S4に進み,デバイス選択コマンドに格納されている上位層メッセージをアンチコリジョン用アプリケーション11に引き渡して処理させる。アンチコリジョン用アプリケーション11は,図7の手順S5において,アンチコリジョン手段10から引き渡された上位層メッセージを処理する。アンチコリジョン用アプリケーション11が,アンチコリジョン手段10から引き渡された上位層メッセージに係る処理を完了すると,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S9に進み,アンチコリジョン用アプリケーション11から引き渡された上位層メッセージの処理結果を含ませたデバイス選択コマンドの応答を送信して,図7の手順は終了する。
The anti-collision means 10 provided in the
図7の手順S3において,アンチコリジョン用アプリケーション11のアプリケーション情報を検索できない場合,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S6において,デフォルトアプリケーション情報14を検索できたか確認する。
If the application information of the
デフォルトアプリケーション情報14を検索できた場合,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S7において,デフォルトアプリケーション12に,デバイス選択コマンドに格納されている上位層メッセージを引き渡して処理させる。デフォルトアプリケーション12は,図7の手順S8において,アンチコリジョン手段10から引き渡された上位層メッセージを処理する。デフォルトアプリケーション12が上位層メッセージに係る処理を完了すると,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S9に進み,デフォルトアプリケーション12から引き渡された上位層メッセージの処理結果を含ませたデバイス選択コマンドの応答を送信して,図7の手順は終了する。
If the
図7の手順S3において,デフォルトアプリケーション12のアプリケーション情報51を検索できない場合,非接触通信デバイス1が備えるアンチコリジョン手段10は,図7の手順S10に進み,上位層メッセージの処理結果のないデバイス選択コマンドの応答を送信して,図7の手順は終了する。
If the application information 51 of the
図7で図示した手順によれば,暗黙的に選択するアプリケーションが非接触通信デバイス1に設定されている場合,アンチコリジョン手段10は,デバイス選択コマンドに格納された上位層メッセージを暗黙的アプリケーションに引き渡して処理させる動作を行う。
According to the procedure illustrated in FIG. 7, when the application to be implicitly selected is set in the
暗黙的に選択するアプリケーションとしてアンチコリジョン用アプリケーション11が少なくとも非接触通信デバイス1に格納されている場合,デフォルトアプリケーション12のみが非接触通信デバイス1に格納されているか否かに係わらず,図7の手順S4および手順S5が実行される。そして,図7の手順S9において,アンチコリジョン用アプリケーション11が上位層メッセージを処理した処理結果を含むデバイス選択コマンドの応答が送信される。
When at least the
また,暗黙的に選択するアプリケーションとして,アンチコリジョン用アプリケーション11が非接触通信デバイス1に格納されておらず,デフォルトアプリケーション12のみが非接触通信デバイス1に格納されている場合,図7の手順S7および手順S8が実行される。そして,図7の手順S9において,デフォルトアプリケーション12が上位層メッセージを処理した処理結果を含むデバイス選択コマンドの応答が送信される。
Further, when the
1 非接触通信デバイス
10 アンチコリジョン手段
11 アンチコリジョン用アプリケーション
12 デフォルトアプリケーション
13 アンチコリジョン用アプリケーション情報
14 デフォルトアプリケーション情報
2 非接触チップ
20 CPU
21 メモリ
3 階層構造
32 データリンク層
34 アプリケーション層
REFERENCE SIGNS
21
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021146685A JP7468486B2 (en) | 2021-09-09 | 2021-09-09 | Contactless communication device, contactless chip and method for processing upper layer messages |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021146685A JP7468486B2 (en) | 2021-09-09 | 2021-09-09 | Contactless communication device, contactless chip and method for processing upper layer messages |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023039526A true JP2023039526A (en) | 2023-03-22 |
| JP7468486B2 JP7468486B2 (en) | 2024-04-16 |
Family
ID=85613853
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021146685A Active JP7468486B2 (en) | 2021-09-09 | 2021-09-09 | Contactless communication device, contactless chip and method for processing upper layer messages |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7468486B2 (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010238080A (en) * | 2009-03-31 | 2010-10-21 | Toshiba Corp | Medium processing apparatus, medium processing method, and non-contact communication medium |
| JP2012008888A (en) * | 2010-06-25 | 2012-01-12 | Toshiba Corp | Communication system, communication method, and portable electronic equipment |
| WO2018198813A1 (en) * | 2017-04-28 | 2018-11-01 | ソニー株式会社 | Communication device and method |
-
2021
- 2021-09-09 JP JP2021146685A patent/JP7468486B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010238080A (en) * | 2009-03-31 | 2010-10-21 | Toshiba Corp | Medium processing apparatus, medium processing method, and non-contact communication medium |
| JP2012008888A (en) * | 2010-06-25 | 2012-01-12 | Toshiba Corp | Communication system, communication method, and portable electronic equipment |
| WO2018198813A1 (en) * | 2017-04-28 | 2018-11-01 | ソニー株式会社 | Communication device and method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP7468486B2 (en) | 2024-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05307655A (en) | Remotely distinguishable small-sized card | |
| CN100388294C (en) | Contact data communication device, sending and receiving device and method | |
| US8123136B2 (en) | Processing apparatus of portable electronic devices, portable electronic device, and processing system of portable electronic devices | |
| US20080284572A1 (en) | Data control system, control server, data control method, and program | |
| KR102624022B1 (en) | Communication devices and methods | |
| JP2023039526A (en) | Contactless communication device, contactless chip, and upper layer message processing method | |
| EP2717193B1 (en) | IC card, portable electronic device, and reader/ writer | |
| WO2021052866A1 (en) | Method for managing a multi-application contactless device | |
| JP5444138B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PORTABLE ELECTRONIC DEVICE | |
| US12073280B2 (en) | IC card, IC card processing system, and computer-readable storage medium | |
| JP4590201B2 (en) | Data carrier and data carrier program | |
| JP2006012026A (en) | Portable information storage medium and program thereof | |
| JP2024173082A (en) | Electronic information storage medium, IC chip, IC card, reception block processing method, and program | |
| US7014119B2 (en) | Method of manufacturing smart cards | |
| JP7585412B1 (en) | Portable electronic device and IC card | |
| JP7435577B2 (en) | Proximity IC card, contactless chip, and command execution management method | |
| US20110090044A1 (en) | Information processing apparatus, communication apparatus, and program | |
| JP7424536B1 (en) | Electronic information storage medium, IC chip, IC card, communication parameter transmission method, and program | |
| JP4698942B2 (en) | Portable information storage medium | |
| JP2005301657A (en) | IC card storing a plurality of command tables in rewritable memory and command execution method | |
| JP2016035771A (en) | Non-contact portable electronic device and issuing method of non-contact portable electronic device | |
| JP5875772B2 (en) | Portable electronic device, control method for portable electronic device, and processing system for portable electronic device | |
| AU2002254795B2 (en) | Method of manufacturing smart cards | |
| JP2005228189A (en) | Portable information storage medium and program thereof | |
| JP2021099632A (en) | Ic card and control program for ic card |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230530 |
|
| A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20230530 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230905 |
|
| A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20231102 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20231201 |
|
| 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: 20240305 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240318 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7468486 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |