JP4141261B2 - Reader / writer and control method thereof - Google Patents
Reader / writer and control method thereof Download PDFInfo
- Publication number
- JP4141261B2 JP4141261B2 JP2003008369A JP2003008369A JP4141261B2 JP 4141261 B2 JP4141261 B2 JP 4141261B2 JP 2003008369 A JP2003008369 A JP 2003008369A JP 2003008369 A JP2003008369 A JP 2003008369A JP 4141261 B2 JP4141261 B2 JP 4141261B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- error rate
- reader
- memory
- writer
- 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
Images
Description
【0001】
【発明の属する技術分野】
本発明は、ICカードまたはICタグのような可搬記録媒体に対し情報の読出しもしくは書込みを行うリーダライタおよびその制御方法に関する。
【0002】
【従来の技術】
ICカードまたはICタグのような可搬記録媒体は、データ記憶用のICメモリを内蔵しており、その携帯性、耐久性、メンテナンス性などの特長からから、例えばクレジットカードや定期券、商品管理タグ等、様々な場面で適用されている。可搬記録媒体からのデータの読取りおよび可搬記録媒体へのデータの書込みは、リーダライタを介して行われる。
【0003】
以下、可搬記録媒体としてICカードを例にとって説明する。
【0004】
リーダライタは、その上位装置にあたるホストコンピュータに接続されており、各種メイン処理はこのホストコンピュータで実行される。
【0005】
ICカードとリーダライタとの間では、固定の伝送プロトコルによってデータ通信が実行される。そのため、ICカードおよびリーダライタは、いずれも単一の伝送プロトコルを備えている。
【0006】
リーダライタとICカードとの間でデータ通信を行うためのプロトコルとしては、例えば、PC/SC(Parsonal Computer/Smart Card)ワーキンググループの規約である、ISO/IEC7816のT=1(半二重調歩同期ブロック伝送プロトコル)あるいはT=0(調歩式半二重キャラクタ伝送プロトコル)等が一般的に用いられている。日本国内では、JICSAP(Japan IC Card System Application Council)が規定する伝送プロトコルT=1が広く用いられている。
【0007】
このようにプロトコルは複数種類存在する。しかし、ICカードは、プロトコルが合致する特定のリーダライタでなければデータ通信を行うことができない。一般に、ICカードシステムの製造元やICカードの発行元の違いにより、プロトコルの種類が異なる場合が多い。ICカードが普及するにつれ、システム固有のICカードを複数枚所有しなければならない状況も生じ得る。
【0008】
このような問題を解決するために、従来技術として、通信プロトコルが異なる複数のICカードと、同一のリーダライタとの間でデータを送受信できる、マルチプロトコルのICカードシステムが提案されている(例えば、特許文献1参照)。
【0009】
なお、リーダライタとホストコンピュータとの間のデータ通信においても、複数種類のプロトコルが存在する。本出願人は、上述のICカードとリーダライタとの間のデータ通信の場合と同様の問題が生じ得ると考え、この問題を解決する技術として、上位装置として接続されたホストコンピュータとの間の通信において、複数種類のプロトコルに対応して動作可能なリーダライタおよびそのデータ伝送方法を提案している(例えば、特許文献2参照)。
【0010】
【特許文献1】
特開平5−12499号公報
【特許文献2】
特開2002−236885号公報
【0011】
【発明が解決しようとする課題】
リーダライタにおいて固定されたプロトコルに従って可搬記録媒体とデータ通信を行う場合、もしくは、マルチプロトコル対応のリーダライタにおいて可搬記録媒体とリーダライタとの間のプロトコルの種類が合致し、そのプロトコルに基づいてデータ通信を行う場合、データ通信時のエラーの発生を少なくするために、リーダライタの変調方式、変調率、ビットコーディング、通信レートなどの通信条件を最適なものに設定しておく必要がある。例えば、あるプロトコルを利用してデータ通信する場合、変調方式はAM変調もしくはFM変調のどちらにするか、変調率をいくつにするか、ビットコーディングをいくつにするか、通信レートはどうするか、といったことを設定する必要がある。このように通信条件は、それを規定するファクタの考えられ得る組合せ数が非常に多く煩雑であり、その評価および選定は困難な作業である。
【0012】
特に非接触型ICカードシステムのデータ通信特性は、電磁誘導現象を利用する故に、設置環境もしくは利用環境の影響を受けやすい。例えば、付近に金属もしくは木材などが存在するか、通信距離、電子ノイズの有無、あるいは、気温、気圧もしくは湿度などの気象環境などによって、データ通信特性が大きく変化する。
【0013】
このような理由から、非接触型リーダライタの製造時においては、設置場所もしくは利用環境を十分に想定し、通信条件を予め評価かつ選定しておかなければなかった。この通信条件の評価および選定作業は、上述の通り、通信条件を規定するファクタの考えられ得る組合せ数が多いので、非常に面倒な作業である。
【0014】
また、上述のように選定された通信条件は固定されているので、初期の段階で設置環境もしくは利用環境に最適な通信条件を有するリーダライタを実現したとしても、時間とともにあるいは何らかの影響で、設置環境もしくは利用環境が変化した場合は、通信エラーが増加する可能性もある。
【0015】
上述のような各問題は、リーダライタがマルチプロトコル対応可能である場合はさらに大きな問題となり得る。
【0016】
従って本発明の目的は、上記問題に鑑み、最適な通信条件を自動的に選択して可搬記録媒体とデータ通信を行う、汎用性の高いリーダライタおよびその制御方法を提供することにある。
【0017】
【課題を解決するための手段】
上記目的を実現するために、本発明においては、リーダライタは、複数の通信条件のうち、その時点で最小のエラーレートとなり得る通信条件を選択し、選択された通信条件を利用して可搬記録媒体との間でデータ通信を行う。エラーレートが最小であるということは、このエラーレートに対応する通信条件が、リーダライタの設置環境もしくは利用環境に最も適している可能性が高いということを意味している。
【0018】
本発明によるリーダライタでは、まず、複数の通信条件とこれら各通信条件の下でのエラーレートとの対応関係をメモリに記録しておく。その一方で、可搬記録媒体とのデータ通信において現在利用している通信条件の下でのエラーレートを常に監視する。そして、このとき計測したエラーレートが、メモリに記録されている当該通信条件の下でのエラーレートよりも大きい場合は、可搬記録媒体とのデータ通信に利用する通信条件を、メモリに記録されている複数の通信条件のうちエラーレートが最小である通信条件に変更する。これとともに、このとき計測したエラーレートを、メモリに記録されている当該通信条件の下でのエラーレートに代えて、新たにメモリに記録する。
【0019】
図1は、本発明によるリーダライタのシステムブロック図である。
【0020】
本発明によるリーダライタ1は、
複数の通信条件と各通信条件の下でのエラーレートとの対応関係を記憶するメモリ11と、
現在利用している通信条件の下でのエラーレートを計測する計測手段12と、計測手段12で計測したエラーレートが、メモリ11に既に記憶されている当該通信条件の下でのエラーレートよりも大きいか否かを判定する判定手段13と、
判定手段13において、計測手段12で計測したエラーレートの方が大きいと判定された場合、計測手段12で計測したエラーレートを、メモリ11に既に記憶されている当該通信条件の下でのエラーレートに代えてメモリ11に新たに記憶させる更新手段14と、
判定手段13において、計測手段12で計測したエラーレートの方が大きいと判定された場合、データ通信に利用する通信条件を、現在利用している通信条件に代えて、メモリ11に記憶されている複数の通信条件のうちエラーレートが最小である通信条件に変更する更新手段15と、を備える。
【0021】
また、本発明によるリーダライタ1は、複数の通信条件と各通信条件の下でのエラーレートの初期値との対応関係を保持する初期値保持領域16をさらに備えるのが好ましい。
【0022】
また、本発明によるリーダライタ1は、メモリ11に現在記憶されている対応関係に代えて、初期値保持領域16に保持されている複数の通信条件と各通信条件の下でのエラーレートの初期値との対応関係をメモリ11に新たに記憶させるリセット手段17をさらに備えるのが好ましい。
【0023】
本発明によるリーダライタ1の制御方法は、
複数の通信条件と各通信条件の下でのエラーレートとの対応関係をメモリ11に記憶する記憶ステップと、
現在利用している通信条件の下でのエラーレートを計測する計測ステップと、計測ステップで計測したエラーレートが、メモリ11に既に記憶されている当該通信条件の下でのエラーレートよりも大きいか否かを判定する判定ステップと、
判定ステップにおいて、計測ステップで計測したエラーレートの方が大きいと判定された場合、計測ステップで計測したエラーレートを、メモリ11に既に記憶されている当該通信条件の下でのエラーレートに代えてメモリ11に新たに記憶させる更新ステップと、
判定ステップにおいて、計測ステップで計測したエラーレートの方が大きいと判定された場合、データ通信に利用する通信条件を、現在利用している通信条件に代えて、メモリ11に記憶されている複数の通信条件のうちエラーレートが最小である通信条件に変更する変更ステップと、を備える。
【0024】
本発明によれば、可搬記録媒体との間で、複数の通信条件のうちのいずれかを利用してデータ通信を行うリーダライタにおいて、複数の通信条件とこれらに対応するエラーレートとの関係をメモリに記録しておき、現在の通信条件の下でのエラーレートを判断基準にして、データ通信に利用する通信条件を変更するとともにメモリに記録された内容を書き換えるので、最適な通信条件、すなわち最小のエラーレートとなる通信条件を自動的に選択して可搬記録媒体とデータ通信を行うことができる。
【0025】
【発明の実施の形態】
ここでは、ICカードとの間でデータ通信を行う非接触型リーダライタに本発明を適用した実施例について説明するが、本発明は接触型リーダライタにも適用することができる。ここで、本実施例は、ある特定のプロトコルに基づくデータ通信の場合を想定している。
【0026】
図2は、本発明の実施例によるリーダライタの動作フローを示すフローチャートである。また、図3は、本発明の実施例おける通信条件とその通信条件におけるエラーレートの対応関係の一部を例示する図である。
【0027】
本実施例では、通信条件を規定するファクタを、変調方式、変調率、ビットコーディングおよび通信レートとし、例示目的の数値例が図3に示されている。図3においては、便宜上、これら各通信条件名をA、B、C、D、・・・とする。
【0028】
なお、本実施例では、変調方式、変調率、ビットコーディングおよび通信レートの4つのファクタの組合せで通信条件を規定している。この代替例として、これら4つのファクタのうちの1つ、これら4つのファクタのうちの少なくとも2つの組合せとしてもよい。あるいはこれら4つ以外のファクタをさらに組み入れてもよい。
【0029】
本発明では、現段階のデータ通信に最適な通信条件を複数の通信条件の中から選択するときの判断基準として、データ通信の際に計測されるエラーレートを用いる。この理由は、上述したように、特に非接触型ICカードシステムのデータ通信特性は設置環境もしくは利用環境の影響を受けやすく、この影響はエラーレートに反映されるからである。
【0030】
通常、リーダライタはICカードとの間では所定の周期ごと(例えば数百ミリごと)にデータの送受信を行っているが、エラーレートは、例えばこのデータの送受信におけるエラーの割合を意味する。例えばデータの送受信を100回サンプルする間にエラーが5回あったときは、エラーレートは5%となる。このサンプル数は任意に設定可能としてもよい。
【0031】
図3には、図1の初期値保持領域16に保持される、各通信条件の下でのエラーレートの初期値が例示されている。本実施例では、リーダライタの製造時において、例えば、設置場所もしくは利用場所付近に金属もしくは木材などが存在し得るか、付近に電子ノイズが存在し得るか、ICカードとの通信距離、あるいは、気温、気圧もしくは湿度などの気象環境などといった様々な状況を想定して評価試験を実施し、このときのエラーレートを初期値保持領域に記憶させる。このエラーレートの初期値は、リーダライタを最初に運用し始めたときに利用されるが、その詳細については後述する。
【0032】
なお、図1では初期値保持領域16をメモリ11とは別個に設けたが、メモリ11の一部の領域を用いて初期値保持領域16を実現してもよい。
【0033】
さらに図3には、リーダライタが運用されてある程度時間が経過したときの、図1のメモリ11に記憶されている、各通信条件の下でのエラーレートが例示されている。
【0034】
図1に示されたメモリ11、計測手段12、判定手段13、更新手段14、変更手段15、初期値保持領域16およびリセット手段17は、一般的なリーダライタ内に実現されるCPU、メモリ、アンテナ部、各種インタフェース、ソフトウェアおよびファームウェアなどで実現可能である。
【0035】
以下、本発明の実施例によるリーダライタの具体的な動作について説明する。
【0036】
本実施例によるリーダライタは、複数の通信条件のうち、その時点で最もエラーレートの低い通信条件を選択し、選択された通信条件を利用してICカードとの間でデータ通信を行う。
【0037】
なお、リーダライタの運用開始時点では、初期値保持領域16に保持されている各通信条件の下でのエラーレートの初期値がメモリ11に記憶されており、これらエラーレートのうち最小のエラーレートを示す通信条件が利用される。本実施例における運用開始時点の通信条件は、図3に示すようにエラーレートが最小である通信条件Cとする。そして、現時点で通信条件Cを利用してデータ通信している場合を説明する。
【0038】
図2のステップS101において、リーダライタは、その時点で最もエラーレートの低い通信条件を利用して、ICカードとの間でデータ通信を行う。
【0039】
ステップS102では、現在利用している通信条件の下でのエラーレートを計測する。
【0040】
次いで、ステップS103において、ステップS102で計測したエラーレートが、メモリに既に記憶されている当該通信条件の下でのエラーレートよりも大きいか否かを判定する。ステップS103において、ステップS102で計測したエラーレートの方が大きいと判定された場合はステップS104へ進み、小さいかもしくは同じと判定された場合はステップS106へ進む。
【0041】
本実施例では、ステップS102で計測したエラーレートが例えば「6」であった場合は、メモリに記憶されている通信条件Cのエラーレート「3」よりも大きいのでステップS104へ進むことになる。
【0042】
ステップS104およびS106では、ステップS102で計測したエラーレートを、メモリ11に既に記憶されている当該通信条件の下でのエラーレートに代えてメモリ11に新たに記憶させる。
【0043】
本実施例では、ステップS104において、メモリ上の通信条件Cに対応するエラーレートが「3」から「6」に書き換えられることになる。
【0044】
ステップS105では、データ通信に利用する通信条件を、現在利用している通信条件に代えて、メモリに記憶されている複数の通信条件のうち、対応するエラーレートが最小である通信条件に変更する。
【0045】
本実施例では、通信条件Aの下でのエラーレートが「5」であり、他のどの通信条件と比べてもエラーレートが最小であるので、通信条件Cから通信条件Aに変更される。
【0046】
そして再びステップS101に戻り、ICカードとのデータ通信が開始される。
【0047】
以上説明した処理ループを繰り返し実行していくと、リーダライタの設置環境もしくは利用環境の変化に反応して、図1のメモリ11に記憶される各通信条件下でのエラーレートは自動的に更新され、またデータ通信に利用される通信条件も変更されることになる。
【0048】
既に説明したように、エラーレートの計測周期はリーダライタとICカードとの間のデータ通信の周期と一致する。したがって、上記メモリの更新および通信条件の変更の周期は、少なくともエラーレートの計測周期、すなわちリーダライタとICカードとの間のデータ通信の周期(例えば数百ミリごと)を有することになる。
【0049】
更新され続けるメモリの記録内容を、初期状態に戻るためのリセット手段17をさらに設けてもよい。このリセット手段17は、メモリに現在記憶されている対応関係に代えて、初期値保持領域16に保持されている複数の通信条件と各通信条件の下でのエラーレートの初期値との対応関係をメモリに新たに記憶させるいわゆるリセット処理を行う。
【0050】
以上説明した処理ループを繰り返し実行することにより、リーダライタは、エラーレートが最小となる通信条件、すなわち、リーダライタの設置環境もしくは利用環境に適している可能性が最も高い通信条件を自動的に選択することができるので、常に最適な通信条件でICカードとの間でデータ通信を行うことができる。
【0051】
上述の実施例では単一のプロトコルのリーダライタを示したが、その変形例として、マルチプロトコルのリーダライタにも適用することができる。図4は、本発明の実施例の変形例によるリーダライタの概念図である。
【0052】
本変形例においては、マルチプロトコル対応のリーダライタ1は、図3を参照して説明した、複数の通信条件とこれら各通信条件の下でのエラーレートの対応関係の表21a、21bおよび21cを、プロトコルa、bおよびcごとに有する。
【0053】
あるプロトコルで動作するICカード2がリーダライタ1のデータ通信圏内に入ると、このICカード2のプロトコルと合致するプロトコルにおける対応関係の表がまず選択される。そして、プロトコル変換後、既に説明した図2のような処理が実行されることになる。リーダライタ1とホストコンピュータ3との間のデータ通信は、リーダライタ1で選択されたプロトコルに従うコマンドに基づく。この代替例として、ホストコンピュータ3で任意に指定したプロトコルに従ってデータ通信できるようにしてもよい。
【0054】
【発明の効果】
以上説明したように、本発明によれば、可搬記録媒体との間で、複数の通信条件のうちのいずれかを利用してデータ通信を行うリーダライタにおいて、複数の通信条件とこれらに対応するエラーレートとの関係をメモリに記録しておき、現在の通信条件の下でのエラーレートを判断基準にして、データ通信に利用する通信条件を変更するとともにメモリに記録された内容を書き換えるので、最適な通信条件、すなわち最小のエラーレートとなる通信条件を自動的に選択して可搬記録媒体とデータ通信を行うことができる。
【0055】
従来例では、リーダライタの設置場所もしくは利用環境を十分に想定し、製造段階の評価試験において通信条件を選定しておかなければならなかったが、本発明によれば、リーダライタを設置するだけで自動的に最適な通信条件が選択されるので、製造段階の評価試験の負担を軽減できる。
【0056】
また、リーダライタ周辺の環境に応じて常に最適な通信条件が自動的に選択されるので、設置後に周辺環境が変化しても、データ通信特性が悪化することはない。
【0057】
さらに従来例のように通信条件が固定されているわけではないので、リーダライタの設置環境もしくは利用環境に関する制限がなく、リーダライタの利用可能性が高まる。
【0058】
なお、上記各効果は、マルチプロトコル対応のリーダライタについても、本発明によれば十分享受できる。
【0059】
今後ますますICカードやICタグのような可搬記録媒体が普及するにつれ、システム全体の仕組み、設置環境もしくは利用環境も多様になっていくと考えられるが、本発明によれば、常に最適な通信条件で可搬記録媒体とデータ通信が可能なリーダライタを提供することができる。
【図面の簡単な説明】
【図1】本発明によるリーダライタのシステムブロック図である。
【図2】本発明の実施例によるリーダライタの動作フローを示すフローチャートである。
【図3】本発明の実施例おける通信条件とその通信条件におけるエラーレートの対応関係の一部を例示する図である。
【図4】本発明の実施例の変形例によるリーダライタの概念図である。
【符号の説明】
1…リーダライタ
2…可搬記録媒体
3…ホストコンピュータ
11…メモリ
12…計測手段
13…判定手段
14…更新手段
15…変更手段
16…初期値保持領域
17…リセット手段[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a reader / writer for reading or writing information on a portable recording medium such as an IC card or an IC tag, and a control method therefor.
[0002]
[Prior art]
A portable recording medium such as an IC card or IC tag incorporates an IC memory for data storage, and its features such as portability, durability, and maintainability make it possible to manage credit cards, commuter passes, and product management. It is applied in various scenes such as tags. Reading of data from the portable recording medium and writing of data to the portable recording medium are performed via a reader / writer.
[0003]
Hereinafter, an IC card will be described as an example of a portable recording medium.
[0004]
The reader / writer is connected to a host computer corresponding to the host device, and various main processes are executed by the host computer.
[0005]
Data communication is performed between the IC card and the reader / writer by a fixed transmission protocol. Therefore, both the IC card and the reader / writer have a single transmission protocol.
[0006]
As a protocol for performing data communication between a reader / writer and an IC card, for example, T = 1 (half-duplex stepping) of ISO / IEC7816, which is a convention of a PC / SC (Personal Computer / Smart Card) working group. Synchronous block transmission protocol) or T = 0 (asynchronous half-duplex character transmission protocol) is generally used. In Japan, the transmission protocol T = 1 defined by JICSAP (Japan IC Card System Application Council) is widely used.
[0007]
Thus, there are a plurality of types of protocols. However, the IC card can perform data communication only with a specific reader / writer whose protocol matches. In general, the type of protocol is often different depending on the manufacturer of the IC card system and the issuer of the IC card. As IC cards become widespread, situations may arise in which a plurality of system-specific IC cards must be owned.
[0008]
In order to solve such a problem, as a conventional technique, a multi-protocol IC card system capable of transmitting and receiving data between a plurality of IC cards having different communication protocols and the same reader / writer has been proposed (for example, , See Patent Document 1).
[0009]
There are a plurality of types of protocols in data communication between the reader / writer and the host computer. The present applicant considers that the same problem as in the case of data communication between the IC card and the reader / writer described above may occur, and as a technique for solving this problem, there is a problem between a host computer connected as a host device. In communication, a reader / writer operable in accordance with a plurality of types of protocols and a data transmission method thereof have been proposed (for example, see Patent Document 2).
[0010]
[Patent Document 1]
JP-A-5-12499 [Patent Document 2]
Japanese Patent Laid-Open No. 2002-236885
[Problems to be solved by the invention]
When data communication is performed with a portable recording medium according to a fixed protocol in the reader / writer, or the protocol type between the portable recording medium and the reader / writer matches in the multi-protocol compatible reader / writer, and based on that protocol. In order to reduce the occurrence of errors during data communication, it is necessary to set the communication conditions such as the reader / writer modulation method, modulation rate, bit coding, and communication rate to the optimum values. . For example, when data communication is performed using a certain protocol, whether the modulation method is AM modulation or FM modulation, what is the modulation rate, what is the bit coding, what is the communication rate, etc. It is necessary to set that. As described above, the communication condition has a large number of possible combinations of factors that define the communication condition, and is complicated and difficult to evaluate and select.
[0012]
In particular, the data communication characteristics of the non-contact type IC card system are easily affected by the installation environment or the use environment because the electromagnetic induction phenomenon is used. For example, the data communication characteristics vary greatly depending on the presence of metal or wood in the vicinity, the communication distance, the presence or absence of electronic noise, or the weather environment such as temperature, atmospheric pressure, or humidity.
[0013]
For this reason, when manufacturing a non-contact type reader / writer, it is necessary to sufficiently evaluate and select communication conditions in advance by taking into account the installation location or usage environment. As described above, this communication condition evaluation and selection work is very troublesome because there are many possible combinations of factors that define the communication condition.
[0014]
In addition, since the communication conditions selected as described above are fixed, even if a reader / writer having communication conditions that are optimal for the installation environment or usage environment is realized at an early stage, it may be installed over time or for some reason. If the environment or usage environment changes, communication errors may increase.
[0015]
Each of the problems described above can be a greater problem when the reader / writer is capable of multi-protocol support.
[0016]
Accordingly, an object of the present invention is to provide a highly versatile reader / writer and a control method therefor, which automatically select optimal communication conditions and perform data communication with a portable recording medium.
[0017]
[Means for Solving the Problems]
In order to achieve the above object, in the present invention, the reader / writer selects a communication condition that can be the lowest error rate at that time from among a plurality of communication conditions, and is portable using the selected communication condition. Data communication is performed with the recording medium. The fact that the error rate is minimum means that there is a high possibility that the communication condition corresponding to this error rate is most suitable for the installation environment or usage environment of the reader / writer.
[0018]
In the reader / writer according to the present invention, first, a correspondence relationship between a plurality of communication conditions and an error rate under each of these communication conditions is recorded in a memory. On the other hand, the error rate under the communication conditions currently used in data communication with the portable recording medium is always monitored. If the error rate measured at this time is larger than the error rate under the communication condition recorded in the memory, the communication condition used for data communication with the portable recording medium is recorded in the memory. Among the plurality of communication conditions, the communication condition is changed to the communication condition with the lowest error rate. At the same time, the error rate measured at this time is newly recorded in the memory instead of the error rate under the communication condition recorded in the memory.
[0019]
FIG. 1 is a system block diagram of a reader / writer according to the present invention.
[0020]
A reader /
A
The measuring
When the
When the
[0021]
The reader /
[0022]
In addition, the reader /
[0023]
The control method of the reader /
A storage step of storing in the memory 11 a correspondence relationship between a plurality of communication conditions and an error rate under each communication condition;
A measurement step for measuring an error rate under the currently used communication conditions, and whether the error rate measured at the measurement step is greater than the error rate under the communication conditions already stored in the memory 11 A determination step for determining whether or not;
In the determination step, when it is determined that the error rate measured in the measurement step is larger, the error rate measured in the measurement step is replaced with the error rate under the communication condition already stored in the
In the determination step, when it is determined that the error rate measured in the measurement step is larger, the communication condition used for data communication is replaced with the currently used communication condition, and a plurality of data stored in the
[0024]
According to the present invention, in a reader / writer that performs data communication with a portable recording medium using any one of a plurality of communication conditions, a relationship between a plurality of communication conditions and error rates corresponding thereto. Is recorded in the memory, the error rate under the current communication condition is used as a criterion, the communication condition used for data communication is changed and the content recorded in the memory is rewritten, so the optimum communication condition, That is, it is possible to automatically select the communication condition that provides the minimum error rate and perform data communication with the portable recording medium.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
Although an embodiment in which the present invention is applied to a non-contact type reader / writer that performs data communication with an IC card will be described here, the present invention can also be applied to a contact type reader / writer. Here, the present embodiment assumes the case of data communication based on a specific protocol.
[0026]
FIG. 2 is a flowchart showing an operation flow of the reader / writer according to the embodiment of the present invention. FIG. 3 is a diagram illustrating a part of the correspondence relationship between the communication condition and the error rate in the communication condition according to the embodiment of the present invention.
[0027]
In this embodiment, the factors that define the communication conditions are the modulation method, modulation rate, bit coding, and communication rate, and a numerical example for illustrative purposes is shown in FIG. In FIG. 3, for convenience, each of these communication condition names is A, B, C, D,.
[0028]
In this embodiment, the communication condition is defined by a combination of four factors: modulation scheme, modulation rate, bit coding, and communication rate. As an alternative to this, one of these four factors, or a combination of at least two of these four factors may be used. Alternatively, factors other than these four may be further incorporated.
[0029]
In the present invention, an error rate measured at the time of data communication is used as a criterion for selecting a communication condition optimum for data communication at the current stage from among a plurality of communication conditions. This is because, as described above, the data communication characteristics of the contactless IC card system are particularly susceptible to the installation environment or usage environment, and this influence is reflected in the error rate.
[0030]
Usually, the reader / writer transmits and receives data to and from the IC card at predetermined intervals (for example, every several hundred millimeters). The error rate means, for example, the ratio of errors in the transmission and reception of data. For example, if there are 5 errors while sampling data transmission and
[0031]
FIG. 3 illustrates the initial value of the error rate under each communication condition held in the initial
[0032]
Although the initial
[0033]
Further, FIG. 3 illustrates error rates under each communication condition stored in the
[0034]
The
[0035]
The specific operation of the reader / writer according to the embodiment of the present invention will be described below.
[0036]
The reader / writer according to the present embodiment selects a communication condition with the lowest error rate at that time from among a plurality of communication conditions, and performs data communication with the IC card using the selected communication condition.
[0037]
Note that when the reader / writer starts operation, the initial value of the error rate under each communication condition held in the initial
[0038]
In step S101 in FIG. 2, the reader / writer performs data communication with the IC card using the communication condition with the lowest error rate at that time.
[0039]
In step S102, the error rate under the currently used communication conditions is measured.
[0040]
Next, in step S103, it is determined whether or not the error rate measured in step S102 is greater than the error rate under the communication conditions already stored in the memory. If it is determined in step S103 that the error rate measured in step S102 is larger, the process proceeds to step S104. If it is determined that the error rate is smaller or the same, the process proceeds to step S106.
[0041]
In the present embodiment, if the error rate measured in step S102 is “6”, for example, it is higher than the error rate “3” of the communication condition C stored in the memory, so the process proceeds to step S104.
[0042]
In steps S104 and S106, the error rate measured in step S102 is newly stored in the
[0043]
In this embodiment, in step S104, the error rate corresponding to the communication condition C on the memory is rewritten from “3” to “6”.
[0044]
In step S105, the communication condition used for data communication is changed to the communication condition having the minimum corresponding error rate among a plurality of communication conditions stored in the memory, instead of the communication condition currently used. .
[0045]
In this embodiment, the error rate under the communication condition A is “5”, and the error rate is the minimum compared to any other communication condition, so the communication condition C is changed to the communication condition A.
[0046]
Then, the process returns to step S101 again, and data communication with the IC card is started.
[0047]
When the processing loop described above is repeatedly executed, the error rate under each communication condition stored in the
[0048]
As already described, the error rate measurement cycle coincides with the cycle of data communication between the reader / writer and the IC card. Therefore, the cycle of updating the memory and changing the communication condition has at least an error rate measurement cycle, that is, a cycle of data communication between the reader / writer and the IC card (for example, every several hundred millimeters).
[0049]
You may further provide the reset means 17 for returning the recorded content of the memory kept updated to an initial state. The reset means 17 replaces the correspondence currently stored in the memory with the correspondence between the plurality of communication conditions held in the initial
[0050]
By repeatedly executing the processing loop described above, the reader / writer automatically selects the communication condition that minimizes the error rate, that is, the communication condition most likely to be suitable for the reader / writer installation environment or usage environment. Since it can be selected, data communication can always be performed with the IC card under optimum communication conditions.
[0051]
In the above-described embodiment, a single protocol reader / writer is shown. However, as a modification thereof, the present invention can be applied to a multi-protocol reader / writer. FIG. 4 is a conceptual diagram of a reader / writer according to a modification of the embodiment of the present invention.
[0052]
In this modification, the multi-protocol-compatible reader /
[0053]
When an IC card 2 operating with a certain protocol enters the data communication area of the reader /
[0054]
【The invention's effect】
As described above, according to the present invention, in a reader / writer that performs data communication with a portable recording medium using any one of a plurality of communication conditions, a plurality of communication conditions and corresponding to these The relationship with the error rate is recorded in the memory, and the error rate under the current communication condition is used as a criterion for changing the communication condition used for data communication and rewriting the content recorded in the memory. The optimum communication condition, that is, the communication condition that provides the minimum error rate can be automatically selected to perform data communication with the portable recording medium.
[0055]
In the conventional example, the installation location or usage environment of the reader / writer must be sufficiently assumed and the communication conditions must be selected in the evaluation test at the manufacturing stage. However, according to the present invention, only the reader / writer is installed. Since the optimum communication conditions are automatically selected, the burden of the evaluation test at the manufacturing stage can be reduced.
[0056]
In addition, since the optimum communication condition is always automatically selected according to the environment around the reader / writer, the data communication characteristics will not be deteriorated even if the surrounding environment changes after installation.
[0057]
Further, since the communication conditions are not fixed as in the conventional example, there is no restriction on the installation environment or usage environment of the reader / writer, and the availability of the reader / writer is increased.
[0058]
In addition, according to the present invention, each of the above effects can be fully enjoyed even with a multi-protocol compatible reader / writer.
[0059]
As portable recording media such as IC cards and IC tags become more widespread in the future, the system structure, installation environment, and usage environment will be diversified. A reader / writer capable of data communication with a portable recording medium under communication conditions can be provided.
[Brief description of the drawings]
FIG. 1 is a system block diagram of a reader / writer according to the present invention.
FIG. 2 is a flowchart showing an operation flow of the reader / writer according to the embodiment of the present invention.
FIG. 3 is a diagram illustrating a part of a correspondence relationship between communication conditions and error rates under the communication conditions according to the embodiment of the present invention.
FIG. 4 is a conceptual diagram of a reader / writer according to a modification of the embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF
Claims (8)
前記複数の通信条件と各該通信条件の下でのエラーレートとの対応関係を記憶するメモリと、
現在利用している通信条件の下でのエラーレートを計測する計測手段と、
該計測手段で計測したエラーレートが、前記メモリに既に記憶されている当該通信条件の下でのエラーレートよりも大きいか否かを判定する判定手段と、
該判定手段において、前記計測手段で計測したエラーレートの方が大きいと判定された場合、前記計測手段で計測したエラーレートを、前記メモリに既に記憶されている当該通信条件の下でのエラーレートに代えて前記メモリに新たに記憶させる更新手段と、
前記判定手段において、前記計測手段で計測したエラーレートの方が大きいと判定された場合、データ通信に利用する通信条件を、前記現在利用している通信条件に代えて、前記メモリに記憶されている前記複数の通信条件のうちエラーレートが最小である通信条件に変更する変更手段と、
を備えることを特徴とするリーダライタ。A reader / writer that performs data communication with a portable recording medium using any of a plurality of communication conditions,
A memory for storing a correspondence relationship between the plurality of communication conditions and an error rate under each of the communication conditions;
A measuring means for measuring the error rate under the communication conditions currently used;
Determining means for determining whether or not the error rate measured by the measuring means is greater than the error rate under the communication conditions already stored in the memory;
When the determination unit determines that the error rate measured by the measurement unit is larger, the error rate measured by the measurement unit is converted into an error rate under the communication condition already stored in the memory. Update means for newly storing in the memory instead of,
When the determination unit determines that the error rate measured by the measurement unit is larger, the communication condition used for data communication is stored in the memory instead of the currently used communication condition. Changing means for changing to a communication condition having the lowest error rate among the plurality of communication conditions;
A reader / writer characterized by comprising:
前記複数の通信条件と各該通信条件の下でのエラーレートとの対応関係をメモリに記憶する記憶ステップと、
現在利用している通信条件の下でのエラーレートを計測する計測ステップと、該計測ステップで計測したエラーレートが、前記メモリに既に記憶されている当該通信条件の下でのエラーレートよりも大きいか否かを判定する判定ステップと、
該判定ステップにおいて、前記計測ステップで計測したエラーレートの方が大きいと判定された場合、前記計測ステップで計測したエラーレートを、前記メモリに既に記憶されている当該通信条件の下でのエラーレートに代えて前記メモリに新たに記憶させる更新ステップと、
前記判定ステップにおいて、前記計測ステップで計測したエラーレートの方が大きいと判定された場合、データ通信に利用する通信条件を、前記現在利用している通信条件に代えて、前記メモリに記憶されている前記複数の通信条件のうちエラーレートが最小である通信条件に変更する変更ステップと、
を備えることを特徴とするリーダライタの制御方法。A method for controlling a reader / writer that performs data communication with a portable recording medium using any one of a plurality of communication conditions,
A storage step of storing, in a memory, a correspondence relationship between the plurality of communication conditions and an error rate under each of the communication conditions;
A measurement step for measuring the error rate under the currently used communication conditions, and the error rate measured in the measurement step is greater than the error rate under the communication conditions already stored in the memory A determination step for determining whether or not,
In the determination step, when it is determined that the error rate measured in the measurement step is larger, the error rate measured in the measurement step is determined as the error rate under the communication condition already stored in the memory. An update step for newly storing in the memory instead of,
In the determination step, when it is determined that the error rate measured in the measurement step is larger, the communication condition used for data communication is stored in the memory instead of the communication condition currently used. A change step for changing to a communication condition having a minimum error rate among the plurality of communication conditions;
A reader / writer control method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003008369A JP4141261B2 (en) | 2003-01-16 | 2003-01-16 | Reader / writer and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003008369A JP4141261B2 (en) | 2003-01-16 | 2003-01-16 | Reader / writer and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004220418A JP2004220418A (en) | 2004-08-05 |
JP4141261B2 true JP4141261B2 (en) | 2008-08-27 |
Family
ID=32898188
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003008369A Expired - Fee Related JP4141261B2 (en) | 2003-01-16 | 2003-01-16 | Reader / writer and control method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4141261B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008092139A (en) * | 2006-09-29 | 2008-04-17 | Sony Corp | System and apparatus for wireless communication |
JP5550497B2 (en) | 2010-09-02 | 2014-07-16 | 理想科学工業株式会社 | Communication control method |
-
2003
- 2003-01-16 JP JP2003008369A patent/JP4141261B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004220418A (en) | 2004-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101520917B (en) | Information communication system, device and method | |
CN100476868C (en) | Rf-tag reading system and rf-tag reader/writer control system, and interference avoidance method thereof | |
US8799574B2 (en) | Method and devices for installing and retrieving linked MIFARE applications | |
CN102087715B (en) | Information processing device, information processing method and program | |
US9128829B2 (en) | Mobile communication device and method for swapping MIFARE applications | |
KR20100029092A (en) | Method for processing application commands from physical channels using a portable electronic device and corresponding device and system | |
US20110256832A1 (en) | Apparatus and method for controlling smart card comprised of multi sensor | |
CN113361293A (en) | Card swiping method, card controller, electronic device and storage medium | |
CN101853351A (en) | Automatically the method and apparatus of the selection application that can realize by equipment | |
US20100240318A1 (en) | Mobile electronic device and control method of mobile electronic device | |
JP4141261B2 (en) | Reader / writer and control method thereof | |
KR101057671B1 (en) | Update system and method of card terminal using smart card | |
JP2005309481A (en) | Reader/writer, support device, reader/writer support method and reader/writer support system | |
US9600695B2 (en) | Apparatus and method for providing data transmission/reception in a terminal using near field communication | |
US20030136829A1 (en) | IC card terminal | |
US20030150913A1 (en) | IC card terminal | |
JP2005182128A (en) | Portable information storage medium and its program | |
JP7452748B1 (en) | Electronic information storage medium, IC chip, IC card, value recording method, and program | |
JP2004185419A (en) | Portable electronic medium, issuing system of portable electronic medium, processing method, and issuing method | |
KR101485157B1 (en) | Radio Frequency identification tag comprising an input unit | |
KR100726490B1 (en) | System for Reducing Points(or Mileages), IC Card, Mobile Devices and Terminal for Function of Reducing Points(or Mileages) and Recording Medium | |
JP4790308B2 (en) | Information processing system, information processing apparatus, information processing method, and computer program | |
JP4349130B2 (en) | Data communication apparatus and memory management method for data communication apparatus | |
JP2006268525A (en) | Portable electronic device, and apparatus, system and method for processing the same | |
JP5218978B2 (en) | Installation information registration system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20051031 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080327 |
|
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: 20080513 |
|
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: 20080610 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110620 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |