JP2743205B2 - Card reader / writer - Google Patents

Card reader / writer

Info

Publication number
JP2743205B2
JP2743205B2 JP1329898A JP32989889A JP2743205B2 JP 2743205 B2 JP2743205 B2 JP 2743205B2 JP 1329898 A JP1329898 A JP 1329898A JP 32989889 A JP32989889 A JP 32989889A JP 2743205 B2 JP2743205 B2 JP 2743205B2
Authority
JP
Japan
Prior art keywords
card
data
read
reading
head
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1329898A
Other languages
Japanese (ja)
Other versions
JPH03189885A (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.)
Nippon Conlux Co Ltd
Original Assignee
Nippon Conlux 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 Nippon Conlux Co Ltd filed Critical Nippon Conlux Co Ltd
Priority to JP1329898A priority Critical patent/JP2743205B2/en
Publication of JPH03189885A publication Critical patent/JPH03189885A/en
Application granted granted Critical
Publication of JP2743205B2 publication Critical patent/JP2743205B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) この発明はプリペイドカード等のカード読取り書込み
装置に関し、特に、書込みヘッドの断線、カードの加工
等によるデータの書き替え異常を検出して所定の異常処
理を自動的に実行させるカード読取り書込み装置に関す
る。
Description: TECHNICAL FIELD The present invention relates to a card reading / writing device such as a prepaid card, and more particularly to a device for detecting a data rewriting abnormality due to a disconnection of a writing head, processing of a card, etc. The present invention relates to a card reading / writing device that automatically executes abnormality processing.

(従来の技術) 最近プリペイドカードを採用した自動販売機が開発さ
れている。かかる自動販売機はプリペイドカードを自動
販売機に挿入して所望の商品を購入すると共に、この挿
入したプリペイドカードに記憶されている残額から購入
した商品の額を減算して新たな残額を算出し、この算出
した新たな残額でプリペイドカードの内容を書き替え、
その後このプリペイドカードを返却するように構成され
ている。
(Prior Art) Recently, vending machines employing prepaid cards have been developed. Such a vending machine inserts a prepaid card into the vending machine to purchase a desired product, and calculates a new balance by subtracting the amount of the purchased product from the balance stored in the inserted prepaid card. , Rewrite the contents of the prepaid card with this calculated new balance,
Thereafter, the prepaid card is returned.

ところで、上記自動販売機において書込みヘッドの断
線またはプリペイドカードの加工などにより上記プリペ
イドカードの書き替えが正常に行われないと自動販売機
の利用者または自動販売機の管理者に不測の損害を与え
ることがある。例えば、プリペイドカードを用いて自動
販売機から商品を購入したにもかかわらず、プリペイド
カードに記憶されている残額から購入した商品の額が減
算されない場合またはプリペイドカードに記憶されてい
る残額から購入した商品の額よりも低い額しか減算され
ない場合は、自動販売機利用者は結果的に只または設定
価格より安い額で商品を購入したことになり、自動販売
機管理者に損害を与えることになる。また、プリペイド
カードを用いて自動販売機から商品を購入した際に、プ
リペイドカードに記憶されている残額から購入した商品
の額よりも多い額が減算されてしまった場合は、自動販
売機利用者は結果的に設定価格より高い額で商品を購入
したことになり、自動販売機利用者に損害を与えること
になる。
By the way, if the rewriting of the prepaid card is not performed normally due to the disconnection of the write head or the processing of the prepaid card in the vending machine, it causes unexpected damage to the user of the vending machine or the administrator of the vending machine. Sometimes. For example, even if a product is purchased from a vending machine using a prepaid card, the amount of the purchased product is not subtracted from the remaining amount stored in the prepaid card, or the product is purchased from the remaining amount stored in the prepaid card. If only less than the value of the product is deducted, the vending machine user will eventually purchase the product at a lower price than the set price, which will damage the vending machine administrator . In addition, when purchasing a product from a vending machine using a prepaid card, if the amount of the purchased product is subtracted from the remaining amount stored in the prepaid card, the vending machine user As a result, the user purchases the product at a higher price than the set price, which causes damage to the vending machine user.

そこで、プリペイドカードにデータの書込みを行った
後、再読み込み処理を行って、書き込んだデータと再読
み込みデータとが不一致の場合は書込み異常としてカー
ドを自動販売機内に保留し、自動販売機の機能を停止す
るように構成した装置が提案されている。しかしこのよ
うな構成の場合、自動販売機利用者は未だ残額の有るカ
ードを保留されてしまうことになるため甚だ好ましくな
い。しかし、ここで、自動販売機の機能を停止せずに、
しかも書込み異常の生じたカードをそのまま返却する構
成をとると前述したように自動販売機の利用者または自
動販売機の管理者に不測の損害を与えることになる。
Therefore, after writing data to the prepaid card, re-read processing is performed, and if the written data does not match the re-read data, the card is held in the vending machine as a writing error and the function of the vending machine is performed. There is proposed an apparatus configured to stop the operation. However, in the case of such a configuration, a vending machine user has to hold a card having a remaining balance, which is extremely undesirable. However, here, without stopping the function of the vending machine,
In addition, if a configuration in which a card having a writing error is returned as it is is used, unexpected damage is given to a user of the vending machine or an administrator of the vending machine as described above.

(発明が解決しようとする課題) 上述したように、書込みヘッドの断線またはプリペイ
ドカードの加工などによりプリペイドカードの書き替え
が正常に行われないとプリペイドカードを用いた自動販
売機の利用者または自動販売機の管理者に不測の損害を
与え、トラブルの原因になることがある。
(Problems to be Solved by the Invention) As described above, if the rewriting of the prepaid card is not performed normally due to disconnection of the write head or processing of the prepaid card, the user of the vending machine using the prepaid card or the automatic It may cause unexpected damage to the vending machine administrator and cause trouble.

そこでこの発明は書込みヘッドの断線またはプリペイ
ドカードの加工などによりプリペイドカードの書き替え
が正常に行われない場合でも自動販売機の利用者または
自動販売機の管理者等に不測の損害を与えることのない
カード読取り書込み装置を提供することを目的とする。
Therefore, the present invention is intended to prevent unexpected damage to a user of a vending machine or an administrator of a vending machine even when rewriting of a prepaid card is not normally performed due to disconnection of a write head or processing of a prepaid card. It is an object of the present invention to provide a card reading and writing device which does not have any card.

(課題を解決するための手段) 上記目的を達成するため、この発明は、 挿入されたカードから該カードに記録されたデータを
読取り、該読み取ったデータに対して所定の処理を施
し、該所定の処理が施されたデータを前記カードに書込
むことにより該カードのデータの更新を行うカード読取
り書込み装置において、 前記カードの挿入時に読取られたデータを記憶すると
ともに、前記データの更新のために該カードに書込まれ
た更新データを読取り、前記カードの挿入時に記憶され
たデータと前記読取られた更新データとが一致した場合
は、書込み異常として該カードを返却する異常処理手段 を具備することを特徴とする。
(Means for Solving the Problems) In order to achieve the above object, the present invention reads data recorded on an inserted card, performs predetermined processing on the read data, and A card reader / writer that updates the data of the card by writing the data subjected to the processing of (1) to the card, wherein the data read at the time of insertion of the card is stored, and the data is updated. Error processing means for reading the update data written on the card and returning the card as a write error if the data stored when the card is inserted matches the read update data; It is characterized by.

(作用) カードの挿入時に読取られたデータを記憶するととも
に、該データの更新のために該カードに書込まれた更新
データを読取り、カードの挿入時に記憶されたデータと
読取られた更新データとを比較する。
(Operation) The data read when the card is inserted is stored, the update data written on the card is read for updating the data, and the data stored when the card is inserted and the read update data are updated. Compare.

この比較において両者が一致した場合は、カードに対
する装置の書込み異常によりカードのデータが正常に更
新されていないことが考えられる。
If the two match in this comparison, it is considered that the data on the card has not been updated normally due to an abnormal writing of the device to the card.

そこで、この場合、再試行によりカードのデータを正
常に更新できる可能性があるので、装置を異常停止する
ことなく該カードを返却し、該カードを再使用できるよ
うに構成する。
Therefore, in this case, there is a possibility that the data of the card can be updated normally by retry. Therefore, the card is returned without abnormally stopping the apparatus, and the card can be reused.

このような構成によると、装置側の書込みエラー等の
装置側に原因がある場合でも装置が繁雑に停止すること
がなくなり、これにより顧客との不要なトラブルを防止
することができる。
According to such a configuration, even when there is a cause on the device side such as a writing error on the device side, the device does not stop complicatedly, thereby preventing unnecessary troubles with the customer.

(実施例) 以下、この発明の実施例を添付図面を参照して詳細に
説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図はこの発明のカード読取り書込み装置の位置実
施例をブロック図で示したものである。この実施例のカ
ード読取り書込み装置はプリペイドカードを用いた自動
販売機に適用されるもので、センサ1および2、読取り
書込みヘッド3、制御部4、搬送モータ5、メモリ6を
備えて構成される。センサ1および2は第2図に示すよ
うにカード搬送路7に沿って配設され、カード搬送路7
を搬送されるカードCAを検出する。このセンサ1および
2としては、例えば発光素子と受光素子からなり、発光
素子からの光をカードCAが遮断したことを上光素子で検
出することにより、カードCAを検出する周知のセンサを
用いることができる。ここでセンサ1はカードCAがカー
ド搬送路7に挿入されたことを検出するものであり、セ
ンサ2はカードCAの読取り開始位置を検出するものであ
る。
FIG. 1 is a block diagram showing an embodiment of a card reading / writing apparatus according to the present invention. The card reader / writer of this embodiment is applied to a vending machine using a prepaid card, and includes sensors 1 and 2, a read / write head 3, a control unit 4, a transport motor 5, and a memory 6. . The sensors 1 and 2 are disposed along the card transport path 7 as shown in FIG.
Is detected. As the sensors 1 and 2, for example, a known sensor that includes a light emitting element and a light receiving element and detects the card CA by detecting that the card CA has blocked light from the light emitting element with the upper light element is used. Can be. Here, the sensor 1 detects that the card CA has been inserted into the card transport path 7, and the sensor 2 detects the reading start position of the card CA.

読取り書込みヘッド3はカード搬送路7を搬送される
カードCAから必要なデータを読取り、また、カード搬送
路7を搬送されるカードCAに必要なデータを書込むため
のものである。なお、この実施例では読取りヘッドと書
き込みヘッドとを一体に形成した読取り書込みヘッド3
を用いたが、これを読取りヘッドと書き込みヘッドと別
体として形成したものを用いてもよい。
The read / write head 3 reads necessary data from the card CA transported through the card transport path 7 and writes necessary data to the card CA transported through the card transport path 7. In this embodiment, a read / write head 3 in which a read head and a write head are integrally formed.
However, a head formed separately from the read head and the write head may be used.

また、搬送モータ5はカード搬送路7に沿ってカード
CAを搬送するためのものであり、例えばカード搬送路7
に沿って配設された図示しないカード搬送ベルトを駆動
する。この搬送モータ5は正転、逆転可能なモータで、
正転することによりカードCAをカード搬送路7上で矢印
A方向に搬送し、逆転することによりカードCAをカード
搬送路7上で矢印B方向に搬送する。
The transport motor 5 moves the card along the card transport path 7.
For transporting CA, for example, card transport path 7
(Not shown) is driven. The transport motor 5 is a motor that can rotate forward and reverse.
By rotating the card CA in the forward direction, the card CA is transported in the direction of arrow A on the card transport path 7, and by rotating the card CA in the reverse direction, the card CA is transported in the direction of arrow B on the card transport path 7.

制御部4はセンサ1および2の検出出力にもとづき読
取り書込みヘッド3の読取り書込み動作、搬送モータ5
の動作を制御する。
The control unit 4 performs a read / write operation of the read / write head 3 based on the detection outputs of the sensors 1 and 2,
Control the operation of.

メモリ6は制御部4で必要なデータを記憶するもの
で、読取り書込みヘッド3でカードCAから読み取ったデ
ータを格納する格納部A、カードCAから読み取ったデー
タに所定の処理を施したデータを格納する格納部B、カ
ードCAから再読取りしたデータを格納する格納部Cを有
している。
The memory 6 stores data required by the control unit 4, and stores data read from the card CA by the read / write head 3, and stores data obtained by performing predetermined processing on data read from the card CA. And a storage unit C for storing data re-read from the card CA.

次に、この実施例の動作を第2図に示したカードCAの
搬送状態を示す図および第3図から第5図に示すフロー
チャートを参照して詳細に説明する。カードCAがカード
搬送路7に挿入され、センサ1がオンになると制御部4
はこれを検出して(ステップ101)搬送モータ5に正転
指令を与え、これにより搬送モータ5は正転する(ステ
ップ102)。搬送モータ5が正転するとカードCAは第2
図(a)に示す矢印A方向に搬送される。カードCAの先
端がセンサ2の配設箇所に達し、センサ2がオンし(ス
テップ103)、更にカードCAが進んでセンサ2がオフす
ると(ステップ104)(第2図(b)参照)、制御部4
は読取り書込みヘッド3による読取り動作を開始させ、
カードCAから読み取ったデータ、すなわちカードCAの残
額をメモリ6の格納部Aに記憶する(ステップ105)。
カードCAからデータの読み取りが終了すると(第2図
(c)参照)、制御部cは搬送モータ5に逆転指令を与
え、カードCAを所定の保留位置(第2図(b)に示すカ
ードCAの後端がセンサ2の配設位置に達した位置)に戻
す(ステップ106)。このステップ106の動作は第5図に
示すフローチャートにしたがって行われる。すなわち、
先ず、搬送モータ5を逆転させ(ステップ201)、カー
ドCAの後端がセンサ2の配設位置に達し、センサ2がオ
ンすると(ステップ202)、搬送モータ5を停止させ
る。
Next, the operation of this embodiment will be described in detail with reference to the diagram showing the transport state of the card CA shown in FIG. 2 and the flowcharts shown in FIG. 3 to FIG. When the card CA is inserted into the card transport path 7 and the sensor 1 is turned on, the control unit 4
Detects this (step 101) and gives a forward rotation command to the transport motor 5, whereby the transport motor 5 rotates forward (step 102). When the transport motor 5 rotates forward, the card CA is in the second position.
It is transported in the direction of arrow A shown in FIG. When the leading end of the card CA reaches the position where the sensor 2 is provided, the sensor 2 is turned on (step 103), and the card CA is further advanced and the sensor 2 is turned off (step 104) (see FIG. 2 (b)). Part 4
Starts a read operation by the read / write head 3,
The data read from the card CA, that is, the balance of the card CA is stored in the storage section A of the memory 6 (step 105).
When the reading of the data from the card CA is completed (see FIG. 2C), the control unit c issues a reverse rotation command to the transport motor 5 to place the card CA in a predetermined holding position (the card CA shown in FIG. 2B). (The position where the rear end reaches the position where the sensor 2 is disposed) (step 106). The operation of step 106 is performed according to the flowchart shown in FIG. That is,
First, the transport motor 5 is reversed (step 201), and when the rear end of the card CA reaches the position where the sensor 2 is provided and the sensor 2 is turned on (step 202), the transport motor 5 is stopped.

ここで、商品販売にもとづく減算指令入力があると
(ステップ107)、格納部Aに記憶したカードCAの残額
から減算額、すなわち販売した商品の販売価格を減算
し、その減算値をメモリ6の格納部Bに記憶する(ステ
ップ108)。続いて搬送モータ109を正転させ(ステップ
109)、センサ2がオフすると(ステップ110)、読取り
書込みヘッド3を駆動し、格納部Bの内容をカードCAに
書き込む(ステップ111)。カードCAのデータの書込み
が終了するとカードCAを保留位置(第2図(b)参照)
に戻す(ステップ112)。このステップ112の動作は前述
したステップ106の動作と同様で、その詳細は第5図の
フローチャートに示されている。
Here, when there is a subtraction command input based on the product sale (step 107), the subtraction amount, that is, the selling price of the sold product is subtracted from the remaining amount of the card CA stored in the storage unit A, and the subtracted value is stored in the memory 6. It is stored in the storage unit B (step 108). Subsequently, the transport motor 109 is rotated forward (step
109) When the sensor 2 is turned off (step 110), the read / write head 3 is driven to write the contents of the storage section B to the card CA (step 111). When the writing of the data of the card CA is completed, the card CA is held at the holding position (see FIG. 2B).
(Step 112). The operation of step 112 is the same as the operation of step 106 described above, and details thereof are shown in the flowchart of FIG.

カードCAが保留位置に戻されると、続いて搬送モータ
5を正転させ(ステップ113)、センサ2がオフになる
と(ステップ114)、読取り書込みヘッド3を駆動し
て、カードCAのデータの再読取りを行い、この再読取り
したデータをメモリ6の格納部Cに記憶する(ステップ
115)。そして、第5図のフローチャートに示す処理を
実行してカードCAを保留位置(第2図(b)参照)に戻
す(ステップ116)。
When the card CA is returned to the holding position, the transport motor 5 is rotated forward (step 113), and when the sensor 2 is turned off (step 114), the read / write head 3 is driven to re-read the data of the card CA. The data is read and the re-read data is stored in the storage section C of the memory 6 (step
115). Then, the processing shown in the flowchart of FIG. 5 is executed to return the card CA to the holding position (see FIG. 2B) (step 116).

続いて、格納部Cの内容が格納部Aの内容と等しいか
否かの判断がなされる(ステップ117)。ここで、格納
部Aの内容は、挿入されたカードCAの最初の内容であ
り、格納部Cに内容は、ステップ111で格納部Bの内容
に書き替えられたカードCAの内容をステップ115で再読
取りした内容であるので、ステップ111における書き替
えが正常に行われていれば格納部Cの内容は格納部Aの
内容と異なるはずである。
Subsequently, it is determined whether or not the content of the storage unit C is equal to the content of the storage unit A (step 117). Here, the content of the storage unit A is the first content of the inserted card CA, and the content of the storage unit C is the content of the card CA rewritten to the content of the storage unit B in step 111 in step 115. Since the contents are read again, the contents of the storage unit C should be different from the contents of the storage unit A if the rewriting in step 111 has been performed normally.

しかし、ここで格納部Cの内容と格納部Aの内容とが
一致すると、ステップ111におけるカードCAの正常な書
き替えが正常になされていないと判断し、商品の送出を
制御する図示しない主制御側に対して商品搬送禁止信号
を送出する(ステップ118)。これにより販売すべき商
品の搬送が禁止される。続いてカードCAから読み取った
残額の内容、すなわちメモリ6の格納部Aの内容を0円
にし(ステップ119)、カードCAを返却する(ステップ1
20)。そして、異常発生回数を示す値ERCを1増加さ
せ、これを新たな値ERCとして設定する。
However, if the contents of the storage unit C and the contents of the storage unit A match, it is determined that the normal rewriting of the card CA in step 111 has not been performed normally, and the main control (not shown) for controlling the sending of the product is performed. (Step 118). As a result, conveyance of the product to be sold is prohibited. Subsequently, the contents of the balance read from the card CA, that is, the contents of the storage section A of the memory 6 are set to 0 yen (step 119), and the card CA is returned (step 1).
20). Then, the value ERC indicating the number of times of occurrence of abnormality is increased by 1, and set as a new value ERC.

次にこの値ERCが5を越えたか否か(ERC>5)の判断
がなされ、ERC>5でないと待機状態になる。待機状態
になると再びカードCAの挿入が可能になる。
Next, it is determined whether or not this value ERC has exceeded 5 (ERC> 5). If ERC> 5 is not satisfied, a standby state is set. In the standby state, the card CA can be inserted again.

ところで、カードCAの挿入を所定回数(この実施例の
場合5回)繰り返したにもかかわらず、カードCAの書き
替えが正常に行われないと、ステップ122でERC>5が成
立する。この場合は読取り書込みヘッド3の断線等の異
常として販売動作を停止する。
By the way, if the rewriting of the card CA is not normally performed even though the insertion of the card CA is repeated a predetermined number of times (five times in this embodiment), ERC> 5 is satisfied in step 122. In this case, the selling operation is stopped as an abnormality such as disconnection of the read / write head 3.

ステップ117において格納部Cの内容と格納部Aの内
容とが一致しないと、少なくともカードCAの内容は書き
替えられていると判断して、次に格納部Cの内容が格納
部Bの内容、すなわち書き替えようとした内容と一致す
るか否かを調べる(ステップ123)。ここで、カードCA
の書き替えが正常に行われていると格納部Cの内容と格
納部Bの内容は等しいはずである。
If the contents of the storage section C do not match the contents of the storage section A in step 117, it is determined that at least the contents of the card CA have been rewritten, and then the contents of the storage section C are replaced with the contents of the storage section B, That is, it is checked whether or not the contents match the contents to be rewritten (step 123). Where card CA
If the rewriting has been performed normally, the contents of the storage section C and the contents of the storage section B should be equal.

しかし、ここでは格納部Cの内容と格納部Bの内容が
一致しないと、ステップ111における書き替えが正確に
行われていないか、ステップ115における再読取りに不
良が生じた等の異常が生じたと判断する。この場合はカ
ードCAのデータが不定となっているので図示しない主制
御側に商品搬送許可信号を送出し(ステップ124)、商
品の払出しを行った後、故障として販売動作を停止す
る。この場合はカードCAの返却は行わない。なお、この
場合カードCA自体にアラーム(異常)パンチまたは印刷
をしてカードを返却するように構成してもよい。またこ
の場合、同時に異常表示を行うように構成してもよい。
However, in this case, if the contents of the storage unit C and the contents of the storage unit B do not match, it is assumed that the rewriting in step 111 is not performed correctly, or that an abnormality such as a failure in rereading in step 115 has occurred. to decide. In this case, since the data of the card CA is indefinite, a merchandise transport permission signal is sent to the main control (not shown) (step 124). After the merchandise is paid out, the selling operation is stopped as a failure. In this case, the card CA is not returned. In this case, the card CA itself may be configured to perform an alarm (abnormal) punch or print and return the card. In this case, an abnormality display may be performed at the same time.

ステップ123において格納部Cの内容と格納部Bの内
容が一致すると、ステップ111における書き替え動作が
正常に行われていると判断する。この場合、図示しない
主制御側に商品搬送を許可する商品搬送許可信号を送出
する(ステップ125)。これにより商品が払い出され
る。その後、カードCAを返却し(ステップ126)、値ERC
を0にクリアし(ステップ127)、待機状態となる。
If the contents of the storage section C and the contents of the storage section B match in step 123, it is determined that the rewriting operation in step 111 has been performed normally. In this case, a product transport permission signal for permitting product transport is sent to the main control (not shown) (step 125). Thereby, the goods are paid out. Thereafter, the card CA is returned (step 126), and the value ERC is returned.
Is cleared to 0 (step 127), and a standby state is set.

このようにこの実施例によると (1)格納部Cの内容と格納部Aの内容が一致し、この
回数が5回以内の場合は商品を販売せずカードを返却す
る。
As described above, according to this embodiment, (1) the contents of the storage unit C and the contents of the storage unit A match, and if the number of times is less than five, the card is returned without selling the product.

(2)格納部Cの内容と格納部Aの内容が一致し、この
回数が5回を越えるとヘッド断線として停止する。
(2) When the contents of the storage section C and the contents of the storage section A match, and the number of times exceeds 5, the operation stops as a head disconnection.

(3)格納部Cの内容と格納部Aの内容が一致せずしか
も格納部Cの内容と格納部Bの内容が一致しない場合は
カードを返却せず故障として停止する(または異常表示
したカードを返却する)。
(3) If the contents of the storage unit C and the contents of the storage unit A do not match, and the contents of the storage unit C and the contents of the storage unit B do not match, the card is not returned and stopped as a failure (or a card that is abnormally displayed). Will be returned).

(4)格納部Cの内容と格納部Aの内容が一致せずしか
も格納部Cの内容と格納部Bの内容が一致すると正常な
商品販売動作を行う。
(4) If the contents of the storage unit C and the contents of the storage unit A do not match, and if the contents of the storage unit C and the contents of the storage unit B match, a normal product selling operation is performed.

ように動作する。これにより自動販売機の利用者または
自動販売機の管理者等に不測の損害を与えることがなく
なる。
Works like that. This prevents unexpected damage to the user of the vending machine or the manager of the vending machine.

(発明の効果) 以上説明したようにこの発明によればカードのデータ
が書き替えられなかった場合は、自動的にそのカードが
返却され、再びそのカードを挿入して使用することがで
きるように構成されるため、顧客との不要なトラブルが
防止でき、またそのための構成もソフトウエアで処理で
きるため、非常に簡単であるという利点がある。
(Effect of the Invention) As described above, according to the present invention, if data on a card is not rewritten, the card is automatically returned, and the card can be inserted and used again. The configuration has the advantage that unnecessary trouble with the customer can be prevented, and the configuration for that can be processed by software, so that it is very simple.

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

第1図はこの発明の一実施例を示すブロック図、第2図
はこの実施例の動作を説明するカードの搬送状態を示す
図、第3図から第5図はこの実施例の動作を説明するフ
ローチャートである。 1、2……センサ、3……読取り書込みヘッド、4……
制御部、5……搬送モータ、6……メモリ。
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a diagram showing a card transfer state for explaining the operation of this embodiment, and FIGS. 3 to 5 explain the operation of this embodiment. FIG. 1, 2,... Sensor, 3... Read / write head, 4.
Control unit, 5: transport motor, 6: memory.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】挿入されたカードから該カードに記録され
たデータを読取り、該読み取ったデータに対して所定の
処理を施し、該所定の処理が施されたデータを前記カー
ドに書込むことにより該カードのデータの更新を行うカ
ード読取り書込み装置において、 前記カードの挿入時に読取られたデータを記憶するとと
もに、前記データの更新のために該カードに書込まれた
更新データを読取り、前記カードの挿入時に記憶された
データと前記読取られた更新データとが一致した場合
は、書込み異常として該カードを返却する異常処理手段 を具備することを特徴とするカード読取り書込み装置。
1. A method for reading data recorded on a card from an inserted card, performing predetermined processing on the read data, and writing the data on which the predetermined processing has been performed on the card. In a card reading / writing device for updating data of the card, while storing data read at the time of insertion of the card, reading updated data written on the card for updating the data, A card reading / writing device comprising: an error processing unit that returns the card as a writing error when the data stored at the time of insertion matches the read update data.
【請求項2】前記カードは、 所定の残高が記録されたプリペイドカードであり、 前記異常処理手段は、 前記カードから該カードの残高を読取る第1の読取り手
段と、 前記読取り手段で読み取った前記カードの残高を記憶す
る第1の記憶手段と、 前記第1の記憶手段に記憶された残高から所望の商品の
額を減算して該カードの新残高を算出する算出手段と、 前記算出手段で算出した前記カードの新残高を記憶する
第2の記憶手段と、 前記第2の記憶手段に記憶された前記カードの新残高を
該カードに書き込むことにより該カードの残高を更新す
る書込み手段と、 前記書込み手段で書き込まれた新残高を前記カードから
読み取る第2の読取り手段と、 前記第2の読取り手段で読み取った前記カードの新残高
を記憶する第3の記憶手段と、 前記第3の記憶手段に記憶された前記カードの新残高と
前記第1の記憶手段に記憶された前記カードの残高とを
比較する第1の比較手段と、 前記第3の記憶手段に記憶された前記の新残高と前記第
2の記憶手段に記憶された前記カードの新残高とを比較
する第2の比較手段と、 前記第1の比較手段の比較結果が不一致でありかつ前記
第2の比較手段の比較結果が一致の場合は、前記商品の
販売許可信号を出力した後該カードを返却し、前記第1
の比較手段の比較結果が一致である場合は、前記販売許
可信号の出力を出力することなく該カードを返却する処
理手段と を具備することを特徴とする請求項1記載のカード読取
り書込み装置。
2. The card according to claim 1, wherein the card is a prepaid card on which a predetermined balance is recorded, wherein the abnormality processing means includes: first reading means for reading the balance of the card from the card; First storage means for storing the balance of the card, calculation means for subtracting the amount of the desired product from the balance stored in the first storage means, and calculating a new balance for the card; Second storage means for storing the calculated new balance of the card; writing means for updating the balance of the card by writing the new balance of the card stored in the second storage means to the card; Second reading means for reading the new balance written by the writing means from the card; third storage means for storing the new balance of the card read by the second reading means; First comparison means for comparing the new balance of the card stored in the third storage means with the balance of the card stored in the first storage means, and the first balance stored in the third storage means A second comparison means for comparing the new balance with the new balance of the card stored in the second storage means, and a comparison result of the first comparison means is inconsistent and the second comparison means If the comparison result by the comparing means is identical, the card is returned after outputting the sale permission signal for the product, and the first card is returned.
2. The card reading / writing device according to claim 1, further comprising: a processing unit that returns the card without outputting the sales permission signal when the comparison result of the comparing unit is the same.
【請求項3】前記異常処理手段による異常処理の回数を
計数する計数手段と、 前記計数手段の計数値が所定値に達すると装置を異常停
止させる異常停止手段と を更に備えることを特徴とする請求項1記載のカード読
取り書込み装置。
3. The apparatus according to claim 1, further comprising: counting means for counting the number of times of the abnormal processing by the abnormal processing means; and abnormal stopping means for abnormally stopping the apparatus when the count value of the counting means reaches a predetermined value. The card reading / writing device according to claim 1.
【請求項4】カードを搬送する搬送モータと、 前記搬送モータによって搬送されたカードからデータを
読み取る読取りヘッドと、 前記搬送モータによって搬送されたカードにデータを書
き込む書込みヘッドとを備えたカード読取り書込み装置
において、 前記読取りヘッドで読み取ったデータに所定の処理を施
し、この所定の処理の施されたデータを前記書込みヘッ
ドによって前記カードに書込み、この書込みヘッドで書
き込まれたデータを前記カードから前記読取りヘッドに
よって再読取りし、この再読取りしたデータと前記読取
りヘッドで最初に読み取ったデータとを比較し、両者が
一致した場合は前記書込みヘッドの書込み異常として該
カードを返却する異常処理手段 を具備することを特徴とするカード読取り書込み装置。
4. A card read / write comprising a transport motor for transporting a card, a read head for reading data from the card transported by the transport motor, and a write head for writing data on the card transported by the transport motor. In the apparatus, a predetermined process is performed on the data read by the read head, the data subjected to the predetermined process is written to the card by the write head, and the data written by the write head is read from the card by the read head. An error processing means for re-reading the data by the head, comparing the re-read data with the data read first by the read head, and returning the card as a write error of the write head when the two match. A card reading / writing device characterized by the above-mentioned.
【請求項5】カードを搬送する搬送モータと、 前記搬送モータによって搬送されたカードからデータを
読み取る読取りヘッドと、 前記搬送モータによって搬送されたカードにデータを書
き込む書込みヘッドとを備えたカード読取り書込み装置
において、 前記読取りヘッドで読み取ったデータに所定の処理を施
し、この所定の処理の施されたデータを前記書込みヘッ
ドによって前記カードに書込み、この書込みヘッドで書
き込まれたデータを前記カードから前記読取りヘッドに
よって再読取りし、この再読取りしたデータと前記読取
りヘッドで最初に読み取ったデータとを比較し、両者が
一致した場合は前記書込みヘッドの書込み異常として該
カードを返却し、前記再読取りしたデータと前記読取り
ヘッドで最初に読み取ったデータとが不一致の場合は、
更に前記再読取りしたデータと前記所定の処理の施され
たデータとを比較し、両者が不一致の場合は故障として
装置を異常停止させる異常処理手段 を備えたカード読取り書込み装置。
5. A card read / write comprising a transport motor for transporting a card, a read head for reading data from the card transported by the transport motor, and a write head for writing data to the card transported by the transport motor. In the apparatus, a predetermined process is performed on the data read by the read head, the data subjected to the predetermined process is written to the card by the write head, and the data written by the write head is read from the card by the read head. The card is re-read by the head, the re-read data is compared with the data read first by the read head, and if they match, the card is returned as a write error of the write head, and the re-read data is returned. And the data read first by the read head In the case of the,
Further, a card reading / writing device comprising an error processing means for comparing the re-read data with the data subjected to the predetermined processing and, if the two do not match, abnormally stopping the device as a failure.
JP1329898A 1989-12-20 1989-12-20 Card reader / writer Expired - Fee Related JP2743205B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1329898A JP2743205B2 (en) 1989-12-20 1989-12-20 Card reader / writer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1329898A JP2743205B2 (en) 1989-12-20 1989-12-20 Card reader / writer

Publications (2)

Publication Number Publication Date
JPH03189885A JPH03189885A (en) 1991-08-19
JP2743205B2 true JP2743205B2 (en) 1998-04-22

Family

ID=18226491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1329898A Expired - Fee Related JP2743205B2 (en) 1989-12-20 1989-12-20 Card reader / writer

Country Status (1)

Country Link
JP (1) JP2743205B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58200376A (en) * 1982-05-18 1983-11-21 Nippon Telegr & Teleph Corp <Ntt> Magnetic card recording and reproducing device

Also Published As

Publication number Publication date
JPH03189885A (en) 1991-08-19

Similar Documents

Publication Publication Date Title
US5532463A (en) Process for making secure the writing of sensitive data into the EEPROM data storage memory of a memory card and a memory card for use in the process
JP2743205B2 (en) Card reader / writer
JP2761990B2 (en) Data protection device for electronic equipment
JP3100514B2 (en) Card type vending machine
JP2730263B2 (en) Card-type vending machine controller
JP2600845B2 (en) Prepaid card vending machine
JP2575640B2 (en) Media processing device
JP2680640B2 (en) Card type vending machine
JPH0296897A (en) Card system automatic vending machine
JP2934304B2 (en) Fare settlement device with card type ticket
JP2001143136A (en) Controller for automatic vending machine and vending information totaling system
JP2939695B2 (en) Card reader / writer
JP2897797B2 (en) Vending machine production time management device
JPH043294A (en) Goods sales data processor
JP3024052B2 (en) Card use processing device
JPH074997B2 (en) Card processing equipment
JPH03253994A (en) Controller for card reader/writer
JP2736200B2 (en) Vending machine sales price setting device
JPH05108926A (en) Automatic transaction device
JP2667243B2 (en) IC card system
JPH06195271A (en) Data processor
JPH0343889A (en) Dispenser
JP3036816B2 (en) Card data unauthorized write protection device
JPH04361951A (en) Medium carrying control method for automatic cash transaction device
JPH10171933A (en) Customer information card use system

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20080206

Year of fee payment: 10

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees