JP7425652B2 - Writing device, writing method, and program - Google Patents

Writing device, writing method, and program Download PDF

Info

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
Application number
JP2020057770A
Other languages
Japanese (ja)
Other versions
JP2021157559A (en
Inventor
哲也 山本
敦志 飯田
重隆 福▲崎▼
佳寛 井上
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.)
Mitsubishi Heavy Industries Machinery Systems Co Ltd
Original Assignee
Mitsubishi Heavy Industries Machinery Systems 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 Mitsubishi Heavy Industries Machinery Systems Co Ltd filed Critical Mitsubishi Heavy Industries Machinery Systems Co Ltd
Priority to JP2020057770A priority Critical patent/JP7425652B2/en
Publication of JP2021157559A publication Critical patent/JP2021157559A/en
Application granted granted Critical
Publication of JP7425652B2 publication Critical patent/JP7425652B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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).

特開平10-326324号公報Japanese Patent Application Publication No. 10-326324

しかしながら、通行券処理機などに用いられるリーダ/ライタには様々な機種があり、「ポストアンブル」を記録しない機種も存在する。例えば、入口料金所の通行券処理機がこのようなリーダ/ライタを有していた場合、この通行券処理機により発行される通行券については、磁気ストライプの後端に「ポストアンブル」が記録されない。そうすると、出口料金所の通行券処理機において、書き込みの検証を行う際、磁気ストライプを逆方向に読み出すと、正常にデータが読み取れない場合がある。 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.

本開示の一実施形態に係る書き込み装置の機能構成を示す図である。FIG. 1 is a diagram showing a functional configuration of a writing device according to an embodiment of the present disclosure. 本開示の一実施形態に係る保持回路の機能を説明するための図である。FIG. 3 is a diagram for explaining the function of a holding circuit according to an embodiment of the present disclosure. 本開示の一実施形態に係る磁気記録媒体のデータ構成の一例を示す図である。1 is a diagram illustrating an example of a data structure of a magnetic recording medium according to an embodiment of the present disclosure. 本開示の一実施形態に係る読出処理部の機能を説明するための図である。FIG. 3 is a diagram for explaining functions of a read processing unit according to an embodiment of the present disclosure. 本開示の一実施形態に係る書き込み装置の処理の一例を示すフローチャートである。2 is a flowchart illustrating an example of processing of a writing device according to an embodiment of the present disclosure. 本開示の一実施形態に係る書込波形及び読出波形の一例を示す図である。FIG. 3 is a diagram illustrating an example of a write waveform and a read waveform according to an embodiment of the present disclosure. 本開示の一実施形態に係る書き込み装置のハードウェア構成の一例を示す図である。FIG. 1 is a diagram illustrating an example of a hardware configuration of a writing device according to an embodiment of the present disclosure.

以下、本開示の一実施形態に係る書き込み装置、書き込み方法、及びプログラムについて、図面を参照しながら説明する。 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 writing device 20 of this embodiment is provided, for example, in a housing 10 of a toll road ticket processing machine 1. The pass ticket processing machine 1 has a conveyance path 12 extending from the front side (+Y side) to the back side (-Y side) of the housing 10, and passes the pass ticket T in the forward direction (-Y direction) or Data is read and written on the magnetic stripe M of the pass T while being transported in the opposite direction (+Y direction).

通行券処理機1は、例えば、有料道路の入口料金所において、有料道路を利用する車両に通行券Tを発行する通行券発行機である。入口料金所に車両が到来すると、通行券処理機1は、筐体10内部の供給部(不図示)から新たな通行券Tを搬送路12に供給する。そうすると、通行券処理機1の書き込み装置20は、車両が有料道路へ入場した時刻及び地点(入口料金所)等を含む入口情報を通行券Tの磁気ストライプMに書き込んで、通行券処理機1の排出口11Aから排出する。 The toll ticket processing machine 1 is, for example, a toll ticket issuing machine that issues toll tickets T to vehicles using the toll road at an entrance toll gate of a toll road. When a vehicle arrives at the entrance toll gate, the ticket processing machine 1 supplies a new ticket T to the conveyance path 12 from a supply section (not shown) inside the housing 10. Then, the writing device 20 of the ticket processing machine 1 writes entrance information including the time and point (entrance toll gate) when the vehicle entered the toll road onto the magnetic stripe M of the ticket T. It is discharged from the discharge port 11A.

また、通行券処理機1は、例えば、有料道路の出口料金所において、車両の搭乗者により操作される料金自動収受機(不図示)、又は収受員により操作される料金収受機(不図示)に内蔵又は外付けされる通行券処理機である。出口料金所に車両が到来すると、通行券Tは通行券処理機1の挿入口11Bから挿入されて、搬送路12内を奥側(-Y側)に向かって搬送される。そうすると、通行券処理機1の書き込み装置20は、通行券Tの磁気ストライプMから入口情報を読み出すとともに、利用者が退出した時刻及び地点(出口料金所)等を含む出口情報を磁気ストライプMに記録して、通行券Tを筐体内10の回収ボックス(不図示)に回収する。 The ticket processing machine 1 may be, for example, an automatic toll collection machine (not shown) operated by a passenger of a vehicle or a toll collection machine (not shown) operated by a collector at an exit toll gate of a toll road. It is a pass ticket processing machine that is either built-in or externally attached. When a vehicle arrives at the exit toll gate, the ticket T is inserted through the insertion slot 11B of the ticket processing machine 1 and is transported inside the transport path 12 toward the back side (-Y side). Then, the writing device 20 of the ticket processing machine 1 reads the entrance information from the magnetic stripe M of the ticket T, and also writes the exit information including the time and point (exit toll gate) of the user's exit to the magnetic stripe M. The ticket T is recorded and collected in a collection box (not shown) in the housing 10.

なお、本実施形態において、通行券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 writing device 20 includes a CPU 21 , a read magnetic head 22 , a write magnetic head 23 , a holding circuit 24 , a correction circuit 25 , and a transport mechanism 26 . In this embodiment, the writing device 20 includes one read magnetic head 22 and one write magnetic head 23.

読出磁気ヘッド22は、通行券Tを搬送路12に沿って搬送する際に、磁気ストライプMに書き込まれた極性のパターンにより生じる誘起電圧を検出して、保持回路24に出力する。 The read magnetic head 22 detects the induced voltage generated by the polar pattern written on the magnetic stripe M when the pass T is conveyed along the conveyance path 12, and outputs it to the holding circuit 24.

書込磁気ヘッド23は、読出磁気ヘッド22よりも搬送路12の奥側(-Y側)に設けられ、CPU21の指令に基づいて、通行券Tの磁気ストライプMを磁化させてデータを記録する。 The write magnetic head 23 is provided on the deeper side (-Y side) of the transport path 12 than the read magnetic head 22, and records data by magnetizing the magnetic stripe M of the pass T based on a command from the CPU 21. .

保持回路24は、読出磁気ヘッド22により検出された誘起電圧に応じて2値の何れかの保持電圧をCPU21に出力する。 The holding circuit 24 outputs one of the binary holding voltages to the CPU 21 according to the induced voltage detected by the read magnetic head 22 .

図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 magnetic head 22 is first amplified by the holding circuit 24. As shown in FIG. Next, as shown in FIG. 2(b), the holding circuit 24 sets the output to "HIGH" when the amplified voltage exceeds the first threshold value +X, and thereafter sets the output to "HIGH". keep it as it is. Further, the holding circuit 24 sets the output to "LOW" when the amplified voltage becomes equal to or less than the second threshold value -X, and thereafter holds the output as "LOW". The holding circuit 24 shapes the voltage detected by the read magnetic head 22 into a binarized waveform as described above, and outputs the binarized waveform to the CPU 21 .

補正回路25は、CPU21の指令に基づいて、書込磁気ヘッド23が書き込んだ最後の極性を反転させて保持回路24に出力させる。 Based on a command from the CPU 21, the correction circuit 25 inverts the last polarity written by the write magnetic head 23 and outputs it to the holding circuit 24.

搬送機構26は、通行券Tを搬送路12の奥側(-Y側)又は手前側(+Y側)に搬送する。搬送機構26は、搬送ローラ260と、搬送ベルト261と、モータ262とを有している。モータ262は、CPU21からの指令に基づいて回転動作する。そうすると、モータ262の回転駆動力が搬送ローラ260に伝達され、搬送ベルト261の通行券Tとの接触面を搬送路12の奥側又は手前側に移動させる。これにより、搬送機構26は、通行券Tを搬送路12の奥側又は手前側に搬送させる。 The conveyance mechanism 26 conveys the pass T to the back side (-Y side) or the front side (+Y side) of the conveyance path 12. The conveyance mechanism 26 includes a conveyance roller 260, a conveyance belt 261, and a motor 262. The motor 262 rotates based on instructions from the CPU 21. Then, the rotational driving force of the motor 262 is transmitted to the conveyance roller 260, and the contact surface of the conveyance belt 261 with the pass ticket T is moved to the back side or the front side of the conveyance path 12. Thereby, the conveyance mechanism 26 conveys the pass T to the back side or the front side of the conveyance path 12.

CPU21は、所定のプロセッサに従って動作することにより、書き込み装置20の機能を実現するプロセッサである。CPU21は、書き込み装置20の機能部として、読出処理部210、書込処理部211、設定部212、及び搬送制御部213を有している。 The CPU 21 is a processor that realizes the functions of the writing device 20 by operating according to a predetermined processor. The CPU 21 includes a read processing section 210, a write processing section 211, a setting section 212, and a transport control section 213 as functional sections of the writing device 20.

読出処理部210は、保持回路24から出力された保持電圧に基づいて、通行券Tの磁気ストライプMに書き込まれたデータを取得する。また、読出処理部210は、後述の設定部212による保持回路24の出力設定後に、逆方向(+Y方向)に通行券Tを搬送しながら、磁気ストライプMに書き込まれたデータの読み出しを行う。 The read processing unit 210 acquires the data written on the magnetic stripe M of the pass T based on the holding voltage output from the holding circuit 24. Further, the read processing unit 210 reads the data written on the magnetic stripe M while conveying the pass T in the reverse direction (+Y direction) after the setting unit 212 (described later) sets the output of the holding circuit 24.

図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 read processing unit 210 reads data (“1” or “0”) recorded on the magnetic stripe M based on the read waveform (waveform after amplification and shaping) output from the holding circuit 24. Note that the recording method on the magnetic stripe M is not limited to the FM method, but may also be an MFM (Modified Frequency Modulation) method, an NRZ (Non-Return-to-Zero) method, or the like.

書込処理部211は、書込磁気ヘッド23を通じて、通行券Tの磁気ストライプMにデータを記録する。具体的には、書込処理部211は、書き込むデータに応じて書込磁気ヘッド23のコイルに流れる信号電流の向きを変化させて、書込磁気ヘッド23を磁化させる。そうすると、書込磁気ヘッド23に発生した磁界によって近接する磁気ストライプMに1ビットずつ「HIGH」又は「LOW」(若しくは、「N極」又は「S極」)で示される極性が書き込まれる。この極性反転の周波数により、図4に示すような2値の値(「1」又は「0」)を表現することができる。なお、書込処理部211は、予め設定されたビット周期、又は、読出処理部210が読み取ったビット周期でデータの書き込みを行う。 The write processing unit 211 records data on the magnetic stripe M of the pass T through the write magnetic head 23. Specifically, the write processing unit 211 magnetizes the write magnetic head 23 by changing the direction of the signal current flowing through the coil of the write magnetic head 23 according to the data to be written. Then, the polarity indicated by "HIGH" or "LOW" (or "N pole" or "S pole") is written into the adjacent magnetic stripe M bit by bit by the magnetic field generated by the write magnetic head 23. Depending on the frequency of this polarity reversal, a binary value (“1” or “0”) as shown in FIG. 4 can be expressed. Note that the write processing unit 211 writes data at a preset bit cycle or at a bit cycle read by the read processing unit 210.

設定部212は、通行券Tへの書き込み完了後に、書込処理部211が書き込んだ最後の極性に応じて、保持回路24の出力を設定する。具体的には、設定部212は、書込処理部211が書き込んだ最後の極性を示す値を補正回路25に入力する。そうすると、次の読み出し開始時における保持回路24の出力は、補正回路25により最後の極性を反転させたものに補正される。 After the writing to the pass T is completed, the setting unit 212 sets the output of the holding circuit 24 according to the last polarity written by the writing processing unit 211. Specifically, the setting unit 212 inputs the value indicating the last polarity written by the write processing unit 211 to the correction circuit 25. Then, the output of the holding circuit 24 at the start of the next readout is corrected by the correction circuit 25 to one in which the last polarity is inverted.

搬送制御部213は、搬送機構26の動作を制御する。新たな通行券Tに入口情報の記録を行う場合、又は、入口情報が記録された通行券Tが挿入口11Bに挿入された場合、搬送制御部213は搬送機構26に対し、通行券Tを順方向(図1の-Y方向)に搬送する指令を出力する。また、書込処理部211によるデータの書き込みが完了すると、搬送制御部213は、通行券Tを逆方向(図1の+Y方向)に搬送する指令を出力する。 The transport control unit 213 controls the operation of the transport mechanism 26. When recording entrance information on a new ticket T, or when a ticket T with entrance information recorded is inserted into the insertion slot 11B, the transport control unit 213 instructs the transport mechanism 26 to insert the ticket T. A command to transport in the forward direction (-Y direction in FIG. 1) is output. Further, when the write processing unit 211 completes writing the data, the conveyance control unit 213 outputs a command to convey the pass T in the opposite direction (+Y direction in FIG. 1).

(書き込み装置の処理フロー)
図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 writing device 20 according to the present embodiment will be described in detail with reference to FIG. 5. Here, an example will be described in which the writing device 20 of the ticket processing machine 1 provided at the exit toll gate reads entrance information and writes exit information.

通行券処理機1の挿入口11Bに通行券Tが挿入されると、書き込み装置20の搬送制御部213は、図5に示すように通行券Tを順方向(図1の-Y側)に搬送するように搬送機構26を制御する(ステップS01)。 When the pass T is inserted into the insertion slot 11B of the pass processing machine 1, the conveyance control unit 213 of the writing device 20 moves the pass T in the forward direction (-Y side in FIG. 1) as shown in FIG. The transport mechanism 26 is controlled to transport (step S01).

次に、読出処理部210は、通行券Tの磁気ストライプMから、順方向にデータ(入口情報)を読み出す(ステップS02)。 Next, the read processing unit 210 reads data (entrance information) from the magnetic stripe M of the pass T in the forward direction (step S02).

図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 write processing unit 211, (b) is an example of a read waveform of data read by the read processing unit 210, and (c) is an example of a read waveform in the prior art. A comparative example is shown.
The data recorded on the magnetic stripe M is input to the CPU 21 (read processing section 210) through the read magnetic head 22 and the holding circuit 24 as a read waveform shown in FIG. 6(b). The read processing unit 210 reads data (“1” or “0”) based on this read waveform. Further, when the read processing unit 210 completes data reading to the rear end of the magnetic stripe M (+Y side end in FIG. 3), the holding circuit 24 stores the last read data as shown in FIG. The polarity of the read data (last read polarity P1) remains retained. Note that in the example of FIG. 6(b), the final read polarity P1 is "HIGH".

次に、書込処理部211は、磁気ストライプMに新たなデータ(出口情報)を書き込む(ステップS03)。 Next, the write processing unit 211 writes new data (exit information) to the magnetic stripe M (step S03).

書込処理部211によるデータの書き込みが完了すると、搬送制御部213は、通行券Tの搬送を停止させる(ステップS04)。 When the write processing unit 211 completes data writing, the conveyance control unit 213 stops conveyance of the pass T (step S04).

また、設定部212は、書込処理部211が書き込んだ最後の極性(最後の書込極性P2)、及びビット周期を取得する(ステップS05)。 Further, the setting unit 212 obtains the last polarity written by the write processing unit 211 (last write polarity P2) and the bit period (step S05).

次に、設定部212は、最後の書込極性P2に基づいて保持回路24の出力を補正する(ステップS06)。上述のように、保持回路24には、読出磁気ヘッド22を通じて読み出した最後の読出極性P1が保持されたままとなっている。設定部212は、補正回路25に最後の書込極性P2を示す値を入力する。そうすると、補正回路25は、最後の書込極性P2を反転させて保持回路24に出力させる。図6の(b)の例では、最後の書込極性P2は「HIGH」であるので、補正回路25は、保持回路24に「LOW」を出力させる。 Next, the setting unit 212 corrects the output of the holding circuit 24 based on the last write polarity P2 (step S06). As described above, the last read polarity P1 read through the read magnetic head 22 is still held in the holding circuit 24. The setting unit 212 inputs a value indicating the last write polarity P2 to the correction circuit 25. Then, the correction circuit 25 inverts the last write polarity P2 and outputs it to the holding circuit 24. In the example of FIG. 6B, the last write polarity P2 is "HIGH", so the correction circuit 25 causes the holding circuit 24 to output "LOW".

設定部212による設定が完了すると、搬送制御部213は、通行券Tを逆方向(図1の+Y側)に搬送するように搬送機構26を制御する(ステップS07)。 When the setting by the setting unit 212 is completed, the transport control unit 213 controls the transport mechanism 26 to transport the pass T in the opposite direction (+Y side in FIG. 1) (step S07).

次に、読出処理部210は、データ(出口情報)が正しく書き込まれたか検証するために、通行券Tの磁気ストライプMから、逆方向にデータを読み出す(ステップS08)。このとき、読出処理部210は、ステップS05において設定部212が取得したビット周期に基づいて、データの読み出しを行う。 Next, the read processing unit 210 reads data in the reverse direction from the magnetic stripe M of the pass T in order to verify whether the data (exit information) has been written correctly (step S08). At this time, the read processing unit 210 reads data based on the bit period acquired by the setting unit 212 in step S05.

例えば、従来の技術では、図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 circuit 24 according to the present embodiment has the last write polarity ("HIGH") reversed ("LOW") by the setting unit 212 and the correction circuit 25. ) is set to output. Therefore, the read processing unit 210 can detect the start edge of the first bit at the rear end of the magnetic stripe M, so that data can be read normally even when reading in the reverse direction.

なお、CPU21は、読出処理部210により読み出されたデータに基づいて、磁気ストライプMに正常にデータが記録されたかを確認した後、通行券Tを回収ボックス(不図示)に回収する。 Note that the CPU 21 collects the pass T in a collection box (not shown) after confirming whether data has been properly recorded on the magnetic stripe M based on the data read by the read processing unit 210.

通行券処理機1の書き込み装置20は、通行券Tが挿入される度に、図5の一連の処理を実行する。 The writing device 20 of the ticket processing machine 1 executes the series of processes shown in FIG. 5 every time a ticket T is inserted.

また、書き込み装置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 writing device 20 similarly executes the series of processes shown in FIG. 5 even when the ticket processing machine 1 is a ticket issuing machine installed at an entrance toll gate. At this time, the conveyance control unit 213 conveys the pass ticket T supplied from the supply unit (not shown) to the back side of the conveyance path 12 (step S01). Further, when the read processing unit 210 reads data from the magnetic stripe M of the pass T (step S02) and confirms that the pass T is a new ticket, the write processing unit 211 reads data from the magnetic stripe M of the pass T. Data (entrance information) is written (step S03). Further, when data is read in the reverse direction from the magnetic stripe M by the read processing unit 210 (step S08), the CPU 21 checks whether data is normally recorded on the magnetic stripe M based on the read data. , the ticket T is discharged from the discharge port 11A. Other processing is the same as that of the writing device 20 at the exit tollgate.

(書き込み装置のハードウェア構成)
図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 writing device 20 according to this embodiment will be described below with reference to FIG. 7.

コンピュータ900は、プロセッサ901、主記憶装置902、補助記憶装置903、インタフェース904を備える。 The computer 900 includes a processor 901, a main storage device 902, an auxiliary storage device 903, and an interface 904.

上述の書き込み装置20は、コンピュータ900に実装される。そして、上述した各機能部の動作は、プログラムの形式で補助記憶装置903に記憶されている。プロセッサ901は、プログラムを補助記憶装置903から読み出して主記憶装置902に展開し、当該プログラムに従って上記処理を実行する。また、プロセッサ901は、プログラムに従って、上述した各記憶部に対応する記憶領域を主記憶装置902に確保する。プロセッサ901の例としては、CPU(Central Processing Unit)、GPU(Graphic Processing Unit)、マイクロプロセッサなどが挙げられる。 The above-described writing device 20 is installed in a computer 900. The operations of each functional unit described above are stored in the auxiliary storage device 903 in the form of a program. The processor 901 reads the program from the auxiliary storage device 903, expands it to the main storage device 902, and executes the above processing according to the program. Further, the processor 901 reserves storage areas corresponding to each of the above-mentioned storage units in the main storage device 902 according to the program. Examples of the processor 901 include a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), a microprocessor, and the like.

プログラムは、コンピュータ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 computer 900 performs. For example, the program may function in combination with another program already stored in the auxiliary storage device 903 or with another program installed in another device. Note that in other embodiments, the computer 900 may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to or in place of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, part or all of the functions realized by the processor 901 may be realized by the integrated circuit. Such an integrated circuit is also included as an example of a processor.

補助記憶装置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 auxiliary storage device 903 include HDD (Hard Disk Drive), SSD (Solid State Drive), magnetic disk, magneto-optical disk, CD-ROM (Compact Disc Read Only Memory), and DVD-ROM (Digital Versatile Disc Read Only). Memory), semiconductor memory, etc. Auxiliary storage device 903 may be an internal medium directly connected to the bus of computer 900, or may be an external storage device 910 connected to computer 900 via interface 904 or a communication line. Furthermore, when this program is distributed to the computer 900 via a communication line, the computer 900 that received the distribution may develop the program in the main storage device 902 and execute the above processing. In at least one embodiment, secondary storage 903 is a non-transitory tangible storage medium.

また、当該プログラムは、前述した機能の一部を実現するためのものであってもよい。さらに、当該プログラムは、前述した機能を補助記憶装置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 auxiliary storage device 903.

(作用効果)
以上のように、本実施形態に係る書き込み装置20は、設定部212が最後の書込極性P2に応じて保持回路24の出力を設定する。このようにすることで、書き込み装置20は、ポストアンブルが記録されていない通行券Tであっても、データ書き込み後の通行券Tを逆方向(図1の+Y方向)に搬送しながら書き込みが正常に行われたか検証する際に、正しくデータを読み出すことができる。これにより、ポストアンブルを記録できない既存の通行券処理機を継続して使用することができるので、料金所への機器設置コストの増加を抑制することができる。
(effect)
As described above, in the writing device 20 according to this embodiment, the setting unit 212 sets the output of the holding circuit 24 according to the last writing polarity P2. By doing so, the writing device 20 can write data while transporting the ticket T in the opposite direction (+Y direction in FIG. 1) after data has been written, even if the postamble is not recorded on the ticket T. Data can be read correctly when verifying whether the data has been correctly executed. As a result, existing ticket processing machines that cannot record postambles can be continued to be used, so it is possible to suppress an increase in equipment installation costs at tollgates.

また、設定部212は、補正回路25に最後の書込極性P2を入力し、補正回路25は保持回路24に最後の書込極性P2を反転して出力させる。このようにすることで、読出処理部210が通行券Tの磁気ストライプMを逆方向に読み出すときに、磁気ストライプM後端の1ビット目から正しくデータを読み出すことができる。 Further, the setting unit 212 inputs the last write polarity P2 to the correction circuit 25, and the correction circuit 25 causes the holding circuit 24 to invert and output the last write polarity P2. By doing so, when the read processing unit 210 reads the magnetic stripe M of the ticket T in the reverse direction, it is possible to correctly read data from the first bit at the rear end of the magnetic stripe M.

また、設定部212は、書込処理部211が書き込んだデータのビット周期を取得し、読出処理部210は、このビット周期に基づいてデータの読み出しを行う。このようにすることで、読出処理部210は、磁気ストライプMに書き込まれたデータを正しく読み出すことができる。 Further, the setting unit 212 obtains the bit cycle of the data written by the write processing unit 211, and the read processing unit 210 reads the data based on this bit cycle. By doing so, the read processing unit 210 can correctly read the data written on the magnetic stripe M.

また、本実施形態に係る書き込み装置20は、読出磁気ヘッド22を一つのみ有しており、書き込みデータの検証を行う際は、通行券Tを逆方向(図1の+Y方向)に搬送させながらデータの読み出しを行う。このようにすることで、書き込み装置20は、書込磁気ヘッド23の奥側(図1の-Y側)に書き込みデータ検証用の読出磁気ヘッドを追加する必要がない。この結果、書き込み装置20の製造コストを低減することができるとともに、書き込み装置20が大型化することを抑制することができる。 Furthermore, the writing device 20 according to the present embodiment has only one reading magnetic head 22, and when verifying written data, the writing device 20 has only one reading magnetic head 22. Read data while By doing so, the writing device 20 does not need to add a read magnetic head for verifying written data on the back side of the write magnetic head 23 (-Y side in FIG. 1). As a result, the manufacturing cost of the writing device 20 can be reduced, and the writing device 20 can be prevented from increasing in size.

以上、図面を参照して第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 writing device 20 is provided in the ticket processing machine 1, but the writing device 20 is not limited to this. In other embodiments, the writing device 20 is provided in the transportation It may also be provided within the ticket issuing machine. Further, the writing device 20 may be installed in a processing device for prepaid cards, point cards, etc. installed in a retail store or the like. In this case, the magnetic recording medium is, for example, a transportation ticket, a prepaid card, a point card, or the like.

(付記)
上述の実施形態に記載の書き込み装置20、書き込み方法、及び書き込み装置20のプログラムは、例えば以下のように把握される。
(Additional note)
The writing device 20, the writing method, and the program of the writing device 20 described in the above-described embodiment can be understood, for example, as follows.

本開示の第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 Passport processing machine 10 Housing 11A Discharge port 11B Insertion port 12 Conveyance path 20 Writing device 21 CPU
210 Read processing section 211 Write processing section 212 Setting section 213 Conveyance control section 22 Read magnetic head 23 Write magnetic head 24 Holding circuit 25 Correction circuit 26 Conveyance mechanism 260 Conveyance roller 261 Conveyance belt 262 Motor T Pass (magnetic recording medium)

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
磁気記録媒体の搬送中に生じた誘起電圧に応じて2値のいずれかの保持電圧を出力する保持回路を有する書き込み装置のコンピュータに、
前記磁気記録媒体を磁化させてデータを書き込むステップと、
前記磁気記録媒体への書き込み完了後に、書き込んだ最後の極性に応じて、前記保持回路の出力を設定するステップと、
前記保持回路の出力設定後に、逆方向に前記磁気記録媒体を搬送しながら書き込まれた前記データの読み出しを行うステップと、
を実行させるプログラム。
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.
JP2020057770A 2020-03-27 2020-03-27 Writing device, writing method, and program Active JP7425652B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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