JPS61187075A - Electronic counter - Google Patents

Electronic counter

Info

Publication number
JPS61187075A
JPS61187075A JP60027743A JP2774385A JPS61187075A JP S61187075 A JPS61187075 A JP S61187075A JP 60027743 A JP60027743 A JP 60027743A JP 2774385 A JP2774385 A JP 2774385A JP S61187075 A JPS61187075 A JP S61187075A
Authority
JP
Japan
Prior art keywords
counter
electronic counter
data
card
prom
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
JP60027743A
Other languages
Japanese (ja)
Inventor
Yoshio Yoshinaga
吉永 義雄
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP60027743A priority Critical patent/JPS61187075A/en
Publication of JPS61187075A publication Critical patent/JPS61187075A/en
Pending legal-status Critical Current

Links

Landscapes

  • Credit Cards Or The Like (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

PURPOSE:To provide an upper limit for the number of accesses by recording the counted value of errors and the number of times of reset in a PROM and setting a limit to the number of times of reset and storing the number of accesses of disqualified persons. CONSTITUTION:An electronic device, for example, an IC card 1 incorporates a control element MPU2 constituted into an IC ship and a data memory PROM3 constituted into an IC chip, and the MPU2 is connected electrically to an external card reader/writer through a connecting part 4 formed on the surface of the card. The area of the PROM3 is divided to an attribute area prescribing the attribute of the electronic counter and a counter area. The counted value of errors and the number of times of reset are recorded in prescribed areas of the PROM3 by the electronic counter consisting of the MPU2 and the PROM3, and a limit is set to the number of times of reset.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明は、たとえばICチップを内蔵したいわゆるIC
カードなどの暗証番号照合方式において、暗証番号の不
一致回数を記録する電子式カウンタに関する。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a so-called IC having a built-in IC chip, for example.
The present invention relates to an electronic counter that records the number of mismatches in PIN numbers in a PIN verification method for cards, etc.

[発明の技術的背景とその問題点] 現在、たとえば現金自動支払機に用いられるIDカード
には、磁気ストライブ式カードが広く用いられている。
[Technical Background of the Invention and its Problems] At present, magnetic stripe cards are widely used as ID cards used in automatic teller machines, for example.

この磁気ストライブ式カードにおいては、カード所持者
が入力した暗証番号が一致しないときは、一定の条件下
で磁気ストライブの一部分に磁気的なマークが付され、
そのようなカードは金融機関の装置によりリセットしな
い限り再使用できないようになっている。しかしながら
、このような方法では、マークは比較的簡単に消去する
ことができ、しかもリセットの回数はカード内に記録さ
れないので、何回でもリセットすることが可能であり、
暗証番号の誤入力回数が充分に管理できないという問題
があった。
In this magnetic stripe type card, if the PIN number entered by the cardholder does not match, a magnetic mark is placed on a part of the magnetic stripe under certain conditions.
Such cards cannot be reused unless they are reset by the financial institution's equipment. However, with this method, the mark can be erased relatively easily, and the number of resets is not recorded on the card, so it can be reset as many times as you like.
There was a problem in that the number of incorrect password inputs could not be adequately managed.

[発明の目的] 本発明は上記事情に鑑みてなされたもので、その目的と
するところは、一定の資格を有しなければアクセスでき
ない装置に対して無資格者がアクセスした場合、そのア
クセス回数を記録するとともに、そのアクセス回数の上
限を設けた電子式カウンタを提供することにある。
[Purpose of the Invention] The present invention was made in view of the above circumstances, and its purpose is to reduce the number of accesses when an unqualified person accesses a device that cannot be accessed without a certain qualification. An object of the present invention is to provide an electronic counter that records the number of accesses and sets an upper limit on the number of accesses.

[発明の概要コ 本発明は上記目的を達成するために、MPU(マイクロ
・ブロツセ・ユニット)とPROM(プログラマブル・
リード・オンリ・メモリ)とから構成される電子式カウ
ンタにより、PROM内の所定エリアにエラーのカウン
ト値とリセット回数を記録するとともに、リセット回数
に制限を設けるようにしたものである。
[Summary of the Invention] In order to achieve the above object, the present invention utilizes an MPU (micro block unit) and a PROM (programmable unit).
An electronic counter (read-only memory) is used to record error count values and the number of resets in a predetermined area within the PROM, and to set a limit on the number of resets.

[発明の実施例コ 以下、本発明の一実施例について図面を参照して説明す
る。
[Embodiment of the Invention] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明に係る電子装置の一例としてICカード
1を示すもので、ICチップ化された」制御素子として
のMPU2、およびこのMPU2と電気的に接続される
ICチップ化されたデータメモリとしてのPROM3を
それぞれ内蔵しており、MPU2はカード表面に形成さ
れたコネクト部4を介して図示しない外部のカードリー
ダ・ライタと電気的に接続されるようになっている。上
記PROM3は、第2図に示すように、電子式カウンタ
の属性を規定する属性エリア5とカウント値を記録する
カウンタエリア6とに分かれている。上記属性エリア5
は、第3図に示すように8ビツト(1バイト)で構成さ
れ、上位4ビツトでカウンタの数(N)を、また下位4
ビツトでカウンタのサイズ(Sバイト)を2進数で指定
できるようになっている。また、上記カウンタエリア6
は、第2図に示すように第1ないし第Nカウンタから構
成されており、カウンタサイズ(S)が1バイトの場合
におけるカウンタの構成は、第4図に示すように1ビツ
トのリセットフラグと7ビツトのカウント部とからなっ
ている。さらに、カウンタサイズ(S)が2バイトの場
合におけるカウンタの構成は第5図に示す通りである。
FIG. 1 shows an IC card 1 as an example of an electronic device according to the present invention, which includes an MPU 2 as a control element formed into an IC chip, and a data memory formed into an IC chip electrically connected to the MPU 2. Each card has a built-in PROM 3, and the MPU 2 is electrically connected to an external card reader/writer (not shown) via a connector 4 formed on the card surface. As shown in FIG. 2, the PROM 3 is divided into an attribute area 5 that defines the attributes of the electronic counter and a counter area 6 that records count values. Attribute area 5 above
consists of 8 bits (1 byte) as shown in Figure 3, and the upper 4 bits indicate the number of counters (N), and the lower 4 bits indicate the number of counters (N).
The size of the counter (S bytes) can be specified in binary numbers using bits. In addition, the above counter area 6
As shown in FIG. 2, the counter consists of the first to Nth counters, and when the counter size (S) is 1 byte, the configuration of the counter is as shown in FIG. 4, with a 1-bit reset flag and It consists of a 7-bit count section. Furthermore, the configuration of the counter when the counter size (S) is 2 bytes is as shown in FIG.

次に、上記のような構成において、本発明の電子式カウ
ンタについて第8図に示すフローチャートを参照して説
明する。今、たとえばカウンタの数Nを「3」、カウン
タサイズSを「1」と指定した場合、カウンタ使用前(
初期状態)における属性エリア5およびカウンタエリア
6のビット状態は第6図に示す通りとなる。この状態で
、ICカード1がカードリーダ・ライタからカウンタ登
算命令を受けると、MPU2はその登算命令を解読しく
ステップ81)、PROM3のカウンタ先頭番地に位置
する属性エリア5のデータを読出し、MPU 2内のレ
ジスタに記憶する(ステップ82>。ついで、MPU 
2は登算可能な有効カウンタをサーチする(ステップ8
3)。第1カウンタの第1ビツト目が「1」の場合は、
そのカウンタが有効であると判断して第2ビツト目に「
0」をセットする。第8ビツト目まで全てrOJである
場合は、カウンタ登算不能としてMPU2はカードリー
ダ・ライタへ登算不能レスポンスを送出する(ステップ
S5)。こうしてレジスタへの「0」セットが終了した
ならば、そのデータをPROM3に書込む(ステップS
6)。その後、カードリーダ・ライタに登算済レスポン
スを送出する(ステップ87)。もし、上記ステップS
3において、第1ないし第Nカウンタが全て無効であっ
たときは使用不可レスポンスを送出する(ステップ84
)。
Next, the electronic counter of the present invention having the above configuration will be explained with reference to the flowchart shown in FIG. Now, for example, if the number of counters N is specified as "3" and the counter size S is specified as "1", before using the counter (
The bit states of the attribute area 5 and counter area 6 in the initial state) are as shown in FIG. In this state, when the IC card 1 receives a counter registration command from the card reader/writer, the MPU 2 decodes the registration command (step 81), reads the data in the attribute area 5 located at the counter top address of the PROM 3, Store it in the register in MPU 2 (step 82>. Then, the MPU
Step 2 searches for valid counters that can be registered (step 8).
3). If the first bit of the first counter is "1",
It judges that the counter is valid and writes "
0”. If all bits up to the 8th bit are rOJ, the MPU 2 determines that counter registration is impossible and sends a registration impossible response to the card reader/writer (step S5). When the setting of "0" to the register is completed in this way, the data is written to PROM3 (step S
6). Thereafter, a registered response is sent to the card reader/writer (step 87). If the above step S
3, if the first to Nth counters are all invalid, an unusable response is sent (step 84).
).

次に、登算不能となったカウンタを無効として、次に続
くカウンタを有効とするリフレッシュ動作について、第
9図に示すフローチャートを参照して説明する。今、I
Cカード1がカードリーダ・ライタからリフレッシュ命
令を受けると、MPU2はそのリフレッシュ命令を解読
しくステップS8)、PROM3の属性エリア5のデー
タを読出し、MPU2内のレジスタに記憶する(ステッ
プS9)。ついで、MPLI2は有効カウンタをサーチ
してゆき(ステップ510)、有効カウンタがあればそ
のカウンタの第1ビツト目にrOJを書込み(ステップ
812> 、リフレッシュ済レスポンスを送出する(ス
テップ$13)。以上の動作によりカウンタのリフレッ
シュは終了する。もし、上記ステップ810において、
第1ないし第Nカウンタが全て無効(リフレッシュ済)
であったときはリフレッシュ不能レスポンスを送出する
(ステップ511)。リフレッシュ不能となったカウン
タのビット状況は第7図に示す通りである。
Next, a refresh operation for invalidating a counter that cannot be registered and validating the next counter will be explained with reference to the flowchart shown in FIG. Now, I
When the C card 1 receives a refresh command from the card reader/writer, the MPU 2 decodes the refresh command (step S8), reads the data in the attribute area 5 of the PROM 3, and stores it in a register within the MPU 2 (step S9). Next, MPLI2 searches for a valid counter (step 510), and if there is a valid counter, writes rOJ to the first bit of the counter (step 812>) and sends a refreshed response (step $13). Refreshing of the counter is completed by the operation.If in step 810 above,
All 1st to Nth counters are invalid (refreshed)
If so, a non-refreshable response is sent (step 511). The bit status of the counter that cannot be refreshed is as shown in FIG.

このように、MPUとPROMとから構成される電子式
カウンタにより、PROM内の所定エリアにエラーのカ
ウント値とリセット回数を記録するとともに、リセット
回数に制限を設けるようにしたものである。したがって
、カウントデータの消去、改ざんが困難であり、きわめ
て安全である。
In this way, the electronic counter composed of the MPU and the PROM records the error count value and the number of resets in a predetermined area in the PROM, and also sets a limit on the number of resets. Therefore, it is difficult to erase or tamper with the count data, and it is extremely safe.

また、カウンタの個数や個々のカウンタのカウント上限
値を自由に設定できるので、用途に応じて種々のカウン
タを実現できる。さらに、MPUとPROMとを有する
電子装置に容易に、しかも安価に組込むことができる。
Further, since the number of counters and the upper limit of count of each counter can be freely set, various counters can be realized depending on the purpose. Furthermore, it can be easily and inexpensively incorporated into an electronic device having an MPU and a PROM.

なお、前記実施例では、カウンタサイズを最低7ビツト
としたが、これよりも小さなサイズが21要なときは、
あらかじめカウント部の余剰ビットを「0」にセットし
ておけばよい。また、リフレッシュの可能回数にも制限
を設ける必要のある場合は、カウンタの数をリフレッシ
ュ可能回数と等しく設定すればよい。さらに、カウンタ
の記憶素子としてのPROMは通常10KB以上の容最
を有するので、カウンタのみならず、他の機能を併用す
ることができる。
In the above embodiment, the counter size is set to at least 7 bits, but if a smaller size than this is required, 21 bits are required.
It is sufficient to set the surplus bit in the count section to "0" in advance. Furthermore, if it is necessary to set a limit on the possible number of refreshes, the number of counters may be set equal to the possible number of refreshes. Furthermore, since the PROM as a counter storage element usually has a maximum capacity of 10 KB or more, it can be used not only as a counter but also for other functions.

[発明の効果コ 以上詳述したように本発明によれば、一定の資格を有し
なければアクセスできない装置に対して無資格者がアク
セスした場合、そのアクセス回数を記録するとともに、
そのアクセス回数の上限を設けた電子式カウンタを提供
できる。
[Effects of the Invention] As detailed above, according to the present invention, when an unqualified person accesses a device that cannot be accessed without a certain qualification, the number of accesses is recorded, and
An electronic counter with an upper limit on the number of accesses can be provided.

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

図は本発明の一実施例を示すもので、第1図はICカー
ドの斜視図、第2図はPROMの記録例を示す図、第3
図はPROMの属性エリアの記録内容を示す図、第4図
および第5図はPROMのカウンタエリアの記録内容を
示す図、第6図はPROMへのビット書込み例を示す図
、第7図はリフレッシュ不能となったカウンタのビット
書込み状況の例を示す図、第8図は登算動作を説明する
ためのフローチャート、第9図はリフレッシュ動作を説
明するためのフローチャートである。 1・・・・・・ICカード(電子装置)、2・・・・・
・MPU、3・・・・・・PROM、4・・・・・・コ
ネクト部、5・・・・・・属性エリア、6・・・・・・
カウンタエリア。 出願人代理人 弁理士 鈴 江 武 彦し1 訂 ?−32図 で53ry!J ′ぞ47 .6 図 2r′E7i7 第8 ニ
The figures show one embodiment of the present invention; Fig. 1 is a perspective view of an IC card, Fig. 2 is a diagram showing an example of PROM recording, and Fig. 3 is a perspective view of an IC card.
The figure shows the recorded contents of the PROM attribute area, FIGS. 4 and 5 show the recorded contents of the PROM counter area, FIG. 6 shows an example of bit writing to PROM, and FIG. 7 shows the recorded contents of the PROM counter area. FIG. 8 is a flowchart for explaining the register operation, and FIG. 9 is a flowchart for explaining the refresh operation. 1...IC card (electronic device), 2...
・MPU, 3...PROM, 4...Connection section, 5...Attribute area, 6...
counter area. Applicant's agent Patent attorney Takehikoshi Suzue 1 revision? -53ry with 32 figures! J'zo47. 6 Figure 2r'E7i7 8th D

Claims (6)

【特許請求の範囲】[Claims] (1)制御素子とデータメモリとを有する電子装置にお
いて、前記データメモリにあらかじめ記録されたデータ
と外部から与えられたデータとを照合し、両データ間に
所定の関係がないとき前記データメモリ内の所定エリア
にエラーの証跡を記録する手段と、この記録されたエラ
ーの証跡を外部からの命令により電気的にリセットする
手段と、このリセット回数をあらかじめ指定される回数
に制限する手段とを具備したことを特徴とする電子式カ
ウンタ。
(1) In an electronic device having a control element and a data memory, data pre-recorded in the data memory and data given from the outside are compared, and if there is no predetermined relationship between the two data, the data stored in the data memory is means for recording an error trail in a predetermined area of the controller, means for electrically resetting the recorded error trail based on an external command, and means for limiting the number of resets to a predetermined number of times. An electronic counter that is characterized by:
(2)前記制御素子はMPU(マイクロ・プロセッサ・
ユニット)である特許請求の範囲第1項記載の電子式カ
ウンタ。
(2) The control element is an MPU (microprocessor).
The electronic counter according to claim 1, which is a unit).
(3)前記データメモリはPROM(プログラマブル・
リード・オンリ・メモリ)である特許請求の範囲第1項
記載の電子式カウンタ。
(3) The data memory is a PROM (programmable
The electronic counter according to claim 1, which is a read-only memory.
(4)前記電子装置はいわゆるICカードである特許請
求の範囲第1項記載の電子式カウンタ。
(4) The electronic counter according to claim 1, wherein the electronic device is a so-called IC card.
(5)前記データとは暗証番号である特許請求の範囲第
1項記載の電子式カウンタ。
(5) The electronic counter according to claim 1, wherein the data is a personal identification number.
(6)前記エラーの証跡とはエラーの回数である特許請
求の範囲第1項記載の電子式カウンタ。
(6) The electronic counter according to claim 1, wherein the error trail is the number of errors.
JP60027743A 1985-02-15 1985-02-15 Electronic counter Pending JPS61187075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60027743A JPS61187075A (en) 1985-02-15 1985-02-15 Electronic counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60027743A JPS61187075A (en) 1985-02-15 1985-02-15 Electronic counter

Publications (1)

Publication Number Publication Date
JPS61187075A true JPS61187075A (en) 1986-08-20

Family

ID=12229509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60027743A Pending JPS61187075A (en) 1985-02-15 1985-02-15 Electronic counter

Country Status (1)

Country Link
JP (1) JPS61187075A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0626662A1 (en) * 1993-05-26 1994-11-30 Gemplus Card International Chip of IC card with means for limiting the number of authentifications

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0626662A1 (en) * 1993-05-26 1994-11-30 Gemplus Card International Chip of IC card with means for limiting the number of authentifications
FR2705810A1 (en) * 1993-05-26 1994-12-02 Gemplus Card Int Chip card chip provided with a means of limiting the number of authentications.
US5550919A (en) * 1993-05-26 1996-08-27 Gemplus Card International Method and device for limiting the number of authentication operations of a chip card chip

Similar Documents

Publication Publication Date Title
EP0271495B1 (en) Ic card system
US4855578A (en) Portable storage medium processing system
JPH0758500B2 (en) Portable electronic device
JPH021090A (en) Ic card and method for writing its operation program
JPH022475A (en) Ic card
US5442165A (en) Secure IC card system with reusable prototype IC card
KR910009097B1 (en) Ic card
JPS62190584A (en) Portable electronic device
JPS5975380A (en) Ic card
JPS61187075A (en) Electronic counter
JPS5998395A (en) Ic card
JPH01263892A (en) Portable electronic device
JPS62154190A (en) Ic card
JP2501577B2 (en) IC card
JPS62102385A (en) Portable medium
JP2856415B2 (en) Portable electronic devices
JPS63229542A (en) Electronic card
JP3246558B2 (en) IC card
JP2609645B2 (en) Portable electronic devices
JPH07129736A (en) Ic memory card
JPS6376035A (en) Ic card
JP2598056B2 (en) Portable electronic devices
JPH0420509B2 (en)
JPS62128387A (en) Portable electronic device
JP2505003B2 (en) IC card with auxiliary memory