JP7425652B2 - Writing device, writing method, and program - Google Patents
Writing device, writing method, and program Download PDFInfo
- Publication number
- JP7425652B2 JP7425652B2 JP2020057770A JP2020057770A JP7425652B2 JP 7425652 B2 JP7425652 B2 JP 7425652B2 JP 2020057770 A JP2020057770 A JP 2020057770A JP 2020057770 A JP2020057770 A JP 2020057770A JP 7425652 B2 JP7425652 B2 JP 7425652B2
- Authority
- JP
- Japan
- Prior art keywords
- recording medium
- magnetic recording
- writing
- data
- holding circuit
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 21
- 238000012545 processing Methods 0.000 claims description 87
- 238000012937 correction Methods 0.000 claims description 17
- 238000003860 storage Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 10
- 238000003780 insertion Methods 0.000 description 5
- 230000037431 insertion Effects 0.000 description 5
- 230000007723 transport mechanism Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000004549 pulsed laser deposition Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Recording Or Reproducing By Magnetic Means (AREA)
Description
本発明は、書き込み装置、書き込み方法、及びプログラムに関する。 The present invention relates to a writing device, a writing method, and a program.
交通機関の乗車券、有料道路の通行券等には、磁気ストライプを有する磁気記録媒体が用いられている。例えば、有料道路の通行券は、入口料金所に設けられた通行券処理機により、有料道路へ入場した時刻及び位置(入口料金所)等を示す入口情報が書き込まれて発行される。また、有料道路の通行券は、出口料金所に設けられた通行券処理機により、入口情報が読み取られるとともに、有料道路から退場した時刻及び位置(出口料金所)等を示す出口情報が書き込まれて回収される。 2. Description of the Related Art Magnetic recording media having magnetic stripes are used in transportation tickets, toll road tickets, and the like. For example, a toll road ticket is issued with entrance information indicating the time and location (entrance toll gate) of entry to the toll road written therein by a toll ticket processing machine installed at an entrance toll gate. In addition, on toll road tickets, entrance information is read by a ticket processing machine installed at the exit toll gate, and exit information indicating the time and location of exit from the toll road (exit toll gate) is written. will be collected.
このような通行券処理機は、磁気ストライプへの読み書き処理を行うためのリーダ/ライタを有している。出口料金所の通行券処理機において、リーダ/ライタは、通行券が挿入されると、通行券を通行券処理機の奥側に引き込みながら、通行券の磁気ストライプの先頭から順方向にデータを読み出す。磁気ストライプには、先頭から順に、磁気ストライプの記録密度(例えば、100bpi、200bpiなど)を示すビット周期の幅を読み取るための「プリアンブル」と、データの開始位置を示す「スタート」が記録されている。 Such a ticket processing machine has a reader/writer for reading and writing to the magnetic stripe. In the ticket processing machine at the exit toll gate, when the ticket is inserted, the reader/writer pulls the ticket into the back of the ticket processing machine and reads data in the forward direction from the beginning of the magnetic stripe on the ticket. read out. A "preamble" for reading the bit period width indicating the recording density of the magnetic stripe (for example, 100 bpi, 200 bpi, etc.) and a "start" indicating the start position of the data are recorded on the magnetic stripe in order from the beginning. There is.
リーダ/ライタは、「プリアンブル」として記録されているデータの幅から読み取ったビット周期でデータを読み取ることにより、「スタート」以降のデータ部に記録されている入口情報を正しく読み取ることができる。また、入口料金所の通行券処理機において、リーダ/ライタは、データ部に何も記録されていない(新券である)ことを確認することができる。 The reader/writer can correctly read the entry information recorded in the data section after the "start" by reading data at the bit period read from the width of the data recorded as the "preamble". Further, in the ticket processing machine at the entrance tollgate, the reader/writer can confirm that nothing is recorded in the data section (the ticket is a new ticket).
更に、リーダ/ライタは、通行券を順方向に引き込みながら、所定のビット周期で、磁気ストライプのデータ部に入口情報又は出口情報を書き込む。 Furthermore, the reader/writer writes entrance information or exit information into the data section of the magnetic stripe at a predetermined bit period while drawing the pass in the forward direction.
リーダ/ライタは、入口情報又は出口情報を書き込んだ後、更に書き込まれた情報を読み出して、正常に書き込まれたか検証を行う場合がある。このとき、リーダ/ライタは、引き込んだ通行券を通行券処理機の挿入口側に搬送(排出)しながら、磁気ストライプを後端から逆方向に読み出すこととなる。このように、逆方向から磁気ストライプを読み出し可能とするために、磁気ストライプの後端には、データの終了位置を示す「エンド」と、プリアンブルと同様にビット周期の幅を読み取るための「ポストアンブル」とが記録されている場合がある(例えば、特許文献1を参照)。 After writing the entrance information or the exit information, the reader/writer may read the written information and verify whether the information was written correctly. At this time, the reader/writer reads the magnetic stripe in the reverse direction from the rear end while conveying (ejecting) the drawn ticket to the insertion slot side of the ticket processing machine. In order to make it possible to read the magnetic stripe from the opposite direction, the trailing edge of the magnetic stripe has an "end" mark indicating the end position of the data, and a "post" mark for reading the width of the bit period, similar to the preamble. "amble" may be recorded (for example, see Patent Document 1).
しかしながら、通行券処理機などに用いられるリーダ/ライタには様々な機種があり、「ポストアンブル」を記録しない機種も存在する。例えば、入口料金所の通行券処理機がこのようなリーダ/ライタを有していた場合、この通行券処理機により発行される通行券については、磁気ストライプの後端に「ポストアンブル」が記録されない。そうすると、出口料金所の通行券処理機において、書き込みの検証を行う際、磁気ストライプを逆方向に読み出すと、正常にデータが読み取れない場合がある。 However, there are various types of reader/writers used in pass processing machines and the like, and some models do not record "postambles." For example, if the ticket processing machine at the entrance tollgate has such a reader/writer, the "postamble" will be recorded at the rear end of the magnetic stripe for the ticket issued by this ticket processing machine. Not done. If the magnetic stripe is read in the opposite direction when verifying writing in the ticket processing machine at the exit toll gate, the data may not be read correctly.
本開示は、このような課題に鑑みてなされたものであって、ポストアンブルのない磁気記録媒体であっても、書き込み後の磁気記録媒体を逆方向に搬送しながら書き込みが正常に行われたか検証する際に、正しくデータを読み出すことができる書き込み装置、書き込み方法、及びプログラムを提供する。 The present disclosure has been made in view of such problems, and even in a magnetic recording medium without a postamble, it is possible to check whether writing is performed normally while conveying the magnetic recording medium in the opposite direction after writing. Provided are a writing device, a writing method, and a program that can read data correctly during verification.
上記課題を解決するため、本発明は以下の手段を採用している。
本開示の一の態様によれば、磁気記録媒体の書き込み装置は、前記磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を出力する保持回路と、前記磁気記録媒体を磁化させてデータを書き込む書込処理部と、前記磁気記録媒体への書き込み完了後に、前記書込処理部が書き込んだ最後の極性に応じて、前記保持回路の出力を設定する設定部と、前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行う読出処理部と、を備える。
In order to solve the above problems, the present invention employs the following means.
According to one aspect of the present disclosure, a magnetic recording medium writing device includes a holding circuit that outputs one of binary holding voltages according to an induced voltage generated during transportation of the magnetic recording medium; a write processing unit that magnetizes a recording medium to write data; and a setting unit that sets the output of the holding circuit according to the last polarity written by the write processing unit after completion of writing to the magnetic recording medium. and a read processing unit that reads the written data while transporting the magnetic recording medium in the opposite direction after setting the output of the holding circuit.
本開示の一の態様によれば、磁気記録媒体の書き込み方法は、前記磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を保持回路から出力するステップと、前記磁気記録媒体を磁化させてデータを書き込むステップと、前記磁気記録媒体への書き込み完了後に、書き込んだ最後の極性に応じて、前記保持回路の出力を設定するステップと、前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行うステップと、を有する。 According to one aspect of the present disclosure, a method for writing to a magnetic recording medium includes the steps of: outputting one of two binary holding voltages from a holding circuit according to an induced voltage generated during transport of the magnetic recording medium; magnetizing the magnetic recording medium and writing data; setting the output of the holding circuit according to the last polarity of writing after completion of writing to the magnetic recording medium; and setting the output of the holding circuit. Thereafter, the method further includes the step of reading the written data while conveying the magnetic recording medium in the opposite direction.
本開示の一の態様によれば、プログラムは、磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を出力する保持回路を有する書き込み装置のコンピュータに、前記磁気記録媒体を磁化させてデータを書き込むステップと、前記磁気記録媒体への書き込み完了後に、書き込んだ最後の極性に応じて、前記保持回路の出力を設定するステップと、前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行うステップと、を実行させる。 According to one aspect of the present disclosure, the program causes a computer of a writing device that has a holding circuit that outputs one of two binary holding voltages in accordance with an induced voltage generated during conveyance of a magnetic recording medium to send the magnetic recording medium to the computer. a step of magnetizing a recording medium and writing data; a step of setting an output of the holding circuit according to the last polarity of writing after completion of writing to the magnetic recording medium; and a step of setting the output of the holding circuit after setting the output of the holding circuit. reading the written data while conveying the magnetic recording medium in the opposite direction.
本開示の少なくとも一の態様によれば、ポストアンブルが記録されていない磁気記録媒体であっても、データ書き込み後の磁気記録媒体を逆方向に搬送しながら書き込みが正常に行われたか検証する際に正しくデータを読み出すことができる。 According to at least one aspect of the present disclosure, even if the postamble is not recorded on the magnetic recording medium, when the magnetic recording medium after data is written is conveyed in the reverse direction to verify whether writing has been performed normally. data can be read correctly.
以下、本開示の一実施形態に係る書き込み装置、書き込み方法、及びプログラムについて、図面を参照しながら説明する。 Hereinafter, a writing device, a writing method, and a program according to an embodiment of the present disclosure will be described with reference to the drawings.
(全体構成)
図1は、本開示の一実施形態に係る書き込み装置の機能構成を示す図である。
図1に示すように、本実施形態の書き込み装置20は、例えば有料道路の通行券処理機1の筐体10内に設けられる。通行券処理機1は、筐体10の前面側(+Y側)から奥側(-Y側)に向かって延びる搬送路12を有しており、通行券Tを順方向(-Y方向)又は逆方向(+Y方向)に搬送しながら、通行券Tの磁気ストライプMに対するデータの読み書きを行う。
(overall structure)
FIG. 1 is a diagram showing a functional configuration of a writing device according to an embodiment of the present disclosure.
As shown in FIG. 1, the
通行券処理機1は、例えば、有料道路の入口料金所において、有料道路を利用する車両に通行券Tを発行する通行券発行機である。入口料金所に車両が到来すると、通行券処理機1は、筐体10内部の供給部(不図示)から新たな通行券Tを搬送路12に供給する。そうすると、通行券処理機1の書き込み装置20は、車両が有料道路へ入場した時刻及び地点(入口料金所)等を含む入口情報を通行券Tの磁気ストライプMに書き込んで、通行券処理機1の排出口11Aから排出する。
The toll
また、通行券処理機1は、例えば、有料道路の出口料金所において、車両の搭乗者により操作される料金自動収受機(不図示)、又は収受員により操作される料金収受機(不図示)に内蔵又は外付けされる通行券処理機である。出口料金所に車両が到来すると、通行券Tは通行券処理機1の挿入口11Bから挿入されて、搬送路12内を奥側(-Y側)に向かって搬送される。そうすると、通行券処理機1の書き込み装置20は、通行券Tの磁気ストライプMから入口情報を読み出すとともに、利用者が退出した時刻及び地点(出口料金所)等を含む出口情報を磁気ストライプMに記録して、通行券Tを筐体内10の回収ボックス(不図示)に回収する。
The
なお、本実施形態において、通行券Tは磁気記録媒体の一態様である。他の実施形態では、磁気記録媒体は、例えば交通機関の乗車券、プリペイドカード、ポイントカード等であってもよい。 Note that in this embodiment, the pass T is one aspect of a magnetic recording medium. In other embodiments, the magnetic recording medium may be, for example, a transportation ticket, a prepaid card, a point card, or the like.
(書き込み装置の機能構成)
書き込み装置20は、CPU21と、読出磁気ヘッド22と、書込磁気ヘッド23と、保持回路24と、補正回路25と、搬送機構26とを備えている。なお、本実施形態において、書き込み装置20は、読出磁気ヘッド22及び書込磁気ヘッド23をそれぞれ1つずつ備えている。
(Functional configuration of writing device)
The
読出磁気ヘッド22は、通行券Tを搬送路12に沿って搬送する際に、磁気ストライプMに書き込まれた極性のパターンにより生じる誘起電圧を検出して、保持回路24に出力する。
The read
書込磁気ヘッド23は、読出磁気ヘッド22よりも搬送路12の奥側(-Y側)に設けられ、CPU21の指令に基づいて、通行券Tの磁気ストライプMを磁化させてデータを記録する。
The write
保持回路24は、読出磁気ヘッド22により検出された誘起電圧に応じて2値の何れかの保持電圧をCPU21に出力する。
The
図2は、本開示の一実施形態に係る保持回路の機能を説明するための図である。
図2の(a)に示すように、読出磁気ヘッド22により検出された電圧は、まず、保持回路24で増幅される。次に、保持回路24は、図2の(b)に示すように、増幅された電圧が第1の閾値+X以上となったときに出力を「HIGH」とし、以降、出力を「HIGH」のまま保持する。また、保持回路24は、増幅された電圧が第2の閾値-X以下となったときに出力を「LOW」とし、以降、出力を「LOW」のまま保持する。保持回路24は、読出磁気ヘッド22が検出した電圧をこのように2値化した波形に整形して、CPU21に出力する。
FIG. 2 is a diagram for explaining the function of a holding circuit according to an embodiment of the present disclosure.
As shown in FIG. 2A, the voltage detected by the read
補正回路25は、CPU21の指令に基づいて、書込磁気ヘッド23が書き込んだ最後の極性を反転させて保持回路24に出力させる。
Based on a command from the
搬送機構26は、通行券Tを搬送路12の奥側(-Y側)又は手前側(+Y側)に搬送する。搬送機構26は、搬送ローラ260と、搬送ベルト261と、モータ262とを有している。モータ262は、CPU21からの指令に基づいて回転動作する。そうすると、モータ262の回転駆動力が搬送ローラ260に伝達され、搬送ベルト261の通行券Tとの接触面を搬送路12の奥側又は手前側に移動させる。これにより、搬送機構26は、通行券Tを搬送路12の奥側又は手前側に搬送させる。
The
CPU21は、所定のプロセッサに従って動作することにより、書き込み装置20の機能を実現するプロセッサである。CPU21は、書き込み装置20の機能部として、読出処理部210、書込処理部211、設定部212、及び搬送制御部213を有している。
The
読出処理部210は、保持回路24から出力された保持電圧に基づいて、通行券Tの磁気ストライプMに書き込まれたデータを取得する。また、読出処理部210は、後述の設定部212による保持回路24の出力設定後に、逆方向(+Y方向)に通行券Tを搬送しながら、磁気ストライプMに書き込まれたデータの読み出しを行う。
The
図3は、本開示の一実施形態に係る磁気記録媒体のデータ構成の一例を示す図である。
図3に示すように、通行券Tの磁気ストライプMには、長手方向(±Y方向)の先頭(-Y側)から順に、「プリアンブル」、「スタート」、「データ」、及び「エンド」が記録される。プリアンブルは、書き込まれたデータのビット周期(例えば、100bpi又は200bpi)の幅を読み取るための情報であり、例えば固定値「0000」が記録される。スタート及びエンドはデータの開始位置及び終了位置を示す情報であり、例えば固定値「1111」が記録される。データには、入口情報、出口情報などの各種情報が所定の位置に2値化されて(「1」又は「0」の値で)記録される。
FIG. 3 is a diagram illustrating an example of a data structure of a magnetic recording medium according to an embodiment of the present disclosure.
As shown in FIG. 3, the magnetic stripe M of the pass T includes "preamble", "start", "data", and "end" in order from the beginning (-Y side) in the longitudinal direction (±Y direction). is recorded. The preamble is information for reading the width of the bit period (for example, 100 bpi or 200 bpi) of the written data, and for example, a fixed value "0000" is recorded. Start and end are information indicating the start position and end position of data, and for example, a fixed value "1111" is recorded. In the data, various information such as entrance information and exit information is recorded in a binarized manner (as a value of "1" or "0") at a predetermined position.
図4は、本開示の一実施形態に係る読出処理部の機能を説明するための図である。
磁気ストライプMには、例えば図4に示すように、「1」及び「0」の周波数を変えて記録するFM(Frequency Modulation)方式で記録されているとする。読出処理部210は、保持回路24から出力された読出波形(増幅及び整形後の波形)に基づいて、磁気ストライプMに記録されたデータ(「1」又は「0」)を読み取る。なお、磁気ストライプMへの記録方式はFM方式に限らず、MFM(Modified Frequency Modulation)方式、NRZ(Non-Return-to-Zero)方式等が用いられてもよい。
FIG. 4 is a diagram for explaining the functions of the read processing unit according to an embodiment of the present disclosure.
For example, as shown in FIG. 4, it is assumed that information is recorded on the magnetic stripe M using the FM (Frequency Modulation) method in which "1" and "0" are recorded at different frequencies. The
書込処理部211は、書込磁気ヘッド23を通じて、通行券Tの磁気ストライプMにデータを記録する。具体的には、書込処理部211は、書き込むデータに応じて書込磁気ヘッド23のコイルに流れる信号電流の向きを変化させて、書込磁気ヘッド23を磁化させる。そうすると、書込磁気ヘッド23に発生した磁界によって近接する磁気ストライプMに1ビットずつ「HIGH」又は「LOW」(若しくは、「N極」又は「S極」)で示される極性が書き込まれる。この極性反転の周波数により、図4に示すような2値の値(「1」又は「0」)を表現することができる。なお、書込処理部211は、予め設定されたビット周期、又は、読出処理部210が読み取ったビット周期でデータの書き込みを行う。
The
設定部212は、通行券Tへの書き込み完了後に、書込処理部211が書き込んだ最後の極性に応じて、保持回路24の出力を設定する。具体的には、設定部212は、書込処理部211が書き込んだ最後の極性を示す値を補正回路25に入力する。そうすると、次の読み出し開始時における保持回路24の出力は、補正回路25により最後の極性を反転させたものに補正される。
After the writing to the pass T is completed, the
搬送制御部213は、搬送機構26の動作を制御する。新たな通行券Tに入口情報の記録を行う場合、又は、入口情報が記録された通行券Tが挿入口11Bに挿入された場合、搬送制御部213は搬送機構26に対し、通行券Tを順方向(図1の-Y方向)に搬送する指令を出力する。また、書込処理部211によるデータの書き込みが完了すると、搬送制御部213は、通行券Tを逆方向(図1の+Y方向)に搬送する指令を出力する。
The
(書き込み装置の処理フロー)
図5は、本開示の一実施形態に係る書き込み装置の処理の一例を示すフローチャートである。
以下、図5を参照しながら、本実施形態に係る書き込み装置20の処理の一例について詳細に説明する。ここでは、出口料金所に設けられた通行券処理機1の書き込み装置20が入口情報の読み出し及び出口情報の書き込み処理を行う例について説明する。
(Processing flow of writing device)
FIG. 5 is a flowchart illustrating an example of processing of a writing device according to an embodiment of the present disclosure.
Hereinafter, an example of the processing of the
通行券処理機1の挿入口11Bに通行券Tが挿入されると、書き込み装置20の搬送制御部213は、図5に示すように通行券Tを順方向(図1の-Y側)に搬送するように搬送機構26を制御する(ステップS01)。
When the pass T is inserted into the
次に、読出処理部210は、通行券Tの磁気ストライプMから、順方向にデータ(入口情報)を読み出す(ステップS02)。
Next, the
図6は、本開示の一実施形態に係る書込波形及び読出波形の一例を示す図である。
図6において、(a)は書込処理部211が書き込むデータの書込波形の例、(b)は読出処理部210が読み出すデータの読出波形の例、(c)は従来技術における読出波形の比較例を示す。
磁気ストライプMに記録されたデータは、読出磁気ヘッド22及び保持回路24を通じて、図6の(b)に示す読出波形としてCPU21(読出処理部210)に入力される。読出処理部210は、この読出波形に基づいてデータ(「1」又は「0」)を読み取る。また、読出処理部210が磁気ストライプMの後端(図3の+Y側の端部)までデータ読み出しを完了すると、図6の(b)に示すように、保持回路24には、最後の読み取ったデータの極性(最後の読出極性P1)が保持されたままとなる。なお、図6の(b)の例では、最後の読出極性P1は「HIGH」である。
FIG. 6 is a diagram illustrating an example of a write waveform and a read waveform according to an embodiment of the present disclosure.
In FIG. 6, (a) is an example of a write waveform of data written by the
The data recorded on the magnetic stripe M is input to the CPU 21 (read processing section 210) through the read
次に、書込処理部211は、磁気ストライプMに新たなデータ(出口情報)を書き込む(ステップS03)。
Next, the
書込処理部211によるデータの書き込みが完了すると、搬送制御部213は、通行券Tの搬送を停止させる(ステップS04)。
When the
また、設定部212は、書込処理部211が書き込んだ最後の極性(最後の書込極性P2)、及びビット周期を取得する(ステップS05)。
Further, the
次に、設定部212は、最後の書込極性P2に基づいて保持回路24の出力を補正する(ステップS06)。上述のように、保持回路24には、読出磁気ヘッド22を通じて読み出した最後の読出極性P1が保持されたままとなっている。設定部212は、補正回路25に最後の書込極性P2を示す値を入力する。そうすると、補正回路25は、最後の書込極性P2を反転させて保持回路24に出力させる。図6の(b)の例では、最後の書込極性P2は「HIGH」であるので、補正回路25は、保持回路24に「LOW」を出力させる。
Next, the
設定部212による設定が完了すると、搬送制御部213は、通行券Tを逆方向(図1の+Y側)に搬送するように搬送機構26を制御する(ステップS07)。
When the setting by the
次に、読出処理部210は、データ(出口情報)が正しく書き込まれたか検証するために、通行券Tの磁気ストライプMから、逆方向にデータを読み出す(ステップS08)。このとき、読出処理部210は、ステップS05において設定部212が取得したビット周期に基づいて、データの読み出しを行う。
Next, the
例えば、従来の技術では、図6の(c)に示すように、保持回路に最後の読出極性P1が保持されたまま、逆方向の読み出しを開始する。そうすると、図6の(c)の例のように、最後の読出極性P1及び最後の書込極性P2が一致している場合、読出処理部は磁気ストライプの後端1ビット目の開始エッジを検出できないので、逆方向読み出し時の最初の半ビットを正常に読み取ることが困難である。 For example, in the conventional technique, as shown in FIG. 6C, reading in the reverse direction is started while the last read polarity P1 is held in the holding circuit. Then, as in the example in FIG. 6(c), if the last read polarity P1 and the last write polarity P2 match, the read processing unit detects the start edge of the first bit at the rear end of the magnetic stripe. Therefore, it is difficult to correctly read the first half bit during backward reading.
一方、本実施形態に係る保持回路24は、図6の(b)に示すように、設定部212及び補正回路25により、最後の書き込み極性(「HIGH」)を反転させたもの(「LOW」)を出力するように設定される。このため、読出処理部210は、磁気ストライプMの後端1ビット目の開始エッジを検出することが可能となるため、逆方向読み出し時であっても正常にデータを読み取ることができる。
On the other hand, as shown in FIG. 6(b), the holding
なお、CPU21は、読出処理部210により読み出されたデータに基づいて、磁気ストライプMに正常にデータが記録されたかを確認した後、通行券Tを回収ボックス(不図示)に回収する。
Note that the
通行券処理機1の書き込み装置20は、通行券Tが挿入される度に、図5の一連の処理を実行する。
The
また、書き込み装置20は、通行券処理機1が入口料金所に設置された通行券発行機であった場合も同様に、図5の一連の処理を実行する。このとき、搬送制御部213は、供給部(不図示)から供給された通行券Tを搬送路12の奥側に搬送する(ステップS01)。また、読出処理部210が通行券Tの磁気ストライプMからデータを読み出して(ステップS02)、通行券Tが新券であることが確認されると、書込処理部211は、磁気ストライプMにデータ(入口情報)を書き込む(ステップS03)。また、読出処理部210により、磁気ストライプMから逆方向にデータが読み出されると(ステップS08)、CPU21は、読み出したデータに基づいて、磁気ストライプMに正常にデータが記録されたかを確認した後、通行券Tを排出口11Aから排出する。その他の処理は、出口料金所における書き込み装置20の処理と同じである。
Further, the
(書き込み装置のハードウェア構成)
図7は、本開示の一実施形態に係る書き込み装置のハードウェア構成の一例を示す図である。
以下、図7を参照しながら、本実施形態に係る書き込み装置20のハードウェア構成について説明する。
(Hardware configuration of writing device)
FIG. 7 is a diagram illustrating an example of the hardware configuration of a writing device according to an embodiment of the present disclosure.
The hardware configuration of the
コンピュータ900は、プロセッサ901、主記憶装置902、補助記憶装置903、インタフェース904を備える。
The
上述の書き込み装置20は、コンピュータ900に実装される。そして、上述した各機能部の動作は、プログラムの形式で補助記憶装置903に記憶されている。プロセッサ901は、プログラムを補助記憶装置903から読み出して主記憶装置902に展開し、当該プログラムに従って上記処理を実行する。また、プロセッサ901は、プログラムに従って、上述した各記憶部に対応する記憶領域を主記憶装置902に確保する。プロセッサ901の例としては、CPU(Central Processing Unit)、GPU(Graphic Processing Unit)、マイクロプロセッサなどが挙げられる。
The above-described
プログラムは、コンピュータ900に発揮させる機能の一部を実現するためのものであってもよい。例えば、プログラムは、補助記憶装置903に既に記憶されている他のプログラムとの組み合わせ、または他の装置に実装された他のプログラムとの組み合わせによって機能を発揮させるものであってもよい。なお、他の実施形態においては、コンピュータ900は、上記構成に加えて、または上記構成に代えてPLD(Programmable Logic Device)などのカスタムLSI(Large Scale Integrated Circuit)を備えてもよい。PLDの例としては、PAL(Programmable Array Logic)、GAL(Generic Array Logic)、CPLD(Complex Programmable Logic Device)、FPGA(Field Programmable Gate Array)が挙げられる。この場合、プロセッサ901によって実現される機能の一部または全部が当該集積回路によって実現されてよい。このような集積回路も、プロセッサの一例に含まれる。
The program may be for implementing part of the functions that the
補助記憶装置903の例としては、HDD(Hard Disk Drive)、SSD(Solid State Drive)、磁気ディスク、光磁気ディスク、CD-ROM(Compact Disc Read Only Memory)、DVD-ROM(Digital Versatile Disc Read Only Memory)、半導体メモリ等が挙げられる。補助記憶装置903は、コンピュータ900のバスに直接接続された内部メディアであってもよいし、インタフェース904または通信回線を介してコンピュータ900に接続される外部記憶装置910であってもよい。また、このプログラムが通信回線によってコンピュータ900に配信される場合、配信を受けたコンピュータ900が当該プログラムを主記憶装置902に展開し、上記処理を実行してもよい。少なくとも1つの実施形態において、補助記憶装置903は、一時的でない有形の記憶媒体である。
Examples of the
また、当該プログラムは、前述した機能の一部を実現するためのものであってもよい。さらに、当該プログラムは、前述した機能を補助記憶装置903に既に記憶されている他のプログラムとの組み合わせで実現するもの、いわゆる差分ファイル(差分プログラム)であってもよい。
Further, the program may be for realizing part of the functions described above. Furthermore, the program may be a so-called difference file (difference program) that implements the above-described functions in combination with other programs already stored in the
(作用効果)
以上のように、本実施形態に係る書き込み装置20は、設定部212が最後の書込極性P2に応じて保持回路24の出力を設定する。このようにすることで、書き込み装置20は、ポストアンブルが記録されていない通行券Tであっても、データ書き込み後の通行券Tを逆方向(図1の+Y方向)に搬送しながら書き込みが正常に行われたか検証する際に、正しくデータを読み出すことができる。これにより、ポストアンブルを記録できない既存の通行券処理機を継続して使用することができるので、料金所への機器設置コストの増加を抑制することができる。
(effect)
As described above, in the
また、設定部212は、補正回路25に最後の書込極性P2を入力し、補正回路25は保持回路24に最後の書込極性P2を反転して出力させる。このようにすることで、読出処理部210が通行券Tの磁気ストライプMを逆方向に読み出すときに、磁気ストライプM後端の1ビット目から正しくデータを読み出すことができる。
Further, the
また、設定部212は、書込処理部211が書き込んだデータのビット周期を取得し、読出処理部210は、このビット周期に基づいてデータの読み出しを行う。このようにすることで、読出処理部210は、磁気ストライプMに書き込まれたデータを正しく読み出すことができる。
Further, the
また、本実施形態に係る書き込み装置20は、読出磁気ヘッド22を一つのみ有しており、書き込みデータの検証を行う際は、通行券Tを逆方向(図1の+Y方向)に搬送させながらデータの読み出しを行う。このようにすることで、書き込み装置20は、書込磁気ヘッド23の奥側(図1の-Y側)に書き込みデータ検証用の読出磁気ヘッドを追加する必要がない。この結果、書き込み装置20の製造コストを低減することができるとともに、書き込み装置20が大型化することを抑制することができる。
Furthermore, the
以上、図面を参照して第1の実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、様々な設計変更等をすることが可能である。即ち、他の実施形態においては、上述の処理の順序が適宜変更されてもよい。また、一部の処理が並列に実行されてもよい。 Although the first embodiment has been described above in detail with reference to the drawings, the specific configuration is not limited to that described above, and various design changes can be made. That is, in other embodiments, the order of the above-described processes may be changed as appropriate. Also, some of the processes may be executed in parallel.
例えば、上述の実施形態において、書き込み装置20が通行券処理機1内に設けられる態様を例として説明したが、これに限られることはない、他の実施形態では、書き込み装置20は、交通機関の乗車券発行機内に設けられてもよい。また、書き込み装置20は、小売店等に設置されたプリペイドカード、ポイントカードなどの処理装置内に設けられてもよい。この場合、磁気記録媒体は、例えば交通機関の乗車券、プリペイドカード、ポイントカード等である。
For example, in the above embodiment, the
(付記)
上述の実施形態に記載の書き込み装置20、書き込み方法、及び書き込み装置20のプログラムは、例えば以下のように把握される。
(Additional note)
The
本開示の第1の態様によれば、磁気記録媒体の書き込み装置(20)は、前記磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を出力する保持回路(24)と、前記磁気記録媒体を磁化させてデータを書き込む書込処理部(211)と、前記磁気記録媒体への書き込み完了後に、前記書込処理部が書き込んだ最後の極性に応じて、前記保持回路の出力を設定する設定部(212)と、前記保持回路(24)の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行う読出処理部(210)と、を備える。 According to a first aspect of the present disclosure, a magnetic recording medium writing device (20) includes a holding circuit that outputs one of binary holding voltages according to an induced voltage generated during conveyance of the magnetic recording medium. (24), a write processing unit (211) that magnetizes the magnetic recording medium and writes data, and after completion of writing to the magnetic recording medium, depending on the last polarity written by the write processing unit, a setting unit (212) that sets the output of the holding circuit; and a read processing unit (212) that reads the written data while conveying the magnetic recording medium in the opposite direction after setting the output of the holding circuit (24). 210).
このようにすることで、書き込み装置(20)は、ポストアンブルが記録されていない磁気記録媒体であっても、データ書き込み後の磁気記録媒体を逆方向(図1の+Y方向)に搬送しながら書き込みが正常に行われたか検証する際に、正しくデータを読み出すことができる。 By doing so, the writing device (20) can transport the magnetic recording medium in the opposite direction (+Y direction in FIG. 1) after writing data, even if the postamble is not recorded on the magnetic recording medium. Data can be read correctly when verifying whether writing has been performed normally.
本開示の第2の態様によれば、第1の態様に係る書き込み装置(20)において、前記保持回路(24)の出力を補正する補正回路(25)を更に有し、前記設定部(212)は、書き込んだ最後の極性を前記補正回路(25)に入力し、前記補正回路(25)は、入力された前記極性を反転させて前記保持回路(24)に出力させる。 According to a second aspect of the present disclosure, the writing device (20) according to the first aspect further includes a correction circuit (25) that corrects the output of the holding circuit (24), and the setting section (212) ) inputs the last written polarity to the correction circuit (25), and the correction circuit (25) inverts the input polarity and outputs it to the holding circuit (24).
このようにすることで、読出処理部(210)が磁気記録媒体を逆方向に読み出すときに、磁気記録媒体の後端の1ビット目から正しくデータを読み出すことができる。 By doing so, when the read processing unit (210) reads the magnetic recording medium in the reverse direction, it is possible to correctly read data from the first bit at the rear end of the magnetic recording medium.
本開示の第3の態様によれば、第1又は第2の態様に係る書き込み装置(20)において、前記設定部(212)は、前記磁気記録媒体へ書き込んだデータのビット周期を更に取得し、前記読出処理部(210)は、前記ビット周期に基づいて前記データの読み出しを行う。 According to a third aspect of the present disclosure, in the writing device (20) according to the first or second aspect, the setting unit (212) further acquires a bit period of data written to the magnetic recording medium. , the read processing unit (210) reads the data based on the bit period.
このようにすることで、読出処理部(210)は、磁気記録媒体に書き込まれたデータを正しく読み出すことができる。 By doing so, the read processing unit (210) can correctly read data written on the magnetic recording medium.
本開示の第4の態様によれば、磁気記録媒体の書き込み方法は、前記磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を保持回路から出力するステップと、前記磁気記録媒体を磁化させてデータを書き込むステップと、前記磁気記録媒体への書き込み完了後に、書き込んだ最後の極性に応じて、前記保持回路の出力を設定するステップと、前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行うステップと、を有する。 According to a fourth aspect of the present disclosure, a method for writing on a magnetic recording medium includes the step of outputting one of two binary holding voltages from a holding circuit according to an induced voltage generated during conveyance of the magnetic recording medium. , a step of magnetizing the magnetic recording medium and writing data; a step of setting an output of the holding circuit according to the last polarity of writing after completion of writing to the magnetic recording medium; and an output of the holding circuit. After setting, the method includes the step of reading the written data while conveying the magnetic recording medium in the opposite direction.
本開示の第5の態様によれば、プログラムは、磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を出力する保持回路(24)を有する書き込み装置(20)のコンピュータ(900)に、前記磁気記録媒体を磁化させてデータを書き込むステップと、前記磁気記録媒体への書き込み完了後に、書き込んだ最後の極性に応じて、前記保持回路の出力を設定するステップと、前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行うステップと、を実行させる。 According to the fifth aspect of the present disclosure, the program includes a writing device (20) having a holding circuit (24) that outputs one of two holding voltages according to an induced voltage generated during conveyance of a magnetic recording medium. ) of magnetizing the magnetic recording medium and writing data into the computer (900); and after completing writing to the magnetic recording medium, setting the output of the holding circuit according to the last polarity of writing. and, after setting the output of the holding circuit, reading the written data while transporting the magnetic recording medium in the opposite direction.
1 通行券処理機
10 筐体
11A 排出口
11B 挿入口
12 搬送路
20 書き込み装置
21 CPU
210 読出処理部
211 書込処理部
212 設定部
213 搬送制御部
22 読出磁気ヘッド
23 書込磁気ヘッド
24 保持回路
25 補正回路
26 搬送機構
260 搬送ローラ
261 搬送ベルト
262 モータ
T 通行券(磁気記録媒体)
1
210
Claims (5)
前記磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を出力する保持回路と、
前記磁気記録媒体を磁化させてデータを書き込む書込処理部と、
前記磁気記録媒体への書き込み完了後に、前記書込処理部が書き込んだ最後の極性に応じて、前記保持回路の出力を設定する設定部と、
前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行う読出処理部と、
を備える書き込み装置。 A writing device for a magnetic recording medium,
a holding circuit that outputs one of two holding voltages according to an induced voltage generated during conveyance of the magnetic recording medium;
a write processing unit that magnetizes the magnetic recording medium and writes data;
a setting unit that sets the output of the holding circuit according to the last polarity written by the write processing unit after completion of writing to the magnetic recording medium;
a read processing unit that reads the written data while conveying the magnetic recording medium in the opposite direction after setting the output of the holding circuit;
A writing device comprising:
前記設定部は、書き込んだ最後の極性を前記補正回路に入力し、
前記補正回路は、入力された前記極性を反転させて前記保持回路に出力させる、
請求項1に記載の書き込み装置。 further comprising a correction circuit that corrects the output of the holding circuit,
The setting section inputs the last written polarity to the correction circuit,
The correction circuit inverts the input polarity and outputs it to the holding circuit.
The writing device according to claim 1.
前記読出処理部は、前記ビット周期に基づいて前記データの読み出しを行う、
請求項1又は2に記載の書き込み装置。 The setting unit further obtains a bit period of data written to the magnetic recording medium,
The read processing unit reads the data based on the bit period.
The writing device according to claim 1 or 2.
前記磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を保持回路から出力するステップと、
前記磁気記録媒体を磁化させてデータを書き込むステップと、
前記磁気記録媒体への書き込み完了後に、書き込んだ最後の極性に応じて、前記保持回路の出力を設定するステップと、
前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行うステップと、
を有する書き込み方法。 A method for writing on a magnetic recording medium, the method comprising:
outputting one of two binary holding voltages from a holding circuit according to an induced voltage generated during conveyance of the magnetic recording medium;
magnetizing the magnetic recording medium to write data;
After completing writing to the magnetic recording medium, setting the output of the holding circuit according to the last polarity of writing;
After setting the output of the holding circuit, reading the written data while conveying the magnetic recording medium in the opposite direction;
A writing method with
前記磁気記録媒体を磁化させてデータを書き込むステップと、
前記磁気記録媒体への書き込み完了後に、書き込んだ最後の極性に応じて、前記保持回路の出力を設定するステップと、
前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行うステップと、
を実行させるプログラム。 A computer of a writing device has a holding circuit that outputs one of two holding voltages depending on the induced voltage generated during conveyance of the magnetic recording medium.
magnetizing the magnetic recording medium to write data;
After completing writing to the magnetic recording medium, setting the output of the holding circuit according to the last polarity of writing;
After setting the output of the holding circuit, reading the written data while conveying the magnetic recording medium in the opposite direction;
A program to run.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020057770A JP7425652B2 (en) | 2020-03-27 | 2020-03-27 | Writing device, writing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020057770A JP7425652B2 (en) | 2020-03-27 | 2020-03-27 | Writing device, writing method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021157559A JP2021157559A (en) | 2021-10-07 |
JP7425652B2 true JP7425652B2 (en) | 2024-01-31 |
Family
ID=77918546
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020057770A Active JP7425652B2 (en) | 2020-03-27 | 2020-03-27 | Writing device, writing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7425652B2 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003134804A (en) | 2001-10-24 | 2003-05-09 | Komatsu Powertron Kk | Input power following type converting circuit |
-
2020
- 2020-03-27 JP JP2020057770A patent/JP7425652B2/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003134804A (en) | 2001-10-24 | 2003-05-09 | Komatsu Powertron Kk | Input power following type converting circuit |
Also Published As
Publication number | Publication date |
---|---|
JP2021157559A (en) | 2021-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5274218A (en) | Magnetic recording method and circuit for toll road ticket | |
EP0903682A2 (en) | Magnetic card reader and method for determining the coercive force of a magnetic card therein | |
JP7425652B2 (en) | Writing device, writing method, and program | |
CN107430674B (en) | Card reader | |
JPS5818672B2 (en) | Card Hatsukousouchi | |
JP7190868B2 (en) | CARD PROCESSING DEVICE, TOLL COLLECTION MACHINE, CARD PROCESSING METHOD, PROGRAM | |
JP5624332B2 (en) | Magnetic information reader and method for controlling magnetic information reader | |
JP3536222B2 (en) | Magnetic reader | |
JP5779770B2 (en) | Method for determining coercive force of magnetic recording medium | |
JP2824323B2 (en) | Information reading method of toll road toll ticket | |
JP5358376B2 (en) | Magnetic head device of card reader and rereading method of card reader | |
JP4192030B2 (en) | Card balance transfer device, card balance transfer system, toll collection system using IC card | |
JP2550634B2 (en) | Magnetic card reader | |
JP3660406B2 (en) | Magnetic data processing apparatus and magnetic data processing method | |
JPH10149502A (en) | Information processor | |
JPS63222364A (en) | Reader/writer for portable recording medium | |
JP3663314B2 (en) | Recording medium detection apparatus and recording medium detection method | |
JP3962307B2 (en) | Booklet handling equipment | |
JP3864766B2 (en) | Card reader / writer | |
JP2772983B2 (en) | Method for determining reading direction of recording medium and recording processing apparatus for recording medium | |
JPH08147504A (en) | Magnetic medium processor | |
JP2020135429A (en) | Card processor, toll collection machine, card processing method, and program | |
JP2666173B2 (en) | Read / write method of magnetic ticket | |
KR870000374B1 (en) | Computer terminal for toll gate | |
JPH11328853A (en) | Magnetic medium reader/writer and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A625 | Written request for application examination (by other person) |
Free format text: JAPANESE INTERMEDIATE CODE: A625 Effective date: 20230127 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20231122 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20240109 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240119 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7425652 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |