JP5983987B2 - IC card communication method and IC card - Google Patents

IC card communication method and IC card Download PDF

Info

Publication number
JP5983987B2
JP5983987B2 JP2011275198A JP2011275198A JP5983987B2 JP 5983987 B2 JP5983987 B2 JP 5983987B2 JP 2011275198 A JP2011275198 A JP 2011275198A JP 2011275198 A JP2011275198 A JP 2011275198A JP 5983987 B2 JP5983987 B2 JP 5983987B2
Authority
JP
Japan
Prior art keywords
communication
card
status
interface
communication status
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
JP2011275198A
Other languages
Japanese (ja)
Other versions
JP2013125492A (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 JP2011275198A priority Critical patent/JP5983987B2/en
Publication of JP2013125492A publication Critical patent/JP2013125492A/en
Application granted granted Critical
Publication of JP5983987B2 publication Critical patent/JP5983987B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明はICカードとリーダライタとの間における通信の技術分野に属する。特に、複数のインタフェースを有するICカードとリーダライタとの間の通信において、通信状況に応じて適正なインタフェースを選択して通信するICカード通信方法およびICカードに関する。   The present invention belongs to the technical field of communication between an IC card and a reader / writer. In particular, the present invention relates to an IC card communication method and an IC card that select and communicate with an appropriate interface according to the communication status in communication between an IC card having a plurality of interfaces and a reader / writer.

複数のインタフェースを有するICカードとリーダライタとの間の通信に関する技術が知られている。
たとえば、リーダライタ側のポーリング間隔に拘わらず、リーダライタとの間で適切な通信方式の通信インターフェースを用いて通信を行うことを目的とし、リーダライタからの呼び出し信号を受けると、呼び出し信号の通信方式とデフォルトとして設定されている通信インターフェースの通信方式とが同じであるか否かを判定し、通信方式が同じであればデフォルトの通信インターフェース(例えば、通信方式α)を使用し、通信方式が同じでなければ使用する通信インターフェースを別の通信方式の通信インターフェース(例えば通信方式β)に切り替える(特許文献1)。
また、携帯可能情報記録媒体の内部で何かしらのトラブルが発生した場合に、その原因を特定する目的で、ICカードは、非接触通信部と接触通信部を有する通信部と、非接触通信部と接触通信部を制御するCPU等を備え、CPUは、非接触通信部で主要な通信を行い、テストモードの場合に、非接触通信部から接触通信部に通信手段を切り替え、切り替えを行った接触通信部で内部処理情報としてのジャンプ先のアドレスの情報を接触用外部装置に通知する(特許文献2)。
また、利用者の待ち時間を短縮することを目的とし、ICカードは、非接触通信部と接触通信部とを有する通信部と、通信部を制御するCPU等を備え、CPUは、非接触通信部でリーダライタと主要な通信を行い、その通信を行っている間に非接触通信部から接触通信部に通信手段を切り替え、切り替えを行った接触通信部でPDA(第2の外部装置)と通信を行い、その通信完了後に接触通信部から非接触通信部に通信手段を切り替え、切り替えを行った非接触通信部リーダライタ20aに応答する(特許文献3)。
A technique related to communication between an IC card having a plurality of interfaces and a reader / writer is known.
For example, regardless of the polling interval on the reader / writer side, communication with the reader / writer is performed using a communication interface of an appropriate communication method. The communication method of the communication interface set as the default and the communication method is determined. If the communication method is the same, the default communication interface (for example, communication method α) is used, and the communication method is If not the same, the communication interface to be used is switched to a communication interface of another communication method (for example, communication method β) (Patent Document 1).
In addition, when any trouble occurs inside the portable information recording medium, for the purpose of identifying the cause, the IC card includes a communication unit having a non-contact communication unit and a contact communication unit, a non-contact communication unit, A CPU that controls the contact communication unit is provided. The CPU performs main communication in the non-contact communication unit, and in the test mode, the communication unit is switched from the non-contact communication unit to the contact communication unit, and the contact is performed. The communication unit notifies the contact external device of the information of the jump destination address as internal processing information (Patent Document 2).
Further, for the purpose of reducing the waiting time of the user, the IC card includes a communication unit having a non-contact communication unit and a contact communication unit, a CPU for controlling the communication unit, and the like. The main communication with the reader / writer is performed in the unit, the communication means is switched from the non-contact communication unit to the contact communication unit while the communication is performed, and the PDA (second external device) is switched with the switched contact communication unit. After communication is completed, the communication means is switched from the contact communication unit to the non-contact communication unit, and a response is made to the non-contact communication unit reader / writer 20a that has switched (Patent Document 3).

特開2006−072786JP2006-072786 特開2007−011419JP2007-011419 特開2007−034774JP2007-034774

ところで、ICカードのインターフェースとしては、外部端子付(接触型)の通信方式としてISO7816(ISO;International Organization for Standardization)、USB(Universal Serial Bus)、SWP(Single Wire Protocol)が知られており、また、非接触型(近接型)の通信方式としてTypeA、TypeB、TypeC(フェリカ(登録商標))が知られている。そして、接触型と近接型の両方の通信方式に対応するデュアルインターフェースカードが知られている。
上記の従来技術において、ICカードとリーダライタとの間の通信において、複数のインタフェースを使用する構成が開示されている。しかし、通信状況に応じて適合するインタフェースを選択する構成は開示されていない。
By the way, as an interface of an IC card, ISO 7816 (ISO: International Organization for Standardization), USB (Universal Serial Bus), SWP (Single Wire Protocol) are known as communication methods with an external terminal (contact type). As a non-contact type (proximity type) communication method, Type A, Type B, and Type C (Felica (registered trademark)) are known. A dual interface card compatible with both contact type and proximity type communication methods is known.
In the above-described prior art, a configuration using a plurality of interfaces in communication between an IC card and a reader / writer is disclosed. However, a configuration for selecting an interface suitable for the communication status is not disclosed.

本発明は上記の問題を解決するために成されたものである。その目的は、複数のインタフェースを有するICカードとリーダライタとの間の通信において、通信状況に応じて適正なインタフェースを選択して通信に使用するICカード通信方法とICカードを提供することにある。   The present invention has been made to solve the above problems. An object of the present invention is to provide an IC card communication method and an IC card which select and use an appropriate interface according to the communication status in communication between an IC card having a plurality of interfaces and a reader / writer. .

本発明の請求項1に係るICカード通信方法は、近接型の通信手段となる複数のインタフェースを有するICカードとリーダライタとの間の通信において、前記ICカードの複数のインタフェースにおける前記ICカードと前記リーダライタとの通信状況を検出する通信状況検出過程と、前記複数のインタフェースにおける前記通信状況の適否判定を行う通信適否判定過程と、前記適否判定にしたがって前記通信状況を検出した前記複数のインタフェースから通信に使用するインタフェースを選択するインタフェース選択過程と、を有するようにしたものである。
また、本発明の請求項2に係るICカード通信方法は、前記複数のインタフェースはさらに接触型の通信手段を含んでいるようにしたものである。
また、本発明の請求項3に係るICカード通信方法は、請求項1または2に係るICカード通信方法において、前記通信状況は通信速度と電力供給状態であるようにしたものである。
また、本発明の請求項4に係るICカード通信方法は、請求項1〜3のいずれかに係るICカード通信方法において、前記通信状況検出過程と前記通信適否判定過程はICカードが通信を行っている間も動作を継続し、適否判定で使用中の通信が不適合と判定されたときには、前記インタフェース選択過程が動作を開始するようにしたものである。
また、本発明の請求項5に係るICカード通信方法は、請求項1〜4のいずれかに係るICカード通信方法において、適否判定基準と接続優先順位を設定する通信設定手段を有し、前記通信状況検出過程は検出した通信状況を記憶し、前記通信適否判定過程は前記通信状況と前記適否判定基準を比較して通信状況の適否判定を記憶し、前記インタフェース選択過程は前記適否判定と前記接続優先順位に基いて通信に使用するインタフェースを選択するようにしたものである。
また、本発明の請求項6に係るICカードは、リーダライタとの間で通信を行う近接型の通信手段となる複数のインタフェースを有するICカードにおいて、前記複数のインタフェースにおける前記ICカードと前記リーダライタとの通信状況を検出する通信状況検出手段と、前記複数のインタフェースにおける前記通信状況の適否判定を行う通信適否判定手段と、前記適否判定にしたがって前記通信状況を検出した前記複数のインタフェースから通信に使用するインタフェースを選択するインタフェース選択手段と、を有するようにしたものである。
The IC card communication method according to claim 1 of the present invention is the communication between an IC card having a plurality of interfaces and a reader / writer serving as a proximity communication means, and the IC card in the plurality of interfaces of the IC card. a communication condition detection step of detecting a communication status with the reader-writer, a communication propriety determination process of performing determination on the appropriateness of the communication status of the plurality of interfaces, the plurality of interfaces that detects the communication status in accordance with the propriety determination And an interface selection process for selecting an interface to be used for communication.
In the IC card communication method according to claim 2 of the present invention, the plurality of interfaces further include contact-type communication means.
An IC card communication method according to claim 3 of the present invention is the IC card communication method according to claim 1 or 2, wherein the communication status is a communication speed and a power supply state.
An IC card communication method according to claim 4 of the present invention is the IC card communication method according to any one of claims 1 to 3, wherein the communication status detection process and the communication suitability determination process are performed by the IC card. The operation of the interface selection process is started when the communication in use is determined to be non-conforming in the suitability determination.
An IC card communication method according to claim 5 of the present invention is the IC card communication method according to any one of claims 1 to 4, further comprising communication setting means for setting suitability determination criteria and connection priority. The communication status detection process stores the detected communication status, the communication suitability determination process stores the communication status suitability determination by comparing the communication status and the suitability determination criteria, and the interface selection process includes the suitability determination and the The interface used for communication is selected based on the connection priority.
An IC card according to claim 6 of the present invention is an IC card having a plurality of interfaces serving as proximity communication means for communicating with a reader / writer, and the IC card and the reader in the plurality of interfaces. a communication condition detection means for detecting the communication status of the writer, a communication appropriateness determination means for performing suitability judgment of the communication status of the plurality of interfaces, the communication from the plurality of interfaces that detects the communication status in accordance with the propriety determination And an interface selection means for selecting an interface to be used.

本発明によれば、近接型の通信手段となる複数のインタフェースを有するICカードとリーダライタとの間の通信において、ICカードとリーダライタとの通信状況に応じて適正なインタフェースを選択して通信に使用するICカード通信方法およびICカードが提供される。 According to the present invention, in communication between an IC card having a plurality of interfaces serving as proximity communication means and a reader / writer, an appropriate interface is selected according to the communication status between the IC card and the reader / writer. An IC card communication method and an IC card used for the above are provided.

本発明のICカードの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the IC card of this invention. 本発明のICカードにおける通信状況のデータ形式の一例を示す図である。It is a figure which shows an example of the data format of the communication condition in the IC card of this invention. 本発明のICカードにおける適否判定基準のデータ形式の一例を示す図である。It is a figure which shows an example of the data format of the suitability criterion in the IC card of this invention. 本発明のICカードにおける適否判定のデータ形式の一例を示す図である。It is a figure which shows an example of the data format of the suitability determination in the IC card of this invention. 本発明のICカードにおける接続優先順位のデータ形式の一例を示す図である。It is a figure which shows an example of the data format of the connection priority in the IC card of this invention. 本発明のICカードにおける通信に使用するインタフェースを決定する過程を示すフロー図である。It is a flowchart which shows the process of determining the interface used for communication in the IC card of this invention. 本発明のICカードにおける通信に使用中のインタフェースを通信状態によって変更する過程を示すフロー図である。It is a flowchart which shows the process in which the interface currently used for communication in the IC card of this invention is changed according to a communication state.

次に、本発明の実施の形態について図を参照しながら説明する。本発明のICカードにおける構成の一例を図1に示す。図1に示すように、ICカードはリーダライタとの間で通信を行うためのインターフェース部1と、CPU、コプロセッサー、等から成り、信号処理、データ処理を行う処理部2と、RAM(Random Access Memory)、ROM(Read Only Memory)、EEPROM(Electrically Erasable Programmable Read-Only Memory)、等からなり、データ、プログラム(OS、アプリケーション)、等を記憶する記憶部3とから構成される。インターフェース部1において、11はTypeA通信手段、12はTypeB通信手段、13はTypeC通信手段、14はISO7816通信手段、15はUSB通信手段、16はSWP通信手段である。この構成から判るように、本発明におけるICカードとしては、UICC(Universal Integrated Circuit Card)、SIMカード(Subscriber Identity Module Card)、UIMカード(User Identity Module Card)、等が含まれている。図1に示す一例においては説明のために6つの通信手段を挙げているが、実際のICカードにおいては、それらすべての通信手段ではなく、その内から選択した複数の通信手段を備えていればよい。また、処理部2において、21は通信状況検出手段、22は通信適否判定手段、23はインタフェース選択手段、24は通信設定手段である。また、記憶部3において、31は通信状況、32は適否判定基準、33は適否判定、34は接続優先順位、35はOS、36はアプリケーションである。
なお、図1に示す構成においては、本発明に係わる構成が記載されており、一般のICカードが備える一般的な構成であっても本発明に直接係わらない構成は記載していない。
Next, embodiments of the present invention will be described with reference to the drawings. An example of the configuration of the IC card of the present invention is shown in FIG. As shown in FIG. 1, the IC card includes an interface unit 1 for performing communication with a reader / writer, a CPU, a coprocessor, and the like, a processing unit 2 for performing signal processing and data processing, and a RAM (Random The storage unit 3 includes an access memory (ROM), a read only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), and the like, and a storage unit 3 that stores data, programs (OS, applications), and the like. In the interface unit 1, 11 is a Type A communication means, 12 is a Type B communication means, 13 is a Type C communication means, 14 is an ISO7816 communication means, 15 is a USB communication means, and 16 is a SWP communication means. As can be seen from this configuration, the IC card in the present invention includes a UICC (Universal Integrated Circuit Card), a SIM card (Subscriber Identity Module Card), a UIM card (User Identity Module Card), and the like. In the example shown in FIG. 1, six communication means are listed for explanation. However, in an actual IC card, not all of these communication means but a plurality of communication means selected from them are provided. Good. In the processing unit 2, 21 is a communication status detecting unit, 22 is a communication suitability determining unit, 23 is an interface selecting unit, and 24 is a communication setting unit. In the storage unit 3, 31 is a communication status, 32 is a suitability determination criterion, 33 is a suitability determination, 34 is a connection priority, 35 is an OS, and 36 is an application.
In the configuration shown in FIG. 1, the configuration according to the present invention is described, and the configuration that is not directly related to the present invention is not described even if the configuration is a general configuration provided in a general IC card.

TypeA通信手段11は通信方式がTypeAの近接型の通信手段である。ICカードがTypeA通信手段11を有することにより、リーダライタがTypeAの通信方式で通信を行うときに、ICカードはTypeAの通信方式での通信をリーダライタとの間で行うことができる。TypeAは、リーダライタからICカードへの変調方式がASK(Amplitude Shift Keying)100%変調であり、符号化方式が変形マンチェスタ方式である。また、TypeAは、ICカードからリーダライタへの変調方式が副搬送波の周波数(847KHz)で負荷変調する方式であり、符号化方式はマンチェスタ方式である。TypeAについては周知であるから詳細な説明は省略する。   The Type A communication means 11 is a proximity type communication means whose communication method is Type A. Since the IC card has the Type A communication unit 11, when the reader / writer performs communication using the Type A communication method, the IC card can perform communication using the Type A communication method with the reader / writer. In Type A, the modulation method from the reader / writer to the IC card is ASK (Amplitude Shift Keying) 100% modulation, and the encoding method is a modified Manchester method. Type A is a method in which a modulation method from an IC card to a reader / writer performs load modulation at a subcarrier frequency (847 KHz), and a coding method is a Manchester method. Since Type A is well known, detailed description thereof is omitted.

TypeB通信手段12は通信方式がTypeBの近接型の通信手段である。ICカードがTypeB通信手段12を有することにより、リーダライタがTypeBの通信方式で通信を行うときに、ICカードはTypeBの通信方式での通信をリーダライタとの間で行うことができる。TypeBは、リーダライタからICカードへの変調方式がASK10%変調であり、符号化方式がNRZ−L(Non Return to Zero-Level)方式である。また、TypeBは、ICカードからリーダライタへの変調方式が副搬送波の周波数(847KHz)で負荷変調する方式であり、符号化方式はNRZ−L方式である。TypeBについては周知であるから詳細な説明は省略する。   The Type B communication means 12 is a proximity type communication means whose communication method is Type B. Since the IC card has the Type B communication means 12, when the reader / writer performs communication using the Type B communication method, the IC card can perform communication using the Type B communication method with the reader / writer. In Type B, the modulation method from the reader / writer to the IC card is ASK 10% modulation, and the encoding method is an NRZ-L (Non Return to Zero-Level) method. Type B is a method in which a modulation method from an IC card to a reader / writer performs load modulation at a subcarrier frequency (847 KHz), and an encoding method is an NRZ-L method. Since Type B is well known, detailed description thereof is omitted.

TypeC通信手段13は通信方式がTypeC(フェリカ;FeliCa(登録商標))の近接型の通信手段である。ICカードがTypeC通信手段13を有することにより、リーダライタがTypeCの通信方式で通信を行うときに、ICカードはTypeCの通信方式での通信をリーダライタとの間で行うことができる。TypeCは、変調方式がASK10%変調であり、符号化方式がマンチェスタ方式である。また、データ転送方式は副搬送波を用いない(搬送波周波数が13.56MHz)の半二重通信であり、定期的に通信の向きを切り替えることによって、リーダライタとICカードとの間の双方向通信を実現している。TypeCについては周知であるから詳細な説明は省略する。   The Type C communication means 13 is a proximity communication means whose communication method is Type C (FeliCa (registered trademark)). Since the IC card has the TypeC communication means 13, when the reader / writer communicates with the TypeC communication method, the IC card can communicate with the reader / writer using the TypeC communication method. In Type C, the modulation method is ASK 10% modulation, and the encoding method is the Manchester method. The data transfer method is half-duplex communication using no subcarrier (carrier frequency is 13.56 MHz), and bidirectional communication between the reader / writer and the IC card is performed by periodically switching the communication direction. Is realized. Since Type C is well known, detailed description thereof is omitted.

ISO7816通信手段14は通信方式がISO(International Organization for Standardization)7816に準拠した接触型の通信手段である。ICカードがISO7816通信手段14を有することにより、リーダライタがISO7816の通信方式で通信を行うときに、ICカードはISO7816の通信方式での通信をリーダライタとの間で行うことができる。ISO7816−2にはコンタクト(電気的接点)の配置、寸法、用途が規定されている。コンタクトは8つ(C1〜C8)存在し、その内の6つについて用途が規定され2つ(C4,C8)は将来用途とされている。また、ISO7816−3にはICカードとリーダライタとの間の電気的信号の送受信手順が規定されている。ISO7816の通信方式については周知であるから詳細な説明は省略する。   The ISO 7816 communication means 14 is a contact-type communication means whose communication method conforms to ISO (International Organization for Standardization) 7816. Since the IC card has the ISO 7816 communication means 14, when the reader / writer performs communication using the ISO 7816 communication method, the IC card can perform communication using the ISO 7816 communication method with the reader / writer. ISO 7816-2 defines the arrangement, dimensions, and use of contacts (electrical contacts). There are 8 contacts (C1 to C8), of which 6 are specified for use and 2 (C4, C8) are for future use. ISO 7816-3 defines a procedure for transmitting and receiving electrical signals between an IC card and a reader / writer. Since the communication system of ISO7816 is well known, detailed description is omitted.

USB通信手段15(USB;Universal Serial Bus)は通信方式がISO7816−12に準拠した、またはETSI−SCP(European Telecommunications Standards Institut−Smart Card Platform)(ETSI TS 102.600)で規格化された高速UICC(Universal Integrated Circuit Card)規格(IC_USB;Inter Chip_USB)に準拠した接触型の通信手段である。UICC等のICカードがUSB通信手段15を有することにより、リーダライタがISO7816−12の通信方式で通信を行うときに、ICカード(UICC)はISO7816−12または高速UICC規格の通信方式での通信をリーダライタとの間で行うことができる。高速UICC規格ではICカード(UICC)のC4とC8のコンタクトが使用される。USBの通信方式については周知であるから詳細な説明は省略する。   The USB communication means 15 (USB: Universal Serial Bus) is a high-speed UICC whose communication method conforms to ISO 7816-12 or is standardized by ETSI-SCP (European Telecommunications Standards Institut-Smart Card Platform) (ETSI TS 102.600). It is a contact-type communication means compliant with the (Universal Integrated Circuit Card) standard (IC_USB; Inter Chip_USB). Since the IC card such as UICC has the USB communication means 15, when the reader / writer communicates with the communication method of ISO7816-12, the IC card (UICC) communicates with the communication method of ISO7816-12 or the high-speed UICC standard. Can be performed with the reader / writer. In the high-speed UICC standard, C4 and C8 contacts of an IC card (UICC) are used. Since the USB communication system is well known, detailed description thereof is omitted.

SWP通信手段16はETSI−SCP(ETSI TS 102.613)で規格化されたSWP(Single Wire Protocol)に準拠した接触型の通信手段である。ICカードがSWP通信手段16を有することにより、リーダライタがSWPの通信方式で通信を行うときに、UICC等のICカードはSWPの通信方式での通信をリーダライタとの間で行うことができる。ETSI−SCPの規格ではICカード(UICC)のC6とC1のコンタクトが使用される。
また、UICCとCLF(Contactless Front End)との間の通信のために、SWPの上位層で通信を管理するHCI(Host Controller interFace)がETSI−SCP(ETSI TS 102.622)において規格化されている。このSWP/HCIの通信をSWP通信手段16が行うときには、NFC(Near Field Communication;近距離無線通信)のアプリケーションを内蔵したICカード(UICC)とCLFを備える携帯電話、通信装置、等において、非接触型の通信を行うことができる。SWPの通信方式については周知であるから詳細な説明は省略する。
The SWP communication means 16 is a contact type communication means compliant with SWP (Single Wire Protocol) standardized by ETSI-SCP (ETSI TS 102.613). By having the SWP communication means 16 in the IC card, when the reader / writer communicates with the SWP communication method, the IC card such as UICC can communicate with the reader / writer with the SWP communication method. . In the ETSI-SCP standard, contacts of C6 and C1 of an IC card (UICC) are used.
In addition, for communication between UICC and CLF (Contactless Front End), HCI (Host Controller interFace) that manages communication in an upper layer of SWP is standardized in ETSI-SCP (ETSI TS 102.622). Yes. When the SWP communication means 16 performs this SWP / HCI communication, in a mobile phone, communication device, etc. equipped with an IC card (UICC) and a CLF with a built-in NFC (Near Field Communication) application. Contact type communication can be performed. Since the SWP communication method is well known, a detailed description thereof will be omitted.

通信状況検出手段21は接続優先順位34を参照し、接続優先順位34において優先順位が決められているときには、その優先順位にしたがってICカードが備えている通信手段(インタフェース)を順番に活性化し動作させリーダライタとの通信接続を試行する。通信状況検出手段21は、その通信接続の試行において、ICカードが備えている通信手段におけるリーダライタとの通信状況を検出し、検出した通信状況を通信状況31として記憶部3に記憶する。優先順位にしたがって順番に通信状況が検出されるから、通信状況検出手段21は、その検出の都度、通信状況31を更新し、新たに検出した通信手段の通信状況を通信状況31に書き加える。検出の都度、通信状況31を更新することにより、通信に適合する通信手段を短時間に選択することが可能となる。
通信状況検出手段21は接続優先順位34を参照し、接続優先順位34において優先順位が決められていないときには、通信状況検出手段21はICカードが備えている通信手段のすべてに対して一巡するように任意の順番に活性化し動作させリーダライタとの通信接続を試行する。通信状況検出手段21は、その通信接続の試行において、ICカードが備えている通信手段におけるリーダライタとの通信状況を検出し、検出した通信状況を通信状況31として記憶部3に記憶する。優先順位が決められていないから、通信状況検出手段21は、一巡したところで、ICカードが備えている通信手段のすべての通信状況を一括して通信状況31に記憶する。一括して通信状況31に記憶することにより、最も適合する通信手段を選択することが可能となる。
The communication status detection means 21 refers to the connection priority 34, and when the priority is determined in the connection priority 34, the communication means (interface) provided in the IC card is activated in order according to the priority. And attempt communication connection with the reader / writer. The communication status detection means 21 detects the communication status with the reader / writer in the communication means provided in the IC card in the communication connection trial, and stores the detected communication status as the communication status 31 in the storage unit 3. Since the communication status is detected in order according to the priority order, the communication status detection means 21 updates the communication status 31 each time the detection is made, and writes the newly detected communication status of the communication means in the communication status 31. By updating the communication status 31 each time it is detected, it becomes possible to select a communication means suitable for communication in a short time.
The communication status detection unit 21 refers to the connection priority 34, and when the priority is not determined in the connection priority 34, the communication status detection unit 21 makes a round for all the communication units included in the IC card. Are activated and operated in any order, and communication connection with the reader / writer is tried. The communication status detection means 21 detects the communication status with the reader / writer in the communication means provided in the IC card in the communication connection trial, and stores the detected communication status as the communication status 31 in the storage unit 3. Since the priority order has not been determined, the communication status detection unit 21 stores all the communication statuses of the communication units included in the IC card in the communication status 31 in a single round. By storing the communication status 31 collectively, it is possible to select the most suitable communication means.

通信状況検出手段21が検出する通信状況としては、たとえば、ICカードが備えている通信手段とリーダライタとの間の通信接続の可否、通信接続が可能なときの通信速度、リーダライタからICカードへの電力供給状態、等である。
通信状況検出手段21が検出する通信速度は、各通信手段の通信規格において規定されている通信速度であって、その通信速度が複数存在するときには実際の通信において使用された通信速度とすることができる。通信規格では、たとえば、TypeCについて、通信速度は、第1世代が211Kbps、第2世代が倍の424Kbpsである。また、ISO7816のT=1プロトコルでは9.6Kbps、38.4Kbps、76.8Kbps、等の通信速度を選択可能である。
また、通信状況検出手段21が検出する通信速度は、実際の通信において使用された通信速度ではなく、断続的な通信におけるアイドル時間、ノイズ等による再送信の時間、等を含む時間における平均値としての通信速度とすることができる。後者の通信速度を通信状況検出手段21が検出する通信状況とすることにより、より実際の通信状況に近い通信状況を検出することができる。
The communication status detected by the communication status detection means 21 includes, for example, whether or not communication connection between the communication means provided in the IC card and the reader / writer is possible, the communication speed when communication connection is possible, and the IC card from the reader / writer. Power supply status to
The communication speed detected by the communication status detection means 21 is a communication speed defined in the communication standard of each communication means, and when there are a plurality of communication speeds, the communication speed used in actual communication may be used. it can. In the communication standard, for Type C, for example, the communication speed is 211 kbps for the first generation and 424 Kbps for the second generation. Further, in the ISO 7816 T = 1 protocol, a communication speed such as 9.6 Kbps, 38.4 Kbps, and 76.8 Kbps can be selected.
In addition, the communication speed detected by the communication status detection unit 21 is not a communication speed used in actual communication, but an average value in time including idle time in intermittent communication, time of retransmission due to noise, and the like. Communication speed. By setting the latter communication speed as the communication status detected by the communication status detection unit 21, a communication status closer to the actual communication status can be detected.

通信状況検出手段21が検出する電力供給状態は、ICカードがリーダライタから受け取る電力の状態のことである。ICカードの消費電力は、一般的に、ICカードが活性化し動作を開始するときに最大となる。そこで、通信状況検出手段21は、ICカードが活性化し動作を開始する早い段階で動作するように活性化(起動)の優先順位を高くする。少なくとも通信状況検出手段21は、通信を開始する前に活性化し動作を開始する。これによって、通信状況検出手段21は、検出する電力供給状態を、ほぼ最大となったときの電力(=電圧×電流)、または電圧、電流とすることができる。
また、通信状況検出手段21が検出する電力供給状態は、ICカードが活性化し動作を開始する一定期間の平均値としての電力(=電圧×電流)、または電圧、電流を電力供給状態とすることができる。
電力供給状態が悪いか余裕がないときには電圧の低下が起こるため、電力、電圧、電流のすべてが低下する。そのときの電力供給状態が通信状況検出手段21によって検出される。ICカードが動作するために必要とする値よりも電圧が低下するとICカードは正常な動作を行うことができず、通信状況検出手段21も動作しない。
The power supply state detected by the communication status detection means 21 is the state of power received by the IC card from the reader / writer. The power consumption of an IC card is generally maximized when the IC card is activated and starts operating. Therefore, the communication status detection means 21 increases the priority of activation (activation) so that it operates at an early stage when the IC card is activated and starts operating. At least the communication status detection means 21 is activated and starts operation before starting communication. As a result, the communication status detection unit 21 can set the power supply state to be detected to the power (= voltage × current), voltage, or current when the power supply state is almost maximized.
The power supply state detected by the communication status detection means 21 is power (= voltage × current) as an average value for a certain period of time when the IC card is activated and starts operating, or voltage and current are set to the power supply state. Can do.
When the power supply state is bad or when there is no room, the voltage decreases, so that all of the power, voltage, and current decrease. The power supply state at that time is detected by the communication status detection means 21. When the voltage drops below the value required for the IC card to operate, the IC card cannot operate normally, and the communication status detection means 21 also does not operate.

通信状況31は表形式のデータとし、その属性として、たとえば、通信手段名称、通信接続の可否、通信速度、電力供給状態を有する。また、それらの属性の値(属性値)は通信状況検出手段21が検出した検出値である。通信状況31の一例を図2に表として示す。図2に示すように、通信状況31における通信手段名称の属性値としてTypeA通信手段、TypeB通信手段、TypeC通信手段、ISO7816通信手段、USB通信手段、SWP通信手段を有し、通信接続の可否の属性値として、1(可)、0(否)を有し、通信速度の属性値として○○・・・○bps(○;数字、bps;Bits Per Second)を有し、電力供給状態の属性値として、電力W(Watt)、または電圧V(Volt)、電流A(Ampere)を有する。
なお、ICカードが備えている通信手段(インタフェース)は、すでに説明したように、図1のインタフェース部1に記載された通信手段のすべてである必要性はない。たとえば、TypeA通信手段11とTypeB通信手段12とISO7816通信手段14の3つだけを備えるICカードであってよい。
The communication status 31 is tabular data, and the attributes include, for example, a communication means name, communication connection availability, communication speed, and power supply status. The values of these attributes (attribute values) are detected values detected by the communication status detecting means 21. An example of the communication status 31 is shown as a table in FIG. As shown in FIG. 2, there are Type A communication means, Type B communication means, Type C communication means, ISO 7816 communication means, USB communication means, and SWP communication means as attribute values of the communication means name in the communication status 31. It has 1 (possible) and 0 (no) as attribute values, and has ○○ ・ ・ ・ ○ bps (○; number, bps; Bits Per Second) as communication speed attribute values, and attributes of power supply status Values include power W (Watt), voltage V (Volt), and current A (Ampere).
Note that the communication means (interface) provided in the IC card need not be all of the communication means described in the interface unit 1 of FIG. For example, it may be an IC card provided with only three of Type A communication means 11, Type B communication means 12, and ISO 7816 communication means 14.

通信適否判定手段22は、通信状況検出手段21が通信状況を検知し、その通信状況を通信状況31として新規記憶または更新記憶すると、その都度、適否判定基準32と通信状況31を比較する。通信適否判定手段22は、適否判定基準32と通信状況31との比較を、通信状況31に通信状況の記述が存在する通信手段のすべてについて行う。そして、すべての通信手段が通信に適合するか否かを判定し、その判定を適否判定33として記憶する。   The communication suitability determination unit 22 compares the communication status 31 with the suitability determination criterion 32 each time the communication status detection unit 21 detects the communication status and newly stores or updates the communication status as the communication status 31. The communication suitability determination means 22 compares the suitability determination criteria 32 with the communication status 31 for all communication means in which the communication status 31 is described in the communication status 31. Then, it is determined whether all the communication means are suitable for communication, and the determination is stored as the appropriateness determination 33.

適否判定基準32は表形式のデータとし、その属性として前述した通信状況31に対応する属性を有する。たとえば、通信手段名称、通信接続の可否、通信速度、電力供給状態を有する。また、それらの属性の値(属性値)は判定基準設定手段24が設定した基準値である。適否判定基準32の一例を図3に表として示す。図3に示すように、通信状況31における通信手段名称の属性値としてTypeA通信手段、TypeB通信手段、TypeC通信手段、ISO7816通信手段、USB通信手段、SWP通信手段を有し、通信接続の可否の属性値として、1(可)を有する。また、通信速度の属性値として○○・・・○bps(○;数字、bps;Bits Per Second)を有し、その値は通信手段によって異なった値であり、さらに、通信速度が不可、可、良、優、等の状態に対応して、複数の異なった値を基準値として有する。また、電力供給状態の属性値として、電力W(Watt)、または電圧V(Volt)、電流A(Ampere)を有する。その値は通信手段によって異なった値であり、さらに、通信速度が不可、可、良、優、等の状態に対応して、複数の異なった値を基準値として有する。   The suitability determination criterion 32 is tabular data, and has an attribute corresponding to the communication status 31 described above. For example, it has a communication means name, communication connection availability, communication speed, and power supply status. The values of these attributes (attribute values) are reference values set by the determination reference setting means 24. An example of the suitability determination criterion 32 is shown as a table in FIG. As shown in FIG. 3, it has Type A communication means, Type B communication means, Type C communication means, ISO 7816 communication means, USB communication means, and SWP communication means as attribute values of the communication means name in the communication status 31. It has 1 (possible) as an attribute value. In addition, the attribute value of communication speed is XX ... ○ bps (○: number, bps: Bits Per Second), and the value is different depending on the communication means, and the communication speed is impossible. Corresponding to the states of good, excellent, etc., a plurality of different values are provided as reference values. Further, the power supply state attribute value includes power W (Watt), voltage V (Volt), and current A (Ampere). The value differs depending on the communication means, and further has a plurality of different values as reference values corresponding to the state where the communication speed is not possible, acceptable, good, excellent, etc.

適否判定33は表形式のデータとし、その属性として前述した適否判定基準32に対応する属性を有する。たとえば、通信手段名称、通信接続の可否、通信速度、電力供給状態を有する。また、それらの属性の値(属性値)は通信適否判定手段22が判定した判定値である。適否判定33の一例を図4に表として示す。図4に示すように、通信状況31における通信手段名称の属性値としてTypeA通信手段、TypeB通信手段、TypeC通信手段、ISO7816通信手段、USB通信手段、SWP通信手段を有し、通信接続の可否の属性値として、通信適否判定手段22による不可(否)の判定に対して0、可の判定に対して1を有する。また、通信速度の属性値として、通信適否判定手段22による不可の判定に対して0、可の判定に対して1、良の判定に対して2、優の判定に対して3を有する。また、電力供給状態の属性値として、通信適否判定手段22による不可の判定に対して0、可の判定に対して1、良の判定に対して2、優の判定に対して3を有する。   The suitability determination 33 is tabular data, and has attributes corresponding to the above-described suitability determination criteria 32 as attributes. For example, it has a communication means name, communication connection availability, communication speed, and power supply status. The values of these attributes (attribute values) are the determination values determined by the communication suitability determination unit 22. An example of the suitability determination 33 is shown as a table in FIG. As shown in FIG. 4, there are Type A communication means, Type B communication means, Type C communication means, ISO 7816 communication means, USB communication means, and SWP communication means as attribute values of the communication means name in the communication status 31. The attribute value has 0 for the determination of disapproval (non-permission) by the communication suitability determination means 22 and 1 for the determination of good. Further, the attribute value of the communication speed has 0 for the determination of failure by the communication suitability determination means 22, 1 for the determination of good, 2 for the determination of good, and 3 for the determination of good. Further, the attribute value of the power supply state has 0 for the determination of failure by the communication suitability determination means 22, 1 for the determination of permission, 2 for the determination of good, and 3 for the determination of good.

なお、上述においては通信状況として通信接続の可否を属性の1つとした。この接続の可否はICカードが備える通信手段に対応する通信手段をリーダライタが備えるか否かを、通信状況検出手段21が検出することによって決めるものである。しかし、通信接続の可否は通信速度によって判定することも可能である。すなわち、通信速度が0(bps)のときには通信接続が不可(否)であることを検出したことと見なすことも可能である。したがって、そのように構成することによって通信状況から通信接続の可否を省略することも可能である。   In the above description, whether or not communication connection is possible is set as one of the attributes as the communication status. Whether or not this connection is possible is determined by the communication status detection means 21 detecting whether or not the reader / writer has communication means corresponding to the communication means provided in the IC card. However, whether or not communication connection is possible can be determined based on the communication speed. In other words, when the communication speed is 0 (bps), it can be regarded as having been detected that communication connection is not possible (or not). Therefore, with such a configuration, it is possible to omit the availability of communication connection from the communication status.

インタフェース選択手段23は通信適否判定手段22によって適合と判定された通信手段(インタフェース)を通信に使用する通信手段として選択する。その適合と判定されたか否かを、インタフェース選択手段は適否判定33に基いて判断する。すなわち、適否判定33の通信可否において1(可)と記載された通信手段は適合と判定された通信手段である。
その適合と判定された通信手段が複数存在するときには、インタフェース選択手段23は接続優先順位34を参照し、特定の通信手段を優先する記載が存在すれば、それに従って通信手段を選択する。
また、特定の通信手段を優先する記載が存在しないときに、通信速度を優先する記載が存在すれば、インタフェース選択手段23はそれに従って通信手段を選択する。たとえば、適合と判定された通信手段に通信速度が1のものと、3のものとが存在するときには通信速度が3の通信手段を通信に使用する通信手段として選択する。
また、特定の通信手段を優先する記載が存在しないときに、電力供給状態を優先する記載が存在すれば、インタフェース選択手段23はそれに従って通信手段を選択する。たとえば、適合と判定された通信手段に電力供給状態が1のものと、3のものとが存在するときには電力供給状態が3の通信手段を通信に使用する通信手段として選択する。
また、特定の通信手段を優先する記載が存在しないときに、接続優先順位34に通信速度を優先する記載と電力供給状態を優先する記載の両方が存在するときには、インタフェース選択手段23は、適合と判定された通信手段における通信速度と電力供給状態の値を加算した値が大きい通信手段を選択する。
The interface selecting unit 23 selects the communication unit (interface) determined to be suitable by the communication suitability determining unit 22 as a communication unit to be used for communication. Based on the suitability determination 33, the interface selection means determines whether or not the match is determined. That is, the communication means described as 1 (possible) in the communication availability in the suitability determination 33 is a communication means determined to be compatible.
When there are a plurality of communication means determined to be suitable, the interface selection means 23 refers to the connection priority 34, and if there is a description giving priority to a specific communication means, the communication means is selected accordingly.
In addition, when there is no description that gives priority to a specific communication means, if there is a description that gives priority to the communication speed, the interface selection means 23 selects the communication means accordingly. For example, when there are communication means having a communication speed of 1 and 3 communication means determined to be compatible, the communication means having a communication speed of 3 is selected as the communication means to be used for communication.
In addition, when there is no description that gives priority to a specific communication means, if there is a description that gives priority to the power supply state, the interface selection means 23 selects the communication means accordingly. For example, when the communication means determined to be compatible includes one with a power supply state of 1 and three, the communication means with a power supply state of 3 is selected as the communication means used for communication.
In addition, when there is no description that gives priority to a specific communication means, when both the description that gives priority to the communication speed and the description that gives priority to the power supply status exist in the connection priority 34, the interface selection means 23 determines that A communication means having a large value obtained by adding the value of the communication speed and the power supply state in the determined communication means is selected.

接続優先順位34は表形式のデータとし、その属性として、たとえば、通信手段名称、接続優先順位、通信速度、電力供給状態を有する。また、それらの属性の値(属性値)は通信設定手段24が設定した設定値である。接続優先順位34の一例を図5に表として示す。図5に示すように、通信状況31における通信手段名称の属性値としてTypeA通信手段、TypeB通信手段、TypeC通信手段、ISO7816通信手段、USB通信手段、SWP通信手段を有する。また、接続優先順位の属性値として、0、1、2、3、・・・を有する。0は接続優先順位を付けないこと示し、1、2、3、・・・はその数値の順番に優先順位を付けることを示している。また、通信速度の属性値として0、1を有する。0は通信速度を優先しないことを示し、1は通信速度を優先することを示す。また、電力供給状態の属性値として0、1を有する。0は電力供給状態を優先しないことを示し、1は電力供給状態を優先することを示す。
なお、接続優先順位34においてすべての通信手段に対して優先順位が0のときには、通信状況検出手段21は接続優先順位34を参照し、接続優先順位34において優先順位が決められているときの通信状況検出動作を行う。また、接続優先順位34において1つの通信手段に対してでも優先順位が0でないときには、通信状況検出手段21は接続優先順位34を参照し、接続優先順位34において優先順位が決められていないときの通信状況検出動作を行う(前述した、通信状況検出手段21の説明を参照)。
The connection priority 34 is tabular data, and has, for example, communication means name, connection priority, communication speed, and power supply status as attributes. The values of these attributes (attribute values) are set values set by the communication setting unit 24. An example of the connection priority 34 is shown as a table in FIG. As shown in FIG. 5, there are Type A communication means, Type B communication means, Type C communication means, ISO 7816 communication means, USB communication means, and SWP communication means as attribute values of communication means names in the communication status 31. In addition, 0, 1, 2, 3,... 0 indicates that no connection priority is assigned, and 1, 2, 3,... Indicate that priority is assigned in the numerical order. In addition, 0 and 1 are included as attribute values of the communication speed. 0 indicates that communication speed is not prioritized, and 1 indicates that communication speed is prioritized. Moreover, it has 0 and 1 as an attribute value of a power supply state. 0 indicates that the power supply state is not prioritized, and 1 indicates that the power supply state is prioritized.
When the priority is 0 for all communication means in the connection priority 34, the communication status detection means 21 refers to the connection priority 34, and the communication when the priority is determined in the connection priority 34. Performs situation detection operations. Further, when the priority is not 0 even for one communication means in the connection priority 34, the communication status detecting means 21 refers to the connection priority 34, and when the priority is not determined in the connection priority 34. A communication status detection operation is performed (see the description of the communication status detection means 21 described above).

通信設定手段24は、適否判定基準32と接続優先順位34の設定を行う。通信設定手段24はOS(Operating System)35、アプリケーション36、等のプログラム(ソフトウェア)によって動作する。したがって、ICカードの動作における特定のモードにおいて、通信設定手段24が活性化されて動作し、新規設定、更新設定を行うことができる。したがって、アプリケーションを活性化(起動)したときに、アプリケーションに適合する設定に更新することができる。また、アプリケーションを活性化(起動)したときに、アプリケーションに適合するように、前もって設定した適否判定基準32と接続優先順位34を使用することができる。たとえば、アプリケーションが大量のデータ通信を行う場合には通信速度を優先する設定とすることができる。
なお、説明するまでもないことであるが、通信設定手段24だけでなく、インターフェース部1、処理部2、記憶部3についても、OS(Operating System)35、アプリケーション36、ファームウェア、等のプログラム(ソフトウェア)によって動作する。
The communication setting unit 24 sets the suitability determination standard 32 and the connection priority 34. The communication setting unit 24 is operated by a program (software) such as an OS (Operating System) 35 and an application 36. Therefore, in a specific mode in the operation of the IC card, the communication setting means 24 is activated and operates, and new setting and update setting can be performed. Therefore, when the application is activated (activated), it can be updated to a setting suitable for the application. In addition, when the application is activated (activated), the suitability determination criterion 32 and the connection priority 34 that are set in advance can be used so as to suit the application. For example, when an application performs a large amount of data communication, the communication speed can be set as a priority.
Needless to say, not only the communication setting unit 24 but also the interface unit 1, the processing unit 2, and the storage unit 3 include programs such as an OS (Operating System) 35, an application 36, firmware, and the like ( Software).

以上、構成について説明した。次に、本発明について動作を説明する。本発明のICカードにおける通信に使用するインタフェースを決定する過程をフロー図として図6に示す。
まず、図6のステップS101(接続優先順位参照)において、通信状況検出手段21は接続優先順位34を参照する。
次に、ステップS102(対象インターフェース数=K)において、通信状況検出手段21は接続優先順位34の通信手段名称に存在する優先順位が設定されたインタフェースの数を読み取りKに代入する。また、優先順位が設定されていないときには、通信状況検出手段21は接続優先順位34の通信手段名称に存在するインタフェースの総数を読み取りKに代入する。
次に、ステップS103(N=1)において、通信状況検出手段21はNに1を代入する。
次に、ステップS104(優先順位有り?)において、通信状況検出手段21は優先順位有りのときにはステップS105に進み、優先順位無しのときにはステップS113に進む。
The configuration has been described above. Next, the operation of the present invention will be described. FIG. 6 shows a process for determining an interface used for communication in the IC card of the present invention as a flowchart.
First, in step S101 of FIG. 6 (refer to connection priority), the communication status detection unit 21 refers to the connection priority 34.
Next, in step S102 (number of target interfaces = K), the communication status detection unit 21 reads the number of interfaces set with the priority level existing in the communication unit name of the connection priority level 34 and substitutes it for K. Further, when the priority order is not set, the communication status detecting means 21 reads the total number of interfaces existing in the communication means name of the connection priority order 34 and substitutes it for K.
Next, in step S103 (N = 1), the communication status detection unit 21 substitutes 1 for N.
Next, in step S104 (having priority?), The communication status detecting means 21 proceeds to step S105 when the priority is present, and proceeds to step S113 when there is no priority.

次に、ステップS105(第N優先インタフェース試行)において、通信状況検出手段21は第N優先インタフェース(通信手段)を活性化し動作させリーダライタとの通信接続を試行する。第N優先インタフェースは優先順位がN番目のインタフェースである。
次に、ステップS106(通信状況検出)において、通信状況検出手段21は通信状況を検出する。
次に、ステップS107(第N通信状況として記憶)において、通信状況検出手段21は検出した通信状況を通信状況31として記憶部3に記憶する。
次に、ステップS108(第N通信状況の適否判定)において、通信適否判定手段22は、適否判定基準32と通信状況31を比較する。そして、信適否判定手段22は第N優先インタフェースが通信に適合するか否かを判定し、その判定を適否判定33の通信可否において0(不可)または1(可)として記憶する。
次に、ステップS109(適合?)において、通信適否判定手段22によって、第N優先インタフェースが通信に適合すると判定されたときにはステップS112に進み、第N優先インタフェースが通信に適合しないと判定されたときにはステップS110に進む。
Next, in step S105 (Nth priority interface trial), the communication status detection means 21 activates and operates the Nth priority interface (communication means) to try communication connection with the reader / writer. The Nth priority interface is the Nth priority interface.
Next, in step S106 (communication status detection), the communication status detection means 21 detects the communication status.
Next, in step S107 (stored as the Nth communication status), the communication status detection means 21 stores the detected communication status in the storage unit 3 as the communication status 31.
Next, in step S108 (determining whether the Nth communication status is appropriate), the communication suitability determining means 22 compares the suitability determination criterion 32 with the communication status 31. Then, the reliability determination means 22 determines whether or not the Nth priority interface is suitable for communication, and stores the determination as 0 (impossible) or 1 (possible) in the communication determination of the appropriateness determination 33.
Next, in step S109 (compliance?), When the communication suitability determination unit 22 determines that the Nth priority interface is suitable for communication, the process proceeds to step S112, and when it is determined that the Nth priority interface is not suitable for communication. Proceed to step S110.

次に、ステップS110(N=N+1)において、通信適否判定手段22は、NにN+1を代入する(Nに1を加算する)。
次に、ステップS111(N>K)において、通信適否判定手段22は、NとKを比較し、N>KのときにはステップS112に進み、N>KでないときにはステップS105に戻って上述した以降のステップを繰り返す。
次に、ステップS112(インタフェース選択)において、インタフェース選択手段23は適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)を通信に使用する通信手段として選択する。なお、インタフェース選択手段23は適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)が存在しないときには通信に使用する通信手段として選択しない。そして、そのときには、ICカードは通信使用インタフェース決定の過程を最初から繰り返す。
Next, in step S110 (N = N + 1), the communication suitability determination unit 22 substitutes N + 1 for N (adds 1 to N).
Next, in step S111 (N> K), the communication suitability determination means 22 compares N and K. When N> K, the process proceeds to step S112, and when N> K is not satisfied, the process returns to step S105 to perform the above-described steps. Repeat steps.
Next, in step S112 (interface selection), the interface selection unit 23 selects an interface (communication unit) described as 1 (possible) in communication propriety of the suitability determination 33 as a communication unit used for communication. Note that the interface selection means 23 does not select the communication means used for communication when there is no interface (communication means) described as 1 (possible) in the adequacy determination 33. At that time, the IC card repeats the process of determining the communication use interface from the beginning.

一方、ステップS104(優先順位有り?)において、優先順位無しのときにはステップS113に進む。
次に、ステップS113(第Nインタフェース試行)において、通信状況検出手段21は第Nインタフェース(通信手段)を活性化し動作させリーダライタとの通信接続を試行する。第NインタフェースはN番目に通信状況検出手段21が通信状況を検出するインタフェースであり、同じインタフェースを重複して検出することはない。
次に、ステップS114(通信状況検出)において、通信状況検出手段21は通信状況を検出する。
次に、ステップS115(第N通信状態として記憶)において、通信状況検出手段21は検出した通信状況を通信状況31として記憶部3に記憶する。
次に、ステップS116(N=N+1)において、通信状況検出手段21は、NにN+1を代入する(Nに1を加算する)。
次に、ステップS117(N>K)において、通信状況検出手段21は、NとKを比較し、N>KのときにはステップS118に進み、N>KでないときにはステップS113に戻って上述した以降のステップを繰り返す。
On the other hand, in step S104 (having priority?), If there is no priority, the process proceeds to step S113.
Next, in step S113 (Nth interface trial), the communication status detection means 21 activates and operates the Nth interface (communication means) and tries communication connection with the reader / writer. The Nth interface is the Nth interface in which the communication status detecting means 21 detects the communication status, and the same interface is not duplicated.
Next, in step S114 (communication status detection), the communication status detection means 21 detects the communication status.
Next, in step S115 (stored as the Nth communication state), the communication status detection means 21 stores the detected communication status in the storage unit 3 as the communication status 31.
Next, in step S116 (N = N + 1), the communication status detecting means 21 substitutes N + 1 for N (adds 1 to N).
Next, in step S117 (N> K), the communication status detecting means 21 compares N and K. If N> K, the process proceeds to step S118, and if N> K, the process returns to step S113 and the above-described steps are performed. Repeat steps.

次に、ステップS118(第1〜K通信の適否判定)において、通信適否判定手段22は、適否判定基準32と通信状況31を比較する。通信適否判定手段22は、適否判定基準32と通信状況31との比較を、通信状況31に通信状況(第1〜K通信状況)の記述が存在する通信手段のすべてについて行う。そして、すべての通信手段が通信に適合するか否かを判定し、その判定を適否判定33として記憶する。
次に、ステップS112(インタフェース選択)において、インタフェース選択手段23は適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)を通信に使用する通信手段として選択する。通信可否において1(可)と記載されたインタフェースが複数存在するときには、インタフェース選択手段23は接続優先順位34を参照し、通信速度を優先する記載が存在すれば、インタフェース選択手段23はそれに従って通信手段を選択する。また、電力供給状態を優先する記載が存在すれば、インタフェース選択手段23はそれに従って通信手段を選択する。接続優先順位34に通信速度を優先する記載と電力供給状態を優先する記載の両方が存在するときには、インタフェース選択手段23は、適合と判定された通信手段における通信速度と電力供給状態の値を加算した値が大きい通信手段を選択する。なお、インタフェース選択手段23は適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)が存在しないときには通信に使用する通信手段として選択しない。そして、そのときには、ICカードは通信使用インタフェース決定の過程を最初から繰り返す。
Next, in step S118 (determination of first to K communication suitability), the communication suitability determination means 22 compares the suitability determination criterion 32 with the communication status 31. The communication suitability determination unit 22 compares the suitability determination criterion 32 with the communication status 31 for all communication units in which the communication status 31 includes a description of the communication status (first to K communication statuses). Then, it is determined whether all the communication means are suitable for communication, and the determination is stored as the appropriateness determination 33.
Next, in step S112 (interface selection), the interface selection unit 23 selects an interface (communication unit) described as 1 (possible) in communication propriety of the suitability determination 33 as a communication unit used for communication. When there are a plurality of interfaces described as 1 (possible) in communication availability, the interface selection means 23 refers to the connection priority 34, and if there is a description giving priority to the communication speed, the interface selection means 23 communicates accordingly. Select means. Further, if there is a description giving priority to the power supply state, the interface selecting unit 23 selects the communication unit accordingly. When the connection priority 34 includes both a description giving priority to the communication speed and a description giving priority to the power supply state, the interface selection means 23 adds the value of the communication speed and the power supply state in the communication means determined to be compatible. A communication means with a large value is selected. Note that the interface selection means 23 does not select the communication means used for communication when there is no interface (communication means) described as 1 (possible) in the adequacy determination 33. At that time, the IC card repeats the process of determining the communication use interface from the beginning.

以上、インタフェースを決定する過程について説明した。次に、使用中のインタフェースを通信状態によって変更する過程について説明する。本発明のICカードにおける通信に使用中のインタフェースを通信状態によって変更する過程をフロー図として図7に示す。
まず、図7のステップS201(第Nインタフェースを駆動)において、インタフェースを決定する過程において選択された第Nインタフェース、または第N優先インタフェースは駆動され通信に使用中である。ここでは第Nインタフェースというときには、それを第N優先インタフェースと読み替えた場合も含むものとする。
次に、ステップS202(通信状況検出)において、通信状況検出手段21は通信状況を検出する。
次に、ステップS203(第N通信状況として記憶)において、通信状況検出手段21は検出した通信状況を通信状況31として記憶部3に記憶する。
次に、ステップS204(第N通信状況の適否判定)において、通信適否判定手段22は、適否判定基準32と通信状況31を比較する。そして、信適否判定手段22は第Nインタフェースが通信に適合するか否かを判定し、その判定を適否判定33の通信可否において0(不可)または1(可)として記憶する。
The process of determining the interface has been described above. Next, a process of changing the interface in use according to the communication state will be described. FIG. 7 is a flowchart showing a process of changing the interface used for communication in the IC card of the present invention according to the communication state.
First, in step S201 (driving the Nth interface) in FIG. 7, the Nth interface or the Nth priority interface selected in the process of determining the interface is driven and used for communication. Here, the Nth interface includes the case where it is read as the Nth priority interface.
Next, in step S202 (communication status detection), the communication status detection means 21 detects the communication status.
Next, in step S203 (stored as the Nth communication status), the communication status detecting means 21 stores the detected communication status in the storage unit 3 as the communication status 31.
Next, in step S204 (determining whether the Nth communication status is appropriate), the communication suitability determining unit 22 compares the suitability determination criterion 32 with the communication status 31. Then, the reliability determination means 22 determines whether or not the Nth interface is suitable for communication, and stores the determination as 0 (impossible) or 1 (possible) in the communication propriety determination 33.

次に、ステップS205(適合?)において、通信適否判定手段22によって、第N優先インタフェースが通信に適合すると判定されたときにはステップS201に戻り上述した以降のステップを繰り返す。また、第N優先インタフェースが通信に適合しないと判定されたときにはステップS206に進む。なお、通信適否判定手段22は適否判定を行う度に適否判定33を更新する。
次に、ステップS206(インタフェース選択?)において、インタフェース選択手段23は適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)が存在するか否かを判定する。
次に、ステップS207(適合が有るか?)において、インタフェース選択手段23は適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)が存在するときにはステップS208に進み、存在しないときには「通信使用インタフェース決定」の処理ルーチンに進む。
次に、ステップS208(選択したNにNを更新)において、インタフェース選択手段23は、適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)を通信に使用する通信手段として選択する。通信可否において1(可)と記載されたインタフェースが複数存在するときには、インタフェース選択手段23は接続優先順位34を参照し、通信速度を優先する記載が存在すれば、インタフェース選択手段23はそれに従って通信手段を選択する。また、電力供給状態を優先する記載が存在すれば、インタフェース選択手段23はそれに従って通信手段を選択する。接続優先順位34に通信速度を優先する記載と電力供給状態を優先する記載の両方が存在するときには、インタフェース選択手段23は、適合と判定された通信手段における通信速度と電力供給状態の値を加算した値が大きい通信手段を選択する。そして選択した通信手段のNにNを更新する。なお、Nは通信手段を特定する番号であり、優先順位が設定されているときには優先順位と一致する番号である。なお、インタフェース選択手段23は適否判定33の通信可否において1(可)と記載されたインタフェース(通信手段)が存在しないときには通信に使用する通信手段として選択しない。そして、そのときには、ICカードは通信使用インタフェース決定の過程を最初から繰り返す。
Next, in step S205 (applicable?), When the communication suitability determining unit 22 determines that the Nth priority interface is compatible with communication, the process returns to step S201 and the above-described steps are repeated. If it is determined that the Nth priority interface is not suitable for communication, the process proceeds to step S206. The communication suitability determination unit 22 updates the suitability determination 33 every time the suitability determination is performed.
Next, in step S206 (interface selection?), The interface selection unit 23 determines whether or not there is an interface (communication unit) described as 1 (possible) in the suitability determination 33.
Next, in step S207 (whether there is a conformity?), The interface selection means 23 proceeds to step S208 when there is an interface (communication means) described as 1 (possible) in the communication feasibility in the suitability determination 33, and does not exist. Sometimes, the process proceeds to the “communication use interface determination” processing routine.
Next, in step S208 (update N to the selected N), the interface selection unit 23 is a communication unit that uses the interface (communication unit) described as 1 (possible) in the adequacy determination 33 for communication. select. When there are a plurality of interfaces described as 1 (possible) in communication availability, the interface selection means 23 refers to the connection priority 34, and if there is a description giving priority to the communication speed, the interface selection means 23 communicates accordingly. Select means. Further, if there is a description giving priority to the power supply state, the interface selecting unit 23 selects the communication unit accordingly. When the connection priority 34 includes both a description giving priority to the communication speed and a description giving priority to the power supply state, the interface selection means 23 adds the value of the communication speed and the power supply state in the communication means determined to be compatible. A communication means with a large value is selected. Then, N is updated to N of the selected communication means. Note that N is a number that identifies the communication means, and is a number that matches the priority when priority is set. Note that the interface selection means 23 does not select the communication means used for communication when there is no interface (communication means) described as 1 (possible) in the adequacy determination 33. At that time, the IC card repeats the process of determining the communication use interface from the beginning.

複数のインターフェースを有するICカード、等において利用可能である。   It can be used in an IC card having a plurality of interfaces.

1 インターフェース部
11 TypeA通信手段
12 TypeB通信手段
13 TypeC通信手段
14 ISO7816通信手段
15 USB通信手段
16 SWP通信手段
2 処理部2
21 通信状況検出手段
22 通信適否判定手段
23 インタフェース選択手段
24 通信設定手段
3 記憶部
31 通信状況
32 適否判定基準
33 適否判定
34 接続優先順位
35 OS
36 アプリケーション
DESCRIPTION OF SYMBOLS 1 Interface part 11 TypeA communication means 12 TypeB communication means 13 TypeC communication means 14 ISO7816 communication means 15 USB communication means 16 SWP communication means 2 Processing part 2
DESCRIPTION OF SYMBOLS 21 Communication condition detection means 22 Communication suitability determination means 23 Interface selection means 24 Communication setting means 3 Storage part 31 Communication condition 32 Suitability determination criteria 33 Suitability determination 34 Connection priority 35 OS
36 applications

Claims (6)

近接型の通信手段となる複数のインタフェースを有するICカードとリーダライタとの間の通信において、
前記ICカードの複数のインタフェースにおける前記ICカードと前記リーダライタとの通信状況を検出する通信状況検出過程と、
前記複数のインタフェースにおける前記通信状況の適否判定を行う通信適否判定過程と、
前記適否判定にしたがって、前記通信状況を検出した前記複数のインタフェースから、通信に使用するインタフェースを選択するインタフェース選択過程と、
を有することを特徴とするICカード通信方法。
In communication between an IC card having a plurality of interfaces serving as a proximity communication means and a reader / writer,
A communication status detection process for detecting a communication status between the IC card and the reader / writer at a plurality of interfaces of the IC card ;
A communication adequacy determination process for determining adequacy of the communication status in the plurality of interfaces ;
In accordance with the suitability determination , an interface selection process for selecting an interface to be used for communication from the plurality of interfaces that have detected the communication status ;
An IC card communication method comprising:
請求項1に記載のICカード通信方法において、前記複数のインタフェースはさらに接触型の通信手段を含んでいることを特徴とするICカード通信方法。   2. The IC card communication method according to claim 1, wherein the plurality of interfaces further include contact-type communication means. 請求項1または2に記載のICカード通信方法において、前記通信状況は通信速度と電力供給状態であることを特徴とするICカード通信方法。   3. The IC card communication method according to claim 1, wherein the communication status is a communication speed and a power supply state. 請求項1〜3のいずれかに記載のICカード通信方法において、前記通信状況検出過程と前記通信適否判定過程はICカードが通信を行っている間も動作を継続し、適否判定で使用中の通信が不適合と判定されたときには、前記インタフェース選択過程が動作を開始することを特徴とするICカード通信方法。   The IC card communication method according to any one of claims 1 to 3, wherein the communication status detection process and the communication suitability determination process continue to operate while the IC card is communicating, and are being used for the suitability determination. An IC card communication method, wherein when the communication is determined to be incompatible, the interface selection process starts operation. 請求項1〜4のいずれかに記載のICカード通信方法において、適否判定基準と接続優先順位を設定する通信設定手段を有し、前記通信状況検出過程は検出した通信状況を記憶し、前記通信適否判定過程は前記通信状況と前記適否判定基準を比較して通信状況の適否判定を記憶し、前記インタフェース選択過程は前記適否判定と前記接続優先順位に基いて通信に使用するインタフェースを選択することを特徴とするICカード通信方法。   5. The IC card communication method according to claim 1, further comprising communication setting means for setting suitability determination criteria and connection priority, wherein the communication status detection process stores the detected communication status, and the communication The suitability determination process stores the communication status suitability judgment by comparing the communication status and the suitability judgment criteria, and the interface selection process selects an interface to be used for communication based on the suitability judgment and the connection priority. An IC card communication method characterized by the above. リーダライタとの間で通信を行う近接型の通信手段となる複数のインタフェースを有するICカードにおいて、
前記複数のインタフェースにおける前記ICカードと前記リーダライタとの通信状況を検出する通信状況検出手段と、
前記複数のインタフェースにおける前記通信状況の適否判定を行う通信適否判定手段と、
前記適否判定にしたがって、前記通信状況を検出した前記複数のインタフェースから、通信に使用するインタフェースを選択するインタフェース選択手段と、
を有することを特徴とするICカード。
In an IC card having a plurality of interfaces serving as a proximity communication means for communicating with a reader / writer,
Communication status detection means for detecting a communication status between the IC card and the reader / writer in the plurality of interfaces;
Communication suitability judging means for judging suitability of the communication status in the plurality of interfaces ;
Interface selection means for selecting an interface to be used for communication from the plurality of interfaces that have detected the communication status according to the suitability determination;
An IC card characterized by comprising:
JP2011275198A 2011-12-16 2011-12-16 IC card communication method and IC card Active JP5983987B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011275198A JP5983987B2 (en) 2011-12-16 2011-12-16 IC card communication method and IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011275198A JP5983987B2 (en) 2011-12-16 2011-12-16 IC card communication method and IC card

Publications (2)

Publication Number Publication Date
JP2013125492A JP2013125492A (en) 2013-06-24
JP5983987B2 true JP5983987B2 (en) 2016-09-06

Family

ID=48776673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011275198A Active JP5983987B2 (en) 2011-12-16 2011-12-16 IC card communication method and IC card

Country Status (1)

Country Link
JP (1) JP5983987B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9172418B1 (en) 2014-05-30 2015-10-27 Qualcomm Incorporated User identity module protocol switch

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002288616A (en) * 2001-03-28 2002-10-04 Omron Corp Non-contact medium
EP1258831B1 (en) * 2001-05-17 2006-07-26 Matsushita Electric Industrial Co., Ltd. IC Card and Electronic Devices having contact and non-contact interface
JP3819783B2 (en) * 2002-02-08 2006-09-13 日本電信電話株式会社 Non-contact IC card and reader / writer for non-contact IC card
JP2004185242A (en) * 2002-12-02 2004-07-02 Nippon Telegr & Teleph Corp <Ntt> Ic card communication system switching method and ic card
JP5148251B2 (en) * 2007-11-19 2013-02-20 フェリカネットワークス株式会社 IC card, information processing apparatus, communication method discrimination method, and program
JP5284140B2 (en) * 2009-02-25 2013-09-11 株式会社東芝 Interface control device
CN102461143B (en) * 2009-06-08 2015-09-02 联想创新有限公司(香港) Portable terminal device, communication equipment, its respective control method and communication system

Also Published As

Publication number Publication date
JP2013125492A (en) 2013-06-24

Similar Documents

Publication Publication Date Title
US10990422B2 (en) Information processing device, information processing method and program
CN101573713B (en) Portable data carrier
JP2007242024A (en) Ic card, portable terminal, and control method of portable terminal
JP5149516B2 (en) IC card, portable terminal and control method of portable terminal
US10032105B2 (en) IC card, portable terminal, and portable electronic apparatus
US10085268B2 (en) Communications device and communications system
US10931331B2 (en) Communication device and method
JP4732024B2 (en) IC tag, reader / writer, communication method and communication system using them
JP3929761B2 (en) Semiconductor device operation control method, semiconductor device operation control program, recording medium recording semiconductor device operation control program, semiconductor device, and IC card
JP5983987B2 (en) IC card communication method and IC card
KR101552393B1 (en) Ic card, portable electronic apparatus, and reader/writer
CN102255999A (en) Method for determining communication protocol between terminal and smart card and expansion card
JP2008152525A (en) Device equipped with function to output monitoring state and computer equipment
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP6766505B2 (en) Electronic information storage medium, judgment method, and judgment program
JP7468754B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RECEPTION BLOCK PROCESSING METHOD, AND PROGRAM
JP7424536B1 (en) Electronic information storage medium, IC chip, IC card, communication parameter transmission method, and program
JP6819201B2 (en) Electronic information storage medium, IC card, setting information transmission method, and setting information transmission program
CN113472548A (en) Electronic card control method, electronic card and terminal
JP2020187774A (en) Electronic information storage medium, ic card, setting information transmitting method, and setting information transmitting program
KR100926364B1 (en) Method and Apparatus for Providing Simultaneously Plural Application Interfaces in Smart Card
CN102681955A (en) Multi-interface memory card and method of operation
CN102930306A (en) Method, terminal and system for recognizing integrated circuit (IC) card logic convention

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20130823

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141024

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150901

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151030

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20151030

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160330

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160530

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160720

R150 Certificate of patent or registration of utility model

Ref document number: 5983987

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150