JPH0528626A - Card reader - Google Patents

Card reader

Info

Publication number
JPH0528626A
JPH0528626A JP3178002A JP17800291A JPH0528626A JP H0528626 A JPH0528626 A JP H0528626A JP 3178002 A JP3178002 A JP 3178002A JP 17800291 A JP17800291 A JP 17800291A JP H0528626 A JPH0528626 A JP H0528626A
Authority
JP
Japan
Prior art keywords
card
signal
bar code
data
generating
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.)
Granted
Application number
JP3178002A
Other languages
Japanese (ja)
Other versions
JP3324123B2 (en
Inventor
Hiromi Onodera
博美 小野寺
Hajime Oki
元 大木
Takahiro Iwamura
孝弘 岩村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP17800291A priority Critical patent/JP3324123B2/en
Publication of JPH0528626A publication Critical patent/JPH0528626A/en
Application granted granted Critical
Publication of JP3324123B2 publication Critical patent/JP3324123B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the generation of a reading error by changing a bar-code on a card to an electric positional data and reading it while correcting a positional shift every one bit. CONSTITUTION:This reader is constituted of a position detector 22 for integrating pulses corresponding to the moving distance of the card and generating the positional data of the card, an edge detector 23 for generating a first interrupting signal 25 to a microcomputer 21 by detecting the edge of the rising and falling of a bar-code signal, an interruption generating circuit 27 for generating a second interrupting signal 26 when a position is set beforehand and the positional data of the card become equal and a RAM 24 for temporarily storing data. The positional data when the first interrupting signal 25 is generated is stored in the RAM 24 and depending on whether the positional data is stored in the RAM 24 or not when the second interrupting signal, 26 is generated, whether the bar-code is 1 or 0 is decided and the logical position of a next bar is calculated from the positional data stored in the RAM 24.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プリペイドカードやプ
レミアムカード上の情報を読み取り処理するカードリー
ダに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a card reader for reading and processing information on a prepaid card or a premium card.

【0002】[0002]

【従来の技術】プリペイドカードやプレミアムカードで
は、カードの偽造防止等の目的でカード上にバーコード
を設ける場合が多い。図5はそのカードの構造例を示す
もので、カード1上にm本(mは整数)の線分(以下バ
ーと呼ぶ)からなるバーコード2が形成されている。バ
ーのピッチは、Pまたは2Pであり、一定ピッチPで中
心線を引いた場合に、その中心線上にバーがある場合を
データ1とし、中心線上にバーがない場合をデータ0と
して、1101……のバーコード・データを構成してい
る。
2. Description of the Related Art In many cases of prepaid cards and premium cards, a bar code is provided on the card for the purpose of preventing forgery of the card. FIG. 5 shows an example of the structure of the card, in which a bar code 2 composed of m (m is an integer) line segments (hereinafter referred to as a bar) is formed on the card 1. The bar pitch is P or 2P. When a center line is drawn at a constant pitch P, data 1 indicates that there is a bar on the center line, data 0 indicates that there is no bar on the center line, and 1101 ... It composes the bar code data of ...

【0003】従来、カード上のバーコード2を検出し、
バーコードに対応したパルスを発生させるバーコード検
出回路は、図6(a)に示すような構成を有していた。
さらに、その詳細を図6(a),図6(b),図7,図
8により説明する。図6(a)において、3はセンサ、
4は増幅器、5は2値化回路である。センサ3には、カ
ード上のバーコードに対応して、磁気式の検出素子や光
学式の検出素子などが使用され、接触式や非接触式など
様々な方式が採用されている。
Conventionally, the bar code 2 on the card is detected,
The bar code detecting circuit for generating a pulse corresponding to the bar code had a structure as shown in FIG. 6 (a).
Further details will be described with reference to FIGS. 6A, 6B, 7 and 8. In FIG. 6A, 3 is a sensor,
Reference numeral 4 is an amplifier, and 5 is a binarization circuit. For the sensor 3, a magnetic detection element, an optical detection element, or the like is used corresponding to the bar code on the card, and various methods such as a contact type and a non-contact type are adopted.

【0004】図6(b)は、バーコード検出回路の出力
信号の一例を示すバーコード信号波形図である。各バー
に対応して、バーがある部分でのみ信号が変化する。図
6(a)のセンサ3が、カード上のバーコードに沿って
一定の速度で相対運動を行う場合、各バーに対応した信
号の間隔は、一定の時間Tまたは2Tとなる。
FIG. 6B is a bar code signal waveform diagram showing an example of the output signal of the bar code detecting circuit. Corresponding to each bar, the signal changes only where the bar is. When the sensor 3 in FIG. 6A makes relative movement along the bar code on the card at a constant speed, the signal interval corresponding to each bar is a constant time T or 2T.

【0005】図7は、図6(b)で示すバーコード信号
を0と1のビット列に変換し、定められたビット長のバ
ーコード・データを生成する従来のカードリーダに用い
られていたバーコード認識手段の構成を示すブロック図
である。プログラムが格納されたROM(リード・オン
リー・メモリ)6、ROM6の内容に従って処理を行う
マイクロコンピュータ7、一定周期のクロックパルスを
積算するカウンタ8、図6(b)で示すバーコード信号
の立ち上がりまたは立ち下がりエッジを検出しマイクロ
コンピュータ7への割り込み信号を発生するエッジ検出
器9、バーコードの信号の立ち上がりと立ち下がりの時
のカウンタ8のデータを記憶するRAM(ランダム・ア
クセス・メモリ)10とを含んで構成される。
FIG. 7 shows a bar used in a conventional card reader for converting the bar code signal shown in FIG. 6 (b) into a bit string of 0 and 1 and generating bar code data having a predetermined bit length. It is a block diagram which shows the structure of a code recognition means. A ROM (Read Only Memory) 6 in which a program is stored, a microcomputer 7 that performs processing according to the contents of the ROM 6, a counter 8 that accumulates clock pulses of a constant cycle, a rising edge of a bar code signal shown in FIG. An edge detector 9 that detects a falling edge and generates an interrupt signal to the microcomputer 7, a RAM (random access memory) 10 that stores data of the counter 8 at the time of rising and falling of the barcode signal, and It is configured to include.

【0006】図8は、ROM6に内蔵されたプログラム
のフロー図を示す。以下、この図を用いて従来のバーコ
ード認識手段の動作原理を説明する。ただし、先にカー
ドとセンサ3が相対運動を行い、全てのバーコード信号
の立ち上がりまたは立ち下がり時のカウント値がRAM
10に記憶されているものとする。
FIG. 8 shows a flow chart of a program stored in the ROM 6. The operating principle of the conventional barcode recognition means will be described below with reference to this drawing. However, the card and the sensor 3 first move relative to each other, and the count values at the rise or fall of all bar code signals are stored in the RAM.
10 is stored.

【0007】処理11では、RAM10に記憶されたn
番目のバーコード信号(nは整数)の立ち上がり時のデ
ータと立ち下がり時のデータとを用いて信号の中心値B
nを算出する。なお、この時の中心値Bnとは、一定周
期のクロックパルスの積算量であり、単位は時間であ
る。処理12では、処理11で算出した中心値BnをR
AM10の指定したアドレスへ保存する。その後、前記
アドレスを更新する。前記処理11〜12では、分岐1
3により、m本のバーの中心値Bnが演算され、RAM
10に格納されるまで繰り返される。処理14は、バー
とバーの間の時間Tnを算出するステップであり、Bn
−Bn−1の演算を行う。分岐15と分岐16は、上記
Tnの値によりn番目のバーコード信号が1であるか0
であるかを判別する。Tnが、次式 T/2≦Tn<3T/2 を満足すれば、n番目のデータは1とし、 3T/2≦Tn<5T/2 を満足すれば、n番目のデータは0とする。
In process 11, n stored in the RAM 10 is stored.
The center value B of the signal using the rising data and the falling data of the th bar code signal (n is an integer)
Calculate n. The central value Bn at this time is an integrated amount of clock pulses of a constant cycle, and the unit is time. In process 12, the central value Bn calculated in process 11 is set to R
Save to the specified address of AM10. Then, the address is updated. In the processing 11 to 12, the branch 1
3, the central value Bn of the m bars is calculated,
Repeated until 10 is stored. The process 14 is a step of calculating the time Tn between the bars, and Bn
-Calculate Bn-1. Whether the nth barcode signal is 1 or 0 depending on the value of Tn in the branches 15 and 16.
Is determined. If Tn satisfies the following equation T / 2 ≦ Tn <3T / 2, the nth data is set to 1, and if 3T / 2 ≦ Tn <5T / 2 is satisfied, the nth data is set to 0.

【0008】このようにTnの判定基準に幅を持たせる
ことによって、バーコード読み取りの精度は高くなる。
処理17と処理18は、1または0と判定されたn番目
のデータを下位ビットから順番にRAMへ記憶させるも
のである。
By thus providing the Tn judgment standard with a wide range, the accuracy of reading the bar code is improved.
Processing 17 and processing 18 are for storing the n-th data determined to be 1 or 0 in the RAM in order from the lower bit.

【0009】上記処理14〜処理18を(m−1)回繰
り返すことにより、m本のバーがmビットのディジタル
・コードに変換される。ただし、1本目のバーに限り、
前にバーがないため上記の処理ができないので別途に処
理している。
By repeating the above processings 14 to 18 (m-1) times, m bars are converted into an m-bit digital code. However, only for the first bar,
Since there is no bar in front, the above processing cannot be performed, so it is processed separately.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の例では、カードの搬送速度が一定で速度ジッ
タもない理想的な場合は、前述の方法でも正しいバーコ
ード検出が可能であるが、実際のカードリーダにおいて
は、カード送りローラや搬送系の滑り、負荷変動による
速度ジッタ、周囲温度の変化による速度変動等があり、
それによって、バーコードの1と0の判定を間違える場
合があった。
However, in such a conventional example, in the ideal case where the card conveying speed is constant and there is no speed jitter, correct bar code detection can be performed by the above-mentioned method. In an actual card reader, there are slippage of the card feed roller and transport system, speed jitter due to load fluctuation, speed fluctuation due to ambient temperature change, etc.
As a result, the judgment of 1 and 0 on the barcode may be mistaken.

【0011】しかし、上記の従来のバーコード認識手段
の構成では、カードの実際の動きに無関係な一定周期の
クロックパルスをカウントする方法を用いているため、
読み取り性能がカード搬送速度の精度に大きく依存して
おり、搬送速度の変動等で読み取りエラーを起こしやす
い。また、搬送系の滑り等で途中でカウント値がずれる
と、その誤差は累積され、移動距離が長くなればなるほ
ど(バーコードのビット数が多ければ多いほど)検出誤
りが発生しやすくなるという問題点を有していた。
However, in the above-mentioned conventional bar code recognition means, since the method of counting the clock pulses of a constant period irrelevant to the actual movement of the card is used,
The reading performance greatly depends on the accuracy of the card transportation speed, and reading errors are likely to occur due to fluctuations in the transportation speed. Further, if the count value shifts midway due to slippage of the transport system, the error is accumulated, and the longer the movement distance (the larger the number of bits of the barcode, the more likely it is that a detection error will occur. Had a point.

【0012】本発明は、上記の従来の課題を解決するも
ので、カードリーダにおけるカード送りローラや搬送系
の滑り、搬送系の速度むらや速度変動を伴う場合にもバ
ーコードの検出誤りを生じないカードリーダを提供する
ことを目的とする。
The present invention solves the above-mentioned conventional problems, and causes a bar code detection error even when the card feed roller in the card reader and the conveyance system are slipped, and the conveyance system has uneven speed and fluctuations in speed. It is intended to provide a non-card reader.

【0013】[0013]

【課題を解決するための手段】上記の目的を達成するた
めに本発明のカードリーダは、2種類のピッチを有し幅
の一定な複数の線分からなるカード上のバーコードを検
出するセンサと、そのセンサの出力を増幅しパルスに変
換するバーコード検出手段と、カードの位置を検出し位
置データを出力する位置認識手段と、前記パルスの立ち
上がりエッジと立ち下がりエッジを検出し第1の割り込
み信号を発生するエッジ検出手段と、あらかじめ設定し
た位置データと前記位置データが等しくなった時に第2
の割り込み信号を発生する割り込み発生手段と、データ
を一時的に記憶する記憶手段と、第1の割り込み信号が
発生したときの位置データを前記記憶手段に記憶させ、
第2の割り込み信号が発生したときに前記記憶手段に位
置データが記憶されているか否かによりバーコードデー
タの1か0の判定を行うとともに、記憶手段に記憶され
た位置データから次のバーの理論的な位置を算出するよ
うにプログラムされた演算処理手段とにより1ビットご
とに補正を行いながら、バーコードを読み取るようにし
たものである。
In order to achieve the above object, a card reader of the present invention comprises a sensor for detecting a bar code on a card composed of a plurality of line segments having two kinds of pitches and having a constant width. A bar code detecting means for amplifying the output of the sensor and converting it into a pulse; a position recognizing means for detecting the position of the card and outputting position data; and a first interrupt for detecting a rising edge and a falling edge of the pulse. The edge detecting means for generating a signal, and the second when the preset position data and the position data become equal
Interrupt generating means for generating the interrupt signal, storage means for temporarily storing data, and position data when the first interrupt signal is generated are stored in the storage means,
When the second interrupt signal is generated, it is determined whether the bar code data is 1 or 0 depending on whether or not the position data is stored in the storage means, and the next bar is read from the position data stored in the storage means. The barcode is read while performing correction for each bit by an arithmetic processing unit programmed to calculate a theoretical position.

【0014】[0014]

【作用】上記した構成によれば、カード搬送速度が変化
した場合、バーコード検出手段より出力されるパルスの
時間間隔は変化するが、カードの位置を検出した位置デ
ータを用いたバーの位置間隔は常に一定であり、速度変
動の影響を受けない。また、先に検出したバーの位置デ
ータから次に検出すべきバーの理論上の位置を算出する
ことにより1ビットごとに位置補正を行うことができる
ため、カード搬送上に発生した滑り等で実際の位置と位
置データとの間で、誤差が発生してもその誤差は累積さ
れず読み取りの信頼性を向上させることができる。
According to the above structure, when the card transport speed changes, the time interval of the pulse output from the bar code detecting means changes, but the bar position interval using the position data for detecting the card position is changed. Is always constant and is not affected by speed fluctuations. Also, since the theoretical position of the bar to be detected next can be calculated from the position data of the bar detected earlier, the position can be corrected bit by bit, so that it is possible to use the actual position due to slippage during card transportation. Even if an error occurs between the position and the position data, the error is not accumulated and the reading reliability can be improved.

【0015】[0015]

【実施例】以下本発明の一実施例について図面を参照し
ながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0016】図1は、本発明のカードリーダで用いられ
るバーコード認識手段の一実施例の構成を示すブロック
図であり、図6(b)で示すバーコード信号を0と1の
ビット列に変換し、定められたビット長のバーコード・
データを生成するものである。
FIG. 1 is a block diagram showing the configuration of an embodiment of the bar code recognizing means used in the card reader of the present invention. The bar code signal shown in FIG. 6 (b) is converted into a bit string of 0 and 1. A bar code with a specified bit length
It generates data.

【0017】図1において、20は本発明の特徴である
バーコード認識方式を実現するプログラムが格納された
ROM、21はROM20の内容に従って処理を実行す
るマイクロコンピュータ、22はカードの移動距離に対
応したパルスを積算しカードの位置データを生成する位
置認識手段、23は図6(b)で示すバーコード信号の
立ち上がりまたは立ち下がりエッジを検出しマイクロコ
ンピュータ21への第1の割り込み信号25を発生する
エッジ検出器、24はバーコード信号の立ち上がりと立
ち下がりの位置認識手段22の出力である位置データを
記憶するRAM、27はあらかじめ設定した位置データ
とカードの位置データが一致したときにマイクロコンピ
ュータ21へ第2の割り込み信号26を発生させる割り
込み発生手段である。
In FIG. 1, 20 is a ROM that stores a program that realizes the barcode recognition method that is a feature of the present invention, 21 is a microcomputer that executes processing in accordance with the contents of the ROM 20, and 22 is the movement distance of a card. Position recognition means for accumulating the generated pulses and generating the position data of the card, and 23 detects the rising or falling edge of the bar code signal shown in FIG. 6B and generates the first interrupt signal 25 to the microcomputer 21. An edge detector 24, a RAM 24 for storing the position data output from the position recognizing means 22 at the rising and falling edges of the bar code signal, and a microcomputer 27 when the preset position data and the card position data match. 21 is an interrupt generating means for generating a second interrupt signal 26 .

【0018】図2は、位置認識手段22を実現する一実
施例のブロック図である。28はカード搬送用のモータ
ー、29はモーター28の同軸上に取り付けられ、モー
ター28の回転角度に対応して正弦波状の信号を出力す
るタコジェネレータ(以下TGと称する)、30はTG
29の正弦波状位置信号を増幅し矩形波位置パルスを生
成する2値化回路、31は位置パルスを積算しカードの
位置データを生成する積算カウンタである。モーター2
8の回転は、プーリーやベルト等により、カード搬送ロ
ーラーに伝達される。カード搬送ローラーにより搬送さ
れるカードの移動量は、搬送ローラーの回転量に比例
し、最終的にはモーター28の回転量に比例する。した
がって、モーター28と同時に回転するTG29は、間
接的にカードの移動量に比例した信号を出力しているこ
とになる。
FIG. 2 is a block diagram of an embodiment for realizing the position recognizing means 22. 28 is a motor for card transportation, 29 is a coaxially mounted motor 28, and a tacho generator (hereinafter referred to as TG) that outputs a sinusoidal signal corresponding to the rotation angle of the motor 28, and 30 is a TG.
A binarization circuit that amplifies the sinusoidal position signal of 29 to generate a rectangular wave position pulse, and 31 is an integrating counter that integrates the position pulse and generates the position data of the card. Motor 2
The rotation of 8 is transmitted to the card transport roller by a pulley, a belt or the like. The amount of movement of the card carried by the card carrying roller is proportional to the amount of rotation of the carrying roller, and finally proportional to the amount of rotation of the motor 28. Therefore, the TG 29, which rotates simultaneously with the motor 28, indirectly outputs a signal proportional to the movement amount of the card.

【0019】図3は、図6(a)に示すバーコード検出
回路の出力信号の一例を示すバーコード信号波形図であ
り、本発明の動作原理を説明するための図である。図6
(b)に示すセンサ3が、カード上のバーコードに沿っ
て相対運動を行う場合、各バーに対応した信号の間隔
は、2値化回路30の出力である位置パルスの数を積算
することにより、距離のデータとして知ることができ、
一定の距離Xまたは2Xが得られる。
FIG. 3 is a bar code signal waveform diagram showing an example of the output signal of the bar code detecting circuit shown in FIG. 6 (a), and is a diagram for explaining the operation principle of the present invention. Figure 6
When the sensor 3 shown in (b) performs relative movement along the bar code on the card, the interval between the signals corresponding to each bar should be calculated by integrating the number of position pulses output from the binarization circuit 30. Can be known as distance data,
A constant distance X or 2X is obtained.

【0020】図4は、ROM20に内蔵されたプログラ
ムのフロー図を示す。以下、図3および図4を用いて本
発明のカードリーダに用いられるバーコード認識手段の
動作原理を説明する。
FIG. 4 shows a flow chart of a program stored in the ROM 20. The operating principle of the barcode recognition means used in the card reader of the present invention will be described below with reference to FIGS. 3 and 4.

【0021】処理40は、図1に示すエッジ検出器23
の出力により発生した第1の割り込み処理ルーチンであ
り、バーコード信号の立ち上がりまたは立ち下がりのタ
イミングで位置認識手段22の位置データをRAM24
の指定したアドレスへ記憶する。その後前記アドレスを
更新する。処理41は、バーコード信号の立ち上がりま
たは立ち下がりを検出し、位置データを処理したことを
示す処理フラグに1をセットする。
Process 40 is the edge detector 23 shown in FIG.
Is a first interrupt processing routine generated by the output of the RAM 24, and the position data of the position recognizing means 22 is stored in the RAM 24 at the rising or falling timing of the bar code signal.
Store to the address specified by. After that, the address is updated. The process 41 detects the rising or falling of the bar code signal and sets 1 to the process flag indicating that the position data has been processed.

【0022】処理42〜51は、割り込み発生手段27
により発生した第2の割り込み処理ルーチンである。処
理42は、RAM24に記憶されたn番目のバーコード
信号(nは整数)の立ち上がり時のデータと立ち下がり
時のデータとを用いて図3に示す信号の中心位置Xnを
算出する。処理43は、割り込み信号発生手段27に次
の割り込み発生条件をセットするルーチンであり、n+
1番目のバーコード信号を処理するために、割り込みを
発生させるべきカード位置Xiをセットする。位置Xi
の算出は Xi=Xn+3X/2 による。
The processes 42 to 51 are executed by the interrupt generating means 27.
It is a second interrupt processing routine generated by. The process 42 calculates the center position Xn of the signal shown in FIG. 3 using the rising data and the falling data of the n-th barcode signal (n is an integer) stored in the RAM 24. Process 43 is a routine for setting the next interrupt generation condition in the interrupt signal generation means 27, and n +
To process the first bar code signal, set the card position Xi at which the interrupt should be generated. Position Xi
Is calculated by Xi = Xn + 3X / 2.

【0023】分岐44は、処理フラグをチェックし、処
理フラグが1であれば分岐36へ、0であれば処理45
へ処理を分岐させる。処理45は、n番目のデータビッ
トに0をセットするルーチンである。処理フラグが0と
いうことは、バーコード信号の立ち上がりまたは立ち下
がりが検出されなかったことを示す。分岐46と分岐4
7は、検出したバーコードが規定フォーマットに従った
ものであるか否かをチェックするためのルーチンであ
り、これにより異種のカードを間違って処理しないよう
にする。具体的には、n番目のバーコード信号の立ち上
がり時の位置データと立ち下がり時の位置データが、図
3に示すデータのしきい値aとbが作る幅の中に入って
いるか否かをチェックする。幅の中に入っていれば規定
フォーマットのカードであるとして、処理48を分岐す
る。幅の中に入っていなければ、規定フォーマット外と
して処理49でエラー処理する。処理48は、n番目の
データビットに1をセットするルーチンである。処理5
0は、n+1番目のバーコードの理論上の中心位置Xr
を算出するルーチンであり、次式に示すように処理42
で算出したn番目のバーコードの実測の中心位置Xnを
基準として、それにカード上のバーのピッチXを加算し
て求める。
The branch 44 checks the processing flag. If the processing flag is 1, the branch is taken. If the processing flag is 0, the processing 45 is carried out.
Branch processing to. The process 45 is a routine for setting 0 to the n-th data bit. When the processing flag is 0, it indicates that the rising or falling of the barcode signal has not been detected. Branch 46 and branch 4
Reference numeral 7 is a routine for checking whether or not the detected bar code is in conformity with the specified format, so that different kinds of cards are not processed by mistake. Specifically, whether the position data at the rising edge and the position data at the falling edge of the n-th barcode signal are within the width formed by the threshold values a and b of the data shown in FIG. To check. If it is within the width, it is determined that the card has the specified format, and the process 48 is branched. If it is not within the width, it is regarded as out of the specified format, and error processing is performed in process 49. The process 48 is a routine that sets 1 to the n-th data bit. Process 5
0 is the theoretical center position Xr of the (n + 1) th barcode
Is a routine for calculating
Based on the actually measured center position Xn of the n-th bar code calculated in step 1, the bar pitch X on the card is added thereto.

【0024】Xr=Xn+X 処理51は、n+1番目のバーコードデータに対するし
きい値a,bを算出するルーチンであり、上記理論上の
中心位置Xrを中心として、新たに正負一定幅のしきい
値a,bを算出する。
The Xr = Xn + X processing 51 is a routine for calculating the threshold values a and b for the (n + 1) th bar code data, and a new threshold value of positive and negative constant width is centered on the theoretical center position Xr. Calculate a and b.

【0025】以上は、バーコードの1ビットに対する処
理であり、同様にしてバーの本数分処理を繰り返し、1
ビット毎に1または0の判定を行い、下位ビットから順
番に並べれば、バーコード・データが得られる。
The above is the processing for one bit of the bar code, and similarly, the processing is repeated for the number of bars, and
By determining 1 or 0 for each bit and arranging in order from the lower bit, bar code data can be obtained.

【0026】このように構成された本発明の実施例で
は、バーコードの検出にカードの位置情報を用いている
ため、従来問題とされたような、周囲温度に対応したカ
ード搬送速度の変動があっても、変動にまったく無関係
で安定したバーコード検出が可能である。また、処理5
0に示すように、n+1番目のバーの読み取りのため
に、n番目のバーの実測中心位置を基準にして理論上の
中心位置を算出して使用するので、搬送系の滑り等で途
中カウント値(位置データ)がずれても、1ビットごと
にずれが補正され、従来例で問題とされた誤差の累積は
発生しない。したがって、ビット数の多いバーコード
(センサとカードの相対移動距離が長い)の場合でも、
ビット数に関係なく、安定したバーコード検出が可能と
なる。
In the embodiment of the present invention configured as described above, since the position information of the card is used for detecting the bar code, the fluctuation of the card conveying speed corresponding to the ambient temperature, which has been a problem in the past, is caused. Even if there is, stable barcode detection is possible regardless of fluctuations. Also, process 5
As shown in 0, in order to read the (n + 1) th bar, the theoretical center position is calculated with reference to the actually measured center position of the nth bar, and therefore the count value in the middle due to slippage of the transport system or the like. Even if the (position data) shifts, the shift is corrected bit by bit, and the accumulation of errors, which has been a problem in the conventional example, does not occur. Therefore, even in the case of a bar code with many bits (the relative movement distance between the sensor and the card is long),
Stable bar code detection is possible regardless of the number of bits.

【0027】[0027]

【発明の効果】以上の説明から明らかなように本発明の
カードリーダは、バーコードの読み取りに位置認識手段
を用いることにより、カードの搬送速度の変化に対して
読み取りエラーの発生を防止するのに有効であり、ま
た、1ビットごとに現在のバーの読み取り結果から次の
バーの理論的な位置を算出する演算処理手段を用いたこ
とにより搬送系の滑り等に対しても読み取りエラーの発
生を防止するのに有効であり、その結果バーコードの読
み取りエラーを著しく低減させることができ、安定で信
頼性の高いカードリーダを実現することができる。
As is apparent from the above description, the card reader of the present invention prevents the occurrence of a reading error with respect to the change of the card transport speed by using the position recognition means for reading the bar code. It is also effective for the above, and by using the arithmetic processing means for calculating the theoretical position of the next bar from the reading result of the current bar for each bit, a read error occurs even when the transport system slips or the like. It is effective to prevent the above, and as a result, the barcode reading error can be significantly reduced, and a stable and highly reliable card reader can be realized.

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

【図1】本発明のカードリーダに用いられるバーコード
認識手段の一実施例のブロック図
FIG. 1 is a block diagram of an embodiment of bar code recognition means used in a card reader of the present invention.

【図2】同実施例における位置認識手段のブロック図FIG. 2 is a block diagram of a position recognition unit in the same embodiment.

【図3】本発明のカードリーダにおけるバーコード認識
を説明するバーコード信号波形図
FIG. 3 is a bar code signal waveform diagram for explaining bar code recognition in the card reader of the present invention.

【図4】本発明のカードリーダの一実施例におけるプロ
グラムのフロー図
FIG. 4 is a flow chart of a program in one embodiment of the card reader of the present invention.

【図5】バーコードを説明するためのカードの構造図FIG. 5 is a structural diagram of a card for explaining a barcode.

【図6】(a)は従来のバーコード検出回路のブロック
図 (b)は従来のバーコードリーダの原理を説明するため
のバーコード信号波形図
6A is a block diagram of a conventional bar code detection circuit, and FIG. 6B is a bar code signal waveform diagram for explaining the principle of a conventional bar code reader.

【図7】従来のバーコード認識手段のブロック図FIG. 7 is a block diagram of a conventional barcode recognition means.

【図8】従来のカードリーダにおけるプログラムのフロ
ー図
FIG. 8 is a flow chart of a program in a conventional card reader.

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

20 ROM 21 マイクロコンピュータ(演算処理手段) 22 位置認識手段 23 エッジ検出器(エッジ検出手段) 24 RAM(記憶手段) 25 第1の割り込み信号 26 第2の割り込み信号 27 割り込み発生手段 20 ROM 21 Microcomputer (arithmetic processing means) 22 Position recognition means 23 Edge Detector (Edge Detection Means) 24 RAM (storage means) 25 First interrupt signal 26 Second interrupt signal 27 Interrupt generation means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】2種類のピッチを有し幅の一定な複数の線
分からなるカード上のバーコードを検出するセンサと、
そのセンサの出力を増幅しパルスに変換するバーコード
検出手段と、カードの位置を検出し位置データを出力す
る位置認識手段と、前記パルスの立ち上がりエッジと立
ち下がりエッジを検出し第1の割り込み信号を発生する
エッジ検出手段と、あらかじめ設定した位置データと前
記位置データが等しくなった時に第2の割り込み信号を
発生する割り込み発生手段と、データを一時的に記憶す
る記憶手段と、第1の割り込み信号が発生したときの位
置データを前記記憶手段に記憶させ、第2の割り込み信
号が発生したときに前記記憶手段に位置データが記憶さ
れているか否かによりバーコードデータの1か0の判定
を行うとともに、記憶手段に記憶された位置データから
次のバーの理論的な位置を算出するようにプログラムさ
れた演算処理手段とを備えたカードリーダ。
1. A sensor for detecting a bar code on a card composed of a plurality of line segments having two kinds of pitches and having a constant width,
A bar code detecting means for amplifying the output of the sensor and converting it into a pulse, a position recognizing means for detecting the position of the card and outputting position data, and a first interrupt signal for detecting a rising edge and a falling edge of the pulse. An edge detecting means for generating an interrupt, an interrupt generating means for generating a second interrupt signal when preset position data and the position data become equal, a storage means for temporarily storing the data, and a first interrupt The position data when the signal is generated is stored in the storage means, and whether the bar code data is 1 or 0 is determined depending on whether the position data is stored in the storage means when the second interrupt signal is generated. An arithmetic processing means programmed to perform a theoretical position of the next bar from the position data stored in the storage means Card reader with.
【請求項2】カードの位置を検出し位置データを出力す
る位置認識手段は、カード搬送用モーターと、そのモー
ターの回転角に応じた信号を発生させる回転角信号発生
手段と、モーターの回転角に応じた信号を積算する手段
とを含んで構成された請求項1記載のカードリーダ。
2. A position recognition means for detecting the position of a card and outputting position data, a card conveying motor, a rotation angle signal generating means for generating a signal according to the rotation angle of the motor, and a rotation angle of the motor. The card reader according to claim 1, further comprising means for accumulating signals according to the above.
JP17800291A 1991-07-18 1991-07-18 Card reader Expired - Fee Related JP3324123B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17800291A JP3324123B2 (en) 1991-07-18 1991-07-18 Card reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17800291A JP3324123B2 (en) 1991-07-18 1991-07-18 Card reader

Publications (2)

Publication Number Publication Date
JPH0528626A true JPH0528626A (en) 1993-02-05
JP3324123B2 JP3324123B2 (en) 2002-09-17

Family

ID=16040835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17800291A Expired - Fee Related JP3324123B2 (en) 1991-07-18 1991-07-18 Card reader

Country Status (1)

Country Link
JP (1) JP3324123B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10562675B2 (en) 2015-04-29 2020-02-18 Graphic Packaging International, Llc Method and system for forming packages
US10640271B2 (en) 2015-04-29 2020-05-05 Graphic Packaging International, Llc Method and system for forming packages
US11040798B2 (en) 2017-08-09 2021-06-22 Graphie Packaging International, LLC Method and system for forming packages
US11059255B2 (en) 2015-07-14 2021-07-13 Graphic Packaging International, Llc Method and system for forming packages
US11198534B2 (en) 2019-01-28 2021-12-14 Graphic Packaging International, Llc Reinforced package
US11491755B2 (en) 2018-07-09 2022-11-08 Graphic Packaging International, Llc Method and system for forming packages

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10562675B2 (en) 2015-04-29 2020-02-18 Graphic Packaging International, Llc Method and system for forming packages
US10640271B2 (en) 2015-04-29 2020-05-05 Graphic Packaging International, Llc Method and system for forming packages
US11325336B2 (en) 2015-04-29 2022-05-10 Graphic Packaging International, Llc Method and system for forming packages
US11518133B2 (en) 2015-04-29 2022-12-06 Graphic Packaging International, Llc Method and system for forming packages
US11059255B2 (en) 2015-07-14 2021-07-13 Graphic Packaging International, Llc Method and system for forming packages
US11040798B2 (en) 2017-08-09 2021-06-22 Graphie Packaging International, LLC Method and system for forming packages
US11760534B2 (en) 2017-08-09 2023-09-19 Graphic Packaging International, Llc Method and system for forming packages
US11491755B2 (en) 2018-07-09 2022-11-08 Graphic Packaging International, Llc Method and system for forming packages
US11198534B2 (en) 2019-01-28 2021-12-14 Graphic Packaging International, Llc Reinforced package

Also Published As

Publication number Publication date
JP3324123B2 (en) 2002-09-17

Similar Documents

Publication Publication Date Title
JP2886545B2 (en) Margin recognition method and bar code reader
WO1989012283A1 (en) Magnetic character reading apparatus
JPH0528626A (en) Card reader
US4224508A (en) Error correcting bar code reader
JPH0636065A (en) Bar code reading and demodulating method
JPH096885A (en) Bar code decoding system
KR870010459A (en) Method and apparatus for reading barcodes at fast changing scanning speeds
EP0344301B1 (en) Method and apparatus for reading characters
JP2729168B2 (en) Barcode, barcode reader, and method of reading the same
JPS62154070A (en) Mark reader
CN111614345A (en) Integrated circuit and method for measuring PWM duty ratio
JPH04165484A (en) Card reader
JPS583073A (en) Bar-code read system
JP3463737B2 (en) Magnetic card reader
JPS59201174A (en) Signal processing method for bar code reader
JPS58158784A (en) Discrimination of propriety in bit interval of ticket
JPS6036626B2 (en) code reader
JP3021150B2 (en) Barcode reading synchronization circuit
JPH04178895A (en) Coin discriminating/counting device
JPS5936051A (en) Bill hole detecting device
JPH05114056A (en) Card reader device
JP3786816B2 (en) Code information reading apparatus and code information reading method
JPH01261798A (en) Sheet paper identifying device
JPH0653521B2 (en) Location tracking system
JPH06251183A (en) Bar code reader and bar code display medium used in the same

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070705

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080705

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090705

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees