JP2999433B2 - Recording medium processing device - Google Patents

Recording medium processing device

Info

Publication number
JP2999433B2
JP2999433B2 JP9133574A JP13357497A JP2999433B2 JP 2999433 B2 JP2999433 B2 JP 2999433B2 JP 9133574 A JP9133574 A JP 9133574A JP 13357497 A JP13357497 A JP 13357497A JP 2999433 B2 JP2999433 B2 JP 2999433B2
Authority
JP
Japan
Prior art keywords
data
magnetic
card
recording
read
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
JP9133574A
Other languages
Japanese (ja)
Other versions
JPH10326324A (en
Inventor
貮夫 甲斐
勝志 福満
Original Assignee
三和ニューテック株式会社
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 三和ニューテック株式会社 filed Critical 三和ニューテック株式会社
Priority to JP9133574A priority Critical patent/JP2999433B2/en
Publication of JPH10326324A publication Critical patent/JPH10326324A/en
Application granted granted Critical
Publication of JP2999433B2 publication Critical patent/JP2999433B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、記録媒体に対して記
録・再生データの読取処理及び書込処理を実効する記録
媒体処理装置に関する。
BACKGROUND OF THE INVENTION This invention relates to a recording medium processing apparatus for effective reading processing and write processing of the recording and reproducing data to serial Rokunakadachi body.

【0002】[0002]

【従来の技術】従来より、磁気カード等の記録媒体に磁
気データ等の記録・再生データを記録し、この記録媒体
に対してカード処理機等の記録媒体処理装置により、記
録・再生データの読取処理及び書込処理を実行するよう
にしたシステムがある。このようなシステムは、例え
ば、累計数に応じて各種サービスと交換されるポイント
を購入金額に応じて店舗から顧客に付与するポイントカ
ードシステムや、顧客が予め支払った所定金額から購入
金額を差し引くプリペイドカードシステムとして用いら
れている。
2. Description of the Related Art Conventionally, recording / reproducing data such as magnetic data is recorded on a recording medium such as a magnetic card, and the recording / reproducing data is read from the recording medium by a recording medium processing device such as a card processor. There is a system that executes processing and writing processing. Such a system includes, for example, a point card system in which points exchanged with various services in accordance with the cumulative number are provided from the store to the customer in accordance with the purchase price, or a prepaid system in which the purchase price is subtracted from a predetermined price paid in advance by the customer. Used as a card system.

【0003】ポイントカードシステムでは、記録・再生
データであるポイント数の累計データを記憶するポイン
トカードを記録媒体とし、店舗における商品の購入時等
に顧客が提示したポイントカードから店舗に設置された
カード処理機によりポイント数の累計データを読み出
し、今回の購入金額に応じたポイントを加算することに
より累計データを更新してポイントカードに書き込む。
[0003] In the point card system, a point card for storing cumulative data of the number of points, which is recording / reproducing data, is used as a recording medium. The accumulated data of the number of points is read out by the processor, and the accumulated data is updated and written to the point card by adding points according to the current purchase amount.

【0004】また、プリペイドカードシステムでは、記
録・再生データである顧客の前払い金額から購入金額を
差し引いた残高データを記憶するプリペイドカードを記
憶媒体とし、店舗における商品の購入時等に顧客が提示
したプリペイドカードから店舗に設置されたカード処理
機により残高データを読み出し、今回の購入金額を減算
することにより残高データを更新してプリペイドカード
に書き込む。
Further, in the prepaid card system, a prepaid card for storing balance data obtained by subtracting a purchase amount from a customer's prepaid amount, which is recorded / reproduced data, is used as a storage medium and presented by a customer at the time of purchase of a product at a store. The balance data is read from the prepaid card by a card processing machine installed in the store, the balance data is updated by subtracting the current purchase amount, and the balance data is updated and written to the prepaid card.

【0005】これらのポイントカードやプリペイドカー
ドとしては、一般に、記録・再生データを磁気記録する
磁気カードが用いられる。この磁気カードには、記録・
再生データを一定方向に連続して記録する磁気ストライ
プが形成されている。磁気カードを処理するカード処理
機は、磁気カードの磁気ストライプに接触して磁気デー
タの読取/書込処理を行う磁気ヘッドを備え、挿入され
た磁気カードをその磁気ストライプに磁気ヘッドが一定
方向に対向するように搬送し、この間に磁気ストライプ
に記録されている記録・再生データを一方向に読み出し
て所謂シリアル処理する。
As these point cards and prepaid cards, magnetic cards for magnetically recording recorded / reproduced data are generally used. This magnetic card has
A magnetic stripe for recording reproduced data continuously in a certain direction is formed. A card processing machine for processing a magnetic card is provided with a magnetic head for reading / writing magnetic data by contacting a magnetic stripe of the magnetic card. The data is conveyed so as to face each other, and during this time, the recorded / reproduced data recorded on the magnetic stripe is read in one direction and subjected to so-called serial processing.

【0006】即ち、カード処理機は、磁気カードが記録
している記録・再生データを、磁気ストライプに記録さ
れた方向と同一方向に順に読み出し、読み出した記録・
再生データを所定の更新処理の後に再度磁気カードに書
き込む。このため、カード処理機における磁気カードの
処理を正確に行うためには、磁気カードの磁気ストライ
プに記録されている記録・再生データをその記録方向と
同一方向に読み取る必要があり、そのためにはカード処
理機に対して磁気カードが適正な方向に挿入されなけれ
ばならない。
That is, the card processor sequentially reads recorded / reproduced data recorded on the magnetic card in the same direction as the direction recorded on the magnetic stripe, and reads the recorded / reproduced data.
The reproduction data is written to the magnetic card again after a predetermined update process. For this reason, in order to accurately process a magnetic card in a card processor, it is necessary to read recording / reproducing data recorded on a magnetic stripe of the magnetic card in the same direction as the recording direction. The magnetic card must be inserted in the proper direction with respect to the processor.

【0007】ところが、磁気カードは偏平な矩形を呈す
ることから、カード処理機に対する磁気カードの挿入方
向を一方向に限定することは困難で、磁気カードがカー
ド処理機に常に適正な方向に挿入されるとは限らず、磁
気カードが反対方向に挿入された場合には、磁気ヘッド
により記録・再生データが反対方向に読み取られること
になって、カード処理機において記録・再生データの処
理を正確に行うことができない。
However, since the magnetic card has a flat rectangular shape, it is difficult to limit the insertion direction of the magnetic card to the card processor in one direction, and the magnetic card is always inserted into the card processor in an appropriate direction. However, if the magnetic card is inserted in the opposite direction, the magnetic head will read the recorded / reproduced data in the opposite direction, and the card processor will accurately process the recorded / reproduced data. Can't do it.

【0008】そこで、従来の磁気カードでは、図6に示
すように、前後にプリアンブルデータ61及びポストア
ンブルデータ62を配置した記録・再生データ63の開
始位置にスタートマーク(以下、STXという。)64
を付与している。プリアンブルデータ61及びポストア
ンブルデータ62は、磁気データの処理の同期を取るた
めのデータであり、一般に論理値0の所定数のデータ列
によって構成されている。また、STX64は、記録・
再生データ63の開始位置を特定するデータであり、論
理値1及び0の所定の組み合わせによって構成されてい
る。
Therefore, in the conventional magnetic card, as shown in FIG. 6, a start mark (hereinafter, referred to as STX) 64 is provided at a start position of recording / reproducing data 63 in which preamble data 61 and postamble data 62 are arranged before and after.
Has been granted. The preamble data 61 and the postamble data 62 are data for synchronizing the processing of the magnetic data, and are generally constituted by a predetermined number of data strings having a logical value of 0. In addition, STX64 records /
This data specifies the start position of the reproduction data 63, and is constituted by a predetermined combination of logical values 1 and 0.

【0009】カード処理機は、磁気カードの磁気ストラ
イプから読み取った磁気データにおいてSTX64を検
索し、STX64に続く磁気データを記録・再生データ
63として処理する。即ち、カード処理機は、STX6
4として予め定められた組み合わせのデータ列が前方に
存在することを条件として磁気データの読取方向が適正
であるか否かを判断し、読み取った磁気データにおいて
STX64として予め定められた組み合わせのデータ列
を検出しなかった場合には、記録・再生データ63の処
理を行うことなく磁気カードを排出する。
The card processor searches for STX 64 in the magnetic data read from the magnetic stripe of the magnetic card, and processes the magnetic data following STX 64 as recording / reproducing data 63. That is, the card processing machine is STX6
4 to determine whether the reading direction of the magnetic data is appropriate on condition that a data string of a predetermined combination exists in the front, and determine a data string of a predetermined combination as STX64 in the read magnetic data. Is not detected, the magnetic card is ejected without processing the recorded / reproduced data 63.

【0010】したがって、図6に示す磁気カード60が
カード処理機に矢印A方向に挿入された場合には、カー
ド処理機においてプリアンブルデータ61に続いてST
X64が検出され、STX64に続く記録・再生データ
63に対する処理が適正に行われる。一方、磁気カード
60がカード処理機に矢印B方向に挿入された場合に
は、カード処理機において磁気データがポストアンブル
データ62側から読み取られることになり、記録・再生
データが反対方向に読み取られるが、STX64のデー
タ列も反対方向に読み取られる結果、カード処理機は読
み取った磁気データにおいてSTX64を検出せず、反
対方向に読み取った記録・再生データ63に基づく誤っ
た処理を行うことがない。
Therefore, when the magnetic card 60 shown in FIG. 6 is inserted into the card processor in the direction of arrow A, the card processor follows the preamble data 61 and the ST.
X64 is detected, and the processing on the recording / reproducing data 63 subsequent to STX64 is properly performed. On the other hand, when the magnetic card 60 is inserted into the card processor in the direction of arrow B, the magnetic data is read from the postamble data 62 side in the card processor, and the recording / reproducing data is read in the opposite direction. However, since the data string of STX64 is also read in the opposite direction, the card processor does not detect STX64 in the read magnetic data, and does not perform erroneous processing based on the read / write data 63 read in the opposite direction.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、従来の
磁気カードに記録される磁気データにおいて、記録・再
生データの開始位置に配置されるSTXは、記録・再生
データと同様に、論理値1及び0を組み合わせたデータ
列によって構成されており、カード処理機における処理
によって記録・再生データのデータ列の組み合わせが変
更されることから、記録・再生データの最後部にSTX
のデータ列の前後位置を反転したデータ列が存在する可
能性がある。
However, in the magnetic data recorded on the conventional magnetic card, the STX arranged at the start position of the recording / reproducing data has the logical values 1 and 0 similarly to the recording / reproducing data. And the data sequence of the recording / reproducing data is changed by the processing in the card processor, so that the STX is added to the last part of the recording / reproducing data.
There is a possibility that there is a data string in which the front and rear positions of the data string are inverted.

【0012】このように、STXのデータ列の前後位置
を反転したデータ列が最後部に含まれる記録・再生デー
タを記録した磁気カードがカード処理機に反対方向に挿
入された場合、一般に前後方向の判断ができないポスト
アンブルデータに続いて、STXのデータ列の前後位置
を反転したデータ列が反対方向から読み取られることに
なる。この結果、カード処理機は記録・再生データの最
後部のデータ列をSTXのデータ列として検出してしま
い、反対方向に読み取った記録・再生データの残りの部
分、及び、反対方向に読み取ったSTXに基づいて誤っ
た処理を実行してしまう。
As described above, when a magnetic card on which recording / reproducing data having a data sequence obtained by inverting the front / rear position of the STX data sequence is included at the rear end is inserted in the card processing machine in the opposite direction, generally the front / rear direction is obtained. Following the postamble data for which it cannot be determined, a data string in which the front and rear positions of the STX data string are inverted is read from the opposite direction. As a result, the card processor detects the last data row of the recording / reproducing data as the STX data row, and the remaining part of the recording / reproducing data read in the opposite direction and the STX read in the opposite direction. Erroneous processing is executed based on the

【0013】このカード処理機における誤処理を防止す
るためには、正逆両方向に挿入可能な磁気カードをカー
ド処理機に対して適正な方向にのみ挿入することをカー
ド処理機の操作者に強制する必要があり、磁気カードの
取扱作業が煩雑になる問題がある。
In order to prevent erroneous processing in the card processor, the operator of the card processor is forced to insert a magnetic card which can be inserted in both forward and reverse directions only in an appropriate direction with respect to the card processor. And the handling of the magnetic card becomes complicated.

【0014】このような問題は、記録・再生データを磁
気記録する磁気カード、及び、この磁気カードを処理す
るカード処理機においてのみ生じる問題ではなく、記録
・再生データを一定方向に記録した記録媒体、及び、こ
の記録媒体が記録する記録・再生データを処理する記録
媒体処理装置において一般的に生じる問題である。
Such a problem does not occur only in a magnetic card for magnetically recording recording / reproducing data and a card processor for processing the magnetic card, but also for a recording medium in which recording / reproducing data is recorded in a certain direction. And a recording medium processing apparatus that processes recording / reproducing data recorded by the recording medium.

【0015】この発明の目的は、記録媒体から読み取っ
た記録・再生データの読取方向を記録媒体処理装置にお
いて判別できるようにし、記録媒体処理装置に対する記
録媒体の設定方向が適正な方向と反対方向である場合に
も、記録・再生データの処理を適正に行うことができ、
カード処理機に対するカードの挿入方向等の記録媒体処
理装置に対する記録媒体の設定方向を適正な方向に強制
する必要がなく、記録媒体の取扱作業を容易にすること
ができる記録媒体処理装置を提供することにある。
An object of the present invention is to enable a recording medium processing device to determine the reading direction of recorded / reproduced data read from a recording medium, so that the setting direction of the recording medium with respect to the recording medium processing device is opposite to the proper direction. In some cases, the processing of recorded / playback data can be performed properly,
It is not necessary to force the setting direction of the recording medium to the recording medium processing apparatus in the insertion direction or the like of the card in the proper orientation with respect to the card processor, the recording medium body processing apparatus capable of facilitating the handling of the recording medium To provide.

【0016】[0016]

【課題を解決するための手段】請求項1に記載した発明
は、記録媒体から一定方向に連続的に読み取ったデータ
列において前側方向判別データの順方向の配列、及び、
後側方向判別データの逆方向の配列を読取方向に検索
し、前側方向判別データの順方向の配列が先に存在する
場合には記録・再生データを読取方向に処理し、後側方
向判別データの逆方向の配列が先に存在する場合には記
録・再生データを読取方向とは逆方向に処理するデータ
処理手段を設けたことを特徴とする。
According to a first aspect of the present invention, there is provided an apparatus for reading data continuously read in a fixed direction from a recording medium.
A forward array of the front direction discrimination data in the column, and
Search in the reading direction for the reverse direction of the rear direction discrimination data
And the forward array of front direction discrimination data exists first.
In this case, process recorded / reproduced data in the reading direction and
If the reverse direction array of direction discrimination data exists first,
Data for processing recording / playback data in the direction opposite to the reading direction
A processing means is provided .

【0017】[0017]

【0018】[0018]

【0019】請求項に記載した発明においては、記録
・再生データより先に前側方向判別データが存在する場
合には記録・再生データを読取方向に処理し、記録・再
生データより先に後側方向判別データが存在する場合に
は記録・再生データを読取方向と逆方向に処理する。し
たがって、記録媒体の設定方向に拘らず読み取られた記
録・再生データが適正に処理される。
In the first aspect of the present invention, if the front direction discrimination data exists before the recording / reproducing data, the recording / reproducing data is processed in the reading direction, and the rear-side discriminating data is processed before the recording / reproducing data. If the direction discrimination data exists, the recording / reproduction data is processed in the direction opposite to the reading direction. Therefore, the recorded / reproduced data read regardless of the setting direction of the recording medium is properly processed.

【0020】[0020]

【発明の実施の形態】以下に、この発明の実施形態の一
例を、記録・再生データを磁気記録する磁気カード、及
び、磁気カードを処理するカード処理機を例に挙げて説
明する。図1は、この発明の実施形態の一例である磁気
カード及びカード処理機を示す外観図である。カード処
理機1は、前面にカード挿入口2が形成されており、こ
のカード挿入口2に顧客が提示した磁気カード10が挿
入される。カード処理機1の上面には、キーボード3及
びディスプレイ4が配置されている。キーボード3は、
磁気カード10の処理に係る入力操作を受け付ける。デ
ィスプレイ4は、磁気カード10の処理状態等を適宜表
示する。磁気カード10の表面には、磁気ストライプ1
1が形成されており、この磁気ストライプ11に記録・
再生データを含む磁気データが一定方向に磁気記録され
ている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to a magnetic card for magnetically recording recorded / reproduced data and a card processor for processing the magnetic card. FIG. 1 is an external view showing a magnetic card and a card processor as an example of an embodiment of the present invention. The card processing machine 1 has a card insertion slot 2 formed on the front face, and a magnetic card 10 presented by a customer is inserted into the card insertion slot 2. On the upper surface of the card processor 1, a keyboard 3 and a display 4 are arranged. Keyboard 3
An input operation related to the processing of the magnetic card 10 is received. The display 4 appropriately displays the processing state of the magnetic card 10 and the like. A magnetic stripe 1 is provided on the surface of the magnetic card 10.
1 is formed on the magnetic stripe 11,
Magnetic data including reproduction data is magnetically recorded in a certain direction.

【0021】図2は、上記磁気カードの磁気ストライプ
に磁気記録される磁気データの構成を示す図である。磁
気カード10の表面に長手方向に平行に形成された磁気
ストライプ11には、プリアンブルデータ21、前側方
向判別データ25、STX24、記録・再生データ2
3、後側方向判別データ26及びポストアンブルデータ
22が、図中矢印Cで示す順方向にこの順に記録され
る。プリアンブルデータ21及びポストアンブルデータ
22は、論理値0のデータ列であり、両者の間に記録さ
れている記録・再生データ処理の同期を取るためのデ
ータである。STX24は、所定の組み合わせに係る論
理値0及び1のデータ列であり、記録・再生データ23
の開始位置を示す。
FIG. 2 is a diagram showing the structure of magnetic data magnetically recorded on the magnetic stripe of the magnetic card. A preamble data 21, a front direction discrimination data 25, an STX 24, a recording / reproducing data 2 are provided on a magnetic stripe 11 formed on the surface of the magnetic card 10 in parallel with the longitudinal direction.
3. The rear direction discrimination data 26 and the postamble data 22 are recorded in this order in the forward direction indicated by the arrow C in the figure. The preamble data 21 and the postamble data 22 are data strings of logical value 0, and are recorded between them.
This is data for synchronizing the processing of the recorded / reproduced data. The STX 24 is a data string of logical values 0 and 1 according to a predetermined combination.
Indicates the start position of.

【0022】記録・再生データ23は、論理値0及び1
の組み合わせによって磁気カード10の種類に応じた情
報を表すデータであり、磁気カード10がプリペイドカ
ードである場合には利用可能残高を表し、ポイントカー
ドである場合には累計ポイント数を表す。また、記録・
再生データ23は、磁気カード10の認証のための認証
データを含む。前側方向判別データ25及び後側方向判
別データ26は、所定の組み合わせに係る論理値0及び
1のデータ列であり、前側方向判別データ25における
論理値0及び1のデータの順方向の配列と、後側方向判
別データ26における論理値0及び1のデータの逆方向
の配列と、が一致しないように構成されている。
The recording / reproducing data 23 has logical values 0 and 1
Is data representing information according to the type of the magnetic card 10 by a combination of the above. When the magnetic card 10 is a prepaid card, it represents an available balance, and when the magnetic card 10 is a point card, it represents the total number of points. In addition, record
The reproduction data 23 includes authentication data for authenticating the magnetic card 10. The front direction discrimination data 25 and the rear direction discrimination data 26 are data strings of logical values 0 and 1 according to a predetermined combination, and a forward array of data of the logic values 0 and 1 in the front direction discrimination data 25; The rear direction discrimination data 26 is configured such that the data of the logical values 0 and 1 in the reverse direction do not match.

【0023】図3は、上記磁気カードが記録する各磁気
データの論理値の配列を示す図である。磁気カード10
が記憶する磁気データのうち、プリアンブルデータ2
1、ポストアンブルデータ22、STX24、前側方向
判別データ25及び後側方向判別データ26は、データ
長及びデータ配列が予め固定的に定められた所定のデー
タ列である。プリアンブルデータ21及びポストアンブ
ルデータ22は、それぞれ32ビットのデータ長の全て
のビットの論理値を0としたデータ列である。STX2
4は8ビットのデータであり、例えば、FFh(111
11111)のデータである。
FIG. 3 is a diagram showing an array of logical values of each magnetic data recorded by the magnetic card. Magnetic card 10
Of the magnetic data stored in the preamble data 2
1. The postamble data 22, the STX 24, the front direction discrimination data 25, and the rear direction discrimination data 26 are predetermined data strings whose data length and data array are fixedly determined in advance. The preamble data 21 and the postamble data 22 are data strings in which the logical values of all bits having a data length of 32 bits are 0. STX2
4 is 8-bit data, for example, FFh (111
11111).

【0024】前側方向判別データ25及び後側方向判別
データ26はいずれも8ビットのデータであり、例え
ば、前側方向判別データ25は80h(1000000
0)のデータ、後側方向判別データ26は40h(01
000000)のデータである。逆方向から読み取った
後側方向判別データ26は、02h(0000001
0)となり、順方向から読み取った前側方向判別データ
25に一致しない。
Both the front direction discrimination data 25 and the rear direction discrimination data 26 are 8-bit data. For example, the front direction discrimination data 25 is 80h (100000).
0) and the rear direction discrimination data 26 are 40h (01
000000). The rear direction discrimination data 26 read from the reverse direction is 02h (0000001).
0), and does not match the front direction discrimination data 25 read from the forward direction.

【0025】図4は、上記カード処理機の制御部のブロ
ック図である。カード処理機1の制御部30は、ROM
32及びRAM33を備えたCPU31に、インタフェ
ース34を介してセンサ35、磁気ヘッド駆動回路3
6、サーマルヘッド駆動回路37、モータ駆動回路3
8、キーボード3及びディスプレイ4等の入出力機器を
接続して構成されている。CPU31は、ROM32に
予め書き込まれたプログラムにしたがって各入出力機器
を統括して制御する。この時CPU31に入出力される
データは、RAM33の所定のメモリエリアに格納され
る。
FIG. 4 is a block diagram of a control unit of the card processing machine. The control unit 30 of the card processor 1 has a ROM
A sensor 35 and a magnetic head drive circuit 3 are connected to a CPU 31 having a RAM 32 and a RAM 33 via an interface 34.
6. Thermal head drive circuit 37, motor drive circuit 3
8, input and output devices such as a keyboard 3 and a display 4 are connected. The CPU 31 controls each input / output device according to a program written in the ROM 32 in advance. At this time, data input / output to / from the CPU 31 is stored in a predetermined memory area of the RAM 33.

【0026】センサ35は、カード挿入口2に対する磁
気カード10の挿入を検出し、検出信号をCPU31に
出力する。磁気ヘッド駆動回路36は、磁気ヘッド41
を介して磁気カード10から磁気データを読み取り、読
み取った磁気データをCPU31に出力するとともに、
CPU31から供給される書込データに基づいて磁気ヘ
ッド41を駆動し、磁気カード10の磁気ストライプに
磁気データを書き込む。サーマルヘッド駆動回路37
は、CPU31から供給される表記データに基づいてサ
ーマルヘッド42を駆動し、磁気カード10の表面に視
認情報を印字する。キーボード3は、操作データをCP
U31に出力する。ディスプレイ4は、CPU31から
供給される表示データを表示する。
The sensor 35 detects the insertion of the magnetic card 10 into the card insertion slot 2 and outputs a detection signal to the CPU 31. The magnetic head drive circuit 36 includes a magnetic head 41
And reads the magnetic data from the magnetic card 10 via the CPU and outputs the read magnetic data to the CPU 31.
The magnetic head 41 is driven based on the write data supplied from the CPU 31 to write the magnetic data on the magnetic stripe of the magnetic card 10. Thermal head drive circuit 37
Drives the thermal head 42 based on the notation data supplied from the CPU 31 and prints the visual recognition information on the surface of the magnetic card 10. The keyboard 3 transmits the operation data to the CP
Output to U31. The display 4 displays display data supplied from the CPU 31.

【0027】図5は、上記カード処理機の制御部の処理
手順を示すフローチャートである。カード処理機1の制
御部30を構成するCPU31は、電源投入後において
カード挿入口2に対する磁気カード10の挿入を待機し
ている(s1)。カード挿入口2に磁気カード10が挿
入され、センサ35がオンすると、CPU31はモータ
駆動回路38に駆動データを出力し、磁気カード10の
搬送を開始する(s2)。カード搬送路内を磁気カード
10が搬送されると、磁気カード10の磁気ストライプ
11が磁気ヘッド41に対向し、磁気ヘッド41を介し
て磁気カード10から磁気データが読み取られる(s
3)。CPU31は、磁気ヘッド駆動回路36から入力
された磁気データをRAM33に一時格納する。
FIG. 5 is a flowchart showing a processing procedure of the control unit of the card processing machine. The CPU 31 constituting the control unit 30 of the card processor 1 waits for the insertion of the magnetic card 10 into the card insertion slot 2 after the power is turned on (s1). When the magnetic card 10 is inserted into the card insertion slot 2 and the sensor 35 is turned on, the CPU 31 outputs drive data to the motor drive circuit 38 and starts transporting the magnetic card 10 (s2). When the magnetic card 10 is transported in the card transport path, the magnetic stripe 11 of the magnetic card 10 faces the magnetic head 41, and magnetic data is read from the magnetic card 10 via the magnetic head 41 (s).
3). The CPU 31 temporarily stores the magnetic data input from the magnetic head drive circuit 36 in the RAM 33.

【0028】次いでCPU31は、RAM33に格納し
た磁気データにおいてアンブルデータ21又は22に続
く方向判別データ25又は26を、読取方向について検
索する(s4)。即ち、CPU31は、プリアンブルデ
ータ21に続く順方向の前側方向判別データ25、又
は、ポストアンブルデータ22に続く逆方向の後側方向
判別データ26を検索し、プリアンブルデータ21に続
く順方向の前側方向判別データ25を検出した場合に
は、RAM33に格納している磁気データにおいてST
X24を検索し(s5,s6)、STX24と後側方向
判別データ26との間の磁気データを記録・再生データ
23としてデータ処理を行う(s7)。
Next, the CPU 31 searches the magnetic data stored in the RAM 33 for the direction discrimination data 25 or 26 following the amble data 21 or 22 for the reading direction (s4). That is, the CPU 31 searches the forward direction discrimination data 25 following the preamble data 21 or the backward direction discrimination data 26 following the postamble data 22, and searches for the forward direction discrimination data following the preamble data 21. When the discrimination data 25 is detected, the ST in the magnetic data stored in the RAM 33
X24 is searched (s5, s6), and data processing is performed using the magnetic data between the STX 24 and the rear direction discrimination data 26 as the recording / reproducing data 23 (s7).

