JPS62290987A - Testing system for ic card - Google Patents

Testing system for ic card

Info

Publication number
JPS62290987A
JPS62290987A JP61134668A JP13466886A JPS62290987A JP S62290987 A JPS62290987 A JP S62290987A JP 61134668 A JP61134668 A JP 61134668A JP 13466886 A JP13466886 A JP 13466886A JP S62290987 A JPS62290987 A JP S62290987A
Authority
JP
Japan
Prior art keywords
data
card
terminal
controller
error
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
JP61134668A
Other languages
Japanese (ja)
Inventor
Harumi Nakano
中野 晴美
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP61134668A priority Critical patent/JPS62290987A/en
Publication of JPS62290987A publication Critical patent/JPS62290987A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To point out the position of errors at the time of testing an IC card by executing various tests on LSI constituting an IC card, storing the result of each test, and at the same time, displaying the content of memory in a displaying means. CONSTITUTION:In testing LSI operation of an IC card 5, data errors in a system program ROM 55 and a test program ROM 54, reading/writing errors of data in a storage memory 64, errors of various function for various instructions etc. stored corresponding to each bit of error data ED, and at the same time, the content of memory is displayed in the display unit of a terminal. Thereby, the position of errors can be pointed out simply, and the errors can be dealt with promptly.

Description

【発明の詳細な説明】 3、発明の詳細な説明 [発明の技術分野〕 この発明はICカードテス1−の際のエラー箇所の特定
を可能としたICカードのテスト方式に関する。
Detailed Description of the Invention 3. Detailed Description of the Invention [Technical Field of the Invention] The present invention relates to an IC card testing method that makes it possible to identify error locations during an IC card test 1-.

[従来技術とその問題点] 近年、キャッシュレス時代と呼ばれており、クレジット
カード会社などにより発1テされたカードを使用するこ
とにより現金の取扱いをせずに商品の購入が可能になっ
ている。
[Prior art and its problems] In recent years, it has been called the cashless era, and it has become possible to purchase products without handling cash by using cards issued by credit card companies. There is.

従来、使用されているカードとしてはプラスチックカー
ド、エンボスカード、磁気ストライブカードなどがある
が、これらのカードは構造上偽造が容易であるため、不
正使用が問題になっている。
Conventionally, cards used include plastic cards, embossed cards, and magnetic striped cards, but these cards are easy to forge due to their structure, so unauthorized use has become a problem.

そこで、このような問題を解決するため、カード内部に
暗証番号などを記憶したIC回路を組込み、暗記番号が
外部から容易に読出ぜないようにした情報カード、いわ
ゆるICカードが考えられている。
In order to solve this problem, information cards, so-called IC cards, have been developed in which an IC circuit that stores a personal identification number and the like is built into the card so that the personal identification number cannot be easily read from the outside.

ところで、このようなICカードには、システムプログ
ラムROM、テストプログラムROM、ストレージメモ
リなどを有するLSIが収納されているが、これらプロ
グラムROMに記憶されたビットパターン状態およびス
トレージメモリでの書込み/続出し動作などは常に正常
に保たれていなければならず、このため、これらについ
て各棲テストができることが必要である。
Incidentally, such an IC card stores an LSI having a system program ROM, a test program ROM, a storage memory, etc., but the bit pattern states stored in these program ROMs and the writing/continuation of data in the storage memory are Operations etc. must always be maintained normally, and for this reason, it is necessary to be able to conduct tests for each type of equipment.

そこで、従来のICカードではテストプログラムを記憶
しておき、このプログラムの実行により、所定のテスト
を実施できるようになっている。
Therefore, conventional IC cards store a test program, and by executing this program, a predetermined test can be performed.

ところが、従来では、LSIについての各種テストの過
程でエラーが発見されると、この時のエラーをカード全
体のエラーとして取扱うようになっているため、エラー
箇所の特定が難しい。このことから、この時のエラーに
対処すべき行動を起こすことができず、簡単なエラー内
容であってもICカード全体を使用不能にしてしまうこ
とがあつな。
However, conventionally, when an error is discovered during various tests on an LSI, the error is treated as an error in the entire card, making it difficult to identify the location of the error. For this reason, no action can be taken to deal with the error at this time, and even if the error is simple, the entire IC card may become unusable.

[発明の目的] この発明は上記の事情に篤みてなされたもので、ICカ
ードテストの際のエラー箇所を特定でき、エラーへの対
応を速やかに取ることができるICカードのテスト方式
を提供することを目的とする。
[Purpose of the Invention] This invention has been made in consideration of the above-mentioned circumstances, and provides an IC card testing method that can identify error points during IC card testing and quickly take measures against errors. The purpose is to

[発明の要点] この発明にかかるICカードのテスト方式は、ICカー
ドおよび該カードが装着されるターミナルを有するIC
カードシステムにあって、ICカードを構成するLSI
について各種テストを実行し、各テスト毎の結果を複数
どットコードからなるエラーデータの各ビットに対応さ
せて記憶するとともに、この記憶内容をターミナルの表
示手段に表示するようにしている。
[Summary of the Invention] The IC card testing method according to the present invention is an IC card having an IC card and a terminal to which the card is installed.
LSI that constitutes an IC card in a card system
Various tests are executed for each test, and the results of each test are stored in correspondence with each bit of error data consisting of a plurality of dot codes, and the stored contents are displayed on the display means of the terminal.

[発明の実施例] 以下、この発明の一実施例を図面にしたがい説明する。[Embodiments of the invention] An embodiment of the present invention will be described below with reference to the drawings.

まず、第1図はICカード5が装着されるターミナル1
0の回路構成を示したものである。図において、11は
システムバスで、このシステムバス11には、サウンド
コントローラ12、ワーキングRAM13、システムプ
ログラムROM14、ターミナル属性ROM15、イニ
シャルパラメータRAM16、メインコントローラ17
、表示ドライブコントローラ18、キーコントローラ1
9、リーダライタコントローラ20、比較器21、入出
力コントローラ22、出力コントローラ23を介した出
力バッファ24、入力バッファ25を介した入力コント
ローラ26が夫々接続される。
First, Figure 1 shows the terminal 1 where the IC card 5 is installed.
This shows the circuit configuration of 0. In the figure, 11 is a system bus, and this system bus 11 includes a sound controller 12, a working RAM 13, a system program ROM 14, a terminal attribute ROM 15, an initial parameter RAM 16, and a main controller 17.
, display drive controller 18, key controller 1
9, a reader/writer controller 20, a comparator 21, an input/output controller 22, an output buffer 24 via an output controller 23, and an input controller 26 via an input buffer 25 are connected, respectively.

サウンドコントローラ12には、スピーカ27が接続さ
れ、必要に応じてアラーム音を出力するようにしている
A speaker 27 is connected to the sound controller 12 and outputs an alarm sound as necessary.

ワーキングRAM13はメモリエリアにICカード側か
ら送られてくるエラーデータrEDJのほか、IPAN
j、rcHNJ、rEPDJ 、などが記憶され、さら
にターミナル内での各種処理データが記憶される。
The working RAM 13 stores error data rEDJ sent from the IC card side in the memory area, as well as IPAN
j, rcHNJ, rEPDJ, etc., and various processing data within the terminal are also stored.

システムプログラムROM14は各種システムプログラ
ムとともにICカードとマツチングを図るためのENQ
コードなどを備えている。
The system program ROM14 is an ENQ for matching with IC cards as well as various system programs.
It has codes etc.

ターミナル底性R○〜115はその用途に応じたターミ
ナルコードTC(例えば製造コード、発行コード、商店
コードなど)を記憶している。
The terminals R◯ to 115 store terminal codes TC (for example, manufacturing code, issue code, store code, etc.) according to their uses.

イニシャルパラメータRAM16はICカード5からの
アンサ・ツー・リセット・データが一括記憶される。こ
のイニシャルパラメータRAM16には伝送ライン16
aを介して出力コントローラ23、入力コントローラ2
6およびvppレベルラッチ部28、VDpタイマラッ
チ部29、lppレベルラッチ部30が接続され、これ
らラッチ28.29.30には対応するvpp電源31
、VI)pタイマ32、Ippリミッタ33が接続され
ている。
Initial parameter RAM 16 stores answer-to-reset data from IC card 5 all at once. This initial parameter RAM 16 contains the transmission line 16.
Output controller 23, input controller 2 via a
6, a vpp level latch section 28, a VDP timer latch section 29, and an lpp level latch section 30 are connected, and these latches 28, 29, and 30 are connected to the corresponding vpp power supply 31
, VI) A p timer 32 and an Ipp limiter 33 are connected.

ここで、vpO電源31はICカードのデータメモリへ
のデータ書込みに使用する電圧■ppを確保するための
ものである。また、Vppタイマ32はICカード5よ
り指定されるvpp電源印加最大時間を確保するための
ものである。さらにIppリミッタ33はデータ書込み
電流の許容値を定めるものである。
Here, the vpO power supply 31 is used to secure the voltage ■pp used for writing data to the data memory of the IC card. Further, the Vpp timer 32 is used to secure the maximum Vpp power application time specified by the IC card 5. Further, the Ipp limiter 33 determines the permissible value of the data write current.

この場合、vpp電源31によるデータ最大書込み電圧
、Vppタイマ32による■pp印加時間、Ippリミ
ッタ33によるデータ最大許容書込み電流などは、イニ
シャルパラメータRA\11Gに記憶されたアンサ・ツ
ー・リセット・データに基づき設定される。
In this case, the maximum data write voltage by the Vpp power supply 31, the ■pp application time by the Vpp timer 32, the maximum allowable data write current by the Ipp limiter 33, etc. are determined by the answer-to-reset data stored in the initial parameter RA\11G. Set based on

データ伝送ライン16aには、ICカード用動作周波数
セレクタ34が接続される。このセレクタ34には発振
器35からの発振信号が分周器36を介して供給され、
動作周波数の設定された信号としてC1″ock端子よ
り出力される。
An IC card operating frequency selector 34 is connected to the data transmission line 16a. An oscillation signal from an oscillator 35 is supplied to this selector 34 via a frequency divider 36.
It is output from the C1''ock terminal as a signal with the operating frequency set.

メインコントローラ17のシステム制御ライン17aに
は、比較器21、入出力コントローラ22が接続され、
システムの動作状態に応じてメインコン1−〇−ラ17
から各回路に制御指令が送られるようになっている。
A comparator 21 and an input/output controller 22 are connected to the system control line 17a of the main controller 17.
Main controller 1-○-ra 17 depending on the operating status of the system.
Control commands are sent to each circuit from

表示ドライブコントローラ18はターミナル10の表示
部3に対して表示コントロールするものである。
The display drive controller 18 controls the display on the display section 3 of the terminal 10.

キーコントローラ19はターミナル10のキーボード2
によ一サンプリング信号を与えてキー人力信号を検知す
るようにしている。
The key controller 19 is the keyboard 2 of the terminal 10
A key human input signal is detected by giving a sampling signal to the key.

リーダ・ライタコントローラ20はリーダ・ライタi構
部38を駆動制御するものである。ここで、かかる橢構
部38はカード搬送用のモータを備え、ターミナルのカ
ード挿入口から挿入されるICカード5を所定位置まで
搬送するとともに電気的にターミナル10にカードを接
続し、所定の処理が終了すると、ICカード5をカード
挿入口まで戻すようにしている。
The reader/writer controller 20 drives and controls the reader/writer i structure 38. Here, the structure section 38 is equipped with a card transport motor, and transports the IC card 5 inserted from the card insertion slot of the terminal to a predetermined position, electrically connects the card to the terminal 10, and performs a predetermined process. When the process is completed, the IC card 5 is returned to the card insertion slot.

このようなリーダライタ機構部38には、出力バッフ?
24、リセットコントローラ39、IDpレベルラッチ
部30、動作周波数セレクタ34、VCC電it!40
が接続される。そして、これら出力バッファ24、リセ
ットコントローラ39、lppレベルラッチ部30.動
作周波数セレクタ34、Vcc電it!40に対応して
ICカード5側に夫々接続されるI10端子、Re5e
 を端子、vpp端子、CIockg4子、’J c 
c 端子を有している。
Such a reader/writer mechanism section 38 has an output buffer?
24, reset controller 39, IDp level latch section 30, operating frequency selector 34, VCC electric it! 40
is connected. These output buffer 24, reset controller 39, lpp level latch unit 30. Operating frequency selector 34, Vcc electric it! I10 terminals connected to the IC card 5 side corresponding to 40, Re5e
terminal, vpp terminal, CIock4 child, 'J c
It has a c terminal.

入力コントローラ26、出力コントローラ23はイニシ
ャルパラメータRAM16を介したメインコントローラ
17の指令に応じてICカードとの間のデータの授受を
コントロールするものである。このうち、入力コントロ
ーラ26はICカードから送られて来るデータを入力バ
ッファ25を介してワーキングRAM13などに出力す
るとともに比較器21に与え、ここでの比較出力をメイ
ンコントローラ17に与える。また、出力コントローラ
23はターミナル属性ROM15などより与えられるデ
ータを出力バッフ724を介してICカード5に送出す
る。
The input controller 26 and the output controller 23 control data exchange with the IC card in accordance with commands from the main controller 17 via the initial parameter RAM 16. Among these, the input controller 26 outputs the data sent from the IC card to the working RAM 13 etc. via the input buffer 25 and also provides it to the comparator 21, and provides the comparison output here to the main controller 17. Further, the output controller 23 sends data given from the terminal attribute ROM 15 or the like to the IC card 5 via the output buffer 724.

入出力コントローラ22はデータベースすなわちホスト
コンピータがオンライン接続されている場合、暗号化さ
れたデータの授受を行なうものである。
The input/output controller 22 sends and receives encrypted data when a database, ie, a host computer, is connected online.

次に、第2図は、ICカード5の回路構成を示すもので
ある。図において、51はシステムバスで、このシステ
ムバス51にはアンサ・ツー・リセットデータROfv
152、アプリケーションROM53、テストプログラ
ムROM54、システムプログラムRO〜155、ワー
キングRA〜156、セントラルコントローラ57、ス
トレージメモリリードライトコントローラ58、暗号解
読用演算器59、入力バッファ60を介した入力コント
ローラ61、出力バッファ62を介した出力コントロー
ラ63が夫々接続されている。また、入出コントローラ
61および出力コントローラ63にはデータ入出力端子
I10が接続される。
Next, FIG. 2 shows the circuit configuration of the IC card 5. As shown in FIG. In the figure, 51 is a system bus, and this system bus 51 carries answer-to-reset data ROfv.
152, application ROM 53, test program ROM 54, system program RO~155, working RA~156, central controller 57, storage memory read/write controller 58, decryption calculator 59, input controller 61 via input buffer 60, output buffer Output controllers 63 via 62 are connected respectively. Further, a data input/output terminal I10 is connected to the input/output controller 61 and the output controller 63.

ここで、アンサ・ツー・リセッ1−データRO〜152
はICカード5自身に対するあらゆる動作条件(例えば
データ書込み、印加電圧、電流許容値と最大印加電圧、
最大データ伝送量、最大応答待ちIFJ間など)を記憶
するもので、これらの条件データはカード自身の内部イ
ニシャルが終了すると、予め定められたフォマットにの
っとりアンサ・ツー・リセット・データとしてターミナ
ル側に送信されるようになっている。
Here, Answer to Reset 1-Data RO~152
is all operating conditions for the IC card 5 itself (e.g. data writing, applied voltage, current permissible value and maximum applied voltage,
Maximum data transmission amount, maximum response waiting IFJ interval, etc.) are stored, and after the card's internal initialization is completed, these condition data are sent to the terminal side as answer-to-reset data in a predetermined format. It is set to be sent.

アプリケーションROM53はこのICカード5がいか
なる種類のものかを示すカード種別データrAPNJを
配憶するもので、このカード種別データは上記アンサ・
ツー・リセット・データにもとづくイニシャルパラメー
タ設定後ターミナル側との現性交換の際に所定のフォー
マットにのせられ送信される。
The application ROM 53 stores card type data rAPNJ indicating what type of IC card 5 this card type data is.
After setting the initial parameters based on the two-reset data, the data is sent in a predetermined format when exchanging the data with the terminal side.

テストプログラムRO〜154はカードの各種テストの
ためのプログラムを記憶している。
Test programs RO to 154 store programs for various tests of cards.

システムプログラムROM 55は各種システムプログ
ラムとともにターミナル側より伝送供給される信号が正
しいか否かを表わすコード信号rAcKJまたはrNA
cjを尚えている。また、このシステムプログラムRO
M55には、後述のストレージメモリ64の書込みテス
トに使用するデータ<N+1>を記憶している。
The system program ROM 55 contains various system programs as well as a code signal rAcKJ or rNA indicating whether the signals transmitted and supplied from the terminal side are correct or not.
I am improving my cj. Also, this system program RO
M55 stores data <N+1> used for a write test of the storage memory 64, which will be described later.

ワーキングRAM56はカード内での各種処理データを
記憶するところである。この場合、第3図に示すような
8ビツトコードからなるエラーデータEDを記憶してい
る。ここで、かかるエラーデータEDのコード内容は、
blがシステムプログラムROM55のデータエラーを
示すビット、b2がテストプログラムROM54のデー
タエラーを示すビット、b3が後述のストレージメモリ
64のデータ読出しエラーを示すビット、b4がストレ
ージメモリ64のデータ書込みエラーを示すビット、b
5がカード機能エラーを示すビット、そして、b6〜b
8は未使用ビットである。
The working RAM 56 stores various processing data within the card. In this case, error data ED consisting of an 8-bit code as shown in FIG. 3 is stored. Here, the code contents of the error data ED are as follows:
bl indicates a data error in the system program ROM 55, b2 indicates a data error in the test program ROM 54, b3 indicates a data read error in the storage memory 64 (described later), and b4 indicates a data write error in the storage memory 64. bit, b
5 indicates a card function error, and b6-b
8 is an unused bit.

セントラルコントローラ57は入力バッファ60を介し
て伝送供給されるデータ受信信号および動作状態に応じ
て各回路に動作指令を出力するものである。
The central controller 57 outputs operation commands to each circuit according to the data reception signal transmitted and supplied via the input buffer 60 and the operation state.

ストレージメモリリードライトコントローラ58はセン
トラルコントローラ57からの指令に応じてストレージ
メモリ64に対するデータの3込み読出しの制御を行な
うものである。
The storage memory read/write controller 58 controls three-in-one data reading from the storage memory 64 in response to commands from the central controller 57.

この場合、ストレージメモリ64は第4図に示すように
ゾーンアドレステーブル641、パブリックゾーン64
2、シークレットゾーン643、トランザクションゾー
ン644、クレジットゾーン645を有している。ここ
で、ゾーンアドレステーブル641は、例えばカード認
証に使用するテストデータとして所定ゾーンのアドレス
を記憶するところで、該アドレスをもとに所定ゾーンよ
り照合データを取出すとともに、上記テストデータとの
照合によりカード認証を行なうようになっている。パブ
リックゾーン642には、ストレージメモリ64の書込
み/読出しテストを実行するためのテストエリア642
aを有している。ここで、かかるテストエリア642a
は、例えば第5図に示すように、読出しをテストするた
めの「1」、r2.J、・・・rNJのデータを記憶し
、また、(N+1>エリアをメモリでの書込みテストに
使用するようにしている。シークレットゾーン643は
、例えば暗証番号rPIN」、データの再入力回数r 
RT N J  (Re −T r yN u m b
er)、暗証番号rPINJが使用されるまでの番号r
lPINJ  (In l t ia l zat 1
onPersonal  1dentificatio
n  Number)、口座番号IF’ANJ  (P
rimary ACCOunt  Number)、暗
号解読用コードrPRKJ  (PrivateK e
 y  Co d e )などが記憶されている。トラ
ンザクションゾーン644は一般取引に関する各種デー
タが記憶されている。クレジットゾーン645はクレジ
ット取引に関するデータを記憶している。
In this case, the storage memory 64 includes a zone address table 641, a public zone 64 as shown in FIG.
2, a secret zone 643, a transaction zone 644, and a credit zone 645. Here, the zone address table 641 stores an address of a predetermined zone as test data used for card authentication, for example, and extracts verification data from the predetermined zone based on the address, and also extracts verification data from the predetermined zone based on the address and performs verification on the card by comparing with the test data. Authentication is now performed. The public zone 642 includes a test area 642 for executing write/read tests on the storage memory 64.
It has a. Here, such test area 642a
For example, as shown in FIG. 5, r2 . J, .
RT N J (Re −T ryN u m b
er), number r until PINJ is used
lPINJ (In l tia l zat 1
onPersonal 1dentificatio
n Number), account number IF'ANJ (P
primary ACCOUNT Number), decryption code rPRKJ (PrivateK e
yCode) etc. are stored. The transaction zone 644 stores various data related to general transactions. Credit zone 645 stores data regarding credit transactions.

第2図に戻って、暗号解読器59は所定のアルゴリズム
に基づき暗号解読を行なうものであり、ス;・レージメ
モリ64からの暗号解読用コードfPRKJなどを用い
、ターミナル側から人力バッファ6oを介して供給され
る入力データを解読するようになっている。
Returning to FIG. 2, the decryptor 59 decrypts the code based on a predetermined algorithm, and uses the decryption code fPRKJ from the storage memory 64 from the terminal side via the manual buffer 6o. It is designed to decode input data provided by

セントラルコントローラ57には、タイマ65が接続さ
れている。このタイマ65はカード=W正誤処理に要す
る時間を予め所定時間に設定するもので、暗証番号rP
INJの入力開始前にセントラルコントローラ57の指
令によりセットされるとともに、暗証番号IPINJ入
力開始によりカウントを開始され、所定時間経過の後に
セントラルコントローラ57にインタラブドをかけるよ
うになっている。
A timer 65 is connected to the central controller 57. This timer 65 is used to preset the time required for correct/incorrect processing of the card=W to a predetermined time.
It is set by a command from the central controller 57 before inputting the INJ, and counting is started when the input of the PIN number IPINJ begins, and after a predetermined time elapses, the central controller 57 is interlocked.

ス:−レージメモリリードライトコントローラ58で読
出されるストレージメモリ64の内容は比較器66の一
方入力端子に与えられる。比較器66は他方入力端子に
暗号解読器59にて解読された入力データ、ワーキング
RAM56に記憶されたデータ、データROM52に記
憶された特定コードなどが与えられる。そして、この比
iff 566の比較出力はセントラルコントローラ5
7に送られる。
- The contents of the storage memory 64 read by the storage memory read/write controller 58 are applied to one input terminal of the comparator 66. The other input terminal of the comparator 66 is supplied with input data decrypted by the decryptor 59, data stored in the working RAM 56, a specific code stored in the data ROM 52, and the like. The comparison output of this ratio if 566 is the central controller 5
Sent to 7.

なお、このようにしたICカード5は図示しないターミ
ナルTOに装着した状態で、ターミナル10側よりリセ
ット信号Re5et、システムクロックclockが供
給されるとともにVcc電源、Vpp電源が接続される
。ここで、VCC電源はシステム駆動用1!f[、Vp
p1源はストレージメモリ64に対する衾込み用電源で
あり、そのN源電圧はデータROM52にて記憶される
アンサ・ツー・リセットデータに基づきターミナル10
IlI!Iにて設定される。一方、システムクロックc
lockからのシステム動作信号は分周器67を介して
各回路に供給される。
It should be noted that while the IC card 5 thus constructed is attached to a terminal TO (not shown), the reset signal Re5et and the system clock clock are supplied from the terminal 10 side, and the Vcc power supply and the Vpp power supply are connected. Here, the VCC power supply is 1! for system drive. f[, Vp
The p1 source is a power supply for loading the storage memory 64, and its N source voltage is applied to the terminal 10 based on the answer-to-reset data stored in the data ROM 52.
IlI! It is set in I. On the other hand, system clock c
A system operation signal from the lock is supplied to each circuit via a frequency divider 67.

次に、このように構成した実施例の動作を第6図および
第7図に示すフローチャートにしたがい説明する。
Next, the operation of the embodiment configured as described above will be explained according to the flowcharts shown in FIGS. 6 and 7.

まず、テストを行なうため、ICカード5をターミナル
10に装着する。この状態で、ターミナルのキーボード
2よりICカード5のテストモードがキー人力されると
、メインコントローラ17の指令によりシステムプログ
ラムROM14よりテストスタート命令が読出され、出
力コントローラ23、出力バッファ24を介してICカ
ード5に送られる。ICカード5では、このテストスタ
ート命令を入力コントローラ61、入カバソファ60を
介して、ワーキングRAM56に1込まれる。
First, in order to perform a test, the IC card 5 is attached to the terminal 10. In this state, when the test mode of the IC card 5 is inputted from the keyboard 2 of the terminal, a test start command is read from the system program ROM 14 in response to a command from the main controller 17, and the IC card is Sent to card 5. In the IC card 5, this test start command is input into the working RAM 56 via the input controller 61 and the input sofa 60.

そして、セントラルコントローラ57にてテストスター
ト命令と判断されると、第6図に示ずステップA1にお
いてアンサ・ツー・リセット・データROM52よりア
ンサ・ツー・リセット・データが読出され、入力バッフ
ァ62、出力コントローラ63を介してI10端子より
ターミナルに送出される。この場合、ターミナルでは、
所定の時間を設定してICカード5からのアンサ・ツー
・リセット・データの送出を待っており、この時間内に
データが戻ってこない場合は、再度テストスタート命令
をかけるようになっている。そして、複数回、例えば3
回繰返して命令を発しても、アンサ・ツー・リセット・
データが戻ってこない時は、カード機能エラーとして処
理するようになる。
When the central controller 57 determines that it is a test start command, answer-to-reset data is read out from the answer-to-reset data ROM 52 in step A1 (not shown in FIG. 6), and the input buffer 62 and output It is sent to the terminal via the controller 63 from the I10 terminal. In this case, in the terminal,
A predetermined time is set to wait for the answer-to-reset data to be sent from the IC card 5, and if the data is not returned within this time, a test start command is issued again. and multiple times, e.g. 3
Even if the command is issued repeatedly, the answer-to-reset
If the data is not returned, it will be treated as a card function error.

いま、ステップA1に示すように、アンサ・ツー・リセ
ット・データがターミナル10に送出されると、これ以
後ICカード5はテストモードとなる。
Now, as shown in step A1, when the answer-to-reset data is sent to the terminal 10, the IC card 5 enters the test mode.

これにより、まず、ステップA2おいてシステムプログ
ラムROM55のデータをバイト単位で読出す。そして
、これらデータを順次論理演算し、ステップA3で、こ
れら演算により得られたデータが予め定めた値になるか
を判断する。ここで、予め定めた値と等しくなれば、ス
テップA4に進むが、予め定めた値と等しくなければ、
システムプログラムROM55のデータ中にエラーが有
るものと判断され、ステップA5に進む。このステップ
A5では、セントラルコントローラ57の指令によりワ
ーキングRA M 56のエラーデータEDのビットb
1にフラグ「1」が立てられる。
As a result, first, in step A2, data in the system program ROM 55 is read in byte units. Then, these data are sequentially subjected to logical operations, and in step A3, it is determined whether the data obtained by these operations correspond to a predetermined value. Here, if it is equal to the predetermined value, proceed to step A4, but if it is not equal to the predetermined value,
It is determined that there is an error in the data in the system program ROM 55, and the process proceeds to step A5. In this step A5, bit b of the error data ED of the working RAM 56 is read by a command from the central controller 57.
1 is set as a flag "1".

そして、この場合もステップA4に進む。In this case as well, the process proceeds to step A4.

ステップA4では、今度はテストプログラムROM54
のデータをバイト単位で読出す。そして、これらデータ
を順次論理演算し、ステップ八6において、これら演算
により得られたデータが予め定めた値になるかを判断す
る。ここで、予め定めた値と等しくなれば、ステップA
7に進むが、予め定めた値と等しくなければ、テストプ
ログラムROM54のデータ中にエラーが有るものと判
断され、ステップA8に進む。このステップ八8では、
セントラルコントローラ57の指令によりワーキングR
AM56のエラーデータEDのビットb2にフラグ「1
」が立てられる。そして、この場合もステップA7に進
む。
In step A4, the test program ROM 54 is
Read data in bytes. Then, these data are sequentially subjected to logical operations, and in step 86, it is determined whether the data obtained by these operations correspond to a predetermined value. Here, if it is equal to the predetermined value, step A
If the value is not equal to the predetermined value, it is determined that there is an error in the data in the test program ROM 54, and the process proceeds to step A8. In this step 88,
Working R by command from central controller 57
Flag “1” is set in bit b2 of error data ED of AM56.
” will be erected. In this case as well, the process proceeds to step A7.

次に、ステップA7では、ストレージメモリ64のパブ
リックゾーン642内のテストエリア642aよりデー
タを順に読出す。この場合、テストエリア642aより
「1」から「2」、「3」、・・・・・・・rNJの順
でデータを読出すとともに、これらデータの全てについ
て正しく読出されたかをステップA9で判断する。そし
て、全てについて正しく読出されていれば、ステップA
IOに進むが、正しく読出されなければ、ストレートメ
モリ64のデータ読出しにエラーが有るものと判断され
、ステップA11に進む。このステップA11では、セ
ントラルコントローラ57の指令によりワーキングRA
M56のエラーデータEDのビットb3にフラグ「1」
が立てられる。そして、この場合もステップA10に進
む。
Next, in step A7, data is sequentially read from the test area 642a in the public zone 642 of the storage memory 64. In this case, data is read from the test area 642a in the order of "1", "2", "3", ... rNJ, and it is determined in step A9 whether all of these data have been read correctly. do. Then, if everything is read correctly, step A
The process proceeds to IO, but if the data is not read correctly, it is determined that there is an error in reading data from the straight memory 64, and the process proceeds to step A11. In this step A11, the working RA is
Flag “1” in bit b3 of error data ED of M56
is erected. In this case as well, the process proceeds to step A10.

ステップAIOでは、セントラルコントローラ57の指
令によりシステムプログラムROM55よりデータ(N
+1>が読出され、このデータがストレージメモリ64
のパブリックゾーン642内のテストエリア642aの
(N+1)に書込まれる。その後、ステップA12にお
いて、上記ストレージメモリ64のパブリックゾーン6
42内のテストエリア642aの<N+1)に書込まれ
たデータが直ちに読出される。そして、ステップA13
に進み、読出されたデータと四込みデータが等しいかが
判断される。ここで、両者が等しければ、ステップA1
4に道むが、等しくなければ、ストレートメモリ64の
データ書込みにエラーが有るものと判断され、ステップ
A15に進む。このステップA15では、セントラルコ
ントローラ57の指令によりワーキングRA M 56
のエラーデータEDのビットb4にフラグ「1」が立て
られる。そして、この場合もステップA14に進む。
In step AIO, data (N
+1> is read and this data is stored in the storage memory 64.
(N+1) of the test area 642a in the public zone 642 of . Thereafter, in step A12, the public zone 6 of the storage memory 64 is
The data written in the test area 642a (<N+1) in 42 is read out immediately. And step A13
Then, it is determined whether the read data and the four-way data are equal. Here, if the two are equal, step A1
4, but if they are not equal, it is determined that there is an error in data writing to the straight memory 64, and the process advances to step A15. In step A15, the working RAM 56 is
A flag "1" is set in bit b4 of the error data ED. In this case as well, the process proceeds to step A14.

ステップA14では、セントラルコントローラ57の指
令によりシステムプログラムROM55より各種のイン
ストラクションが読出され、これの実行結果がステップ
A16において判断される。
In step A14, various instructions are read from the system program ROM 55 in response to instructions from the central controller 57, and the results of their execution are determined in step A16.

ここで、各種のインストラクションに対する実行結果が
正しければ、ステップA17に進むが、正しくなければ
、カードの1!機能エラーとしてステップA18に進む
。このステップA18では、セントラルコントローラ5
7の指令によりワーキングRAM56のエラーデータE
Dのビットb5にフラグ「1」が立てられる。そして、
この場合もステップA17に進む。
Here, if the execution results for the various instructions are correct, proceed to step A17, but if not, the card 1! The process proceeds to step A18 as a function error. In this step A18, the central controller 5
The error data E in the working RAM 56 is
A flag "1" is set in bit b5 of D. and,
In this case as well, the process proceeds to step A17.

ステップA17では、ワーキングRAM56のエラーデ
ータEDが読出され、出力バッファ62、出力コントロ
ーラ63を介してターミナル10に送られる。
In step A17, the error data ED from the working RAM 56 is read out and sent to the terminal 10 via the output buffer 62 and output controller 63.

ターミナル10では、ICカード5より送られてくるエ
ラーデータEDを入力コントローラ26、入力バッファ
25を介して受取り、第7図のステップB1に示すよう
に、ワーキングRAl’v113に書込む。そして、ス
テップB2に進む。
The terminal 10 receives the error data ED sent from the IC card 5 via the input controller 26 and the input buffer 25, and writes it to the working RAl'v 113 as shown in step B1 in FIG. Then, proceed to step B2.

このステップB2では、メインコントローラ17により
ワーキングRAM13のエラーデータEDの内容が判断
され、この結果が表示ドライブコントローラ18に送ら
れ、表示部3に表示される。この場合、表示部3での表
示内容はエラーデータEDの各ビットb1〜b5の状態
に応じたものとなり、各種テストについての結果が表示
されることになる。
In this step B2, the content of the error data ED in the working RAM 13 is determined by the main controller 17, and the result is sent to the display drive controller 18 and displayed on the display section 3. In this case, the display content on the display section 3 will be in accordance with the state of each bit b1 to b5 of the error data ED, and the results of various tests will be displayed.

したがって、このようにすればICカード5のLS I
I作テストにおいて、システムプログラムRO〜1およ
びテストプログラムROMでのデータエラー、ストレー
ジメモリでのデータの読出し/書込みエラー、そして各
種インストラクションに対する諸機能エラー等がエラー
データEDの各ビット毎に対応して記憶されるとともに
、この記憶内容がターミナルの表示部に表示されるよう
になるので、LSIのエラー箇所を簡単に特定すること
ができる。これにより、エラーへの対応を速やかに取る
ことができるようになり、従来のように簡単なエラー内
容であってもICカード全体を使用不能にしてしまうよ
うな事態を避けることができる。
Therefore, if you do this, the LSI of the IC card 5
In the I production test, data errors in system programs RO to 1 and test program ROM, data read/write errors in storage memory, and various function errors for various instructions are detected for each bit of error data ED. At the same time, the stored contents are displayed on the display section of the terminal, so that the location of the error in the LSI can be easily identified. This makes it possible to take prompt action against errors, and it is possible to avoid a situation where the entire IC card becomes unusable even if the error content is simple, unlike in the conventional case.

なお、この発明は上記実施例にのみ限定されず、要旨を
変更しない範囲で適宜変形して実施できる。
It should be noted that the present invention is not limited to the above-mentioned embodiments, but can be implemented with appropriate modifications without changing the gist.

[発明の効果] この発明によれば、ICカードテストの際のエラー箇所
を特定でき、エラーへの対応を速やかに取ることができ
る。
[Effects of the Invention] According to the present invention, it is possible to identify an error location during an IC card test, and it is possible to promptly take measures against the error.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例に用いられるターミナルの
回路構成を示すブロック図、第2図は同実施例に用いら
れるICカードの回路構成を示すブロック図、第3図は
同実施例のICカードのワーキングRAMが有するエラ
ーデータEDの構成を示す図、第4図は同実施例に用い
られるストレージメモリを説明するための図、第5図は
同ストレージメモリのパブリックゾーン内のテストエリ
アを説明するための図、第6図、第7図は同実施例の動
作を説明するためのフローチャートである。 3・・・表示部、5・・・ICカード、10・・・ター
ミナル、13・・・ワーキングRAM117・・・メイ
ンコントローラ、54・・・テストプログラムROM、
55・・・システムプログラムROM、56・・・ワー
キングRAM、57・・・セントラルコントローラ、6
4・・・ストレージメモリ、642・・・パブリックゾ
ーン、642a・・・テストエリア。 第3図 呟 第4図 第5図 第7図
Figure 1 is a block diagram showing the circuit configuration of a terminal used in one embodiment of the present invention, Figure 2 is a block diagram showing the circuit configuration of an IC card used in the same embodiment, and Figure 3 is a block diagram showing the circuit configuration of an IC card used in the same embodiment. A diagram showing the configuration of error data ED included in the working RAM of the IC card, FIG. 4 is a diagram for explaining the storage memory used in the same embodiment, and FIG. 5 is a diagram showing the test area in the public zone of the storage memory. The figures for explanation, FIGS. 6 and 7, are flowcharts for explaining the operation of the embodiment. 3... Display unit, 5... IC card, 10... Terminal, 13... Working RAM 117... Main controller, 54... Test program ROM,
55... System program ROM, 56... Working RAM, 57... Central controller, 6
4...Storage memory, 642...Public zone, 642a...Test area. Figure 3 Figure 4 Figure 5 Figure 7

Claims (1)

【特許請求の範囲】[Claims] ICカードおよび該カードが装着されるターミナルを有
するICカードシステムにおいて、ICカードを構成す
るLSIについて各種テストを実行し、各テスト毎の結
果を記憶するとともに、この記憶内容をターミナルの表
示手段に表示するようにしたことを特徴とするICカー
ドのテスト方式。
In an IC card system having an IC card and a terminal to which the card is installed, various tests are executed on the LSI that constitutes the IC card, the results of each test are stored, and the stored contents are displayed on the display means of the terminal. An IC card test method characterized by:
JP61134668A 1986-06-10 1986-06-10 Testing system for ic card Pending JPS62290987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61134668A JPS62290987A (en) 1986-06-10 1986-06-10 Testing system for ic card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61134668A JPS62290987A (en) 1986-06-10 1986-06-10 Testing system for ic card

Publications (1)

Publication Number Publication Date
JPS62290987A true JPS62290987A (en) 1987-12-17

Family

ID=15133766

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61134668A Pending JPS62290987A (en) 1986-06-10 1986-06-10 Testing system for ic card

Country Status (1)

Country Link
JP (1) JPS62290987A (en)

Similar Documents

Publication Publication Date Title
US4816656A (en) IC card system
KR900005212B1 (en) Ic card with an updatable password
US4752677A (en) Customer service system for use in IC card system
US4839506A (en) IC card identification system including pin-check time means
US4780602A (en) IC card
JPH0296872A (en) Confirming system for rightness of transaction
JPS6244869A (en) Ic card collating system
US5010237A (en) IC card system for preventing unauthorized data alteration
WO1988009019A1 (en) Intelligent portable interactive personal data system
JPS62211787A (en) Power application contrl system
US20070079133A1 (en) Portable storage device having a subject identification information and a configuration method thereof
JPH021090A (en) Ic card and method for writing its operation program
JPH02165290A (en) Ic card and method for operating ic card
JPS62290987A (en) Testing system for ic card
JPH0325590A (en) Ic card and manufacture managing system for the same
JPH0414396B2 (en)
JPS62154083A (en) Ic card having data managing means
JP2712149B2 (en) Test program starting method and test program starting device
JPH057651Y2 (en)
JP2712148B2 (en) Test program starting method and test program starting device
JPS63121993A (en) Certification information collation system
JPH0734216B2 (en) IC card
JPS62249249A (en) Authorizing system for ic card
JPS62211756A (en) Testing system for ic card
JPS6217865A (en) Ic card system