JPH07147060A - Method for writing magnetic stripe data - Google Patents

Method for writing magnetic stripe data

Info

Publication number
JPH07147060A
JPH07147060A JP29331893A JP29331893A JPH07147060A JP H07147060 A JPH07147060 A JP H07147060A JP 29331893 A JP29331893 A JP 29331893A JP 29331893 A JP29331893 A JP 29331893A JP H07147060 A JPH07147060 A JP H07147060A
Authority
JP
Japan
Prior art keywords
writing
write current
data
current value
write
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
JP29331893A
Other languages
Japanese (ja)
Inventor
Satoshi Takamura
聡 高村
Masami Ayugai
賢美 鮎貝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP29331893A priority Critical patent/JPH07147060A/en
Publication of JPH07147060A publication Critical patent/JPH07147060A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To prevent the generation of a writing defect due to a writing current value deviated from an adequate range by a change in external environment, etc. CONSTITUTION:A control section 10 writes the writing current value as a min. and reads information when the section receives a writing instruction for magnetic stripe information. The control section receives the reproduced output voltage of the read information from a detecting circuit 24 and stores the voltage in a RAM 11. This voltage is compared with the original information. The writing is stopped after the writing is repeated until the writing current is maximized. The range where the normal writing is executed is detected from the information stored in the RAM 11. A response of writing infeasibility is emitted unless there is the adequate range. The range C2 where the change rate of the reproduced output voltage is small with respect to a change in the writing current is detected when there is the adequate range C1. The current value at the mid-point of the range C2 is determined as the writing current optimum value and is stored in the RAM 11. The writing is ended by emitting the normal response. The stable writing operation is executable by using the writing current optimum value stored in the RAM 11 in the subsequent writing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、磁気ストライプデータ
を有した券を発行する発券装置において、発券すべき発
券媒体に磁気ストライプデータの書き込みを行う磁気ス
トライプデータの書き込み方法に関し、特に書き込み電
流の変動による書き込み不良の発生の防止に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic stripe data writing method for writing magnetic stripe data on a ticket-issuing medium to be issued in a ticket issuing device for issuing a ticket having magnetic stripe data, and more particularly to a method for writing a write current. The present invention relates to prevention of writing failure due to fluctuation.

【0002】[0002]

【従来の技術】最近では、乗車券や航空券の発券にも、
磁気ストライプデータを有した券を発行する発券装置が
利用されるようになってきている。このような発券装置
の利用が、発券作業の省力化に適し、さらに乗車・搭乗
の際のチェックの効率化にも適するからである。
2. Description of the Related Art Recently, when issuing tickets and airline tickets,
Ticket issuing devices for issuing tickets having magnetic stripe data have come into use. This is because the use of such a ticket issuing device is suitable for labor saving of ticket issuing work and also for improving efficiency of checking when boarding / boarding.

【0003】図3は、この種の発券装置の機構の概略を
示したものである。この図3において、ホッパ部100
は発券媒体(乗車券あるいは航空券を発券するための印
刷前の券)101を貯留しておくもので、エンコーダ部
200は磁気ストライプデータの書き込みおよび読み取
りを行うものである。また、プリンタ部300は券面に
文字情報を印刷するもので、吸入排出部400は媒体排
出口401および媒体吸入口402を装備していて発券
媒体101の排出および吸入を行うものである。エンコ
ーダ部200には、書き込み用磁気ヘッド201や読み
取り用磁気ヘッド202が装備されていて、これらのヘ
ッド201,202によって磁気ストライプデータの書
き込みや読み取りを行う。また、磁気ストライプデータ
の書き込みや読み取りを実行するタイミングを検出する
ための媒***置検出用光学センサ203も装備されてい
る。この媒***置検出用光学センサ203は、媒体搬送
路204上を搬送されてくる発券媒体101の位置を、
光学的に検出している。プリンタ部300には、印字に
使うインクリボン301や、印字ヘッド302が装備さ
れている。また、媒体搬送路204は、ホッパ部100
からエンコーダ部200、プリンタ部300を経て吸入
排出部400に至る発券媒体101の搬送路を提供して
いる。このような発券装置における磁気ストライプデー
タの書き込み方法として、発明者らが先に特願平3−3
12327号で提案したものがある。この磁気ストライ
プデータ書き込み方法は、前記発券装置には、磁気スト
ライプデータの書き込み電流値を調節する書き込み電流
設定回路と、この電流設定回路によって設定した適正な
電流値を記憶しておく書き込み電流値記憶手段とを装備
しておく。そして、該発券装置における発券処理を制御
する制御部においては、前記書き込み電流値記憶手段に
書き込み電流値が保存されていればその保存されている
書き込み電流値によって磁気ストライプデータの書き込
みを実行する。
FIG. 3 shows the outline of the mechanism of this type of ticket issuing apparatus. In FIG. 3, the hopper unit 100
Stores a ticket issuing medium (a ticket before printing for issuing a boarding ticket or an airline ticket) 101, and an encoder unit 200 writes and reads magnetic stripe data. The printer unit 300 prints character information on the face of a ticket, and the suction / discharge unit 400 is equipped with a medium discharge port 401 and a medium suction port 402 to discharge and suck the ticket issuing medium 101. The encoder unit 200 is equipped with a write magnetic head 201 and a read magnetic head 202, and these heads 201 and 202 write and read magnetic stripe data. Further, a medium position detecting optical sensor 203 for detecting the timing of writing or reading the magnetic stripe data is also provided. The medium position detecting optical sensor 203 detects the position of the ticket issuing medium 101 conveyed on the medium conveying path 204.
Optically detected. The printer unit 300 is equipped with an ink ribbon 301 used for printing and a print head 302. Further, the medium transport path 204 is provided in the hopper unit 100.
It provides a conveyance path for the ticket issuing medium 101 from the encoder unit 200, the printer unit 300 to the suction / ejection unit 400. As a method of writing magnetic stripe data in such a ticket issuing device, the inventors have previously proposed Japanese Patent Application No. 3-3.
There is one proposed in No. 12327. In this magnetic stripe data writing method, in the ticket issuing device, a write current setting circuit for adjusting a write current value of magnetic stripe data and a write current value storage for storing an appropriate current value set by the current setting circuit are stored. Equipped with means. Then, in the control unit for controlling the ticket issuing processing in the ticket issuing apparatus, if the write current value is stored in the write current value storage means, the magnetic stripe data is written by the stored write current value.

【0004】そして、磁気ストライプデータの書き込み
を実行したら、その書き込んだ磁気ストライプデータが
正常であるか否かを判断して、磁気ストライプデータの
書き込みに異常があった場合には、前記書き込み電流設
定回路によって書き込み電流値を1段階だけ増加させて
再度磁気ストライプデータの書き込みを実行する。ま
た、前記書き込み電流設定回路によって書き込み電流値
を変更して磁気ストライプデータの書き込みを実行した
場合には、書き込んだ磁気ストライプデータが正常であ
るか否かの判断で正常であれば、そのときの書き込み電
流値を次の磁気ストライプデータの書き込みに利用する
ために、前記書き込み電流値記憶手段の保持する書き込
み電流値を更新するようにしたものである。
When the writing of the magnetic stripe data is executed, it is judged whether the written magnetic stripe data is normal or not. If the writing of the magnetic stripe data is abnormal, the write current setting is made. The circuit increases the write current value by one step and writes the magnetic stripe data again. Further, when the write current value is changed by the write current setting circuit and the writing of the magnetic stripe data is executed, if it is normal by judging whether the written magnetic stripe data is normal, the current In order to use the write current value for writing the next magnetic stripe data, the write current value held in the write current value storage means is updated.

【0005】従って、上記の磁気ストライプデータの書
き込み方法によれば、発券媒体として、旧来の媒体より
も抗磁力の大きな媒体の運用が必要となる場合でも、新
旧の双方の媒体に対して、適正な書き込み電流値で磁気
ストライプデータの書き込みを実行することができ、抗
磁力の小さな旧来の媒体の破棄等の不都合の発生を防止
することができる。また、書き込みが正常に終了した場
合の書き込み電流値を保存する書き込み電流値記憶手段
を装備しておいて、該書き込み電流値記憶手段に保存さ
れている書き込み電流値を次の書き込み処理に利用する
ため、抗磁力が同一の媒体を連続して処理するような場
合には、媒体毎に書き込み電流値を設定するような手間
を省くことができ、発券処理を高速化することもでき
る。
Therefore, according to the above-mentioned magnetic stripe data writing method, even if a medium having a larger coercive force than the conventional medium is required to be used as the ticket issuing medium, it is appropriate for both the old and new medium. The magnetic stripe data can be written with a large write current value, and it is possible to prevent the occurrence of inconveniences such as discarding a conventional medium having a small coercive force. Further, a writing current value storage means for storing the writing current value when the writing is normally completed is provided, and the writing current value stored in the writing current value storage means is used for the next writing process. Therefore, in the case where media having the same coercive force are continuously processed, it is possible to save the trouble of setting the write current value for each medium and speed up the ticket issuing process.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
ような従来の磁気ストライプデータの書き込み方法は、
書き込み電流を一段階ずつ増していき正常に書き込みが
できた時点で書き込み電流値を設定してしまうものであ
る。所で、書き込み用磁気ヘッド201に流す電流と読
み取り用磁気ヘッド202の再生出力とは、一般に、図
4に曲線Aで示す関係にある。この曲線Aは再生出力電
圧のピークPは適正範囲C1 の中で書き込み電流値が小
さい方に寄っていて、再生出力電圧のピークPより書き
込み電流の小さい方では急激に再生出力電圧が小さくな
っていく。従って、従来の磁気ストライプデータの書き
込み方法では、書き込み電流の適正範囲C1 の中の再生
出力電圧が急激に変化する端の部分Eに書き込み電流が
設定されるので、外部要因等により電流がわずかに変化
しただけで、書き込み電流が適正範囲から外れてしま
い、正しく磁気ストライプデータが書き込めなくなると
いう問題があった。
However, the conventional method for writing magnetic stripe data as described above is
The write current is increased step by step and the write current value is set at the time when the write can be performed normally. Incidentally, the current flowing through the write magnetic head 201 and the reproduction output of the read magnetic head 202 generally have the relationship shown by the curve A in FIG. In this curve A, the peak P of the reproduction output voltage is closer to the smaller write current value in the proper range C 1 , and the reproduction output voltage is sharply smaller in the smaller write current than the peak P of the reproduction output voltage. To go. Therefore, in the conventional magnetic stripe data writing method, since the write current is set in the end portion E where the reproduction output voltage changes abruptly in the proper range C 1 of the write current, the current is small due to external factors. However, there was a problem in that the write current was out of the proper range and the magnetic stripe data could not be written correctly just by changing to.

【0007】本発明は、かかる問題点を解決するために
なされたもので、書き込み電流を順次増加させながら、
その時々の書き込み電流値、再生出力電圧値および書き
込みの可否をメモリに記憶しておき、記憶した点のデー
タより書き込み電流の適正範囲を判定し、この範囲内に
おいて電流値が変化しても適正範囲から外れることのな
い書き込み電流値を選択し、この電流値を書き込み電流
最適値として設定することにより、書き込み電流の変動
による書き込み不良の発生を防止した磁気ストライプデ
ータの書き込み方法を提供することを目的とする。
The present invention has been made in order to solve the above problems, and while increasing the write current in sequence,
The write current value, reproduction output voltage value, and write enable / disable at each time are stored in a memory, and the appropriate range of the write current is determined from the data at the stored points. Even if the current value changes within this range, it is appropriate. By selecting a write current value that does not deviate from the range and setting this current value as the write current optimum value, it is possible to provide a magnetic stripe data write method that prevents the occurrence of write defects due to changes in the write current. To aim.

【0008】[0008]

【課題を解決するための手段】本発明に係る磁気ストラ
イプデータの書き込み方法は、発券装置において、発券
すべき発券媒体に磁気ストライプデータの書き込みを行
う方法であって、ある書き込み電流値で磁気ストライプ
データを書き込み、書き込んだデータを読み取り、正常
に書き込みができたか否かを判断し、書き込み電流値、
読み取り時の再生出力電圧値及び書き込み可否データを
記憶する第1の工程と、書き込み電流値を最小から最大
迄順次増加させながら第1の工程を繰り返す第2の工程
と、記憶されたデータに基づき書き込み可能な書き込み
電流適正範囲を検出し、書き込み電流適正範囲内の再生
出力電圧の変化から書き込み電流の変化に対して再生出
力電圧の変化率が小さい部分を検出し、該部分内で書き
込み電流値を設定する第3の工程とを備えたものであ
る。
A method for writing magnetic stripe data according to the present invention is a method for writing magnetic stripe data on a ticket issuing medium to be issued in a ticket issuing device, wherein the magnetic stripe is applied at a certain write current value. Write data, read the written data, judge whether writing was successful, write current value,
Based on the stored data, the first step of storing the reproduction output voltage value and the write enable / disable data at the time of reading, and the second step of repeating the first step while sequentially increasing the write current value from the minimum to the maximum. An appropriate range of the write current that can be written is detected, and a portion where the rate of change of the reproduction output voltage is small with respect to the change of the write current is detected from the change of the reproduction output voltage within the appropriate range of the write current. And a third step of setting.

【0009】[0009]

【作用】本発明においては、書き込み電流値を最小から
最大迄順次増加させながら、磁気ストライプデータを書
き込み、書き込んだデータを読み取り、正常に書き込み
ができたか否かを判断し、その時々の書き込み電流値、
読み取り時の再生出力電圧値及び書き込み可否データを
記憶しておき、記憶されたデータに基づき書き込み可能
な書き込み電流適正範囲を検出し、該適正範囲内の再生
出力電圧の変化から書き込み電流の変化に対して再生出
力電圧の変化率が小さい部分を検出し、該部分内で書き
込み電流値を設定するから、外部環境の変化、個々の磁
気ヘッドの特性等により書き込み電流が変化しても、書
き込み電流値が適正範囲から外れるという事態が防止さ
れる。
According to the present invention, while the write current value is sequentially increased from the minimum value to the maximum value, the magnetic stripe data is written, the written data is read, and it is judged whether or not the write operation is normally performed. value,
The reproduction output voltage value at the time of reading and the write enable / disable data are stored in advance, the writable write current proper range is detected based on the stored data, and the change of the reproduction output voltage within the proper range is changed to the change of the write current. On the other hand, since the write current value is set in the part where the change rate of the reproduction output voltage is small, the write current is changed even if the write current changes due to changes in the external environment or the characteristics of individual magnetic heads. It prevents the value from going out of the proper range.

【0010】[0010]

【実施例】図2は本発明の一実施例を実行する発券装置
の構成を示したものである。この発券装置は、機構的な
全体構成は図3に示した如き構成であるが、制御信号の
流れから考えた場合では、図2に示す如き構成となる。
即ち、図示せぬ上位装置、例えば、発券管理用のホスト
コンピュータに接続された制御部10が、磁気回路イン
ターフェース部20、印字回路インタフェース部30、
駆動回路インターフェース部40、センサ回路インター
フェース部50等の各インターフェース部に指示を出し
て所定の発券処理を実行するものである。制御部10
は、マイクロCPUやROMや、書き込み電流および再
生出力電圧記憶手段11によって構成されており、前述
の各インターフェース部を介して、発券装置内の各部の
動作を制御する。なお、書き込み電流および再生出力電
圧記憶手段11としては、この一実施例では、バッテリ
ーによってバックアップされたRAMが使用されている
(以下、RAMと略記する)。磁気回路インターフェー
ス部20は、制御部10の指示にしたがって、書き込み
電流設定回路21に書き込み電流値を指示するととも
に、書き込みデータ生成回路22に磁気ストライプデー
タとして書き込むべきデータを指示し、また、読み取り
データ生成回路23の読み取ったデータおよび再生出力
電圧検出回路24によって検出された再生出力電圧を制
御部10に転送する。書き込み電流設定回路21は、書
き込み電流を任意の値に調節し得る回路で、具体的に
は、トランジスタ26a,26bのエミッタ側に接続さ
れており、これらのトランジスタ26a,26bのエミ
ッタに供給する電流値を、磁気回路インターフェース部
20から指示された値に設定する。書き込みデータ生成
回路22は、トランジスタ26a,26b,27a,2
7bのベースに接続されており、制御部10から指示さ
れる書き込みデータに応じた電流を書き込み用磁気ヘッ
ド201に流す。リードアンプ25は磁気ヘッド202
の信号を増幅する回路である。また、読み取りデータ生
成回路23は、リードアンプ25からのアナログ信号を
制御部10の扱う論理信号に変換している。再生出力電
圧検出回路24は、リードアンプ25からの信号の振
幅、つまり電圧の最大値を算出する回路である。以上の
書き込み電流設定回路21、書き込みデータ生成回路2
2、読み取りデータ生成回路23、再生出力電圧検出回
路24、リードアンプ25、トランジスタ26a,26
b,27a,27c、書き込み用磁気ヘッド201によ
って、いわゆる磁気ストライプデータの書き込み回路が
構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 shows the construction of a ticket issuing apparatus for carrying out an embodiment of the present invention. The ticket issuing device has a mechanical entire structure as shown in FIG. 3, but has a structure as shown in FIG. 2 in consideration of the flow of the control signal.
That is, the control unit 10 connected to a host device (not shown), such as a host computer for ticket management, includes a magnetic circuit interface unit 20, a printing circuit interface unit 30,
An instruction is issued to each interface unit such as the drive circuit interface unit 40 and the sensor circuit interface unit 50 to execute a predetermined ticket issuing process. Control unit 10
Is composed of a micro CPU, a ROM, and a write current and reproduction output voltage storage means 11, and controls the operation of each section in the ticket issuing device via each of the above-mentioned interface sections. In this embodiment, a RAM backed up by a battery is used as the write current and reproduction output voltage storage means 11 (hereinafter abbreviated as RAM). According to the instruction from the control unit 10, the magnetic circuit interface unit 20 instructs the write current setting circuit 21 to specify the write current value, the write data generation circuit 22 to indicate the data to be written as the magnetic stripe data, and the read data. The data read by the generation circuit 23 and the reproduction output voltage detected by the reproduction output voltage detection circuit 24 are transferred to the control unit 10. The write current setting circuit 21 is a circuit that can adjust the write current to an arbitrary value. Specifically, the write current setting circuit 21 is connected to the emitters of the transistors 26a and 26b and supplies the currents to the emitters of the transistors 26a and 26b. The value is set to the value instructed by the magnetic circuit interface unit 20. The write data generation circuit 22 includes transistors 26a, 26b, 27a, 2
The write magnetic head 201 is connected to the base 7b, and a current corresponding to the write data instructed by the controller 10 is applied to the write magnetic head 201. The read amplifier 25 is the magnetic head 202.
Is a circuit that amplifies the signal. The read data generation circuit 23 also converts the analog signal from the read amplifier 25 into a logical signal handled by the control unit 10. The reproduction output voltage detection circuit 24 is a circuit that calculates the amplitude of the signal from the read amplifier 25, that is, the maximum value of the voltage. The above write current setting circuit 21 and write data generation circuit 2
2, read data generation circuit 23, reproduction output voltage detection circuit 24, read amplifier 25, transistors 26a, 26
b, 27a, 27c and the write magnetic head 201 constitute a so-called magnetic stripe data write circuit.

【0011】印字回路インターフェース部30は制御部
10から出力される印字データを印字ヘッドドライバ3
1に転送し、この印字ヘッドドライバ31は印字ヘッド
302を駆動して発券媒体の券面に印字を行う。駆動回
路インターフェース部40は制御部10からの指示に基
づいてモータドライバ41およびマグネットドライバ4
2にデータをセットし、モータドライバ41はセットさ
れたデータに基づいて発券装置内の各所に配備されたモ
ータ43を駆動し、マグネットドライバ42はセットさ
れたデータに基づいて発券装置内の各所に配備されたマ
グネット44を駆動する。センサ回路インターフェース
部50は、センサアンプ51の出力するデータを制御部
10に通知する。ここに、センサアンプ51は、発券装
置内の各所に配備されたセンサ52(図3に示した媒体
位置検出用光学センサ203も含まれる)からのアナロ
グ出力を制御部10で処理し得る論理データに変換して
いる。
The print circuit interface unit 30 receives the print data output from the control unit 10 and outputs the print data to the print head driver 3.
1, the print head driver 31 drives the print head 302 to print on the face of the ticket issuing medium. The drive circuit interface unit 40 uses the motor driver 41 and the magnet driver 4 based on an instruction from the control unit 10.
2 sets the data, the motor driver 41 drives the motor 43 provided at each place in the ticket issuing device based on the set data, and the magnet driver 42 sets the data at each place in the ticket issuing device based on the set data. The deployed magnet 44 is driven. The sensor circuit interface unit 50 notifies the control unit 10 of the data output by the sensor amplifier 51. Here, the sensor amplifier 51 is a logical data capable of processing the analog output from the sensor 52 (including the medium position detecting optical sensor 203 shown in FIG. 3) provided at various places in the ticket issuing device by the control unit 10. Has been converted to.

【0012】次に、制御部10による磁気ストライプデ
ータの書き込み処理の手順、即ち、本発明の一実施例と
なる磁気ストライプデータの書き込み方法を図1に基づ
いて説明する。先ず、制御部10は上位装置から磁気ス
トライプデータの書き込みの指示を受けとると、書き込
み電流値を最小に設定し(ステップS1)、磁気ストラ
イプデータの書き込み(ステップS2)を行い、さらに
書き込んだデータの読み取り(ステップS3)を行う。
次に、ステップS3で読み取ったデータの再生出力電圧
を再生出力電圧検出回路24から制御部10が受け取り
RAM11に記憶する。このとき、同時に書き込み電流
値もRAM11に記憶する。そして、読み取ったデータ
と書き込みの元のデータとを比較することによって正常
に書き込みができたかどうかを判断し、書き込み可否デ
ータとして、前述した記憶データとともにRAM11に
記憶する(ステップS4)。
Next, the procedure of the magnetic stripe data write processing by the control unit 10, that is, the magnetic stripe data write method according to an embodiment of the present invention will be described with reference to FIG. First, when the controller 10 receives an instruction to write magnetic stripe data from a higher-level device, it sets the write current value to the minimum (step S1), writes the magnetic stripe data (step S2), and writes the written data. Reading (step S3) is performed.
Next, the control unit 10 receives the reproduction output voltage of the data read in step S3 from the reproduction output voltage detection circuit 24 and stores it in the RAM 11. At this time, the write current value is also stored in the RAM 11 at the same time. Then, by comparing the read data with the original data to be written, it is determined whether or not the writing was successful, and the data is stored in the RAM 11 as the write enable / disable data together with the above-mentioned stored data (step S4).

【0013】これを書き込み電流が最大になるまで、書
き込み電流値を順次増加させながら、それぞれの書き込
み電流値に対しての再生出力電圧と書き込みの可否を同
様にRAM11に記憶していく。即ち、ステップS5で
設定された書き込み電流が最大でなければ、電流値を1
段階だけ増し(ステップS6)、ステップS2〜S4の
処理手順を繰り返す。電流値が最大になれば、つまりス
テップS5がYESならば、書き込み動作をやめ、まず
RAM11に記憶した書き込み可否データを呼出し(ス
テップS7)、読み出したデータから、書き込み適正範
囲、つまり正常書き込みができた範囲を検出する(ステ
ップS8)。ここで適正範囲がなしと判断されれば(ス
テップS9がNOならば)、書き込み不可能のエラーレ
スポンスを出し(ステップS10)終了する。
While the write current value is sequentially increased until the write current reaches the maximum value, the reproduction output voltage and write enable / disable for each write current value are similarly stored in the RAM 11. That is, if the write current set in step S5 is not the maximum, set the current value to 1
The number of steps is increased (step S6), and the processing procedure of steps S2 to S4 is repeated. If the current value is maximum, that is, if step S5 is YES, the write operation is stopped, the write enable / disable data stored in the RAM 11 is called (step S7), and the proper write range, that is, normal write can be performed from the read data. The range that has been opened is detected (step S8). If it is determined that there is no proper range (NO in step S9), an unwritable error response is issued (step S10), and the process ends.

【0014】一方、通常に書き込みが可能であれば、適
正範囲を検出することができる。一般に磁気ストライプ
データの書き込み電流値と再生出力電圧との相関は前述
したように図4の曲線Aのようになると知られている。
さて、RAM11に記憶されたデータから書き込み電流
適正範囲C1 と再生出力電圧適正範囲Bが検出できるの
であるが、再生出力電圧のピークPは、適正範囲C1
中で、書き込み電流値が小さい方に寄っていて、ピーク
Pの近辺を過ぎた書き込み電流値の小さい方では急激に
再生、出力電圧が小さくなっていく。
On the other hand, if the writing is possible normally, the proper range can be detected. It is generally known that the correlation between the write current value of the magnetic stripe data and the reproduction output voltage is as shown by the curve A in FIG. 4 as described above.
By the way, although the proper write current range C 1 and the proper reproduction output voltage range B can be detected from the data stored in the RAM 11, the reproduction output voltage peak P has a small write current value in the proper range C 1. If the write current value is smaller than the peak P and is near the peak P, the reproduction voltage and the output voltage decrease rapidly.

【0015】そこで、本実施例ではステップS9がYE
Sならば、ステップS11で再生出力電圧のピークPを
検出し、書き込み電流適正範囲C1 内の再生出力電圧の
変化から書き込み電流の変化に対して再生出力電圧の変
化率が小さい部分を検出する。即ち、図4で適正範囲C
2 として示す部分を検出する。そして、適正範囲C2
中点の電流値を書き込み電流最適値として設定する。こ
のようにして設定された書き込み電流最適値をRAM1
1に記憶し(ステップS12)、正常レスポンスを出し
(ステップS13)終了する。以後の書き込みに対して
は、RAM11に記憶された書き込み電流最適値を用い
ることにより安定した書き込み動作をすることができ
る。
Therefore, in this embodiment, step S9 is YE.
If it is S, the peak P of the reproduction output voltage is detected in step S11, and a portion having a small change rate of the reproduction output voltage with respect to the change of the write current is detected from the change of the reproduction output voltage within the proper write current range C 1 . . That is, the proper range C in FIG.
Detect the part shown as 2 . Then, the current value at the middle point of the appropriate range C 2 is set as the optimum write current value. The optimum write current value set in this way is stored in the RAM 1
1 (step S12), a normal response is issued (step S13), and the process ends. For the subsequent writing, a stable writing operation can be performed by using the optimum write current value stored in the RAM 11.

【0016】なお、上記実施例では、書き込み電流最適
値として適正範囲C2 の中点の電流値を設定している
が、中点に限るものではなく、適正範囲C2 内で任意の
値に設定することができる。
In the above embodiment, the current value at the middle point of the proper range C 2 is set as the optimum value of the write current, but the present invention is not limited to the middle point and any value can be set within the proper range C 2 . Can be set.

【0017】[0017]

【発明の効果】本発明は以上説明したとおり、書き込み
電流値を最小値から最大迄順次増加させながら、磁気ス
トライプデータを書き込み、書き込んだデータを読み取
り、正常に書き込みができたか否かを判断し、その時々
の書き込み電流値、読み取り時の再生出力電圧値及び書
き込み可否データを記憶しておき、記憶されたデータに
基づき書き込み可能な書き込み電流適正範囲を検出し、
該適正範囲内の再生出力電圧の変化から書き込み電流の
変化に対して再生出力電圧の変化率が小さい部分を検出
し、該部分内で書き込み電流値を設定するから、外部環
境の変化、個々の磁気ヘッドの特性等により書き込み電
流が変化しても、書き込み電流値が適正範囲から外れる
という事態が防止される。従って、安定して磁気ストラ
イプデータの書き込みができ、書き込み不良の発生を防
止できるという効果がある。
As described above, according to the present invention, while the write current value is sequentially increased from the minimum value to the maximum value, the magnetic stripe data is written, the written data is read, and it is determined whether or not the writing is normally performed. , A write current value at each time, a reproduction output voltage value at the time of reading, and writability data are stored, and a writable write current proper range is detected based on the stored data,
From the change of the reproduction output voltage within the appropriate range, a part where the change rate of the reproduction output voltage is small with respect to the change of the write current is detected, and the write current value is set within the part, so that the change of the external environment, the individual Even if the write current changes due to the characteristics of the magnetic head or the like, it is possible to prevent the write current value from deviating from the proper range. Therefore, it is possible to stably write the magnetic stripe data, and it is possible to prevent the occurrence of a write failure.

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

【図1】本発明の一実施例の書き込み処理の手順を示す
フローチャートである。
FIG. 1 is a flowchart showing a procedure of a writing process according to an embodiment of the present invention.

【図2】本発明の一実施例を実行する発券装置の構成図
である。
FIG. 2 is a configuration diagram of a ticket issuing device for carrying out an embodiment of the present invention.

【図3】発券装置の機構の概略構成の説明図である。FIG. 3 is an explanatory diagram of a schematic configuration of a mechanism of the ticket issuing device.

【図4】磁気ストライプデータの書き込み電流値と再生
出力電圧との相関図である。
FIG. 4 is a correlation diagram between a write current value of magnetic stripe data and a reproduction output voltage.

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

10 制御部 11 RAM 20 磁気回路インターフェース部 21 書き込み電流設定回路 22 書き込みデータ生成回路 23 読み取りデータ生成回路 24 再生出力電圧検出回路 25 リードアンプ 26a,26b,27a,27b トランジスタ 30 印字回路インターフェース部 40 駆動回路インターフェース部 50 センサ回路インターフェース部 201 書き込み用磁気ヘッド 10 control section 11 RAM 20 magnetic circuit interface section 21 write current setting circuit 22 write data generation circuit 23 read data generation circuit 24 reproduction output voltage detection circuit 25 read amplifiers 26a, 26b, 27a, 27b transistor 30 print circuit interface section 40 drive circuit Interface unit 50 Sensor circuit interface unit 201 Writing magnetic head

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 発券装置において、発券すべき発券媒体
に磁気ストライプデータの書き込みを行う磁気ストライ
プデータの書き込み方法であって、 ある書き込み電流値で磁気ストライプデータを書き込
み、書き込んだデータを読み取り、正常に書き込みがで
きたか否かを判断し、書き込み電流値、読み取り時の再
生出力電圧値及び書き込み可否データを記憶する第1の
工程と、 書き込み電流値を最小から最大迄順次増加させながら前
記第1の工程を繰り返す第2の工程と、 記憶されたデータに基づき書き込み可能な書き込み電流
適正範囲を検出し、書き込み電流適正範囲内の再生出力
電圧の変化から書き込み電流の変化に対して再生出力電
圧の変化率が小さい部分を検出し、該部分内で書き込み
電流値を設定する第3の工程とを備えた磁気ストライプ
データの書き込み方法。
1. A method of writing magnetic stripe data in a ticket issuing device for writing magnetic stripe data to a ticket issuing medium to be issued, comprising: writing magnetic stripe data at a certain write current value; reading the written data; The first step of determining whether or not writing has been completed, and storing the write current value, the reproduction output voltage value at the time of reading, and the write enable / disable data, and the first step of sequentially increasing the write current value from the minimum to the maximum. The second step which repeats the above step, and the writable write current proper range is detected based on the stored data, and the change of the reproduction output voltage within the proper write current range from the change of the reproduction output voltage to the change of the write current A third step of detecting a portion having a small rate of change and setting a write current value in the portion. How to write trip data.
JP29331893A 1993-11-24 1993-11-24 Method for writing magnetic stripe data Pending JPH07147060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29331893A JPH07147060A (en) 1993-11-24 1993-11-24 Method for writing magnetic stripe data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29331893A JPH07147060A (en) 1993-11-24 1993-11-24 Method for writing magnetic stripe data

Publications (1)

Publication Number Publication Date
JPH07147060A true JPH07147060A (en) 1995-06-06

Family

ID=17793285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29331893A Pending JPH07147060A (en) 1993-11-24 1993-11-24 Method for writing magnetic stripe data

Country Status (1)

Country Link
JP (1) JPH07147060A (en)

Similar Documents

Publication Publication Date Title
US6203220B1 (en) Method, apparatus, and program for printing using modified print attributes
US20040044944A1 (en) Method of and apparatus for controlling data storage system according to temperature, and medium
JP2005041086A (en) Printer, and its controlling method
JPH07147060A (en) Method for writing magnetic stripe data
JP3062148B2 (en) Thermal recording method and thermal recording apparatus
KR100636190B1 (en) Apparatus and method for image forming by detecting thermal print head type
JPH0684105A (en) Method of writing magnetic stripe data
JPS62263068A (en) Impact-type printer
JPH0781099A (en) Thermal recording device
JP2946836B2 (en) Media mark reading method
JP2826690B2 (en) Magnetic stripe data reading circuit
JPH10202977A (en) Printer device for bankbook
JPH01173271A (en) Mark reading system
JP2973213B2 (en) Magnetic recording medium issuing device
JP2001191591A (en) Method for printing at variable velocity with printer and recording medium having for printing at variable velocity with printer recorded thereon program
JP2003141703A (en) Magnetic disk unit
JP3839147B2 (en) Passbook line detector
JP2001136348A (en) Method and device for automatically adjusting image line sensor read start time, recording medium having program for automatically adjusting image line sensor read start time recorded thereon, and recording medium having image data read processing program recorded thereon
JP2703968B2 (en) Automatic passbook entry device
JPH06115210A (en) Recording device
JP2001191603A (en) Defective print detector for printer
JPH04181502A (en) Magnetic disk drive
JPH02286386A (en) Printer
JPS62121067A (en) Dot impact printer
JPH11138927A (en) Line sensing apparatus