JP2945193B2 - IC card test method, and IC card and test apparatus suitable for implementing the method - Google Patents

IC card test method, and IC card and test apparatus suitable for implementing the method

Info

Publication number
JP2945193B2
JP2945193B2 JP3299720A JP29972091A JP2945193B2 JP 2945193 B2 JP2945193 B2 JP 2945193B2 JP 3299720 A JP3299720 A JP 3299720A JP 29972091 A JP29972091 A JP 29972091A JP 2945193 B2 JP2945193 B2 JP 2945193B2
Authority
JP
Japan
Prior art keywords
response
card
test
time
command
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 - Lifetime
Application number
JP3299720A
Other languages
Japanese (ja)
Other versions
JPH05108905A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP3299720A priority Critical patent/JP2945193B2/en
Publication of JPH05108905A publication Critical patent/JPH05108905A/en
Application granted granted Critical
Publication of JP2945193B2 publication Critical patent/JP2945193B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ICカードのテスト方
法に関し、特に複数のICカードを同時にテストするた
めのテスト方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test method for an IC card, and more particularly to a test method for simultaneously testing a plurality of IC cards.

【0002】[0002]

【従来の技術】近年、新しい情報記憶媒体として、IC
カードが注目を集めている。特に、CPUを内蔵したI
Cカードは、情報の記憶だけでなく演算処理を行う機能
を有するため、種々の用途に利用されつつある。一般
に、このようなCPU内蔵型のICカードは、CPUの
他、ROM、RAM、EEPROMといった記憶装置
と、リーダライタ装置との間で情報転送を行うためのI
/O装置が内蔵されている。
2. Description of the Related Art In recent years, as a new information storage medium, IC
Cards are getting attention. In particular, I with a built-in CPU
The C card has a function of performing not only storage of information but also arithmetic processing, and is therefore being used for various purposes. Generally, such an IC card with a built-in CPU includes an I / O card for transferring information between a reader / writer device and a storage device such as a ROM, a RAM, and an EEPROM in addition to the CPU.
An / O device is built in.

【0003】このような複雑な機能をもったICカード
を市場に供給する場合、出荷前に厳格なテストを行う必
要がある。すなわち、ICカードに入力信号として所定
のテストコマンドを与え、このテストコマンドの実行に
より得られるレスポンスを出力信号として取り出し、こ
のレスポンスが論理的に期待される結果と一致するか否
かをみることにより、そのICカードが正常に機能する
かどうかをテストするのである。大量生産されたICカ
ードを効率的にテストするため、たとえば、特開平2−
296165号公報には、複数のICカードを同時にテ
ストすることができるICカードのテスト装置が開示さ
れている。
[0003] When an IC card having such a complicated function is supplied to the market, it is necessary to perform a strict test before shipment. That is, a predetermined test command is given to the IC card as an input signal, a response obtained by executing the test command is taken out as an output signal, and it is determined whether or not this response logically matches the expected result. Test whether the IC card functions normally. To efficiently test mass-produced IC cards, for example, see
Japanese Patent Publication No. 296165 discloses an IC card test apparatus capable of simultaneously testing a plurality of IC cards.

【0004】[0004]

【発明が解決しようとする課題】複数のICカードに対
して同時にテストを行う場合の留意点は、テスト装置側
から複数のICカードに対して同時にテストコマンドを
与えた場合であっても、各ICカードからのレスポンス
は必ずしも同時にならないという点である。これは、I
Cカードが記憶装置としてEEPROMを有しているた
めである。EEPROMをテストするためには、ここに
何らかのデータを書き込む必要がある。ところが、EE
PROMへの書き込みに必要な時間は、各デバイスごと
に異なるため、EEPROMへの書き込み動作を指示す
るテストコマンドを複数のICカードに与えた場合、各
ICカードからのレスポンス返送はばらばらになる。
When performing a test on a plurality of IC cards at the same time, a point to keep in mind is that even when a test command is given to the plurality of IC cards at the same time from the test apparatus side, each test is performed. The response from the IC card is not always the same. This is
This is because the C card has an EEPROM as a storage device. To test the EEPROM, it is necessary to write some data here. However, EE
Since the time required for writing to the PROM differs for each device, when a test command for instructing the writing operation to the EEPROM is given to a plurality of IC cards, the response returns from the IC cards vary.

【0005】そこで、上述した特開平2−296165
号公報に開示されたテスト装置では、テスト対象となる
ICカードの数だけのバッファを用意しておき、各IC
カードから返送されてきたレスポンスをこのバッファに
一時蓄積しておき、後でこのバッファから各レスポンス
を読み出してテストを行うという方法を採っている。し
かしながら、テスト装置側に用意できるバッファの容量
には限度があり、テスト対象となるICカードの数が増
えれば増えるほど、1つのICカードに割り当てられる
バッファの容量を小さくせざるを得ない。このため、処
理が最も早いICカードにおける書き込み時間と、処理
が最も遅いICカードにおける書き込み時間と、の時間
差が大きい場合には、処理が最も早いICカードからの
レスポンスを蓄積するためのバッファがオーバーフロー
してもなお、処理が最も遅いICカードからのレスポン
スが返送されないという事態が生じることになる。この
ような事態が生じると、レスポンスを正しく認識するこ
とができなかったICカードについては、再度テストを
行わねばならない。
[0005] Therefore, the above-mentioned Japanese Patent Application Laid-Open No. 2-296165 has been proposed.
In the test apparatus disclosed in Japanese Patent Application Laid-Open Publication No. H10-264, buffers as many as the number of IC cards to be tested are prepared, and each IC card is prepared.
In this method, the response returned from the card is temporarily stored in this buffer, and each response is read out from this buffer and a test is performed later. However, there is a limit to the capacity of a buffer that can be prepared in the test apparatus, and as the number of IC cards to be tested increases, the buffer capacity assigned to one IC card must be reduced. For this reason, if the time difference between the writing time of the IC card with the fastest processing and the writing time of the IC card with the slowest processing is large, the buffer for storing the response from the IC card with the fastest processing overflows. Even so, a situation occurs in which a response from the IC card that is the slowest in processing is not returned. When such a situation occurs, the IC card for which the response could not be correctly recognized must be tested again.

【0006】そこで本発明は、複数のICカードについ
てのテストを確実に行うことのできるテスト方法を提供
することを目的とする。
Accordingly, an object of the present invention is to provide a test method capable of reliably performing a test on a plurality of IC cards.

【0007】[0007]

【課題を解決するための手段】本発明は、所定のテスト
コマンドを複数のICカードに送信し、これに応答して
各ICカードから返送されるレスポンスを受信し、この
レスポンスが期待どおりのものであるか否かを判断する
ことにより、各ICカードをテストするICカードのテ
スト方法において、各ICカードに、返送すべきレスポ
ンスを内部メモリに一時的に保持する機能と、所定の応
答要求コマンドが与えられたときに、内部メモリに保持
されているレスポンスを返送する機能と、を付加し、複
数のすべてのICカードについてレスポンスが準備でき
たと期待される時点で、各ICカードに前記応答要求コ
マンドを与え、各ICカードから返送されるレスポンス
を同時に受信するようにしたものである。
According to the present invention, a predetermined test command is transmitted to a plurality of IC cards, and a response returned from each IC card in response to the command is received. In the IC card test method for testing each IC card by determining whether or not the response is a function of temporarily holding a response to be returned to each IC card in an internal memory, a predetermined response request command Is provided, a function of returning a response held in the internal memory is added. When it is expected that responses have been prepared for all of the plurality of IC cards, the response request is sent to each IC card. A command is given, and a response returned from each IC card is received at the same time.

【0008】[0008]

【作 用】まず、テスト装置から複数のICカードに対
して、所定のテストコマンドが送信される。各ICカー
ドは、このテストコマンドに基づいて所定の処理(たと
えば、EEPROMへの書き込み処理)を行い、返送す
べきレスポンスを生成する。このレスポンスは、ICカ
ードの内部メモリ(たとえば、RAM)に一時的に保持
される。テストコマンドがICカードに送信されてから
所定の設定時間が経過すると、テスト装置から複数のI
Cカードに対して、今度は応答要求コマンドが送信され
る。この所定の設定時間を、複数のすべてのICカード
についてレスポンスの準備が完了するであろうと思われ
る時間に設定しておけば、応答要求コマンドが送信され
た時点で、すべてのICカードの内部メモリ内には、既
に返送すべきレスポンスが保持されていることになる。
各ICカードが、この応答要求コマンドに応じて、一時
的に保持されていたレスポンスをテスト装置側へ返送す
る処理を行えば、テスト装置は複数のICカードからの
レスポンスを同時に得ることができる。
[Operation] First, a predetermined test command is transmitted from a test apparatus to a plurality of IC cards. Each IC card performs a predetermined process (for example, a process of writing to an EEPROM) based on the test command, and generates a response to be returned. This response is temporarily stored in the internal memory (for example, RAM) of the IC card. When a predetermined set time has elapsed since the test command was transmitted to the IC card, a plurality of I
This time, a response request command is transmitted to the C card. If the predetermined set time is set to a time at which the preparation of the response is expected to be completed for all of the plurality of IC cards, the internal memory of all the IC cards is set when the response request command is transmitted. , The response to be returned is already held.
If each IC card performs a process of returning the temporarily held response to the test device in response to the response request command, the test device can simultaneously obtain responses from a plurality of IC cards.

【0009】[0009]

【実施例】以下、本発明を図示する実施例に基づいて説
明する。図1は、本発明の一実施例に係るICカードの
テスト方法を説明するためのブロック図である。このブ
ロック図には、このテスト方法に用いられるICカード
テスト装置100および複数のICカード1,2,3,
…が示されている。ICカードテスト装置100は、リ
ーダライタ部110と検査処理部120とによって構成
されている。リーダライタ部110は、複数のICカー
ド1,2,3に対してデータを送信する機能と、逆にデ
ータを受信する機能とを有する。検査処理部120は、
このテストの実体的な処理を行う部分であり、所定のテ
ストコマンドを発生させ、リーダライタ部110を介し
てこれを各ICカードに送信したり、各ICカードから
のレスポンスをリーダライタ部110を介して受信した
り、受信したレスポンスが論理的に期待されるデータに
なっているかどうかをテストしたりする機能を有する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the illustrated embodiments. FIG. 1 is a block diagram illustrating a method for testing an IC card according to an embodiment of the present invention. This block diagram includes an IC card test apparatus 100 used for this test method and a plurality of IC cards 1, 2, 3, 3.
…It is shown. The IC card test device 100 includes a reader / writer unit 110 and an inspection processing unit 120. The reader / writer unit 110 has a function of transmitting data to the plurality of IC cards 1, 2, 3, and a function of receiving data. The inspection processing unit 120
This is a part that performs a substantial process of the test, generates a predetermined test command, transmits it to each IC card via the reader / writer unit 110, and transmits a response from each IC card to the reader / writer unit 110. And a function of testing whether the received response is logically expected data or not.

【0010】ICカード1は、リーダライタ部110と
の間でデータ送受を行うI/O装置11と、CPU12
と、内部メモリとしてのROM13,RAM14,EE
PROM15と、を有する。CPU12は、ROM13
内のプログラムに基づいて種々の処理を実行する。IC
カード2,3,…も全く同様の構成である。
The IC card 1 includes an I / O device 11 for transmitting and receiving data to and from a reader / writer unit 110, a CPU 12
And ROM13, RAM14, EE as internal memory
A PROM 15. The CPU 12 has a ROM 13
Various processes are executed based on the programs in the program. IC
The cards 2, 3,... Have exactly the same configuration.

【0011】いま、ICカードテスト装置100によっ
て、各ICカードのEEPROMのテストを行う場合を
考える。もっとも、ICカードテスト装置100は、こ
の他、各ICカードのROM内のプログラムのテスト
や、RAMのテストなどを行う機能を有しているが、本
発明の特徴はEEPROMのテストにあるので、ここで
は、このEEPROMのテストについてのみ考えること
にする。まず、ICカードテスト装置100は、各IC
カードに対して所定のテストコマンドを送信する。たと
えば、ICカード1では、リーダライタ部110から送
信されたテストコマンドは、I/O装置11によって取
り込まれ、CPU12によって実行される。このテスト
コマンドは、EEPROM15への書き込み動作を指示
するコマンドである。CPU12は、EEPROM15
の特定のアドレスへの書き込み動作を完了したら、動作
完了を示す何らかのレスポンスを発生し、I/O装置1
1を介してリーダライタ部110へ、このレスポンスを
返送する。検査処理部120は、このレスポンスを所定
の論理データと比較し、正常か否かの判断を行う。
Now, consider the case where the IC card test apparatus 100 tests the EEPROM of each IC card. Of course, the IC card test apparatus 100 has a function of testing a program in the ROM of each IC card, a test of the RAM, and the like. However, the feature of the present invention lies in the test of the EEPROM. Here, only the test of the EEPROM will be considered. First, the IC card test apparatus 100
A predetermined test command is transmitted to the card. For example, in the IC card 1, a test command transmitted from the reader / writer unit 110 is fetched by the I / O device 11 and executed by the CPU 12. This test command is a command for instructing a write operation to the EEPROM 15. The CPU 12 has an EEPROM 15
Completes the write operation to the specific address of the I / O device 1
This response is sent back to the reader / writer unit 110 via the PC 1. The inspection processing unit 120 compares this response with predetermined logical data to determine whether the response is normal.

【0012】図2は、このようなテスト動作のタイムチ
ャートである。図2(a) はリーダライタ部110とIC
カード1との間の転送データを、図2(b) はリーダライ
タ部110とICカード2との間の転送データを、図2
(c) はリーダライタ部110とICカード3との間の転
送データを、それぞれ示している。いずれも水平線上方
にリーダライタ部110から送信されるデータを、水平
線下方にICカードから送信されるデータを、それぞれ
示している。いま、時刻t1において、リーダライタ部
110から各ICカードに対して同時にテストコマンド
Aが送信されたものとする。このテストコマンドAを受
けて、各ICカードはEEPROMへ所定の書き込み動
作を行い、書き込み動作が完了したら、これに対応する
レスポンスを発生し、リーダライタ部110へ返送す
る。ところが、前述したように、EEPROMへの書き
込み時間は、各ICカードによって異なるため、レスポ
ンスが返送される時間も各ICカードごとにばらばらに
なる。図2の例では、まず時刻t2においてICカード
3からレスポンスa3が返送され、続いて時刻t3にお
いてICカード1からレスポンスa1が返送され、最後
に時刻t4においてICカード2からレスポンスa2が
返送されている。このように、時間差をもって返送され
てきたレスポンスに対処するため、図1に示すICカー
ドテスト装置100には、バッファ121が用意されて
おり、各レスポンスは一旦、このバッファ121に蓄積
された後、期待されるべき論理値との比較テストが行わ
れる。続いて、時刻t5において、リーダライタ部11
0から各ICカードに対して同時にテストコマンドBが
送信され、これを受けて、各ICカードはEEPROM
へ所定の書き込み動作を行い、書き込み動作が完了した
ら、これに対応するレスポンスを発生し、リーダライタ
部110へ返送する。図2の例では、まず時刻t6にお
いてICカード3からレスポンスb3が返送され、続い
て時刻t7においてICカード1からレスポンスb1が
返送され、最後に時刻t8においてICカード2からレ
スポンスb2が返送されている。レスポンスb1〜b3
は、やはりバッファ121に蓄積された後、期待される
べき論理値との比較テストが行われる。
FIG. 2 is a time chart of such a test operation. FIG. 2A shows a reader / writer unit 110 and an IC.
FIG. 2B shows transfer data between the reader / writer unit 110 and the IC card 2, and FIG.
(c) shows transfer data between the reader / writer unit 110 and the IC card 3 respectively. In each case, data transmitted from the reader / writer unit 110 is shown above the horizontal line, and data transmitted from the IC card is shown below the horizontal line. Now, it is assumed that at time t1, the test command A is simultaneously transmitted from the reader / writer unit 110 to each IC card. Upon receiving the test command A, each IC card performs a predetermined write operation to the EEPROM, and upon completion of the write operation, generates a response corresponding to the write operation and returns it to the reader / writer unit 110. However, as described above, since the time for writing to the EEPROM differs depending on each IC card, the time for returning a response also varies for each IC card. In the example of FIG. 2, the response a3 is returned from the IC card 3 at time t2, the response a1 is returned from the IC card 1 at time t3, and the response a2 is returned from the IC card 2 at time t4. I have. As described above, in order to cope with the responses returned with a time lag, the IC card test apparatus 100 shown in FIG. 1 is provided with a buffer 121, and after each response is temporarily stored in the buffer 121, A comparison test with the expected logical value is performed. Subsequently, at time t5, the reader / writer 11
0, a test command B is transmitted to each IC card at the same time.
A predetermined write operation is performed, and when the write operation is completed, a response corresponding to this is generated and returned to the reader / writer unit 110. In the example of FIG. 2, the response b3 is returned from the IC card 3 at time t6, the response b1 is returned from the IC card 1 at time t7, and the response b2 is returned from the IC card 2 at time t8. I have. Responses b1 to b3
Is also stored in the buffer 121, and then a comparison test with a logical value to be expected is performed.

【0013】以上の動作は、前述した特開平2−296
165号公報に開示されたテスト方法である。ところ
が、この方法では、バッファ121の容量に制限がある
ため、オーバーフローする問題があることは、既に述べ
たとおりである。たとえば、図2の例において、時刻t
2と時刻t4との時間差があまり大きいと、レスポンス
a2が返送される時刻t4に至る前に、レスポンスa3
を蓄積するバッファがオーバーフローしてしまうことに
なる。この場合、レスポンスa1〜a3について正しい
テストを行うことができなくなる。本発明は、このよう
な事態が生じた場合でも、正しいテストを可能にするた
めの工夫を加えたものである。
The above operation is described in Japanese Patent Laid-Open No. 2-296 described above.
165 discloses a test method. However, as described above, this method has a problem of overflow because the capacity of the buffer 121 is limited. For example, in the example of FIG.
If the time difference between the time t2 and the time t4 is too large, the response a3 is returned before the time t4 when the response a2 is returned.
Buffer overflows. In this case, a correct test cannot be performed for the responses a1 to a3. The present invention has been devised to enable a correct test even when such a situation occurs.

【0014】本発明に係るテスト方法では、ICカード
に2つの新規な機能を付け加えておく必要がある。この
新規な機能は、ROM内のプログラムを修正することに
より付加される。第1の機能は、テストコマンドに応答
するレスポンスを返送する際に、このレスポンスをRA
Mに一時的に書き込む機能である。別言すれば、レスポ
ンスはリーダライタ部110に返送されると同時に、R
AMにも書き込まれることになる。したがって、RAM
には、このレスポンスを一時的に保持するための特別の
領域を確保しておく必要がある。たとえば、図2の例で
は、時刻t2において、ICカード3からリーダライタ
部110へレスポンスa3が返送されるが、このとき、
ICカード3内のRAM34にもレスポンスa3が書き
込まれて一時的に保持されることになる。同様に、時刻
t3では、レスポンスa1が返送されると同時にRAM
14に書き込まれ、時刻t4では、レスポンスa2が返
送されると同時にRAM24に書き込まれる。なお、R
AMへの保持は一時的なものであるので、次のテストコ
マンドBが送信されたときには、レスポンスa1〜a3
の一時保持は不要となる。したがって、たとえば時刻t
6においてレスポンスb3をRAMに一時保持する場
合、RAM上の同じアドレスにおいて、レスポンスa3
をレスポンスb3に書き替える処理を行えばよい。
In the test method according to the present invention, it is necessary to add two new functions to the IC card. This new function is added by modifying the program in the ROM. The first function is to send a response to the test command when returning a response to the test command.
This is a function for temporarily writing to M. In other words, the response is returned to the reader / writer unit 110 and the
It will also be written to AM. Therefore, RAM
It is necessary to secure a special area for temporarily holding this response. For example, in the example of FIG. 2, at time t2, a response a3 is returned from the IC card 3 to the reader / writer unit 110.
The response a3 is also written to the RAM 34 in the IC card 3 and is temporarily stored. Similarly, at time t3, the response a1 is returned and the RAM
At time t4, the response a2 is returned and simultaneously written to the RAM 24. Note that R
Since the holding in the AM is temporary, when the next test command B is transmitted, the responses a1 to a3
It is not necessary to temporarily hold. Therefore, for example, at time t
6, when the response b3 is temporarily stored in the RAM, the response a3 is stored at the same address in the RAM.
May be replaced with the response b3.

【0015】ICカードに付加される第2の機能は、リ
ーダライタ部110から応答要求コマンドXが与えられ
たときに、その時点でRAMに保持しているレスポンス
をリーダライタ部110へ返送する機能である。たとえ
ば、図3に示すタイムチャートにおいて、時刻t1〜t
4に至るまでは、図2に示すタイムチャートと同じ処理
が行われたものとする。ここで、時刻t5において、リ
ーダライタ部110から各ICカードに応答要求コマン
ドXを送信したとすると、時刻t6において、すべての
ICカードから同時にレスポンスa1〜a3が返送され
てくることになる。各ICカードは、その時点でRAM
に一時保持されているレスポンスを読み出し、これをそ
のままリーダライタ部110へ返送する処理を行うこと
になる。この場合、EEPROMへの書き込み動作は伴
わないので、レスポンス返送に必要な時間は、どのIC
カードでもほとんど同じであり、時刻t6において同時
にレスポンスの返送が得られるとみてよい。
A second function added to the IC card is a function of, when a response request command X is given from the reader / writer unit 110, returning a response held in the RAM at that time to the reader / writer unit 110. It is. For example, in the time chart shown in FIG.
Up to 4, it is assumed that the same processing as in the time chart shown in FIG. 2 has been performed. Here, assuming that the response request command X is transmitted from the reader / writer unit 110 to each IC card at the time t5, the responses a1 to a3 are simultaneously returned from all the IC cards at the time t6. Each IC card has RAM at that time
Is read out, and the response is returned to the reader / writer unit 110 as it is. In this case, since no write operation to the EEPROM is involved, the time required for returning the response depends on which IC
It is almost the same for the card, and it can be considered that a response is returned at the same time at time t6.

【0016】本発明に係るテスト方法を実施するために
は、ICカードテスト装置100側にも新規な機能を付
加しておく必要がある。すなわち、所定の時期を見計ら
って各ICカードに対して応答要求コマンドXを送信す
る機能である。応答要求コマンドXを送信する時期につ
いては、いくつかの実施例が考えられる。最も簡単な実
施例としては、時刻t1にテストコマンドを送信した
後、すべてのICカードからのレスポンス返送が完了す
るであろうと期待できる所定の時刻t5において、応答
要求コマンドXを送信するようにすればよい。すなわ
ち、ICカードテスト装置100は、テストコマンドを
送信してから所定の設定時間が経過したら、自動的に応
答要求コマンドXを送信すればよいことになる。図3に
示すように、時刻t5において応答要求コマンドXを送
信すれば、時刻t6において、レスポンスa1〜a3が
同時に得られるので、このレスポンスに対して所定のテ
スト処理を行えばよい。なお、時刻t2,t3,t4に
おいても、個別にレスポンスが得られているが、これら
については無視するようにすればよい。したがって、こ
の実施例の場合には、ICカードテスト装置100側に
バッファ121を用意しておく必要はない。時刻t6に
おいて得られたレスポンスについてのテスト処理が完了
したら、時刻t7においてテストコマンドBを送信し、
それから所定の設定時間が経過した時点で、同様に応答
要求コマンドXを送信すればよい。
In order to execute the test method according to the present invention, it is necessary to add a new function to the IC card test apparatus 100 as well. That is, the function is to transmit a response request command X to each IC card at a predetermined time. Regarding the timing of transmitting the response request command X, some embodiments are conceivable. In the simplest embodiment, after transmitting a test command at time t1, a response request command X is transmitted at a predetermined time t5 at which responses from all IC cards can be expected to be completed. I just need. That is, the IC card test apparatus 100 only needs to automatically transmit the response request command X when a predetermined set time has elapsed after transmitting the test command. As shown in FIG. 3, if the response request command X is transmitted at time t5, responses a1 to a3 are obtained simultaneously at time t6, so that a predetermined test process may be performed on this response. Although responses are individually obtained at times t2, t3, and t4, these may be ignored. Therefore, in the case of this embodiment, it is not necessary to prepare the buffer 121 on the IC card test apparatus 100 side. When the test processing on the response obtained at time t6 is completed, a test command B is transmitted at time t7,
Then, when a predetermined time has elapsed, the response request command X may be transmitted in the same manner.

【0017】上述の実施例では、同じレスポンスが2度
ずつ返送されることになる。すなわち、各ICカードご
とに個別に返送される1回目のレスポンスは無視され、
全ICカードから同時に返送される2回目のレスポンス
だけがテストに用いられる。このように、同じレスポン
スを2度ずつ返送する方法には無駄がある。このような
無駄を省く1つの方法は、各ICカードによる個別のレ
スポンス返送処理を中止することである。たとえば、図
3に示す例では、時刻t2,t3,t4におけるレスポ
ンス返送処理を中止すればよい。ICカードは、レスポ
ンスを生成したら、これをRAMに一時保持する処理だ
けを行うようにし、レスポンスを返送する処理は、応答
要求コマンドXが与えられたときにだけ行うようにす
る。こうすれば、レスポンスは常に全ICカード同時に
1回だけ返送されるようになり、無駄は省かれる。
In the above-described embodiment, the same response is returned twice each. In other words, the first response returned individually for each IC card is ignored,
Only the second response returned from all IC cards at the same time is used for the test. Thus, the method of returning the same response twice is useless. One way to eliminate such waste is to stop individual response return processing by each IC card. For example, in the example shown in FIG. 3, the response return processing at times t2, t3, and t4 may be stopped. After generating the response, the IC card performs only the process of temporarily storing the response in the RAM, and performs the process of returning the response only when the response request command X is given. In this way, the response is always returned only once at the same time for all the IC cards, thereby eliminating waste.

【0018】無駄を省く別な方法としては、応答要求コ
マンドXの送信を必要なときだけ行うようにする方法で
ある。バッファ121を用いる従来の方法の問題は、バ
ッファがオーバーフローしたときに生じる。したがっ
て、バッファがオーバーフローしない限りは、何ら問題
はない。そこで、通常は、従来の方法により、時間差を
もって返送されてくるレスポンスをバッファに蓄積して
からテストを行うことにする。すなわち、通常は、図2
のタイムチャートに示される方法によって、テストが行
われてゆく。ただし、各レスポンスは、返送時にRAM
へも一時保存するようにしておく。このRAMに一時保
存されたレスポンスは、通常は、利用されることはな
い。いざ、バッファのオーバーフローという事態が発生
したときには、本発明特有の方法を実施するのである。
すなわち、バッファがオーバーフローしたら、適当な時
点でICカードテスト装置100から応答要求コマンド
Xを送信し、RAMに一時保存されていたレスポンスを
返送させるのである。このような方法によれば、無駄の
ない効率的なテストが可能になる。
Another method for reducing waste is to transmit the response request command X only when necessary. The problem of the conventional method using the buffer 121 occurs when the buffer overflows. Therefore, there is no problem as long as the buffer does not overflow. Therefore, the test is usually performed after accumulating the responses returned with a time difference in the buffer by the conventional method. That is, usually, FIG.
The test is performed according to the method shown in the time chart of FIG. However, each response is stored in RAM when returned.
To save temporarily. The response temporarily stored in the RAM is not normally used. In the event of a buffer overflow, a method unique to the present invention is implemented.
That is, when the buffer overflows, the response request command X is transmitted from the IC card test apparatus 100 at an appropriate point in time, and the response temporarily stored in the RAM is returned. According to such a method, a lean and efficient test can be performed.

【0019】[0019]

【発明の効果】以上のとおり本発明によるICカードの
テスト方法によれば、ICカードから返送すべきレスポ
ンスを内部メモリに一時的に保存しておくようにしたた
め、複数のICカードについてのテストを確実に行うこ
とができるようになる。
As described above, according to the method for testing an IC card according to the present invention, the response to be returned from the IC card is temporarily stored in the internal memory. It can be performed reliably.

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

【図1】本発明の一実施例に係るICカードのテスト方
法を説明するためのブロック図である。
FIG. 1 is a block diagram illustrating a method for testing an IC card according to an embodiment of the present invention.

【図2】従来のテスト方法によるテスト動作を示すタイ
ムチャートである。
FIG. 2 is a time chart showing a test operation according to a conventional test method.

【図3】本発明に係るテスト方法によるテスト動作を示
すタイムチャートである。
FIG. 3 is a time chart showing a test operation by a test method according to the present invention.

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

1,2,3…ICカード 11,21,31…I/O装置 12,22,32…CPU 13,23,33…ROM 14,24,34…RAM 15,25,35…EEPROM 100…ICカードテスト装置 110…リーダライタ部 120…検査処理部 121…バッファ A,B…テストコマンド a1〜a3,b1〜b3…レスポンス X…応答要求コマンド 1, 2, 3 ... IC card 11, 21, 31 ... I / O device 12, 22, 32 ... CPU 13, 23, 33 ... ROM 14, 24, 34 ... RAM 15, 25, 35 ... EEPROM 100 ... IC card Test device 110: Reader / writer unit 120: Inspection processing unit 121: Buffer A, B: Test command a1 to a3, b1 to b3: Response X: Response request command

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−90984(JP,A) 特開 平3−90985(JP,A) 特開 平3−90983(JP,A) 特開 平2−296165(JP,A) 特開 平2−93390(JP,A) 特開 平2−59937(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06K 19/07 G06K 11/22 330 G06K 17/00 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-3-90984 (JP, A) JP-A-3-90985 (JP, A) JP-A-3-90983 (JP, A) JP-A-2- 296165 (JP, A) JP-A-2-93390 (JP, A) JP-A-2-59937 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G06K 19/07 G06K 11 / 22 330 G06K 17/00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定のテストコマンドを複数のICカー
ドに送信し、これに応答して各ICカードから返送され
るレスポンスを受信し、このレスポンスが期待どおりの
ものであるか否かを判断することにより、各ICカード
をテストするICカードのテスト方法であって、 各ICカードに、返送すべきレスポンスを内部メモリに
一時的に保持する機能と、所定の応答要求コマンドが与
えられたときに、前記内部メモリに保持されているレス
ポンスを返送する機能と、を付加し、 複数のすべてのICカードについてレスポンスが準備で
きたと期待される時点で、各ICカードに前記応答要求
コマンドを与え、各ICカードから返送されるレスポン
スを同時に受信するようにしたことを特徴とするICカ
ードのテスト方法。
1. A predetermined test command is transmitted to a plurality of IC cards, a response returned from each IC card is received in response to the command, and it is determined whether or not the response is as expected. Thus, there is provided an IC card test method for testing each IC card, wherein each IC card has a function of temporarily holding a response to be returned in an internal memory, and a method of receiving a predetermined response request command. And a function of returning a response held in the internal memory, and when the response is expected to be ready for all of the plurality of IC cards, the response request command is given to each IC card. A method for testing an IC card, wherein a response returned from the IC card is simultaneously received.
【請求項2】 請求項1に記載のテスト方法を実施しう
るICカードであって、 テスト装置から所定のテストコマンドが与えられたと
き、これに応答して返送すべきレスポンスを生成する機
能と、 生成した前記レスポンスを内部メモリに一時的に保持す
る機能と、 テスト装置から所定の応答要求コマンドが与えられたと
きに、前記内部メモリに保持されているレスポンスを返
送する機能と、 を有することを特徴とするICカード。
2. An IC card capable of performing the test method according to claim 1, wherein when a predetermined test command is given from a test device, a function to generate a response to be returned in response to the command. A function of temporarily holding the generated response in an internal memory; and a function of returning a response held in the internal memory when a predetermined response request command is given from a test device. An IC card characterized by the above-mentioned.
【請求項3】 請求項1に記載のテスト方法を実施する
ためのテスト装置であって、 所定のテストコマンドを複数のICカードに送信する機
能と、 前記テストコマンドの送信時から所定の設定時間経過後
に、前記各ICカードに応答要求コマンドを与える機能
と、 前記応答要求コマンドに応答して各ICカードから返送
されるレスポンスを受信し、このレスポンスが期待どお
りのものであるか否かを判断することにより、各ICカ
ードをテストする機能と、 を有することを特徴とするICカードのテスト装置。
3. A test apparatus for performing the test method according to claim 1, wherein a function of transmitting a predetermined test command to a plurality of IC cards, and a predetermined set time from the time of transmitting the test command. After the lapse of time, a function of giving a response request command to each of the IC cards, and a response returned from each of the IC cards in response to the response request command, and determining whether or not the response is as expected And a function for testing each IC card.
JP3299720A 1991-10-18 1991-10-18 IC card test method, and IC card and test apparatus suitable for implementing the method Expired - Lifetime JP2945193B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3299720A JP2945193B2 (en) 1991-10-18 1991-10-18 IC card test method, and IC card and test apparatus suitable for implementing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3299720A JP2945193B2 (en) 1991-10-18 1991-10-18 IC card test method, and IC card and test apparatus suitable for implementing the method

Publications (2)

Publication Number Publication Date
JPH05108905A JPH05108905A (en) 1993-04-30
JP2945193B2 true JP2945193B2 (en) 1999-09-06

Family

ID=17876154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3299720A Expired - Lifetime JP2945193B2 (en) 1991-10-18 1991-10-18 IC card test method, and IC card and test apparatus suitable for implementing the method

Country Status (1)

Country Link
JP (1) JP2945193B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7295443B2 (en) 2000-07-06 2007-11-13 Onspec Electronic, Inc. Smartconnect universal flash media card adapters
US6976623B1 (en) * 2002-11-18 2005-12-20 Onspec Electronic, Inc. Flash juke box
KR100789917B1 (en) * 2005-12-01 2008-01-02 한국전자통신연구원 Apparatus and method for testing performance of RFID middleware

Also Published As

Publication number Publication date
JPH05108905A (en) 1993-04-30

Similar Documents

Publication Publication Date Title
US6473841B1 (en) Signal processing apparatus with memory access history storage
JP2945193B2 (en) IC card test method, and IC card and test apparatus suitable for implementing the method
KR910014825A (en) Data processing system and memory array testing processing method
JPH08129629A (en) Information recording medium with memory check function
US5542057A (en) Method for controlling vector data execution
US6915470B2 (en) Data log acquisition circuit and data log acquisition method
KR100511893B1 (en) Chip test circuit
JP2002063078A (en) F/w access processing device
JPH1153487A (en) Method for deciding validity of written data on ic card
JP3096371B2 (en) Information processing apparatus control method
JPH0810724B2 (en) Semiconductor integrated circuit device having gate array and memory
US5430868A (en) Shared memory with benign failure modes
JP3036449B2 (en) Memory diagnostic device
JPS6020250A (en) Program delay tracing system
CN114267397A (en) Global configuration programming method, device and system
JPH03142536A (en) Diagnostic system for storage
JP2002073411A (en) Method and device to judge memory capacity of eeprom
JPH06110788A (en) Ram operation monitoring circuit
JPH03265037A (en) Large capacity memory initial diagnostic control system
JPS5856126A (en) Data transfer device
JPS6041148A (en) Protecting method of memory
JPH0528055A (en) Memory write data error detector
JPH05150866A (en) Reset information storage circuit
JPH05298140A (en) Self-diagnostic system
JPH01197860A (en) Memory fault detecting circuit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080625

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080625

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100625

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110625

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110625

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120625

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120625

Year of fee payment: 13