Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4315091B2 - Non-contact communication system and non-contact communication device - Google Patents
[go: Go Back, main page]

JP4315091B2 - Non-contact communication system and non-contact communication device - Google Patents

Non-contact communication system and non-contact communication device Download PDF

Info

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
Application number
JP2004296179A
Other languages
Japanese (ja)
Other versions
JP2006107331A (en
Inventor
雅彦 佐藤
清志 高橋
隆幸 小松
雅史 神谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2004296179A priority Critical patent/JP4315091B2/en
Publication of JP2006107331A publication Critical patent/JP2006107331A/en
Application granted granted Critical
Publication of JP4315091B2 publication Critical patent/JP4315091B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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には、入退室管理システムにおいて、上位装置とリーダライタとの間のデータ通信量、通信時間の削減を図って、上位装置の負担を軽減し、全体としての処理能率を向上させることが記載されている。そのために、カードの入退室照合に伴って生ずる履歴情報をリーダライタに記憶しておき、このリーダライタの記憶した履歴情報を全体用リーダライタにより収集し編集してカードに登録するようにして、上位装置とリーダライタとの間の通信を軽減させるようにすることが提案されている。
特開2000−3492号公報
In Patent Document 1, in an entrance / exit management system, the amount of data communication between the host device and the reader / writer and the communication time are reduced, the burden on the host device is reduced, and the overall processing efficiency is improved. Is described. For this purpose, history information generated by the card entry / exit verification is stored in the reader / writer, and the history information stored in the reader / writer is collected and edited by the entire reader / writer, and registered in the card. It has been proposed to reduce communication between the host device and the reader / writer.
JP 2000-3492 A

例えば、駅の改札システムなどでは、高速処理が要求される。このような高速処理の要求に対しては、従来では、上位装置およびリーダライタの処理動作の高速化(動作クロックの高速化)や通信速度の高速化を図ったり、データ圧縮技術などを取り入れたりしていた。しかしながら、この高速処理対策では、処理の高速化に応じることができるような高い処理能力を有する設備であることが必要である上、システムが様々な環境下で使用されることを考慮すると、高速処理を実現するためには様々な問題が発生し、これを個別に解決してゆかねばならないという困難性を伴うことが予想される。また、特許文献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 claim 4, the next command preparation means included in the host device predicts a case where the response from the non-contact data carrier to the given command is not normal. Thus, at least the number of re-executions of the next command can be added to the next command prepared and provided to the non-contact communication apparatus. In this way, it is possible to solve the problem that the same command is repeatedly transmitted between the non-contact communication apparatus and the non-contact type data carrier and the processing does not proceed.

請求項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 claim 10 is the contactless communication apparatus used in the contactless communication system according to claim 5, wherein the transmission / reception control means is a response from the contactless data carrier received by the reception control means. When there is no next command given from the higher-level device corresponding to, the response from the non-contact type data carrier received by the reception control means is transmitted as it is to the higher-level device.

上記請求項5、10の構成によれば、非接触型データキャリアからの応答が予想外のもので、非接触通信装置ではその応答に対処できない場合でも、その応答を上位装置で処理することによって、処理が途中で停止することを極力防止することができる。   According to the configurations of claims 5 and 10 above, even when the response from the non-contact type data carrier is unexpected and the non-contact communication device cannot cope with the response, the response is processed by the host device. It is possible to prevent the processing from stopping in the middle as much as possible.

請求項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 claim 11 is the non-contact communication apparatus according to claim 9, further comprising a signal output means controlled by the transmission / reception control means, wherein the reception control means receives the reception control means from the host device. One of the next commands corresponding to the response from the contactless data carrier and one of the next signal output commands are selected, and one of the selected next commands is sent to the contactless data via the transmission control means. One of the selected next signal output commands transmitted to the carrier is converted into a signal corresponding to the signal output means and output.

請求項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 claims 8 and 13, the signal output means provided in the non-contact communication device controls notification means for informing the state using light or sound provided in the non-contact communication device. A signal may be output.

以下、本発明の第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 command preparation unit 4 as a next command preparation unit, a non-contact communication control unit 5 as a non-contact communication control unit, a response prediction unit 6 as a response prediction unit, and a transmission unit 7. A receiving unit 8 and a lower communication unit 9. Among these, the response prediction unit 6 predicts a response (multiple) from the IC card in response to the command given from the reader / writer 1 to the IC card 3.

次期コマンド準備部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 command preparation unit 4 prepares a command (next command) for each response predicted by the response prediction unit 6. The non-contact communication control unit 5 changes the determination condition for the next command prepared by the next command preparation unit 4 and the response to the next command into a format suitable for the reader / writer 1 and sends the result to the transmission unit 7. The transmission unit 7 modulates the next command and the determination condition given from the non-contact communication control unit 5 and transmits them from the lower communication unit 9 to the reader / writer 1. The receiving unit 8 demodulates the data received from the reader / writer 1 by the lower communication unit 9 and supplies the demodulated data to the non-contact communication control unit 5. Then, the non-contact communication control unit 5 converts the data from the reader / writer 1 into the format of the higher-level device 2, and next command selection information indicating what command the reader / writer 1 has transmitted to the IC card 3 among the data. Is given to the response prediction unit 6. Then, the response prediction unit 6 predicts a response to the command transmitted from the reader / writer 1 to the IC card 3 and gives the predicted response to the next command preparation unit 4.

図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 host communication unit 10 that performs serial data communication with the host device 2 in a wired half duplex communication system, a communication control unit 11 that controls communication with the host device 2, and a storage unit. 12, a data processing control unit 13 as a transmission / reception control unit, and a wireless communication unit 15 that performs data communication with the IC card 3 by radio waves via an antenna 14 are provided.

通信制御部11は、受信制御部16と送信制御部17とからなる。記憶部12は、コマンドバッファ18、条件データバッファ19とからなる。通信制御部11の両制御部16、17のうち、受信制御部16は、上位装置2から送信されてきたデータを復調し、そのデータを、データの種類に応じて記憶部12のコマンドバッファ18および条件データバッファ19のうちのいずれかに格納する。また、送信制御部17は、データ処理制御部13側で作成されたデータを変調して上位通信部10を介して上位装置2に送信する。   The communication control unit 11 includes a reception control unit 16 and a transmission control unit 17. The storage unit 12 includes a command buffer 18 and a condition data buffer 19. Of the two control units 16 and 17 of the communication control unit 11, the reception control unit 16 demodulates the data transmitted from the host device 2, and the data is sent to the command buffer 18 of the storage unit 12 according to the type of data. And stored in one of the condition data buffers 19. Further, the transmission control unit 17 modulates the data created on the data processing control unit 13 side and transmits the data to the higher-level device 2 via the higher-level communication unit 10.

データ処理制御部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 processing control unit 13 includes a command selection unit 20, a command selection information unit 21, a card communication processing unit 22, a card response determination unit 23, and an upper transmission data creation unit 24. The wireless communication unit 15 includes a transmission circuit 25 and a reception circuit 26. The command selection unit 20 of the data processing control unit 13 sends a command to be transmitted to the IC card 3 from the plurality of commands stored in the command buffer 18 based on the command selection information given from the command selection information unit 21. Is sent to the card communication processing unit 22. The card communication processing unit 22 functions as a transmission control unit, changes the command given from the command selection unit 20 into a format compatible with the IC card 3, and sends the command to the transmission circuit 25. Then, the transmission circuit 25 modulates the data provided from the card communication processing unit 22 and transmits it from the antenna 14.

リーダライタ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 antenna 14, and data to be transmitted to the IC card 3 is superimposed on the carrier signal. The IC card 3 performs a processing operation by obtaining an operating power source from the carrier signal for power transmitted from the reader / writer 1. A data signal transmitted from the IC card 3 is received by the antenna 14 of the reader / writer 1. The data signal received by the antenna 14 is demodulated by the receiving circuit 26 of the wireless communication unit 15. The demodulated received data is given to the card communication processing unit 22.

カード通信処理部22は、受信制御手段としても機能し、ICカード3から受信したデータをリーダライタ1の取り扱い形式に変更してカード応答判定部23に送る。カード応答判定部23は、ICカード3から受信したデータ(応答)を条件データバッファ19に格納されている判定条件によって判定する。そして、カード応答判定部23は、判定結果に基づく情報をコマンド選択情報部21および上位送信データ作成部24に与える。上位送信データ作成部24では、カード応答判定部23から与えられたデータを上位装置2に送信すべき内容にして通信制御部11の送信制御部17に与える。送信制御部17は、上位送信データ作成部24から与えられたデータを変調して上位装置2へ送信する。   The card communication processing unit 22 also functions as a reception control unit, changes the data received from the IC card 3 to the handling format of the reader / writer 1 and sends the data to the card response determination unit 23. The card response determination unit 23 determines the data (response) received from the IC card 3 based on the determination condition stored in the condition data buffer 19. Then, the card response determination unit 23 gives information based on the determination result to the command selection information unit 21 and the upper transmission data creation unit 24. In the upper transmission data creation unit 24, the data given from the card response determination unit 23 is sent to the transmission control unit 17 of the communication control unit 11 with the contents to be transmitted to the upper device 2. The transmission control unit 17 modulates the data provided from the upper transmission data creation unit 24 and transmits the data to the upper device 2.

本実施例の非接触通信システムでは、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 command 4 or 5 is selected according to the determination result and transmitted to the reader / writer. Then, the reader / writer executes the command 4 or 5 and transmits the result as a response 3 to the reader / writer, and the reader / writer transmits the response 3 to the host device. After that, the host device determines the content of the response 3 with the determination condition, selects the next command according to the determination result, and transmits it to the reader / writer, thereby repeatedly executing the above-described operation. Reading from and writing to the IC card is performed.

このような読み書き構成の従来では、リーダライタからコマンドが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 communication control unit 11 of the reader / writer 1, and FIG. 3B shows the operation content of the data processing control unit 13. That is, when a new read / write to the IC card 3 is started, the next command preparation unit 4 of the host device 2 determines the first command (first command 1) to be sent to the IC card 3 and the response to the first command. The non-contact communication control unit 5 is given in order the condition 1 and the next commands 2 and 3 for each of the two determination results obtained according to the response contents (corresponding to the response from the IC card 3 in the claims). Then, the non-contact communication control unit 5 transmits the first command 1, the determination condition 1, and the next commands 2 and 3 to the reader / writer 1 via the transmission unit 7 and the lower communication unit 9 in order.
When the first command 1 is transmitted from the host device 2 to the host communication unit 10 of the reader / writer 1, the reception control unit 16 receives and demodulates the first command 1 from the host device 2, and the demodulated first command 1 is sent to the command. The data is stored in the buffer 18 (as described above, “present” in step A1 in FIG. 3A → step A2).

一方、リーダライタ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 response determination unit 23 of the data processing control unit 13 is informed that reading / writing will be performed on a new IC card. Is given to the command selection information section 21. The command selection unit 20 is in a state of monitoring whether a command is stored in the command buffer 18 (step B1). When the initial command 1 transmitted from the host device 2 as described above is stored in the command buffer 18, the command selection unit 20 immediately reads the initial command 1 from the command buffer 18.

コマンド選択部20は、コマンドバッファ18から読み取ったコマンドが初回コマンド1であり、これから新たにICカード3に対して読み書きを開始するというコマンド選択情報部21の情報に適合しているので、ステップB1で「有」と判断して、その初回コマンド1をカード通信処理部22に送る。カード通信処理部22は、その初回コマンド1を送信回路25を介してアンテナ14からICカード3に送信する(ステップB2)。   The command selection unit 20 conforms to the information of the command selection information unit 21 that the command read from the command buffer 18 is the first command 1 and the reading and writing to the IC card 3 is newly started from now on. The first command 1 is sent to the card communication processing unit 22. The card communication processing unit 22 transmits the initial command 1 from the antenna 14 to the IC card 3 via the transmission circuit 25 (step B2).

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 communication processing unit 22 waits for a response from the IC card 3 (step B 3).

受信制御部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 command buffer 18, the reception control unit 16 proceeds to step A <b> 3 for determining whether or not there is next data reception. Since the host apparatus 2 continuously transmits the determination condition data 1 and the commands 2 and 3 in order after the initial buffer 1, the reception control unit 16 immediately stores the initial command 1 in step A 3. The determination condition data 1 determined as “determination condition data” and transmitted after the initial command 1 is stored in the condition data buffer 19 (step A4), and the process returns to the first step A1. Then, the reception control unit 16 immediately determines “Yes” in Step A1, stores the command 2 transmitted following the determination condition data 1 in the command buffer 18 (Step A2), and then Step A3. Immediately after the transition to, it is judged as “present”, and the command 3 transmitted following the command 2 is stored in the command buffer 18 (step A2). Thereafter, the reception control unit 16 waits for reception of data from the higher-level device 2 (step A3).

さて、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 circuit 26 receives and demodulates the response 1, and gives it to the card communication processing unit 22 (step B3). The card communication processing unit 22 changes the response 1 from the IC card 3 to the handling format of the reader / writer 1 and sends it to the card response determination unit 23 (step B5). Since the determination condition data 1 is stored in the condition data buffer 19 ("Yes" in step B6), the card response determination unit 23 reads the determination condition data 1 and based on the determination condition 1, the IC card The content of the response 1 from 3 is determined, and based on the determination result, any one command is selected from the commands 2 and 3 which are the next commands corresponding to the determination results (responses in claims) ( Step B7).

応答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 response determination unit 23 clears the used determination condition data 1 stored in the condition data buffer 19 (step B8), and then determines the determination condition from the commands 2 and 3. The command (next command) name selected based on is sent to the upper transmission data creation unit 24 and the command selection information unit 21 (step B9). Then, the upper transmission data creation unit 24 creates notification data (next command selection information for specifying one selected command) indicating what the selected command is, and sends it to the transmission control unit 17 (step B11). The transmission control unit 17 transmits the notification data (next command selection information) from the higher-level communication unit 10 to the higher-level device 2 (step B12).

リーダライタ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-level communication unit 9 and given to the non-contact communication control unit 5 via the reception unit 8 in the higher-level device 2. The non-contact communication control unit 5 gives the received next command selection information to the response prediction unit 6 and the next command preparation unit 4. Then, the response prediction unit 6 identifies whether the one command transmitted from the reader / writer 1 to the IC card 3 is the command 2 or the command 3 based on the next command selection information, and identifies A result of the response from the IC card 3 determined by the determination condition (response as claimed) is predicted for the command, and the predicted determination result is given to the next command preparation unit 4.

次期コマンド準備部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 command preparation unit 4 illustrates the determination condition 2 or 3 for the response to the command transmitted to the IC card 3 among the commands 2 and 3 based on the next command selection information given from the non-contact communication control unit 5. The next command (commands 4 and 5 in FIG. 3) corresponding to each of the determination results predicted by the response prediction unit 6 is selected from the memory (not shown) and given to the non-contact communication control unit 5. Then, the non-contact communication control unit 5 has two determinations obtained when the determination condition 2 or 3 given from the next command preparation unit 4 and the response from the IC card 3 are determined based on the determination condition 2 or 3. Commands 4 and 5 for each of the results are sent sequentially and sequentially.

前記次期コマンド選択情報を上位装置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 command selection unit 20 selects a command selection information unit 21 from the commands (commands 2 and 3 in this case) stored in the command buffer 18. A command having the same name as the selected command name given to is selected ("Yes" in step B1), and transmitted from the antenna 14 to the IC card 3 via the card communication processing unit 22 and the transmission circuit 25 (step B2). And it will be in the state which waits for the response from IC card 3 (step B3).

上述のようにして上位装置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 commands 4 and 5 as described above, after the reception of the commands 2 and 3 is finished, the reception control unit 16 that has been in the reception waiting state in step A3. However, until the response from the IC card 3 is received, the determination condition data 2 is stored in the condition data buffer 19 in the same manner as the above-described determination condition data 1 (“determination condition data” in step A3 → step A4 → Next, the commands 4 and 5 that are continuously transmitted are stored in the command buffer 18 (“Yes” in step A 1 → step A 2 → “command” in step A 3 → step A 2 → step A 3).

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 response determination unit 23 determines the response based on the determination condition 2 or 3 stored in the determination condition buffer 13, One command corresponding to the determination result is selected from the commands 4 and 5 stored in the command buffer 18 (“Yes” in Step B3 → Step B5 → “Yes” in Step B6 → Step B7).

その後、条件データバッファ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 condition data buffer 19 is erased, the next command selection information indicating the selected command name is transmitted to the host device 2, and the selected command is sent to the IC card 3 (Step B8 → Step B9 → Step B11 → Step B12 → “Yes” in Step B1 → Step B2). Then, as described above, the host device 2 continuously transmits the response determination condition data for the command transmitted to the IC card 3, and the command for each of the responses according to the determination condition. The same operation as described above is repeatedly executed to finish reading and writing to the IC card 3.

ここで、ステップ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 command buffer 18 is cleared (step B10). Then, the card response determination unit 23 sends unpredicted response information indicating the type of response from the IC card 3 and sends a request to the upper transmission data creation unit 24 to request a command for the next processing, and creates upper transmission data. The unit 24 creates notification data for requesting the next command, and transmits this to the higher-level device 4 via the transmission control unit 17 (step B11 → step B12). The host device 2 that has received this notification data transmits a new command corresponding to the notification data to the reader / writer 1 as the next command based on the unexpected response information.

なお、リーダライタ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 command preparation unit 4 determines the plurality of response types (for example, “less than 1” and “1 or more”) and their respective responses. If the reader / writer 1 is configured to transmit the command to the reader / writer 1 in association with each other, the reader / writer 1 does not need to determine a response based on the determination condition, and can further increase the processing speed.

図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 condition data buffer 19, so the next command is stored in the command stored in the command buffer 18. It is about the processing method when there is no command.
That is, in FIG. 7, the command 4 or 5 is transmitted from the reader / writer 1 to the IC card 3, and the IC card 3 executes the request processing 3 for the command. The case where it transmitted to the reader / writer 1 is shown.

この場合には、リーダライタ1の条件データバッファ19に記憶されている判定条件4または5によっては応答11を判定することができない。この場合には、リーダライタ1のカード応答判定部23は、ICカード3から送信されてきた応答11をそのまま上位送信データ作成部24を介して上位装置11に送信する。   In this case, the response 11 cannot be determined depending on the determination condition 4 or 5 stored in the condition data buffer 19 of the reader / writer 1. In this case, the card response determination unit 23 of the reader / writer 1 transmits the response 11 transmitted from the IC card 3 as it is to the host device 11 via the host transmission data creation unit 24.

上位装置11の次期コマンド準備部4は、ICカード3の応答11を判定して次期コマンド12を準備と、その次期コマンド12に対する応答についての判定条件13と、応答内容を判定条件13により判定した場合に得られる2つの結果の各々に対するコマンド14,15をリーダライタ1に送信する。そして、リーダライタ1は、次期コマンド12をICカード3に送信する。   The next command preparation unit 4 of the host device 11 determines the response 11 of the IC card 3 to prepare the next command 12, and determines the determination condition 13 for the response to the next command 12, and the response content based on the determination condition 13. Commands 14 and 15 for each of the two results obtained in the case are transmitted to the reader / writer 1. Then, the reader / writer 1 transmits the next command 12 to the IC card 3.

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 request process 13 based on the command 12 and transmits a response 13 to the reader / writer 1. As described in the first embodiment, the reader / writer 1 determines the response 13 based on the determination condition 13 and transmits the command 14 or the command 15 to the IC card 3 according to the determination content. What the command transmitted to the IC card 3 is is transmitted to the host device 2.
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 electric lock 27 is provided as means, and a signal conversion unit 28 and a signal output unit 29 as signal output means are provided between the card response determination unit 23 and the electric lock 27.

この実施例では、上位装置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 display device 27 and gives the converted signal output command to the signal output unit 29. Then, the signal output unit 29 transmits a next signal output command to the electric lock 27, and the electric lock 27 performs an operation corresponding to the next signal output command, that is, an operation of unlocking or locking the door. Execute.

なお、本発明は上記し且つ図面に示す実施例に限定されるものではなく、次のような拡張或は変更が可能である。
上位装置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 command buffer 18 even after being transmitted to the IC card 3, and the stored command is reused and transmitted to the IC card 3 in response to a command from the host device 2. May be. When commands are stored in this way, the commands stored in the command buffer may be automatically cleared in the order of reception. Further, a command that has not been transmitted to the IC card may be preferentially cleared. A command may be specified and cleared.
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 command buffer 18 are cleared.
A configuration in which command transmission to the IC card 3 is interrupted while an unexecuted command is stored in the command buffer 18 can be employed. In this case, it can be configured to resume from the point of interruption.

データキャリアは、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 electric lock 27, but a notification means for displaying each response to the command of the data carrier and notifying a person, for example, a display device or sound for notifying the state by light. A sounding device for informing the state may be used.

本発明の第1の実施例を示すリーダライタの電気的構成を示す機能ブロック図1 is a functional block diagram showing an electrical configuration of a reader / writer showing a first embodiment of the present invention. 上位装置の電気的構成を示す機能ブロック図Functional block diagram showing the electrical configuration of the host device リーダライタにおける制御内容を示すフローチャートFlow chart showing control contents in reader / writer 上位装置、リーダライタ、ICカードの三者間での情報授受のシーケンスInformation exchange sequence between the host device, reader / writer, and IC card コマンドと、その応答処理の流れを示すフローチャートA flowchart showing the flow of commands and response processing システム構成を示すブロック図Block diagram showing system configuration 本発明の第2の実施例を示す図4相当図FIG. 4 equivalent view showing a second embodiment of the present invention. 本発明の第3の実施例を示す図1相当図FIG. 1 equivalent view showing a third embodiment of the present invention. 従来の情報授受を示す図4相当図FIG. 4 equivalent diagram showing conventional information exchange

符号の説明Explanation of symbols

図面中、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.
請求項1記載の非接触通信システムにおいて、
前記上位装置が具える前記応答予測手段は、
前記非接触通信装置が前記非接触型データキャリアに与えたコマンドに対する前記非接触型データキャリアからの応答が、正常でなかった場合、および正常であった場合の両方を予測し、更に、それぞれの場合において前記非接触型データキャリアからの複数の応答の形態を予測することを特徴とする非接触通信システム。
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.
請求項2記載の非接触通信システムにおいて、
前記上位装置が具える前記次期コマンド準備手段は、
前記応答予測手段が予測した複数の前記応答のそれぞれに対応する次期コマンドを準備し、
前記応答予測手段が予測した複数の前記応答と、準備した次期コマンドとをそれぞれ対応付けて前記非接触通信制御手段を介して前記非接触通信装置に与えることを特徴とする非接触通信システム。
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.
請求項2または3記載の非接触通信システムにおいて、
前記上位装置が具える前記次期コマンド準備手段は、
与えたコマンドに対する前記非接触型データキャリアからの応答が正常でなかった場合を予測して準備された次期コマンドに対して、少なくとも当該次期コマンドの再実行回数を付加して前記非接触通信装置に与えることを特徴とする非接触通信システム。
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.
請求項1ないし4のいずれかに記載の非接触通信システムにおいて、
前記非接触通信装置が具える前記送受信制御手段は、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた前記次期コマンドがない場合、
前記上位装置に対して前記受信制御手段が受信した前記非接触型データキャリアからの応答をそのまま送信し、
前記上位装置が具える前記次期コマンド予測手段は、前記非接触通信装置から送信された前記非接触型データキャリアからの応答に対応する新たなコマンドを新たな次期コマンドとして準備する
ことを特徴とする非接触通信システム。
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.
請求項1ないし5のいずれかに記載の非接触通信システムにおいて、
前記非接触通信装置は、
更に、前記送受信制御手段によって制御される信号出力手段を具え、
前記上位装置が具える前記次期コマンド準備手段は、
前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応する次期コマンドに加え、前記応答予測手段が予測した前記非接触型データキャリアからの応答のそれぞれに対応して前記信号出力手段に信号を出力する次期信号出力コマンドを準備し、前記非接触通信制御手段を介して前記次期コマンドと前記次期信号出力コマンドとを前記非接触通信装置に与え、
前記非接触通信装置が具える前記送受信制御手段は、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する次期コマンドの一つと、次期信号出力コマンドの一つとを選択し、選択した次期コマンドの一つは前記送信制御手段を介して前記非接触型データキャリアに送信し、選択した次期信号出力コマンドの一つは前記信号出力手段に対応する信号に変換して出力する
ことを特徴とする非接触通信システム
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.
請求項6記載の非接触通信システムにおいて、
前記非接触通信装置が具える前記信号出力手段は、通路の通行を禁止または許可する扉の開閉を制御する信号を出力するものであることを特徴とする非接触通信システム。
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.
請求項6または7記載の非接触通信システムであって、
前記非接触通信装置が具える前記信号出力手段は、前記非接触通信装置が具える光または音を用いて状態を報知する報知手段を制御する信号を出力するものであることを特徴とする非接触通信システム。
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.
請求項1記載の非接触通信システムに使用される非接触通信装置において、
前記上位装置が具える前記非接触通信制御手段から与えられたコマンドを前記非接触型データキャリアが受信できる形式に変換して送信する送信制御手段と、
前記非接触型データキャリアからの応答を受信する受信制御手段と、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた次期コマンドの一つを選択し、前記送信制御手段を介して前記非接触型データキャリアに送信した後、前記上位装置に対して選択した次期コマンドの一つが何であったかを示す次期コマンド選択情報を送信して通知する送受信制御手段と、を具えることを特徴とする非接触通信装置。
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.
請求項9記載の非接触通信装置において、
前記送受信制御手段は、
前記受信制御手段が受信した前記非接触型データキャリアからの応答に対応する前記上位装置から与えられた前記次期コマンドがない場合、
前記上位装置に対して前記受信制御手段が受信した前記非接触型データキャリアからの応答をそのまま送信することを特徴とする非接触通信装置。
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.
請求項9または10記載の非接触通信装置において、
前記送受信制御手段によって制御される信号出力手段を具え、
前記送受信制御手段は、前記受信制御手段が前記上位装置から受信した前記非接触型データキャリアからの応答に対応する次期コマンドの一つと、次期信号出力コマンドの一つとを選択し、選択した次期コマンドの一つは前記送信制御手段を介して前記非接触型データキャリアに送信し、選択した次期信号出力コマンドの一つは前記信号出力手段に対応する信号に変換して出力することを特徴とする非接触通信装置。
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.
請求項11記載の非接触通信装置において、
前記信号出力手段は、通路の通行を禁止または許可する扉の開閉を制御する信号を出力するものであることを特徴とする非接触通信装置。
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.
請求項11または12記載の非接触通信装置において、
光または音を用いて状態を報知する報知手段を具え、
前記信号出力手段は、前記報知手段を制御する信号を出力するものであることを特徴とする非接触通信装置。

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.

JP2004296179A 2004-10-08 2004-10-08 Non-contact communication system and non-contact communication device Expired - Fee Related JP4315091B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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