【0029】CPU31は、RAM33に記憶している
磁気データにおける読取方向の検索により、所定数の論
理値0のデータ列に続いて後側方向判別データ26の逆
方向の配列を検出した場合には、磁気カード10が反対
方向に挿入されたと判断し、RAM33内に記憶してい
る磁気データを反転してRAM33内の別のメモリエリ
アに格納する(s8)。CPU31は、反転後の磁気デ
ータにおいてSTX24の検索(s6)、及び、STX
24と後側方向判別データ26との間に位置する記録・
再生データの処理(s7)を実行する。
When the CPU 31 detects a reverse direction array of the rear direction discrimination data 26 following a predetermined number of data strings having a logical value 0 by searching the magnetic data stored in the RAM 33 for the reading direction, Then, it is determined that the magnetic card 10 has been inserted in the opposite direction, and the magnetic data stored in the RAM 33 is inverted and stored in another memory area in the RAM 33 (s8). The CPU 31 searches for the STX 24 in the inverted magnetic data (s6), and
24 and the rear direction discrimination data 26
The reproduction data processing (s7) is executed.

【0030】この後、CPU31は、キーボード3を介
して入力された取引データに基づいて記録・再生データ
を更新処理し(s9)、更新処理後の記録・再生データ
23を磁気ヘッド41を介して磁気カード10に書き込
んだ後(s10)、磁気カード10をカード挿入口2か
ら排出する(s11)。この磁気カード10に対する更
新処理後の記録・再生データ23の書込処理は、磁気デ
ータの読取処理を終えた磁気カード10を一旦排出方向
に搬送した後に、磁気カード10を磁気ヘッド41に対
して順方向に搬送しつつ実行される。
Thereafter, the CPU 31 updates the recording / reproducing data based on the transaction data input via the keyboard 3 (s9), and transfers the updated recording / reproducing data 23 via the magnetic head 41. After writing on the magnetic card 10 (s10), the magnetic card 10 is ejected from the card insertion slot 2 (s11). The write process of the recording / reproducing data 23 after the update process on the magnetic card 10 is performed by once transporting the magnetic card 10 after the magnetic data read process in the ejection direction, and then moving the magnetic card 10 to the magnetic head 41. It is executed while transporting in the forward direction.

【0031】なお、更新処理後の記録・再生データ23
の書込処理の内容は、磁気カード10の挿入方向に応じ
て異なる。即ち、CPU31は、磁気カード10がカー
ド挿入口2に正しい方向に挿入された場合にはSTX2
4に続く位置に記録・再生データ23を順方向に書き込
るのに対して、磁気カード10がカード挿入口2に逆方
向に挿入された場合には後側方向判別データ26に続く
位置に記録・再生データ23を逆方向に書き込む。
The recorded / reproduced data 23 after the update process
Is different depending on the insertion direction of the magnetic card 10. That is, when the magnetic card 10 is inserted into the card slot 2 in the correct direction, the CPU 31
4, the recording / reproducing data 23 is written in the forward direction. On the other hand, when the magnetic card 10 is inserted in the card insertion slot 2 in the reverse direction, the recording / reproducing data 23 is written in the position following the rear direction discrimination data 26. The recording / reproduction data 23 is written in the reverse direction.

【0032】以上の処理により、このカード処理機1
は、磁気カード10から読み取った磁気データにおい
て、先ず、アンブルデータ21,22に続く順方向の前
側方向判別データ25、又は、逆方向の後側方向判別デ
ータ26を検索して磁気カード10の挿入方向が順方向
であるか逆方向であるかを判別し、この判別結果に基づ
いて磁気カード10の挿入方向に応じた処理を実行する
ため、カード処理機1の操作者に磁気カード10の挿入
方向を一方向のみに強制する必要がなく、磁気カード1
0の処理作業を容易にすることができる。
With the above processing, this card processor 1
In the magnetic data read from the magnetic card 10, first, the front direction discrimination data 25 in the forward direction following the amble data 21, 22 or the rear direction discrimination data 26 in the reverse direction are searched to insert the magnetic card 10. It is determined whether the direction is the forward direction or the reverse direction, and a process according to the insertion direction of the magnetic card 10 is performed based on the determination result. There is no need to force the direction in only one direction.
0 can be easily performed.

【0033】また、挿入方向の判別のために磁気カード
10に書き込まれている前側方向判別データ25及び後
側方向判別データ26は、後側方向判別データ26の逆
方向の配列が前側方向判別データ25の順方向の配列に
一致しないように構成されているため、逆方向に挿入さ
れた磁気データ10から逆方向に読み取った磁気データ
において、後側方向判別データ26の逆方向の配列を、
前側方向判別データ25の順方向の配列と誤検出するこ
とがなく、磁気カード10の挿入方向を正確に判別する
ことができる。
The front direction discrimination data 25 and the rear direction discrimination data 26 written on the magnetic card 10 for discrimination of the insertion direction are the same as those of the rear direction discrimination data 26 in the reverse direction. 25, the arrangement of the rear direction discrimination data 26 in the reverse direction of the magnetic data read in the reverse direction from the magnetic data 10 inserted in the reverse direction is
The insertion direction of the magnetic card 10 can be accurately determined without being erroneously detected as the arrangement of the front direction determination data 25 in the forward direction.

【0034】例えば、図3に示すように、磁気カード1
0に記憶されている記録・再生データの最後部の8ビッ
トがFFhである場合、前側方向判別データ25及び後
側方向判別データ26がない従来の磁気データでは、逆
方向に読み取った際のポストアンブルデータ及び記録・
再生データの最後部の8ビットのデータ配列が、順方向
に読み取った際のプリアンブルデータ及びSTXのデー
タ配列に一致するため、磁気データの配列に基づいて磁
気カードの挿入方向を判別することができなくなる。
For example, as shown in FIG.
When the last 8 bits of the recording / reproducing data stored in 0 are FFh, the conventional magnetic data without the front direction discrimination data 25 and the rear direction discrimination data 26 has the post data read in the reverse direction. Amble data and record
Since the data array of the last 8 bits of the reproduced data matches the data array of the preamble data and STX when read in the forward direction, the insertion direction of the magnetic card can be determined based on the magnetic data array. Disappears.

【0035】一般的に、記録・再生データの最後部の8
ビットのデータ配列を一義的に特定することはできない
ため、図3に示した例に限らず、STXのデータ配列を
どのように選択したとしても、記録・再生データの最後
部の8ビットの逆方向の配列とSTXの順方向の配列と
の一致を完全に防ぐことはできず、磁気データの配列に
基づいて磁気カードの挿入方向を常に正確に判別するこ
とはできない。
In general, the last 8 of the recorded / reproduced data
Since the data array of bits cannot be unambiguously specified, it is not limited to the example shown in FIG. 3 and no matter how the data array of STX is selected, the reverse of the last 8 bits of the recording / reproducing data is performed. It is not possible to completely prevent the alignment of the direction and the alignment of the STX in the forward direction, and the insertion direction of the magnetic card cannot always be accurately determined based on the alignment of the magnetic data.

【0036】これに対して、磁気データのプリアンブル
データの後方及びポストアンブルデータの前方のそれぞ
れに、互いに逆方向の配列が異なる前側方向判別データ
及び後側方向判別データを配置しておけば、ポストアン
ブルデータ及び後側方向判別データの逆方向の配列が、
プリアンブルデータ及び前側方向判別データの順方向の
配列に一致することを完全に防止することができ、磁気
データの配列に基づいて磁気カードの挿入方向を常に正
確に判別することがてきる。
On the other hand, if the front direction discrimination data and the rear direction discrimination data having different arrangements in the opposite directions are arranged at the rear of the preamble data of the magnetic data and at the front of the postamble data, respectively, The reverse arrangement of the amble data and the rear direction discrimination data is
It is possible to completely prevent the preamble data and the front direction discrimination data from agreeing with the forward arrangement, and to always accurately determine the insertion direction of the magnetic card based on the arrangement of the magnetic data.

【0037】なお、この実施形態では、磁気カード及び
磁気カードを処理するカード処理機を例にあげて説明し
たが、正逆両方向に読み出されるデータを記録した他の
記録媒体、及び、この記録媒体を処理する他の記録媒体
処理装置において、この発明を同様に実施することがで
きる。
In this embodiment, the magnetic card and the card processor for processing the magnetic card have been described as examples. However, other recording media for recording data read in both forward and reverse directions, and this recording medium The present invention can be similarly embodied in another recording medium processing apparatus that processes the data.

【0038】[0038]

【発明の効果】請求項1に記載した発明によれば、記録
・再生データより先に前側方向判別データが存在する場
合には記録・再生データを読取方向に処理し、記録・再
生データより先に後側方向判別データが存在する場合に
は記録・再生データを読取方向と逆方向に処理すること
により、記録媒体の設定方向に拘らず読み取られた記録
・再生データを適正に処理することができ、記録・再生
データの読取方向を一定方向に強制する必要がなく、記
録媒体の処理作業を容易にすることができる。
According to the first aspect of the present invention, recording is performed.
・ If the front direction discrimination data exists before the playback data
Process the recorded / reproduced data in the reading direction, and
When the backward direction discrimination data exists before the raw data
Means to process recorded / reproduced data in the direction opposite to the reading direction
The recording that is read regardless of the setting direction of the recording medium
・ Reproduced data can be properly processed and recorded / reproduced
There is no need to force the data reading direction to a fixed direction, and the processing operation of the recording medium can be facilitated.

【0039】[0039]

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

【図1】この発明の実施形態の一例である磁気カード、
及び、カード処理機の外観図である。
FIG. 1 is a magnetic card according to an embodiment of the present invention;
FIG. 2 is an external view of a card processing machine.

【図2】同磁気カードの磁気ストライプに記録される磁
気データの構成を示す図である。
FIG. 2 is a diagram showing a configuration of magnetic data recorded on a magnetic stripe of the magnetic card.

【図3】同磁気データの各部の構成を示す図である。FIG. 3 is a diagram showing a configuration of each unit of the magnetic data.

【図4】同カード処理機の制御部のブロック図である。FIG. 4 is a block diagram of a control unit of the card processing machine.

【図5】同カード処理機の制御部の処理手順を示すフロ
ーチャートである。
FIG. 5 is a flowchart showing a processing procedure of a control unit of the card processing machine.

【図6】従来の磁気データの構成を示す図である。FIG. 6 is a diagram showing a configuration of conventional magnetic data.

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

1−カード処理機 2−カード挿入口 3−キーボード 4−ディスプレイ 10−磁気カード 11−磁気ストライプ 21−プリアンブルデータ 22−ポストアンブルデータ 23−記録・再生データ 24−STX 25−前側方向判別データ 26−後側方向判別データ 1-Card processing machine 2-Card insertion slot 3-Keyboard 4-Display 10-Magnetic card 11-Magnetic stripe 21-Preamble data 22-Postamble data 23-Record / reproduce data 24-STX 25-Front direction discrimination data 26- Rear direction discrimination data

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06K 13/06 G06K 17/00 Continuation of the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06K 13/06 G06K 17/00

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】記録媒体から一定方向に連続的に読み取っ
たデータ列において前側方向判別データの順方向の配
列、及び、後側方向判別データの逆方向の配列を読取方
向に検索し、前側方向判別データの順方向の配列が先に
存在する場合には記録・再生データを読取方向に処理
し、後側方向判別データの逆方向の配列が先に存在する
場合には記録・再生データを読取方向とは逆方向に処理
するデータ処理手段を設けたことを特徴とする記録媒体
処理装置
1. A method of continuously reading data from a recording medium in a certain direction.
Of the forward direction discrimination data in the forward direction
How to read the row and the reverse direction of the rear direction discrimination data
Search in the forward direction, the forward array of front direction discrimination data is
If present, process record / playback data in read direction
And the reverse direction array of the rear direction discrimination data exists first.
Process recorded / reproduced data in the direction opposite to the reading direction
Recording medium provided with data processing means for performing
Processing equipment .
JP9133574A 1997-05-23 1997-05-23 Recording medium processing device Expired - Fee Related JP2999433B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9133574A JP2999433B2 (en) 1997-05-23 1997-05-23 Recording medium processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9133574A JP2999433B2 (en) 1997-05-23 1997-05-23 Recording medium processing device

Publications (2)

Publication Number Publication Date
JPH10326324A JPH10326324A (en) 1998-12-08
JP2999433B2 true JP2999433B2 (en) 2000-01-17

Family

ID=15108002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9133574A Expired - Fee Related JP2999433B2 (en) 1997-05-23 1997-05-23 Recording medium processing device

Country Status (1)

Country Link
JP (1) JP2999433B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001011555A1 (en) * 1999-08-05 2001-02-15 Sanwa Newtec Co., Ltd Recording medium and method and device for processing it
ES2190307B1 (en) * 2000-07-31 2004-08-16 Talleres De Escoriaza, S.A. PERFECTED CODING OF MAGNETIC MESSAGE IN MAGNETIC CARDS OF ELECTRONIC LOCKS.
JP4884591B2 (en) 2001-03-06 2012-02-29 株式会社ハル研究所 Code reader, entertainment system and recording medium
JP4992096B2 (en) * 2006-09-26 2012-08-08 日本電産サンキョー株式会社 Card-like recording medium processing apparatus and card-like recording medium processing method
CN106429144B (en) * 2016-10-10 2020-03-24 张家港康得新光电材料有限公司 Method, device and system for processing glass cassette

Also Published As

Publication number Publication date
JPH10326324A (en) 1998-12-08

Similar Documents

Publication Publication Date Title
JP3507684B2 (en) Card processing method
JP2999433B2 (en) Recording medium processing device
JPH0786897B2 (en) Card reader
WO2000031684A1 (en) Method of measuring coercive force of a magnetic card
JPH02139698A (en) Returning device for recording medium such as video cassette
WO2001011555A1 (en) Recording medium and method and device for processing it
JP3443295B2 (en) Magnetic card reader and method for determining coercive force of magnetic card in magnetic card reader
JPH0668605A (en) Magnetic card
JP3686837B2 (en) Magnetic stripe reading method and handy terminal
JPH06139385A (en) Magnetic card reader
JPH0490081A (en) Magnetic card reader
JPS58224470A (en) Device for reading and writing magnetic card
JPH09114940A (en) Reading system for magnetic card
JPH01120691A (en) Ic card identification system
JPH0336681A (en) Optical card and optical card recording and reproducing device
JPH05258091A (en) Card reading method
JP3342092B2 (en) Card processing equipment
JP3599941B2 (en) Data recording medium and its processing device
JPH07168916A (en) Motor-driven magnetic card reader/writer
JP2764580B2 (en) Video tape judgment device
JPS61144374A (en) Passbook printer
JPH06195492A (en) Running type card reader
JPH07210635A (en) Magnetic card discriminating system and magnetic identification card system for game machine
JPS63223893A (en) Recording medium
JP2002170081A (en) Method of controlling reader and writer working as magnetic ic card

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20081105

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20081105

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091105

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20101105

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20111105

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20121105

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20131105

Year of fee payment: 14

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees