JP2001067810A - Magnetic data processor and magnetic medium - Google Patents

Magnetic data processor and magnetic medium

Info

Publication number
JP2001067810A
JP2001067810A JP24168899A JP24168899A JP2001067810A JP 2001067810 A JP2001067810 A JP 2001067810A JP 24168899 A JP24168899 A JP 24168899A JP 24168899 A JP24168899 A JP 24168899A JP 2001067810 A JP2001067810 A JP 2001067810A
Authority
JP
Japan
Prior art keywords
data
block
read
magnetic
block data
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
JP24168899A
Other languages
Japanese (ja)
Inventor
Hideki Hayashi
英樹 林
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP24168899A priority Critical patent/JP2001067810A/en
Publication of JP2001067810A publication Critical patent/JP2001067810A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To restore data even when a part of the data is demagnetized by a method wherein, when the data is read out, whether read data is single-block data or a block data group which ties a plurality of identical block data is judged, and, when the read data is the block data group, the block data group is edited to single block data. SOLUTION: Whenever every data which constitutes block data from a write- data storage part 9 in a memory 16 is stored in the register of a temporary data storage part 11, the value of a counter part 12 is incremented by +1. Whether the data is end data or not is judged. When the data is the end data, a processing operation is finished. When the data is not the end data, whether a place number which agrees with the value of the counter part 12 exists or not is judged by referring to a table in the memory 16. When it agrees, the processing operation is returned to a starting point. When it does not agree, the data which is stored in the data storage part 11 is shifted to write-data storage part 9, and the processing operation is returned to the starting point. As a result, block data from which fixed data thinned out can be stored in the write-data storage part 9.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は磁気デ−タ処理装置
とその磁気デ−タ処理装置に用いられる磁気媒体に関す
る。
The present invention relates to a magnetic data processing apparatus and a magnetic medium used in the magnetic data processing apparatus.

【0002】[0002]

【従来の技術】従来、例えば、現金自動取扱装置に設け
られて通帳やキャッシュカ−ド等の磁気媒体から顧客情
報を読み取る磁気デ−タ処理装置は、読取ヘッドを通じ
て磁気ストライプを貼付した磁気媒体から読み取ったリ
−ドデ−タを上位装置に送信し、上位装置はそのリ−ド
デ−タに基づいて現金取扱処理を行い、所定の処理を施
したライトデ−タを上位装置から受信し、書込ヘッドを
通じて磁気媒体に書き込んでいる。
2. Description of the Related Art Conventionally, for example, a magnetic data processing apparatus provided in an automatic cash handling apparatus for reading customer information from a magnetic medium such as a passbook or a cash card uses a magnetic medium having a magnetic stripe attached through a read head. The read data that has been read is transmitted to the host device, the host device performs a cash handling process based on the read data, and receives the write data that has been subjected to the predetermined processing from the host device, Writing is performed on the magnetic medium through the write head.

【0003】[0003]

【発明が解決しようとする課題】従来の磁気デ−タ処理
装置にあっては、磁気デ−タの一部が消磁されている場
合には顧客情報を読み取れないので、金融機関へ休日現
金取引に行って、媒体に消磁問題が発生しているときに
は、取引できず、別の日に金融機関の窓口にでかけて書
き込み処理してもらわなければならないという問題点が
あった。
In the conventional magnetic data processing apparatus, when a part of the magnetic data is demagnetized, the customer information cannot be read, and the holiday cash transaction must be made to a financial institution. However, when the medium has a demagnetization problem, there is a problem that it is not possible to make a transaction and it is necessary to go to a counter of a financial institution for another day to perform the writing process.

【0004】本発明は、磁気デ−タの一部が消磁されて
いる場合にも取引可能な状態に復元できる磁気デ−タ処
理装置とその磁気デ−タ処理装置に用いられる磁気媒体
とを提供することを目的としている。
[0004] The present invention provides a magnetic data processing apparatus capable of restoring a state in which transactions can be performed even when a part of magnetic data is demagnetized, and a magnetic medium used in the magnetic data processing apparatus. It is intended to provide.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に本発明の磁気デ−タ処理装置においては、デ−タ読み
取り時、リ−ドデ−タが処理可能な単一ブロックデ−タ
であるか同一なブロックデ−タを複数繋げたブロックデ
−タ群であるかを判定するリ−ドデ−タ判定手段と、リ
−ドデ−タがブロックデ−タ群と判定されたとき、ブロ
ックデ−タ群から単一ブロックデ−タに編集するリ−ド
デ−タ編集部とを備える。
In order to achieve the above object, in a magnetic data processing apparatus according to the present invention, at the time of data reading, single block data which can be processed by read data is provided. And a read data determining means for determining whether the read data is a block data group in which the same block data is connected, and the read data is determined to be a block data group. In some cases, a read data editing unit is provided for editing the block data group into single block data.

【0006】また、目的を達成するために本発明の磁気
媒体においては、処理可能な単一ブロックデ−タから予
め決められたデ−タを間引いて構成されたブロックデ−
タに制御コ−ドを挿入して複数繋げたブロックデ−タ群
として書き込まれる。
Further, in order to achieve the object, in the magnetic medium of the present invention, block data constituted by thinning out predetermined data from single block data which can be processed is provided.
A control code is inserted into the data and written as a group of a plurality of connected block data.

【0007】[0007]

【発明の実施の形態】本発明の実施の形態について図面
を参照しながら説明する。尚、各図面に共通な要素には
同一符号を付す。図1は実施の形態による磁気デ−タ処
理装置のブロック図である。テ−ブル格納部1には予め
決められた桁番と処理に無関係な固定デ−タ(例えば、
銀行名)とを対応させたテ−ブルが格納されてある。
Embodiments of the present invention will be described with reference to the drawings. Elements common to the drawings are denoted by the same reference numerals. FIG. 1 is a block diagram of a magnetic data processing apparatus according to an embodiment. The table storage unit 1 stores predetermined digit numbers and fixed data irrelevant to the processing (for example,
Table corresponding to the bank name).

【0008】読み取り部2は読み取りヘッド3を通じて
磁気ストライプ4(以後MS4と記す)からリ−ドデ−
タを読み取ってリ−ドデ−タ格納部5に格納する。
The reading unit 2 reads data from a magnetic stripe 4 (hereinafter, referred to as MS 4) through a read head 3.
The data is read and stored in the read data storage unit 5.

【0009】リ−ドデ−タ判定部6は、デ−タ読み取り
時、リ−ドデ−タ格納部5に格納されたリ−ドデ−タが
単一ブロックデ−タであるか単一ブロックデ−タから固
定デ−タを間引いた同一なブロックデ−タを複数繋げた
ブロックデ−タ群であるかを判定する。本実施の形態で
は、ブロックデ−タ群は同一なブロックデ−タ、第1ブ
ロックデ−タと第2ブロックデ−タとを繋げた2ブロッ
クからなる。
At the time of reading data, the read data determination section 6 determines whether the read data stored in the read data storage section 5 is single block data. It is determined whether or not a block data group is formed by connecting a plurality of identical block data obtained by thinning out fixed data from one block data. In this embodiment, the block data group is composed of the same block data, and two blocks obtained by connecting the first block data and the second block data.

【0010】送受信部7は単一ブロックデ−タをリ−ド
デ−タ格納部5から読み出して上位装置8に送信し、上
位装置8から受信したライトデ−タをライトデ−タ格納
部9に格納する。上位装置8は単一リ−ドデ−タに基づ
いて図示せぬセンタと交信を行い、そのリ−ドデ−タに
所定の処理を施す。
The transmission / reception unit 7 reads the single block data from the read data storage unit 5 and transmits it to the host device 8, and the write data received from the host device 8 is stored in the write data storage unit 9. Store. The host device 8 communicates with a center (not shown) based on the single read data, and performs predetermined processing on the read data.

【0011】リ−ドデ−タ編集部10は、リ−ドデ−タ
格納部5に格納されたリ−ドデ−タがリ−ドデ−タ判定
部6によりブロックデ−タ群と判定されたとき、先ず、
ブロックデ−タ群を合成して一つのブロックデ−タをリ
−ドデ−タ格納部5に生成する。
The read data editing unit 10 determines whether the read data stored in the read data storage unit 5 is a block data group by the read data determination unit 6. When it is determined, first,
The block data group is combined to generate one block data in the read data storage unit 5.

【0012】次に、ブロックデ−タを構成する各デ−タ
をリ−ドデ−タ格納部5から読み出して一時デ−タ格納
部11に格納する毎にカウンタ部12の値を+1インク
リメントし、テ−ブル格納部1のテ−ブルを参照してカ
ウンタ値と桁番と比較してカウンタ値と一致する場合に
はその桁番に対応する固定デ−タをテ−ブルから読み出
し上位装置8に送信するデ−タとしてリ−ドデ−タ格納
部5に格納するとともにカウンタ部12を+1インクリ
メントし、カウンタ値と一致する桁番が無くなるまで繰
り返し、カウンタ値と一致する桁番がない場合に一時デ
−タ格納部11に格納してあるデ−タを上位装置8に送
信するデ−タとしてリ−ドデ−タ格納部5に格納する。
Next, each time the data constituting the block data is read from the read data storage section 5 and stored in the temporary data storage section 11, the value of the counter section 12 is incremented by +1. When the counter value is compared with the digit number with reference to the table in the table storage unit 1 and the counter value matches, the fixed data corresponding to the digit number is read out from the table and the upper data is read. The data to be transmitted to the device 8 is stored in the read data storage unit 5 and the counter unit 12 is incremented by +1 and repeated until there is no digit number that matches the counter value. If not, the data stored in the temporary data storage unit 11 is stored in the read data storage unit 5 as data to be transmitted to the host device 8.

【0013】ライトデ−タ編集部13は、ライトデ−タ
を構成する各デ−タをライトデ−タ格納部9から読み出
して一時デ−タ格納部11に格納する毎にカウンタ部1
2の値を+1インクリメントし、テ−ブル格納部1のテ
−ブルを参照してカウンタ値と桁番と比較し、カウンタ
値と一致する桁番がある場合には入力したデ−タを間引
いて書込ヘッド14に出力し、カウンタ値と一致する桁
番がない場合に一時デ−タ格納部11に格納してあるデ
−タを書込ヘッド14に出力してMS4に書き込む。
The write data editing section 13 reads out each data constituting the write data from the write data storage section 9 and stores it in the temporary data storage section 11 every time the counter section 1 is read.
The value of 2 is incremented by +1 and the counter value is compared with the digit number with reference to the table in the table storage unit 1. If there is a digit number that matches the counter value, the input data is thinned out. To the write head 14, and if there is no digit number that matches the counter value, the data stored in the temporary data storage unit 11 is output to the write head 14 and written to the MS4.

【0014】本実施の形態では、読み取り部2、送受信
部7、リ−ドデ−タ編集部10、一時デ−タ格納部1
1、カウンタ部12、ライトデ−タ編集部13を中央処
理装置15(以後CPU15と記す)で構成し、テ−ブ
ル格納部1、リ−ドデ−タ格納部5、ライトデ−タ格納
部9をメモリ16の各記憶領域で構成している。
In the present embodiment, the reading unit 2, the transmitting / receiving unit 7, the read data editing unit 10, and the temporary data storage unit 1
1, a counter section 12, and a write data editing section 13 are constituted by a central processing unit 15 (hereinafter referred to as a CPU 15), and a table storage section 1, a read data storage section 5, a write data storage section 9 Is constituted by each storage area of the memory 16.

【0015】図2は通帳の正面図、図3は磁気デ−タ書
き込みパタ−ンを示す説明図である。現金自動取扱装置
で扱われる媒体18(以後通帳18と記す)には、図2
に示すように、MS4が設けてある。
FIG. 2 is a front view of the passbook, and FIG. 3 is an explanatory view showing a magnetic data writing pattern. FIG. 2 shows a medium 18 (hereinafter referred to as a passbook 18) handled by the automatic cash handling apparatus.
MS4 is provided as shown in FIG.

【0016】MS4には、図3(A)に示すような単一
ブロックデ−タ4a、又は図3(B)に示すように、2
ブロックの同一なブロックデ−タ、第1及び第2ブロッ
クデ−タ4b、4cが設けてある。
The MS 4 has a single block data 4a as shown in FIG. 3A or a two-block data as shown in FIG.
The same block data of the block, first and second block data 4b and 4c are provided.

【0017】ブロックデ−タ4aはデ−タ数50桁から
なり、制御符号である始めコ−ドS(1桁)と終りコ−
ドE(1桁)、CRCチェックコ−ド(2桁)とに挟ま
れ、さらにデ−タ読み取り時に同期をとるタイミングマ
−クTMに挟まれる構成になっている。
The block data 4a is composed of 50 digits of data, and includes a control code, a start code S (one digit) and an end code.
A data E (one digit) and a CRC check code (two digits), and a timing mark TM for synchronizing data reading.

【0018】第1ブロックデ−タ4b、第2ブロックデ
−タ4cはそれぞれデ−タ数20桁からなり、制御符号
である始めコ−ドS(1桁)、終りコ−ドE(1桁)、
CRCチェックコ−ド(4桁)とで第1ブロック、第2
ブロックを構成し、第1ブロックの前と、第1ブロック
と第2ブロックとの間と、第2ブロックの後とにはデ−
タ読み取り時に同期をとるタイミングマ−クTMが設け
られている。
Each of the first block data 4b and the second block data 4c has a data number of 20 digits, and the control code is a start code S (one digit) and an end code E (1). digit),
First block, second with CRC check code (4 digits)
A block is composed of data before the first block, between the first block and the second block, and after the second block.
A timing mark TM for synchronizing data reading is provided.

【0019】デ−タ、始めコ−ドS、終りコ−ドE、C
RCチェックコ−ドは1桁を4ビットで表し、始めコ−
ド、終りコ−ドは、例えば2進コ−ドで「1111」、
即ち16進コ−ドで「F」が書き込まれている。
Data, start code S, end code E, C
In the RC check code, one digit is represented by 4 bits.
The end and end codes are, for example, "1111" in binary code,
That is, "F" is written in hexadecimal code.

【0020】また、CRCチェックコ−ドは、例えば、
20桁のデ−タ、終りコ−ドをチェック範囲とした巡回
冗長検査(Cyclic Redundancy Check )を行っている。
The CRC code is, for example,
A cyclic redundancy check (Cyclic Redundancy Check) is performed using the 20-digit data and the end code as a check range.

【0021】図4はリ−ドデ−タ変換処理の説明図であ
り、(A)は2ブロックの詳細図、(B)はCPUによ
り一つに編集されたリ−ドデ−タの詳細図、(C)は上
位装置に出力する単一リ−ドデ−タの詳細図である。
FIGS. 4A and 4B are explanatory diagrams of the read data conversion process. FIG. 4A is a detailed diagram of two blocks, and FIG. 4B is a detail of read data edited by the CPU into one. FIG. 4C is a detailed view of single read data output to the host device.

【0022】第1及び第2ブロックデ−タ4b、4c
は、上位装置8がセンタと交信を行う場合、取引の内容
によって変わる可変デ−タで構成されている。CPU1
5は、第1ブロックデ−タ4bと第2ブロックデ−タ4
cとを合成して、(B)に示すような一つのブロックデ
−タ4dを導き、さらに、予め決められた桁に固定デ−
タ(××(HEX)で示す)を挿入して、(C)に示す
ような、50桁の単一リ−ドデ−タに編集する。
First and second block data 4b, 4c
Is composed of variable data that changes depending on the contents of a transaction when the host device 8 communicates with the center. CPU1
5 is the first block data 4b and the second block data 4b.
and (c) are combined to derive one block data 4d as shown in (B), and furthermore, the fixed data is fixed to a predetermined digit.
Data (indicated by XX (HEX)) is inserted and edited into 50-digit single read data as shown in FIG.

【0023】図5はライトデ−タ変換処理の説明図であ
り、(A)は上位装置からのライトデ−タの詳細図、
(B)は固定デ−タが間引れたライトデ−タの詳細図、
(C)は書き込みヘッドに送信されるライトデ−タの詳
細図である。
FIG. 5 is an explanatory diagram of the write data conversion process. FIG. 5A is a detailed diagram of the write data from the host device.
(B) is a detailed view of the write data in which fixed data is thinned out,
FIG. 3C is a detailed view of the write data transmitted to the write head.

【0024】上位装置8はセンタから、(A)に示すよ
うな、50桁の単一ライトデ−タを受信し、CPU15
に送信する。CPU15は、予め決められた桁の固定デ
−タ(*で示す)を間引いて、(B)に示すような、2
0桁のブロックデ−タに編集し、さらに始めコ−ドS、
終りコ−ドE、CRCチェックコ−ドの制御符号を付加
して第1ブロックデ−タ4b、第2ブロックデ−タ4c
編集する。
The host device 8 receives 50-digit single write data from the center as shown in FIG.
Send to The CPU 15 thins out fixed data of a predetermined digit (indicated by *) and outputs the data as shown in FIG.
Edit to 0-digit block data and start with code S,
The first block data 4b and the second block data 4c are added by adding an end code E and a control code of a CRC check code.
To edit.

【0025】図6はリ−ド可能な消磁領域の形態を示す
説明図であり、Lはリ−ド可能な最大消磁領域を示す。
消磁領域内で複数の消磁があってもリ−ドは可能である
が、最大消磁領域Lを越えて消磁された場合はリ−ドで
きない。(A)、(B)は最大消磁領域Lが第1ブロッ
クと第2ブロックとに跨がる場合を示しており、(C)
は最大消磁領域が第1ブロックの場合を示しており、
(D)は最大消磁領域が第2ブロックの場合を示してい
る。
FIG. 6 is an explanatory diagram showing the form of a rewritable degaussing area, where L indicates the maximum readable degaussing area.
Reading is possible even if there are a plurality of degausses in the degaussing area, but cannot be read if the degaussing is performed beyond the maximum degaussing area L. (A) and (B) show the case where the maximum demagnetization area L straddles the first block and the second block, and (C)
Indicates the case where the maximum demagnetization area is the first block,
(D) shows the case where the maximum degaussing area is the second block.

【0026】図7はMSリ−ド処理の動作を示すフロ−
チャ−ト、図8は合成処理の動作を示すフロ−チャ−
ト、図9はコンペアチェック処理の動作を示すフロ−チ
ャ−トであり、全てCPU15の動作である。
FIG. 7 is a flowchart showing the operation of the MS read processing.
FIG. 8 is a flowchart showing the operation of the synthesizing process.
FIG. 9 is a flowchart showing the operation of the compare check process, and all the operations are performed by the CPU 15.

【0027】次に動作について説明する。先ず、MSリ
−ド処理の動作について図7を参照して説明する。ステ
ップS1 で、読み取りヘッド3を通じ、通帳18を前進
させてMS4からリ−ドデ−タを読み取り(以後フォワ
−ドリ−ドと記す)、メモリ16のリ−ドデ−タ格納部
5に格納する。
Next, the operation will be described. First, the operation of the MS read processing will be described with reference to FIG. In step S1, the passbook 18 is advanced through the read head 3 to read the read data from the MS 4 (hereinafter referred to as forward read) and stored in the read data storage section 5 of the memory 16. I do.

【0028】ステップS2 で、リ−ドデ−タの解析を開
始し、リ−ドデ−タが単一ブロックデ−タであるかブロ
ックデ−タを複数繋げたブロックデ−タ群であるかを判
定する。ステップS3 で、メモリ16に格納したリ−ド
デ−タを読み出し、書き込みパタ−ンが1ブロック形式
(単一ブロックデ−タ)の通帳18か否かを図3(A)
に示した書き込みパタ−ンの始めコ−ドS、終りコ−ド
E及びブロックデ−タ4aの桁の位置をチェックする。
位置の比較結果が異なる場合には、書き込みパタ−ンが
図3(B)に示した2ブロック形式の通帳18であると
してステップS4 に分岐し、否の場合には従来の処理に
分岐する。
In step S2, the analysis of the read data is started, and the read data is a single block data or a block data group obtained by connecting a plurality of block data. Is determined. In step S3, the read data stored in the memory 16 is read out, and it is determined whether the write pattern is the passbook 18 in the one block format (single block data) or not (FIG. 3A).
Check the start code S and end code E of the write pattern and the position of the digit of the block data 4a.
If the position comparison results are different, it is determined that the write pattern is the two-block passbook 18 shown in FIG. 3B, and the flow branches to step S4. If not, the flow branches to conventional processing.

【0029】ステップS4 で、先ず、第1ブロックの制
御コ−ド(始めコ−ドS、終りコ−ドE)の位置チェッ
クを行い、位置チェックが正しい場合には第1ブロック
のCRCチェックを行う。次に第1ブロックの正常、異
常に拘らず、第2ブロックの制御コ−ド(始めコ−ド
S、終りコ−ドE)の位置チェックを行い、位置チェッ
クが正しい場合には第2ブロックのCRCチェックを行
う。チェック結果を2ビットで出力する。
In step S4, first, the position of the control code (start code S, end code E) of the first block is checked, and if the position check is correct, the CRC check of the first block is performed. Do. Next, regardless of whether the first block is normal or abnormal, the position of the control code (start code S, end code E) of the second block is checked. If the position check is correct, the second block is checked. Is performed. The check result is output in 2 bits.

【0030】ステップS5 で、チェック結果に基づいて
合成処理、正常処理、コンペアチェック処理に振り分け
る。チェック結果が00の場合(図6(A),(B))
には第1及び第2ブロックがともに異常であるとしてス
テップS6 に分岐し、図8に示す合成処理に移る。
In step S5, the process is divided into a combination process, a normal process, and a compare check process based on the check result. When the check result is 00 (FIGS. 6A and 6B)
In step S6, it is determined that both the first and second blocks are abnormal, and the flow branches to step S6 to proceed to the combining process shown in FIG.

【0031】チェック結果が11の場合には第1及び第
2ブロックがともに正常であるとしてステップS9 に分
岐し、図9に示すコンペアチェック処理に移る。
If the check result is 11, it is determined that both the first and second blocks are normal, and the flow branches to step S9 to proceed to the compare check process shown in FIG.

【0032】チェック結果が01(図6(D))の場合
には第1ブロックが正常であるとして、図9に示すコン
ペアチェック処理のステップS40に移る。
If the check result is 01 (FIG. 6D), it is determined that the first block is normal, and the routine goes to step S40 of the compare check process shown in FIG.

【0033】チェック結果が10(図6(C))の場合
には第2ブロックが正常であるとして、図9に示すコン
ペアチェック処理のステップS42に移る。
If the check result is 10 (FIG. 6C), it is determined that the second block is normal, and the routine goes to step S42 of the compare check process shown in FIG.

【0034】合成処理、コンペアチェック処理が終了す
るとステップS10に戻り、それぞれの処理が正常に終了
したか否かをフラグをチェックし、正常に終了した場合
にはステップS11に分岐し、否の場合には磁気ストライ
プリ−ドリ−ドエラ−として処理を終了する。
When the synthesizing process and the compare checking process are completed, the process returns to step S10, and a flag is checked to determine whether or not each process is completed normally. If the processes are completed normally, the process branches to step S11. Then, the process is terminated as a magnetic stripe read error.

【0035】ステップS11で、図4に示したように、上
位装置8に出力するリ−ドデ−タに編集し、磁気ストラ
イプリ−ド正常として処理を終了する。
In step S11, as shown in FIG. 4, the read data to be output to the host device 8 is edited, and the processing is terminated assuming that the magnetic stripe read is normal.

【0036】次に、合成処理の動作について図8を参照
して説明する。ステップS20で、読み取りヘッド3を通
じ、通帳18を後進させてリ−ドデ−タを読み取り(以
後バックワ−ドリ−ドと記す)、メモリ16のリ−ドデ
−タ格納部5に格納する。
Next, the operation of the synthesizing process will be described with reference to FIG. At step S20, the passbook 18 is moved backward through the read head 3 to read the read data (hereinafter referred to as "backward drive") and stored in the read data storage section 5 of the memory 16.

【0037】ステップS21でリ−ドデ−タ格納部5から
デ−タを読み出し、ビット入れ替え(バックワ−ドリ−
ドしたものをフォワ−ドリ−ドしたものにする)を行
い、リ−ドデ−タ格納部5に格納する。ステップS22で
第2ブロックのCRCチェックコ−ドを行う。ステップ
S23で第2ブロックが正常ならばステップS32に分岐
し、否ならばステップS24に分岐する。
In step S21, data is read from the read data storage unit 5 and bits are replaced (backward reading).
The read data is forwarded) and stored in the read data storage unit 5. In step S22, a CRC check code for the second block is performed. If the second block is normal in step S23, the flow branches to step S32, and if not, the flow branches to step S24.

【0038】ステップS24で第2ブロックの終りコ−ド
Eのチェックを行い、ステップS25で第2ブロックの終
りコ−ドEが正常(16進コ−ドで「F」が書き込まれ
ている)ならばステップS31に分岐し、否ならばステッ
プS26に分岐する。
At step S24, the end code E of the second block is checked. At step S25, the end code E of the second block is normal ("F" is written in hexadecimal code). If so, the process branches to step S31; otherwise, the process branches to step S26.

【0039】ステップS26で第2ブロックの終りコ−ド
E及びCRCチェックコ−ドを第1ブロックの終りコ−
ドE及びCRCチェックコ−ドの位置にコピ−し、第1
ブロックのCRCチェックを行う。ステップS27で第1
ブロックのCRCチェックが正常ならばステップS32に
分岐し、否ならばステップS28に分岐する。
In step S26, the end code E of the second block and the CRC check code are added to the end code of the first block.
Copy to the position of code E and CRC check code,
Perform a CRC check on the block. First in step S27
If the CRC check of the block is normal, the flow branches to step S32, and if not, the flow branches to step S28.

【0040】ステップS28で第2ブロックのブロックデ
−タ4cの最後のデ−タを第1ブロックのブロックデ−
タ4bの最後のデ−タの位置にコピ−し、第1ブロック
のCRCチェックを行う。ステップS29で第1ブロック
のCRCチェックが正常ならばステップS32に分岐し、
否ならばステップS30に分岐する。
In step S28, the last data of the block data 4c of the second block is replaced with the block data of the first block.
The data is copied to the last data position of the data 4b, and the CRC check of the first block is performed. If the CRC check of the first block is normal in step S29, the flow branches to step S32.
If not, the flow branches to step S30.

【0041】ステップS30で次にコピ−するデ−タがブ
ロックデ−タ4cの最初のデ−タか否かをチェックし、
最初のデ−タならばステップS31に分岐し、否ならばス
テップS28に分岐する。
In step S30, it is checked whether the next data to be copied is the first data of the block data 4c.
If it is the first data, the flow branches to step S31; if not, the flow branches to step S28.

【0042】ステップS31で合成エラ−のフラグをセッ
トし、図7に示したステップS10に戻る。ステップS32
で正常のフラグをセットし、図7に示したステップS10
に戻る。このとき一部消磁されていた第1ブロックは、
図4(B)に示したような、正常なブロックデ−タ4d
を有する。
In step S31, the flag of the combined error is set, and the process returns to step S10 shown in FIG. Step S32
A normal flag is set in step S10, and step S10 shown in FIG.
Return to At this time, the first block, which was partially demagnetized,
Normal block data 4d as shown in FIG.
Having.

【0043】次に、コンペアチェック処理の動作につい
て図9を参照して説明する。ステップS40で第1ブロッ
クのブロックデ−タ4bと第2ブロックのブロックデ−
タ4cとを1桁目から順に比較チェックし、ステップS
41で全て正常か否かをチェックし、全て正常の場合には
ステップS42に分岐し、否の場合にはステップS43に分
岐する。
Next, the operation of the compare check process will be described with reference to FIG. In step S40, the block data 4b of the first block and the block data of the second block
4c is compared and checked in order from the first digit, and step S
At 41, it is checked whether or not all are normal. If all are normal, the process branches to step S42, and if not, the process branches to step S43.

【0044】ステップS42で正常フラグをセットし、図
7に示したステップS10に戻る。ステップS43でコンペ
アエラ−フラグをセットし、図7に示したステップS10
に戻る。
In step S42, a normal flag is set, and the flow returns to step S10 shown in FIG. In step S43, the compare error flag is set, and in step S10 shown in FIG.
Return to

【0045】ところで、コンペアチェック処理、合成処
理が正常に終了し、図7に示したステップS11に戻った
場合には、図4(B)に示したように、正常なブロック
デ−タがメモリ16のリ−ドデ−タ格納部5に格納され
るので、このブロックデ−タに固定デ−タを挿入して上
位装置8に出力する図4(C)に示したリ−ドデ−タに
編集する。この動作について図10を参照して説明す
る。図10は上位装置に送信するリ−ドデ−タ編集処理
を示すフロ−チャ−トである。
By the way, when the compare check processing and the synthesizing processing are completed normally and the process returns to the step S11 shown in FIG. 7, the normal block data is stored in the memory as shown in FIG. Since the read data is stored in the read data storage unit 16, the fixed data is inserted into the block data and output to the host device 8 as shown in FIG. Edit it. This operation will be described with reference to FIG. FIG. 10 is a flowchart showing the read data editing process to be transmitted to the host device.

【0046】メモリ16のテ−ブル格納部1には、予め
決めた桁番とセンタでの処理に無関係な固定デ−タ(例
えば、銀行名)とを対応させたテ−ブルが格納してあ
る。
The table storage unit 1 of the memory 16 stores a table in which a predetermined digit number is associated with fixed data (for example, a bank name) unrelated to processing at the center. is there.

【0047】次にライトデ−タの編集処理について図1
1を参照して説明する。図11はライトデ−タ編集処理
の動作を示すフロ−チャ−トである。メモリ16のライ
トデ−タ格納部9には上位装置8を通じてセンタから図
6(A)に示したライトデ−タが送信されてきている。
Next, write data editing processing will be described with reference to FIG.
This will be described with reference to FIG. FIG. 11 is a flowchart showing the operation of the write data editing process. The write data shown in FIG. 6A is transmitted from the center to the write data storage unit 9 of the memory 16 through the host device 8.

【0048】ステップS60で、メモリ16のライトデ−
タ格納部9からブロックデ−タを構成する各デ−タを一
時デ−タ格納部11としての図示せぬレジスタに格納す
る毎にカウンタ部12の値を+1インクリメントする。
ステップS61で、エンドデ−タか否か、即ち、カウンタ
値が20と一致か否かをチェックし、エンドデ−タの場
合には処理を終了し、否の場合にはステップS62に分岐
する。
At step S60, the write data
The value of the counter unit 12 is incremented by one each time each data constituting the block data from the data storage unit 9 is stored in a register (not shown) as the temporary data storage unit 11.
In step S61, it is checked whether or not the data is end data, that is, whether or not the counter value matches 20. If the data is end data, the process is terminated. If not, the process branches to step S62.

【0049】ステップS62で、メモリ16のテ−ブルを
参照し、ステップS63でカウンタ値と一致する桁番が有
るか否かをチェックし、カウンタ値と一致する桁番があ
る場合にはステップS60に分岐し、否の場合にはステッ
プS64に分岐する。
In step S62, the table in the memory 16 is referred to, and it is checked in step S63 whether there is a digit number that matches the counter value. If there is a digit number that matches the counter value, step S60 is performed. If not, the process branches to step S64.

【0050】ステップS64で、一時デ−タ格納部11に
格納しているデ−タをライトデ−タ格納部9に出力し、
ステップS60に戻る。この結果、図5(B)に示したよ
うに、固定デ−タを間引いたブロックデ−タがライトデ
−タ格納部9に格納される。そしてさらに、制御コ−ド
を挿入してこの動作を2回行うことにとより、図5
(C)に示したように、同一な第1ブロックと第2ブロ
ックとを繋げた2ブロックからなるブロックデ−タ群が
編集され、このブロックデ−タ群を書き込みヘッド14
を通じてMS4に書き込む。
In step S64, the data stored in the temporary data storage unit 11 is output to the write data storage unit 9,
It returns to step S60. As a result, as shown in FIG. 5B, block data obtained by thinning out fixed data is stored in the write data storage unit 9. Further, by inserting a control code and performing this operation twice, FIG.
As shown in FIG. 3C, a block data group consisting of two blocks connecting the same first block and second block is edited, and this block data group is written into the write head 14.
Write to MS4 through.

【0051】[0051]

【発明の効果】本発明は、以上説明したように構成され
ているので以下に記載される効果を奏する。デ−タ読み
取り時、リ−ドデ−タが処理可能な単一ブロックデ−タ
であるか同一なブロックデ−タを複数繋げたブロックデ
−タ群であるかを判定するリ−ドデ−タ判定手段と、リ
−ドデ−タがブロックデ−タ群と判定されたとき、ブロ
ックデ−タ群から単一ブロックデ−タに編集するリ−ド
デ−タ編集部とを備えたことにより、ブロックデ−タに
消磁個所があっても、処理可能な単一ブロックデ−タに
編集できる。
Since the present invention is configured as described above, it has the following effects. At the time of reading data, it is determined whether the read data is a single block data that can be processed or a block data group obtained by connecting a plurality of the same block data. Data determination means, and a read data editing unit for editing the block data group into single block data when the read data is determined to be a block data group. As a result, even if there is a demagnetization point in the block data, it can be edited into a processable single block data.

【0052】さらに、デ−タ書き込み時、ライトデ−タ
からブロックデ−タ群に編集するライトデ−タ編集部を
備えたことにより、ブロックデ−タが単一ブロックデ−
タで書き込まれた媒体であっても、取引後、媒体には同
一なブロックデ−タを複数繋げたブロックデ−タ群が書
き込まれるので、消磁対策のために金融機関の窓口に出
かけて書き込み処理する必要がない。
Further, when writing data, a write data editing unit for editing the write data into a block data group is provided, so that the block data can be converted into a single block data.
Even if the medium is written with data, after the transaction, a block data group consisting of a plurality of the same block data is written on the medium, so go to the window of the financial institution to take measures against demagnetization and write No need to process.

【0053】また、リ−ドデ−タが処理可能な単一ブロ
ックデ−タであるか同一なブロックデ−タを複数繋げた
ブロックデ−タ群であるかを判定するリ−ドデ−タ判定
手段を設けて消磁対策のための編集処理は磁気デ−タ処
理装置側で行うようにしたので、上位装置とのインタフ
ェ−スの変更が生じず、システム移行を容易にするとい
う効果がある。
Also, it is determined whether the read data is a single block data which can be processed or a block data group in which a plurality of the same block data are connected. Since the data processing device side performs editing processing for demagnetization measures by providing data determination means, there is no need to change the interface with the host device, and the system transition is facilitated. is there.

【0054】また、ブロックデ−タ群は、処理可能な単
一ブロックデ−タから予め決められたデ−タを間引いて
構成された同一なブロックデ−タを複数繋げて磁気媒体
に書き込まれるので、磁気媒体のサイズは変更する必要
がなく、磁気媒体使用者に異様感を与えない。
The group of block data is written to the magnetic medium by connecting a plurality of identical block data formed by thinning out predetermined data from single block data that can be processed. Therefore, the size of the magnetic medium does not need to be changed, and the user of the magnetic medium does not feel strange.

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

【図1】実施の形態による磁気デ−タ処理装置のブロッ
ク図である。
FIG. 1 is a block diagram of a magnetic data processing device according to an embodiment.

【図2】通帳の正面図である。FIG. 2 is a front view of a passbook.

【図3】磁気デ−タ書き込みパタ−ンを示す説明図であ
る。
FIG. 3 is an explanatory diagram showing a magnetic data write pattern.

【図4】リ−ドデ−タ変換処理の説明図である。FIG. 4 is an explanatory diagram of a lead data conversion process.

【図5】ライトデ−タ変換処理の説明図である。FIG. 5 is an explanatory diagram of a write data conversion process.

【図6】リ−ド可能な消磁領域の形態を示す説明図であ
る。
FIG. 6 is an explanatory diagram showing a form of a readable demagnetizing region.

【図7】MSリ−ド処理の動作を示すフロ−チャ−トで
ある。
FIG. 7 is a flowchart showing an operation of an MS read process.

【図8】合成処理の動作を示すフロ−チャ−トである。FIG. 8 is a flowchart showing the operation of the combining process.

【図9】コンペアチェック処理の動作を示すフロ−チャ
−トである。
FIG. 9 is a flowchart showing the operation of a compare check process.

【図10】上位装置に送信するリ−ドデ−タ編集処理を
示すフロ−チャ−トである。
FIG. 10 is a flowchart showing a read data editing process to be transmitted to a host device.

【図11】ライトデ−タ編集処理の動作を示すフロ−チ
ャ−トである。
FIG. 11 is a flowchart showing the operation of a write data editing process.

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

リ−ドデ−タ判定手段 6 リ−ドデ−タ編集部 10 ライトデ−タ編集部 13 CPU 15 メモリ 16 Read data determination means 6 Read data editing unit 10 Write data editing unit 13 CPU 15 Memory 16

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 媒体から読み取ったリ−ドデ−タを処理
可能な単一ブロックデ−タとして上位装置に送信し、そ
のブロックデ−タに所定の処理を施したライトデ−タを
上位装置から受信し、書込ヘッドを通じて前記媒体に書
き込む磁気デ−タ処理装置において、 デ−タ読み取り時、前記リ−ドデ−タが前記単一ブロッ
クデ−タであるか同一なブロックデ−タを複数繋げたブ
ロックデ−タ群であるかを判定するリ−ドデ−タ判定手
段と、 前記リ−ドデ−タがブロックデ−タ群と判定されたと
き、ブロックデ−タ群から前記単一ブロックデ−タに編
集するリ−ドデ−タ編集部とを備えたことを特徴とする
磁気デ−タ処理装置。
1. A host device transmits read data read from a medium as a processable single block data to a host device, and writes the block data subjected to predetermined processing to the host device. A magnetic data processing apparatus for receiving data from a write head and writing the data to the medium through a write head, wherein at the time of data reading, the read data is the single block data or the same block data. Read data determining means for determining whether or not the read data is a block data group; and when the read data is determined to be a block data group, A magnetic data processing device comprising a read data editing unit for editing the single block data.
【請求項2】 さらに、デ−タ書き込み時、前記ライト
デ−タから前記ブロックデ−タ群に編集するライトデ−
タ編集部を備えた請求項1記載の磁気デ−タ処理装置。
2. When writing data, write data for editing the write data into the block data group.
2. The magnetic data processing device according to claim 1, further comprising a data editing unit.
【請求項3】 前記同一なブロックデ−タは、前記単一
ブロックデ−タから予め決められた間引デ−タを間引い
て構成されている請求項1記載の磁気デ−タ処理装置。
3. The magnetic data processing apparatus according to claim 1, wherein said identical block data is formed by thinning out predetermined thinning data from said single block data.
【請求項4】 前記間引きデ−タは、前記処理に無関係
な固定デ−タである請求項3記載の磁気デ−タ処理装
置。
4. The magnetic data processing apparatus according to claim 3, wherein the thinned data is fixed data irrelevant to the processing.
【請求項5】 前記リ−ドデ−タ編集部は、カウンタ
と、デ−タ編集の際にデ−タを一時的に格納する一時デ
−タ格納部と、予め決められた桁番と前記間引きデ−タ
とを対応させたテ−ブルとを備え、前記ブロックデ−タ
群を構成する各ブロックデ−タを重ねて一つのブロック
デ−タを導き、そのブロックデ−タを構成する各デ−タ
を前記一時デ−タ格納手段に格納する毎に前記カウンタ
の値を所定の値インクリメントし、前記テ−ブルを参照
してカウンタ値と桁番と比較してカウンタ値と一致する
場合にはその桁番に対応する間引きデ−タを前記テ−ブ
ルから読み出して前記単一ブロックデ−タに編集するデ
−タとするとともに前記カウンタを前記所定の値インク
リメントし、カウンタ値と一致する桁番が無くなるまで
繰り返し、カウンタ値と一致する桁番がない場合に前記
一時デ−タ格納部に格納してあるデ−タを前記単一ブロ
ックデ−タに編集するデ−タとして次のデ−タを前記一
時デ−タ格納手段に格納する請求項1記載の磁気デ−タ
処理装置。
5. The read data editing section includes a counter, a temporary data storage section for temporarily storing data at the time of data editing, and a predetermined digit number. A table in which the thinned data is made to correspond to each other, and each block data constituting the block data group is overlapped to derive one block data to form the block data. Each time the data to be stored is stored in the temporary data storage means, the value of the counter is incremented by a predetermined value, and the counter value is compared with the digit number with reference to the table to match the counter value. In this case, the thinning data corresponding to the digit number is read out from the table to be edited into the single block data, the counter is incremented by the predetermined value, and the counter value is incremented. Repeat until there are no more digit numbers that match If there is no digit number that matches the temporary data, the next data is used as the data for editing the data stored in the temporary data storage unit into the single block data. 2. The magnetic data processing apparatus according to claim 1, wherein the magnetic data is stored in a storage unit.
【請求項6】 前記ライトデ−タ編集部は、カウンタ
と、デ−タ編集の際にデ−タを一時的に格納する一時デ
−タ格納手段と、前記間引きデ−タの桁番を配列したテ
−ブルとを備え、前記ライトデ−タを構成する各デ−タ
を前記一時デ−タ格納手段に格納する毎に前記カウンタ
を所定の値インクリメントし、前記テ−ブルを参照して
カウンタ値と桁番と比較し、カウンタ値と一致する桁番
がある場合には次のデ−タを前記一時デ−タ格納手段に
上書きし、カウンタ値と一致する桁番がない場合には前
記一時デ−タ格納部に格納してあるデ−タを前記書込ヘ
ッドに送信するデ−タとして次のデ−タを前記一時デ−
タ格納手段に格納し、最後のデ−タを処理したのち前記
処理を繰り返して前記ブロックデ−タ群に編集する請求
項2記載の磁気デ−タ処理装置。
6. The write data editing section includes a counter, temporary data storage means for temporarily storing data at the time of data editing, and a digit number of the thinned data. The counter is incremented by a predetermined value each time data constituting the write data is stored in the temporary data storage means, and the counter is referred to by referring to the table. The value is compared with the digit number. If there is a digit number that matches the counter value, the next data is overwritten in the temporary data storage means. The next data stored in the temporary data storage is transmitted to the write head as the next data.
3. The magnetic data processing apparatus according to claim 2, wherein the data is stored in data storage means, and after the last data is processed, the processing is repeated to edit the block data group.
【請求項7】 読み取ったリ−ドデ−タを処理可能な単
一ブロックデ−タとして上位装置に送信し、そのブロッ
クデ−タに所定の処理を施したライトデ−タを上位装置
から受信し、書込ヘッドを通じて書き込む磁気デ−タ処
理装置に用いられる磁気媒体において、 前記単一ブロックデ−タから予め決められたデ−タを間
引いて構成されたブロックデ−タに制御コ−ドを挿入し
て複数繋げたブロックデ−タ群として書き込まれること
を特徴とした磁気媒体。
7. The read data is transmitted as single block data that can be processed to a higher-level device, and the write data obtained by subjecting the block data to a predetermined process is received from the higher-level device. In a magnetic medium used in a magnetic data processor for writing data through a write head, a control code is converted to block data constituted by thinning out predetermined data from the single block data. A magnetic medium characterized by being written as a block data group in which a plurality of block data are inserted and inserted.
JP24168899A 1999-08-27 1999-08-27 Magnetic data processor and magnetic medium Pending JP2001067810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24168899A JP2001067810A (en) 1999-08-27 1999-08-27 Magnetic data processor and magnetic medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24168899A JP2001067810A (en) 1999-08-27 1999-08-27 Magnetic data processor and magnetic medium

Publications (1)

Publication Number Publication Date
JP2001067810A true JP2001067810A (en) 2001-03-16

Family

ID=17078049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24168899A Pending JP2001067810A (en) 1999-08-27 1999-08-27 Magnetic data processor and magnetic medium

Country Status (1)

Country Link
JP (1) JP2001067810A (en)

Similar Documents

Publication Publication Date Title
JPH0828053B2 (en) Data recording method
JP4651212B2 (en) Portable information storage medium and authentication method thereof
JPH0786897B2 (en) Card reader
JP2001067810A (en) Magnetic data processor and magnetic medium
JPH06203227A (en) Ic card
JP2001167230A (en) Magnetic stripe data restoring method
JPH1153487A (en) Method for deciding validity of written data on ic card
US20010052039A1 (en) Card-type recording medium and card-type recording medium reader
JPH04153792A (en) Ic card
JP2523007B2 (en) How to check the card reader / writer
JPH02141915A (en) Card reader
JPH0756640B2 (en) Storage device
JPH04152488A (en) Ic card
JP3055986B2 (en) Data writing method
JP2956083B2 (en) Magnetic card device
JP2001195362A (en) Device and method for processing transaction and ic card with transaction processing function
JP2888062B2 (en) Information processing device
JP3576233B2 (en) Information storage medium issuance processing data creation device and creation method
US20050262320A1 (en) Register unit
JPS60177477A (en) Magnetic card reader
JPH06161905A (en) Data verifying method
JPH04299754A (en) Memory check system
JPH03168838A (en) Parity checking system
JPH01205395A (en) Backup information storage system
JPS6219912A (en) Sequence arithmetic and control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060207

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060923

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060929

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20061013

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071218

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080408