JP4315091B2 - Non-contact communication system and non-contact communication device - Google Patents
Non-contact communication system and non-contact communication device Download PDFInfo
- Publication number
- JP4315091B2 JP4315091B2 JP2004296179A JP2004296179A JP4315091B2 JP 4315091 B2 JP4315091 B2 JP 4315091B2 JP 2004296179 A JP2004296179 A JP 2004296179A JP 2004296179 A JP2004296179 A JP 2004296179A JP 4315091 B2 JP4315091 B2 JP 4315091B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- response
- contact
- contact communication
- control means
- 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.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims description 191
- 230000004044 response Effects 0.000 claims description 182
- 230000005540 biological transmission Effects 0.000 claims description 67
- 238000012545 processing Methods 0.000 description 59
- 239000000872 buffer Substances 0.000 description 33
- 238000000034 method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Description
本発明は非接触通信装置が上位装置からのコマンドを順次データキャリアに送信して当該データキャリアに対し読み書き処理する非接触通信システムおよび非接触通信装置に係り、特に、処理時間の短縮を図ったものに関する。 The present invention relates to a non-contact communication system and a non-contact communication apparatus in which a non-contact communication device sequentially transmits commands from a host device to a data carrier and performs read / write processing on the data carrier, and in particular, shortens processing time. About things.
ICカード(データキャリア)に対し、非接触で読み書きする非接触通信システムは、通常、上位装置と、リーダライタ(非接触通信装置)と、利用者が携帯するICカードとからシステム構成される。上位装置は、システムにとって必要なすべての機能を果たすもので、リーダライタとデータ通信を行う。リーダライタは、ICカードとの間で電波(電磁波)による非接触のデータ通信を行う。 A contactless communication system that reads and writes data on an IC card (data carrier) in a noncontact manner usually includes a host device, a reader / writer (contactless communication device), and an IC card carried by the user. The host device performs all functions necessary for the system and performs data communication with the reader / writer. The reader / writer performs non-contact data communication with an IC card using radio waves (electromagnetic waves).
特許文献1には、入退室管理システムにおいて、上位装置とリーダライタとの間のデータ通信量、通信時間の削減を図って、上位装置の負担を軽減し、全体としての処理能率を向上させることが記載されている。そのために、カードの入退室照合に伴って生ずる履歴情報をリーダライタに記憶しておき、このリーダライタの記憶した履歴情報を全体用リーダライタにより収集し編集してカードに登録するようにして、上位装置とリーダライタとの間の通信を軽減させるようにすることが提案されている。
例えば、駅の改札システムなどでは、高速処理が要求される。このような高速処理の要求に対しては、従来では、上位装置およびリーダライタの処理動作の高速化(動作クロックの高速化)や通信速度の高速化を図ったり、データ圧縮技術などを取り入れたりしていた。しかしながら、この高速処理対策では、処理の高速化に応じることができるような高い処理能力を有する設備であることが必要である上、システムが様々な環境下で使用されることを考慮すると、高速処理を実現するためには様々な問題が発生し、これを個別に解決してゆかねばならないという困難性を伴うことが予想される。また、特許文献1に記載された高速処理対策では、別に全体用リーダライタを設けねばならず、設備費が高くなるという問題があり、しかも、入退室システムには良いが、非接触通信システム一般に適合することは困難である。 For example, in a station ticket gate system, high-speed processing is required. In response to such high-speed processing requirements, conventionally, the processing operation of the host device and reader / writer has been increased (the operation clock has been increased), the communication speed has been increased, and data compression techniques have been incorporated. Was. However, with this high-speed processing measure, it is necessary to have equipment with high processing capacity that can respond to high-speed processing, and considering that the system is used in various environments, high-speed processing is required. In order to realize the processing, various problems occur, and it is expected that this involves a difficulty that must be solved individually. In addition, the high-speed processing measures described in Patent Document 1 have a problem that an additional reader / writer must be provided, resulting in a high equipment cost. It is difficult to fit.
本発明は上記の事情に鑑みてなされたもので、その目的は、別に高価な設備を設けずとも、処理時間の短縮化を図ることができる非接触通信システムを提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a contactless communication system capable of shortening the processing time without providing expensive equipment.
請求項1の発明は、データを記憶する記憶部を具えた非接触型データキャリアと、この非接触型データキャリアと非接触データ通信を行う非接触通信装置と、この非接触通信装置と通信を行い前記非接触型データキャリアと前記非接触通信装置との間の非接触データ通信を制御する上位装置とから構成される非接触通信システムであって、前記上位装置は、前記非接触型データキャリアと前記非接触通信装置との間の前記非接触データ通信を制御するためのコマンドを前記非接触通信装置に与える非接触通信制御手段と、前記非接触通信制御手段が前記非接触通信装置に与えたコマンドに対する前記非接触型データキャリアの応答を予測する応答予測手段と、前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応する次期コマンドを準備し、前記非接触通信制御手段を介して準備した次期コマンドを前記非接触通信装置に与える次期コマンド準備手段と、を具え、前記非接触通信装置は、前記上位装置が具える前記非接触通信制御手段から与えられたコマンドを前記非接触型データキャリアが受信できる形式に変換して送信する送信制御手段と、前記非接触型データキャリアからの応答を受信する受信制御手段と、前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた次期コマンドの一つを選択し、前記送信制御手段を介して前記非接触型データキャリアに送信した後、前記上位装置に対して選択した次期コマンドの一つが何であったかを示す次期コマンド選択情報を送信して通知する送受信制御手段と、を具え、前記上位装置が具える前記非接触通信制御手段は、更に、前記非接触通信装置が具える前記送受信制御装置から受信した前記次期コマンド選択情報に応じて新たなコマンドを前記非接触通信装置に与えることを特徴とする非接触通信システにある。 The invention according to claim 1 is a non-contact type data carrier having a storage unit for storing data, a non-contact communication device that performs non-contact data communication with the non-contact type data carrier, and communication with the non-contact communication device. A non-contact communication system including a non-contact data communication between the non-contact data carrier and a non-contact data communication between the non-contact communication device, wherein the high-order device is the non-contact data carrier A contactless communication control means for giving a command for controlling the contactless data communication between the contactless communication apparatus and the contactless communication apparatus, and the contactless communication control means gives the contactless communication apparatus to the contactless communication apparatus. Response prediction means for predicting the response of the non-contact type data carrier to the received command, and response from the non-contact type data carrier predicted by the response prediction means And a next command preparing means for providing the next command prepared via the non-contact communication control means to the non-contact communication device, the non-contact communication device comprising the higher-order device. A transmission control means for converting the command given from the contactless communication control means into a format that can be received by the contactless data carrier, and a reception control means for receiving a response from the contactless data carrier; Selecting one of the next commands given from the host device corresponding to the response from the contactless data carrier received by the reception control means, and sending it to the contactless data carrier via the transmission control means. Transmission / reception for transmitting and notifying next command selection information indicating what one of the next commands selected is sent to the higher-level device after transmission The non-contact communication control means provided in the host device further receives a new command in accordance with the next command selection information received from the transmission / reception control device provided in the non-contact communication device. The contactless communication system is provided to the contactless communication apparatus.
請求項9の発明は、請求項1記載の非接触通信システムに使用される非接触通信装置において、前記上位装置が具える前記非接触通信制御手段から与えられたコマンドを前記非接触型データキャリアが受信できる形式に変換して送信する送信制御手段と、前記非接触型データキャリアからの応答を受信する受信制御手段と、前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた次期コマンドの一つを選択し、前記送信制御手段を介して前記非接触型データキャリアに送信した後、前記上位装置に対して選択した次期コマンドの一つが何であったかを示す次期コマンド選択情報を送信して通知する送受信制御手段と、を具えることを特徴とする。 According to a ninth aspect of the present invention, in the non-contact communication apparatus used in the non-contact communication system according to the first aspect, a command given from the non-contact communication control means included in the higher-level apparatus is transmitted to the non-contact type data carrier. A transmission control means that converts the data into a format that can be received, a reception control means that receives a response from the contactless data carrier, and a response from the contactless data carrier received by the reception control means After selecting one of the next commands given from the host device and transmitting it to the contactless data carrier via the transmission control means, what was one of the next commands selected for the host device? Transmission / reception control means for transmitting and notifying next command selection information indicating the above.
上記請求項1および9の発明によれば、非接触通信装置から非接触型データキャリアへコマンドを送信し、非接触型データキャリアが非接触通信装置から送信されてきたコマンドに対する処理を実行している間に、上位装置から非接触通信装置に対して、非接触型データキャリアからの応答に応じて非接触通信装置から非接触型データキャリアへ送信すべき次期コマンドを送信することができ、また、非接触通信装置が非接触型データキャリアからの応答に対応するコマンドを選択すると、そのコマンドを非接触通信装置が非接触型データキャリアに送信した後、非接触型データキャリアが送信されてきたコマンドを処理している間に、非接触通信装置が非接触型データキャリアへ送信したコマンドを特定する情報を上位装置に送信することができるので、処理時間を短縮することができる。 According to the first and ninth aspects of the invention, a command is transmitted from the non-contact communication device to the non-contact type data carrier, and the non-contact type data carrier executes processing for the command transmitted from the non-contact communication device. In the meantime, it is possible to transmit the next command to be transmitted from the non-contact communication device to the non-contact type data carrier according to the response from the non-contact type data carrier to the non-contact communication device from the host device. When the contactless communication device selects a command corresponding to the response from the contactless data carrier, the contactless data carrier has been transmitted after the contactless communication device has transmitted the command to the contactless data carrier. While processing the command, send information identifying the command sent to the contactless data carrier by the contactless communication device to the host device It is possible, it is possible to shorten the processing time.
上記の請求項1の非接触通信システムにおいては、請求項2のように、前記上位装置が具える前記応答予測手段は、前記非接触通信装置が前記非接触型データキャリアに与えたコマンドに対する前記非接触型データキャリアからの応答が、正常でなかった場合、および正常であった場合の両方を予測し、更に、それぞれの場合において前記非接触型データキャリアからの複数の応答の形態を予測することができる。 In the contactless communication system according to claim 1, as in claim 2, the response predicting means included in the host device is configured to perform the response to the command given to the contactless data carrier by the contactless communication device. Predict both when the response from the contactless data carrier is not normal and when it is normal, and in each case predict the form of multiple responses from the contactless data carrier be able to.
また、非接触通信システムにおいて、請求項3のように、前記上位装置が具える前記次期コマンド準備手段は、前記応答予測手段が予測した複数の前記応答のそれぞれに対応する次期コマンドを準備し、前記応答予測手段が予測した複数の前記応答と、準備した次期コマンドとをそれぞれ対応付けて前記非接触通信制御手段を介して前記非接触通信装置に与えることができる。このようにすれば、非接触通信装置において、非接触型データキャリアの応答に対する次期コマンドの選択処理が容易となる。 Further, in the non-contact communication system, as in claim 3, the next command preparation means included in the host device prepares a next command corresponding to each of the plurality of responses predicted by the response prediction means, The plurality of responses predicted by the response prediction unit and the prepared next command can be associated with each other and given to the non-contact communication device via the non-contact communication control unit. In this way, in the non-contact communication apparatus, the next command selection process for the response of the non-contact type data carrier is facilitated.
更に、非接触通信システムにおいて、請求項4のように、前記上位装置が具える前記次期コマンド準備手段は、与えたコマンドに対する前記非接触型データキャリアからの応答が正常でなかった場合を予測して準備された次期コマンドに対して、少なくとも当該次期コマンドの再実行回数を付加して前記非接触通信装置に与えることができる。このようにすれば、非接触通信装置と非接触型データキャリアとの間で、同じコマンドの送信が繰り返されて処理が進行しなくなるという不具合を解消することができる。
Furthermore, in the non-contact communication system, as in
請求項5の発明は、非接触通信システムにおいて、前記非接触通信装置が具える前記送受信制御手段は、前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた前記次期コマンドがない場合、前記上位装置に対して前記受信制御手段が受信した前記非接触型データキャリアからの応答をそのまま送信し、前記上位装置が具える前記次期コマンド予測手段は、前記非接触通信装置から通知された前記予測外応答情報に対応する新たなコマンドを新たな次期コマンドとして準備することを特徴とする。 According to a fifth aspect of the present invention, in the non-contact communication system, the transmission / reception control means included in the non-contact communication device is provided by the host device corresponding to the response from the non-contact type data carrier received by the reception control means. When there is no given next command, the response from the non-contact type data carrier received by the reception control unit is transmitted as it is to the host device, and the next command prediction unit provided by the host device includes: A new command corresponding to the unexpected response information notified from the non-contact communication device is prepared as a new next command.
また、請求項10の発明は、請求項5記載の非接触通信システムに使用される非接触通信装置において、前記送受信制御手段は、前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた前記次期コマンドがない場合、前記上位装置に対して前記受信制御手段が受信した前記非接触型データキャリアからの応答をそのまま送信することを特徴とする。
The invention according to
上記請求項5、10の構成によれば、非接触型データキャリアからの応答が予想外のもので、非接触通信装置ではその応答に対処できない場合でも、その応答を上位装置で処理することによって、処理が途中で停止することを極力防止することができる。
According to the configurations of
請求項6の発明は、請求項1ないし5のいずれかに記載の非接触通信システムにおいて、前記非接触通信装置は、更に、前記送受信制御手段によって制御される信号出力手段を具え、前記上位装置が具える前記次期コマンド準備手段は、前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応する次期コマンドに加え、前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応して前記信号出力手段に信号を出力する次期信号出力コマンドを準備し、前記非接触通信制御手段を介して前記次期コマンドと前記次期信号出力コマンドとを前記非接触通信装置に与え、前記非接触通信装置が具える前記送受信制御手段は、前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する次期コマンドの一つと、次期信号出力コマンドの一つとを選択し、選択した次期コマンドの一つは前記送信制御手段を介して前記非接触型データキャリアに送信し、選択した次期信号出力コマンドの一つは前記信号出力手段に対応する信号に変換して出力することを特徴とする。 According to a sixth aspect of the present invention, in the non-contact communication system according to any one of the first to fifth aspects, the non-contact communication device further includes a signal output unit controlled by the transmission / reception control unit, and the host device The next command preparing means comprises the next command corresponding to each of the responses from the non-contact type data carrier predicted by the response predicting means, and the non-contact type data carrier predicted by the response predicting means. A next signal output command for outputting a signal to the signal output means corresponding to each of the responses, and the next command and the next signal output command are sent to the contactless communication device via the contactless communication control means. And the transmission / reception control means included in the non-contact communication device includes the non-contact type data carrier received by the reception control means. One of the next commands corresponding to the answer and one of the next signal output commands are selected, and one of the selected next commands is transmitted to the non-contact type data carrier via the transmission control means, and the selected next signal is selected. One of the output commands is converted into a signal corresponding to the signal output means and output.
請求項11の発明は、請求項9、10記載の非接触通信装置において、前記送受信制御手段によって制御される信号出力手段を具え、前記送受信制御手段は、前記受信制御手段が前記上位装置から受信した前記非接触型データキャリアからの応答に対応する次期コマンドの一つと、次期信号出力コマンドの一つとを選択し、選択した次期コマンドの一つは前記送信制御手段を介して前記非接触型データキャリアに送信し、選択した次期信号出力コマンドの一つは前記信号出力手段に対応する信号に変換して出力することを特徴とする。
The invention according to
請求項6、11の構成によれば、例えば、コマンドに対する処理結果を表示装置や発音装置などの報知手段によって使用者に知らせることができる。
請求項6、11の構成は、請求項7、12の発明のように、前記非接触通信装置が具える前記信号出力手段は、通路の通行を禁止または許可する扉の開閉を制御する信号を出力するものとすることができる。
また、請求項8、13の発明のように、前記非接触通信装置が具える前記信号出力手段は、前記非接触通信装置が具える光または音を用いて状態を報知する報知手段を制御する信号を出力するものとすることができる。
According to the configuration of the sixth and eleventh aspects, for example, the processing result for the command can be notified to the user by a notification means such as a display device or a sounding device.
According to the sixth and eleventh aspects of the present invention, as in the seventh and twelfth aspects of the invention, the signal output means included in the non-contact communication device provides a signal for controlling opening and closing of a door that prohibits or permits passage of a passage. Can be output.
Further, as in the inventions of
以下、本発明の第1の実施例を図1〜図6に基づいて説明する。本実施例の非接触通信システムは、図6に示すように、非接触通信装置としてのリーダライタ1、このリーダライタ1の上位装置2、非接触型データキャリアとしてのICカード3から構成されている。リーダライタ1と上位装置2とは、データ通信を行うようになっている。この場合のデータ通信は、有線であっても、無線であっても良く、また、シリアル通信、パラレル通信のいずれであっても良い。この実施例では、有線によるシリアル通信であって、その通信方式は半2重通信方式が採用されているものとする。ICカード3は使用者が携帯するもので、図示はしないが、データを記憶する記憶部を有している。このICカード3とリーダライタ1とは、電波(電磁波)により非接触でデータ通信を行うようになっている。 Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. As shown in FIG. 6, the non-contact communication system of the present embodiment comprises a reader / writer 1 as a non-contact communication device, a host device 2 of the reader / writer 1, and an IC card 3 as a non-contact type data carrier. Yes. The reader / writer 1 and the host device 2 perform data communication. Data communication in this case may be wired or wireless, and may be either serial communication or parallel communication. In this embodiment, it is assumed that the serial communication is performed by wire and the half duplex communication method is adopted as the communication method. The IC card 3 is carried by the user and has a storage unit for storing data, although not shown. The IC card 3 and the reader / writer 1 perform data communication in a non-contact manner using radio waves (electromagnetic waves).
図2は、上位装置2の電気的構成を機能ブロックで示す。図2に示す通り、上位装置2は、次期コマンド準備手段としての次期コマンド準備部4、非接触通信制御手段としての非接触通信制御部5、応答予測手段としての応答予測部6、送信部7、受信部8、下位通信部9を具えている。このうち、応答予測部6は、リーダライタ1からICカード3に与えたコマンドに対して、ICカードからの応答(複数あり。)を予測する。
FIG. 2 shows the electrical configuration of the host device 2 in function blocks. As shown in FIG. 2, the host device 2 includes a next
次期コマンド準備部4は、応答予測部6が予測した応答のそれぞれに対するコマンド(次期コマンド)を準備する。非接触通信制御部5は、次期コマンド準備部4が準備した次期コマンドおよびその次期コマンドに対する応答についての判定条件をリーダライタ1に適合する形式に変更して送信部7に送る。送信部7は、非接触通信制御部5から与えられた次期コマンドおよび判定条件を変調して下位通信部9からリーダライタ1へ送信する。受信部8は、下位通信部9がリーダライタ1から受信したデータを復調して非接触通信制御部5に与える。そして、非接触通信制御部5は、リーダライタ1からのデータを上位装置2の形式に変換し、そのデータのうちリーダライタ1がICカード3に送信したコマンドが何であったかを示す次期コマンド選択情報を応答予測部6に与える。そして、応答予測部6は、そのリーダライタ1からICカード3に送信されたコマンドに対する応答を予測し、その予測した応答を次期コマンド準備部4に与えるのである。
The next
図1は、リーダライタ1の電気的構成を機能ブロックで示す。図1に示す通り、リーダライタ1は、上位装置2と有線による半2重通信方式にてシリアルデータ通信を行う上位通信部10、上位装置2との通信を制御する通信制御部11、記憶部12、送受信制御手段としてのデータ処理制御部13、アンテナ14を介してICカード3と電波でデータ通信を行う無線通信部15を備えている。
FIG. 1 shows the electrical configuration of the reader / writer 1 in functional blocks. As shown in FIG. 1, the reader / writer 1 includes a
通信制御部11は、受信制御部16と送信制御部17とからなる。記憶部12は、コマンドバッファ18、条件データバッファ19とからなる。通信制御部11の両制御部16、17のうち、受信制御部16は、上位装置2から送信されてきたデータを復調し、そのデータを、データの種類に応じて記憶部12のコマンドバッファ18および条件データバッファ19のうちのいずれかに格納する。また、送信制御部17は、データ処理制御部13側で作成されたデータを変調して上位通信部10を介して上位装置2に送信する。
The
データ処理制御部13は、コマンド選択部20、コマンド選択情報部21、カード通信処理部22、カード応答判定部23、上位送信データ作成部24を備えている。また、無線通信部15は、送信回路25と受信回路26とから構成されている。データ処理制御部13のコマンド選択部20は、コマンド選択情報部21から与えられるコマンド選択情報に基づいて前記コマンドバッファ18に格納されている複数のコマンドのうちから、ICカード3へ送信すべきコマンドを選択してカード通信処理部22へ送る。カード通信処理部22は、送信制御手段として機能し、コマンド選択部20から与えられたコマンドをICカード3に適合する形式に変更して送信回路25に送る。そして、送信回路25は、カード通信処理部22から与えられたデータを変調してアンテナ14から送信する。
The data
リーダライタ1がICカード3と通信する場合、アンテナ14からは、電力用のキャリア信号が発信され、ICカード3に送信すべきデータは、そのキャリア信号に重畳される。ICカード3は、リーダライタ1から送信されてくる電力用のキャリア信号から動作電源を得て処理動作を行う。このICカード3から送信されるデータ信号は、リーダライタ1のアンテナ14に受信される。アンテナ14に受信されたデータ信号は、無線通信部15の受信回路26により復調される。そして、復調された受信データは、カード通信処理部22に与えられる。
When the reader / writer 1 communicates with the IC card 3, a power carrier signal is transmitted from the
カード通信処理部22は、受信制御手段としても機能し、ICカード3から受信したデータをリーダライタ1の取り扱い形式に変更してカード応答判定部23に送る。カード応答判定部23は、ICカード3から受信したデータ(応答)を条件データバッファ19に格納されている判定条件によって判定する。そして、カード応答判定部23は、判定結果に基づく情報をコマンド選択情報部21および上位送信データ作成部24に与える。上位送信データ作成部24では、カード応答判定部23から与えられたデータを上位装置2に送信すべき内容にして通信制御部11の送信制御部17に与える。送信制御部17は、上位送信データ作成部24から与えられたデータを変調して上位装置2へ送信する。
The card
本実施例の非接触通信システムでは、ICカード3が行うべき処理は、コマンドとしてリーダライタ1から与えられる。ICカード3が一つのコマンドを処理すると、その処理結果としての応答がリーダライタ1に送信される。そして、リーダライタ1は、ICカード3からの応答内容を、判定条件によって判定し、その判定結果に応じた次のコマンドをICカード3に送る。このようなリーダライタ1がICカード3に送信するコマンド、および応答内容を判定するための基準となる判定条件は、全て上位装置2からリーダライタ1に送信される。 In the contactless communication system of the present embodiment, processing to be performed by the IC card 3 is given from the reader / writer 1 as a command. When the IC card 3 processes one command, a response as the processing result is transmitted to the reader / writer 1. Then, the reader / writer 1 determines the response content from the IC card 3 according to the determination condition, and sends the next command corresponding to the determination result to the IC card 3. All of the commands that the reader / writer 1 transmits to the IC card 3 and the determination conditions that are the criteria for determining the response contents are all transmitted from the host device 2 to the reader / writer 1.
ここで、従来の上位装置からリーダライタへのコマンドおよび判定条件の送信タイミングを、リーダライタからICカードへのコマンドの送信およびICカードからリーダライタへの応答の送信のタイミングに関連付けて図9により説明する。
即ち、リーダライタとICカードの通信が確立すると、まず、最初のコマンド1(初回コマンド1)が上位装置からリーダライタに送信され、リーダライタは、その初回コマンド1をICカードに送信する。ICカードは、リーダライタから送信された初回コマンド1についての処理を実行し、その処理結果を応答1としてリーダライタへ送信する。リーダライタは、ICカードから送信された応答1を上位装置へ送信する。
Here, the transmission timing of the command and the determination condition from the conventional host device to the reader / writer is related to the transmission timing of the command from the reader / writer to the IC card and the transmission of the response from the IC card to the reader / writer according to FIG. explain.
That is, when communication between the reader / writer and the IC card is established, first, the first command 1 (initial command 1) is transmitted from the host device to the reader / writer, and the reader / writer transmits the initial command 1 to the IC card. The IC card executes processing for the initial command 1 transmitted from the reader / writer, and transmits the processing result as a response 1 to the reader / writer. The reader / writer transmits the response 1 transmitted from the IC card to the higher-level device.
上位装置は、応答1を判定条件1により判定する。この場合の判定結果は、少なくとも2つ、場合によっては3つ或はそれ以上得られる。例えば、応答1が数値「5」で、判定条件1が「5以上であればYES、5未満であればNO」であるような場合、判定結果は2つである。また、判定条件1が「5を超えていればプラス、5であればイコール、5未満であればマイナス」であるような場合、判定結果は3つである。なお、以下の説明では、理解し易くするために、判定結果は「YES」と「NO」の2つになる場合に限定されていることにする。 The host device determines response 1 based on determination condition 1. In this case, at least two, or three or more determination results are obtained in some cases. For example, when the response 1 is a numerical value “5” and the determination condition 1 is “YES if it is 5 or more, NO if it is less than 5”, there are two determination results. Further, when the determination condition 1 is “plus if 5 is exceeded, equal if 5 or minus if it is less than 5”, there are three determination results. In the following description, for the sake of easy understanding, it is assumed that the determination results are limited to two cases of “YES” and “NO”.
上位装置は、応答1を判定条件1により判定すると、その判定結果に応じて次にリーダライタへ送信すべきコマンド(次期コマンド)を選択する。例えば、「YES」のときコマンド2、「NO」のときコマンド3をそれぞれ選択するものとすると、上位装置は、その判定結果に応じてリーダライタにコマンド2またはコマンド3を送信する。そして、リーダライタは、上位装置から送信されてきたコマンド2またはコマンド3をICカードに送信する。 When the host device determines the response 1 based on the determination condition 1, the host device selects the next command (next command) to be transmitted to the reader / writer according to the determination result. For example, if the command 2 is selected when “YES” and the command 3 is selected when “NO”, the host device transmits the command 2 or the command 3 to the reader / writer according to the determination result. Then, the reader / writer transmits the command 2 or the command 3 transmitted from the host device to the IC card.
ICカードは、コマンド2またはコマンド3に対する応答2をリーダライタに送信し、リーダライタは、その応答2を上位装置に送信する。上位装置は、応答2を判定条件2または3によって判定し(応答2がコマンド2に対してのものであるときは判定条件2、コマンド3に対してのものであるときは判定条件3)、その判定結果に応じてコマンド4または5を選択し、リーダライタに送信する。そして、リーダライタは、コマンド4または5を実行し、その結果を応答3としてリーダライタに送信し、リーダライタは応答3を上位装置に送信する。その後、上位装置は、応答3の内容を判定条件で判定し、その判定結果に応じて次のコマンドを選択してリーダライタに送信するというように、上述のような動作を繰り返し実行することによってICカードに対する読み書きが行われる。
The IC card transmits a response 2 to the command 2 or the command 3 to the reader / writer, and the reader / writer transmits the response 2 to the host device. The host device determines the response 2 based on the determination condition 2 or 3 (the determination condition 2 when the response 2 is for the command 2 and the determination condition 3 when the response 2 is for the command 3), The
このような読み書き構成の従来では、リーダライタからコマンドがICカードに送信された後は、上位装置がそのコマンドに対する応答を受信して応答の内容を判定するまで、次のコマンドを決定できない。従って、ICカードがコマンドについての処理を実行している間、上位装置およびリーダライタは、共に待機状態になり、これが従来システムにおいて、処理時間が長引く大きな原因となっていた。 In the conventional read / write configuration, after a command is transmitted from the reader / writer to the IC card, the next command cannot be determined until the host device receives a response to the command and determines the content of the response. Therefore, while the IC card is executing processing for the command, both the host device and the reader / writer are in a standby state, which is a major cause of prolonged processing time in the conventional system.
これに対し、本発明は、図5に示すように、コマンドに対する応答に対して判定条件で判定すると、その判定結果は2つ(「YES」か「NO」)、場合によっては3つ以上になるが、複数の判定結果の各々に対して次のコマンドは一義的に定まること、簡単な判断や処理はリーダライタ1でも実行することできることに着目してなされたもので、以下、図3のフローチャートおよび図4のシーケンスをも参照しながら説明する。 On the other hand, in the present invention, as shown in FIG. 5, when the response to the command is determined under the determination condition, the determination result is two (“YES” or “NO”), and in some cases, three or more. However, the following command is uniquely determined for each of a plurality of determination results, and simple determination and processing can be executed by the reader / writer 1 as well. This will be described with reference to the flowchart and the sequence of FIG.
図3(a)はリーダライタ1の通信制御部11の制御内容を示し、図3(b)はデータ処理制御部13の動作内容を示している。即ち、新たにICカード3に対して読み書きを開始するとき、上位装置2の次期コマンド準備部4が、ICカード3に送る最初のコマンド(初回コマンド1)と、その初回コマンドに対する応答についての判定条件1と、応答内容に応じて得られる2つの判定結果の各々(請求項にいうICカード3からの応答に相当)に対する次のコマンド2および3とを順に非接触通信制御部5に与える。そして、非接触通信制御部5は、初回コマンド1、判定条件1、次期コマンド2および3を順に送信部7、下位通信部9を介してリーダライタ1へ送信する。
上位装置2から初回コマンド1がリーダライタ1の上位通信部10に送信されると、受信制御部16が上位装置2からの初回コマンド1を受信して復調し、その復調した初回コマンド1をコマンドバッファ18に格納する(以上、図3(a)のステップA1で「有」→ステップA2)。
FIG. 3A shows the control content of the
When the first command 1 is transmitted from the host device 2 to the
一方、リーダライタ1においては、新たなICカード3に対して読み書きを開始しようとする場合、データ処理制御部13のカード応答判定部23は、これから新たなICカードに対して読み書きする旨の情報をコマンド選択情報部21に与える。また、コマンド選択部20は、コマンドバッファ18にコマンドが格納されたかを監視する状態となっている(ステップB1)。そして、上述のようにして上位装置2から送信されてきた初回コマンド1がコマンドバッファ18に格納されると、コマンド選択部20は、直ちにその初回コマンド1をコマンドバッファ18から読み出す。
On the other hand, in the reader / writer 1, when reading / writing to a new IC card 3 is to be started, the card
コマンド選択部20は、コマンドバッファ18から読み取ったコマンドが初回コマンド1であり、これから新たにICカード3に対して読み書きを開始するというコマンド選択情報部21の情報に適合しているので、ステップB1で「有」と判断して、その初回コマンド1をカード通信処理部22に送る。カード通信処理部22は、その初回コマンド1を送信回路25を介してアンテナ14からICカード3に送信する(ステップB2)。
The
ICカード3は、このリーダライタ1からの初回コマンド1を受信し、その初回コマンド1についての要求処理1の実行に入る。そして、カード通信処理部22は、初回コマンド1を送信した後、ICカード3からの応答を待つ状態となる(ステップB3)。
The IC card 3 receives the initial command 1 from the reader / writer 1 and starts execution of request processing 1 for the initial command 1. Then, after transmitting the initial command 1, the card
受信制御部16は、初回コマンド1をコマンドバッファ18へ格納すると、次のデータ受信が有るか否かを判断するステップA3に移行する。上位装置2からは初回バッファ1に続いて、判定条件データ1、コマンド2および3が順に連続的に送信されてくるので、受信制御部16は、初回コマンド1を格納後、直ちに、ステップA3で「判定条件データ」と判断して初回コマンド1に続いて送信されてきた判定条件データ1を条件データバッファ19に格納し(ステップA4)、最初のステップA1に戻る。そして、受信制御部16は、このステップA1で直ちに「有」と判断して、判定条件データ1に続いて送信されてくるコマンド2をコマンドバッファ18に格納し(ステップA2)、次いで、ステップA3に移行すると直ちに「有」と判断してコマンド2に続いて送信されてくるコマンド3をコマンドバッファ18に格納する(ステップA2)。その後、受信制御部16は、上位装置2からのデータの受信を待つ状態となる(ステップA3)。
When the first time command 1 is stored in the
さて、ICカード3が初回コマンド1に対する応答処理1を終了すると、その処理結果である応答1のデータをリーダライタ1へ送信する。すると、受信回路26が応答1を受信して復調し、カード通信処理部22に与える(ステップB3)。カード通信処理部22は、ICカード3からの応答1をリーダライタ1の取り扱い形式に変更してカード応答判定部23に送る(ステップB5)。そして、条件データバッファ19に判定条件データ1が格納されているので(ステップB6で「有」)、カード応答判定部23は、その判定条件データ1を読み出して当該判定条件1に基づいてICカード3からの応答1の内容を判定し、その判定結果により、判定結果(請求項にいう応答)のそれぞれに対応した次期コマンドであるコマンド2および3のうちからいずれか一つのコマンドを選択する(ステップB7)。
When the IC card 3 finishes the response process 1 for the initial command 1, the data of the response 1 as the process result is transmitted to the reader / writer 1. Then, the receiving
応答1に対する判定を終了すると、カード応答判定部23は、条件データバッファ19に格納されている使用済みの判定条件データ1をクリアし(ステップB8)、次いで、コマンド2および3のうちから判定条件に基づいて選択したコマンド(次期コマンド)名を上位送信データ作成部24およびコマンド選択情報部21に送る(ステップB9)。そして、上位送信データ作成部24は、選択したコマンドが何であるかを示す通知データ(選択した一つのコマンドを特定する次期コマンド選択情報)を作成して送信制御部17に送る(ステップB11)。送信制御部17は、その通知データ(次期コマンド選択情報)を上位通信部10から上位装置2に送信する(ステップB12)。
When the determination for the response 1 is completed, the card
リーダライタ1からの次期コマンド選択情報は、上位装置2において、下位通信部9に受信されて受信部8を介して非接触通信制御部5に与えられる。非接触通信制御部5は、受信した次期コマンド選択情報を応答予測部6および次期コマンド準備部4に与える。そして、応答予測部6は、次期コマンド選択情報に基づいて、リーダライタ1からICカード3に送信された一つのコマンドがコマンド2およびコマンド3のうちのいずれであるかを特定し、そして特定したコマンドに対してICカード3からの応答を判定条件により判定した結果(請求項にいう応答)を予測し、その予測した判定結果を次期コマンド準備部4に与える。
The next command selection information from the reader / writer 1 is received by the lower-
次期コマンド準備部4は、非接触通信制御部5から与えられた次期コマンド選択情報に基づいて、コマンド2、3のうちICカード3に送信されたコマンドについての応答に対する判定条件2または3を図示しないメモリから選択すると共に、応答予測部6が予測した判定結果のそれぞれに対応する次期コマンド(図3でコマンド4および5)を図示しないメモリから選択して非接触通信制御部5に与える。そして、非接触通信制御部5は、次期コマンド準備部4から与えられた判定条件2または3、その判定条件2または3に基づいてICカード3からの応答を判定した場合に得られる2つの判定結果の各々についてのコマンド4および5を順次連続的に送信する。
The next
前記次期コマンド選択情報を上位装置2に送信している間に、コマンド選択部20は、コマンドバッファ18に格納されているコマンド(この場合、コマンド2および3)の中から、コマンド選択情報部21に与えられた選択コマンド名と同一名のコマンドを選択し(ステップB1で「有」)、カード通信処理部22、送信回路25を介してアンテナ14からICカード3に送信する(ステップB2)。そして、ICカード3からの応答を待つ状態となる(ステップB3)。
While transmitting the next command selection information to the host device 2, the
上述のようにして上位装置2が判定条件データ2または3、コマンド4および5を送信し始めると、コマンド2および3の受信を終了した後、ステップA3の受信待ち状態にあった受信制御部16が、ICカード3からの応答があるまで間に、判定条件データ2を、前述の判定条件データ1と同様にして条件データバッファ19に格納し(ステップA3で「判定条件データ」→ステップA4→ステップA1)、続いて連続的に送信されてくるコマンド4および5をコマンドバッファ18に格納する(ステップA1で「有」→ステップA2→ステップA3で「コマンド」→ステップA2→ステップA3)。
When the host device 2 starts transmitting the judgment condition data 2 or 3 and the
ICカード3からコマンド2または3についての応答が送信されてくると、その応答に対してカード応答判定部23が、判定条件バッファ13に格納されている判定条件2または3に基づいて判定し、コマンドバッファ18に格納されているコマンド4および5の中から、その判定結果に応じた一つのコマンドを選択する(ステップB3で「有」→ステップB5→ステップB6で「有」→ステップB7)。
When a response about the command 2 or 3 is transmitted from the IC card 3, the card
その後、条件データバッファ19に格納されている判定条件データ2または3が消去され、選択されたコマンド名を示す次期コマンド選択情報が上位装置2に送信されると共に、選択されたコマンドがICカード3に送信される(ステップB8→ステップB9→ステップB11→ステップB12→ステップB1で「有」→ステップB2)。そして、上位装置2では、前述したと同様に、ICカード3に送信されたコマンドに対する応答の判定条件データ、その判定条件による応答のそれぞれに対するコマンドを連続的に送信する、というように、以下、上述したと同様の動作を繰り返し実行してICカード3に対する読み書きを終了する。
Thereafter, the judgment condition data 2 or 3 stored in the
ここで、ステップB6において、判定条件バッファ13に判定条件データが格納されていない場合(次期コマンドが格納されていない場合に相当)には、応答の判定結果に応じたコマンドをICカード3に送信することもないので、コマンドバッファ18に格納されている使用済みコマンドをクリアする(ステップB10)。そして、カード応答判定部23がICカード3からの応答の種類を示す予測外応答情報を送信して次処理のためのコマンドを要求する旨を上位送信データ作成部24に送り、上位送信データ作成部24は、次のコマンドを要求する通知データを作成し、これを送信制御部17を介して上位装置4に送信する(ステップB11→ステップB12)。この通知データを受けた上位装置2は、その中の予想外応答情報に基づいて、これに対応する新たなコマンドを次期コマンドとしてリーダライタ1に送信する。
Here, in step B6, when the determination condition data is not stored in the determination condition buffer 13 (corresponding to the case where the next command is not stored), a command corresponding to the response determination result is transmitted to the IC card 3. Therefore, the used command stored in the
なお、リーダライタ1は、ICカード3からの応答を待つステップB3において、一定時間経過してもICカード3からの応答がない場合や例外的な処理を必要とする応答であった場合には、その内容に応じた例外処理を行う(ステップB4)。そして、判定条件があるといけないので、ステップB6に移行して判定条件データがあるか否かを判断し、判定条件の有無に応じてステップB10→ステップB11→ステップB12またはステップB17→ステップB8→ステップB9→ステップB11→ステップB12を実行してステップB1に戻る。 The reader / writer 1 waits for a response from the IC card 3 in step B3 when there is no response from the IC card 3 even after a predetermined time has elapsed, or when the response requires exceptional processing. Then, exception processing according to the contents is performed (step B4). Since there should be a determination condition, the process proceeds to step B6 to determine whether there is determination condition data. Depending on the presence or absence of the determination condition, step B10 → step B11 → step B12 or step B17 → step B8 → Step B9 → Step B11 → Step B12 is executed, and the process returns to Step B1.
このように本実施例によれば、ICカード3に対して読み書きを開始する際には、上位装置2からリーダライタ1に対して、初回コマンド1、判定条件データ1、コマンド2および3を送信し、リーダライタ1は、初回コマンド1を受信すると、その初回コマンド1をICカード3に送信する。このため、リーダライタ1は、ICカード3からの応答を待っている間に、初回コマンド1以降に送られてくる判定条件データ1、コマンド2および3を受信する。 As described above, according to this embodiment, when reading / writing from / to the IC card 3 is started, the first command 1, determination condition data 1, commands 2 and 3 are transmitted from the host device 2 to the reader / writer 1. When the reader / writer 1 receives the initial command 1, the reader / writer 1 transmits the initial command 1 to the IC card 3. Therefore, the reader / writer 1 receives the determination condition data 1 and the commands 2 and 3 sent after the first command 1 while waiting for a response from the IC card 3.
読み書きを開始した以降では、上位装置2は、ICカード3からの応答を判定条件で判定することによってコマンドを選択してICカード3に送信すると共に、選択したコマンドを示す次期コマンド選択情報を上位装置2に送信し、上位装置2は、リーダライタ1から次期コマンド選択情報を与えられることによって、ICカード3に送信されたコマンドを特定してそのコマンドに対する判定条件と、その判定条件によって応答を判定した場合の複数の判定結果のそれぞれに対するコマンドを送信する。このため、リーダライタ1は、ICカード3からの応答を待っている間に、判定条件データ、複数のコマンドを受信することができる。また、リーダライタ1は、ICカード3からの応答に対する判定結果から複数のコマンドのうち一つのコマンドを選択し、そして、選択した一つのコマンド名を上位装置2に送信している間に、選択したコマンドをICカード3に送信することができる。 After the start of reading and writing, the host device 2 selects a command by determining a response from the IC card 3 based on a determination condition, transmits the command to the IC card 3, and displays the next command selection information indicating the selected command as a host. The host device 2 receives the next command selection information from the reader / writer 1 and identifies the command transmitted to the IC card 3 and sends a response according to the determination condition for the command and the determination condition. A command for each of a plurality of determination results when determined is transmitted. Therefore, the reader / writer 1 can receive determination condition data and a plurality of commands while waiting for a response from the IC card 3. Further, the reader / writer 1 selects one command from a plurality of commands based on the determination result for the response from the IC card 3, and selects the selected command name while transmitting it to the host device 2. The sent command can be transmitted to the IC card 3.
このように、リーダライタ1は、上位装置2から送られてくるデータを受信している間にICカード3にコマンドを送信し、或はICカード3からの応答を判定して選択したコマンドをICカード3に送信し、ICカード3がそのコマンドを処理している間に、リーダライタ1は、ICカード3に送信したコマンドを示す次期コマンド選択情報を上位装置2に送信することができ、また、ICカード3からの応答を待つ間に上位装置2から送られてくる判定条件および複数の次期コマンドを受信することができるので、処理時間を短縮することができる。 In this way, the reader / writer 1 transmits a command to the IC card 3 while receiving data sent from the host device 2, or determines a response from the IC card 3 and selects the selected command. While being transmitted to the IC card 3 and the IC card 3 is processing the command, the reader / writer 1 can transmit next command selection information indicating the command transmitted to the IC card 3 to the host device 2. In addition, while waiting for a response from the IC card 3, it is possible to receive the determination condition and a plurality of next commands sent from the host device 2, so that the processing time can be shortened.
また、ICカード3からの応答に対する判定はリーダライタ1が行うが、この判定自体は簡単な処理であるので、処理時間が長くなったり、リーダライタ1の構成要素をそれほど高性能のものとしたりせずとも済む。この場合、上位装置2の応答予測部6がコマンドに対する応答を複数予測し、次期コマンド準備部4がその複数の応答の種類(例えば、「1未満」と「1以上」)と、それら各応答に対するコマンドとを互いに関連付けてリーダライタ1に送信するように構成すれば、リーダライタ1は、判定条件で応答を判定する必要がなく、処理速度を一層速くすることができる(請求項3)。
Further, the reader / writer 1 makes a determination on the response from the IC card 3, but since this determination itself is a simple process, the processing time becomes long, or the components of the reader / writer 1 are made so high in performance. You don't have to. In this case, the response prediction unit 6 of the host device 2 predicts a plurality of responses to the command, and the next
図7は本発明の第2の実施例を示す。この実施例は、ICカード3からの応答が予測外の応答であった場合、つまり条件データバッファ19に記憶されている判定条件で判定できず従ってコマンドバッファ18に記憶されているコマンド中に次期コマンドがない場合の処理法についてのものである。
即ち、図7は、リーダライタ1からICカード3にコマンド4または5を送信し、ICカード3がそのコマンドについての要求処理3を実行し、その結果、応答3ではなく、予測しない応答11をリーダライタ1に送信した場合を示している。
FIG. 7 shows a second embodiment of the present invention. In this embodiment, when the response from the IC card 3 is an unexpected response, that is, it cannot be determined by the determination condition stored in the
That is, in FIG. 7, the
この場合には、リーダライタ1の条件データバッファ19に記憶されている判定条件4または5によっては応答11を判定することができない。この場合には、リーダライタ1のカード応答判定部23は、ICカード3から送信されてきた応答11をそのまま上位送信データ作成部24を介して上位装置11に送信する。
In this case, the
上位装置11の次期コマンド準備部4は、ICカード3の応答11を判定して次期コマンド12を準備と、その次期コマンド12に対する応答についての判定条件13と、応答内容を判定条件13により判定した場合に得られる2つの結果の各々に対するコマンド14,15をリーダライタ1に送信する。そして、リーダライタ1は、次期コマンド12をICカード3に送信する。
The next
ICカード3は、コマンド12による要求処13を行い、応答13をリーダライタ1に送信する。以下は上述の第1の実施例で説明したように、リーダライタ1は、応答13を判定条件13により判定し、その判定内容に応じてコマンド14またはコマンド15をICカード3に送信すると共に、ICカード3に送信したコマンドが何であるかを上位装置2に送信する。
このようにICカード3からの応答が予想外のもので、リーダライタ1ではその応答に対処できない場合でも、その応答を上位装置2にそのまま送信して上位装置2で処理する構成とすることによって、処理が途中で停止することを極力防止することができる。
The IC card 3 performs a
In this way, even when the response from the IC card 3 is unexpected and the reader / writer 1 cannot cope with the response, the response is transmitted to the host device 2 as it is and processed by the host device 2. It is possible to prevent the processing from stopping in the middle as much as possible.
図8は本発明の第3の実施例を示す。この実施例は、例えば非接触型データキャリアとしてRFIDタグを用いた人の入退場制御システムに適用したもので、上述の第1の実施例と相違するところは、リーダライタ1の外部にコマンド実行手段としての例えば電気錠27を設け、カード応答判定部23と電気錠27との間に、信号変換部28、信号出力手段としての信号出力部29を設けたところにある。
FIG. 8 shows a third embodiment of the present invention. This embodiment is applied to, for example, a person entrance / exit control system using an RFID tag as a non-contact type data carrier. The difference from the first embodiment is that a command is executed outside the reader / writer 1. For example, an
この実施例では、上位装置3において、応答予測部6は、予測したICカード3からの応答のそれぞれに応じた次期コマンドに加え、その予測された応答のそれぞれに対応して次期信号出力コマンドを選択してリーダライタ1に送信する。リーダライタ1では、ICカード3からの応答に対して一つの次期コマンドを選択する際、一つの次期信号出力コマンドを選択し、選択した次期信号出力コマンドは信号変換部29に与える。 In this embodiment, in the host device 3, the response prediction unit 6 sends the next signal output command corresponding to each predicted response in addition to the next command corresponding to each predicted response from the IC card 3. Select and send to reader / writer 1. In the reader / writer 1, when one next command is selected in response to the response from the IC card 3, one next signal output command is selected, and the selected next signal output command is given to the signal conversion unit 29.
信号変換部29は、次期信号出力コマンドを表示装置27に適合する形式に変換して信号出力部29に与える。そして、信号出力部29は、次期信号出力コマンドを電気錠27に送信し、電気錠27は、次期信号出力コマンドに応じた動作を実行、即ち扉を解錠し、或は施錠するという動作を実行する。
The signal conversion unit 29 converts the next signal output command into a format suitable for the
なお、本発明は上記し且つ図面に示す実施例に限定されるものではなく、次のような拡張或は変更が可能である。
上位装置2からリーダライタ1へ初回コマンド1、判定条件1、コマンド2および3を送信する場合、初回コマンド1が最後とならなければ、それらの送信順位は問わない。
上位装置2からリーダライタ1へ、判定条件、複数のコマンドを送信する場合、それらの送信順位は問わない。
初回コマンド1、判定条件1、コマンド2、コマンド3を連続的に送信する場合、真の意味での連続に限らず、それらの間に若干の空白時間を置いて送信しても良い。判定条件、複数のコマンドを送信する場合も同様である。
リーダライタ1がICカード3からの応答を判定条件により判定して複数のコマンドから一つのコマンドを選択した場合、その選択したコマンド名を上位装置2に送信することと、その選択したコマンドをICカード3へ送信することとは、いずれが先であっても良い。
The present invention is not limited to the embodiments described above and shown in the drawings, and can be expanded or changed as follows.
When the first command 1, the determination condition 1, and the commands 2 and 3 are transmitted from the host device 2 to the reader / writer 1, the order of transmission is not limited as long as the first command 1 does not end.
When transmitting a determination condition and a plurality of commands from the host device 2 to the reader / writer 1, their transmission order does not matter.
When the initial command 1, the determination condition 1, the command 2, and the command 3 are continuously transmitted, the transmission is not limited to the true sequence and may be transmitted with a slight blank time between them. The same applies to determination conditions and when a plurality of commands are transmitted.
When the reader / writer 1 determines the response from the IC card 3 according to the determination condition and selects one command from a plurality of commands, the selected command name is transmitted to the host device 2 and the selected command is transmitted to the IC. Any of the transmissions to the card 3 may be first.
リーダライタ1が受信したコマンドは、ICカード3への送信後もコマンドバッファ18に記憶しておき、上位装置2からの指令によってその記憶したコマンドを再度使用してICカード3に送信するようにしても良い。このようにコマンドを記憶しておく場合、コマンドバッファに格納したコマンドを受信順に自動的にクリアするようにしても良い。また、ICカードへの送信を実行されなかったコマンドを優先的にクリアするように構成しても良い。コマンドを指定してクリアするようにしても良い。
上位装置2からリーダライタ1へ送信するコマンドには優先順位を付け、後から送信したコマンドを先に実行する構成を採用できる。
上位装置2からリーダライタ1へ送信したコマンドを、キャンセルしたり、置き換えたりする構成を採用できる。
コマンドの実行を強制終了させるために、コマンドバッファ18に格納されているコマンドを全てクリアする構成を採用できる。
未実行のコマンドがコマンドバッファ18に格納されている状態で、ICカード3へのコマンド送信を中断する構成を採用できる。この場合、中断した時点から再開させるように構成できる。
The command received by the reader / writer 1 is stored in the
It is possible to adopt a configuration in which priorities are assigned to commands transmitted from the host device 2 to the reader / writer 1 and the commands transmitted later are executed first.
A configuration in which a command transmitted from the host device 2 to the reader / writer 1 is canceled or replaced can be employed.
In order to forcibly terminate the execution of the command, it is possible to employ a configuration in which all commands stored in the
A configuration in which command transmission to the IC card 3 is interrupted while an unexecuted command is stored in the
データキャリアは、ICカードに限らず、RFICタグであっても良い。
図3のフローチャートのステップB3において、ICカード3からの応答がタイムアウト等と判断した場合(正常でない場合)、例外処理を実行(ステップB4)してステップB1に戻る。このステップB1、次のステップB2で、再び同じコマンドをICカード3に送信する場合、ICカード3からの応答が正常でなかった場合に、同じコマンドをICカード3に再送信する回数(再実行回数)を制限するようにしても良い。この再実行回数は、上位装置2からリーダライタ1へコマンドを送信する際に、コマンドに付加して送信することができる(請求項4相当)。なお、応答が正常でない場合とは、タイムアウトの他、パリティ、BCC、CRCエラー、無応答などがあり、正常の場合の応答には、「YES」、「NO」、「値」、「種類」での応答などがある。
図7において、コマンド実行手段は電気錠27に限られず、データキャリアのコマンドに対する応答のそれぞれを表示して人に報知するための報知手段、例えば光により状態を報知する表示装置や音を用いて状態を報知する発音装置などであっても良い。
The data carrier is not limited to an IC card, but may be an RFIC tag.
In step B3 of the flowchart of FIG. 3, if it is determined that the response from the IC card 3 is a timeout or the like (not normal), exception processing is executed (step B4) and the process returns to step B1. When the same command is transmitted to the IC card 3 again in step B1 and next step B2, the number of times the same command is retransmitted to the IC card 3 when the response from the IC card 3 is not normal (re-execution) The number of times) may be limited. This re-execution count can be added to the command and transmitted when the command is transmitted from the host device 2 to the reader / writer 1 (corresponding to claim 4). The case where the response is not normal includes timeout, parity, BCC, CRC error, no response, etc. The response when normal is “YES”, “NO”, “value”, “type” There is a response.
In FIG. 7, the command execution means is not limited to the
図面中、1はリーダライタ(非接触通信装置)、2は上位装置、3はICカード(非接触型データキャリア)、4は次期コマンド準備部(次期コマンド準備手段)、5は非接触通信制御部(非接触通信制御手段)、6は応答予測部(応答予測手段)、13はデータ処理制御部(送受信制御手段)、22はカード通信処理部(送信制御手段、受信制御手段)、23はカード応答判定部である。
In the drawings, 1 is a reader / writer (non-contact communication device), 2 is a host device, 3 is an IC card (non-contact type data carrier), 4 is a next command preparation unit (next command preparation means), and 5 is non-contact communication control. Unit (non-contact communication control unit), 6 is a response prediction unit (response prediction unit), 13 is a data processing control unit (transmission / reception control unit), 22 is a card communication processing unit (transmission control unit, reception control unit), and 23 is It is a card response determination part.
Claims (13)
前記上位装置は、
前記非接触型データキャリアと前記非接触通信装置との間の前記非接触データ通信を制御するためのコマンドを前記非接触通信装置に与える非接触通信制御手段と、
前記非接触通信制御手段が前記非接触通信装置に与えたコマンドに対する前記非接触型データキャリアの応答を予測する応答予測手段と、
前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応する次期コマンドを準備し、前記非接触通信制御手段を介して準備した次期コマンドを前記非接触通信装置に与える次期コマンド準備手段と、を具え、
前記非接触通信装置は、
前記上位装置が具える前記非接触通信制御手段から与えられたコマンドを前記非接触型データキャリアが受信できる形式に変換して送信する送信制御手段と、
前記非接触型データキャリアからの応答を受信する受信制御手段と、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた次期コマンドの一つを選択し、前記送信制御手段を介して前記非接触型データキャリアに送信した後、前記上位装置に対して選択した次期コマンドの一つが何であったかを示す次期コマンド選択情報を送信して通知する送受信制御手段と、を具え、
前記上位装置が具える前記非接触通信制御手段は、更に、前記非接触通信装置が具える前記送受信制御装置から受信した前記次期コマンド選択情報に応じて新たなコマンドを前記非接触通信装置に与えることを特徴とする非接触通信システム。 A non-contact type data carrier having a storage unit for storing data, a non-contact communication device that performs non-contact data communication with the non-contact type data carrier, and the non-contact type data carrier that communicates with the non-contact communication device A non-contact communication system composed of a host device that controls non-contact data communication between the non-contact communication device and
The host device is
Non-contact communication control means for giving a command for controlling the non-contact data communication between the non-contact type data carrier and the non-contact communication device to the non-contact communication device;
Response predicting means for predicting a response of the contactless data carrier to a command given to the contactless communication device by the contactless communication control means;
A next command for preparing a next command corresponding to each of the responses from the contactless data carrier predicted by the response predicting unit and giving the next command prepared through the contactless communication control unit to the contactless communication device Preparation means,
The non-contact communication device is:
Transmission control means for converting the command given from the non-contact communication control means provided in the host device into a format that can be received by the non-contact data carrier,
Reception control means for receiving a response from the contactless data carrier;
Select one of the next commands given from the host device corresponding to the response from the contactless data carrier received by the reception control means, and transmit to the contactless data carrier via the transmission control means Then, transmission / reception control means for sending and notifying next command selection information indicating what one of the next commands selected to the host device is,
The non-contact communication control means provided in the host device further gives a new command to the non-contact communication device according to the next command selection information received from the transmission / reception control device provided in the non-contact communication device. A non-contact communication system.
前記上位装置が具える前記応答予測手段は、
前記非接触通信装置が前記非接触型データキャリアに与えたコマンドに対する前記非接触型データキャリアからの応答が、正常でなかった場合、および正常であった場合の両方を予測し、更に、それぞれの場合において前記非接触型データキャリアからの複数の応答の形態を予測することを特徴とする非接触通信システム。 The contactless communication system according to claim 1,
The response predicting means provided in the host device is:
The response from the non-contact type data carrier to the command given to the non-contact type data carrier by the non-contact communication device is predicted both when the response is normal and normal, and In some cases, a non-contact communication system that predicts a plurality of response forms from the non-contact data carrier.
前記上位装置が具える前記次期コマンド準備手段は、
前記応答予測手段が予測した複数の前記応答のそれぞれに対応する次期コマンドを準備し、
前記応答予測手段が予測した複数の前記応答と、準備した次期コマンドとをそれぞれ対応付けて前記非接触通信制御手段を介して前記非接触通信装置に与えることを特徴とする非接触通信システム。 The contactless communication system according to claim 2,
The next command preparation means that the host device comprises:
Preparing a next command corresponding to each of the plurality of responses predicted by the response prediction means;
A non-contact communication system, wherein a plurality of the responses predicted by the response prediction means and the prepared next command are associated with each other and given to the non-contact communication device via the non-contact communication control means.
前記上位装置が具える前記次期コマンド準備手段は、
与えたコマンドに対する前記非接触型データキャリアからの応答が正常でなかった場合を予測して準備された次期コマンドに対して、少なくとも当該次期コマンドの再実行回数を付加して前記非接触通信装置に与えることを特徴とする非接触通信システム。 The contactless communication system according to claim 2 or 3,
The next command preparation means that the host device comprises:
At least the number of re-executions of the next command is added to the next command prepared by predicting the case where the response from the contactless data carrier to the given command is not normal. A non-contact communication system characterized by providing.
前記非接触通信装置が具える前記送受信制御手段は、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた前記次期コマンドがない場合、
前記上位装置に対して前記受信制御手段が受信した前記非接触型データキャリアからの応答をそのまま送信し、
前記上位装置が具える前記次期コマンド予測手段は、前記非接触通信装置から送信された前記非接触型データキャリアからの応答に対応する新たなコマンドを新たな次期コマンドとして準備する
ことを特徴とする非接触通信システム。 The contactless communication system according to any one of claims 1 to 4,
The transmission / reception control means provided in the non-contact communication device includes:
When there is no next command given from the host device corresponding to the response from the contactless data carrier received by the reception control means,
A response from the non-contact data carrier received by the reception control unit is transmitted as it is to the host device,
The next command prediction means included in the host device prepares a new command corresponding to a response from the non-contact type data carrier transmitted from the non-contact communication device as a new next command. Non-contact communication system.
前記非接触通信装置は、
更に、前記送受信制御手段によって制御される信号出力手段を具え、
前記上位装置が具える前記次期コマンド準備手段は、
前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応する次期コマンドに加え、前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応して前記信号出力手段に信号を出力する次期信号出力コマンドを準備し、前記非接触通信制御手段を介して前記次期コマンドと前記次期信号出力コマンドとを前記非接触通信装置に与え、
前記非接触通信装置が具える前記送受信制御手段は、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する次期コマンドの一つと、次期信号出力コマンドの一つとを選択し、選択した次期コマンドの一つは前記送信制御手段を介して前記非接触型データキャリアに送信し、選択した次期信号出力コマンドの一つは前記信号出力手段に対応する信号に変換して出力する
ことを特徴とする非接触通信システム The contactless communication system according to any one of claims 1 to 5,
The non-contact communication device is:
Furthermore, it comprises signal output means controlled by the transmission / reception control means,
The next command preparation means that the host device comprises:
In addition to the next command corresponding to each response from the non-contact type data carrier predicted by the response prediction unit, the signal corresponding to each response from the non-contact type data carrier predicted by the response prediction unit Preparing a next signal output command for outputting a signal to the output means, giving the next command and the next signal output command to the non-contact communication device via the non-contact communication control means;
The transmission / reception control means provided in the non-contact communication device includes:
One of the next commands corresponding to the response from the contactless data carrier received by the reception control means and one of the next signal output commands are selected, and one of the selected next commands is sent via the transmission control means. A non-contact communication system, wherein one of the selected next signal output commands is converted into a signal corresponding to the signal output means and output.
前記非接触通信装置が具える前記信号出力手段は、通路の通行を禁止または許可する扉の開閉を制御する信号を出力するものであることを特徴とする非接触通信システム。 The contactless communication system according to claim 6.
The non-contact communication system characterized in that the signal output means provided in the non-contact communication device outputs a signal for controlling opening / closing of a door that prohibits or permits passage of a passage.
前記非接触通信装置が具える前記信号出力手段は、前記非接触通信装置が具える光または音を用いて状態を報知する報知手段を制御する信号を出力するものであることを特徴とする非接触通信システム。 The contactless communication system according to claim 6 or 7,
The signal output means provided in the non-contact communication device outputs a signal for controlling a notification means for informing a state using light or sound provided in the non-contact communication device. Contact communication system.
前記上位装置が具える前記非接触通信制御手段から与えられたコマンドを前記非接触型データキャリアが受信できる形式に変換して送信する送信制御手段と、
前記非接触型データキャリアからの応答を受信する受信制御手段と、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた次期コマンドの一つを選択し、前記送信制御手段を介して前記非接触型データキャリアに送信した後、前記上位装置に対して選択した次期コマンドの一つが何であったかを示す次期コマンド選択情報を送信して通知する送受信制御手段と、を具えることを特徴とする非接触通信装置。 In the non-contact communication apparatus used for the non-contact communication system according to claim 1,
Transmission control means for converting the command given from the non-contact communication control means provided in the host device into a format that can be received by the non-contact data carrier,
Reception control means for receiving a response from the contactless data carrier;
Select one of the next commands given from the host device corresponding to the response from the contactless data carrier received by the reception control means, and transmit to the contactless data carrier via the transmission control means Then, a non-contact communication device comprising: transmission / reception control means for transmitting and notifying next command selection information indicating what one of the next commands selected to the host device is.
前記送受信制御手段は、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた前記次期コマンドがない場合、
前記上位装置に対して前記受信制御手段が受信した前記非接触型データキャリアからの応答をそのまま送信することを特徴とする非接触通信装置。 The contactless communication device according to claim 9,
The transmission / reception control means includes:
When there is no next command given from the host device corresponding to the response from the contactless data carrier received by the reception control means,
A non-contact communication apparatus, wherein the response from the non-contact type data carrier received by the reception control means is transmitted as it is to the host apparatus.
前記送受信制御手段によって制御される信号出力手段を具え、
前記送受信制御手段は、前記受信制御手段が前記上位装置から受信した前記非接触型データキャリアからの応答に対応する次期コマンドの一つと、次期信号出力コマンドの一つとを選択し、選択した次期コマンドの一つは前記送信制御手段を介して前記非接触型データキャリアに送信し、選択した次期信号出力コマンドの一つは前記信号出力手段に対応する信号に変換して出力することを特徴とする非接触通信装置。 The contactless communication device according to claim 9 or 10,
Comprising signal output means controlled by the transmission / reception control means;
The transmission / reception control means selects one of the next commands corresponding to the response from the contactless data carrier received from the host device by the reception control means and one of the next signal output commands, and selects the selected next command. Is transmitted to the contactless data carrier via the transmission control means, and one of the selected next signal output commands is converted into a signal corresponding to the signal output means and output. Non-contact communication device.
前記信号出力手段は、通路の通行を禁止または許可する扉の開閉を制御する信号を出力するものであることを特徴とする非接触通信装置。 The contactless communication apparatus according to claim 11, wherein
The non-contact communication apparatus, wherein the signal output means outputs a signal for controlling opening and closing of a door that prohibits or permits passage of a passage.
光または音を用いて状態を報知する報知手段を具え、
前記信号出力手段は、前記報知手段を制御する信号を出力するものであることを特徴とする非接触通信装置。
The contactless communication device according to claim 11 or 12,
Comprising an informing means for informing the state using light or sound;
The non-contact communication apparatus, wherein the signal output means outputs a signal for controlling the notification means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004296179A JP4315091B2 (en) | 2004-10-08 | 2004-10-08 | Non-contact communication system and non-contact communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004296179A JP4315091B2 (en) | 2004-10-08 | 2004-10-08 | Non-contact communication system and non-contact communication device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006107331A JP2006107331A (en) | 2006-04-20 |
| JP4315091B2 true JP4315091B2 (en) | 2009-08-19 |
Family
ID=36376970
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004296179A Expired - Fee Related JP4315091B2 (en) | 2004-10-08 | 2004-10-08 | Non-contact communication system and non-contact communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4315091B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011034408A (en) * | 2009-08-03 | 2011-02-17 | Dainippon Printing Co Ltd | Semiconductor device, method of controlling the same, and control program therefor |
-
2004
- 2004-10-08 JP JP2004296179A patent/JP4315091B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006107331A (en) | 2006-04-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5810727B2 (en) | DATA MANAGEMENT DEVICE, NON-CONTACT STORAGE MEDIUM, ELECTRONIC DEVICE HAVING THEM, DEVICE USE SUPPORT SYSTEM, DATA MANAGEMENT METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM | |
| US10085268B2 (en) | Communications device and communications system | |
| CN113361293A (en) | Card swiping method, card controller, electronic device and storage medium | |
| JP4572188B2 (en) | Travel assistance system, travel assistance method, travel assistance program, and program recording medium | |
| JP4412409B2 (en) | Information processing apparatus, information processing system, information processing method, and program | |
| JP4681646B2 (en) | Portable device and method for caching RFID tag information | |
| JPH11272972A (en) | Remote monitor terminal device for elevator | |
| EP1710983B1 (en) | Wireless communication device and information processing method | |
| JP4315091B2 (en) | Non-contact communication system and non-contact communication device | |
| CN104850873A (en) | Communication apparatus, information processing apparatus, and control method for the same | |
| JP2010039913A (en) | Communication device, communication method and program | |
| CN101515332A (en) | Radio communication apparatus, radio communication method and program | |
| US9007176B2 (en) | Portable electronic apparatus and control method of portable electronic apparatus | |
| JP4952983B2 (en) | Information display apparatus and method | |
| JP4782063B2 (en) | Control method for operating system and manufacturing system of a plurality of devices | |
| JP2006276971A (en) | Traveling work management system, management terminal, reading terminal, and traveling work management method | |
| JP2009155100A (en) | Elevator monitoring system, elevator monitoring device, and rfid tag | |
| US20070279189A1 (en) | Communication method between host and RFID reader, host device, RFID reader, and RFID communication system | |
| JP4816247B2 (en) | Reader / writer and communication timeout determination method | |
| JP2006155247A (en) | Unit information collecting apparatus, system and program for plural information processing apparatuses | |
| JP4730594B2 (en) | Position detection system | |
| JP2003162740A (en) | Non-contact IC card system | |
| JP2011039810A (en) | Communication apparatus, communication method, program, and communication system | |
| JP2006217373A (en) | Information collection management system and information reading terminal | |
| JP2011034408A (en) | Semiconductor device, method of controlling the same, and control program therefor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061206 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090225 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090428 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090511 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120529 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120529 Year of fee payment: 3 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130529 Year of fee payment: 4 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130529 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130529 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140529 Year of fee payment: 5 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |