JPH0670800B2 - Card reader - Google Patents
Card readerInfo
- Publication number
- JPH0670800B2 JPH0670800B2 JP1344651A JP34465189A JPH0670800B2 JP H0670800 B2 JPH0670800 B2 JP H0670800B2 JP 1344651 A JP1344651 A JP 1344651A JP 34465189 A JP34465189 A JP 34465189A JP H0670800 B2 JPH0670800 B2 JP H0670800B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- card
- reading
- read
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000005070 sampling Methods 0.000 claims description 37
- 238000004458 analytical method Methods 0.000 claims description 22
- 238000000034 method Methods 0.000 description 13
- 238000007405 data analysis Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000007493 shaping process Methods 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、カードに記録されたカードデータを読み取つ
てメモリに転送するとともに、メモリに転送されたカー
ドデータを読み出して真偽を判定するカード読み取り装
置に関するものである。The present invention relates to a card that reads card data recorded on a card and transfers the card data to a memory, and also reads the card data transferred to the memory to determine authenticity. The present invention relates to a reading device.
[従来の技術] 従来のカード読み取り装置においては、読み取りヘッド
により読み取られ、波形整形されたカードデータをCPU
が1F,2F方式により逐次読み取ってパターンの判別を行
い、この判別結果を予めメモリに記憶されたこの装置固
有の1F,2F方式に基づくパターンと比較してその真偽を
判別し、偽である場合には、再度カードを読み取り位置
まで搬送して読み取りヘッドに再読み取りさせるものと
なっている。[Prior Art] In the conventional card reading device, the CPU reads the waveform-formatted card data read by the reading head.
Is sequentially read by the 1F, 2F method to determine the pattern, and the determination result is compared with the pattern based on the 1F, 2F method unique to this device stored in the memory in advance to determine its true or false, and it is false. In this case, the card is again conveyed to the reading position and read by the reading head again.
なお、この1F,2F方式は、波形整形されたカードデータ
の検出開始時に2つのタイマーを駆動し、時間の短い第
1のタイマーがタイムアップしたときに波形の変化があ
れば、このデータを2Fデータとし、基準となる長い時間
の第2のタイマーがタイムアップしたときに波形の変化
を検出してこのとき波形の変化があれば、このデータを
1Fデータとするものであり、このように1Fデータ,2Fデ
ータの境界点(変化点)を検出してカードデータの中に
混在する1Fデータ,2Fデータの判別を行う方式である。The 1F and 2F methods drive two timers at the start of detection of the waveform-shaped card data, and if there is a change in the waveform when the first timer, which has a shorter time, has timed out, this data is converted to 2F. The data is used as a reference. When the second timer, which has a long time as a reference, has timed out, a change in the waveform is detected.
This is 1F data, and in this way, a boundary point (change point) of 1F data and 2F data is detected to discriminate 1F data and 2F data mixed in card data.
[発明が解決しようとする課題] 上述した従来のカード読み取り装置は、1Fデータおよび
2Fデータの境界点で波形整形されたカードデータを読み
取って検出しているので、例えばカード上の読み取られ
るデータ部分(境界点)が損傷している場合等において
は、何度再読み取りしても読み取りエラーが発生すると
いう問題があった。[Problems to be Solved by the Invention] The conventional card reading device described above is
Since the card data whose waveform is shaped at the boundary point of 2F data is read and detected, even if the data part (boundary point) to be read on the card is damaged, no matter how many times it is read again, There was a problem that a read error occurred.
また、第9図の波形図に示すように、カード面がヘッド
に擦られることにより本来は実線で示されるべきカード
データの波形が左右に引っ張られてこの波形が拡大し
(ピークシフト状態)、点線で示されるような状態にな
ったときには、カードデータの検出エラーが生じ易くな
り、一旦検出エラーになると、逐次読み取りを行ってい
るため、その後に続くデータの判別が不能となるという
問題もあった。Further, as shown in the waveform diagram of FIG. 9, when the card surface is rubbed by the head, the waveform of the card data, which should originally be indicated by the solid line, is pulled to the left and right, and this waveform is expanded (peak shift state). When the state indicated by the dotted line is generated, a card data detection error is likely to occur, and once a detection error occurs, there is a problem that the subsequent data cannot be discriminated because successive reading is performed. It was
[課題を解決するための手段] このような課題を解決するために、本発明に係るカード
読み取り装置は、カードに記録された基準情報および価
値情報からなるデータを設定されたサンプリング周波数
に基づいて読み出してメモリに転送するデータ転送手段
と、この転送されたデータを読み出すデータ読みだし手
段と、この読みだし手段により読み出された上記基準情
報の平均のサンプリング数を算出してこのサンプリング
数に基づき第1のデータ及び第2のデータからなる上記
価値情報のケース番号を決定する解析手段と、このケー
ス番号を予めメモリに設定された番号とを比較し、次に
組み合わせ番号を割り出して判定する判定手段とを備
え、判定手段が解析手段の解析結果を否と判定したとき
にデータ転送手段に対しサンプリング周波数を高めてカ
ードデータの読みだしを行わせるようにしたものであ
る。[Means for Solving the Problem] In order to solve such a problem, a card reading device according to the present invention is based on a sampling frequency in which data including reference information and value information recorded on a card is set. Data transfer means for reading and transferring to the memory, data reading means for reading the transferred data, and an average sampling number of the reference information read by the reading means is calculated, and based on this sampling number Analysis means for determining the case number of the above-mentioned value information consisting of the first data and the second data and this case number are compared with the number set in advance in the memory, and then the combination number is determined to make a determination. And a sampling frequency for the data transfer means when the determination means determines that the analysis result of the analysis means is negative. Is made to be able to read out card data.
また、カードに記録された基準情報および価値情報から
なるデータを最高のサンプリング周波数により読み出し
てメモリに転送するデータ転送手段と、この転送された
データを設定された間引き率に従って読み出すデータ読
みだし手段と、このデータ読みだし手段により読み出さ
れた上記基準情報の平均のサンプリング数を算出してこ
のサンプリング数に基づき第1のデータ及び第2のデー
タからなる上記価値情報のケース番号を決定する解析手
段と、このケース番号を予めメモリに設定された番号と
比較し、次に組み合わせ番号を割り出して判定する判定
手段とを備え、判定手段が解析手段の解析結果を否と判
定したときに読みだし手段に対して間引き率を下げてメ
モリの転送データの読みだしを行わせるようにしたもの
である。Also, a data transfer means for reading the data consisting of the reference information and the value information recorded on the card at the highest sampling frequency and transferring it to the memory, and a data reading means for reading the transferred data according to the set thinning rate. An analyzing means for calculating an average sampling number of the reference information read by the data reading means and determining a case number of the value information consisting of the first data and the second data based on the sampling number. And a judgment means for comparing the case number with a number set in advance in the memory and then determining the combination number for judgment. When the judgment means judges that the analysis result of the analysis means is negative, the reading means is provided. In contrast, the thinning rate is reduced so that the transfer data in the memory can be read out.
[作用] 判定手段が解析手段の解析結果を否と判定した場合は、
データ転送手段はサンプリング周波数を高めてカードの
データの読みだしを行う。[Operation] When the determination unit determines that the analysis result of the analysis unit is negative,
The data transfer means increases the sampling frequency to read the data from the card.
また、判定手段が解析手段の解析結果を否と判定した場
合は、読みだし手段は間引き率を下げてメモリに転送さ
れたデータの読みだしを行う。When the determination means determines that the analysis result of the analysis means is negative, the reading means lowers the thinning rate and reads the data transferred to the memory.
また、算出された基準情報の平均のサンプリング数に基
づき第1のデータおよび第2のデータからなる価値情報
のこのケース番号が決定され、この番号と予めメモリに
設定された番号とが比較されて価値情報の真偽が判定さ
れる。In addition, the case number of the value information composed of the first data and the second data is determined based on the calculated average number of samples of the reference information, and this number is compared with the number preset in the memory. The authenticity of the value information is judged.
[実施例] 次に、本発明について図面を参照して説明する。EXAMPLES Next, the present invention will be described with reference to the drawings.
第1図は本発明に係るカード読み取り装置の一実施例を
示すブロック図である。同図において、1はこのカード
読み取り装置の全体の制御を行うCPU、2はプログラム
が格納されたROM、3は読み取られたカードデータが格
納されるRAM(メモリ)、4は読み取ったカードデータ
をRAM3に転送するDMA部(データ転送手段)、5は磁気
カード、6はカードデータを読み取る読み取りヘッド
部、7は読み取られたカードデータを波形整形して入出
力するI/O部、Mはカード5を搬送するモータである。
また、第2図に示すとおり、このカード5の先頭部分の
タイミングビット部10には16ビットの1Fデータ(第1の
データ)からなるタイミングビット(基準情報)が記録
され、後続するカードデータ部11には1Fデータおよび2F
データ(第2のデータ)から構成されるカードデータ
(価値情報)が記録されている。FIG. 1 is a block diagram showing an embodiment of a card reading device according to the present invention. In the figure, 1 is a CPU that controls the entire card reader, 2 is a ROM that stores a program, 3 is a RAM (memory) that stores the read card data, and 4 is the read card data DMA unit (data transfer means) for transferring to RAM3, 5 for a magnetic card, 6 for a reading head unit for reading card data, 7 for an I / O unit for waveform-shaping the read card data and inputting / outputting, and M for a card 5 is a motor that conveys 5.
Further, as shown in FIG. 2, a timing bit (reference information) consisting of 16-bit 1F data (first data) is recorded in the timing bit portion 10 of the head portion of the card 5, and the succeeding card data portion is recorded. 1F data and 2F for 11
Card data (value information) composed of data (second data) is recorded.
また、第3図の(a)図は、タイミングビットの整形さ
れた波形の1例を示し、(b)図は、このタイミングビ
ットがサンプリングされてRAM3に転送された状態を示す
図である。なお、図中の11・・は、波形が「H」レベル
の状態を示し、00・・は、波形が「L」レベルの状態を
示している。また、この11・・,00・・の数はサンプリ
ング数を表し、16ビット分のサンプリング数を合計して
16で除算すれば、1ビット当たりのサンプリング数の平
均値が算出でき、例え各ビット間の波形が変動しても、
これが正確な基準値として定められることになり、この
結果この基準となる1Fデータのサンプリング数から後述
するカードデータの組み合わせパターンが識別できる。Further, FIG. 3A shows an example of a waveform in which the timing bit is shaped, and FIG. 3B shows a state in which the timing bit is sampled and transferred to the RAM 3. In the figure, 11 ... Shows a state where the waveform is at "H" level, and 00 ... Shows a state where the waveform is at "L" level. The number of 11 ... 00 is the number of samplings, and the total number of samplings for 16 bits is added.
If you divide by 16, you can calculate the average value of the number of samples per bit, even if the waveform between each bit fluctuates,
This is set as an accurate reference value, and as a result, the combination pattern of card data, which will be described later, can be identified from the sampling number of 1F data which is the reference.
また、第4図の(a)図は、4つのカードデータの整形
された波形の1例を示し、(b)図は、このカードデー
タがサンプリングされてRAM3に転送された状態を示す図
である。なお、図中の2つのは1Fデータを示し、2つ
のは2Fデータを示している。また、図中の11・・は、
波形が「H」レベルの状態を示し、00・・は、波形が
「L」レベルの状態を示しており、この11・・,00・・
の数はサンプリング数を表し、この4つのデータのサン
プリング数を合計すれば、この4つのデータの合計パル
ス幅(合計時間)が算出され、後述するようにこの時間
に応じたケース番号が決定される。Further, FIG. 4 (a) shows an example of the shaped waveform of four card data, and FIG. 4 (b) is a diagram showing a state in which this card data is sampled and transferred to RAM3. is there. In addition, two in the figure show 1F data and two show 2F data. Also, 11 ... in the figure is
The waveform shows the state of "H" level, and 00 ... shows the state of the waveform of "L" level.
Represents the sampling number, and the total pulse width (total time) of these four data is calculated by summing the sampling numbers of these four data, and the case number corresponding to this time is determined as described later. It
また、各1F,2Fデータのサンプリング数を計数して、上
記で求めた基準となる1Fデータのサンプリング数と比較
すれば、各データ間の境界点で多少の波形の変動があっ
ても、この4つのデータの組み合わせパターン(この例
では2つの1Fデータと2つの2Fデータとから組み合わさ
れている)が識別できる。In addition, by counting the sampling number of each 1F, 2F data and comparing it with the reference 1F data sampling number obtained above, even if there is some waveform fluctuation at the boundary point between each data, this A combination pattern of four data (combined from two 1F data and two 2F data in this example) can be identified.
次に、このカード読み取り装置の動作の概要を説明す
る。まず、読み取りヘッド部6により読み取られたタイ
ミングビットおよびカードデータは、I/O部7に送出さ
れ、ここで波形整形される。その後、CPU1により、DMA
制御部4に対してカードデータの読み取り指示が行われ
ると、DMA制御部4は、I/O部7に入力されたタイミング
ビットおよびカードデータを予め設定されたサンプリン
グ周波数で読み出してRAM3に転送し、転送が終了する
と、CPU1に転送終了信号を送出する。Next, an outline of the operation of this card reading device will be described. First, the timing bits and the card data read by the read head unit 6 are sent to the I / O unit 7, where the waveform is shaped. After that, by CPU1, DMA
When a card data read instruction is issued to the control unit 4, the DMA control unit 4 reads the timing bits and the card data input to the I / O unit 7 at a preset sampling frequency and transfers them to the RAM 3. When the transfer is completed, a transfer end signal is sent to CPU1.
その後、CPU1は、予め設定された間引き率に従って、RA
Mに転送されたタイミングビットおよびカードデータを
読みだし、この読み出されたタイミングビットに基づい
て以降に続くカードデータのパターンの解析を行い、こ
の解析結果と予めRAM3上に設定されたパターンとの比較
を行ってカードデータの真偽を判定するものとなってい
る。After that, the CPU 1 sets the RA according to the preset thinning rate.
The timing bits and card data transferred to M are read, and the pattern of the card data that follows thereafter is analyzed based on the read timing bits, and the results of this analysis and the pattern set in advance in RAM3 A comparison is made to determine the authenticity of the card data.
次に、第5図,第6図は、このカード読み取り装置の第
1実施例の動作を説明するフローチャートである。ま
ず、第5図に基づいてこのカード読み取り装置の動作を
説明する。Next, FIGS. 5 and 6 are flow charts for explaining the operation of the first embodiment of the card reading apparatus. First, the operation of the card reader will be described with reference to FIG.
ステップ50において磁気カード5が挿入されて読み取り
開始位置まで達すると、ステップ51でモータMが駆動さ
れ、ステップ52でこの磁気カード5が搬送される。そし
て、この搬送中のカード5のタイミングビットおよびカ
ードデータが読み取りヘッド部6に読み取られてさらに
I/O部7により波形整形されると、ステップ53で予め設
定されたサンプリング周波数でDMA制御部4によりサン
プリングされRAM3に転送される。When the magnetic card 5 is inserted and reaches the reading start position in step 50, the motor M is driven in step 51 and the magnetic card 5 is conveyed in step 52. Then, the timing bits and the card data of the card 5 being conveyed are read by the read head unit 6 and
When the waveform is shaped by the I / O unit 7, it is sampled by the DMA control unit 4 at the preset sampling frequency in step 53 and transferred to the RAM 3.
続いて、ステップ54でカードデータの転送終了が判断さ
れる。そして、これが「N」のときはステップ52に戻
り、「Y」のとき、すなわちカードデータの転送が終了
すれば、ステップ55において後述する転送データの解析
処理が行われ、この結果エラーが発生すればエラーフラ
グが設定される。なお、この転送データ解析処理は、第
6図のフローチャートにおいて詳述する。Then, in step 54, it is determined that the card data transfer is completed. When it is "N", the process returns to step 52, and when it is "Y", that is, when the transfer of the card data is completed, the transfer data analysis process described later is performed in step 55, and as a result, an error occurs. Error flag is set. The transfer data analysis process will be described in detail with reference to the flowchart of FIG.
そして、この転送データ解析処理の結果がステップ56に
おいて判断される。ステップ56で「N」のとき、すなわ
ちエラーが発生しなければ、ステップ57で解析が終了し
たカードデータの処理が行われる。また、ステップ56で
「Y」のとき、すなわちエラーフラグが設定されていれ
ば、ステップ58でサンプリング周波数が高い周波数に設
定され、ステップ59でカード5が読み取り開始位置まで
搬送され、ステップ51に戻る。この結果、このカード5
内のタイミングビットおよびカードデータは、DMA制御
部4により、より高いサンプリング周波数でサンプリン
グされてRAM3に再転送されることになる。Then, the result of this transfer data analysis processing is judged in step 56. When the result is "N" in step 56, that is, if no error occurs, the card data whose analysis has been completed is processed in step 57. If "Y" in step 56, that is, if the error flag is set, the sampling frequency is set to a high frequency in step 58, the card 5 is conveyed to the reading start position in step 59, and the process returns to step 51. . As a result, this card 5
The timing bits and the card data in the above are sampled by the DMA control unit 4 at a higher sampling frequency and re-transferred to the RAM 3.
次に、第6図フローチャートに基づいてカード処理装置
の動作を説明する。上述したようにこのフローチャート
はRAM3に転送されたデータをCPU1が解析するものであ
る。Next, the operation of the card processing device will be described based on the flowchart of FIG. As described above, this flowchart is for the CPU 1 to analyze the data transferred to the RAM 3.
この転送データ解析処理は、転送データの中の16ビット
のタイミングビット波形の平均値、すなわち1Fデータの
平均値を基準として、この基準値を基に、以降に続く1F
データ,2Fデータからなるカードデータを判別するもの
である。This transfer data analysis process is based on the average value of the 16-bit timing bit waveform in the transfer data, that is, the average value of 1F data, and based on this reference value, the subsequent 1F
The card data consisting of data and 2F data is discriminated.
ステップ71において基準となる1Fデータの平均値、すな
わちタイミングビットの1ビット当たりのサンプリング
数を求め、続いてステップ72で1Fデータの1/2となる2F
データのサンプリング数を求める。In step 71, the average value of the reference 1F data, that is, the number of samplings per 1 bit of the timing bit, is calculated, and then in step 72, 2F, which is 1/2 of the 1F data, is obtained.
Find the number of data samples.
次に、ステップ73で転送データの中の初めの4つのカー
ドデータをデータの変化点を計数して検出し、この4つ
のカードデータのサンプリング数を合計する。そして、
ステップ74でこの4つのカードデータのそれぞれのサン
プリング数を算出し、この算出されたサンプリング数と
上記で求めたタイミングビットにおける1F,2Fデータの
サンプリング数とからこの4つのデータの1Fデータ,2F
データの組み合わせを識別し、組み合わせパターン番号
を決定する。続いて、ステップ75で合計された4つのカ
ードデータのサプリング数からこの4つのカードデータ
波形の合計時間を算出しこれに応じたケース番号を付与
する。Next, at step 73, the first four card data in the transfer data are detected by counting the change points of the data, and the sampling numbers of these four card data are summed. And
In step 74, the sampling number of each of the four card data is calculated, and the 1F data and 2F of the four data are calculated from the calculated sampling number and the sampling number of the 1F and 2F data in the timing bit obtained above.
The combination of data is identified and the combination pattern number is determined. Then, in step 75, the total time of these four card data waveforms is calculated from the total number of the four card data supplings, and a corresponding case number is given.
そして、ステップ76で予めRAM3に設定されているケース
番号とこの付与されたケース番号との一致を判断し、こ
れが「Y」のとき、すなわち該当するケース番号がRAM3
に予め設定されていれば、予めRAM3に設定されこのケー
ス番号に属する組み合わせ番号と既に決定された組み合
わせ番号との一致をステップ77において判断する。そし
て、これが「Y」のときは、ステップ78において該当す
るケース番号および組み合わせ番号に応じた4つのカー
ドデータをRAM3の別エリアに生成し、ステップ79におい
てカードデータが全で解析されたかの判断を行う。そし
て、これが「Y」のときには、この転送データ解析処理
を終了し、「N」のとき、すなわち解析が終了しなけれ
ば、ステップ80で次の4つのカードデータを取り出して
ステップ73に戻り上記と同様な処理を行う。Then, in step 76, it is determined whether the case number preset in the RAM3 and the assigned case number match, and when this is "Y", that is, the corresponding case number is the RAM3.
If it is set in advance, it is judged in step 77 whether the combination number which is set in the RAM 3 in advance and belongs to this case number and the already determined combination number. Then, when this is "Y", four card data corresponding to the corresponding case number and combination number are generated in another area of the RAM 3 in step 78, and it is determined in step 79 whether the card data is completely analyzed. . Then, when this is "Y", this transfer data analysis processing is ended, and when it is "N", that is, when the analysis is not ended, the next four card data are taken out in step 80, and the process returns to step 73 and the above is executed. Similar processing is performed.
なお、RAM3の別エリアにカードデータを生成するとき、
1回前に生成された組み合わせパターンと極端に異なる
パターンのカードデータが生成されるような場合には、
不自然なカードデータとならないように適宜補正処理を
行って生成する。また、ステップ76およびステップ77で
「N」のとき、すなわち該当するケース番号および組み
合わせパターン番号がRAM上に設定されていないとき
は、エラーと見做してステップ81でエラーフラグを設定
してこの転送データ解析処理を終了する。When generating card data in another area of RAM3,
When card data with a pattern extremely different from the combination pattern generated one time ago is generated,
It is generated by appropriately performing correction processing so as to prevent unnatural card data. When the result is "N" in step 76 and step 77, that is, when the corresponding case number and combination pattern number are not set in the RAM, it is regarded as an error and the error flag is set in step 81. The transfer data analysis process ends.
次に、第7図,第8図はこのカード読み取り装置の第2
の実施例を説明するフローチャートである。まず、第7
図のフローチャートに基づいてその動作を説明するが、
既に説明済みの第5図のフローチャートと同等部分は同
一符号を付してその説明を省略する。Next, FIGS. 7 and 8 show the second part of this card reading device.
2 is a flowchart illustrating an example of the above. First, the 7th
The operation will be described based on the flowchart in the figure.
The same parts as those of the flowchart of FIG. 5 which has already been described are designated by the same reference numerals and the description thereof will be omitted.
カード5は搬送されると、ステップ90において波形整形
され一時メモリに蓄積されたタイミングビットおよびカ
ードデータはDMA制御部4により最高のサンプリング周
波数でサンプリングされRAM3に転送される。When the card 5 is transported, the timing bits and the card data which are waveform-shaped and stored in the temporary memory in step 90 are sampled at the highest sampling frequency by the DMA controller 4 and transferred to the RAM 3.
続いて、ステップ91でカードデータの転送終了が判断さ
れる。そして、これが「N」のときはステップ52に戻
り、「Y」のとき、すなわちカードデータの転送が終了
すれば、ステップ92においてRAM3に転送されたデータの
読みだし間引き率を最大に設定する。この間引き率が最
大に設定されるとCPU1は転送データを最大に間引いて
(最も粗くサンプリングして)データを読み出すものと
なっている。続いて、ステップ93で後述する転送データ
の解析処理が行われ、この結果エラーが発生すればエラ
ーフラグが設定される。なお、この転送データ解析処理
は、第8図のフローチャートにおいて詳述する。Then, in step 91, it is determined that the card data transfer is completed. Then, when this is "N", the process returns to step 52, and when it is "Y", that is, when the transfer of the card data is completed, the read-out thinning rate of the data transferred to the RAM 3 is set to the maximum in step 92. When this thinning rate is set to the maximum, the CPU 1 reads out the data by thinning out the transfer data to the maximum (most coarsely sampling). Subsequently, in step 93, transfer data analysis processing, which will be described later, is performed, and if an error occurs as a result, an error flag is set. The transfer data analysis process will be described in detail with reference to the flowchart of FIG.
そして、この転送データ解析処理の結果がステップ94に
おいて判断される。ステップ94で「N」のとき、すなわ
ちエラーが発生しなければ、ステップ95で解析が終了し
たカードデータの処理が行われる。また、ステップ94で
「Y」のとき、すなわちエラーフラグが設定されていれ
ば、ステップ96で次の間引き率の設定、すなわちより密
にサンプリングできるような間引き率の設定を行い、ス
テップ93に戻る。この結果、このRAM3内のタイミングビ
ットおよびカードデータは、CPU1により、より密なサン
プリング周波数で読み出されて解析される。Then, the result of this transfer data analysis processing is judged in step 94. If "N" in the step 94, that is, if no error occurs, the card data whose analysis has been completed is processed in a step 95. If "Y" in step 94, that is, if the error flag is set, the next thinning rate is set in step 96, that is, the thinning rate for more dense sampling is set, and the process returns to step 93. . As a result, the timing bits and card data in the RAM 3 are read and analyzed by the CPU 1 at a higher sampling frequency.
次に、第8図のフローチャートに基づいてこの装置の動
作を説明する。このフローチャートは、RAM3に転送され
たデータの解析処理を説明するフローチャートである。Next, the operation of this apparatus will be described based on the flowchart of FIG. This flow chart is a flow chart for explaining the analysis processing of the data transferred to the RAM 3.
CPU1は、ステップ70において設定された間引き率に従っ
てRAM3上の転送データ、すなわちタイミングビットおよ
びカードデータを読み出す。その後、CPU1はステップ71
以降の処理を実行することになるが、このステップ71以
降の転送データ解析処理においてエラーが発生すればエ
ラーフラグを設定してこの転送データ解析処理を終了す
る。なお、このステップ71以降の処理は第6図のフロー
チャートにおいて既に詳細に説明したので、その説明を
省略する。The CPU 1 reads the transfer data on the RAM 3, that is, the timing bits and the card data, according to the thinning rate set in step 70. After that, CPU1 executes step 71
Subsequent processing will be executed, but if an error occurs in the transfer data analysis processing after step 71, an error flag is set and the transfer data analysis processing is ended. Since the processing after step 71 has already been described in detail in the flowchart of FIG. 6, the description thereof will be omitted.
このように本発明のカード読み取り装置は、カード5内
にそれぞれタイミングビット部10およびカードデータ部
11を設け、各装置毎にモータMの速度変動のバラツキが
あっても、1つの装置内ではタイミングビット部10およ
びカードデータ部11は、共通の速度で搬送されることに
着目し、読み出されたカードデータをメモリに蓄積しカ
ードデータ部11と共通の速度で搬送されたタイミングビ
ット部10のタイミングビットの平均値を算出してこれを
基準値とし、この基準値に基づいてカードデータの1F,2
Fデータからなる組み合わせパターンを検出するように
したものである。As described above, the card reading device of the present invention has the timing bit unit 10 and the card data unit in the card 5, respectively.
11, the timing bit unit 10 and the card data unit 11 are conveyed at a common speed in one device even if there are variations in the speed variation of the motor M for each device. The averaged value of the timing bits of the timing bit unit 10 that is stored at the same speed as the card data unit 11 is stored in the memory and the average value of the timing bits is used as a reference value. 1F, 2
The combination pattern composed of F data is detected.
[発明の効果] 以上説明したことから明らかなように、本発明に係るカ
ード読み取り装置は、判定手段が解析手段の解析結果を
否と判定した場合は、データ転送手段に対してサンプリ
ング周波数を高めてカードのデータの読みだしを行わせ
るように構成したので、カード上の読み取られるデータ
部分が損傷している場合においても、その損傷部分の近
辺の損傷しないデータが高い周波数によりサンプリング
されて検出されることになり、この結果、読み取りエラ
ーが解消できるというという効果がある。[Effects of the Invention] As is clear from the above description, in the card reading apparatus according to the present invention, when the determination unit determines that the analysis result of the analysis unit is negative, the sampling frequency is increased with respect to the data transfer unit. Since it is configured to read the data of the card, even if the data part to be read on the card is damaged, undamaged data in the vicinity of the damaged part can be detected by sampling at a high frequency. As a result, the reading error can be eliminated.
また、判定手段が解析手段の解析結果を否と判定した場
合は、読みだし手段に対して間引き率を下げてメモリに
転送されたデータを読みだしさせているので、検出され
たデータがエラーとなった場合には、メモリに転送され
たデータの読みだし間隔を短くして再読みだしされ、ピ
ークシフト状態等によりデータの検出エラーが生じた場
合でも、このエラーデータの前後が再読みだしされて明
らかとなり、その後に続くデータの判別が可能になると
いう効果がある。If the determination means determines that the analysis result of the analysis means is negative, the reading means reduces the thinning rate to read the data transferred to the memory. If the error occurs, the read interval of the data transferred to the memory will be shortened and the data will be read again.Even if a data detection error occurs due to the peak shift condition, the data before and after this error data will be read again. Therefore, there is an effect that it becomes possible to discriminate subsequent data.
また、算出された基準情報の平均のサンプリング数に基
づき価値情報のケース番号と組み合わせ番号とを決定
し、これらの番号と予めメモリに設定された番号とを比
較して価値情報の真偽を判定するように構成したので、
価値情報の正確な真偽の判定が行えるという効果があ
る。Also, the case number and combination number of the value information are determined based on the calculated average number of samples of the reference information, and the authenticity of the value information is determined by comparing these numbers with the numbers set in the memory in advance. I configured it to
There is an effect that the authenticity of the value information can be accurately determined.
第1図は本発明に係るカード読み取り装置の一実施例を
示すブロック図、第2図はカードの構成図、第3図,第
4図はカードに記録されたデータのタイミングチャー
ト、第5図,第6図はこの装置の第1実施例の動作を説
明するフローチャート、第7図,第8図はこの装置の第
2実施例の動作を説明するフローチャート、第9図はこ
の装置のピークシフト現象を説明するタイミングチャー
トである。 1……CPU、2……ROM、3……RAM、4……DMA制御部、
5……磁気カード、6……読み取りヘッド部、7……I/
O部、10……タイミングビット部、11はカードデータ
部、M……モータ。FIG. 1 is a block diagram showing an embodiment of a card reading device according to the present invention, FIG. 2 is a block diagram of the card, FIGS. 3 and 4 are timing charts of data recorded on the card, and FIG. , FIG. 6 is a flow chart for explaining the operation of the first embodiment of this apparatus, FIGS. 7 and 8 are flow charts for explaining the operation of the second embodiment of this apparatus, and FIG. 9 is the peak shift of this apparatus. It is a timing chart explaining a phenomenon. 1 ... CPU, 2 ... ROM, 3 ... RAM, 4 ... DMA control unit,
5 ... Magnetic card, 6 ... Read head, 7 ... I /
O part, 10 ... Timing bit part, 11 is card data part, M ... Motor.
Claims (2)
み取りを行うカード読み取り装置において、 前記カードに記録された基準情報および価値情報からな
るデータを設定されたサンプリング周波数に基づいて読
み出してメモリに転送するデータ転送手段と、この転送
されたデータを読み出すデータ読みだし手段と、この読
みだし手段により読み出された前記基準情報の平均のサ
ンプリング数を算出してこのサンプリング数に基づき第
1のデータおよび第2のデータからなる前記価値情報の
ケース番号を決定する解析手段と、前記ケース番号を予
め前記メモリに設定された番号と比較し,次に組み合わ
せ番号を割り出して判定する判定手段とを備え、前記判
定手段が解析手段の解析結果を否と判定したときに前記
データ転送手段に対して前記サンプリング周波数を高め
て前記カードのデータの読みだしを行わせるようにした
ことを特徴とするカード読み取り装置。1. A card reading device for reading data recorded on a card to be conveyed, wherein data consisting of reference information and value information recorded on the card is read based on a set sampling frequency and stored in a memory. Data transfer means for transferring, data reading means for reading the transferred data, average sampling number of the reference information read by the reading means, and first data based on the sampling number And a analyzing means for determining a case number of the value information consisting of second data, and a judging means for comparing the case number with a number set in the memory in advance and then determining a combination number for determination. , When the determination means determines that the analysis result of the analysis means is negative, A card reading device, wherein a sampling frequency is increased to read data from the card.
み取りを行うカード読み取り装置において、 前記カードに記録された基準情報および価値情報からな
るデータを最高のサンプリング周波数により読み出して
メモリに転送するデータ転送手段と、この転送されたデ
ータを設定された間引き率に従って読み出すデータ読み
だし手段と、このデータ読みだし手段により読み出され
た前記基準情報の平均のサンプリング数を算出してこの
サンプリング数に基づき第1のデータおよび第2のデー
タからなる前記価値情報のケース番号を決定する解析手
段と、前記ケース番号を予め前記メモリに設定された番
号と比較し,次に組み合わせ番号を割り出して判定する
判定手段とを備え、前記判定手段が解析手段の解析結果
を否と判定したときに前記読みだし手段に対して間引き
率を下げて前記メモリの転送データの読みだしを行わせ
るようにしたことを特徴とするカード読み取り装置。2. A card reading device for reading data recorded on a conveyed card, wherein data consisting of reference information and value information recorded on the card is read at a highest sampling frequency and transferred to a memory. Transfer means, data reading means for reading the transferred data according to a set thinning rate, and an average sampling number of the reference information read by the data reading means is calculated and based on this sampling number. Analysis means for determining the case number of the value information consisting of the first data and the second data, and a judgment for comparing the case number with a number preset in the memory and then determining a combination number. And a reading means when the judging means judges that the analysis result of the analyzing means is not acceptable. A card reading device characterized in that the thinning rate is lowered for the reading means to read the transfer data of the memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1344651A JPH0670800B2 (en) | 1989-12-29 | 1989-12-29 | Card reader |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1344651A JPH0670800B2 (en) | 1989-12-29 | 1989-12-29 | Card reader |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03204091A JPH03204091A (en) | 1991-09-05 |
| JPH0670800B2 true JPH0670800B2 (en) | 1994-09-07 |
Family
ID=18370920
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1344651A Expired - Fee Related JPH0670800B2 (en) | 1989-12-29 | 1989-12-29 | Card reader |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0670800B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE19823065A1 (en) * | 1998-05-22 | 1999-11-25 | Siemens Nixdorf Inf Syst | Binary information evaluation system for magnetic memory card |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60246486A (en) * | 1984-05-21 | 1985-12-06 | Omron Tateisi Electronics Co | Code pattern reader of bankbook or the like |
| JPS6378285A (en) * | 1986-09-22 | 1988-04-08 | Hitachi Ltd | card reader |
-
1989
- 1989-12-29 JP JP1344651A patent/JPH0670800B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03204091A (en) | 1991-09-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4115805A (en) | Image analysis indexing apparatus and methods | |
| JPH0670800B2 (en) | Card reader | |
| EP0379546A1 (en) | Method and apparatus for reading characters. | |
| EP0096717A1 (en) | Method and apparatus for recognizing an unknown character. | |
| JP3090070B2 (en) | Form identification method and device | |
| JP2789900B2 (en) | State history storage device | |
| JP2610881B2 (en) | Character size measurement method in character strings | |
| JP3089396B2 (en) | Mark reading apparatus and method | |
| JPH0421233B2 (en) | ||
| JP2605961B2 (en) | Bending point detection method and device | |
| JPH02143317A (en) | Signature input method | |
| JPH06236307A (en) | Discrimination system for end of file | |
| JPH0433074B2 (en) | ||
| JPS63101983A (en) | Character string extracting system | |
| JPS5890274A (en) | Extracting device of feature point | |
| JPS58170165A (en) | Mark reading system | |
| JP2865703B2 (en) | Recognition method of line image data | |
| JPH0421913B2 (en) | ||
| JPH03129576A (en) | Automatic detecting method for dot image | |
| JPH07104137B2 (en) | Method of detecting the rotation angle of the target pattern | |
| JPH0222427B2 (en) | ||
| JPH0412510B2 (en) | ||
| JPH0512448A (en) | Image recognizing device | |
| JPH0740014B2 (en) | DNA pattern reader | |
| JPS61231686A (en) | Pattern recognizing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080907 Year of fee payment: 14 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080907 Year of fee payment: 14 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090907 Year of fee payment: 15 |
|
| LAPS | Cancellation because of no payment of annual fees |