JPH06282672A - Mcr card reading control method - Google Patents

Mcr card reading control method

Info

Publication number
JPH06282672A
JPH06282672A JP5071857A JP7185793A JPH06282672A JP H06282672 A JPH06282672 A JP H06282672A JP 5071857 A JP5071857 A JP 5071857A JP 7185793 A JP7185793 A JP 7185793A JP H06282672 A JPH06282672 A JP H06282672A
Authority
JP
Japan
Prior art keywords
mcr
data
card
read
data string
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
JP5071857A
Other languages
Japanese (ja)
Inventor
Kinya Morinouchi
欽也 森ノ内
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP5071857A priority Critical patent/JPH06282672A/en
Publication of JPH06282672A publication Critical patent/JPH06282672A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decrease the rate of error occurrence caused by a data reading system at the head part of an MCR(magnetic card reader) card in regard of an MCR card reading control method of an MCR controller. CONSTITUTION:An MCR card reading control method applies an MCR 1 which reads the data strings on an inserted MCR card where these data strings are previously stored, and an MCR controller 2 which stores and analyzes the data strings. In such a constitution, the start and end bits showing the head and the end of a data string respectively are added to the data strings stored in the MCR card. Then a head display bit is added at an optional position of the data string held between the start and end bits to shown that the valid data, i.e., the significant information follow at the next position. The MCR 1 reads the data string and transfers it to the controller 2. The controller 2 detects the head display bit out of the data string, and the valid data following right after the head display bit are stored in the controller 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、磁気カード読取装置
(MCR:Magnetic Card Reader)において、MCR用
カード読取り制御方法に関し、特に、MCR用カードの
読取り誤りを減少させるMCR用カード読取り制御方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card reading control method for MCR in a magnetic card reading device (MCR: Magnetic Card Reader), and more particularly to a card reading control method for MCR for reducing reading errors of the MCR card. .

【0002】[0002]

【従来の技術】MCRは、データが磁気記録されたMC
R用カードを磁気ヘッドに接触させることによってその
データを読み取る装置である。MCR用カードは、薄く
可撓性にすぐれているため、金融機関やコンビニエンス
ストアなど多くの産業分野利用されており、例えば、電
子レジスタ、POSターミナル、及びATM(自動預金
支払機)等にMCRが導入されている。
2. Description of the Related Art MCR is an MC in which data is magnetically recorded.
This is a device for reading the data by bringing the R card into contact with the magnetic head. Since MCR cards are thin and flexible, they are used in many industrial fields such as financial institutions and convenience stores. For example, MCR cards are used in electronic cash registers, POS terminals, and ATMs (automated payment machines). Has been introduced.

【0003】また、MCR用カードに記録されるデータ
の構成は、JBA又はABAによって規格統一されてい
る。たとえばJBAの規格によるデータは図5に示すよ
うに、スタートビットと呼ばれる1バイトのデータ“F
FH”と、これに続く69バイト分の意味ある情報を示
すデータ列と、エンドビットと呼ばれる1バイトデータ
“FFH”と、LRC(longitudinal redundancy chec
k;水平冗長検査)ビットと呼ばれる1バイトデータの合
計72バイトで構成される。
The structure of data recorded on the MCR card is standardized by JBA or ABA. For example, the data according to the JBA standard is, as shown in FIG.
FH ”, a data string indicating the following 69 bytes of meaningful information, 1-byte data“ FFH ”called an end bit, and LRC (longitudinal redundancy chec
k; horizontal redundancy check) It is composed of a total of 72 bytes of 1-byte data called a bit.

【0004】図6に、MCRを利用した例であるPOS
ターミナルの構成を示した斜視図、図7にPOSターミ
ナルの概略ブロック図を示す。図6において、MCR3
1にMCR用カードを挿入することにより、MCR用カ
ードに記録されたデータが読み取られ、例えばそのデー
タ内容又は、業務に係るメニュー画面がディスプレイ3
2に表示される。
FIG. 6 shows a POS which is an example using MCR.
FIG. 7 is a perspective view showing the structure of the terminal, and FIG. 7 is a schematic block diagram of the POS terminal. In FIG. 6, MCR3
By inserting the MCR card in 1, the data recorded in the MCR card is read and, for example, the contents of the data or the menu screen related to the work is displayed on the display 3
It is displayed in 2.

【0005】図7において、MCR制御部35はCPU
を中心としてROM,RAM,及び接続されるディスプ
レイ32、キーボード33、プリンタ34等の周辺機器
のI/Oコントローラから構成される。
In FIG. 7, the MCR control unit 35 is a CPU.
Mainly composed of a ROM, a RAM, and an I / O controller of peripheral devices such as a display 32, a keyboard 33, and a printer 34 which are connected.

【0006】図8に、従来のPOSターミナルのMCR
制御部35におけるカード読取動作の概略フローチャー
トを示す。まず、MCR用カードがMCRに挿入される
かどうかを常時チェックする(ステップS31)。MC
R用カードが挿入されたかどうかは、例えばMCRの挿
入口に取付けられたマイクロスイッチのON/OFFに
よって判定でき、通常MCR用カードが挿入された場
合、マイクロスイッチが押されON状態となる。
FIG. 8 shows an MCR of a conventional POS terminal.
The schematic flowchart of the card reading operation in the control part 35 is shown. First, it is constantly checked whether or not the MCR card is inserted into the MCR (step S31). MC
Whether or not the R card has been inserted can be determined, for example, by turning on / off a micro switch attached to the insertion port of the MCR, and when the MCR card is normally inserted, the micro switch is pressed to turn on.

【0007】ステップS31において、マイクロスイッ
チがONとなり、カードが挿入されたと判定された場
合、データ受信監視用のタイマーT1をスタートさせ
(ステップS32)、MCRの磁気ヘッドで読取られた
データが有るかどうか(ステップS33)、読取られた
データはスタートビット(FFH)であるかどうか(ス
テップS34)をチェックする。
When it is determined in step S31 that the micro switch is turned on and a card is inserted, the timer T1 for monitoring data reception is started (step S32), and whether there is data read by the magnetic head of the MCR. Whether the read data is a start bit (FFH) (step S33) is checked (step S34).

【0008】読取データがないか又は、読取られたデー
タがFFHでない場合には、処理をくり返すが、タイマ
ーT1がタイムアウトした場合(ステップS35)には
カードリードエラーの処理(ステップS43)を行いス
テップS31へ戻る。ステップS34において、スター
トビットFFHが読取られた場合、データ受信監視用タ
イマーT2をスタートさせる(ステップS36)。
If there is no read data or if the read data is not FFH, the process is repeated, but if the timer T1 times out (step S35), a card read error process (step S43) is performed. Return to step S31. When the start bit FFH is read in step S34, the data reception monitoring timer T2 is started (step S36).

【0009】次に、読取データが有るかどうかをチェッ
クし(ステップS37)、読取データがあった場合に
は、そのデータを記憶する(ステップS38)。このと
き記憶されるデータは、FFHに続く69バイト分の意
味のある情報と、さらにストップビットFFHとLRC
ビットである。
Next, it is checked whether there is read data (step S37), and if there is read data, that data is stored (step S38). The data stored at this time includes 69 bytes of meaningful information following FFH, and also stop bits FFH and LRC.
Is a bit.

【0010】ステップS39において、データ長をカウ
ントすること等によってデータの読取の終了が検出され
ると、LRCビットを利用して読み取られた69バイト
の情報の読取誤りチェックが行われる(ステップS4
1)。ここで読取誤りがない場合(ステップS42)に
は、読取処理を終了し、次のPOSターミナルとしての
通常業務処理へ入る。
When the end of data reading is detected by counting the data length or the like in step S39, the 69-byte information read using the LRC bit is checked for read error (step S4).
1). If there is no reading error here (step S42), the reading process is terminated and the normal business process as the next POS terminal is started.

【0011】なお、ステップS37で読取データがない
場合、及びステップS39でデータの読取が終了してい
ない場合には、タイマーT2がタイムアウトしたとき、
前記したステップS43の処理へ行く。ステップS42
で、LRC誤りが発生した場合にもステップS43の処
理を行い、カードの読取動作を再度やり直す(ステップ
S31へ戻る)。
When there is no read data in step S37 and when the reading of data is not completed in step S39, when the timer T2 times out,
The process goes to step S43 described above. Step S42
Even if an LRC error occurs, the process of step S43 is performed, and the card reading operation is performed again (return to step S31).

【0012】以上のようにして、POSターミナル等の
MCRを利用した装置では、MCR用カードのデータが
読取られる。
As described above, in the device using the MCR such as the POS terminal, the data of the MCR card can be read.

【0013】[0013]

【発明が解決しようとする課題】以上のように、従来に
おけるMCR用のカードのデータを読出す方法では、た
とえばJBA規格の場合には、実際にカード内で記録さ
れている情報のデータ列のバイト数の多少にかかわら
ず、スタートビットとストップビットではさまれた69
バイトのデータすべてが常に読出され、記憶される。
As described above, in the conventional method of reading the data of the MCR card, in the case of the JBA standard, for example, the data string of the information actually recorded in the card is 69 regardless of the number of bytes
All bytes of data are always read and stored.

【0014】したがって、カード内に情報として記録さ
れている情報量が少ない場合には、カード内の空いた領
域に、意味のないデータを書き込む必要があり、また読
み出す際には、この意味のないデータも読み出すことに
なる。
Therefore, when the amount of information recorded as information in the card is small, it is necessary to write meaningless data to an empty area in the card, and when reading out, this meaning is meaningless. Data will also be read.

【0015】また、MCR本体の磁気ヘッドがカード挿
入口の近くにあるMCRでは、カード挿入時の最初に読
み取られるデータ付近に読取りエラーを生じる率が高か
った。これは十分なカード走行距離がないこと等が原因
である。
Further, in the MCR in which the magnetic head of the MCR main body is near the card insertion slot, there is a high rate of occurrence of a read error near the first data read when the card is inserted. This is because there is not enough card mileage.

【0016】また、カード挿入時に、カードが蛇行した
り、カードの挿入が正しくなくカードのデータ記録部の
途中からMCRの磁気ヘッドにかかってしまった場合に
も、データの先頭部分の読取りエラーが生じるために、
カードを再挿入する必要があった。
Also, when the card is meandering when the card is inserted, or when the card is inserted incorrectly and the magnetic head of the MCR is caught in the middle of the data recording portion of the card, a read error at the beginning of the data may occur. To occur
I had to reinsert the card.

【0017】また、MCR用カードの構造において、通
常スタートビットはカードの先端より約5mmの位置にあ
り、記録されたデータ列の後半部分のデータが正しく読
取られていたとしても、先頭付近のデータが正しく読取
られないために、結果として読取りエラーとなってい
た。ここで、特に、カードに記録された情報が少なく、
しかも、データ列の後半にこの情報データを入れ、デー
タ列の前半の空き領域に意味のないデータを入れている
場合には、後半部分の意味のある情報が正しく読み取ら
れていても読取りエラーとなる不都合が生じることにな
る。
Further, in the structure of the MCR card, the start bit is usually located about 5 mm from the tip of the card, and even if the data in the latter half of the recorded data string is correctly read, the data in the vicinity of the head Was not read correctly, resulting in a read error. Here, especially, there is little information recorded on the card,
Moreover, if this information data is put in the latter half of the data string and meaningless data is put in the empty area of the first half of the data string, a read error will occur even if the meaningful information in the latter half is correctly read. The following inconvenience will occur.

【0018】そこで、この発明は、以上のような事情を
考慮してさなれたものであり、MCR用カードに記憶さ
れたスタートビットとエンドビットの間にはさまれたデ
ータ列の任意の位置に、有効データの先頭表示ビットを
設け、MCR制御装置がこの先頭表示ビットを検出して
それ以後のMCR用カード内の有効データを読み取るよ
うにすることによって、MCR用カード先頭部のデータ
の読取りミスによる読取りエラー発生率を低減すること
を目的とする。
Therefore, the present invention has been made in consideration of the above-mentioned circumstances, and an arbitrary position of a data string sandwiched between a start bit and an end bit stored in an MCR card is provided. , The leading display bit of the valid data is provided, and the MCR control device detects the leading display bit to read the valid data in the MCR card after that, thereby reading the data of the leading portion of the MCR card. The purpose is to reduce the read error occurrence rate due to a mistake.

【0019】[0019]

【課題を解決するための手段】この発明は、データ列が
予め記憶されたMCR用カードが挿入されそのデータ列
を読み取るMCRと、読み取られたデータ列の記憶及び
解析を行うMCR制御装置とを用いたMCR用カード読
取り制御方法において、MCR用カード内部に記憶され
たデータ列に、データ列の先頭を示すスタートビットと
データ列の末尾を示すエンドビットを付加し、スタート
ビットとエンドビットの間にはさまれたデータ列の任意
の位置に、意味ある情報である有効データが次の位置か
ら続くことを示す先頭表示ビットを付加し、MCR用カ
ードをMCRに挿入した後、MCRに前記データ列を読
み取らせて、MCR制御装置へ転送し、MCR制御装置
によって前記データ列から前記先頭表示ビットを検出
し、先頭表示ビットの直後に続く有効データをMCR制
御装置の内部に記憶することを特徴とするMCR用カー
ド読取り制御方法を提供するものである。
According to the present invention, there is provided an MCR which inserts an MCR card in which a data string is stored in advance and reads the data string, and an MCR control device which stores and analyzes the read data string. In the MCR card read control method used, a start bit indicating the beginning of the data string and an end bit indicating the end of the data string are added to the data string stored inside the MCR card, and the start bit and the end bit are A head display bit indicating that valid data, which is meaningful information, continues from the next position is added to an arbitrary position of the data string sandwiched between them, and the MCR card is inserted into the MCR. The column is read and transferred to the MCR controller, and the MCR controller detects the leading display bit from the data string and There is provided a MCR card reading control method characterized by storing valid data immediately following the inside of the MCR controller.

【0020】ここで、MCR制御装置は、少なくともC
PU,ROM,RAM,及びMCRから転送されるデー
タ列及び制御・監視信号を入出力するI/Oインタフェ
ース回路から構成されるものであり、MCR用カード内
のデータ列を記憶するものである。また、キーボード、
プリンタ、ディスプレイをさらに備えて表示・印刷等の
処理を行ってもよい。
Here, the MCR controller is at least C
It is composed of an I / O interface circuit for inputting and outputting a data sequence transferred from the PU, ROM, RAM, and MCR and a control / monitoring signal, and stores the data sequence in the MCR card. Also the keyboard,
A printer and a display may be further provided to perform processing such as displaying and printing.

【0021】[0021]

【作用】MCR用カードには、スタートビットとエンド
ビットを有し、かつスタートビットとエンドビットの間
にはさまれたデータ列の任意の位置に、意味ある情報で
ある有効データが次の位置から続くことを示す先頭表示
ビットを有したデータ列が記憶されている。
The MCR card has a start bit and an end bit, and at a given position of a data string sandwiched between the start bit and the end bit, valid data that is meaningful information is placed at the next position. A data string having a head display bit indicating that the following is continued is stored.

【0022】MCRは、前記のMCR用カードが挿入さ
れると、MCR用カード内に記憶された前記データ列を
読み取りかつこのデータ列をMCR制御装置へ転送す
る。次に、MCR制御装置は、転送されてきたデータ列
の中から前記先頭表示ビットを検出し、先頭表示ビット
の直後に続く有効データを記憶する。
When the MCR card is inserted, the MCR reads the data string stored in the MCR card and transfers this data string to the MCR controller. Next, the MCR control device detects the leading display bit from the transferred data string and stores the valid data immediately following the leading display bit.

【0023】この発明に従えば、MCR用カード先頭部
のデータの読取りミスによる読取りエラーの発生を低減
することができる。
According to the present invention, it is possible to reduce the occurrence of a read error due to an error in reading the data at the head of the MCR card.

【0024】[0024]

【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。なおこれによって、この発明が限定される
ものではない。図1に、この発明の一実施例の構成ブロ
ック図を示す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the embodiments shown in the drawings. The present invention is not limited to this. FIG. 1 shows a configuration block diagram of an embodiment of the present invention.

【0025】1は、磁気カード読取装置(MCR)であ
り、MCR1にはMCR用カードがMCRの挿入口にセ
ットされたことを検知するマイクロスイッチ1aが備え
られている。2は、MCR1の動作の監視・制御及びM
CR1で読み取られたデータの記憶・解析を行い、必要
に応じて画面表示や印刷等の処理を行うMCR制御装置
である。
Reference numeral 1 is a magnetic card reader (MCR), and the MCR 1 is provided with a microswitch 1a for detecting that the MCR card is set in the insertion slot of the MCR. 2 is the monitoring and control of the operation of MCR1 and M
The MCR control device stores / analyzes the data read by the CR1 and performs processing such as screen display and printing as necessary.

【0026】3は、MCRインタフェース部であり、M
CR1との信号及びデータの入出力制御を行う。MCR
インタフェース部3は、RAM3a,ROM3b,及び
MCR制御部3cから構成される。MCR制御3cは、
MCR1とMCR制御装置2の動作全体を制御するCP
U6との間の入出力制御を行う部分である。
Reference numeral 3 is an MCR interface section, which is M
Input / output control of signals and data with CR1 is performed. MCR
The interface unit 3 includes a RAM 3a, a ROM 3b, and an MCR control unit 3c. MCR control 3c
CP that controls the overall operation of MCR1 and MCR controller 2
This is a part for controlling input / output with U6.

【0027】MCR1とMCR制御部3cとの間で入出
力される信号には、少なくとも図に示したバーCLS,
バーRDT,及びバーRCLが用いられる。バーCLS
はカード挿入信号であり、カードが挿入された時“L”
となる。バーRDTは、MCR1で読み取られたデータ
である。バーRCLは、上記バーRDTのデータの受信
タイミングを示すリードクロックである。
The signals input / output between the MCR 1 and the MCR controller 3c include at least the bar CLS,
Bar RDT and bar RCL are used. Bar CLS
Is a card insertion signal, "L" when the card is inserted
Becomes The bar RDT is the data read by MCR1. The bar RCL is a read clock indicating the reception timing of the data of the bar RDT.

【0028】また、MCR制御部3cとCPU6との間
には、上記信号バーCLS,バーRDT,バーRCTの
他に、MCR制御部3cがデータの読取を終了したこと
を示す信号バーMCRINTが用いられる。
A signal bar MCRINT indicating that the MCR control unit 3c has finished reading data is used between the MCR control unit 3c and the CPU 6 in addition to the signal bars CLS, RDT, and RCT. To be

【0029】4はRAMであり、その内部にMCR1で
読み取られたMCR用カードデータのうち意味のある情
報である有効データを記憶する領域4aを持つ。5はR
OMであり、固定データや制御手順のプログラム等が記
憶されている。キーボード8、プリンタ9、及びディス
プレイ10はI/Oインタフェース7を介してCPU6
に接続される。
Reference numeral 4 denotes a RAM, which has therein an area 4a for storing valid data which is meaningful information in the MCR card data read by the MCR1. 5 is R
The OM stores fixed data, programs for control procedures, and the like. The keyboard 8, the printer 9, and the display 10 are connected to the CPU 6 via the I / O interface 7.
Connected to.

【0030】次に、図2に、この発明で利用するMCR
用カードのデータ列の構成例を示す。データ構成は原則
として、JBA規格に適合するものであり、図2に示す
ように、スタートビット(FFH)、エンドビット(F
FH)、およびLRCビットを所定の位置に備え、全デ
ータ長は72バイトである。
Next, FIG. 2 shows the MCR used in the present invention.
7 shows an example of the configuration of a data string of a business card. In principle, the data structure conforms to the JBA standard, and as shown in FIG. 2, a start bit (FFH) and an end bit (FH)
The FH) and LRC bits are provided at predetermined positions, and the total data length is 72 bytes.

【0031】ここで、同図には、実際に利用される有効
データが33バイトの場合を示す。有効データはエンド
ビットの直前に配置され、さらに有効データの直前に、
以下に有効データが続くことを示す先頭表示ビットが配
置される。同図において、先頭表示ビットとしてA0H
(=10100000)を用いることにする。また、ス
タートビット(FFH)と先頭表示ビット(A0H)と
の間の35バイト分の空き領域には、00Hを入れてお
くものとする。
Here, the figure shows a case where the actually used effective data is 33 bytes. The valid data is placed immediately before the end bit, and immediately before the valid data,
A head display bit indicating that valid data follows is arranged below. In the figure, A0H is set as the first display bit.
(= 10100000) will be used. Further, 00H is put in a free space of 35 bytes between the start bit (FFH) and the head display bit (A0H).

【0032】図3及び図4に、この発明の実施例におけ
るCPUのMCR制御処理のフローチャートを示す。ま
ず、CPU6は、MCR制御部3c等を初期化し、カー
ド挿入を受け入れることができるように、I/Oインタ
フェース7を経由して、ディスプレイ10にカード挿入
をうながすメッセージの表示を行う(ステップS1)。
3 and 4 are flowcharts of the MCR control processing of the CPU in the embodiment of the present invention. First, the CPU 6 initializes the MCR control unit 3c and the like, and displays a message prompting the card insertion on the display 10 via the I / O interface 7 so that the card insertion can be accepted (step S1). .

【0033】次に、CPU6は、MCR用カードが挿入
されるかどうかをチェックする(ステップS2)。MC
R1にカードが挿入された場合には、MCR1にあるマ
イクロスイッチ1aがONとなり、このON信号をCP
U6が検出する。このとき、CPU6は1.5秒間のタ
イマーT0をスタートさせる(ステップS3)。また、
さらに、カードを挿入していくことにより、カード挿入
信号バーCLSが“L”となる。
Next, the CPU 6 checks whether or not the MCR card is inserted (step S2). MC
When a card is inserted in R1, the micro switch 1a in MCR1 is turned on, and this ON signal is sent to CP.
U6 detects. At this time, the CPU 6 starts the timer T0 for 1.5 seconds (step S3). Also,
Further, as the card is inserted, the card insertion signal bar CLS becomes "L".

【0034】次に、ステップS4において、MCRで読
み取られるデータのチェック及び転送制御を行うMCR
データ読取制御サブルーチンを起動させる。図4に、こ
のステップS4の詳細フローチャートを示す。
Next, at step S4, the MCR for checking the data read by the MCR and controlling the transfer.
Start the data read control subroutine. FIG. 4 shows a detailed flowchart of step S4.

【0035】図4におけるMCRデータ読取制御サブル
ーチンにおいて、まず、カード挿入信号バーCLSが
“L”になるかどうか、すなわちカードが挿入されデー
タを読み取れる状態であるかどうかをチェックする(ス
テップS12)。MCR1はカード挿入信号バーCLS
を“L”とした後、リードクロックバーRCLを送出す
る。
In the MCR data read control subroutine in FIG. 4, first, it is checked whether the card insertion signal bar CLS becomes "L", that is, whether the card is in a state where data can be read by inserting the card (step S12). MCR1 is the card insertion signal bar CLS
To "L", the read clock bar RCL is transmitted.

【0036】MCR制御部3cでバーCLS=“L”が
検出されると、次に、リードクロックバーRCLの検出
チェックを行う(ステップS13)。MCR制御部3c
は、リードクロックバーRCLの間隔をチェックし、こ
れをもとにMCR1から送られてくる読取データバーR
DTを順次最終データが受信されるまで読み込みチェッ
クする。
When the bar CLS = "L" is detected by the MCR controller 3c, next, the detection check of the read clock bar RCL is performed (step S13). MCR controller 3c
Checks the interval of the read clock bar RCL, and based on this, the read data bar R sent from MCR1
The DT is sequentially read and checked until the final data is received.

【0037】MCR用カードを挿入の途中で停止した場
合などには、バーCLSは“H”となり、MCR1はリ
ードクロックバーRCLの送出を停止する。すなわち、
ステップS13において、リードクロックバーRCLの
検出がされないような異常が発生した場合には、ステッ
プS13においてタイマーT0のタイムアウトの監視を
くり返し、T0のタイムアウトが発生した場合には、ス
テップS21へ移行しタイムアウトエラーの処理を行
う。
When the MCR card is stopped in the middle of insertion, the bar CLS becomes "H" and the MCR1 stops sending the read clock bar RCL. That is,
In step S13, if an abnormality occurs such that the read clock bar RCL is not detected, the timer T0 timeout is repeatedly monitored in step S13. If T0 timeout occurs, the process proceeds to step S21 and a timeout occurs. Handle errors.

【0038】前記したように、リードクロックバーRC
Lが検出され続けている場合には、ステップS15にお
いて、MCR制御部3cで読み取られたデータバーRD
TがA0Hであるかどうかをチェックする。A0Hでな
い場合は、ステップS13へ戻り、処理を繰り返す。M
CR制御部3cでは、リードクロックバーRCLの立下
りでバーRDTデータを下位ビットより内部RAM3a
に取り込む。
As described above, the read clock bar RC
If L continues to be detected, in step S15, the data bar RD read by the MCR control unit 3c is read.
Check if T is A0H. If it is not A0H, the process returns to step S13 to repeat the process. M
In the CR controller 3c, the bar RDT data is transferred from the lower bit to the internal RAM 3a at the trailing edge of the read clock bar RCL.
Take in.

【0039】次に、ステップS15において読取られた
データが先頭表示ビットA0Hであることが検出される
と、ステップS16及びS17において、リードクロッ
クバーRCLの立下りごと、すなわちバーRCL=
“L”が検出されるごとに、バーRDTデータを順次R
AM3a内に取り込む。
Next, when it is detected in step S15 that the read data is the leading display bit A0H, in steps S16 and S17, every fall of the read clock bar RCL, that is, bar RCL =.
Each time "L" is detected, the bar RDT data is sequentially R
It is taken into AM3a.

【0040】ステップS18において、データの読取が
終了するまで、ステップS16及びS17の処理が繰り
返され、データの読取が終了した場合には、ステップS
19へ行く。これにより、先頭表示ビットA0Hの次の
データから始まる有効データが読み取られる。
In step S18, the processes of steps S16 and S17 are repeated until the reading of the data is completed, and when the reading of the data is completed, step S18 is executed.
Go to 19. As a result, valid data starting from the data next to the head display bit A0H is read.

【0041】データの読取の終了の検出は、たとえば、
予め有効データのバイト数を決めておき、そのバイト数
分のデータが読取られた時に終了と判断することによっ
て行う。また、有効データ中にFFHが存在しない場合
には、エンドビットFFHを検出した後、次のLRCま
でを読取った時点をデータの読取終了と判断してもよ
い。
The detection of the end of reading the data is performed by, for example,
The number of bytes of valid data is determined in advance, and when the data for the number of bytes is read, it is judged that the data has ended. Further, when FFH does not exist in the valid data, it is possible to determine that the reading of the data has ended when the next LRC is read after detecting the end bit FFH.

【0042】ステップS19において、読み取られたデ
ータのLRCに誤りがないかどうかを検査し、ステップ
S20において、LRC誤りがない場合には、処理をス
テップS22へ移す。LRC誤りが発生している場合に
は、データ読み取りエラーであるので、内部RAM3a
内のERRフラグを“エラー有”にセットし(ステップ
S21)、LRCの誤りのない場合と同様にMCR制御
部3cはバーMCRINTを“L”にセットし、読取り
が終了したことを示す(ステップS22)。
In step S19, it is checked whether or not there is an error in the LRC of the read data, and if there is no LRC error in step S20, the process proceeds to step S22. If an LRC error has occurred, this is a data read error, so the internal RAM 3a
In step S21, the MCR control unit 3c sets the bar MCRINT to "L" to indicate that the reading is completed (step S21). S22).

