JP2002236885A - Ic card reader/writer and data transmission method therefor - Google Patents

Ic card reader/writer and data transmission method therefor

Info

Publication number
JP2002236885A
JP2002236885A JP2001034301A JP2001034301A JP2002236885A JP 2002236885 A JP2002236885 A JP 2002236885A JP 2001034301 A JP2001034301 A JP 2001034301A JP 2001034301 A JP2001034301 A JP 2001034301A JP 2002236885 A JP2002236885 A JP 2002236885A
Authority
JP
Japan
Prior art keywords
command
transmission protocol
card reader
writer
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001034301A
Other languages
Japanese (ja)
Inventor
Naoki Iwasaki
直樹 岩崎
Akishi Ato
晃士 阿藤
Hirofumi Takeuchi
浩文 竹内
Kazuyuki Kubota
和之 窪田
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.)
Shinko Electric Industries Co Ltd
Original Assignee
Shinko Electric Industries Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shinko Electric Industries Co Ltd filed Critical Shinko Electric Industries Co Ltd
Priority to JP2001034301A priority Critical patent/JP2002236885A/en
Publication of JP2002236885A publication Critical patent/JP2002236885A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an IC card reader/writer and a data transmission method therefor capable of coping with an RW command based on different transmission protocols transmitted from a host computer. SOLUTION: The IC card reader/writer is connected to the host computer 3, and operates on the basis of the RW command received from the host computer 3, and has a receiving means 11 for receiving the RW command based on the first transmission protcol or the second transmission protcol different from the first transmission protcol from the host computer 3, a determining means 12 for determining on which of the first transmission protcol or the second transmission protcol the RW command received by the receiving means is based, and a first converting means 13 for converting the RW command so as to be based on the first transmission protcol when the determining means 12 determines that the RW command is based on the second transmission protcol.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ICカードに対し
情報の読出しもしくは書込みを行うICカードリーダラ
イタおよびそのデータ伝送方法に関し、特に、ホストコ
ンピュータから送信される異なる伝送プロトコルに基づ
くRWコマンドを受信するICカードリーダライタおよ
びそのデータ伝送方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an IC card reader / writer for reading or writing information from / to an IC card and a data transmission method thereof, and more particularly, to receiving an RW command based on different transmission protocols transmitted from a host computer. And a data transmission method thereof.

【0002】[0002]

【従来の技術】ICカードは、ICメモリを内蔵した名
刺程度の大きさのカード型記憶媒体であり、例えばクレ
ジットカードや定期券等への適用が期待されている。I
Cカードの中にはCPUを更に内蔵したものもある。I
Cカードに記憶された情報の読出しおよびICカードへ
の情報の書込みは、ICカードリーダライタを介して行
われる。ICカードリーダライタは、その上位装置であ
るホストコンピュータに接続されており、各種メイン処
理はこのホストコンピュータで実行される。
2. Description of the Related Art An IC card is a card-type storage medium having a size of about a business card having a built-in IC memory, and is expected to be applied to, for example, a credit card and a commuter pass. I
Some C cards have a built-in CPU. I
Reading of information stored in the C card and writing of information to the IC card are performed through an IC card reader / writer. The IC card reader / writer is connected to a host computer, which is a host device of the IC card reader / writer, and various main processes are executed by the host computer.

【0003】ICカードに対する情報の読出しおよび書
込みは、ICカード内のコイルとICカードリーダライ
タの情報送受信部との間の電磁誘導現象を利用してい
る。ICカードリーダライタは、ICカードリーダライ
タ本体内に設けられたICカード挿入口にICカードを
挿入し、ICカードとの間で情報を送受信する接触型I
Cカードリーダライタと、ICカードリーダライタに設
けられたアンテナを介して情報を送受信する非接触型I
Cカードリーダライタとに大別される。
[0003] Reading and writing of information from and to an IC card utilizes an electromagnetic induction phenomenon between a coil in the IC card and an information transmitting / receiving section of an IC card reader / writer. An IC card reader / writer is a contact type IC that inserts an IC card into an IC card insertion slot provided in an IC card reader / writer body and transmits / receives information to / from the IC card.
Non-contact type I that transmits and receives information via an antenna provided on a C card reader / writer and an IC card reader / writer
It is roughly divided into C card reader / writer.

【0004】図5は、ICカードシステムの概略図であ
る。説明を簡明にするために、この図においては、IC
カードリーダライタ1は接触型および非接触型のICカ
ード2の両方に対応するものとする。ICカード2は、
ICカードリーダライタ1のICカード挿入口4に挿入
されるかもしくはアンテナ5付近にかざされることによ
って、活性化され受け入れられる。ICカードリーダラ
イタ1は、活性化されたICカード2内のICチップに
記憶されている各種情報を読み取ると、読み取った情報
をICカードリーダライタ1に対する上位装置として接
続されたホストコンピュータ3へ送信する。そしてホス
トコンピュータ3において各種処理が実行される。各種
処理後のホストコンピュータ3からの情報は、同じくI
Cカードリーダライタ1によってICカード2に書き込
まれる。
FIG. 5 is a schematic diagram of an IC card system. For simplicity of explanation, in this figure, IC
The card reader / writer 1 is compatible with both contact type and non-contact type IC cards 2. IC card 2
It is activated and accepted by being inserted into the IC card insertion slot 4 of the IC card reader / writer 1 or being held over the vicinity of the antenna 5. When reading various information stored in the IC chip in the activated IC card 2, the IC card reader / writer 1 transmits the read information to the host computer 3 connected as a host device for the IC card reader / writer 1. I do. Then, various processes are executed in the host computer 3. The information from the host computer 3 after various processes is
The data is written to the IC card 2 by the C card reader / writer 1.

【0005】このようなICカードリーダライタが送受
信するコマンドには、受け入れたICカードへのコマン
ド(以下「ICコマンド」という。)と、当該ICカー
ドリーダライタに上位機種として接続されたホストコン
ピュータからのコマンド(以下「RWコマンド」とい
う。)とがある。ICカードリーダライタとICカード
との間で通信を行うための伝送プロトコルとしては、例
えば、PC/SC(Personal Compute
r/Smart Card)ワーキンググループによる
規約である、ISO−IPC7816のT=1(半二重
調歩同期ブロック伝送プロトコル)あるいはT=0(調
歩式半二重キャラクタ伝送プロトコル)等が一般的に用
いられている。日本国内では、JICSAP(Japa
n IC Card System Applicat
ion Council)が規定する伝送プロトコルT
=1が広く用いられている。
[0005] Commands transmitted and received by such an IC card reader / writer include a command to an accepted IC card (hereinafter referred to as an "IC command") and a command from a host computer connected to the IC card reader / writer as an upper model. (Hereinafter referred to as “RW command”). As a transmission protocol for performing communication between the IC card reader / writer and the IC card, for example, PC / SC (Personal Computer)
r = 1 (half-duplex start-stop synchronous block transmission protocol) or T = 0 (start-stop half-duplex character transmission protocol) of ISO-IPC7816, which is a rule of the r / Smart Card working group, is generally used. ing. In Japan, JICSAP (Japan
n IC Card System Applicat
ion Protocol)
= 1 is widely used.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、ICカ
ードリーダライタとホストコンピュータとの間で通信を
行うための伝送プロトコルに関しては現在までのところ
規約はない。それゆえ、ICカードリーダライタとホス
トコンピュータとの間の伝送プロトコルは多種にわたっ
ている。
However, there is no protocol for a transmission protocol for performing communication between the IC card reader / writer and the host computer so far. Therefore, there are various transmission protocols between the IC card reader / writer and the host computer.

【0007】このような状況の下、ホストコンピュータ
における対ICカードリーダライタ用インタフェース
は、使用するRWコマンドの伝送プロトコルに左右され
てしまい、システムを構築する上での制約となってい
る。本出願人は、ICカードリーダライタとICカード
との間におけるRWコマンドとして、JICSAPの規
定するコマンド形式に準拠した簡易的なRWコマンド
(以下「独自RWコマンド」という。)を提案してお
り、ホストコンピュータにおける対ICカードリーダラ
イタ用インタフェースの構築を容易なものにしている。
[0007] Under such circumstances, the interface for the IC card reader / writer in the host computer is affected by the transmission protocol of the RW command to be used, which is a constraint in constructing the system. The present applicant has proposed a simple RW command (hereinafter, referred to as “unique RW command”) conforming to the command format defined by JICSAP as an RW command between the IC card reader / writer and the IC card. This facilitates the construction of an interface for an IC card reader / writer in the host computer.

【0008】しかし、ICカードリーダライタの汎用性
を更に高めることを目的として、独自RWコマンド以外
に伝送プロトコルT=1に基づくRWコマンドに対して
も処理可能にしようとした場合においては、そもそもプ
ロトコル形式が異なるので、ICカードリーダライタ内
のコマンド処理を実行するロジック回路をRWコマンド
毎に個別に用意する必要があり、ICカードリーダライ
タ内のファームウェアの利用効率が悪くなるという問題
があった。
However, in order to further increase the versatility of the IC card reader / writer, if it is intended to be able to process RW commands based on the transmission protocol T = 1 in addition to the original RW commands, the protocol will be used in the first place. Since the format is different, it is necessary to separately prepare a logic circuit for executing command processing in the IC card reader / writer for each RW command, and there is a problem that the use efficiency of the firmware in the IC card reader / writer deteriorates.

【0009】従って本発明の目的は、上記問題に鑑み、
上位装置として接続されたホストコンピュータとの間の
通信において、受信した異なる伝送プロトコルに基づく
RWコマンドに対応して動作可能なICカードリーダラ
イタおよびそのデータ伝送方法を提供することにある。
Accordingly, an object of the present invention is to solve the above problems,
An object of the present invention is to provide an IC card reader / writer operable in response to a received RW command based on a different transmission protocol in communication with a host computer connected as a host device, and a data transmission method thereof.

【0010】[0010]

【課題を解決するための手段】上記目的を実現するため
に、本発明においては、ホストコンピュータに接続さ
れ、ホストコンピュータから受信したRWコマンドに基
づき動作し、ICカードとの間でデータの送受信を行う
ICカードリーダライタは、第1の伝送プロトコルもし
くは第1の伝送プロトコルとは異なる第2の伝送プロト
コルに基づくRWコマンドをホストコンピュータから受
信する受信手段と、受信手段が受信したRWコマンドは
第1の伝送プロトコルもしくは第2の伝送プロトコルの
どちらに基づくかを判定する判定手段と、判定手段によ
りRWコマンドは第2の伝送プロトコルに基づくと判定
された場合、当該RWコマンドを第1の伝送プロトコル
に基づくように変換する第1の変換手段と、を備える。
According to the present invention, in order to achieve the above object, the present invention is connected to a host computer, operates based on an RW command received from the host computer, and transmits and receives data to and from an IC card. The receiving IC card reader / writer performs a receiving unit that receives an RW command based on the first transmission protocol or a second transmission protocol different from the first transmission protocol from a host computer, and the RW command received by the receiving unit is a first transmission protocol. Determining means for determining whether the RW command is based on the second transmission protocol or the second transmission protocol. If the determination means determines that the RW command is based on the second transmission protocol, the RW command is determined as the first transmission protocol. First conversion means for performing conversion based on

【0011】具体的に言えば、本発明においては、IC
カードリーダライタは、第1の識別子をヘッダである先
頭フィールド内の第1の所定バイトに有する第1の伝送
プロトコル、または、先頭フィールドを有さず、かつ第
1の伝送プロトコルの場合では情報フィールド内の第2
の所定バイトに存在すべき第2の識別子を第1の伝送プ
ロトコルの場合における第1の所定バイトに相当する位
置に有する第2の伝送プロトコル、に基づくRWコマン
ドを受信する受信手段と、受信手段が受信したRWコマ
ンドに対して、第1の所定バイトに存在する識別子を判
定する判定手段と、判定手段により第2の識別子が存在
すると判定された場合、先頭フィールドを当該RWコマ
ンドに付加する付加手段と、を備える。
Specifically, in the present invention, the IC
The card reader / writer has a first transmission protocol having a first identifier in a first predetermined byte in a first field which is a header, or an information field having no first field and in the case of the first transmission protocol. Second in
Receiving means for receiving an RW command based on a second transmission protocol having a second identifier to be present in the predetermined byte at a position corresponding to the first predetermined byte in the case of the first transmission protocol; Determining the identifier present in the first predetermined byte with respect to the received RW command, and adding the first field to the RW command when the determining unit determines that the second identifier exists. Means.

【0012】また、本発明においては、ICカードリー
ダライタのデータ伝送方法は、第1の伝送プロトコルも
しくは第1の伝送プロトコルとは異なる第2の伝送プロ
トコルに基づくRWコマンドをホストコンピュータから
受信する受信ステップと、受信ステップが受信したRW
コマンドは第1の伝送プロトコルもしくは第2の伝送プ
ロトコルのどちらに基づくかを判定する判定ステップ
と、判定ステップによりRWコマンドは第2の伝送プロ
トコルに基づくと判定された場合、当該RWコマンドを
第1の伝送プロトコルに基づくように変換する第1の変
換ステップと、を備える。
In the present invention, the data transmission method of the IC card reader / writer is a method for receiving from a host computer an RW command based on a first transmission protocol or a second transmission protocol different from the first transmission protocol. Step and RW received by the receiving step
A determination step of determining whether the command is based on the first transmission protocol or the second transmission protocol; and if the determination step determines that the RW command is based on the second transmission protocol, the RW command is converted to the first transmission protocol. A first conversion step of performing conversion based on the transmission protocol.

【0013】本発明によれば、第1のプロトコルに基づ
くRWコマンドおよび第2の伝送プロトコルに基づくR
WコマンドのどちらのコマンドをICカードリーダライ
タが受信しても、ICカードリーダライタ内のコマンド
処理を実行するロジック回路をRWコマンド毎に個別に
用意することなく対応可能である。
According to the present invention, an RW command based on a first protocol and an R command based on a second transmission protocol are provided.
Whichever of the W commands is received by the IC card reader / writer can be handled without separately preparing a logic circuit for executing command processing in the IC card reader / writer for each RW command.

【0014】[0014]

【発明の実施の形態】図1は本発明の実施例によるIC
カードリーダライタの機能ブロック図である。本発明に
よるICカードリーダライタ1は、第1の伝送プロトコ
ルもしくは第1の伝送プロトコルとは異なる第2の伝送
プロトコルに基づくRWコマンドをホストコンピュータ
から受信する受信手段11と、受信手段11が受信した
RWコマンドは第1の伝送プロトコルもしくは第2の伝
送プロトコルのどちらに基づくかを判定する判定手段1
2と、判定手段12によりRWコマンドは第2の伝送プ
ロトコルに基づくと判定された場合、当該RWコマンド
を第1の伝送プロトコルに基づくように変換する第1の
変換手段13と、第1の伝送プロトコルに基づくRWコ
マンドの情報フィールド内の指示バイトに示された指示
に従ってコマンド処理を行い、RWコマンドに対応する
レスポンスを組み立てるコマンド処理手段14と、判定
手段12によりRWコマンドは第2の伝送プロトコルに
基づくと判定された場合、コマンド処理手段14により
組み立てられたレスポンスを第2の伝送プロトコルに基
づくように変換する第2の変換手段15と、第1の伝送
プロトコルもしくは第2の伝送プロトコルに基づくレス
ポンスをホストコンピュータへ送信する送信手段16
と、を備えてなる。
FIG. 1 shows an IC according to an embodiment of the present invention.
It is a functional block diagram of a card reader / writer. The IC card reader / writer 1 according to the present invention includes: a receiving unit 11 for receiving an RW command based on a first transmission protocol or a second transmission protocol different from the first transmission protocol from a host computer; Determining means 1 for determining whether the RW command is based on the first transmission protocol or the second transmission protocol
2, when the determination unit 12 determines that the RW command is based on the second transmission protocol, the first conversion unit 13 converts the RW command so as to be based on the first transmission protocol; The command processing unit 14 performs command processing according to the instruction indicated in the instruction byte in the information field of the RW command based on the protocol, and assembles a response corresponding to the RW command. If it is determined that the response is based on the second transmission protocol, the second conversion unit 15 converts the response assembled by the command processing unit 14 so as to be based on the second transmission protocol, and a response based on the first transmission protocol or the second transmission protocol. Transmitting means 16 for transmitting the message to the host computer
And comprising.

【0015】上述の各手段は、ICカードリーダライタ
1内のCPUを含むファームウェア形式で実現される。
なお、具体的なデータ伝送方法については後述する。本
発明の実施例においては、上述の第1の伝送プロトコル
として、好ましくは半二重調歩同期ブロック伝送プロト
コル(T=1)を用いる。なお、その他の伝送プロトコ
ルを用いてもよく、例えば調歩式半二重キャラクタ伝送
プロトコル(T=0)を用いてもよい。
Each of the above means is realized in a firmware format including a CPU in the IC card reader / writer 1.
A specific data transmission method will be described later. In the embodiment of the present invention, a half-duplex asynchronous block transmission protocol (T = 1) is preferably used as the first transmission protocol. Note that another transmission protocol may be used, for example, an asynchronous half-duplex character transmission protocol (T = 0).

【0016】また本実施例においては、上述の第2の伝
送プロトコルに基づくRWコマンドとして、既に説明し
たような、JICSAPの規定するコマンド形式に準拠
させた独自RWコマンドを用いる。ここで、各RWコマ
ンドのコマンドフォーマットと、RWコマンドに対応す
るレスポンスのレスポンスフォーマットとについて説明
する。
In this embodiment, a unique RW command conforming to the command format defined by JICSAP is used as the RW command based on the above-mentioned second transmission protocol. Here, a command format of each RW command and a response format of a response corresponding to the RW command will be described.

【0017】図2はRWコマンドのコマンドフォーマッ
トを示す図であり、図3はRWコマンドに対応するレス
ポンスのレスポンスフォーマットを示す図である。図2
(a)は伝送プロトコルT=1に基づくRWコマンドの
コマンドフォーマットを示し、図3(a)は、伝送プロ
トコルT=1に基づくレスポンスのレスポンスフォーマ
ットを示す。
FIG. 2 is a diagram showing a command format of the RW command, and FIG. 3 is a diagram showing a response format of a response corresponding to the RW command. FIG.
FIG. 3A shows a command format of an RW command based on the transmission protocol T = 1, and FIG. 3A shows a response format of a response based on the transmission protocol T = 1.

【0018】一般に伝送プロトコルT=1に基づくRW
コマンドおよびレスポンスは、先頭フィールドと、情報
フィールドと、最終フィールドとから構成される。先頭
フィールドは、伝送プロトコルT=1に固有のヘッダで
ある。情報フィールドには、当該RWコマンドあるいは
当該レスポンスに関する情報が主として含まれる。本実
施例においては、上述の第1の所定バイトとして、RW
コマンドおよびレスポンスの先頭フィールドにおけるN
AD(ロードアドレス)を対応させる。伝送プロトコル
T=1を用いたICカードシステムでは、NADには、
RWコマンドもしくはレスポンスの送信先もしくは受信
元のアドレスが示される。
Generally, RW based on transmission protocol T = 1
Commands and responses are composed of a first field, an information field, and a last field. The first field is a header specific to the transmission protocol T = 1. The information field mainly includes information on the RW command or the response. In this embodiment, RW is used as the first predetermined byte.
N in the first field of the command and response
AD (load address) is made to correspond. In an IC card system using the transmission protocol T = 1, NAD includes:
The transmission destination or reception source address of the RW command or response is indicated.

【0019】また、本実施例においては、上述の第2の
所定バイトとして、RWコマンドの情報フィールドにお
けるCLA(クラス)を対応させる。このCLAは、I
Cカードリーダライタ内の処理においては特段の意味は
持たず、従ってある程度任意に定義可能である。RWコ
マンドの情報フィールドにおけるINS(インストラク
ション)は、当該コマンドのいわゆる指示バイトであ
り、各種コマンド処理の実行を指示する。コマンド処理
の内容としては、例えば、ICカードのファイルクロー
ズ指令や、リセット指令等がある。
In the present embodiment, the CLA (class) in the information field of the RW command is associated with the second predetermined byte. This CLA is I
In the processing in the C card reader / writer, it has no special meaning, and can be arbitrarily defined to some extent. INS (instruction) in the information field of the RW command is a so-called instruction byte of the command, and instructs execution of various command processes. The contents of the command processing include, for example, an IC card file close command and a reset command.

【0020】伝送プロトコルT=1のコマンドおよびレ
スポンスのフォーマットの例としては、例えばICカー
ドへのコマンドであるICコマンドの場合は、NAD=
02かつCLA=00である。また、ICカードへのレ
スポンスの場合は、NAD=20である。また、例えば
ICカードリーダライタへのコマンドであるRWコマン
ドの場合は、NAD=77である。また、ICカードリ
ーダライタへのレスポンスの場合は、NAD=77であ
る。
As an example of the format of the command and response of the transmission protocol T = 1, for example, in the case of an IC command which is a command to an IC card, NAD =
02 and CLA = 00. In the case of a response to an IC card, NAD = 20. For example, in the case of a RW command which is a command to an IC card reader / writer, NAD = 77. In the case of a response to the IC card reader / writer, NAD = 77.

【0021】図2(b)は独自RWコマンドのコマンド
フォーマットを示し、図3(b)は、独自RWコマンド
に対応するレスポンスのレスポンスフォーマットを示
す。図2(b)に示すように、独自RWコマンドは、J
ICSAPの規定するコマンド形式に準拠しているが、
ホストコンピュータにおける対ICカードリーダライタ
用インタフェースの構築を容易にするために、伝送プロ
トコルT=1に基づくRWコマンドの場合のような先頭
フィールドを有してはおらず、いわば伝送プロトコルT
=1に基づくRWコマンドを簡略化したようなプロトコ
ル形式である。つまり、独自RWコマンドは、ICカー
ドリーダライタがホストコンピュータからのみ受信する
ものとして取り決められているので、伝送プロトコルT
=1の場合のようなアドレスを指示するヘッダを有する
必要がなく、従って先頭フィールドを有する必要がな
い。
FIG. 2B shows a command format of a unique RW command, and FIG. 3B shows a response format of a response corresponding to the unique RW command. As shown in FIG. 2B, the unique RW command is J
It conforms to the command format specified by ICSAP,
In order to facilitate the construction of the interface for the IC card reader / writer in the host computer, it does not have a head field as in the case of the RW command based on the transmission protocol T = 1, so to speak, the transmission protocol T
This is a protocol format in which the RW command based on = 1 is simplified. That is, since the unique RW command is determined to be received only from the host computer by the IC card reader / writer, the transmission protocol T
It is not necessary to have a header indicating an address as in the case of = 1, and thus it is not necessary to have a head field.

【0022】更に、独自RWコマンドは、上述したよう
に、伝送プロトコルT=1の場合においては情報フィー
ルド内の第2の所定バイトに存在すべき第2の識別子
を、伝送プロトコルT=1の場合における第1の所定バ
イトに相当する位置に有している。本実施例では、第2
の識別子として「D7」を定義したが、ISO(国際標
準化機構)による規定で許容される範囲内であればその
他のものであってもよい。
Further, as described above, the unique RW command specifies the second identifier to be present in the second predetermined byte in the information field when the transmission protocol T = 1, and the unique identifier when the transmission protocol T = 1. At the position corresponding to the first predetermined byte. In the present embodiment, the second
Although "D7" is defined as an identifier of the "?", Any other identifier may be used as long as it is within a range permitted by the provisions of the International Organization for Standardization (ISO).

【0023】このように、独自RWコマンドは、伝送プ
ロトコルT=1の場合においては情報フィールド内に存
在すべきCLA=D7を、伝送プロトコルT=1の場合
における先頭バイトであるNADに相当する位置に有し
ている。また、独自RWコマンドの情報フィールドにお
けるINS(インストラクション)は、伝送プロトコル
T=1の場合と同様に、各種コマンド処理の実行を指示
する指示バイトである。このことはJICSAPの規定
するコマンド形式に準拠している。
As described above, the unique RW command sets the CLA = D7 to be present in the information field in the case of the transmission protocol T = 1, and the position corresponding to the first byte NAD in the case of the transmission protocol T = 1. Have. The INS (instruction) in the information field of the unique RW command is an instruction byte for instructing execution of various command processes, as in the case of the transmission protocol T = 1. This conforms to the command format specified by JICSAP.

【0024】なお、図3(b)に示すように、独自RW
コマンドに対応するレスポンスも、伝送プロトコルT=
1に基づくレスポンスの場合のような先頭フィールドは
有してはいない。以上、図2および3を参照した説明に
より、受信したRWコマンドのNADおよびCLAをチ
ェックすれば、伝送プロトコルT=1に基づくRWコマ
ンドであるか、あるいは独自RWコマンドであるかを判
定することができることがわかる。
As shown in FIG. 3B, the unique RW
The response corresponding to the command is also the transmission protocol T =
It does not have a head field as in the case of the response based on 1. As described above with reference to FIGS. 2 and 3, by checking the NAD and CLA of the received RW command, it is possible to determine whether the received RW command is an RW command based on the transmission protocol T = 1 or an original RW command. We can see that we can do it.

【0025】次に、本発明の実施例によるICカードリ
ーダライタのデータ伝送処理に関する動作について説明
する。図4は本発明の実施例によるICカードリーダラ
イタのデータ伝送処理を示すフローチャートである。ま
ず、ステップS101において、ホストコンピュータか
らコマンドを受信する。
Next, the operation related to the data transmission processing of the IC card reader / writer according to the embodiment of the present invention will be described. FIG. 4 is a flowchart showing a data transmission process of the IC card reader / writer according to the embodiment of the present invention. First, in step S101, a command is received from the host computer.

【0026】次に、ステップS102において、受信し
たコマンドの先頭バイトをチェックする。NAD=02
の場合は、受信したコマンドはICコマンドであるので
ステップS201へ進む。NAD=77の場合は、受信
したコマンドは伝送プロトコルT=1に基づくRWコマ
ンドであるのでステップS104へ進む。NAD=D7
の場合は、受信したコマンドは独自RWコマンドである
のでステップS103へ進む。
Next, in step S102, the first byte of the received command is checked. NAD = 02
In the case of, since the received command is an IC command, the process proceeds to step S201. If NAD = 77, the received command is an RW command based on the transmission protocol T = 1, and the process proceeds to step S104. NAD = D7
In the case of, since the received command is an original RW command, the process proceeds to step S103.

【0027】ステップS201では、当該ICコマンド
をICカードへ送信する。ステップS103では、プロ
トコル形式を変換するために、伝送プロトコルT=1に
おける先頭フィールドであるヘッダ(このとき例えばN
AD=77)を、当該独自RWコマンドに付加する。こ
れにより独自RWコマンドは、伝送プロトコルT=1に
準拠するコマンドに変換されたことになり、従って、伝
送プロトコルT=1に基づくRWコマンドと同等に処理
することができる。
In step S201, the IC command is transmitted to the IC card. In step S103, in order to convert the protocol format, a header (for example, N
AD = 77) is added to the unique RW command. As a result, the unique RW command is converted into a command conforming to the transmission protocol T = 1, and can be processed in the same manner as an RW command based on the transmission protocol T = 1.

【0028】ステップS102およびS103により、
後述するステップS104〜ステップS106は、伝送
プロトコルT=1に基づくロジック回路のみで実行可能
となる。すなわち、伝送プロトコルT=1に基づくRW
コマンドおよび独自RWコマンドの両方について対応可
能にしようとした場合であっても、本発明によれば、I
Cカードリーダライタ内のコマンド処理を実行するロジ
ック回路をRWコマンド毎に個別に用意する必要がない
ので、ICカードリーダライタ内のファームウェアの利
用効率が向上する。
By steps S102 and S103,
Steps S104 to S106 to be described later can be executed only by a logic circuit based on the transmission protocol T = 1. That is, RW based on the transmission protocol T = 1
According to the present invention, even if an attempt is made to be able to respond to both
Since it is not necessary to separately prepare a logic circuit for executing the command processing in the C card reader / writer for each RW command, the use efficiency of the firmware in the IC card reader / writer is improved.

【0029】ステップS104では、伝送プロトコルT
=1に基づくRWコマンドの情報フィールド内の指示バ
イトであるINSをチェックする。ステップS105−
1〜S105−nでは、INSで指示されたコマンド処
理が実行される。ここでnは整数である。n種類のコマ
ンド処理のうち、RWコマンドの情報フィールド内のI
NSで指示されたコマンド処理が実行される。コマンド
処理の内容としては、例えば、ICカードのファイルク
ローズ指令や、リセット指令等がある。
In step S104, the transmission protocol T
INS, which is an indication byte in the information field of the RW command based on = 1. Step S105-
In 1 to S105-n, the command processing designated by INS is executed. Here, n is an integer. Of the n types of command processing, I in the information field of the RW command
The command processing designated by NS is executed. The contents of the command processing include, for example, an IC card file close command and a reset command.

【0030】これらコマンド処理を実行するロジック回
路は伝送プロトコルT=1のみに基づくものであるが、
ICカードリーダライタが受信したコマンドが独自RW
コマンドであっても、本発明によれば、既にステップS
103でプロトコル形式を変換して伝送プロトコルT=
1に基づくRWコマンドとしているので対応可能であ
る。
The logic circuit for executing these command processes is based only on the transmission protocol T = 1.
The command received by the IC card reader / writer is unique RW
Even if it is a command, according to the present invention, step S
At 103, the protocol format is converted and the transmission protocol T =
Since the RW command is based on No. 1, it is possible to respond.

【0031】コマンド処理が完了すると、RWコマンド
に対応するレスポンスが組み立てられる。組み立てられ
たレスポンスは、図3(a)に示したような、伝送プロ
トコルT=1における先頭フィールドであるヘッダを有
したものとなる。ステップS106では、ステップS1
02において既に実行されている受信コマンドの先頭バ
イトのチェック結果から、当該レスポンスが、伝送プロ
トコルT=1に基づくRWコマンドに対応するレスポン
スなのか、あるいは独自RWコマンドに対応するレスポ
ンスなのかを再度チェックする。組み立てられたレスポ
ンスが、伝送プロトコルT=1に基づくRWコマンドに
対応したものであった場合はステップS108へ進み、
独自RWコマンドに対応したものであった場合はステッ
プS107へ進む。
When the command processing is completed, a response corresponding to the RW command is assembled. The assembled response has a header, which is the first field in the transmission protocol T = 1, as shown in FIG. In step S106, step S1
02, it is checked again whether the response is a response corresponding to the RW command based on the transmission protocol T = 1 or a response corresponding to the original RW command from the result of checking the first byte of the received command already executed. I do. If the assembled response corresponds to the RW command based on the transmission protocol T = 1, the process proceeds to step S108,
If it corresponds to the unique RW command, the process proceeds to step S107.

【0032】ステップS107では、組み立てられたレ
スポンスから伝送プロトコルT=1における先頭フィー
ルドであるヘッダを削除する。これにより、ステップS
101で受信したコマンドが独自RWコマンドであった
場合でも、当該独自RWコマンドに対応したレスポンス
が生成されたことになる。ステップS108では、伝送
プロトコルT=1に基づくRWコマンドに対応するレス
ポンス、もしくは独自RWコマンドに対応するレスポン
スをホストコンピュータへ送信する。
In step S107, the header which is the first field in the transmission protocol T = 1 is deleted from the assembled response. Thereby, step S
Even if the command received at 101 is a unique RW command, a response corresponding to the unique RW command has been generated. In step S108, a response corresponding to the RW command based on the transmission protocol T = 1 or a response corresponding to the unique RW command is transmitted to the host computer.

【0033】以上説明したように、本実施例によれば、
ICカードリーダライタとホストコンピュータとの間の
通信において、上述したJICSAPの規定するコマン
ド形式に準拠させた独自RWコマンドをICカードリー
ダライタが受信した場合は、プロトコル形式を変換する
ために伝送プロトコルT=1のヘッダを当該独自RWコ
マンドに付加するので、伝送プロトコルT=1に基づく
RWコマンドと独自RWコマンドとをICカードリーダ
ライタ内の同一のロジック回路で処理することができ、
ICカードリーダライタ内のファームウェアの利用効率
が向上する。
As described above, according to this embodiment,
In the communication between the IC card reader / writer and the host computer, when the IC card reader / writer receives an original RW command conforming to the command format specified by JICSAP, the transmission protocol T is used to convert the protocol format. Since the header of = 1 is added to the unique RW command, the RW command based on the transmission protocol T = 1 and the unique RW command can be processed by the same logic circuit in the IC card reader / writer.
The use efficiency of the firmware in the IC card reader / writer is improved.

【0034】本明細書では、伝送プロトコルとしてT=
1を用いたが、その他の伝送プロトコルに対しても本発
明を適用することができ、例えば伝送プロトコルT=0
でも実現することができる。なお、本発明は、ICカー
ドが接触型もしくは非接触型のいかんに関わらず実現す
ることができる。
In this specification, T =
1, the present invention can be applied to other transmission protocols. For example, the transmission protocol T = 0
But it can be achieved. The present invention can be realized regardless of whether the IC card is a contact type or a non-contact type.

【0035】[0035]

【発明の効果】以上説明したように、本発明によれば、
ICカードリーダライタとその上位装置であるホストコ
ンピュータとの間の通信において、伝送プロトコルT=
1に基づくRWコマンドおよびJICSAPの規定する
コマンド形式に準拠させた独自RWコマンドのどちらの
コマンドをICカードリーダライタが受信しても、必要
に応じて予めプロトコル形式を変換するので、ICカー
ドリーダライタ内のコマンド処理を実行するロジック回
路をRWコマンド毎に個別に用意する必要がない。すな
わち、本実施例では1つの伝送プロトコル(例えばT=
1)に対応するロジック回路のみでよいので、ICカー
ドリーダライタ内のファームウェアの利用効率が向上
し、構築するICカードシステムの汎用性が向上する。
As described above, according to the present invention,
In communication between an IC card reader / writer and a host computer as its host device, a transmission protocol T =
If the IC card reader / writer receives either the RW command based on the command No. 1 or the unique RW command conforming to the command format specified by JICSAP, the protocol format is converted in advance as necessary. It is not necessary to separately prepare a logic circuit for executing the command processing in each of the RW commands. That is, in this embodiment, one transmission protocol (for example, T =
Since only the logic circuit corresponding to 1) is required, the use efficiency of the firmware in the IC card reader / writer is improved, and the versatility of the IC card system to be constructed is improved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施例によるICカードリーダライタ
の機能ブロック図である。
FIG. 1 is a functional block diagram of an IC card reader / writer according to an embodiment of the present invention.

【図2】RWコマンドのコマンドフォーマットを示す図
である。
FIG. 2 is a diagram showing a command format of an RW command.

【図3】RWコマンドに対応するレスポンスのレスポン
スフォーマットを示す図である。
FIG. 3 is a diagram showing a response format of a response corresponding to an RW command.

【図4】本発明の実施例によるICカードリーダライタ
のデータ伝送処理を示すフローチャートである。
FIG. 4 is a flowchart showing a data transmission process of the IC card reader / writer according to the embodiment of the present invention.

【図5】ICカードシステムの概略図である。FIG. 5 is a schematic diagram of an IC card system.

【符号の説明】[Explanation of symbols]

1…ICカードリーダライタ 2…ICカード 3…ホストコンピュータ 4…ICカード挿入口 5…アンテナ 11…受信手段 12…判定手段 13…第1の変換手段 14…コマンド処理手段 15…第2の変換手段 16…送信手段 DESCRIPTION OF SYMBOLS 1 ... IC card reader / writer 2 ... IC card 3 ... Host computer 4 ... IC card insertion slot 5 ... Antenna 11 ... Receiving means 12 ... Determining means 13 ... First converting means 14 ... Command processing means 15 ... Second converting means 16 Transmission means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 竹内 浩文 長野県長野市大字栗田字舎利田711番地 新光電気工業株式会社内 (72)発明者 窪田 和之 長野県長野市大字栗田字舎利田711番地 新光電気工業株式会社内 Fターム(参考) 5B058 CA23 KA02 KA04 KA08 YA20 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Hirofumi Takeuchi 711, Kurita-sha, Toda, Nagano-shi, Nagano Prefecture Inside Shinko Electric Industries Co., Ltd. Shinko Electric Industries, Ltd. F term (reference) 5B058 CA23 KA02 KA04 KA08 YA20

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータに接続され、前記ホ
ストコンピュータから受信したRWコマンドに基づき動
作し、ICカードとの間でデータの送受信を行うICカ
ードリーダライタであって、 ヘッダである先頭フィールド内の第1の所定バイトに第
1の識別子を有する第1の伝送プロトコル、または、前
記先頭フィールドを有さず、前記第1の伝送プロトコル
の場合における前記第1の所定バイトに相当する位置に
第2の識別子を有する第2の伝送プロトコル、に基づく
RWコマンドを受信する受信手段と、 該受信手段が受信した前記RWコマンドに対して、前記
第1の所定バイトに存在する識別子を判定する判定手段
と、 該判定手段により前記第2の識別子が存在すると判定さ
れた場合、当該RWコマンドに前記先頭フィールドを付
加する付加手段と、を備えることを特徴とするICカー
ドリーダライタ。
1. An IC card reader / writer which is connected to a host computer, operates based on an RW command received from the host computer, and transmits / receives data to / from an IC card. A first transmission protocol having a first identifier in a first predetermined byte, or a second transmission protocol which does not have the head field and corresponds to the first predetermined byte in the case of the first transmission protocol. Receiving means for receiving an RW command based on a second transmission protocol having an identifier of: a determining means for determining an identifier present in the first predetermined byte with respect to the RW command received by the receiving means; When the determination means determines that the second identifier exists, the head field is added to the RW command. An IC card reader / writer comprising:
【請求項2】 第1の伝送プロトコルに基づくRWコマ
ンドの情報フィールド内の指示バイトに示された指示に
従ってコマンド処理を行うコマンド処理手段であって、
ヘッダである先頭フィールド内の第1の所定バイトに第
1の識別子を有し、前記RWコマンドに対応するレスポ
ンスを組み立てる手段と、 判定手段により第2の識別子が存在すると判定された場
合、前記コマンド処理手段により組み立てられた前記レ
スポンスから前記先頭フィールドを削除する削除手段
と、を備える請求項1に記載のICカードリーダライ
タ。
2. Command processing means for performing command processing according to an instruction indicated in an instruction byte in an information field of an RW command based on a first transmission protocol,
Means for assembling a response corresponding to the RW command having a first identifier in a first predetermined byte in a head field which is a header; and when the determination means determines that a second identifier exists, the command 2. The IC card reader / writer according to claim 1, further comprising: a deletion unit configured to delete the head field from the response assembled by a processing unit.
【請求項3】 第1の伝送プロトコルもしくは第2の伝
送プロトコルに基づくレスポンスをホストコンピュータ
へ送信する送信手段を備える請求項2に記載のICカー
ドリーダライタ。
3. The IC card reader / writer according to claim 2, further comprising transmitting means for transmitting a response based on the first transmission protocol or the second transmission protocol to a host computer.
【請求項4】 ホストコンピュータに接続され、前記ホ
ストコンピュータから受信したRWコマンドに基づき動
作し、ICカードとの間でデータの送受信を行うICカ
ードリーダライタであって、 第1の伝送プロトコルもしくは該第1の伝送プロトコル
とは異なる第2の伝送プロトコルに基づくRWコマンド
を前記ホストコンピュータから受信する受信手段と、 該受信手段が受信したRWコマンドが、前記第1の伝送
プロトコルもしくは前記第2の伝送プロトコルのどちら
に基づくかを判定する判定手段と、 該判定手段により前記RWコマンドが前記第2の伝送プ
ロトコルに基づくと判定された場合、当該RWコマンド
を前記第1の伝送プロトコルに基づくように変換する第
1の変換手段と、を備えることを特徴とするICカード
リーダライタ。
4. An IC card reader / writer which is connected to a host computer, operates based on an RW command received from the host computer, and transmits / receives data to / from an IC card, comprising: a first transmission protocol or Receiving means for receiving, from the host computer, an RW command based on a second transmission protocol different from the first transmission protocol, wherein the RW command received by the receiving means is the first transmission protocol or the second transmission A determination means for determining which of the protocols is to be used, and when the determination means determines that the RW command is based on the second transmission protocol, the RW command is converted to be based on the first transmission protocol. IC card reader / writer, comprising: Ta.
【請求項5】 第1の伝送プロトコルに基づくRWコマ
ンドの情報フィールド内の指示バイトに示された指示に
従ってコマンド処理を行い、前記RWコマンドに対応す
るレスポンスを組み立てるコマンド処理手段と、 判定手段により前記RWコマンドが第2の伝送プロトコ
ルに基づくと判定された場合、前記コマンド処理手段に
より組み立てられた前記レスポンスを前記第2の伝送プ
ロトコルに基づくように変換する第2の変換手段と、を
備える請求項4に記載のICカードリーダライタ。
5. A command processing means for performing command processing in accordance with an instruction indicated in an instruction byte in an information field of an RW command based on a first transmission protocol, and assembling a response corresponding to the RW command; When the RW command is determined to be based on the second transmission protocol, a second conversion unit that converts the response assembled by the command processing unit so as to be based on the second transmission protocol is provided. 4. The IC card reader / writer according to 4.
【請求項6】 第1の伝送プロトコルもしくは第2の伝
送プロトコルに基づくレスポンスをホストコンピュータ
へ送信する送信手段を備える請求項5に記載のICカー
ドリーダライタ。
6. The IC card reader / writer according to claim 5, further comprising transmitting means for transmitting a response based on the first transmission protocol or the second transmission protocol to a host computer.
【請求項7】 第1の伝送プロトコルに基づくRWコマ
ンドは、ヘッダである先頭フィールド内の第1の所定バ
イトに第1の識別子を有し、 第2の伝送プロトコルに基づくRWコマンドは、前記先
頭フィールドを有さず、前記第1の伝送プロトコルの場
合における前記第1の所定バイトに相当する位置に第2
の識別子を有し、 判定手段は、受信した前記RWコマンドの前記第1の所
定バイトに第2の識別子が存在すると検知したときに、
当該RWコマンドは前記第2の伝送プロトコルに基づく
と判定する請求項4〜6のいずれか一項に記載のICカ
ードリーダライタ。
7. An RW command based on a first transmission protocol has a first identifier in a first predetermined byte in a head field which is a header, and the RW command based on a second transmission protocol includes No second field at the position corresponding to the first predetermined byte in the case of the first transmission protocol.
When the determination means detects that a second identifier exists in the first predetermined byte of the received RW command,
The IC card reader / writer according to any one of claims 4 to 6, wherein the RW command is determined to be based on the second transmission protocol.
【請求項8】 第1の変換手段は、判定手段によりRW
コマンドは第2の伝送プロトコルに基づくと判定された
場合、当該RWコマンドに前記先頭フィールドを付加す
る請求項7に記載のICカードリーダライタ。
8. The first conversion means, wherein the determination means performs RW
The IC card reader / writer according to claim 7, wherein when it is determined that the command is based on the second transmission protocol, the head field is added to the RW command.
【請求項9】 コマンド処理手段により組み立てられた
レスポンスは、ヘッダである先頭フィールド内の第1の
所定バイトに第1の識別子を有し、 第2の変換手段は、判定手段により前記レスポンスが第
2の伝送プロトコルに基づくと判定された場合、当該レ
スポンスから前記先頭フィールドを削除する請求項8に
記載のICカードリーダライタ。
9. The response assembled by the command processing means has a first identifier in a first predetermined byte in a head field which is a header, and the second conversion means determines that the response is the first 9. The IC card reader / writer according to claim 8, wherein when it is determined that the response is based on the second transmission protocol, the first field is deleted from the response.
【請求項10】 ホストコンピュータに接続され、前記
ホストコンピュータから受信したRWコマンドに基づき
動作し、ICカードとの間でデータの送受信を行うIC
カードリーダライタのデータ伝送方法であって、 ヘッダである先頭フィールド内の第1の所定バイトに第
1の識別子を有する第1の伝送プロトコル、または、前
記先頭フィールドを有さず、前記第1の伝送プロトコル
の場合における前記第1の所定バイトに相当する位置に
第2の識別子を有する第2の伝送プロトコル、に基づく
RWコマンドを受信する受信ステップと、 該受信ステップが受信した前記RWコマンドに対して、
前記第1の所定バイトに存在する識別子を判定する判定
ステップと、 該判定ステップにより前記第2の識別子が存在すると判
定された場合、当該RWコマンドに前記先頭フィールド
を付加する付加ステップと、を備えることを特徴とする
ICカードリーダライタのデータ伝送方法。
10. An IC which is connected to a host computer, operates based on an RW command received from the host computer, and transmits / receives data to / from an IC card.
A data transmission method for a card reader / writer, comprising: a first transmission protocol having a first identifier in a first predetermined byte in a first field which is a header, or the first transmission protocol having no first field. A receiving step of receiving an RW command based on a second transmission protocol having a second identifier at a position corresponding to the first predetermined byte in the case of a transmission protocol; hand,
A determining step of determining an identifier present in the first predetermined byte; and an adding step of adding the head field to the RW command when the determining step determines that the second identifier exists. A data transmission method for an IC card reader / writer.
【請求項11】 第1の伝送プロトコルに基づくRWコ
マンドの情報フィールド内の指示バイトに示された指示
に従ってコマンド処理を行うコマンド処理ステップであ
って、ヘッダである先頭フィールド内の第1の所定バイ
トに第1の識別子を有し、前記RWコマンドに対応する
レスポンスを組み立てるステップと、 受信した前記RWコマンドが第2の伝送プロトコルに基
づくと判定された場合、前記コマンド処理ステップによ
り組み立てられた前記レスポンスから前記先頭フィール
ドを削除する削除ステップと、を備える請求項10に記
載のICカードリーダライタのデータ伝送方法。
11. A command processing step for performing command processing according to an instruction indicated in an instruction byte in an information field of an RW command based on a first transmission protocol, wherein the first predetermined byte in a header first field Assembling a response corresponding to the RW command, and, if the received RW command is determined to be based on a second transmission protocol, the response assembled by the command processing step. 11. The data transmission method for an IC card reader / writer according to claim 10, further comprising: a deletion step of deleting the first field from the file.
【請求項12】 第1の伝送プロトコルもしくは第2の
伝送プロトコルに基づくレスポンスをホストコンピュー
タへ送信する送信ステップを備える請求項11に記載の
ICカードリーダライタのデータ伝送方法。
12. The data transmission method for an IC card reader / writer according to claim 11, further comprising a transmission step of transmitting a response based on the first transmission protocol or the second transmission protocol to a host computer.
【請求項13】 ホストコンピュータに接続され、前記
ホストコンピュータから受信したRWコマンドに基づき
動作し、ICカードとの間でデータの送受信を行うIC
カードリーダライタのデータ伝送方法であって、 第1の伝送プロトコルもしくは該第1の伝送プロトコル
とは異なる第2の伝送プロトコルに基づくRWコマンド
を前記ホストコンピュータから受信する受信ステップ
と、 該受信ステップが受信したRWコマンドが、前記第1の
伝送プロトコルもしくは前記第2の伝送プロトコルのど
ちらに基づくかを判定する判定ステップと、 該判定ステップにより前記RWコマンドが前記第2の伝
送プロトコルに基づくと判定された場合、当該RWコマ
ンドを前記第1の伝送プロトコルに基づくように変換す
る第1の変換ステップと、を備えることを特徴とするI
Cカードリーダライタのデータ伝送方法。
13. An IC that is connected to a host computer, operates based on an RW command received from the host computer, and transmits and receives data to and from an IC card.
A data transmission method for a card reader / writer, comprising: a receiving step of receiving an RW command based on a first transmission protocol or a second transmission protocol different from the first transmission protocol from the host computer; A determining step of determining whether the received RW command is based on the first transmission protocol or the second transmission protocol; and the determining step determines that the RW command is based on the second transmission protocol. A first conversion step of converting the RW command so as to be based on the first transmission protocol.
Data transmission method of C card reader / writer.
【請求項14】 第1の伝送プロトコルに基づくRWコ
マンドの情報フィールド内の指示バイトに示された指示
に従ってコマンド処理を行い、前記RWコマンドに対応
するレスポンスを組み立てるコマンド処理ステップと、 判定ステップにより前記RWコマンドが第2の伝送プロ
トコルに基づくと判定された場合、前記コマンド処理ス
テップにより組み立てられた前記レスポンスを前記第2
の伝送プロトコルに基づくように変換する第2の変換ス
テップと、を備える請求項13に記載のICカードリー
ダライタのデータ伝送方法。
14. A command processing step for performing command processing according to an instruction indicated in an instruction byte in an information field of an RW command based on a first transmission protocol, and assembling a response corresponding to the RW command, If it is determined that the RW command is based on the second transmission protocol, the response assembled by the command processing step is transmitted to the second transmission protocol.
14. The data transmission method for an IC card reader / writer according to claim 13, further comprising a second conversion step of performing conversion based on the transmission protocol.
【請求項15】 第1の伝送プロトコルもしくは第2の
伝送プロトコルに基づくレスポンスをホストコンピュー
タへ送信する送信ステップを備える請求項14に記載の
ICカードリーダライタのデータ伝送方法。
15. The data transmission method for an IC card reader / writer according to claim 14, further comprising a transmission step of transmitting a response based on the first transmission protocol or the second transmission protocol to a host computer.
【請求項16】 第1の伝送プロトコルに基づくRWコ
マンドは、ヘッダである先頭フィールド内の第1の所定
バイトに第1の識別子を有し、 第2の伝送プロトコルに基づくRWコマンドは、前記先
頭フィールドを有さず、前記第1の伝送プロトコルの場
合における前記第1の所定バイトに相当する位置に第2
の識別子を有し、 判定ステップは、受信した前記RWコマンドの前記第1
の所定バイトに第2の識別子が存在すると検知したとき
に、当該RWコマンドは前記第2の伝送プロトコルに基
づくと判定する請求項13〜15のいずれか一項に記載
のICカードリーダライタのデータ伝送方法。
16. The RW command based on the first transmission protocol has a first identifier in a first predetermined byte in a head field, which is a header, and the RW command based on the second transmission protocol has the first transmission byte. No second field at the position corresponding to the first predetermined byte in the case of the first transmission protocol.
And the determining step includes the first step of receiving the RW command.
The data of the IC card reader / writer according to any one of claims 13 to 15, wherein it is determined that the RW command is based on the second transmission protocol when detecting that a second identifier exists in a predetermined byte of the IC card reader / writer. Transmission method.
【請求項17】 第1の変換ステップは、判定ステップ
によりRWコマンドが第2の伝送プロトコルに基づくと
判定された場合、当該RWコマンドに前記先頭フィール
ドを付加する請求項16に記載のICカードリーダライ
タのデータ伝送方法。
17. The IC card reader according to claim 16, wherein in the first conversion step, when the determination step determines that the RW command is based on the second transmission protocol, the first field is added to the RW command. Writer data transmission method.
【請求項18】 コマンド処理ステップにより組み立て
られたレスポンスは、ヘッダである先頭フィールド内の
第1の所定バイトに第1の識別子を有し、 第2の変換ステップは、判定ステップにより前記レスポ
ンスが第2の伝送プロトコルに基づくと判定された場
合、当該レスポンスから前記先頭フィールドを削除する
請求項17に記載のICカードリーダライタのデータ伝
送方法。
18. The response assembled by the command processing step has a first identifier in a first predetermined byte in a head field as a header, and the second conversion step includes the step of determining whether the response is 18. The data transmission method for an IC card reader / writer according to claim 17, wherein when it is determined that the response is based on the transmission protocol of 2, the head field is deleted from the response.
JP2001034301A 2001-02-09 2001-02-09 Ic card reader/writer and data transmission method therefor Pending JP2002236885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001034301A JP2002236885A (en) 2001-02-09 2001-02-09 Ic card reader/writer and data transmission method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001034301A JP2002236885A (en) 2001-02-09 2001-02-09 Ic card reader/writer and data transmission method therefor

Publications (1)

Publication Number Publication Date
JP2002236885A true JP2002236885A (en) 2002-08-23

Family

ID=18897933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001034301A Pending JP2002236885A (en) 2001-02-09 2001-02-09 Ic card reader/writer and data transmission method therefor

Country Status (1)

Country Link
JP (1) JP2002236885A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008524742A (en) * 2004-12-20 2008-07-10 韓國電子通信研究院 RFID reader interface and event management device and method for multi-protocol based heterogeneous reader support
CN112667296A (en) * 2020-12-28 2021-04-16 深圳市德卡科技股份有限公司 Cross-platform IC card reader-writer operating system and operating method
CN113810157A (en) * 2021-09-13 2021-12-17 上海偕云信息技术有限公司 RS485 protocol-based access control data transmission processing method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008524742A (en) * 2004-12-20 2008-07-10 韓國電子通信研究院 RFID reader interface and event management device and method for multi-protocol based heterogeneous reader support
CN112667296A (en) * 2020-12-28 2021-04-16 深圳市德卡科技股份有限公司 Cross-platform IC card reader-writer operating system and operating method
CN113810157A (en) * 2021-09-13 2021-12-17 上海偕云信息技术有限公司 RS485 protocol-based access control data transmission processing method and system

Similar Documents

Publication Publication Date Title
US8424770B2 (en) Method and device for customizing a portable electronic entity
US20190179654A1 (en) Information Processing Device, Information Processing Method And Program
JP3480746B2 (en) Portable electronic devices
JP6516133B2 (en) Communication device and communication system
US20100251261A1 (en) Method and Device for Automatically Selecting an Application That Can Be Implemented by Said Device
WO2010118612A1 (en) Method for installing contactless payment application, smart card and mobile terminal
US20080114935A1 (en) Memory Card System and Method Transmitting Host Identification Information Thereof
CN102111487B (en) Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card
US20110197203A1 (en) Communication device, communication method and program
JP6241340B2 (en) Information processing apparatus, information processing method, and information processing program
JP2002236885A (en) Ic card reader/writer and data transmission method therefor
CN102255999B (en) Method for determining communication protocol between terminal and smart card and expansion card
US6811089B2 (en) Portable electronic medium issuing system and issuing method and portable electronic medium
JP2006252079A (en) Information recording medium, information communication system, information communication method, and information communication program
US20040003166A1 (en) Portable electronic medium issuing system and issuing method and portable electronic medium
CN101119561A (en) Method for communication between GSM mobile communication terminal and SIM card
JP4590201B2 (en) Data carrier and data carrier program
JP2004246623A (en) Small card adapter and host apparatus with small card adapter mounted therein
JP2009123144A (en) Ic card reader/writer
JP7468754B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RECEPTION BLOCK PROCESSING METHOD, AND PROGRAM
KR101455539B1 (en) Ic card and ic card control method
JP5092370B2 (en) Portable information recording medium and program thereof
JP7538484B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CARD, IC CHIP, LOGIC CHANNEL UTILIZATION METHOD, AND PROGRAM
JP7424536B1 (en) Electronic information storage medium, IC chip, IC card, communication parameter transmission method, and program
US20070194132A1 (en) Smart card adaptor