JP2006073034A - Ic card reader-writer, identification method, program and its recording medium - Google Patents

Ic card reader-writer, identification method, program and its recording medium Download PDF

Info

Publication number
JP2006073034A
JP2006073034A JP2005310917A JP2005310917A JP2006073034A JP 2006073034 A JP2006073034 A JP 2006073034A JP 2005310917 A JP2005310917 A JP 2005310917A JP 2005310917 A JP2005310917 A JP 2005310917A JP 2006073034 A JP2006073034 A JP 2006073034A
Authority
JP
Japan
Prior art keywords
card
writer
reader
response
cards
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
JP2005310917A
Other languages
Japanese (ja)
Inventor
Futoshi Nakabe
中部  太志
Tadakatsu Masaki
忠勝 正木
Shinji Kawano
眞二 川野
Hideo Ozeki
秀夫 大関
Hiromi Ebara
裕美 江原
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 JP2005310917A priority Critical patent/JP2006073034A/en
Publication of JP2006073034A publication Critical patent/JP2006073034A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an IC card reader-writer, an identification method, a program and its recording medium capable of quickly completing the identification processing of each non-contact IC card. <P>SOLUTION: This invention provides the reader/writer, the identification method, the program and its recording medium, and the reader-writer comprises a storage means for storing the number of normally recognized IC cards, a calculation means for calculating the number of time slots to be included in a first request for identifying each IC card on the basis of the number of the IC cards stored in the storage means, and a slot number resetting means for setting the number of the time slots calculated in the calculation means as the number of slots at the time of the first request. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、ICカード用リーダライタ、識別方法、及びそのプログラムに関し、詳しくは、タイムスロットを用いてICカードを識別するICカード用リーダライタ、識別方法、プログラム及びその記録媒体に関する。   The present invention relates to an IC card reader / writer, an identification method, and a program thereof, and more particularly, to an IC card reader / writer, an identification method, a program, and a recording medium thereof for identifying an IC card using a time slot.

従来、電磁誘導方式等を用いてデータの授受を行う非接触ICカードと当該非接触ICカードを識別するリーダライタとの間の通信には、タイムスロット方式が採用されている。これは、複数の非接触ICカードが同時にリーダライタの通信可能エリア内に存在し、リーダライタからのポーリングに対して複数の非接触ICカードが同時に応答した場合、当該応答に用いられる各レスポンス信号が衝突して何れの非接触ICカードもリーダライタと正常に通信することができなくなるためである。   Conventionally, a time slot system has been adopted for communication between a non-contact IC card that transmits and receives data using an electromagnetic induction system and the like and a reader / writer that identifies the non-contact IC card. This is because when a plurality of non-contact IC cards are simultaneously present in the communicable area of the reader / writer and a plurality of non-contact IC cards respond simultaneously to polling from the reader / writer, each response signal used for the response This is because no contactless IC card can normally communicate with the reader / writer due to the collision.

上記タイムスロット方式の通信方法を以下に説明する。   The time slot communication method will be described below.

(1)まずICカード用リーダライタ(以後リーダライタと称す)は非接触ICカードの存在を確認するために、リクエストとして初期応答リクエストコマンドを非接触ICカードに送信する。上記初期応答リクエストコマンドには、非接触ICカードが行う初期応答のタイミングの制御に必要な「スロット数」、又は「スロット数」を計算する為に必要な値が含まれる。   (1) First, an IC card reader / writer (hereinafter referred to as a reader / writer) transmits an initial response request command as a request to the non-contact IC card in order to confirm the presence of the non-contact IC card. The initial response request command includes a “slot number” or a value necessary for calculating the “slot number” necessary for controlling the timing of the initial response performed by the non-contact IC card.

(2)上記非接触ICカードは、上記初期応答リクエストコマンドを受信後、特定時間から設けられるタイムスロットを用いて上記初期応答(応答)を返す。該応答に用いるタイムスロット、即ちタイミングは、非接触ICカード自身が乱数で決定する。   (2) After receiving the initial response request command, the non-contact IC card returns the initial response (response) using a time slot provided from a specific time. The time slot used for the response, that is, the timing, is determined by the contactless IC card itself with a random number.

(3)上記リーダライタは、複数の非接触ICカードが同一のタイムスロットを選択した際に起こる応答の衝突を検出した場合、再度上記初期応答リクエストを送信する。   (3) When the reader / writer detects a collision of responses that occurs when a plurality of contactless IC cards select the same time slot, the reader / writer transmits the initial response request again.

(4)上記リーダライタは、すべての非接触ICカードからの応答を衝突なしに受信することですべての非接触ICカードの認識をし、当該カードの識別のためのシーケンスを完了する。   (4) The reader / writer recognizes all contactless IC cards by receiving responses from all contactless IC cards without collision, and completes the sequence for identifying the cards.

以上の処理を、図16〜図18を用いてさらに詳しく説明する。尚、以下に示すのは、近接型非接触ICカードの国際規格ISO/IEC(International Organization For Standardization/International Electrotechnical Commission)14443に適応した場合の非接触ICカードの処理である。   The above processing will be described in more detail with reference to FIGS. The following is processing of a non-contact IC card when adapted to the international standard ISO / IEC (International Organization for Standardization / International Electrotechnical Commission) 14443 of a proximity type non-contact IC card.

ISO/IEC14443は例えば、非接触テレホンカードなどに適応できる。さらに具体的に、図16に示すように、公衆電話として機能するリーダライタ1600にテレホンカードとしての機能を有する非接触ICカード1601、1602、1603の3枚を同時に差し込んだ(近接させた)場合を想定する。   ISO / IEC14443 can be applied to, for example, a non-contact telephone card. More specifically, as shown in FIG. 16, when three non-contact IC cards 1601, 1602, and 1603 having a function as a telephone card are simultaneously inserted (closed) into a reader / writer 1600 that functions as a public telephone. Is assumed.

ISO/IEC14443の非接触ICカードの識別システムにおいては、以下の手順で非接触ICカードの識別が行われる。   In the ISO / IEC14443 contactless IC card identification system, the contactless IC card is identified by the following procedure.

まず、公衆電話であるリーダライタ1600が初期応答リクエスト(リクエスト)を送信する。当該初期応答リクエストは、図18に示されるフォーマットになっており、初期応答リクエスト1801を構成するPARAM1802内の8bitのうち、bit1〜bit3の3bit1803を用いてタイムスロット数(N)を各非接触ICカードに通知する。尚、APf1804は、初期要求コマンドを示すヘッダであり、AFI1805は非接触ICカードの適応クラスを示す。又、CRC(Cyclic Redundancy Check)1806はAPf〜PARAMまでのCRCである。   First, the reader / writer 1600, which is a public telephone, transmits an initial response request (request). The initial response request has a format shown in FIG. 18, and among the 8 bits in the PARAM 1802 constituting the initial response request 1801, the number of time slots (N) is set to each contactless IC using 3 bits 1803 of bit 1 to bit 3. Notify the card. APf 1804 is a header indicating an initial request command, and AFI 1805 indicates an adaptation class of a non-contact IC card. A CRC (Cyclic Redundancy Check) 1806 is a CRC from APf to PARAM.

尚、非接触ICカードは1〜NまでのN個のスロットで応答するが、今回の説明ではタイムスロット数(N)を4として説明を行う。即ち、初期応答リクエストに対して非接触ICカード1601〜1603は、1〜4までのタイムスロットのうち一つを選択し、応答を行う。   The non-contact IC card responds with N slots from 1 to N. In this explanation, the number of time slots (N) is assumed to be 4. That is, the non-contact IC cards 1601 to 1603 select one of the time slots 1 to 4 and respond to the initial response request.

図17で示す一回目のカード識別処理1701において、まずリーダライタ1600は初期応答リクエストR1〔REQB〕(1702)を送信する。当該初期応答リクエストR1(1702)に対して非接触ICカード1601及び1602が、乱数としてそれぞれ「1」を生成し、非接触ICカード1603が乱数として「2」を生成したとする。この場合には、非接触ICカード1601、1602は、タイムスロット1(1703)内に示した応答〔ATQB〕A21、A31でそれぞれ応答する。また、非接触ICカード1603は、タイムスロット2(1704)内に示した応答A41で応答する。以上の場合には、上記非接触ICカード1601、1602共、同一のタイミングで応答するため、リーダライタ1600は、タイムスロット1(1703)における非接触ICカードの応答の衝突を検出する。したがって、上記非接触ICカード1601、1602を識別することができないため、再度識別処理を再開する。   In the first card identification processing 1701 shown in FIG. 17, the reader / writer 1600 first transmits an initial response request R1 [REQB] (1702). Assume that the contactless IC cards 1601 and 1602 generate “1” as random numbers and the contactless IC card 1603 generates “2” as random numbers in response to the initial response request R1 (1702). In this case, the non-contact IC cards 1601 and 1602 respond with responses [ATQB] A21 and A31 shown in the time slot 1 (1703), respectively. The non-contact IC card 1603 responds with the response A41 shown in the time slot 2 (1704). In the above case, since the non-contact IC cards 1601 and 1602 respond at the same timing, the reader / writer 1600 detects a non-contact IC card response collision in the time slot 1 (1703). Accordingly, since the non-contact IC cards 1601 and 1602 cannot be identified, the identification process is resumed.

続いて、二回目の識別処理1705において、リーダライタ1600は初期応答リクエストR2(1706)を送信する。ここで初期応答リクエストに対して非接触ICカード1601及び非接触ICカード1603が、乱数として「1」を生成し、非接触ICカード1602が乱数として「3」を生成したと仮定すると、非接触ICカード1601、1603は、タイムスロット1(1707)内のパケットA22、A42を用いてそれぞれ応答する。また、非接触ICカード1602は、タイムスロット3(1708)内のパケットA32を用いて応答する。この場合、リーダライタ1600は、タイムスロット1(1707)における非接触ICカード1601、1603の応答の衝突を検出する。従って、リーダライタ1600は、上記非接触ICカード1601、1603を識別することができないため再度識別処理を再開する。   Subsequently, in the second identification processing 1705, the reader / writer 1600 transmits an initial response request R2 (1706). Here, it is assumed that the non-contact IC card 1601 and the non-contact IC card 1603 generate “1” as a random number and the non-contact IC card 1602 generates “3” as a random number in response to the initial response request. The IC cards 1601 and 1603 respond using the packets A22 and A42 in the time slot 1 (1707), respectively. The non-contact IC card 1602 responds using the packet A32 in the time slot 3 (1708). In this case, the reader / writer 1600 detects a collision of responses of the non-contact IC cards 1601 and 1603 in the time slot 1 (1707). Accordingly, since the reader / writer 1600 cannot identify the non-contact IC cards 1601 and 1603, it restarts the identification process again.

続いて、三回目の識別処理1709において、リーダライタ1600は初期応答リクエストR3(1710)を送信する。ここで初期応答リクエストに対して非接触ICカード1601が乱数として「1」、非接触ICカード1602が乱数として「3」、非接触ICカード1603が乱数として「4」、を生成したと仮定する。この場合、非接触ICカード1601はタイムスロット1(1711)内のパケットA23、非接触ICカード1602はタイムスロット3(1712)内のパケットA33、非接触ICカード1603はタイムスロット4(1713)内のパケットA43、を用いてそれぞれ応答する。したがって、リーダライタ1600は衝突を検出しないため、すべての非接触ICカードの識別を行うことができ、識別処理を完了する。以上がISO/IEC14443の規定に従った、非接触ICカードのカード識別処理である。
ここで、上記非接触ICカードに電源が投入されてから(リーダライタとの通信可能距離に入ってから)各非接触ICカードがリーダライタにそれぞれ識別されるまではアイドル期間+レディ期間と位置付けることができる。
Subsequently, in the third identification processing 1709, the reader / writer 1600 transmits an initial response request R3 (1710). Here, it is assumed that the contactless IC card 1601 generates “1” as a random number, the contactless IC card 1602 generates “3”, and the contactless IC card 1603 generates “4” as a random number in response to the initial response request. . In this case, contactless IC card 1601 is packet A23 in time slot 1 (1711), contactless IC card 1602 is packet A33 in time slot 3 (1712), and contactless IC card 1603 is in time slot 4 (1713). Each packet A43 is responded. Accordingly, since the reader / writer 1600 does not detect a collision, all the non-contact IC cards can be identified, and the identification process is completed. The above is the card identification processing of the non-contact IC card in accordance with ISO / IEC14443.
Here, from when power is turned on to the non-contact IC card (after entering a communicable distance with the reader / writer), each non-contact IC card is positioned as an idle period + ready period until it is identified by the reader / writer. be able to.

これに対して、上記各非接触ICカードがすべて識別されると、リーダライタは各非接触ICカードに対して“ATTRIB“コマンドを送信する。これは上記アイドル期間+レディ期間からアクティブ期間への移行を示し、上記各非接触ICカードが“ATTRIB“コマンド等を受信してアクティブ期間に移行すると上記リーダライタと様々な通信が可能になる。尚、上記アクティブ期間に移行した各非接触ICカードは初期応答リクエストコマンドに対する応答は行わない。ここで、上記“ATTRIB“コマンドに替えて例えば”HALT“コマンドを受信した場合には、上記非接触ICカードはホールト期間に移行し、上記リーダライタとの通信を行わない。この場合、上記リーダライタが”WAKE−UP“コマンドを送信することで、当該非接触ICカードが上記アクティブ期間に移行し、通信が可能になる。   On the other hand, when all the non-contact IC cards are identified, the reader / writer transmits an “ATTRIB” command to each non-contact IC card. This indicates a transition from the idle period + ready period to the active period. When each non-contact IC card receives an “ATTRIB” command or the like and shifts to the active period, various communications with the reader / writer become possible. Each contactless IC card that has shifted to the active period does not respond to the initial response request command. If, for example, a “HALT” command is received instead of the “ATTRIB” command, the non-contact IC card shifts to a halt period and does not communicate with the reader / writer. In this case, when the reader / writer transmits a “WAKE-UP” command, the non-contact IC card shifts to the active period and communication becomes possible.

尚、ISO/IEC14443の規定では、初期応答リクエストコマンドを受け取ってから、非接触ICカードがタイムスロット1で応答する場合の時間を302μsecと規定し、また、1つのタイムスロットの期間(時間)は2266μsecと規定している。つまり、リーダライタ1600から初期応答リクエストを受信して、応答を送信するまでのタイミング(μsec)は、以下の計算式(式1)により与えられる。   In ISO / IEC14443, the time when the contactless IC card responds in time slot 1 after receiving the initial response request command is defined as 302 μsec, and the period (time) of one time slot is 2266 μsec. That is, the timing (μsec) from when the initial response request is received from the reader / writer 1600 until the response is transmitted is given by the following calculation formula (formula 1).

タイミング(μsec)=302μsec+2266μsec×(スロット数(N)−1) :(式1)
上記タイムスロット方式に類似の方法として、スロットマーカ方式もある。上記スロットマーカ方式は、リーダライタが上記タイムスロット方式における初期応答リクエストを送信後、さらに当該リーダライタが各スロット開始のタイミング毎にスロットの開始を示すスロットマーカコマンドを送信する方式である。従って、リーダライタに指定されたタイムスロットを利用して各ICカードが応答する事で当該各ICカードを認識する点で、本質的にタイムスロット方式と同様である。
Timing (μsec) = 302 μsec + 2266 μsec × (number of slots (N) −1): (Formula 1)
As a method similar to the time slot method, there is a slot marker method. The slot marker method is a method in which after the reader / writer transmits an initial response request in the time slot method, the reader / writer further transmits a slot marker command indicating the start of the slot at each slot start timing. Therefore, this is essentially the same as the time slot method in that each IC card recognizes each IC card by responding using the time slot designated by the reader / writer.

さらに、上記応答の衝突による非接触ICカードの識別処理の遅延を回避するための技術が、特開2000−298712号公報に開示されている。   Further, Japanese Patent Laid-Open No. 2000-298712 discloses a technique for avoiding a delay in identification processing of a non-contact IC card due to the response collision.

上記特開2000−298712号公報に記載の技術では、各タイムスロットにおける応答の衝突を確認することで衝突が起こったタイムスロットをカウントし、当該衝突の起こっているタイムスロットの数に基づいてタイムスロットの数を増減するのである。
特開2000−298712号公報
In the technique described in the above Japanese Patent Laid-Open No. 2000-298712, the time slot in which the collision occurred is counted by confirming the collision of the response in each time slot, and the time is determined based on the number of time slots in which the collision occurs. Increase or decrease the number of slots.
JP 2000-298712 A

上述したタイムスロット方式を利用する非接触ICカード(国際規格ISO/IEC14443準拠の非接触ICカード等)では、非接触ICカードが上記リーダライタに対して応答を行う際に、非接触ICカード自身が乱数を用いてタイムスロットを選択する。このため、例えば複数の非接触ICカードが生成した乱数が同一の場合には、上記選択されるタイムスロットが同一となり、上記応答が必ず衝突してしまう。この場合、上記リーダライタは、上記応答リクエストコマンドを再度送信して非接触ICカードの識別処理を行う必要があり、結果的に非接触ICカードの識別が遅延するに至る。 In a non-contact IC card (such as a non-contact IC card conforming to the international standard ISO / IEC14443) using the time slot method described above, when the non-contact IC card responds to the reader / writer, the non-contact IC card itself Selects a time slot using a random number. For this reason, for example, when the random numbers generated by a plurality of non-contact IC cards are the same, the selected time slots are the same, and the responses always collide. In this case, the reader / writer needs to transmit the response request command again to perform identification processing of the non-contact IC card, and as a result, identification of the non-contact IC card is delayed.

また、上記特開2000−298712号公報に記載の技術では、衝突の起こっているタイムスロットの数に基づいてリーダライタが指定するタイムスロットの数を増加させることにより、非接触ICカードが同じタイムスロットを選択する確率を下げている。しかし、上記技術では、個々のタイムスロットにおいて応答の衝突の有無を判断し、その都度衝突の数をカウントして記憶する必要があり、リーダライタの構成が複雑になる。また、タイムスロット数を変更(増加)させて識別処理を開始し、非接触ICカードの数は変更されないにもかかわらず衝突発生の個数が減少した場合、次回はタイムスロット数を減少させて識別処理を行うため、再度衝突の頻度が上がり、識別処理時間が長くなってしまうという問題がある。   In the technique described in the above Japanese Patent Laid-Open No. 2000-298712, the non-contact IC card has the same time by increasing the number of time slots designated by the reader / writer based on the number of time slots in which a collision occurs. The probability of selecting a slot is lowered. However, in the above technique, it is necessary to determine whether or not there is a response collision in each time slot and to count and store the number of collisions each time, which complicates the configuration of the reader / writer. Also, the identification process is started by changing (increasing) the number of time slots. If the number of collisions decreases even though the number of non-contact IC cards is not changed, the number of time slots will be decreased next time for identification. Since the process is performed, there is a problem that the frequency of collisions increases again, and the identification processing time becomes long.

以上に共通して見られる識別処理時間が遅延する問題は、特に電車の改札機等のように、立ち止まることなく利用者が非接触ICカードをリーダライタに識別させる必要があるシステムにて顕著に表れる。即ち、非接触ICカードの識別が遅れることにより、利用者が立ち止まる必要が生じ、結果として当該システムの利用に障害が生じるのである。   The problem of delaying the identification processing time commonly seen above is particularly noticeable in systems such as train ticket gates where the user needs to identify the contactless IC card to the reader / writer without stopping. appear. That is, the identification of the non-contact IC card is delayed, so that the user needs to stop, resulting in a failure in the use of the system.

また、今後、多方面において上記非接触ICカードの利便性を生かした様々なシステムが登場する事が予想できる。つまり、時間が経つにつれて、利用者一人が(例えば財布に入れて)所有する非接触ICカードの枚数が増加する事が容易に予想できるのである。このような状況の下では、上記識別処理時間が一層長くなるため、遅延による問題はさらに深刻なものとなる。従って、各システムの耐用年数を延ばす意味においても、予め上記状況に備えておく必要性がある。   In the future, it can be expected that various systems utilizing the convenience of the non-contact IC card will appear in various fields. In other words, it can be easily predicted that the number of contactless IC cards owned by one user (for example, in a wallet) will increase with time. Under such circumstances, the identification processing time becomes longer, and the problem due to delay becomes more serious. Therefore, it is necessary to prepare for the above situation in advance in terms of extending the useful life of each system.

また他方では、上記非接触ICカードの識別が高速に行なわれるようになれば、さらに高速な移動体へも適用可能となるため、非接触ICカードの利用可能な分野を広げるためにも上記識別処理のさらなる高速化が望まれている。   On the other hand, if the contactless IC card can be identified at a high speed, it can be applied to a higher-speed moving body. Further speeding up of processing is desired.

本発明は、各非接触ICカードの識別処理を高速に完了するICカード用リーダライタ、識別方法、プログラム及びその記録媒体を提供することを目的とする。   An object of the present invention is to provide an IC card reader / writer, an identification method, a program, and a recording medium for completing the identification processing of each contactless IC card at high speed.

本発明は、上記目的を達成するために以下の手段を採用している。即ち、本発明は、複数のICカードと1以上のタイムスロットを用いて通信するICカード用リーダライタを前提としている。ここで、記憶手段が、複数のICカードをそれぞれ正常に認識した際の当該ICカードの数を記憶し、算出手段が、記憶手段にて記憶したICカードの数に基づいて、各ICカードを識別するための最初のリクエストに含めるタイムスロット数(初期値)を算出し、スロット数再設定手段が、算出手段にて算出されたタイムスロット数を最初のリクエスト時のスロット数として設定する。   The present invention employs the following means in order to achieve the above object. That is, the present invention is premised on an IC card reader / writer that communicates with a plurality of IC cards using one or more time slots. Here, the storage means stores the number of IC cards when the plurality of IC cards are normally recognized, and the calculation means stores each IC card based on the number of IC cards stored in the storage means. The number of time slots (initial value) included in the first request for identification is calculated, and the slot number resetting means sets the number of time slots calculated by the calculating means as the slot number at the time of the first request.

従って、過去の、ICカードを認識した履歴に基づいてタイムスロット数を動的に変更する事が可能になり、各カードの識別処理時間を高い確率で短縮する事が可能になる。また、同時に、リーダライタを用いたシステムの耐用年数を延ばすことも可能になる。   Accordingly, the number of time slots can be dynamically changed based on the past history of recognizing the IC card, and the identification processing time of each card can be shortened with a high probability. At the same time, it is possible to extend the useful life of the system using the reader / writer.

尚、リーダライタはコンピュータを用いて具体化することができる。   The reader / writer can be embodied using a computer.

本発明に係るリーダライタにおいては、過去の、非接触ICカードを認識した履歴に基づいてタイムスロット数を動的に変更する事で、各カードの識別処理時間を高い確率で短縮する事が可能になる。同時に、該リーダライタを用いたシステムの耐用年数を延ばすことが可能になる。   In the reader / writer according to the present invention, it is possible to shorten the identification processing time of each card with high probability by dynamically changing the number of time slots based on the past history of recognizing the non-contact IC card. become. At the same time, it is possible to extend the useful life of the system using the reader / writer.

以下、添付図面を参照して、本発明の実施の形態につき説明し、本発明の理解に供する。尚、以下の実施の形態は、本発明を具体化した一例であって、本発明の技術的範囲を限定する性格のものではない。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings for understanding of the present invention. In addition, the following embodiment is an example which actualized this invention, Comprising: It is not the thing of the character which limits the technical scope of this invention.

(実施の形態1)
まず、本発明にかかる実施の形態1におけるリーダライタについて説明する。図1は、実施の形態1におけるリーダライタ101の機能ブロック図である。また、図2は、上記リーダライタ101のハードウェア構成図である。
上記リーダライタ101は、アンテナ203、送受信回路202、CPU201、当該リーダライタを制御するためのプログラムが格納されているROM(Read Only Memory)104、プログラム実行時に例えばワークエリアとして使用されるRAM(Random Access Memory)205より構成されている。
(Embodiment 1)
First, the reader / writer according to the first embodiment of the present invention will be described. FIG. 1 is a functional block diagram of the reader / writer 101 according to the first embodiment. FIG. 2 is a hardware configuration diagram of the reader / writer 101.
The reader / writer 101 includes an antenna 203, a transmission / reception circuit 202, a CPU 201, a ROM (Read Only Memory) 104 storing a program for controlling the reader / writer, and a RAM (Random) used as a work area when the program is executed. Access Memory) 205.

尚、上記リーダライタ101と通信を行う非接触ICカードは、当該リーダライタ101の通信可能エリアに入ると、上記リーダライタからの電磁波より誘導される電力にて動作する。   Note that a non-contact IC card that communicates with the reader / writer 101 operates with power induced by electromagnetic waves from the reader / writer when entering the communicable area of the reader / writer 101.

上記リーダライタ101を機能別に表した場合、図1に示すようにアンテナ手段107、送受信手段106、制御手段105、応答検出手段102、応答無効化手段103を備える。ただし、各手段の処理の詳細については適宜説明を行う。   When the reader / writer 101 is represented by function, the reader / writer 101 includes antenna means 107, transmission / reception means 106, control means 105, response detection means 102, and response invalidation means 103 as shown in FIG. However, details of the processing of each means will be described as appropriate.

尚、例えば上記応答検出手段102、応答無効化手段103は、ROM104にプログラムとして格納され、必要に応じてCPU201に読み出されて実行される。   For example, the response detection unit 102 and the response invalidation unit 103 are stored as programs in the ROM 104 and read out and executed by the CPU 201 as necessary.

次に、図1、図3、図4、図5を用いて本実施の形態1に係るリーダライタの処理について説明する。ここに図3は、リーダライタ101が実行する処理のフローチャートである。尚、理解に供するため、本実施の形態1では図5に示すように3つの非接触ICカード410、420、430が、リーダライタ101と通信を行うものとする。   Next, the processing of the reader / writer according to the first embodiment will be described with reference to FIG. 1, FIG. 3, FIG. 4, and FIG. FIG. 3 is a flowchart of processing executed by the reader / writer 101. For the sake of understanding, it is assumed in the first embodiment that three non-contact IC cards 410, 420, and 430 communicate with the reader / writer 101 as shown in FIG.

まず、リーダライタ101を構成する制御手段105は非接触ICカードに対し初期応答リクエスト450を所定の時間間隔で送信する(図3:S301)。当該初期応答リクエストの送信は、たとえば数十ミリ秒間隔で行われる。ここで上記リーダライタ101が送信した初期応答リクエストを非接触ICカード410、420、430が受信すると、各々の非接触ICカードは当該初期応答リクエストに含まれるタイムスロット数を取得する。尚、タイムスロット数は、図18に示されるPARAMのBit1〜Bit3の3bit1803で指定されており、このbitに指定される値の2の乗数がタイムスロット数となる。   First, the control means 105 constituting the reader / writer 101 transmits an initial response request 450 to the non-contact IC card at a predetermined time interval (FIG. 3: S301). The initial response request is transmitted at intervals of several tens of milliseconds, for example. Here, when the non-contact IC cards 410, 420, and 430 receive the initial response request transmitted by the reader / writer 101, each non-contact IC card acquires the number of time slots included in the initial response request. Note that the number of time slots is specified by 3 bits 1803 of Bit 1 to Bit 3 of PARAM shown in FIG. 18, and a multiplier of 2 of the value specified in these bits is the number of time slots.

次に、上記各非接触カード410〜430は、上記リーダライタ101より与えられたタイムスロット数のうちの1つを選択することで応答に用いるタイムスロットを決定する。   Next, each of the contactless cards 410 to 430 determines a time slot to be used for a response by selecting one of the number of time slots given from the reader / writer 101.

続いて、上記非接触ICカードは、上記リーダライタに応答を送信するタイムスロット(タイミング)まで待機し、上記選択したタイムスロット(のタイミング)にて上記初期応答リクエストに対する応答を送信する。   Subsequently, the non-contact IC card waits until a time slot (timing) for transmitting a response to the reader / writer, and transmits a response to the initial response request at the selected time slot (timing).

さて、上記非接触ICカードから送信された上記応答は、上記リーダライタ101を構成するアンテナ手段107、送受信手段106を介して上記制御手段105に受信される。ここで、上記非接触ICカード410はタイムスロット2(451)を、上記非接触ICカード420はタイムスロット3(452)を、上記非接触ICカード430はタイムスロット2(451)を選択していたと仮定する。   The response transmitted from the non-contact IC card is received by the control means 105 via the antenna means 107 and the transmission / reception means 106 constituting the reader / writer 101. Here, the non-contact IC card 410 selects time slot 2 (451), the non-contact IC card 420 selects time slot 3 (452), and the non-contact IC card 430 selects time slot 2 (451). Assuming that

上記仮定の下では、上記制御手段105は、タイムスロット1(457)では応答を受信しないためその旨を応答検出手段102に送信する。次に、上記制御手段105は、タイムスロット2(451)にて送信された上記非接触ICカード410、430の応答453、455を受信して、当該受信した応答を応答検出手段102に送信する。また、上記制御手段105は、タイムスロット3(452)にて送信された上記非接触ICカード420の応答454を受信して、当該受信した応答を応答検出手段102に送信する。さらに、上記制御手段105は、タイムスロット4(458)では応答を受信しないためその旨を応答検出手段102に送信する(図3:S301)。   Under the above assumption, the control means 105 transmits a response to the response detection means 102 because no response is received in time slot 1 (457). Next, the control means 105 receives the responses 453 and 455 of the contactless IC cards 410 and 430 transmitted in the time slot 2 (451), and transmits the received responses to the response detection means 102. . Further, the control means 105 receives the response 454 of the non-contact IC card 420 transmitted in the time slot 3 (452), and transmits the received response to the response detection means 102. Further, since the control means 105 does not receive a response in time slot 4 (458), it sends a message to that effect to the response detection means 102 (FIG. 3: S301).

以上に示した、各タイムスロットに対応する応答を受信した応答検出手段102は、上記各タイムスロットに対応する応答を、いったん各タイムスロットに対応する所定の記憶手段に記憶すると共に、各応答が“正常な応答”であるか“衝突”であるかを検出(判定)する。   The response detection means 102 having received the response corresponding to each time slot, as described above, once stores the response corresponding to each time slot in the predetermined storage means corresponding to each time slot, Detect (determine) whether the response is “normal response” or “collision”.

尚、以上に述べた初期応答リクエストの送信から“衝突”の判定までを図3のステップS301に記載した応答判定処理とする。   Note that the response determination process described in step S301 in FIG. 3 is performed from the transmission of the initial response request described above to the determination of “collision”.

ここでは、上記タイムスロット1(457)、タイムスロット4(458)に対応する応答は検出されないが、上記タイムスロット2(451)では、上記非接触ICカード410と、上記非接触ICカード430との応答があるため“衝突”として検出される。尚、上記タイムスロット3(452)では、上記非接触ICカード420による応答のみであるため“正常な応答”として検出される。   Here, responses corresponding to the time slot 1 (457) and the time slot 4 (458) are not detected, but in the time slot 2 (451), the contactless IC card 410, the contactless IC card 430, Is detected as a “collision”. In the time slot 3 (452), only the response by the non-contact IC card 420 is detected, so that “normal response” is detected.

続いて、上記応答検出手段102にて“衝突”が検出されると、上記リーダライタ101を構成する応答無効化手段103は、例えば該応答無効化手段103内に設けられたカウンタに“1”を設定する(図3:S302YES→S303)。   Subsequently, when a “collision” is detected by the response detection means 102, the response invalidation means 103 constituting the reader / writer 101 is set to, for example, “1” in a counter provided in the response invalidation means 103. Is set (FIG. 3: S302 YES → S303).

尚、上記応答検出手段102にて“衝突”が検出されない場合、リーダライタ101の通信範囲内に通信可能な非接触ICカードが無いか、あるいは問題なく各非接触ICカードによる応答を受信したことを示し、応答検出手段102の処理は終了する(図3:S302NO→終了)。また、応答を受信した場合であれば、上記制御手段105により以後の各通信処理が行われる。   If no "collision" is detected by the response detection means 102, there is no non-contact IC card capable of communication within the communication range of the reader / writer 101, or a response from each non-contact IC card has been received without any problem. The processing of the response detection unit 102 ends (FIG. 3: S302 NO → end). If a response is received, the control unit 105 performs subsequent communication processing.

さて、上記応答無効化手段103がカウンタに“1”を設定すると、続いて当該カウンタが示すタイムスロットN(Nはカウンタの値)に対応する上記所定の記憶手段を参照し、“正常な応答”が格納されているかを判定する。   When the response invalidating means 103 sets “1” in the counter, the predetermined storage means corresponding to the time slot N (N is the counter value) indicated by the counter is referred to, and the “normal response” "Is stored.

ここで、上記タイムスロット1(457)に対応する記憶手段には、応答が記録されていないので、続いて初期応答リクエストにて送信したタイムスロット数と、上記カウンタの値が一致するかを確認する(図3:S304NO→S306)。   Here, since no response is recorded in the storage means corresponding to the time slot 1 (457), it is confirmed whether the number of time slots transmitted in the initial response request and the counter value match. (FIG. 3: S304 NO → S306).

次に、上記送信したタイムスロット数と、上記カウンタの値が一致しない場合、上記カウンタを1インクリメントして、再度次のカウンタが示すタイムスロット2(451)に対応する記憶手段に、“正常な応答”が記憶されているかを判定する(図3:S304→S306NO→S307→S304)。   Next, when the number of the transmitted time slots and the value of the counter do not match, the counter is incremented by 1, and the storage means corresponding to the time slot 2 (451) indicated by the next counter again reads “normal”. It is determined whether “response” is stored (FIG. 3: S304 → S306 NO → S307 → S304).

以上の処理を繰り返した場合、上記仮定の下ではタイムスロット3(452)に対応する記憶手段に正常な応答が格納されている。この場合、応答無効化手段103は、応答無効化処理を行う(図3:S304YES(N=3)→S305)。   When the above processing is repeated, a normal response is stored in the storage means corresponding to time slot 3 (452) under the above assumption. In this case, the response invalidation means 103 performs response invalidation processing (FIG. 3: S304 YES (N = 3) → S305).

尚、上記応答無効化処理は以下のように行われる。すなわち、上記応答無効化手段103は、上記タイムスロット3(452)に対応する記憶手段から応答の内容を読み出すことにより、上記非接触ICカード420固有の情報を取得する。続いて、上記応答無効化手段103は、上記固有の情報を含む応答無効化コマンド446を上記制御手段105、上記送受信手段106、及び上記アンテナ手段107を介して非接触ICカード420に送信する。   The response invalidation process is performed as follows. That is, the response invalidation means 103 reads the content of the response from the storage means corresponding to the time slot 3 (452), thereby acquiring information unique to the non-contact IC card 420. Subsequently, the response invalidation means 103 transmits a response invalidation command 446 including the unique information to the non-contact IC card 420 via the control means 105, the transmission / reception means 106, and the antenna means 107.

ここに、応答無効化コマンドとは、以後上記リーダライタ101との通信の終了を示すコマンドを受信するまでは、上記リーダライタ101より送信される初期応答リクエストに応答しない旨(命令)を示すコマンドである。具体的には、例えばISO/IEC14443に規定される“ATTRIB“コマンド、又は”HALT“コマンドなどがこれに該当するが、上記リーダライタ及び非接触ICカードの設計において新たに定義したコマンドでもよい。   Here, the response invalidation command is a command indicating that it does not respond to an initial response request (command) transmitted from the reader / writer 101 until a command indicating the end of communication with the reader / writer 101 is received thereafter. It is. Specifically, for example, an “ATTRIB” command or “HALT” command defined in ISO / IEC14443 corresponds to this, but a command newly defined in the design of the reader / writer and the non-contact IC card may be used.

上記応答無効化コマンドを受信した非接触ICカード420は、以後上記リーダライタ101との通信の終了を示すコマンドを受信するまでは上記初期応答リクエストに対する応答を行わないが、初期応答リクエスト以外の通信は行う、即ち上記アクティブ期間に移行する。但し、上記“HALT”コマンドを受信した場合にはホールト期間に移行し、“WAKE−UP”コマンドを受信するまでは通常の通信も行わない。   The contactless IC card 420 that has received the response invalidation command does not respond to the initial response request until a command indicating the end of communication with the reader / writer 101 is received, but communication other than the initial response request. I.e., shift to the active period. However, when the “HALT” command is received, the halt period starts and normal communication is not performed until the “WAKE-UP” command is received.

さて、図3のステップ(S306)において、上記制御手段105が送信したタイムスロット数とカウンタが一致することで、すべての応答を判定したことになり、再度応答判定処理より繰り返す(図3:S306YES→S301)
続いて、上記非接触ICカード420を無効化したリーダライタ101は、2回目の識別処理442を行う。当該2回目の識別処理442でも上記1回目の識別処理441とほぼ同一の処理を行うが、非接触ICカード420については既に無効化しているため、2回目の識別処理442では非接触ICカード410、及び非接触ICカード430を識別すればよい。
Now, in step (S306) of FIG. 3, all the responses have been determined because the number of time slots transmitted by the control means 105 matches the counter, and the response determination processing is repeated again (FIG. 3: S306 YES) → S301)
Subsequently, the reader / writer 101 that invalidates the non-contact IC card 420 performs the second identification process 442. The second identification process 442 performs almost the same process as the first identification process 441, but the non-contact IC card 420 has already been invalidated, so the second identification process 442 performs the non-contact IC card 410. And the non-contact IC card 430 may be identified.

即ち、上記リーダライタ101は、初期応答リクエスト460を送信する。当該初期応答リクエストは、非接触ICカード410〜430にて受信されるが、上記非接触ICカード420については無効化されているので応答を行わない。   That is, the reader / writer 101 transmits an initial response request 460. The initial response request is received by the non-contact IC cards 410 to 430, but the non-contact IC card 420 is invalidated and thus does not respond.

ここで、上記初期応答リクエストに対して非接触ICカード410はタイムスロット2(461)を、上記非接触ICカード430はタイムスロット1(462)を選択したと仮定する。   Here, it is assumed that the contactless IC card 410 selects time slot 2 (461) and the contactless IC card 430 selects time slot 1 (462) in response to the initial response request.

上記仮定の下では、上記制御手段105は、タイムスロット1(462)にて送信された上記非接触ICカード430の応答463を受信して、当該受信した応答を応答検出手段102に送信する。また、上記制御手段105は、タイムスロット2(461)にて送信された上記非接触ICカード410の応答464を受信して、当該受信した応答を応答検出手段102に送信する。尚、上記制御手段105は、タイムスロット3(465)、タイムスロット4(466)では応答を受信しないためその旨を応答検出手段102に送信する。   Under the above assumption, the control unit 105 receives the response 463 of the non-contact IC card 430 transmitted in the time slot 1 (462), and transmits the received response to the response detection unit 102. The control unit 105 receives the response 464 of the non-contact IC card 410 transmitted in the time slot 2 (461) and transmits the received response to the response detection unit 102. Since the control means 105 does not receive a response in the time slot 3 (465) and the time slot 4 (466), the control means 105 transmits that fact to the response detection means 102.

即ち、上記仮定の下では上記応答検出手段102は“衝突”を検出しないため、リーダライタ101は従来と同様に非接触ICカード410、430を識別可能である。以後、上記リーダライタ101により識別された非接触ICカード410、420、430は、上記リーダライタ101と通信可能となる。   That is, under the above assumption, the response detection unit 102 does not detect “collision”, so that the reader / writer 101 can identify the non-contact IC cards 410 and 430 as in the conventional case. Thereafter, the non-contact IC cards 410, 420, and 430 identified by the reader / writer 101 can communicate with the reader / writer 101.

以上のように、正常な応答を受信した場合には、上記衝突を検出していても、当該正常な応答を送信したICカードに対して応答無効化コマンドを送信するため、以後の識別処理は衝突を起こした応答を送信したICカードのみが対象となる。即ち、以後の識別処理においては応答が衝突する確立が減少し、即ち識別処理を高速に完了することができる。   As described above, when a normal response is received, a response invalidation command is transmitted to the IC card that has transmitted the normal response even if the collision is detected. Only the IC card that sent the response that caused the collision is targeted. In other words, in the subsequent identification process, the probability of collision of responses decreases, that is, the identification process can be completed at high speed.

尚、上記非接触ICカードに変えて、接触式ICカードを用いたリーダライタに対して本発明を適応させてもよい。また、上記タイムスロット方式に変えてスロットマーカ方式を利用したリーダライタに適用してもよいし、その他のスロット方式を用いたリーダライタに対して適用することも可能である。   Note that the present invention may be applied to a reader / writer using a contact IC card instead of the non-contact IC card. Further, the present invention may be applied to a reader / writer using a slot marker method instead of the time slot method, or may be applied to a reader / writer using another slot method.

又、上記無効化コマンドは、非接触ICカードに固有の情報を複数含めることにより、1つの無効化コマンドにて正常な応答を行った複数の非接触ICカードを同時に無効化してもよい。   The invalidation command may simultaneously invalidate a plurality of non-contact IC cards that have made a normal response with one invalidation command by including a plurality of pieces of information unique to the non-contact IC card.

(実施の形態2)
続いて、図6、図7、図8を参照し、本発明の実施の形態2に係るリーダライタ601について説明する。
(Embodiment 2)
Next, the reader / writer 601 according to Embodiment 2 of the present invention will be described with reference to FIGS. 6, 7, and 8. FIG.

図6におけるリーダライタ601は、上記実施の形態1におけるリーダライタ101と同様の構成を有するが、応答検出手段102、応答無効化手段103に替えて、衝突検出手段602、及びスロット数増加手段603を備える。尚、各手段の詳細については後述する。ここに、図7は、本実施の形態2に係るリーダライタ601が実行する処理のフローチャートである。   The reader / writer 601 in FIG. 6 has the same configuration as the reader / writer 101 in the first embodiment, but instead of the response detection unit 102 and the response invalidation unit 103, a collision detection unit 602 and a slot number increase unit 603 are used. Is provided. Details of each means will be described later. FIG. 7 is a flowchart of processing executed by the reader / writer 601 according to the second embodiment.

最初に、理解に供するため、図5にて示した状況を例に挙げる。即ち、ここでは、リーダライタ601は3つの異なる非接触ICカード410、420、430を識別するための識別処理を行うものとする。   First, for the sake of understanding, the situation shown in FIG. 5 is taken as an example. That is, here, the reader / writer 601 performs identification processing for identifying three different non-contact IC cards 410, 420, and 430.

まず、リーダライタ601を構成する制御手段105は、初期応答リクエストを送信するが、当該初期応答リクエストにはタイムスロット数に“1”を設定する(図7:S701)。   First, the control means 105 constituting the reader / writer 601 transmits an initial response request, and sets “1” as the number of time slots in the initial response request (FIG. 7: S701).

これは、例えば複数の非接触ICカードと通信を行うリーダライタでは、最初の非接触ICカード識別処理において、非接触ICカードの数がわからないため、通信可能な非接触ICカードが1つしかないと仮定して上記“1”を設定するのである。このようにすることにより、複数の非接触ICカードと通信を行う場合であれば最初の識別処理にて必ず応答の衝突が起こるが、タイムスロット数が1つしかないために、最初の初期応答リクエストに関する処理は短時間で終了する。このため、1つの非接触ICカードとのみ通信を行うことが多いリーダライタでは、最初の識別処理においてタイムスロット数を“1”に設定することで識別処理を短時間で終了することが可能となる。   This is because, for example, a reader / writer that communicates with a plurality of non-contact IC cards does not know the number of non-contact IC cards in the first non-contact IC card identification process, so there is only one non-contact IC card that can communicate. It is assumed that “1” is set. In this way, when communicating with a plurality of non-contact IC cards, there is always a response collision in the first identification process, but since there is only one time slot, the first initial response Processing related to the request is completed in a short time. For this reason, a reader / writer that often communicates with only one contactless IC card can complete the identification process in a short time by setting the number of time slots to “1” in the first identification process. Become.

さて、上記制御手段105は、タイムスロット数に“1”を設定した後、非接触ICカードの識別処理を行う(図7:S702)。即ち、図8に示すように、リーダライタ601は、1回目の識別処理801にて初期応答リクエスト803を送信する。当該初期応答リクエストに設定されているタイムスロット数は“1”であるため、非接触ICカード410、420、430はそれぞれ応答にタイムスロット1(802)しか選択できない。つまり、非接触ICカード410の応答804、非接触ICカード420の応答805、非接触ICカード430の応答806はそれぞれタイムスロット1(802)に対して送信される。   The control means 105 sets the number of time slots to “1”, and then performs non-contact IC card identification processing (FIG. 7: S702). That is, as shown in FIG. 8, the reader / writer 601 transmits an initial response request 803 in the first identification processing 801. Since the number of time slots set in the initial response request is “1”, the contactless IC cards 410, 420, and 430 can select only the time slot 1 (802) as a response. That is, the response 804 of the non-contact IC card 410, the response 805 of the non-contact IC card 420, and the response 806 of the non-contact IC card 430 are transmitted to the time slot 1 (802).

上記応答804〜806は、上記リーダライタ601を構成するアンテナ手段107、送受信手段106を介して上記制御手段105に受信される。次に上記制御手段105は、タイムスロット1に対応する応答804〜806を衝突検知手段602に送信する。上記衝突手段602は、当該タイムスロット1に対応する応答の内容から、タイムスロット1に対応する応答に“衝突“が含まれるか否かを判定する。   The responses 804 to 806 are received by the control means 105 via the antenna means 107 and the transmission / reception means 106 constituting the reader / writer 601. Next, the control unit 105 transmits responses 804 to 806 corresponding to the time slot 1 to the collision detection unit 602. The collision unit 602 determines whether or not “collision” is included in the response corresponding to the time slot 1 from the content of the response corresponding to the time slot 1.

ここで、上記タイムスロット1に対応する応答は、上記応答804〜806が含まれているために“衝突”として検出される(図7:S703YES)。   Here, the response corresponding to the time slot 1 is detected as “collision” because the responses 804 to 806 are included (FIG. 7: S703 YES).

上記衝突検知手段602が“衝突”を検知すると、その旨がスロット数増加手段603に伝えられ、当該スロット数増加手段603は、次回の初期応答リクエストのタイムスロット数を増加させるために、タイムスロット数に“1”より大きい数値を設定し、即ちタイムスロット数を増加させる(図7:S704)。尚、ここではタイムスロット数に“4”を設定したものとする。   When the collision detection unit 602 detects a “collision”, the fact is notified to the slot number increasing unit 603, and the slot number increasing unit 603 increases the time slot number for the next initial response request. The number is set to a value larger than “1”, that is, the number of time slots is increased (FIG. 7: S704). Here, it is assumed that “4” is set as the number of time slots.

上記スロット数増加手段603がタイムスロット数に“4”を設定すると、上記制御手段105は、2回目の識別処理807において再度初期応答リクエスト811を送信する(図7:S702)。   When the slot number increasing means 603 sets “4” to the number of time slots, the control means 105 transmits the initial response request 811 again in the second identification process 807 (FIG. 7: S702).

ここで、例えば上記非接触ICカード410が応答812の送信にタイムスロット2(809)を、上記非接触ICカード420が応答813の送信にタイムスロット4(810)を、上記非接触ICカード430が応答814の送信にタイムスロット1(808)を選択したとする。   Here, for example, the contactless IC card 410 transmits time slot 2 (809) for transmission of the response 812, the contactless IC card 420 transmits time slot 4 (810) for transmission of the response 813, and the contactless IC card 430. Suppose that time slot 1 (808) is selected for transmission of response 814.

上記応答812〜814は、タイムスロット1〜4に対応する順序、即ち応答814、応答812、応答813の順序で上記制御手段105に受信された後、上記衝突検出手段602に送信される。   The responses 812 to 814 are received by the control unit 105 in the order corresponding to the time slots 1 to 4, that is, the order of the response 814, the response 812, and the response 813, and then transmitted to the collision detection unit 602.

ここでは、上記衝突検出手段602においては衝突が検出されないため、タイムスロットの増加は行われない(図7:S703NO→END)。当然、各応答812〜814は正常な応答としてリーダライタに識別されるため、以後各非接触ICカード410〜430とリーダライタ601が通信可能となる。   Here, since no collision is detected in the collision detection means 602, the time slot is not increased (FIG. 7: S703 NO → END). Naturally, since each of the responses 812 to 814 is identified as a normal response by the reader / writer, the non-contact IC cards 410 to 430 and the reader / writer 601 can communicate thereafter.

以上のように、ICカードからの応答の衝突の有無のみを検知し、当該衝突の有無のみに基づいてタイムスロットを増加させるため、リーダライタに複雑な構成を加えることなく、ICカードの数に応じて識別を効率よく行うことができる。   As described above, only the presence or absence of a response collision from the IC card is detected, and the time slot is increased based only on the presence or absence of the collision, so that the number of IC cards can be increased without adding a complicated configuration to the reader / writer. Accordingly, identification can be performed efficiently.

尚、上記非接触ICカードに変えて、接触式ICカードを用いたリーダライタに対して本発明を適応させてもよい。また、上記タイムスロット方式に変えてスロットマーカ方式を利用したリーダライタに適用してもよいし、その他のスロット方式を用いたリーダライタに対して適用することも可能である。   Note that the present invention may be applied to a reader / writer using a contact IC card instead of the non-contact IC card. Further, the present invention may be applied to a reader / writer using a slot marker method instead of the time slot method, or may be applied to a reader / writer using another slot method.

又、上記タイムスロット数の増加は固定値であってもよいが、可変値であってもよい。   The increase in the number of time slots may be a fixed value or a variable value.

さらに、当初より複数のICカードとの通信が予想されるリーダライタでは、必ずしも1回目の初期応答リクエストのタイムスロット数に“1”を設定する必要は無く、リーダライタに応じたタイムスロット数を設定してもよい。   Furthermore, in a reader / writer that is expected to communicate with a plurality of IC cards from the beginning, it is not always necessary to set “1” to the number of time slots of the first initial response request, and the number of time slots corresponding to the reader / writer is set. It may be set.

(実施の形態3)
続いて、図9、図10、図11、図12を参照し、本発明の実施の形態3に係るリーダライタ901について説明する。
(Embodiment 3)
Next, a reader / writer 901 according to Embodiment 3 of the present invention will be described with reference to FIG. 9, FIG. 10, FIG. 11, and FIG.

図9は、上記実施の形態1におけるリーダライタ101、及び上記実施の形態2におけるリーダライタ601と同様の構成を有し、実施の形態2における衝突検出手段602の機能を応答検出手段102に備えている。即ち、リーダライタ901は、応答検出手段102、応答無効化手段103、及びスロット数増加手段603を備える。ここに、図10は、本実施の形態3に係るリーダライタ901が実行する処理のフローチャートである。尚、各処理において、上記実施の形態1、2と同一の処理には同一の番号を記載している。   FIG. 9 has the same configuration as the reader / writer 101 in the first embodiment and the reader / writer 601 in the second embodiment, and the response detecting means 102 has the function of the collision detecting unit 602 in the second embodiment. ing. That is, the reader / writer 901 includes a response detection unit 102, a response invalidation unit 103, and a slot number increase unit 603. FIG. 10 is a flowchart of processing executed by the reader / writer 901 according to the third embodiment. In each process, the same processes as those in the first and second embodiments are denoted by the same numbers.

さて、本実施の形態3においては、図5にて示した状況に加えて、非接触ICカード440をさらに加えた状況を仮定する。まず、上記リーダライタ901が、非接触ICカード410、420、430、440と通信を行うに際して、制御手段105は1回目の識別処理1101に用いる初期応答リクエスト1103のタイムスロット数に“1”を設定する(図10:S701)。   In the third embodiment, it is assumed that a non-contact IC card 440 is further added in addition to the situation shown in FIG. First, when the reader / writer 901 communicates with the non-contact IC cards 410, 420, 430, and 440, the control means 105 sets “1” to the number of time slots of the initial response request 1103 used for the first identification processing 1101. Setting is performed (FIG. 10: S701).

続いて、上記制御手段105が初期応答リクエスト1103を送信すると、次に、当該初期応答リクエストに対して、各非接触ICカード410〜440が応答する(図10:S702)。ここではタイムスロット数が“1”に設定されているために、各非接触ICカード410〜440の応答1104〜1107はタイムスロット1(1102)のタイミングで送信される。このため、リーダライタ901を構成する応答検出手段102は、所定の記憶手段に記憶された当該タイムスロット1(1102)に対応する応答は“衝突”であると検出する(図10:S302YES)。   Subsequently, when the control means 105 transmits an initial response request 1103, each non-contact IC card 410-440 responds to the initial response request (FIG. 10: S702). Here, since the number of time slots is set to “1”, the responses 1104 to 1107 of the non-contact IC cards 410 to 440 are transmitted at the timing of the time slot 1 (1102). For this reason, the response detection means 102 constituting the reader / writer 901 detects that the response corresponding to the time slot 1 (1102) stored in the predetermined storage means is “collision” (FIG. 10: S302 YES).

尚、上記応答検出手段102にて“衝突”が検出されない場合、リーダライタ901の通信範囲内に通信可能な非接触ICカードが無いか、あるいは問題なく各非接触ICカードによる応答を受信したことを示し、応答検出手段102の処理は終了する(図10:S302NO→終了)。また、応答を受信した場合であれば、上記制御手段105により以後の各通信処理が行われる。   If no "collision" is detected by the response detection means 102, there is no non-contact IC card capable of communication within the communication range of the reader / writer 901, or a response from each non-contact IC card has been received without any problem. And the processing of the response detection unit 102 ends (FIG. 10: S302 NO → end). If a response is received, the control unit 105 performs subsequent communication processing.

続いて、上記応答検出手段102が“衝突”を検出すると、上記リーダライタ901を構成する応答無効化手段103は、例えば該応答無効化手段103内に設けられたカウンタに“1”を設定する(図10:S302YES→S303)。   Subsequently, when the response detection unit 102 detects “collision”, the response invalidation unit 103 included in the reader / writer 901 sets, for example, “1” in a counter provided in the response invalidation unit 103. (FIG. 10: S302 YES → S303).

次に、上記応答無効化手段103がカウンタに“1”を設定すると、続いて当該カウンタが示すタイムスロットN(Nはカウンタの値)に対応する上記所定の記憶手段を参照し、“正常な応答”が格納されているかを判定する。   Next, when the response invalidation means 103 sets “1” in the counter, the predetermined storage means corresponding to the time slot N (N is the counter value) indicated by the counter is referred to, and “normal” It is determined whether “response” is stored.

ここで、上記タイムスロット1(1102)に対応する記憶手段には、正常な応答が記録されていないので、続いて初期応答リクエストにて送信したタイムスロット数と、上記カウンタの値が一致するかを確認する(図10:S304NO→S306)。   Here, since a normal response is not recorded in the storage means corresponding to the time slot 1 (1102), the number of time slots subsequently transmitted in the initial response request matches the value of the counter. Is confirmed (FIG. 10: S304 NO → S306).

ここで、タイムスロット数が“1”であるため、スロット数増加手段603は2回目の識別処理1108にて送信される初期応答リクエスト1102に設定するタイムスロット数の値を増加させる(図10:S306YES→S704)。尚、ここではタイムスロット数に“4”を設定したものとする。   Here, since the number of time slots is “1”, the slot number increasing means 603 increases the value of the number of time slots set in the initial response request 1102 transmitted in the second identification processing 1108 (FIG. 10: S306YES-> S704). Here, it is assumed that “4” is set as the number of time slots.

続いて、上記初期応答リクエスト1112が送信されると、各非接触ICカード410〜440は、設定された4つのタイムスロットより1つを選択する。ここで、例えば非接触ICカード410、430は、タイムスロット2(1110)を選択し、非接触ICカード420はタイムスロット1(1109)を選択し、非接触ICカード440は、タイムスロット3(1111)を選択したものとする。   Subsequently, when the initial response request 1112 is transmitted, each contactless IC card 410 to 440 selects one from the set four time slots. Here, for example, contactless IC cards 410 and 430 select time slot 2 (1110), contactless IC card 420 selects time slot 1 (1109), and contactless IC card 440 selects time slot 3 ( 1111) is selected.

この場合、上記応答検出手段102は、タイムスロット1(1109)の応答にて非接触ICカード420の応答1114を、タイムスロット2(1110)の応答にて非接触ICカード410の応答1113と接触ICカード430の応答1115との“衝突”を、タイムスロット3(1111)の応答にて非接触ICカード440の応答1116を検出する。   In this case, the response detection means 102 makes contact with the response 1114 of the non-contact IC card 420 in response to the time slot 1 (1109), and makes contact with the response 1113 of the non-contact IC card 410 in response to the time slot 2 (1110). The “collision” with the response 1115 of the IC card 430 is detected, and the response 1116 of the non-contact IC card 440 is detected based on the response of the time slot 3 (1111).

上記応答検出手段102が、上記“衝突”を検出したので、上記応答無効化手段103は上記図10における処理S303〜S366を繰り返すことで、上記非接触ICカード420に対して応答無効化コマンド1117を、上記非接触ICカード440に対して応答無効化コマンド1118を送信する。   Since the response detection unit 102 detects the “collision”, the response invalidation unit 103 repeats the processes S303 to S366 in FIG. A response invalidation command 1118 is transmitted to the non-contact IC card 440.

これにより、上記非接触ICカード420、及び上記非接触ICカード440は、アクティブ期間に移行し、即ち以後の初期応答リクエストに対する応答は行わない。   Thereby, the non-contact IC card 420 and the non-contact IC card 440 shift to the active period, that is, do not perform a response to the subsequent initial response request.

続いて、カウンタNとタイムスロット数を比較し、4つのタイムスロットすべてについての処理が終了すると、スロット数増加手段603にて3回目の識別処理1201におけるタイムスロット数の増加処理を行う(図10:S306YES→S704)。   Subsequently, the counter N is compared with the number of time slots, and when processing for all four time slots is completed, the slot number increasing means 603 performs time slot number increasing processing in the third identification processing 1201 (FIG. 10). : S306 YES → S704).

尚、ここで上記スロット数増加手段603は、タイムスロット数を増加させてもよいが、ここでは上記無効化手段103より応答無効化処理を行った旨を上記スロット数増加手段603が受信することで、当該スロット数増加手段603はタイムスロット数の増加を行わない。   Here, the slot number increasing means 603 may increase the number of time slots, but here, the slot number increasing means 603 receives that the response invalidation processing has been performed from the invalidating means 103. Thus, the slot number increasing means 603 does not increase the number of time slots.

以上のように、応答無効化処理の実行の有無に基づいてタイムスロット数の増加を決定することで、不要なタイムスロットの増加を行う必要が無く、即ちタイムスロット数の増加による識別処理の遅延を防ぐことができる。   As described above, by determining the increase in the number of time slots based on whether or not the response invalidation process is executed, there is no need to increase the number of unnecessary time slots, that is, the delay of the identification process due to the increase in the number of time slots. Can be prevented.

続いて、上記制御手段105は、3回目の識別処理1201のための初期応答リクエスト1205を送信する(図10:S301)。尚、初期応答リクエスト1205におけるタイムスロット数は“4”である。   Subsequently, the control means 105 transmits an initial response request 1205 for the third identification process 1201 (FIG. 10: S301). Note that the number of time slots in the initial response request 1205 is “4”.

上記3回目の識別処理1201において、上記非接触ICカード410は、タイムスロット2(1203)を選択し、非接触ICカード430は、タイムスロット4(1204)を選択したものとする。上記非接触ICカード420、440は既に応答無効化処理によりアクティブ期間に移行しているため、初期応答リクエストに応答しないのは上述したとおりである。   In the third identification processing 1201, the contactless IC card 410 selects time slot 2 (1203), and the contactless IC card 430 selects time slot 4 (1204). Since the non-contact IC cards 420 and 440 have already shifted to the active period due to the response invalidation processing, as described above, the non-contact IC cards 420 and 440 do not respond to the initial response request.

上記3回目の識別処理1201においては、上記応答検出手段102は“衝突”を検出せず、また“正常な応答”を検出しているため、上記非接触ICカード410、430は通常(従来)の処理によりリーダライタ901にて識別される(図10:S302→終了)。   In the third identification processing 1201, the response detection means 102 does not detect “collision” and detects “normal response”, so the non-contact IC cards 410 and 430 are normal (conventional). By the above process, the reader / writer 901 discriminates (FIG. 10: S302 → end).

以後、各非接触ICカード410〜440は、上記リーダライタ901と所定の通信を行い、例えば“HALT“コマンド等により通信が終了する。   Thereafter, the non-contact IC cards 410 to 440 perform predetermined communication with the reader / writer 901, and the communication is terminated by, for example, a “HALT” command.

尚、以後(次)の識別処理1208では、再度処理S701より識別処理が繰り返されるため、初期応答リクエスト1210に設定されるタイムスロット数は“1”となる。   In the subsequent (next) identification processing 1208, since the identification processing is repeated again from step S701, the number of time slots set in the initial response request 1210 is “1”.

又、一旦応答が無効化された非接触ICカード420、440も、通信終了時の“HALT”コマンド等により、(アクティブ期間が終了し)初期応答リクエストに対する応答が可能となる。   In addition, the non-contact IC cards 420 and 440 whose response has been invalidated can also respond to the initial response request (the active period ends) by the “HALT” command at the end of communication or the like.

以上のように、衝突を起こしていない応答に対応するICカードはその都度応答無効化処理を行うことにより、衝突を起こしたICカードに対してのみ識別処理を行い、かつ、適宜タイムスロット数を増加させることにより、多数のICカードの識別が必要なシステムにおいても、ICカードの数に応じた識別を柔軟にかつ効率よく行うことができる。   As described above, an IC card corresponding to a response that has not caused a collision performs a response invalidation process each time, thereby performing identification processing only for the IC card that has caused the collision, and appropriately setting the number of time slots. By increasing the number, even in a system that requires identification of a large number of IC cards, identification according to the number of IC cards can be performed flexibly and efficiently.

尚、上記実施の形態1、2と同様、上記非接触ICカードに変えて、接触式ICカードを用いたリーダライタに対して本発明を適応させてもよい。また、上記タイムスロット方式に変えてスロットマーカ方式を利用したリーダライタに適用してもよいし、その他のスロット方式を用いたリーダライタに対して適用することも可能である。   As in the first and second embodiments, the present invention may be applied to a reader / writer using a contact IC card instead of the non-contact IC card. Further, the present invention may be applied to a reader / writer using a slot marker method instead of the time slot method, or may be applied to a reader / writer using another slot method.

又、上記タイムスロット数の増加は固定値であってもよいが、可変値であってもよい。   The increase in the number of time slots may be a fixed value or a variable value.

さらに、当初より複数のICカードとの通信が予想されるリーダライタでは、必ずしも1回目の初期応答リクエストのタイムスロット数に“1”を設定する必要は無く、リーダライタに応じたタイムスロット数を設定してもよい。   Furthermore, in a reader / writer that is expected to communicate with a plurality of IC cards from the beginning, it is not always necessary to set “1” as the number of time slots in the first initial response request. It may be set.

(実施の形態4)
続いて、図13〜図15を参照し、本発明の実施の形態4に係るリーダライタ1301について説明する。
(Embodiment 4)
Next, a reader / writer 1301 according to Embodiment 4 of the present invention will be described with reference to FIGS.

図13におけるリーダライタ1301は、上記実施の形態1におけるリーダライタ101と同様の構成を有するが、応答検出手段102、応答無効化手段103に替えて、記憶手段1302、算出手段1303及びスロット数再設定手段1303を備える。尚、各手段の詳細については後述する。また、図14は上記記憶手段1302が記憶するデータのイメージ図であり、図15は、本実施の形態4に係るリーダライタ1301が実行する処理のフローチャートである。   The reader / writer 1301 in FIG. 13 has the same configuration as the reader / writer 101 in the first embodiment, but instead of the response detection unit 102 and the response invalidation unit 103, a storage unit 1302, a calculation unit 1303, and a slot number re-save. Setting means 1303 is provided. Details of each means will be described later. FIG. 14 is an image diagram of data stored in the storage unit 1302, and FIG. 15 is a flowchart of processing executed by the reader / writer 1301 according to the fourth embodiment.

上記実施の形態1〜3で述べたように、制御手段105は例えば複数枚の非接触ICカードに対して初期応答リクエストを送信することにより、上記複数枚の非接触ICカードをそれぞれ認識する点は同様である。
ここで、認識が正常に完了すると、上記記憶手段1302は、正常に認識した非接触ICカードの枚数を記憶する。例えば記憶の方法として、図14Aに示すように、ここでは10個の記憶領域を設け、認識した枚数を新しいものから順次、記憶領域1401〜1410に記憶していく。このようにする事で、最近認識した非接触ICカードの枚数を10個格納する事ができる。
As described in the first to third embodiments, the control unit 105 recognizes the plurality of non-contact IC cards by transmitting an initial response request to the plurality of non-contact IC cards, for example. Is the same.
Here, when the recognition is completed normally, the storage means 1302 stores the number of non-contact IC cards recognized normally. For example, as a storage method, as shown in FIG. 14A, ten storage areas are provided here, and the recognized number is sequentially stored in the storage areas 1401 to 1410 from the newest one. In this way, it is possible to store 10 recently recognized contactless IC cards.

次に、上記記憶手段1302への記憶が完了すると、上記算出手段1303は、上記格納した10個の非接触ICカードの枚数に基づいて、次回に送信する初期応答リクエストに含めるべきタイムスロット数を算出するのである。ここで、スロット数の算出方法はどのようなものでもよいが、例えば上記過去10回分の枚数の平均値とすればよい。この場合、例えば端数は切り上げ、又は切り捨てればよい。具体的には、図14Aに示した例では、各記憶領域1401〜1410に記憶した数値(枚数)の平均は、「1.2」となり、初期応答リクエストに含めるタイムスロット数は「1」となる(切捨てを採用)。これに対して、例えば非接触ICカードが普及し、財布の中などにある非接触ICカードが増加した場合の例を図14Bに示す。この場合、一度に認識される枚数は増加しており、図14Bに示した各記憶領域1411〜1420に記憶した数値(枚数)の平均は、「5.1」となり、初期応答リクエストに含めるタイムスロット数は「5」となる(切捨てを採用)。   Next, when the storage in the storage unit 1302 is completed, the calculation unit 1303 determines the number of time slots to be included in the initial response request to be transmitted next time based on the stored number of the ten contactless IC cards. It is calculated. Here, any method of calculating the number of slots may be used. For example, the average value of the number of the past 10 times may be used. In this case, for example, the fraction may be rounded up or rounded down. Specifically, in the example illustrated in FIG. 14A, the average of the numerical values (numbers) stored in the storage areas 1401 to 1410 is “1.2”, and the number of time slots included in the initial response request is “1”. (Turn down). In contrast, for example, FIG. 14B shows an example in which non-contact IC cards are widespread and non-contact IC cards in a wallet or the like increase. In this case, the number of sheets recognized at a time is increasing, and the average of the numerical values (numbers) stored in the storage areas 1411 to 1420 shown in FIG. 14B is “5.1”, which is the time included in the initial response request. The number of slots is “5” (adopting truncation).

上記算出手段1303にて算出されたタイムスロット数は、上記スロット数再設定手段1304に通知され、当該スロット数再設定手段1304は以後の初期応答リクエストに含まれるタイムスロット数に当該通知された数値を設定するのである。   The number of time slots calculated by the calculation unit 1303 is notified to the slot number resetting unit 1304, and the slot number resetting unit 1304 notifies the numerical value notified to the number of time slots included in the subsequent initial response request. Is set.

以後、上記制御手段105は、上記スロット数再設定手段1304にて再設定された数値(図14Bの場合には「5」)を用いて初期応答リクエストを送信する。尚、非接触ICカード側で、上記初期応答リクエストに含まれる数値を用いてタイムスロット数を算出し直す場合には、当該非接触ICカード側で算出される数値が「5」以上となるように、初期応答リクエストに「3」を格納するのである。   Thereafter, the control means 105 transmits an initial response request using the numerical value reset by the slot number resetting means 1304 (“5” in the case of FIG. 14B). When recalculating the number of time slots using the numerical value included in the initial response request on the non-contact IC card side, the numerical value calculated on the non-contact IC card side is “5” or more. In addition, “3” is stored in the initial response request.

以上のように、過去の、非接触ICカードを認識した履歴に基づいてタイムスロット数を動的に変更する事で、各カードの識別処理時間を高い確率で短縮する事が可能になる。また、時間が経過し、利用者一人が所有する非接触ICカードの枚数が増加(変更)した場合においても、当該リーダライタを用いたシステムでは、自動的にタイムスロットの初期値を変更するため、結果として当該システムの耐用年数を延ばすことが可能になる。   As described above, it is possible to shorten the identification processing time of each card with a high probability by dynamically changing the number of time slots based on the past history of recognizing the non-contact IC card. Further, even when the number of non-contact IC cards owned by one user increases (changes) over time, the system using the reader / writer automatically changes the initial value of the time slot. As a result, the useful life of the system can be extended.

続いて、上記算出手段1303によるタイムスロット数の異なる算出方法について図15を用いて説明する。   Next, a calculation method in which the number of time slots by the calculation unit 1303 is different will be described with reference to FIG.

次に説明する方法においては、上記算出手段1303は、認識した枚数の連続性に着目して初期値を変更するのである。   In the method described below, the calculation unit 1303 changes the initial value by paying attention to the continuity of the recognized number of sheets.

まず、上記制御手段105は、初期応答リクエストに含まれる初期値(タイムスロット数)をNとして識別処理を完了したとする(図15:S1501)。すると、上記記憶手段1302は、当該認識した枚数n1を記憶領域1421に格納すると共に、記憶領域1421に格納されていた、前回の処理にて認識した枚数を記憶領域1422にコピーし、枚数n2とする。   First, it is assumed that the control means 105 completes the identification process with the initial value (number of time slots) included in the initial response request as N (FIG. 15: S1501). Then, the storage means 1302 stores the recognized number n1 in the storage area 1421 and copies the number recognized in the previous process stored in the storage area 1421 to the storage area 1422 to obtain the number n2. To do.

次に、上記算出手段1303は、上記記憶手段1302から枚数n1及びn2を取得し、当該二つの枚数が同一か否かを比較する(図15:S1502→S1503)。   Next, the calculation means 1303 obtains the numbers n1 and n2 from the storage means 1302 and compares whether or not the two numbers are the same (FIG. 15: S1502 → S1503).

ここで、上記n1とn2が同一ではない場合、連続カウンタncを「0」とする(図15:S1503NO→S1504)。ここで、連続カウンタncとは、何回連続して同じ枚数のカードが認識されたかを示す値である。   If n1 and n2 are not the same, the continuous counter nc is set to “0” (FIG. 15: S1503 NO → S1504). Here, the continuous counter nc is a value indicating how many times the same number of cards are recognized.

また、上記算出手段1303は、カード検索回数Nsに「1」を加算し、さらに履歴回数Nsumに上記n1を加算する(図15:S1505→S1506)。ここで、上記カード検索回数Nsとは、現在までにリーダライタが非接触ICカードの識別処理を正常に終了した回数を示し、履歴回数Nsumとは、現在までにリーダライタが認識した非接触ICカードの枚数を示す。   The calculation means 1303 adds “1” to the card search count Ns, and further adds the n1 to the history count Nsum (FIG. 15: S1505 → S1506). Here, the card search number Ns indicates the number of times the reader / writer has successfully completed the identification processing of the non-contact IC card so far, and the history number Nsum indicates the non-contact IC recognized by the reader / writer so far. Indicates the number of cards.

続いて、上記算出手段1303は、初期値Nに、「Nsum÷Ns×1.5」(小数点以下切り上げ)にて算出された数値を代入する(図15:S1507)。ここでいう、「Nsum÷Ns」は、現在までの、1回当りの識別処理で認識したカード枚数の平均値を示す。尚、当該「Nsum÷Ns」に「1.5」を掛ける事で、カード枚数より大きい値の初期値を算出しているが、当該「1.5」は別の数値でもよい。   Subsequently, the calculation unit 1303 substitutes a numerical value calculated by “Nsum ÷ Ns × 1.5” (rounded up after the decimal point) for the initial value N (FIG. 15: S1507). Here, “Nsum ÷ Ns” indicates an average value of the number of cards recognized in the identification processing per time until now. Note that an initial value larger than the number of cards is calculated by multiplying “Nsum ÷ Ns” by “1.5”, but “1.5” may be another value.

上記算出手段1303にて算出された初期値Nは、上記スロット数再設定手段1304に通知され、当該スロット数再設定手段1304は初期値Nに当該通知された値を設定する。当該初期値Nは、上記制御手段105による以後の初期応答リクエスト(識別処理)にて利用される。   The initial value N calculated by the calculation means 1303 is notified to the slot number resetting means 1304, and the slot number resetting means 1304 sets the notified value as the initial value N. The initial value N is used in a subsequent initial response request (identification process) by the control means 105.

さて、上記比較処理:S1503にて上記n1とn2が同一である場合、連続カウンタncを「1」インクリメントし、閾値Nxと連続カウンタNcとを比較する(図15:S1503YES→S1508→S1509)。   In the comparison process: when n1 and n2 are the same in S1503, the continuous counter nc is incremented by “1” and the threshold Nx is compared with the continuous counter Nc (FIG. 15: S1503 YES → S1508 → S1509).

ここで、上記連続カウンタnc<=Nxの場合、上記同様、処理S1505〜S1507により初期値Nが決定される(図15:S1509NO→S1505・・・S1507)。   If the continuous counter nc <= Nx, the initial value N is determined in steps S1505 to S1507 (FIG. 15: S1509 NO → S1505... S1507) as described above.

一方、上記連続カウンタnc>Nxの場合、上記カード検索回数Nsを「0」に初期化し、さらに履歴回数Nsumも「0」で初期化する(図15:S1509YES→S1510→S1511)。続いて、上記算出手段1303は、n1が「1」か否かを判定する(図15:S1512)。   On the other hand, when the continuous counter nc> Nx, the card search count Ns is initialized to “0”, and the history count Nsum is also initialized to “0” (FIG. 15: S1509 YES → S1510 → S1511). Subsequently, the calculation unit 1303 determines whether n1 is “1” (FIG. 15: S1512).

ここで、n1が「1」の場合、初期値Nを「1」とし、当該初期値Nは、上記制御手段105による以後の初期応答リクエスト(識別処理)にて利用される(図15:S1512YES→S1513)。   Here, when n1 is “1”, the initial value N is set to “1”, and the initial value N is used in the subsequent initial response request (identification process) by the control means 105 (FIG. 15: S1512 YES). → S1513).

また、n1が「1」ではない場合、初期値Nに、「n1×1.5」(小数点以下切り上げ)にて算出された数値を代入し、当該初期値Nは、上記制御手段105による以後の初期応答リクエスト(識別処理)にて利用される(図15:S1512NO→S1514)。ここで、数値「1.5」は、上記同様、カード枚数より大きい値の初期値を算出するための値であるが、当該「1.5」は別の数値でもよい。   If n1 is not “1”, a numerical value calculated by “n1 × 1.5” (rounded up after the decimal point) is substituted for the initial value N, and the initial value N is calculated by the control means 105 thereafter. In the initial response request (identification process) (FIG. 15: S1512 NO → S1514). Here, the numerical value “1.5” is a value for calculating an initial value larger than the number of cards, as described above, but “1.5” may be another numerical value.

以上のように、閾値(Nx)を用いて、認識したカードの枚数の連続回数を判定し、当該連続回数に基づいて初期値を算出してもよい。尚、上記処理では、認識枚数が「1」の場合には、「1.5」を掛けて切り上げする処理を行っていない。これは、カードの枚数が1枚の場合には、初期値を「1」にすることで最も識別処理を早く終了できるからである。   As described above, the threshold value (Nx) may be used to determine the continuous number of recognized cards, and the initial value may be calculated based on the continuous number. In the above process, when the recognized number is “1”, the process of rounding up by “1.5” is not performed. This is because when the number of cards is one, the identification process can be completed most quickly by setting the initial value to “1”.

尚、本実施の形態4における記憶手段、算出手段、スロット数再設定手段は、上記実施の形態1〜3に加えて実施する事が可能である。同時に実施する事で、一層識別処理時間を短縮する事が可能になる。   The storage means, calculation means, and slot number resetting means in the fourth embodiment can be implemented in addition to the first to third embodiments. By carrying out simultaneously, it becomes possible to further shorten the identification processing time.

以上のように、正常な応答を受信した場合には、上記衝突を検出していても、当該正常な応答を送信したICカードに対して応答無効化コマンドを送信するため、以後の識別処理は衝突を起こした応答を送信したICカードのみが対象となる。即ち、以後の識別処理においては応答が衝突する確立が減少し、即ち識別処理を高速に完了することができる。   As described above, when a normal response is received, a response invalidation command is transmitted to the IC card that has transmitted the normal response even if the collision is detected. Only the IC card that sent the response that caused the collision is targeted. In other words, in the subsequent identification process, the probability of collision of responses decreases, that is, the identification process can be completed at high speed.

又、ICカードからの応答の衝突の有無のみを検知し、当該衝突の有無のみに基づいてタイムスロットを増加させるため、リーダライタに複雑な構成を加えることなく、ICカードの数に応じて識別を効率よく行うことができる。   In addition, only the presence / absence of a response collision from the IC card is detected, and the time slot is increased based only on the presence / absence of the collision. Therefore, the reader / writer is identified according to the number of IC cards without adding a complicated configuration. Can be performed efficiently.

さらに、衝突を起こしていない応答に対応するICカードはその都度応答無効化処理を行うことにより、衝突を起こしたICカードに対してのみ識別処理を行い、かつ、適宜タイムスロット数を増加させることにより、多数のICカードの識別が必要なシステムにおいても、ICカードの数に応じて識別を柔軟にかつ効率よく行うことができる。   Furthermore, the IC card corresponding to the response that does not cause a collision is subjected to a response invalidation process each time, so that only the IC card that has caused the collision is subjected to an identification process, and the number of time slots is appropriately increased. Therefore, even in a system that requires identification of a large number of IC cards, identification can be performed flexibly and efficiently according to the number of IC cards.

また、過去の、非接触ICカードを認識した履歴に基づいてタイムスロット数を動的に変更する事で、各カードの識別処理時間を高い確率で短縮する事が可能になる。同時に、該リーダライタを用いたシステムの耐用年数を延ばすことが可能になる。   Further, by dynamically changing the number of time slots based on the past recognition history of the non-contact IC card, it becomes possible to shorten the identification processing time of each card with a high probability. At the same time, it is possible to extend the useful life of the system using the reader / writer.

実施の形態1におけるリーダライタの機能ブロック図。2 is a functional block diagram of a reader / writer in Embodiment 1. FIG. 実施の形態1におけるリーダライタのハードウェア構成図。2 is a hardware configuration diagram of a reader / writer according to Embodiment 1. FIG. 実施の形態1におけるリーダライタが実行する処理のフローチャート。5 is a flowchart of processing executed by the reader / writer according to the first embodiment. 実施の形態1における識別処理のイメージ図。3 is an image diagram of identification processing in Embodiment 1. FIG. リーダライタ及び非接触ICカードの通信イメージ図。The communication image figure of a reader / writer and a non-contact IC card. 実施の形態2におけるリーダライタの機能ブロック図。FIG. 6 is a functional block diagram of a reader / writer in Embodiment 2. 実施の形態2におけるリーダライタが実行する処理のフローチャート。10 is a flowchart of processing executed by the reader / writer according to the second embodiment. 実施の形態2における識別処理のイメージ図。FIG. 10 is an image diagram of identification processing in the second embodiment. 実施の形態3におけるリーダライタの機能ブロック図。FIG. 11 is a functional block diagram of a reader / writer according to Embodiment 3. 実施の形態3に係るリーダライタが実行する処理のフローチャート。10 is a flowchart of processing executed by the reader / writer according to the third embodiment. 実施の形態3における識別処理の第1イメージ図。FIG. 10 is a first image diagram of identification processing in the third embodiment. 実施の形態3における識別処理の第2イメージ図。FIG. 10 is a second image diagram of identification processing in the third embodiment. 実施の形態4におけるリーダライタの機能ブロック図。FIG. 10 is a functional block diagram of a reader / writer in Embodiment 4; 記憶手段が記憶するデータのイメージ図。The image figure of the data which a memory | storage means memorize | stores. 実施の形態4に係るリーダライタが実行する処理のフローチャート。10 is a flowchart of processing executed by the reader / writer according to the fourth embodiment. 従来のリーダライタ及び非接触ICカードの通信イメージ図。The communication image figure of the conventional reader / writer and a non-contact IC card. 従来の識別処理のイメージ図。The image figure of the conventional identification process. 初期応答リクエストパケットのフォーマットを示す図。The figure which shows the format of an initial response request packet.

符号の説明Explanation of symbols

101 リーダライタ
102 応答検出手段
103 応答無効化手段
104 ROM
105 制御手段
106 送受信手段
107 アンテナ手段
101 Reader / Writer 102 Response Detection Unit 103 Response Invalidation Unit 104 ROM
105 Control means 106 Transmission / reception means 107 Antenna means

Claims (5)

複数のICカードと1以上のタイムスロットを用いて通信するICカード用リーダライタにおいて、
正常に認識した上記ICカードの数を記憶する記憶手段と、
上記記憶手段にて記憶したICカードの数に基づいて、各ICカードを識別するための最初のリクエストに含めるタイムスロット数を算出する算出手段と、
上記算出手段にて算出されたタイムスロット数を上記最初のリクエスト時のスロット数として設定するスロット数再設定手段とを備えたことを特徴とするリーダライタ。
In an IC card reader / writer that communicates with a plurality of IC cards using one or more time slots,
Storage means for storing the number of normally recognized IC cards;
Calculation means for calculating the number of time slots to be included in the initial request for identifying each IC card based on the number of IC cards stored in the storage means;
A reader / writer comprising: a slot number resetting means for setting the number of time slots calculated by the calculating means as the slot number at the time of the first request.
上記記憶手段は、所定回数分の上記ICカードの数を記憶する請求項1に記載のリーダライタ。   The reader / writer according to claim 1, wherein the storage unit stores the number of IC cards for a predetermined number of times. 複数のICカードを通信可能に識別する識別方法において、
上記複数のICカードをそれぞれ正常に認識した際の当該ICカードの数を記憶する記憶ステップと、
上記記憶ステップにて記憶したICカードの数に基づいて、各ICカードを識別するための最初のリクエストに含めるタイムスロット数を算出する算出ステップと、
上記算出ステップにて算出されたタイムスロット数を上記最初のリクエスト時のスロット数として設定するスロット数再設定ステップとを備えたことを特徴とする識別方法。
In an identification method for identifying a plurality of IC cards in a communicable manner,
A storage step of storing the number of the IC cards when each of the plurality of IC cards is normally recognized;
A calculation step for calculating the number of time slots to be included in the initial request for identifying each IC card based on the number of IC cards stored in the storage step;
An identification method, comprising: a slot number resetting step for setting the number of time slots calculated in the calculation step as a slot number at the time of the first request.
複数のICカードを通信可能に識別するコンピュータに、
上記複数のICカードをそれぞれ正常に認識した際の当該ICカードの数を記憶する記憶ステップと、
上記記憶ステップにて記憶したICカードの数に基づいて、各ICカードを識別するための最初のリクエストに含めるタイムスロット数を算出する算出ステップと、
上記算出ステップにて算出されたタイムスロット数を上記最初のリクエスト時のスロット数として設定するスロット数再設定ステップとを実行させるプログラム。
To a computer that identifies a plurality of IC cards in a communicable manner,
A storage step of storing the number of the IC cards when each of the plurality of IC cards is normally recognized;
A calculation step for calculating the number of time slots to be included in the initial request for identifying each IC card based on the number of IC cards stored in the storage step;
A program for executing a slot number resetting step for setting the number of time slots calculated in the calculation step as the slot number at the time of the first request.
複数のICカードを通信可能に識別するコンピュータに、
上記複数のICカードをそれぞれ正常に認識した際の当該ICカードの数を記憶する記憶ステップと、
上記記憶ステップにて記憶したICカードの数に基づいて、各ICカードを識別するための最初のリクエストに含めるタイムスロット数を算出する算出ステップと、
上記算出ステップにて算出されたタイムスロット数を上記最初のリクエスト時のスロット数として設定するスロット数再設定ステップとを実行させるプログラムを記録したコンピュータ読み取り可能記録媒体。


To a computer that identifies a plurality of IC cards in a communicable manner,
A storage step of storing the number of the IC cards when each of the plurality of IC cards is normally recognized;
A calculation step for calculating the number of time slots to be included in the initial request for identifying each IC card based on the number of IC cards stored in the storage step;
A computer-readable recording medium recording a program for executing a slot number resetting step for setting the number of time slots calculated in the calculating step as the slot number at the time of the first request.


JP2005310917A 2001-12-20 2005-10-26 Ic card reader-writer, identification method, program and its recording medium Pending JP2006073034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005310917A JP2006073034A (en) 2001-12-20 2005-10-26 Ic card reader-writer, identification method, program and its recording medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2001387774 2001-12-20
JP2005310917A JP2006073034A (en) 2001-12-20 2005-10-26 Ic card reader-writer, identification method, program and its recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002356326A Division JP2003248799A (en) 2001-12-20 2002-12-09 Ic card reader-writer, identification method and its program

Publications (1)

Publication Number Publication Date
JP2006073034A true JP2006073034A (en) 2006-03-16

Family

ID=36153513

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005310917A Pending JP2006073034A (en) 2001-12-20 2005-10-26 Ic card reader-writer, identification method, program and its recording medium

Country Status (1)

Country Link
JP (1) JP2006073034A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007142225A1 (en) * 2006-06-05 2007-12-13 Brother Kogyo Kabushiki Kaisha Questioning device of radio tag communication system
JP2008065443A (en) * 2006-09-05 2008-03-21 Mitsubishi Electric Corp Data reader
JP2008124849A (en) * 2006-11-14 2008-05-29 Hitachi Ltd Command control method of reader/writer, program, reader/writer and computer
JP2009044648A (en) * 2007-08-10 2009-02-26 Denso Wave Inc Rfid tag reader
JP2009531937A (en) * 2006-03-23 2009-09-03 ケィティ、コーポレーション Electronic tag recognition apparatus and method, and electronic tag data processing method
US7817573B2 (en) 2006-06-09 2010-10-19 Omron Corporation Communication processor and method of performing communications with communication devices
JP2011188151A (en) * 2010-03-05 2011-09-22 Toshiba Tec Corp Radio tag reading apparatus and radio tag reading method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009531937A (en) * 2006-03-23 2009-09-03 ケィティ、コーポレーション Electronic tag recognition apparatus and method, and electronic tag data processing method
JP4808806B2 (en) * 2006-03-23 2011-11-02 ケィティ、コーポレーション Electronic tag recognition apparatus and method, and electronic tag data processing method
US8395481B2 (en) 2006-03-23 2013-03-12 Kt Corporation Apparatus for recognizing radio frequency identification (RFID) and method thereof, and data processing method of RFID
WO2007142225A1 (en) * 2006-06-05 2007-12-13 Brother Kogyo Kabushiki Kaisha Questioning device of radio tag communication system
US7817573B2 (en) 2006-06-09 2010-10-19 Omron Corporation Communication processor and method of performing communications with communication devices
JP2008065443A (en) * 2006-09-05 2008-03-21 Mitsubishi Electric Corp Data reader
JP2008124849A (en) * 2006-11-14 2008-05-29 Hitachi Ltd Command control method of reader/writer, program, reader/writer and computer
JP2009044648A (en) * 2007-08-10 2009-02-26 Denso Wave Inc Rfid tag reader
JP2011188151A (en) * 2010-03-05 2011-09-22 Toshiba Tec Corp Radio tag reading apparatus and radio tag reading method

Similar Documents

Publication Publication Date Title
US7711323B2 (en) Wireless communication apparatus and response data processing method therefor
US7011250B2 (en) IC card reader/writer, identification method and program
KR100912076B1 (en) Apparatus and method for Integrated Reader and Tag
JP2006073034A (en) Ic card reader-writer, identification method, program and its recording medium
US8638195B2 (en) Method, transponder, and circuit for selecting one or more transponders
EP1313057B1 (en) Contactless IC card, responding method, and program therefor
KR100610358B1 (en) Rfid reader and tag and system and method for identifying tag using bit synchronize signal
EP1563445B1 (en) Contactless ic card
JP4134143B2 (en) Non-contact IC card, response method, and program thereof
JP2008129652A (en) Radio communication equipment
JP2003248799A (en) Ic card reader-writer, identification method and its program
JP4426820B2 (en) Non-contact IC card
KR101001682B1 (en) Tag Sleep Method for Tag Collection in Active RFID Systems
KR101042389B1 (en) Tag collection method using an identified slot scan process in rfid systems
JP4133242B2 (en) Non-contact IC card, response method, and program thereof
JPH11252124A (en) Communication system, communication device and its control method
EP2816501A1 (en) A near field communication listen device emulating multiple NFC B technology tags
US6328218B1 (en) Electronic card identification methods
CN115423065B (en) Method and device for detecting card, electronic equipment and storage medium
CN115828947A (en) Information detection method, device and storage medium
JP2002366906A (en) Non-contact communication method for portable information processor
JP2001307033A (en) Non-contact ic card reader
JP2003296668A (en) Non-contact communication system, reader-writer, non- contact ic card/tag
JP2008529394A (en) Improved communication between communication stations and data carriers
JP2009098784A (en) Reading device for rfid tag

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080319

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080730