【0043】以上が図3におけるステップS4の処理の
詳細であるが、同図においてこの処理の後、CPUは前
記ERRフラグをリードし、さらにバーMCRINTを
“L”にセットする(ステップS5)。
The above is the details of the process of step S4 in FIG. 3. After this process in FIG. 3, the CPU reads the ERR flag and sets the bar MCRINT to "L" (step S5).

【0044】ステップS6においてERRフラグが“エ
ラー有”にセットされている場合には、タイマーT0が
タイムアウトしていないかどうかをチェックし(ステッ
プS7)、タイムアウトしていない場合はステップS4
の処理へ戻り、再度読取り制御動作に入る。
If the ERR flag is set to "with error" in step S6, it is checked whether or not the timer T0 has timed out (step S7), and if not, step S4.
Then, the reading control operation is started again.

【0045】タイマーT0がタイムアウトしている場合
には、カードリードエラー処理に入り、例えばディスプ
レイ10又はプリンタ9に、カードリードエラーである
ことを表示又は印刷し(ステップS11)、処理を終了
する。
When the timer T0 has timed out, a card read error process is started, and for example, the display 10 or the printer 9 displays or prints that there is a card read error (step S11), and the process ends.

【0046】ステップS6において、ERRフラグが
“エラー無し”となっている場合には、CPUはタイマ
ーT0をリセットし(ステップS8)、ROM3aに読
み取れた有効データ列をRAM4内の有効データ記憶領
域4aに転送する(ステップS9)。さらに、MCR用
カードのデータが正常に読み取られたことなどを示すメ
ニュー画面の表示を行い(ステップS10)、次の通常
業務処理等へ進む。
If the ERR flag is "no error" in step S6, the CPU resets the timer T0 (step S8), and the valid data string read in the ROM 3a is stored in the valid data storage area 4a in the RAM 4. (Step S9). Further, a menu screen indicating that the data on the MCR card has been normally read is displayed (step S10), and the process proceeds to the next normal business process.

【0047】以上が、この発明の一実施例におけるMC
R用カードデータ列の読取処理のフローであるが、MC
R用カード内に記憶されたデータ列の途中に先頭表示ビ
ットA0Hを入れ、それ以降のデータ列を有効データと
してMCR制御装置の内部RAMに取り込むようにして
いるので、MCR用カードデータの読取りミスを低減さ
せることができ、特に、利用するデータ列の数が少ない
程、データの読取り精度に関して有効である。
The above is the MC in one embodiment of the present invention.
The flow of reading processing of R card data string
Since the leading display bit A0H is inserted in the middle of the data string stored in the R card, and the subsequent data strings are taken into the internal RAM of the MCR control device as valid data, a read error of the MCR card data is made. Can be reduced, and in particular, the smaller the number of data strings used, the more effective the data reading accuracy is.

【0048】[0048]

【発明の効果】この発明によれば、MCR用カードに記
憶されたスタートビットとエンドビットの間にはさまれ
たデータ列の任意の位置に、有効データの先頭表示ビッ
トを設け、MCR制御装置がこの先頭表示ビットを検出
してそれ以後のMCR用カード内の有効データを読み取
るようにしているので、MCR用カードの先頭部にデー
タの読取りミスが発生しても、先頭表示ビット以後のデ
ータが正しく読めていれば読取りエラーとはならず、M
CR用カードの読取りエラー発生率を低減させることが
できる。
According to the present invention, the head display bit of valid data is provided at an arbitrary position of the data string sandwiched between the start bit and the end bit stored in the MCR card, and the MCR control device is provided. Detects the head display bit and reads the valid data in the MCR card after that, even if a data read error occurs at the head of the MCR card, the data after the head display bit If it is read correctly, it will not cause a reading error and M
The read error occurrence rate of the CR card can be reduced.

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

【図1】この発明の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】この発明の実施例におけるMCR用カード内の
データ列の構成を示す説明図である。
FIG. 2 is an explanatory diagram showing a structure of a data string in the MCR card according to the embodiment of the present invention.

【図3】この発明の実施例における、MCR用カード内
のデータ列の構成を示す説明図である。
FIG. 3 is an explanatory diagram showing a configuration of a data string in the MCR card according to the embodiment of the present invention.

【図4】この発明の実施例における、MCR用カードの
読取り制御のサブルーチンのフローチャートである。
FIG. 4 is a flowchart of a subroutine for control of reading an MCR card according to the embodiment of the present invention.

【図5】従来例におけるJBA規格のデータ列の構成を
示す説明図である。
FIG. 5 is an explanatory diagram showing a configuration of a JBA standard data string in a conventional example.

【図6】従来例におけるMCRを用いたPOSターミナ
ルの斜視図である。
FIG. 6 is a perspective view of a POS terminal using MCR in a conventional example.

【図7】従来例におけるMCRを用いたPOSターミナ
ルの構成ブロック図である。
FIG. 7 is a configuration block diagram of a POS terminal using MCR in a conventional example.

【図8】従来例におけるMCR用カードの読取り制御の
フローチャートである。
FIG. 8 is a flowchart of MCR card reading control in a conventional example.

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

1 磁気カード読取装置(MCR) 1a マイクロスイッチ 2 MCR制御装置 3 MCRインタフェース部 3a RAM 3b ROM 3c MCR制御部 4 RAM 4a 有効データ記憶領域 5 ROM 6 CPU 7 I/Oインタフェース 8 キーボード 9 プリンタ 10 ディスプレイ 1 Magnetic Card Reader (MCR) 1a Micro Switch 2 MCR Controller 3 MCR Interface 3a RAM 3b ROM 3c MCR Controller 4 RAM 4a Effective Data Storage Area 5 ROM 6 CPU 7 I / O Interface 8 Keyboard 9 Printer 10 Display

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データ列が予め記憶されたMCR用カー
ドが挿入されそのデータ列を読み取るMCRと、読み取
られたデータ列の記憶及び解析を行うMCR制御装置と
を用いたMCR用カード読取り制御方法において、MC
R用カード内部に記憶されたデータ列に、データ列の先
頭を示すスタートビットとデータ列の末尾を示すエンド
ビットを付加し、スタートビットとエンドビットの間に
はさまれたデータ列の任意の位置に、意味ある情報であ
る有効データが次の位置から続くことを示す先頭表示ビ
ットを付加し、MCR用カードをMCRに挿入した後、
MCRに前記データ列を読み取らせて、MCR制御装置
へ転送し、MCR制御装置によって前記データ列から前
記先頭表示ビットを検出し、先頭表示ビットの直後に続
く有効データをMCR制御装置の内部に記憶させること
を特徴とするMCR用カード読取り制御方法。
1. A MCR card read control method using an MCR which inserts an MCR card in which a data string is stored in advance and reads the data string, and an MCR control device which stores and analyzes the read data string. At MC
A start bit indicating the beginning of the data string and an end bit indicating the end of the data string are added to the data string stored in the R card, and any data string sandwiched between the start bit and the end bit is added. After adding a leading display bit indicating that valid data, which is meaningful information, continues from the next position to the position and inserting the MCR card into the MCR,
The MCR is made to read the data string, transferred to the MCR control device, the MCR control device detects the leading display bit from the data string, and the valid data immediately following the leading display bit is stored inside the MCR control device. A card reading control method for MCR, comprising:
JP5071857A 1993-03-30 1993-03-30 Mcr card reading control method Pending JPH06282672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5071857A JPH06282672A (en) 1993-03-30 1993-03-30 Mcr card reading control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5071857A JPH06282672A (en) 1993-03-30 1993-03-30 Mcr card reading control method

Publications (1)

Publication Number Publication Date
JPH06282672A true JPH06282672A (en) 1994-10-07

Family

ID=13472624

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5071857A Pending JPH06282672A (en) 1993-03-30 1993-03-30 Mcr card reading control method

Country Status (1)

Country Link
JP (1) JPH06282672A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009048339A (en) * 2007-08-17 2009-03-05 Takamisawa Cybernetics Co Ltd Card-shaped medium processing device and method for reading magnetic information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009048339A (en) * 2007-08-17 2009-03-05 Takamisawa Cybernetics Co Ltd Card-shaped medium processing device and method for reading magnetic information

Similar Documents

Publication Publication Date Title
KR900005212B1 (en) Ic card with an updatable password
JPS6260080A (en) Ic card system
JPH06282672A (en) Mcr card reading control method
JPH0713987A (en) Data reading method in magnetic card reader
JPS5856065A (en) Automatic transaction selective processing system
JPS6113631B2 (en)
KR200171853Y1 (en) Magnetic card recorder for video game system
JP2006099315A (en) Automatic transaction device
JPH02135594A (en) Card system automatic vending machine
JPH033273B2 (en)
JPH0635947A (en) Card-use transaction processor
JPH04439Y2 (en)
JPH0232676B2 (en)
JP3214134B2 (en) Vending machine compatible with ID card
JP2915674B2 (en) Slip printer
JPH11175810A (en) Automatic transaction machine
JPH02184969A (en) Automatic cash transaction device
JPS6327998A (en) Electronic type cash register
JPH1079073A (en) Magnetic stripe data processing method
JPH033272B2 (en)
JPH0440583A (en) Card reading method and card transaction processor
JPS6175494A (en) Operator gruidance for automatic cash transactor
JPH0524302A (en) Entry machine
JPH06110594A (en) Input device for password code and switching circuit used for the same
JP2000123126A (en) Handy terminal with ic card reader/writer