JP2006099324A - Non-contact card - Google Patents

Non-contact card Download PDF

Info

Publication number
JP2006099324A
JP2006099324A JP2004283402A JP2004283402A JP2006099324A JP 2006099324 A JP2006099324 A JP 2006099324A JP 2004283402 A JP2004283402 A JP 2004283402A JP 2004283402 A JP2004283402 A JP 2004283402A JP 2006099324 A JP2006099324 A JP 2006099324A
Authority
JP
Japan
Prior art keywords
protocol processing
protocol
task
unit
communication
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.)
Pending
Application number
JP2004283402A
Other languages
Japanese (ja)
Inventor
Masayuki Imada
正幸 今田
Eiji Ueda
栄治 植田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004283402A priority Critical patent/JP2006099324A/en
Publication of JP2006099324A publication Critical patent/JP2006099324A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a non-contact card which is available for a plurality of non-contact communication systems. <P>SOLUTION: This non-contact card for executing non-contact communication corresponding to a plurality of protocols with a reading device is provided with a non-contact communication part for executing non-contact communication with the reading device, an electrical field detection part for detecting the input and output of the electrical field of electromagnetic waves to be generated by the reading device, a plurality of protocol processing parts for executing one protocol processing depending on non-contact communication specifications, a protocol status management part for managing the execution status of the protocol processing part, a data communication part for transmitting and receiving communication data with the reading device and a protocol processing control part for executing the initialization of the plurality of protocol processing parts based on the detection of the input of the electrical field by the electrical field detection part, and for permitting the reception of the non-contact communication data to the protocol processing part based on the executions status of the protocol processing parts. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は非接触方式で外部機器と通信を行う非接触カードに関する。   The present invention relates to a contactless card that communicates with an external device in a contactless manner.

近年、カードの内部にアンテナを持ち、外部の端末が発信する弱い電波を利用してデータを送受信する非接触カードがユーザに利用に供され始めている。上記カードは、カード自体が動作するための電気も読み取り端末からの電磁波から生成するため、電池なしで動作できるようになっている。また、上記非接触カードは、読み取り端末に接触させなくても処理が可能なため、振動やほこりが多い環境での運用に適しており、さらに、カードを抜き差しする手間がないため、高速な処理が必要な鉄道・バスの改札や処理に多く使われている。   In recent years, contactless cards that have antennas inside cards and transmit and receive data using weak radio waves transmitted by external terminals have begun to be used by users. The card can be operated without a battery because electricity for operating the card itself is also generated from electromagnetic waves from the reading terminal. In addition, the contactless card can be processed without touching the reading terminal, so it is suitable for operation in an environment with a lot of vibration and dust. Is often used for ticket gates and processing of railways and buses that require

上記非接触通信は通信プロトコルの違いにより、複数の規格が存在する。例えば、ISO/IEC14443で規格化されているTypeA、TypeBのほか、JICSAPカード仕様による規格である。
ISO/IEC 14443 Part1−4 JICSAP ICカード仕様 V2.0 第4部 高速処理用ICカード Vodafone News release 2004年5月6日 No.04−005
The non-contact communication has a plurality of standards depending on the communication protocol. For example, in addition to Type A and Type B standardized by ISO / IEC14443, the standard is based on the JICSAP card specification.
ISO / IEC 14443 Part1-4 JICSAP IC card specification V2.0 Part 4 IC card for high-speed processing Vodafone News release May 6, 2004 04-005

従来の非接触カードは、上記非接触通信方式のいずれか一の方式にのみ対応しているため、ユーザはサービスが対応する非接触通信方式毎にカードを所持する必要があった。
そこで近年、上記複数の非接触通信方式サポートするカードが望まれている。しかしながら、上記複数の非接触通信方式は個別に規格化されており、これ等を一のカードでサポートためには、個別の規格を満足する必要がある。特に、複数の非接触通信を指定することなく待ち受ける場合、読み取り端末の電界への入界から、読み取り端末との通信を開始するまでの所定の時間内に、非接触通信方式の特定と、サポートする非接触通信プロトコル処理を実行するための準備とを完了する必要があるといった課題を有している。
Since the conventional contactless card supports only one of the above contactless communication methods, the user has to possess a card for each contactless communication method supported by the service.
Therefore, in recent years, a card that supports the plurality of contactless communication methods has been desired. However, the plurality of non-contact communication methods are individually standardized, and in order to support them with one card, it is necessary to satisfy the individual standards. In particular, when waiting without specifying a plurality of non-contact communications, identification and support of the non-contact communication method within a predetermined time from the entry into the electric field of the reading terminal to the start of communication with the reading terminal There is a problem that it is necessary to complete preparation for executing the contactless communication protocol processing.

本発明は、前記従来の課題を解決するもので、上記規格をすべて満たした上で、一のカードで複数の非接触通信方式を待ち受け可能とすることができる非接触カードを提供することを目的とする。   The present invention solves the above-mentioned conventional problems, and an object thereof is to provide a non-contact card capable of waiting for a plurality of non-contact communication methods with a single card while satisfying all the above standards. And

前記従来の課題を解決するために、本発明の読み取り装置との間で複数のプロトコルに対応する非接触通信を実行可能な非接触カードは、
読み取り装置と非接触通信を行う非接触通信部と、
読み取り装置の発する電磁波の電界の入界と出界とを検出する電界検出部と、
非接触通信規格に依存するプロトコル処理を実行する複数のプロトコル処理部と、
前記プロトコル処理部の実行状態を管理するプロトコル状態管理部と、
読み取り装置と通信データを送受信するデータ通信部と、
前記電界検出部での入界検出に基づき、前記複数のプロトコル処理部の初期化の実行を指示し、さらに前記プロトコル処理部の実行状態に基づきプロトコル処理部に対する非接触通信データの受信の許可を指示するプロトコル処理制御部とを備え、さらに、前記プロトコル処理部は、前記プロトコル処理制御部からの指示に従い前記プロトコル処理を実行するようにした。
In order to solve the conventional problem, a contactless card capable of executing contactless communication corresponding to a plurality of protocols with the reader of the present invention is provided.
A non-contact communication unit that performs non-contact communication with the reader;
An electric field detector that detects the entry and exit of the electromagnetic field generated by the reader;
A plurality of protocol processing units for executing protocol processing depending on the non-contact communication standard;
A protocol state management unit for managing an execution state of the protocol processing unit;
A data communication unit that transmits and receives communication data to and from the reader;
Instructing execution of initialization of the plurality of protocol processing units based on the entry detection in the electric field detection unit, and further permitting the protocol processing unit to receive non-contact communication data based on the execution state of the protocol processing unit A protocol processing control unit for instructing, and the protocol processing unit executes the protocol processing in accordance with an instruction from the protocol processing control unit.

またさらに、本発明での、上記非接触カードの前記プロトコル処理制御部は、受信した非接触通信データのプロトコル種別に基づき、当該プロトコルに関係しないプロトコル処理部の停止を指示するようにした。   Still further, the protocol processing control unit of the contactless card according to the present invention instructs to stop the protocol processing unit not related to the protocol based on the protocol type of the received contactless communication data.

またさらに、本発明での、上記非接触カードの前記プロトコル処理制御部は、前記プロトコル処理部の全ての実行状態が初期化完了となった時点で、プロトコル処理部に対する非接触通信データの受信の許可を指示するようにした。   Furthermore, in the present invention, the protocol processing control unit of the contactless card receives the contactless communication data from the protocol processing unit when all the execution states of the protocol processing unit have been initialized. Instructed permission.

またさらに、本発明での、上記非接触カードの前記プロトコル処理制御部は、非接触通信データの受信を許可する時点は、前記プロトコル処理部のいずれか一が実行状態が初期化完了となった時点とした。   Furthermore, in the present invention, when the protocol processing control unit of the contactless card permits reception of contactless communication data, one of the protocol processing units has completed initialization. It was time.

本発明の非接触カードによれば、特定の非接触通信プロトコルに対する待ち受け状態を設定することなく、複数の非接触通信サービスを提供することが可能である。
さらに、本発明の非接触カードによれば、特定の非接触通信プロトコルを受け付けを優先的に実行し、かつ、他のプロトコル処理との処理上の衝突を回避可能である。
According to the contactless card of the present invention, it is possible to provide a plurality of contactless communication services without setting a standby state for a specific contactless communication protocol.
Furthermore, according to the non-contact card of the present invention, it is possible to preferentially execute reception of a specific non-contact communication protocol and avoid a processing conflict with other protocol processing.

以下本発明の実施の形態について、図面を参照しながら説明する。
(実施の形態1)
図1は、本発明の実施の形態1における非接触カードの利用形態を表す利用概観図である。非接触カード1は、単独または、携帯電話を含む携帯端末3に挿入された状態で、読み取り端末2の発する電磁波の電界21に入界することで、各種サービスをユーザに提供することができる。読み取り端末2はさらに、前記サービスを提供するサーバー4と何らかの通信手段により接続されている。したがって、ユーザは非接触カード1を読み取り端末2に近づけることにより、サーバー4と通信を行うことが可能である。
なお、非接触カード1が稼動するための電源は、カード自身に備える場合と携帯端末3から供給される場合、そして読み取り端末2の発する電磁波を受信すること生じさせる場合とがある。
Embodiments of the present invention will be described below with reference to the drawings.
(Embodiment 1)
FIG. 1 is a usage overview diagram showing a usage mode of a contactless card according to Embodiment 1 of the present invention. The contactless card 1 can provide various services to the user by entering the electric field 21 of the electromagnetic wave generated by the reading terminal 2 alone or in a state where the contactless card 1 is inserted into the mobile terminal 3 including a mobile phone. The reading terminal 2 is further connected to the server 4 that provides the service by some communication means. Therefore, the user can communicate with the server 4 by bringing the contactless card 1 close to the reading terminal 2.
Note that the power for operating the contactless card 1 may be provided in the card itself, supplied from the mobile terminal 3, and received by receiving electromagnetic waves emitted from the reading terminal 2.

本実施の形態で例示する非接触通信方式は、ISO/IEC14443で規格化されているTypeBと、JICSAPカード仕様による通信規格とする。後者の通信規格を便宜的にTypeCとして説明を行う。
ここで、TypeBとTypeCにおいて、読み取り端末2の電界への入界から、読み取り端末2との通信を開始するまでの時間は5m秒以下と規定されている。さらに、読み取り端末2は非接触通信方式により異なる端末を用意する必要があるため、TypeBとTypeCの通信は同時には生じ得ない。またさらに、ユーザがTypeBとTypeCの通信を意識させないため、非接触カード1に対して特定の非接触通信方式を待ち受けを指示することはさせない。
The non-contact communication system exemplified in this embodiment is Type B standardized by ISO / IEC14443 and a communication standard based on the JICSAP card specification. The latter communication standard will be described as Type C for convenience.
Here, in Type B and Type C, the time from entering the electric field of the reading terminal 2 to starting communication with the reading terminal 2 is defined as 5 milliseconds or less. Furthermore, since it is necessary to prepare different terminals for the reading terminal 2 according to the non-contact communication method, communication between Type B and Type C cannot occur at the same time. Furthermore, since the user is not aware of the communication between Type B and Type C, the non-contact card 1 is not instructed to wait for a specific non-contact communication method.

図2は、本発明の非接触カードの製造に必要なハードウェアの構成例を示したハードウェア構成図である。読み取り端末2が発する電磁波を利用して通信または電源取得を行うアンテナコイル14と、携帯端末3との通信または電源取得を行う接触端子15と、非接触カード内での処理を記述したプログラムを格納するROM12と、前記プログラムを実行するCPU11と、前記プログラムの実行における作業領域となるRAM13と、前記プログラムの実行結果を格納するEEPROM(Electronically Erasable and Programmable Read Only Memory)15を備える。なお、EEPROM15は不揮発性メモリであることが好ましく、FeRAM(Ferroelectric Random Access Memory)でも代替可能である。これらハードウェア構成部品が非接触カード1内部において、典型的にはバスで接続されている。なお、上記ハードウェア構成部品はそれらを制御するファームウェアを含む場合がある。
上記非接触カード1は、TypeBの非接触通信方式に対応する読み取り装置B210若しくは、TypeCの非接触通信方式に対応する読み取り装置C221とそれぞれの通信方式に従って非接触通信を行う。
FIG. 2 is a hardware configuration diagram showing a configuration example of hardware necessary for manufacturing the contactless card of the present invention. Stores an antenna coil 14 that performs communication or power acquisition using electromagnetic waves emitted from the reading terminal 2, a contact terminal 15 that performs communication or power acquisition with the mobile terminal 3, and a program that describes processing in a contactless card A ROM 12 that executes the program, a RAM 13 that serves as a work area for the execution of the program, and an EEPROM (Electronic Erasable and Programmable Read Only Memory) 15 that stores the execution result of the program. Note that the EEPROM 15 is preferably a non-volatile memory, and can be replaced with a FeRAM (Ferroelectric Random Access Memory). These hardware components are typically connected within the contactless card 1 by a bus. The hardware components may include firmware that controls them.
The non-contact card 1 performs non-contact communication with the reading device B 210 corresponding to the Type B non-contact communication method or the reading device C 221 corresponding to the Type C non-contact communication method according to each communication method.

図3は、図2は、本発明の非接触カード1の製造に必要はソフトウェアの構成例を示したソフトウェア構成図である。上記ソフトウェアは、読み取り装置2とアンテナコイル14を利用して外部機器との非接触通信を行う非接触通信部120、電界21への入界と出界を検出する電界検出部130、非接触通信によるデータ通信を行うデータ通信部140、通信プロトコルの処理を行う、プロトコル処理部150、プロトコル処理部150はさらに、以下TypeBの非接触通信プロトコルの処理を行う、プロトコルB処理部151とTypeCの非接触通信プロトコルの処理を行う、プロトコルC処理部152を備え、上記プロトコル処理部150の動作を制御するプロトコル処理制御部100とを備え、さらに、上記プロトコル処理部150の動作状態を管理するプロトコル処理状態管理部110からなる。
なお、プロトコル処理部150は非接触カードにおいて、多くの場合、リアルタイムOSにおけるタスクとして実装される場合があるので、以後プロトコルB処理部151はタスクB、プロトコルC処理部152はタスクCと呼び、以後の説明を行う。
FIG. 3 is a software configuration diagram showing a configuration example of software necessary for manufacturing the contactless card 1 of the present invention. The software includes a non-contact communication unit 120 that performs non-contact communication with an external device using the reading device 2 and the antenna coil 14, an electric field detection unit 130 that detects entry and exit from the electric field 21, and non-contact communication. The data communication unit 140 that performs data communication, the protocol processing unit 150 that performs processing of the communication protocol, and the protocol processing unit 150 further perform processing of the non-contact communication protocol of Type B, and the non-contact of the protocol B processing unit 151 and Type C A protocol processing state that includes a protocol C processing unit 152 that performs processing of a communication protocol, a protocol processing control unit 100 that controls the operation of the protocol processing unit 150, and that manages the operating state of the protocol processing unit 150 It consists of a management unit 110.
Since the protocol processing unit 150 is often implemented as a task in the real-time OS in a contactless card, the protocol B processing unit 151 is hereinafter referred to as task B, and the protocol C processing unit 152 is referred to as task C. The following explanation will be given.

プロトコル処理状態管理部110は、タスクBとタスクCの動作状態を図5に示すプロトコル処理状態管理表500で管理しており、プロトコル処理制御部100はその動作状態を参照・変更することにより、タスクBとタスクCの動作を制御する。
プロトコル処理状態管理表500は、タスク種別501とタスク状態502の組からなるタスク状態情報をタスク毎に備えている。すなわち、図5の例ではタスクBに関するタスク状態情報510とタスクCに関するタスク状態情報520とが記載されている。
タスク種別501には、「タスクB」と「タスクC」。タスク状態502として「停止」、「初期化中」、「初期化完了」、「稼動中」をとりえる。
The protocol processing state management unit 110 manages the operation states of task B and task C in the protocol processing state management table 500 shown in FIG. 5, and the protocol processing control unit 100 refers to and changes the operation state, thereby Control the operation of task B and task C.
The protocol processing state management table 500 includes task state information including a task type 501 and a task state 502 for each task. That is, in the example of FIG. 5, task state information 510 regarding task B and task state information 520 regarding task C are described.
The task type 501 includes “task B” and “task C”. The task status 502 can be “stopped”, “initializing”, “initialization complete”, or “in operation”.

以下、図3のソフトウェア構成図、図4のフローチャート、図5のプロトコル処理状態管理表、図6の処理シーケンス図を参照して、本発明の非接触カードの動作を詳述する。
非接触カード1が読み取り端末2に所定の距離以内に近づくと、非接触通信部120を利用した非接触カード1と読み取り端末2間で非接触通信が開始される。ここで、電界検出部130により非接触カード1が電界21に入界したことがカード内で判定される。多くの場合この判定処理はハードウェア割込みよって生じる(SQ2000)。この通知によりプロトコル処理制御部100は、タスクBとタスクCを起動する(STEP1100)。起動する順序は、所定の優先順位に基づく。本実施の形態ではタスクBがタスクCより優先度が高く設定されているとし、タスクBの起動開始後(SQ2110)、タスクCの起動開始を行う(SQ2120)。この時点でタスクBとタスクCの状態は「停止」(図5の[A])から「初期化中」(図5の[B])へと遷移する(TR1)。
起動された、タスクBとタスクCはそれぞれ各自のタスクの初期化処理を独立して実行する(STEP1200)。以後、プロトコル処理制御部100はタスクBとタスクCの初期化完了を待ち続ける(STEP1300)。
タスクBは初期化が完了すると起動完了をロトコル処理制御部100に通知する(SQ2210)。同様にタスクCも初期化が完了すると起動完了をプロトコル処理制御部100に通知する(SQ2220)。この時点でタスクBとタスクCの状態は「初期化中」(図5の[B])から「初期化完了」(図5の[D])へと遷移する(TR2)。
プロトコル処理制御部100はタスクBとタスクCの状態が全て「初期化完了」であることを確認した後、読み取り端末2からのデータ通信受信を許可する(STEP1400)。なお、この時点では、読み取り端末2の通信プロトコルがTypeB対応であるか、TypeCであるかは不明である。
Hereinafter, the operation of the contactless card of the present invention will be described in detail with reference to the software configuration diagram of FIG. 3, the flowchart of FIG. 4, the protocol processing state management table of FIG. 5, and the processing sequence diagram of FIG.
When the contactless card 1 approaches the reading terminal 2 within a predetermined distance, contactless communication between the contactless card 1 and the reading terminal 2 using the contactless communication unit 120 is started. Here, it is determined in the card that the non-contact card 1 has entered the electric field 21 by the electric field detector 130. In many cases, this determination process is caused by a hardware interrupt (SQ2000). In response to this notification, the protocol processing control unit 100 starts task B and task C (STEP 1100). The order of activation is based on a predetermined priority. In the present embodiment, it is assumed that task B has a higher priority than task C, and after task B starts to be started (SQ2110), task C starts to start (SQ2120). At this time, the states of task B and task C transition from “stopped” ([A] in FIG. 5) to “initializing” ([B] in FIG. 5) (TR1).
The activated task B and task C each independently execute initialization processing of their tasks (STEP 1200). Thereafter, the protocol processing control unit 100 continues to wait for completion of initialization of task B and task C (STEP 1300).
When the initialization is completed, the task B notifies the protocol processing control unit 100 of the completion of activation (SQ2210). Similarly, when the initialization of task C is completed, the completion of activation is notified to the protocol processing control unit 100 (SQ2220). At this time, the state of task B and task C transitions from “initializing” ([B] in FIG. 5) to “initialization complete” ([D] in FIG. 5) (TR2).
After confirming that the states of task B and task C are all “initialization complete”, the protocol processing control unit 100 permits reception of data communication from the reading terminal 2 (STEP 1400). At this time, it is unclear whether the communication protocol of the reading terminal 2 is Type B compatible or Type C.

次に、読み取り端末2から通信データをデータ通信部140で受信する(STEP1500、SQ2400)。データ通信部140は、受信したデータをそのプロトコル種別と共にプロトコル処理制御部100に通知する。プロトコル処理制御部100は該受信したデータのプロトコル種別に基づき、当該プロトコルに対応しないタスクを停止させ、当該プロトコルに対応するタスクを稼動中にすると共に、該受信したデータを該タスクに通知する。
例えば、データ通信部140が受信したデータがTypeBである判明した場合、すなわち読み取り装置2はTypeBのサービスを提供する場合、プロトコル処理制御部100はタスクCを停止し(STEP1610、SQ2300)、受信したデータをタスクBに対して通知する(SQ2500)。この時点でタスクBとタスクCの状態は「初期化完了」(図4の[D])から、タスクBの状態は「稼動中」、タスクCの状態は「停止」(図4の[E])へと遷移する(TR3)。
以後、電界から離れる、すなわちカード1と読み取り装置2との距離が所定距離以上となるまで、データ通信部140が受信したデータは、プロトコル処理制御部100を経由してタスクBに通知され、TypeBのプロトコル処理が行われる(STEP1611)。
Next, communication data is received from the reading terminal 2 by the data communication unit 140 (STEP 1500, SQ 2400). The data communication unit 140 notifies the protocol processing control unit 100 of the received data together with the protocol type. Based on the protocol type of the received data, the protocol processing control unit 100 stops the task that does not correspond to the protocol, makes the task corresponding to the protocol active, and notifies the task of the received data.
For example, when it is determined that the data received by the data communication unit 140 is Type B, that is, when the reading apparatus 2 provides a Type B service, the protocol processing control unit 100 stops the task C (STEP 1610, SQ 2300) and receives it. Data is notified to task B (SQ2500). At this time, the states of the task B and the task C are “initialization completed” ([D] in FIG. 4), the state of the task B is “active”, and the state of the task C is “stopped” ([E in FIG. 4] ]) (TR3).
Thereafter, the data received by the data communication unit 140 is notified to the task B via the protocol processing control unit 100 until it leaves the electric field, that is, until the distance between the card 1 and the reading device 2 is equal to or greater than a predetermined distance. Protocol processing is performed (STEP 1611).

そして、カード1と読み取り装置2との距離が所定距離以上となった時、出界がプロトコル処理制御部100に通知され(SQ2600)、タスクBに対してタスクの停止通知がなされる(STEP1612、SQ2700)。
この時点でタスクBとタスクCの状態は「停止」(図4の[A])へ遷移する。
上記例とは逆に、データ通信部140が受信したデータがTypeCである判明した場合、すなわち読み取り装置2はTypeCのサービスを提供する場合、プロトコル処理制御部100はタスクBを停止し(STEP162)、受信したデータをタスクCに対して通知する。
以後、電界から出界するまで、すなわちカード1と読み取り装置2との距離が所定距離以上となるまで、データ通信部140が受信したデータは、プロトコル処理制御部100を経由してタスクCに通知され、TypeCのプロトコル処理が行われる(STEP1621)、
そして、カード1と読み取り装置2との距離が所定距離以上となった時、出界がプロトコル処理制御部100に通知され、タスクCに対してタスクの停止通知がなされる(STEP1612)。
なお、新たに待ちうけプロトコルが追加された場合でも同様の処理を行うことにより目的の効果を得ることができる。
When the distance between the card 1 and the reading device 2 exceeds a predetermined distance, the entry is notified to the protocol processing control unit 100 (SQ2600), and the task stop notification is given to the task B (STEP 1612, SQ2700). ).
At this time, the state of task B and task C transitions to “stop” ([A] in FIG. 4).
Contrary to the above example, when it is determined that the data received by the data communication unit 140 is Type C, that is, when the reading device 2 provides a Type C service, the protocol processing control unit 100 stops the task B (STEP 162). The received data is notified to the task C.
Thereafter, the data received by the data communication unit 140 is notified to the task C via the protocol processing control unit 100 until it leaves the electric field, that is, until the distance between the card 1 and the reading device 2 exceeds a predetermined distance. , TypeC protocol processing is performed (STEP 1621).
When the distance between the card 1 and the reading device 2 is equal to or greater than a predetermined distance, the entry is notified to the protocol processing control unit 100, and the task C is notified to the task C (STEP 1612).
Even when a new waiting protocol is added, the intended effect can be obtained by performing the same processing.

以上説明したとおり、電界への入界の時点から、全プロトコルに対応するタスクの初期化処理を所定時間内に完了することにより、特定の非接触通信プロトコルに対する待ち受け状態を設定することなく、複数の非接触通信サービスを提供することが可能である。   As described above, by completing the initialization process of tasks corresponding to all protocols within a predetermined time from the time of entering the electric field, a plurality of settings can be made without setting a standby state for a specific non-contact communication protocol. It is possible to provide a non-contact communication service.

(実施の形態2)
上記実施の形態1においては、前記プロトコル処理制御部が、非接触通信データの受信を許可する時点は、複数のプロトコル処理部の全てが実行状態が初期化完了となった時点としている。しかしながら、タイミングによっては、複数のプロトコル処理部のうち、初期化中に読み取り装置からデータが送信されてくる場合がある。その場合、プロトコル処理を早期に開始できるにもかかわらず、実施の形態1では、全てのプロトコル処理部の初期化を待つために反応が遅れるといった問題が生じる。
そこで、複数のプロトコル処理部のうち、初期化が終了したプロトコル処理部のデータ受付を行う方法が考えられるが、この場合、初期化が終了したプロトコル処理部のデータ処理と、初期化が終了していないプロトコル処理部の初期化処理が重複し、非接触カードの処理が遅れてしまったり、さらに、1チップのハードウェアで構成されている場合、両者の処理が衝突を起こしてしまったりする。
(Embodiment 2)
In the first embodiment, the time when the protocol processing control unit permits the reception of the non-contact communication data is the time when all of the plurality of protocol processing units have completed the execution state. However, depending on the timing, data may be transmitted from the reading device during initialization among a plurality of protocol processing units. In this case, although the protocol processing can be started at an early stage, the first embodiment has a problem that the reaction is delayed because it waits for the initialization of all the protocol processing units.
Therefore, a method of accepting data of a protocol processing unit that has been initialized among a plurality of protocol processing units can be considered, but in this case, data processing of the protocol processing unit that has been initialized and initialization are completed. The initialization processing of the protocol processing unit that has not been used is duplicated, the processing of the contactless card is delayed, and if it is configured with one-chip hardware, the processing of both of them may collide.

実施の形態2は、上記課題を解決するもので、プロトコル処理制御部が、非接触通信データの受信を許可する時点は、複数のプロトコル処理部のいずれか一が実行状態が初期化完了となった時点とし、その時点で他プロトコル処理部の実行を停止することにより、非接触カードの応答をより高速に行うための技術である。   The second embodiment solves the above problem, and when the protocol processing control unit permits the reception of the non-contact communication data, one of the plurality of protocol processing units has completed the initialization state. This is a technique for performing the response of the contactless card at a higher speed by stopping the execution of the other protocol processing unit at that time.

以下本発明の実施の形態2について説明を行うが、非接触カードの利用形態、ハードウェア構成、ソフトウェア構成は、実施の形態1と同様であるので、説明を省略する。しかしながら、初期化のプロセスが異なるので、以下、図3のソフトウェア構成図、図7のフローチャート、図5のプロトコル処理状態管理表、図8の処理シーケンス図を参照して、本発明の非接触カードの動作を詳述する。   Hereinafter, Embodiment 2 of the present invention will be described. However, since the usage form, hardware configuration, and software configuration of the contactless card are the same as those in Embodiment 1, description thereof will be omitted. However, since the initialization process is different, referring to the software configuration diagram of FIG. 3, the flowchart of FIG. 7, the protocol processing state management table of FIG. 5, and the processing sequence diagram of FIG. Will be described in detail.

非接触カード1が読み取り端末2に所定の距離以内に近づくと、非接触通信部120を利用した非接触カード1と読み取り端末2間で非接触通信が開始される。ここで、電界検出部130により非接触カード1が電界21に入界したことがカード内で判定される。多くの場合この判定処理はハードウェア割込みよって生じる(SQ2000)。この通知によりプロトコル処理制御部100は、タスクBとタスクCを起動する(STEP1100)。起動する順序は、所定の優先順位に基づく。本実施の形態ではタスクBがタスクCより優先度が高く設定されているとし、タスクBの起動開始後(SQ2110)、タスクCの起動開始を行う(SQ2120)。この時点でタスクBとタスクCの状態は「停止」(図5の[A])から「初期化中」(図5の[B])へと遷移する(TR1)。
起動された、タスクBとタスクCはそれぞれ各自のタスクの初期化処理を独立して実行する(STEP1200)。以後、プロトコル処理制御部100はタスクB初期化完了を優先的に待ち続ける(STEP1310)。
タスクBは初期化が完了すると起動完了をロトコル処理制御部100に通知する(SQ2210)。この時点でタスクBとタスクCの状態は「初期化中」(図5の[B])から、タスクBの状態が「初期化完了」、タスクCの状態が「初期化中」(図5の[C])へと遷移する(TR5)。
プロトコル処理制御部100はタスクB状態が「初期化完了」であることを確認した後、読み取り端末2からのデータ通信受信を許可する(STEP1400)。
When the contactless card 1 approaches the reading terminal 2 within a predetermined distance, contactless communication between the contactless card 1 and the reading terminal 2 using the contactless communication unit 120 is started. Here, it is determined in the card that the non-contact card 1 has entered the electric field 21 by the electric field detector 130. In many cases, this determination process is caused by a hardware interrupt (SQ2000). In response to this notification, the protocol processing control unit 100 starts task B and task C (STEP 1100). The order of activation is based on a predetermined priority. In the present embodiment, it is assumed that task B has a higher priority than task C, and after task B starts to be started (SQ2110), task C starts to start (SQ2120). At this time, the states of task B and task C transition from “stopped” ([A] in FIG. 5) to “initializing” ([B] in FIG. 5) (TR1).
The activated task B and task C each independently execute initialization processing of their tasks (STEP 1200). Thereafter, the protocol processing control unit 100 preferentially waits for task B initialization completion (STEP 1310).
When the initialization is completed, the task B notifies the protocol processing control unit 100 of the completion of activation (SQ2210). At this time, the state of task B and task C is “initializing” ([B] in FIG. 5), the state of task B is “initialization complete”, and the state of task C is “initializing” (FIG. 5). To [C]) (TR5).
After confirming that the task B state is “initialization complete”, the protocol processing control unit 100 permits reception of data communication from the reading terminal 2 (STEP 1400).

ここで、タスクBはタスクCに対して優先させているので、タスクCに関して初期化完了は待たずにデータ通信受信を許可する。逆に、タスクCをタスクBに対して優先させている場合、タスクCの初期化が完了した時点でタスクBに関して初期化完了を待たずにデータ通信受信を許可することになる。
なお、この時点では、読み取り端末2の通信プロトコルがTypeB対応であるか、TypeCであるかは不明である。
Here, since task B has priority over task C, data communication reception is permitted without waiting for completion of initialization for task C. Conversely, when task C is prioritized over task B, reception of data communication is permitted without waiting for completion of initialization for task B when initialization of task C is completed.
At this time, it is unclear whether the communication protocol of the reading terminal 2 is Type B compatible or Type C.

次に、読み取り端末2から通信データをデータ通信部140で受信する(STEP1500、SQ2400)。データ通信部140は、受信したデータをそのプロトコル種別と共にプロトコル処理制御部100に通知する。プロトコル処理制御部100は該受信したデータのプロトコル種別に基づき、当該プロトコルに対応しないタスクを停止させ、当該プロトコルに対応するタスクを稼動中にすると共に、該受信したデータを該タスクに通知する。
すなわち、データ通信部140が受信したデータがTypeBである判明した場合、すなわち読み取り装置2はTypeBのサービスを提供する場合、プロトコル処理制御部100はタスクCの初期化を停止させ(STEP1610、SQ2300)、受信したデータをタスクBに対して通知する(SQ2500)。この時点でタスクBの状態は「初期化完了」、タスクCの状態は「初期化中」(図5の[C])から、タスクBの状態は「稼動中」、タスクCの状態は「停止」(図5の[E])へと遷移する(TR6)。
なお、データ通信部140が受信したデータがTypeCである判明した場合、すなわち読み取り装置2はTypeCのサービスを提供する場合、タスクCの初期化が完了していないため、プロトコル処理制御部100は特段の処理を行わない。
また、タスクB、タスクCの両方の初期化が完了したあと、データ通信部140がデータを受信する場合は、実施の形態1で説明したとおりである。
以後、電界から離れる、すなわちカード1と読み取り装置2との距離が所定距離以上となるまで、データ通信部140が受信したデータは、プロトコル処理制御部100を経由してタスクBに通知され、TypeBのプロトコル処理が行われる(STEP1611)。
Next, communication data is received from the reading terminal 2 by the data communication unit 140 (STEP 1500, SQ 2400). The data communication unit 140 notifies the protocol processing control unit 100 of the received data together with the protocol type. Based on the protocol type of the received data, the protocol processing control unit 100 stops the task that does not correspond to the protocol, makes the task corresponding to the protocol active, and notifies the task of the received data.
That is, when it is determined that the data received by the data communication unit 140 is Type B, that is, when the reader 2 provides a Type B service, the protocol processing control unit 100 stops initialization of the task C (STEP 1610, SQ 2300). The received data is notified to task B (SQ2500). At this time, the state of task B is “initialization complete”, the state of task C is “initializing” ([C] in FIG. 5), the state of task B is “active”, and the state of task C is “ Transition is made to “stop” ([E] in FIG. 5) (TR6).
Note that when the data received by the data communication unit 140 is found to be Type C, that is, when the reader 2 provides a Type C service, the initialization of the task C is not completed, so the protocol processing control unit 100 Do not perform the process.
Further, when the data communication unit 140 receives data after the initialization of both the task B and the task C is completed, it is as described in the first embodiment.
Thereafter, the data received by the data communication unit 140 is notified to the task B via the protocol processing control unit 100 until it leaves the electric field, that is, until the distance between the card 1 and the reading device 2 is equal to or greater than a predetermined distance. Protocol processing is performed (STEP 1611).

そして、カード1と読み取り装置2との距離が所定距離以上となった時、出界がプロトコル処理制御部100に通知され(SQ2600)、タスクBに対してタスクの停止通知がなされる(STEP1612、SQ2700)。
この時点でタスクBとタスクCの状態は「停止」(図4の[A])へ遷移する。
以後、電界から出界するまで、すなわちカード1と読み取り装置2との距離が所定距離以上となるまで、データ通信部140が受信したデータは、プロトコル処理制御部100を経由してタスクCに通知され、TypeCのプロトコル処理が行われる(STEP1621)。
When the distance between the card 1 and the reading device 2 exceeds a predetermined distance, the entry is notified to the protocol processing control unit 100 (SQ2600), and the task stop notification is given to the task B (STEP 1612, SQ2700). ).
At this time, the state of task B and task C transitions to “stop” ([A] in FIG. 4).
Thereafter, the data received by the data communication unit 140 is notified to the task C via the protocol processing control unit 100 until it leaves the electric field, that is, until the distance between the card 1 and the reading device 2 exceeds a predetermined distance. , Type C protocol processing is performed (STEP 1621).

そして、カード1と読み取り装置2との距離が所定距離以上となった時、出界がプロトコル処理制御部100に通知され、タスクCに対してタスクの停止通知がなされる(STEP1612)。
なお、新たに待ちうけプロトコルが追加された場合でも同様の処理を行うことにより目的の効果を得ることができる。
When the distance between the card 1 and the reading device 2 is equal to or greater than a predetermined distance, the entry is notified to the protocol processing control unit 100, and the task C is notified to the task C (STEP 1612).
Even when a new waiting protocol is added, the intended effect can be obtained by performing the same processing.

以上説明したとおり、プロトコル処理制御部が、非接触通信データの受信を許可する時点は、複数のプロトコル処理部のいずれか一が実行状態が初期化完了となった時点とし、その時点で他プロトコル処理部の実行を停止することにより、非接触カードの応答をより高速に行うことが可能となる。   As described above, the time when the protocol processing control unit permits the reception of non-contact communication data is the time when one of the plurality of protocol processing units has completed the execution state, and at that time, the other protocol By stopping the execution of the processing unit, the contactless card can respond more quickly.

(実施の形態3)
上記実施の形態1と上記実施の形態2においては、前記プロトコル処理制御部100が、直接プロトコル処理部150の実行を直接指示しているが、各プロトコル処理部自身(タスクB151、タスクC152)。しかしながらプロトコル処理管理部110が管理するプロトコル状態管理表500を直接参照して、処理を実行するコトも可能である。(図9)。この場合、前記プロトコル処理制御部100が、プロトコル状態管理表500の内容を変更して、間接的にプロトコル処理部150の実行を直接指示していることになる。
また、プロトコル状態管理表500における状態管理は、上記実施の形態において説明したプロトコル制御部150の動作を規定できるものであれば方式を問わない。
(Embodiment 3)
In the first embodiment and the second embodiment, the protocol processing control unit 100 directly instructs execution of the protocol processing unit 150, but each protocol processing unit itself (task B151, task C152). However, it is also possible to execute processing by directly referring to the protocol state management table 500 managed by the protocol processing management unit 110. (FIG. 9). In this case, the protocol processing control unit 100 changes the contents of the protocol state management table 500 and directly instructs the execution of the protocol processing unit 150.
In addition, the state management in the protocol state management table 500 may be performed by any method as long as the operation of the protocol control unit 150 described in the above embodiment can be specified.

本発明にかかる非接触カードは複数の非接触通信プロトコル処理部とそれらを制御する構成を有し、マルチアプリケーション対応のICカード等として有用である。   The non-contact card according to the present invention has a plurality of non-contact communication protocol processing units and a configuration for controlling them, and is useful as an IC card for multi-application.

本発明の実施の形態1における非接触カードの利用形態を表す利用概観図Usage overview diagram showing usage of contactless card in Embodiment 1 of the present invention 本発明の実施の形態1における非接触カードのハードウェア構成図Hardware configuration diagram of contactless card in Embodiment 1 of the present invention 本発明の実施の形態1における非接触カードのソフトウェア構成図Software configuration diagram of contactless card in Embodiment 1 of the present invention 本発明の実施の形態1における非接触カードの処理フローチャートProcessing flowchart of contactless card in Embodiment 1 of the present invention 本発明の実施の形態1と実施の形態2における非接触カードのプロトコル処理部の状態を示すプロトコル処理状態管理表Protocol processing state management table showing the state of the protocol processing unit of the contactless card according to the first embodiment and the second embodiment of the present invention 本発明の実施の形態1における非接触カードの処理シーケンス図Processing sequence diagram of contactless card in Embodiment 1 of the present invention 本発明の実施の形態2における非接触カードの処理フローチャートProcessing flowchart of contactless card in Embodiment 2 of the present invention 本発明の実施の形態2における非接触カードの処理シーケンス図Processing sequence diagram of contactless card in Embodiment 2 of the present invention 本発明の実施の形態3における非接触カードのソフトウェア構成図Software configuration diagram of contactless card in Embodiment 3 of the present invention

符号の説明Explanation of symbols

1 非接触カード
100 プロトコル処理制御部
110 プロトコル処理状態管理部
120 非接触通信部
130 電界検出部
140 データ通信部140
150 プロトコル処理部
151 プロトコルB処理部(タスクB)
152 プロトコルC処理部(タスクC)
DESCRIPTION OF SYMBOLS 1 Contactless card 100 Protocol processing control part 110 Protocol processing state management part 120 Contactless communication part 130 Electric field detection part 140 Data communication part 140
150 Protocol processing unit 151 Protocol B processing unit (task B)
152 Protocol C processor (task C)

Claims (4)

読み取り装置との間で複数のプロトコルに対応する非接触通信を実行可能な非接触カードであって、
読み取り装置と非接触通信を行う非接触通信部と、
読み取り装置の発する電磁波の電界の入界と出界とを検出する電界検出部と、
非接触通信規格に依存する一のプロトコル処理を実行する複数のプロトコル処理部と、
前記プロトコル処理部の実行状態を管理するプロトコル状態管理部と、
読み取り装置と通信データを送受信するデータ通信部と、
前記電界検出部での入界検出に基づき、前記複数のプロトコル処理部の初期化の実行を指示し、さらに前記プロトコル処理部の実行状態に基づきプロトコル処理部に対する非接触通信データの受信の許可を指示するプロトコル処理制御部とを備え、
前記プロトコル処理部は、前記プロトコル処理制御部からの指示に従い前記プロトコル処理を実行することを特徴とする非接触カード。
A contactless card capable of performing contactless communication corresponding to a plurality of protocols with a reader;
A non-contact communication unit that performs non-contact communication with the reader;
An electric field detector that detects the entry and exit of the electromagnetic field generated by the reader;
A plurality of protocol processing units for executing one protocol processing depending on the non-contact communication standard;
A protocol state management unit for managing an execution state of the protocol processing unit;
A data communication unit that transmits and receives communication data to and from the reader;
Instructing execution of initialization of the plurality of protocol processing units based on the entry detection in the electric field detection unit, and further permitting the protocol processing unit to receive non-contact communication data based on the execution state of the protocol processing unit A protocol processing control unit for instructing,
The contactless card, wherein the protocol processing unit executes the protocol processing in accordance with an instruction from the protocol processing control unit.
前記プロトコル処理制御部はさらに、受信した非接触通信データのプロトコル種別に基づき、当該プロトコルに関係しないプロトコル処理部の停止を指示する請求項1記載の非接触カード。   The contactless card according to claim 1, wherein the protocol processing control unit further instructs to stop a protocol processing unit not related to the protocol based on a protocol type of the received contactless communication data. 前記プロトコル処理制御部はさらに、前記プロトコル処理部の全ての実行状態が初期化完了となった時点で、プロトコル処理部に対する非接触通信データの受信許可を指示する、請求項2記載の非接触カード。   The contactless card according to claim 2, wherein the protocol processing control unit further instructs the protocol processing unit to receive noncontact communication data when all the execution states of the protocol processing unit are initialized. . 前記プロトコル処理制御部はさらに、前記プロトコル処理部のいずれか一が実行状態が初期化完了となった時点で、プロトコル処理部に対する非接触通信データの受信を許可する、請求項2記載の非接触カード。   The non-contact communication unit according to claim 2, wherein the protocol processing control unit further permits reception of non-contact communication data to the protocol processing unit when any one of the protocol processing units is initialized. card.
JP2004283402A 2004-09-29 2004-09-29 Non-contact card Pending JP2006099324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004283402A JP2006099324A (en) 2004-09-29 2004-09-29 Non-contact card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004283402A JP2006099324A (en) 2004-09-29 2004-09-29 Non-contact card

Publications (1)

Publication Number Publication Date
JP2006099324A true JP2006099324A (en) 2006-04-13

Family

ID=36239088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004283402A Pending JP2006099324A (en) 2004-09-29 2004-09-29 Non-contact card

Country Status (1)

Country Link
JP (1) JP2006099324A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100908015B1 (en) * 2006-08-24 2009-07-16 베이징 워치데이터 시스템 컴퍼니, 엘티디. Smart card operation system and how it works
JP2010218453A (en) * 2009-03-18 2010-09-30 Toshiba Corp Mobile electronic device and method of controlling mobile electronic device
JP5925287B1 (en) * 2014-12-26 2016-05-25 株式会社Pfu Information processing apparatus, method, and program
JP2016201110A (en) * 2015-04-10 2016-12-01 イーエム・ミクロエレクトロニク−マリン・エス アー Protocol management method for passive rf identification device capable of receiving power from different power source
JP2018152130A (en) * 2013-09-11 2018-09-27 パナソニックIpマネジメント株式会社 Communication device and communication system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100908015B1 (en) * 2006-08-24 2009-07-16 베이징 워치데이터 시스템 컴퍼니, 엘티디. Smart card operation system and how it works
JP2010218453A (en) * 2009-03-18 2010-09-30 Toshiba Corp Mobile electronic device and method of controlling mobile electronic device
JP2018152130A (en) * 2013-09-11 2018-09-27 パナソニックIpマネジメント株式会社 Communication device and communication system
JP5925287B1 (en) * 2014-12-26 2016-05-25 株式会社Pfu Information processing apparatus, method, and program
JP2016201110A (en) * 2015-04-10 2016-12-01 イーエム・ミクロエレクトロニク−マリン・エス アー Protocol management method for passive rf identification device capable of receiving power from different power source

Similar Documents

Publication Publication Date Title
US8042743B2 (en) IC card comprising a main device and an additional device
EP2106107B1 (en) Method and apparatus for automatic near field communication application selection in an electronic device
JP5758120B2 (en) Method for processing application commands from physical channels using portable electronic devices and corresponding devices and systems
EP2106108B1 (en) Method and apparatus for automatic application selection in an electronic device using multiple discovery managers
EP2775739B1 (en) Near-field communications and routing
CN103503323A (en) Radio frequency communication method, device, and terminal equipment for near field communication
EP2996256B1 (en) Method, device and system for controlling nfc radio frequency communication
US7726568B2 (en) Smart card session optimization
EP3614570A1 (en) Near filed communication (nfc) device and system
JP5413637B2 (en) IC chip, information processing apparatus, software module control method, information processing system and method, and program
JP2006099324A (en) Non-contact card
JP6202030B2 (en) Authentication system, computer program for controlling authentication system, and reader used in authentication system
JP2003044801A (en) Portable information processor provided with a plurality of information transmitting means
EP2000955B1 (en) Caching an answer to reset (ATR)
WO2008104601A2 (en) Method of managing command execution in an electronic token
US11677444B2 (en) Contactless transponder and method
CN113988094A (en) Contactless transponder and method
WO2013127868A1 (en) Method for exchanging data between two mobile devices
JP2013097526A (en) Ic chip, processing method in ic chip, processing program for ic chip, and ic card
JP5855816B2 (en) IC chip, processing method in IC chip, IC chip processing program, and portable terminal
JP2004192253A (en) Ic card and ic card program
JPH06111085A (en) Noncontact storage medium
EP1973041A1 (en) Smart card session optimization
JP2023146841A (en) Information processing device and information processing method
EP3174213A1 (en) Application activation in a smart device