JP7204438B2 - Automatic ticket gate, passage control method, and program - Google Patents
Automatic ticket gate, passage control method, and program Download PDFInfo
- Publication number
- JP7204438B2 JP7204438B2 JP2018217269A JP2018217269A JP7204438B2 JP 7204438 B2 JP7204438 B2 JP 7204438B2 JP 2018217269 A JP2018217269 A JP 2018217269A JP 2018217269 A JP2018217269 A JP 2018217269A JP 7204438 B2 JP7204438 B2 JP 7204438B2
- Authority
- JP
- Japan
- Prior art keywords
- update flag
- data area
- information
- area
- writing
- 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
Images
Landscapes
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Description
本発明の実施形態は、自動改札機、通過管理方法、およびプログラムに関する。 TECHNICAL FIELD Embodiments of the present invention relate to automatic ticket gates, passage management methods, and programs.
自動改札機は、非接触通信を行うカード型の電子装置がリーダライタ面に翳されることで、電子装置のメモリから情報を読み取り、所定処理を行った後に駅の情報や時刻などを上書き処理によりメモリに書き込む。電子装置の性能が高い場合、一括で書き込み可能なサイズが大きいが、電子装置の性能が低い場合、一括で書き込み可能なサイズが小さいため、複数回書き込みする必要がある。この場合、上書き処理が途中で終了してしまうと、電子装置のメモリに保存されている情報が破損してしまい、再び自動改札機に翳しても情報の読み取りができなくなり、エラーとなる。このため、利用者は、係員のところに行って処理をしてもらう必要があった。 Automatic ticket gates read information from the memory of the electronic device by holding a card-type electronic device that performs contactless communication over the reader/writer surface, perform predetermined processing, and overwrite station information and time. to write to memory. If the performance of the electronic device is high, the batch writable size is large, but if the electronic device has low performance, the batch writable size is small, so it is necessary to write multiple times. In this case, if the overwriting process ends in the middle, the information stored in the memory of the electronic device will be damaged, and even if the device is held over the automatic ticket gate again, the information cannot be read, resulting in an error. For this reason, the user had to go to the person in charge and have it processed.
本発明が解決しようとする課題は、利用者や係員の作業負担の軽減に貢献することができる自動改札機、通過管理方法、およびプログラムを提供することである。 The problem to be solved by the present invention is to provide an automatic ticket gate, a passage management method, and a program that can contribute to reducing the work burden on users and staff.
実施形態の自動改札機は、通信部と、決定部と、書込部とを持つ。前記通信部は、読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信する。前記決定部は、前記通信部が前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定する。前記書込部は、前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記決定部により前記読み取り面と決定されていない方のデータ領域に所定情報を書き込む。前記書込部は、前記第1データ領域に情報を書き込む場合、前記第1方向において前記第1データ領域の直前と直後の第1更新フラグ領域に第1更新フラグ情報を書き込み、前記第2データ領域に情報を書き込む場合、前記第1方向において前記第2データ領域の直前と直後の第2更新フラグ領域に前記第1更新フラグ情報と異なる第2更新フラグ情報を書き込む。前記書込部は、記第1更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報および前記第2更新フラグ情報と異なる第3更新フラグ情報を、前記第1更新フラグ領域に書き込み、前記第2更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報、前記第2更新フラグ情報、および第3更新フラグ情報と異なる第4更新フラグ情報を、前記第2更新フラグ領域に書き込む。
An automatic ticket gate of an embodiment has a communication section, a determination section, and a writing section. The communication unit communicates with an electronic device in which a reading direction and a writing direction are the same in a first direction, and includes a first data area and a second data area after the first data area in the first direction. do. The determination unit determines a reading surface of the first data area or the second data area based on the information read from the electronic device by the communication unit. The writing unit writes predetermined information in the data area not determined as the reading surface by the determination unit when passage is permitted based on information read from the data area determined as the reading surface. . When writing information to the first data area, the writing unit writes first update flag information to first update flag areas immediately before and after the first data area in the first direction, and writes the second data area. When writing information in the area, second update flag information different from the first update flag information is written in the second update flag areas immediately before and after the second data area in the first direction. When the first update flag information is written in the first update flag area, the writing unit writes third update flag information different from the first update flag information and the second update flag information to the first update flag area. 1 update flag area, and when the second update flag information is written in the second update flag area, a second update flag information different from the first update flag information, the second update flag information, and the third
以下、実施形態の自動改札機、通過管理方法、およびプログラムを、図面を参照して説明する。 An automatic ticket gate, passage control method, and program according to embodiments will be described below with reference to the drawings.
(第1実施形態)
図1は、第1実施形態の電子装置の一例を示す平面図である。電子装置は、例えば、基材にRFID(Radio Frequency Identifier)タグが漉き込まれたカード媒体1である。カード形状に限られず、実施形態の電子装置は、さまざまな形状の基材にRFIDタグが漉き込まれたものであってよい。
(First embodiment)
1 is a plan view showing an example of an electronic device according to a first embodiment; FIG. The electronic device is, for example, a
カード媒体1は、例えば、二次元コード3が印刷された表示面2aを有する基材2と、基材2に漉き込まれたRFIDタグ4とを備える。二次元コード3にはRFIDタグ4のタグIDが記録されており、RFIDタグ4の読み書きをおこなうためには二次元コード3を先に読み取る必要がある。二次元コード3は、「表示オブジェクト」の一例である。二次元コード3は、基材2の表示面2aに印刷された光読取りコードである。利用者は、カード媒体1の外見から二次元コード3を目視で確認できる。二次元コード3の具体例としては、例えばQRコード(株式会社デンソーウェーブの登録商標)等が挙げられる。
The
二次元コード3には、乗車券の種別や効力を示す効力情報などがエンコードされていてもよい。エンコードとは、情報を、符号化、記号化、その他の手法により、人が内容を直接的に認識できない状態に変換することをいう。また、効力情報とは、例えば以下のような情報であり、乗車券の利用可能な範囲を規定する情報である。なお、二次元コード3に代えて、バーコードその他の、情報がエンコードされた任意の種類の表示オブジェクトが印刷されてもよい。また、乗車券は、1回の乗車についての効力を有する通常券であってもよいし、利用日において何度も利用可能な1日乗車券などであってもよい。
(1)一日乗車券
例:〇〇鉄道の全ての区間を、回数の制限なく、一日利用可能
(2)利用可能な区間および日付
例:〇〇駅~××駅までの区間を、12/1~12/31まで利用可能
(3)運賃上限および利用可能な日付
例:運賃500円までの区間を、12/1~12/31まで利用可能
The two-
(1) One-day ticket Example: All sections of XX railway can be used for one day without restrictions on the number of times (2) Available sections and dates Example: Section from XX station to XX station, Available from 12/1 to 12/31 (3) Maximum fares and available dates Example: Sections with fares up to 500 yen can be used from 12/1 to 12/31
RFIDタグ4は、チップおよびアンテナを含む。RFIDタグ4は、基材2に漉き込まれることにより、カード媒体1の内部に内蔵されている。RFIDタグ4のチップは、例えば、パッシブタイプのIC(Integrated Circuit)チップである。RFIDタグ4のチップは、RFID技術によって、自動改札機のリーダライタ部との間で情報を送受信する。RFIDタグ4のチップによる処理は、例えば、自動改札機のリーダライタからRFIDタグ4のアンテナを介して受信したコマンドに応答するコマンドレスポンス方式で行われる。
RFIDタグ4のチップの制御回路は、自動改札機のリーダライタから指示されたデータをメモリ4aに書き込んだり、メモリ4aから読み出したデータを、アンテナを介して自動改札機のリーダライタに送信したりする。
The control circuit of the chip of the
RFIDタグ4のチップのメモリ4aは、例えば、EEPROM(Electrically Erasable Programmable Read-Only Memory)等の読書き可能な不揮発性記憶媒体を含む。メモリ4aには、例えば、カード媒体1の利用記録が、自動改札機のリーダライタによって書き込まれる。カード媒体1の利用記録とは、例えば、利用駅(入場駅、出場駅)、利用日時(入場日時、出場日時)等の情報である。
The
図2は、カード媒体1のメモリ4aのデータ領域4bの一例を示す図である。データ領域4bにおける読み取り方向と書き込み方向は同一であり、第1方向d1である。
FIG. 2 is a diagram showing an example of the
データ領域4bは、2つのデータ領域XとYとを含む。データ領域XとYには、それぞれカード媒体1の利用記録が交互に書き込まれる。データ領域Xの直前には更新フラグ領域X1が、データ領域Xの直後には更新フラグ領域X1が、それぞれ設定されている。データ領域Yの直前には更新フラグ領域Y1が、データ領域Yの直後には更新フラグ領域Y1が、それぞれ設定されている。
データ領域4bにおいて、データ領域XとYの位置、更新フラグ領域X1,X2,Y1,Y2の位置は、それぞれアドレスで管理されている。例えば、更新フラグ領域X1の先頭位置はアドレスP1であり、更新フラグ領域Y1の先頭位置はアドレスP2である。アドレスP1を指定して、更新フラグ領域X1の先頭から情報を書き込むことより、「更新フラグ領域X1+データ領域X+更新フラグ領域X2」に対して情報を書き込むことができる。また、アドレスP2を指定して、更新フラグ領域Y1の先頭から情報を書き込むことより、「更新フラグ領域Y1+データ領域Y+更新フラグ領域Y2」に対して情報を書き込むことができる。
In the
図3は、第1実施形態の自動改札機100を上方から見た図である。自動改札機100は、通路を挟んで対向配置される主機200と従機300とを備える。主機200は、例えば、リーダライタ部210と、上面表示部220と、正面表示部230と、扉部240および扉部250と、制御部260とを備える。また、従機300は、リーダライタ部310と、上面表示部320と、正面表示部330と、扉部340および350とを備える。
FIG. 3 is a top view of the
主機200のリーダライタ部210は、図3のa方向に通過しようとする利用者によって翳されたカード媒体1に記憶された情報を読み取って、読み取った情報を制御部260に送信する。上面表示部220は、制御部260によって処理された結果を表示する。正面表示部230は、a方向に通過可能であるか否かを示すマークや図形、文字等を表示する。正面表示部230の表示内容は、制御部260によって決定される。図3の例では、自動改札機100は、a方向の通過のみ許可する動作モード(第1の動作モード)に設定されているため、主機200の正面表示部230は、通過を許可することを示すマークを表示している。制御部260は、主機200と従機300の各部を制御する。
The reader/
一方、従機300のリーダライタ部310は、b方向に通過しようとする利用者によって翳されたカード媒体1に記憶された情報を読み取って、読み取った情報を主機200の制御部260に送信する。上面表示部320は、リーダライタ部310にカード媒体1が翳された場合に、主機200の制御部260によって処理された結果を表示する。正面表示部330は、b方向に通過可能であるか否かを示すマークや図形、文字等を表示する。正面表示部330の表示内容は、主機200の制御部260によって決定される。図3の例では、自動改札機100は、a方向の通過のみ許可する第1の動作モードに設定されているため、従機300の正面表示部330は、通過を禁止することを示すマークを表示している。
On the other hand, the reader/
リーダライタ部210および310は、例えば、リーダライタ面210aおよび310aに翳されたカード媒体1と通信する。リーダライタ部210および310は、カード媒体1から各種情報を読み取る読み取り処理を実行する。例えば、リーダライタ部210および310は、カードIDと利用記録情報を取得する。カードIDとは、カード媒体1を識別する識別情報である。利用記録情報は、上述した通り、例えば利用駅、利用日時等の情報を含むカード媒体1の利用記録を示す情報である。
The reader/
また、リーダライタ部210および310は、リーダライタ面210aおよび310aに翳されたカード媒体1に対して、情報の書き込み処理を実行する。リーダライタ部210および310において、1回の書き込みで書き込めるデータ長さが決められている。リーダライタ部210および310は、カード媒体1のデータ領域XやYに情報を書き込む場合、情報を分割して、複数回に分けて全ての情報を書き込む。このため、書き込み処理の途中で、カード媒体がリーダライタ面210aおよび310aから離されると、書き込み処理が途中で終了してしまうため、カード媒体1に書き込まれた情報が破損する。
In addition, the reader/
制御部260は、自動改札機100が第1の動作モードに設定されている場合には、扉部250および350を開放状態に維持すると共に、扉部240および340を開放状態または閉止状態に制御することで、a方向の利用者の通過を許可または禁止する。また、制御部260は、自動改札機100が図1のb方向の通過のみ許可する動作モード(第2の動作モード)に設定されている場合には、扉部240および340を開放状態に維持すると共に、扉部250および350を開放状態または閉止状態に制御することで、b方向の利用者の通過を許可または禁止する。
When the
主機200の制御部260は、リーダライタ部210あるいはリーダライタ部310により読み取られた情報に基づいて、通過の可否を判定し、扉部240,250,340,350を制御する。
The
図4は、第1実施形態の自動改札機100の構成の一例を示す図である。以下、説明簡略化のため、主機200の各構成について説明し、従機300の構成についての説明を省略する。
FIG. 4 is a diagram showing an example of the configuration of the
リーダライタ部210は、リーダライタ211と、エンコード/デコード部212とを含む。リーダライタ211は、リーダライタ面210aに翳されたカード媒体1と通信する。リーダライタ211は、例えばアンテナを備え、13.56[MHz]等のISM(Industry-Science-Medical)帯の周波数帯域を利用して、カード媒体1と無線通信を行う。
The reader/
エンコード/デコード部212は、例えば、リーダライタ211によってカード媒体1から読み取られた情報を復号して制御部260に出力すると共に、制御部260により指示された情報を暗号化してリーダライタ211に出力する。リーダライタ211は、エンコード/デコード部212から入力された情報をカード媒体1に書き込む。
For example, the encoding/
記憶部270は、例えば、RAM(Random Access Memory)、ROM(Read Only Memory)、HDD(Hard Disk Drive)などによって実現される。記憶部270は、プロセッサが実行するプログラムを格納する他、駅情報271や、運賃テーブル272等を格納する。
The
制御部260は、例えば、決定部261と、通過可否判定部262と、通過制御部263と、リーダライタ制御部264と、通信制御部265と、復号化処理部266とを備える。これらの機能部のうち一部または全部は、例えば、CPU(Central Processing Unit)などのプロセッサが、記憶部270に記憶されたプログラム(ソフトウェア)を実行することで実現される。また、これらの構成要素の機能のうち一部または全部は、LSI(Large Scale Integration)やASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)、GPU(Graphics Processing Unit)等のハードウェア(回路部:circuitryを含む)によって実現されていてもよいし、ソフトウェアとハードウェアの協働によって実現されていてもよい。プログラムは、予めHDD(Hard Disk Drive)やフラッシュメモリなどの記憶装置に格納されていてもよいし、DVDやCD-ROMなどの着脱可能な記憶媒体に格納されており、記憶媒体がドライブ装置に装着されることでインストールされてもよい。
The
決定部261は、リーダライタ部210によりカード媒体1から読み出された情報に基づいて、データ領域Xあるいはデータ領域Yのうち、読み取り面がどちらであるかを決定する。また、決定部261は、データ領域Xあるいはデータ領域Yのうち、読み取り面に決定されていない方のデータ領域を、書き取り面に決定する。
Based on the information read from the
例えば、決定部261は、データ領域Xあるいはデータ領域Yのうち、書き込まれている情報が正常である方を、読み取り面に決定する。データ領域Xとデータ領域Yの両方において、書き込まれた情報が正常である場合、決定部261は、情報が書き込まれたタイミングが新しい方を、読み取り面に決定する。「書き込まれた情報が正常である」とは、書き込まれた情報が破損していない状態であって、復号化された情報に異常がない状態をさらに含んでもよい。復号化された情報に異常がない状態には、例えば、情報の並び、情報の長さ、情報の配置などが予め決められた範囲内であることなどが含まれる。
For example, the
例えば、決定部261は、更新フラグ領域X1,X2,Y1,およびY2に書き込まれている更新フラグ情報に基づいて、各データ領域に書き込まれている情報が正常であるか否かを決定する。また、決定部261は、各更新フラグ領域に書き込まれている情報の種類に基づいて書き込まれたタイミングの新旧を決定する。更新フラグ情報の種類には、例えば、AA,BB,CC,DD…が含まれる。これらの詳細な方法については、後述する。
For example, the determining
また、決定部261は、更新フラグ領域X1,X2,Y1,およびY2に書き込む更新フラグ情報の種類を決定する。例えば、決定部261は、AA,BB,CC,DD…の順に更新フラグ情報を利用するように、書き込む更新フラグ情報の種類を決定する。こうすることにより、決定部261は、更新フラグ情報の種類に基づいて、情報が書き込まれたタイミングを判定することができる。
The determining
通過可否判定部262は、リーダライタ部210により読み取られた情報のうち、決定部261により読み取り面に決定された方のデータ領域から読み取られた情報に基づいて、利用者の通過の可否を判定する。例えば、データ領域Xが決定部261により読み取り面に決定された場合、通過可否判定部262は、リーダライタ部210により読み取られた情報からデータ領域Xに対応する情報(データX´)を抽出し、抽出したデータX´に基づいて、利用者の通過の可否を判定する。なお、通過可否判定部262は、データ領域4bにおけるデータ領域Xの位置を示すアドレスを参照して、データX´を抽出する。
The passage
例えば、カード媒体1が1日券として利用される場合、通過可否判定部262は、当日がデータX´に含まれる利用可能期間に該当する場合、通過が可能であると判定する。また、カード媒体1が出場時に精算される乗車券として利用される場合、通過可否判定部262は、記憶部270の運賃テーブル272を照合し、データX´に含まれる駅情報に基づいて精算する運賃を導出し、カード媒体1にチャージされている残高の方が運賃よりも高い場合、通過が可能であると判定してもよい。
For example, when the
通過制御部263は、通過可否判定部262による判定結果や、リーダライタ制御部264による処理結果に応じて、扉部240および250、上面表示部220、正面表示部230、またはこれらを組み合わせたものを制御する。例えば、通過可否判定部262により通過が許可され、且つ、リーダライタ制御部264によりカード媒体に対する書き込みが完了した場合、例えば、上面表示部220、正面表示部230に、カード媒体1を利用できることを表す情報を出力させ、扉部240および250を開放状態に制御して利用者の通過を許可する。
The
また、通過制御部263は、通過可否判定部262によって利用者の通過を禁止すると判定された場合や、リーダライタ制御部264によりカード媒体に対する書き込みが実行中である場合、例えば、上面表示部220、正面表示部230に、カード媒体1を利用できないことを表す情報を出力させ、扉部240および250を閉止状態に制御して利用者の通過を禁止する。
Further, the
リーダライタ制御部264は、通過可否判定部262により利用者の通過が許可された場合、決定部261により書き込み面に決定された方のデータ領域に、所定情報を書き込むようリーダライタ部210を制御する。所定情報には、例えば、利用記録(出場駅、出場日時など)、精算完了を示すフラグ、精算後のチャージ金額等が含まれる。
The reader/
所定情報を書き込み面のデータ領域に書き込むとき、リーダライタ制御部264は、書き込み面のデータ領域の前後の更新フラグ領域に、決定部261により決定された種類の更新フラグ情報を書き込むようリーダライタ部210を制御する。例えば、リーダライタ制御部264は、書き込み面のデータ領域の前の更新フラグ領域の先頭のアドレスを指定して、指定したアドレスから、所定情報の前と後ろに更新フラグ情報を連結された情報を書き込むようリーダライタ部210を制御する。なお、リーダライタ制御部264は、更新フラグ情報の位置がずれないように、データ領域XやYのデータ長さに合わせて、所定情報を作成する。
When writing the predetermined information to the data area of the writing surface, the reader/
通信制御部265は、例えば、自動改札機100に設けられる通信機器を制御して、リーダライタ部210によってカード媒体1から読み取られた情報や、カード媒体1に書き込む情報などを、サーバ装置に送信する。通信機器は、例えば、NIC等の通信インターフェースを含む。また、通信制御部265は、通信機器を用いて、サーバ装置から各種情報を受信し、記憶部270に格納してもよい。
The
復号化処理部266は、符号化されている情報を復号する。
The
次に、制御部260による処理の一例について説明する。図5は、第1実施形態におけるデータ領域4bに書き込まれる情報の一例を示す図である。なお、以下に説明する各処理は、カード媒体1が自動改札機100に翳される度に実行される処理である。
Next, an example of processing by the
まず、カード媒体1が初期状態である場合、更新フラグ領域X1,X2,Y1,Y2およびデータ領域X,Yには、情報がない。(1回目の処理)カード媒体1が初期状態である場合、決定部261は、読み取り情報がないことを決定するとともに、データ領域Xを書き込み面に決定する。そして、アドレスP1を先頭にして、「0xAA+データD1+0xAA」が書き込まれる。「0xAA+データD1+0xAA」は、0xAAの後ろに、データD1を連結し、データD1の後ろに0xAAを連結したデータである。
First, when the
(2回目の処理)カード媒体1が1回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP2を先頭にして、「0xBB+データD2+0xBB」が書き込まれる。
(Second Processing) When the
(3回目の処理)カード媒体1が2回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP1を先頭にして、「0xCC+データD3+0xCC」が書き込まれる。
(Third Processing) When the
(4回目の処理)次いで、カード媒体1が3回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP2を先頭にして、「0xDD+データD4+0xDD」が書き込まれる。
(Fourth Processing) Next, when the
(5回目の処理)カード媒体1が4回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP1を先頭にして、「0xAA+データD5+0xAA」が書き込まれる。しかし、この処理においてカード媒体1がわずかな時間でリーダライタ面210aから離されたため、先頭の更新フラグ領域X1には情報「0xAA」が上書きされるものの、データ領域Xに対するデータD5の書き込み途中で書き込みに失敗してしまい、更新フラグ領域X2には情報「0xAA」が上書きされない。このため、更新フラグ領域X1=「0xAA」、更新フラグ領域X2=「0xCC」となる。この場合、データ領域Xから読み出された情報は破損している。
(Fifth Processing) When the
(6回目の処理)カード媒体1が5回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP1を先頭にして、「0xAA+データD4+0xAA」が書き込まれる。上述の通り、書き込み面と読み取り面とを別のデータ領域に分けておくことにより、読み取り情報が破壊されずに、書き込み処理を実行することができる。
(Sixth process) When the
(7回目の処理)カード媒体1が6回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP2を先頭にして、「0xBB+データD6+0xBB」が書き込まれる。しかし、上述の通り、先頭の更新フラグ領域X1には情報「0xBB」が上書きされるものの、データ領域Yに対するデータD6の書き込み途中で書き込みに失敗してしまい、更新フラグ領域X2には情報「0xBB」が上書きされないとする。この場合、更新フラグ領域Y1=「0xBB」、更新フラグ領域Y2=「0xDD」となる。この場合、データ領域Yから読み出された情報は破損している。
(Seventh Process) When the
(8回目の処理)カード媒体1が7回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP2を先頭にして、「0xBB+データD6+0xBB」が書き込まれる。
(Eighth Process) When the
9~12回目の処理は、更新フラグ情報の種類が異なる点を除き、5~8回目の処理と同様であるため、詳細な説明は省略する。 The 9th to 12th processes are the same as the 5th to 8th processes, except that the types of update flag information are different, so detailed description thereof will be omitted.
次に、自動改札機100による処理の一例について説明する。図6~8は、第1実施形態における自動改札機100による読み取り処理の一例を示すフローチャートである。まず、リーダライタ制御部264は、リーダライタ部210を制御して、カード媒体1から情報を読み取る(ステップS101)。次いで、決定部261は、読み取った情報に含まれる更新フラグ情報の種類の組み合わせに応じて、データ領域XやYが使用済であるか、あるいは未使用であるかを決定する。
Next, an example of processing by the
例えば、決定部261は、データ領域4bのアドレスに基づいて、更新フラグ領域X1から読み出した情報が「0xAA」か「0xCC」のどちらかであるか否かを判定する(ステップS103)。また、決定部261は、更新フラグ領域X2から読み出した情報が「0xAA」か「0xCC」のどちらかであるか否かを判定する(ステップS105)。更新フラグ領域X1およびX2から読み出した情報が「0xAA」か「0xCC」のどちらかである場合、決定部261は、データ領域Xが使用済であると決定する(ステップS107)。一方、ステップS103,S105のどちらかで否定的な判定結果である場合、つまり、更新フラグ領域X1あるいはX2から読み出した情報が「0xAA」か「0xCC」のどちらでもない場合、決定部261は、データ領域Xが未使用であると決定する(ステップS109)。
For example, the determining
次いで、決定部261は、データ領域4bのアドレスに基づいて、更新フラグ領域Y1から読み出した情報が「0xBB」か「0xDD」のどちらかであるか否かを判定する(ステップS111)。また、決定部261は、更新フラグ領域Y2から読み出した情報が「0xBB」か「0xDD」のどちらであるか否かを判定する(ステップS113)。更新フラグ領域Y1およびY2から読み出した情報が「0xBB」か「0xDD」のどちらかである場合、決定部261は、データ領域Yが使用済であると決定する(ステップS115)。一方、ステップS111,S113のどちらかで否定的な判定結果である場合、つまり、更新フラグ領域Y1またはY2から読み出した情報が「0xBB」か「0xDD」のどちらでもない場合、決定部261は、データ領域Yが未使用であると決定する(ステップS117)。
Next, the
次いで、決定部261は、データ領域XとYの両方が未使用であるか否かを判定する(ステップS119)。データ領域XとYの両方が未使用である場合、決定部261は、読み取りデータがないと決定する(ステップS121)。そして、自動改札機100は読み取り処理を終了する。
Next, the
一方、データ領域XとYの両方が未使用でない場合、決定部261は、データ領域Xが使用済であるか否かを判定する(ステップS123)。データ領域Xが使用済である場合、決定部261は、更新フラグ領域X1から読み出した情報と、更新フラグ領域X1から読み出した情報とが一致するか否かを判定する(ステップS125)。両者が一致する場合、復号化処理部266は、データ領域Xから読み出した情報を復号化する(ステップS127)。決定部261は、復号化された情報に異常がない状態であるか否かを判定する(ステップS129)。つまり、復号化された情報が正常であるか否かを判定する。復号化された情報に異常がない情報である場合、決定部261は、データ領域Xに書き込まれている情報は正常(OK)であると決定する(ステップS131)。一方、ステップS123によりデータ領域Xが未使用であると判定された場合、および、ステップS125あるいはステップS129においてデータ領域Xに書き込まれている情報が正常でないと判定された場合、決定部261は、データ領域X=NGと決定する(ステップS133)。
On the other hand, if both the data areas X and Y are not unused, the determining
次いで、決定部261は、データ領域Yが使用済であるか否かを判定する(ステップS135)。データ領域Yが使用済である場合、決定部261は、更新フラグ領域Y1から読み出した情報と、更新フラグ領域Y1から読み出した情報とが一致するか否かを判定する(ステップS137)。両者が一致する場合、復号化処理部266は、データ領域Yから読み出した情報を復号化する(ステップS139)。決定部261は、復号化された情報に異常がない状態であるか否かを判定する(ステップS141)。つまり、復号化された情報が正常であるか否かを判定する。復号化された情報に異常がない情報である場合、決定部261は、データ領域Yに書き込まれている情報は正常(OK)であると決定する(ステップS143)。一方、ステップS135によりデータ領域Yが未使用であると判定された場合、および、ステップS137あるいはステップS141においてデータ領域Yに書き込まれている情報が正常でないと判定された場合、決定部261は、データ領域Y=NGと決定する(ステップS145)。
Next, the
次いで、決定部261は、データ領域のOKあるいはNGの判定結果に応じて、読み取り面を決定する。例えば、決定部261は、データ領域X=NG、且つ、データ領域Y=NGであるか否かを判定する(ステップS147)。データ領域X=NG、且つ、データ領域Y=NGである場合、決定部261は、読み取り処理のエラーであると決定する(ステップS149)。この場合、自動改札機100での処理はできないため、利用者は係員のところにカード媒体1を持参して処理してもらう必要がある。
Next, the
次いで、決定部261は、データ領域X=OK、且つ、データ領域Y=NGであるか否かを判定する(ステップS151)。データ領域X=OK、且つ、データ領域Y=NGである場合、決定部261は、データ領域Xを読み取り面に決定する(ステップS153)。
Next, the
次いで、決定部261は、データ領域X=NG、且つ、データ領域Y=OKであるか否かを判定する(ステップS155)。データ領域X=NG、且つ、データ領域Y=OKである場合、決定部261は、データ領域Yを読み取り面に決定する(ステップS157)。
Next, the
そして、上述したケースのいずれにも該当しない場合、つまり、データ領域X=OK、且つ、データ領域Y=OKである場合、決定部261は、更新フラグ情報の組み合せに応じて(ステップS159)、読み取り面を決定する。
Then, if none of the above cases apply, that is, if data area X=OK and data area Y=OK, the
例えば、更新フラグ情報の組み合わせが「0xAAと0xBBの組み合わせ」あるいは「0xCCと0xDDの組み合わせ」のいずれかである場合、決定部261は、データ領域Yを読み取り面に決定する(ステップS161)。
For example, if the combination of update flag information is either "combination of 0xAA and 0xBB" or "combination of 0xCC and 0xDD", the determining
一方、更新フラグ情報の組み合わせが「0xCCと0xBBの組み合わせ」あるいは「0xAAと0xDDの組み合わせ」のいずれかである場合、決定部261は、データ領域Xを読み取り面に決定する(ステップS163)。そして、自動改札機100は読み取り処理を終了する。
On the other hand, if the combination of update flag information is either "combination of 0xCC and 0xBB" or "combination of 0xAA and 0xDD", the
図9は、第1実施形態における自動改札機100による書き込み処理の一例を示すフローチャートである。まず、決定部261は、読み取り面に応じて(ステップS201)、書き込み面を決定する。読み取り面がデータ領域Yである場合、あるいは、データ領域XとYの両方について読み取りデータがない場合、決定部261は、書き取り面をデータ領域Xに決定する(ステップS203)。
FIG. 9 is a flowchart showing an example of writing processing by the
次いで、決定部261は、読み取り時の更新フラグ情報の種類に応じて(ステップS205)、書き込み時の更新フラグ情報の種類を決定する。読み取り時の更新フラグ情報が「0xDD」である場合、あるいは更新フラグ領域Y1,Y2に書き込まれていた情報がない場合、決定部261は、書き込み時の更新フラグ情報を「0xAA」に決定する(ステップS207)。一方、読み取り時の更新フラグ情報が「0xBB」である場合、決定部261は、書き込み時の更新フラグ情報を「0xCC」に決定する(ステップS209)。
Next, the
一方、ステップS201において、読み取り面がデータ領域Xである場合、決定部261は、書き取り面をデータ領域Yに決定する(ステップS211)。次いで、決定部261は、読み取り時の更新フラグ情報の種類に応じて(ステップS213)、書き込み時の更新フラグ情報の種類を決定する。読み取り時の更新フラグ情報が「0xAA」である場合、決定部261は、書き込み時の更新フラグ情報を「0xBB」に決定する(ステップS215)。一方、読み取り時の更新フラグ情報が「0xCC」である場合、決定部261は、書き込み時の更新フラグ情報を「0xDD」に決定する(ステップS217)。
On the other hand, if the reading surface is the data area X in step S201, the
そして、リーダライタ制御部264は、リーダライタ部210を制御して、カード媒体1に情報を書き込む(ステップS219)。ここで、リーダライタ制御部264は、決定部261により決定された更新フラグ情報を、書き込まれる所定情報の前後に連結した情報を生成する。リーダライタ制御部264は、決定部261により書き込み面に決定されたデータ領域XあるいはYのアドレスを指定して、生成した情報を書き込むよう、リーダライタ部210を制御する。
Then, the reader/
以上説明した少なくとも一つの実施形態によれば、読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信する通信部と、前記通信部が前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定する決定部と、前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記決定部により前記読み取り面と決定されていない方のデータ領域に所定情報を書き込む書込部と、を備えることにより、利用者や係員の作業負担の軽減に貢献することができる。 According to at least one embodiment described above, the reading direction and the writing direction are the same first direction, and the first data area and the second data area after the first data area in the first direction a determining unit configured to determine the reading surface of the first data area or the second data area based on the information read from the electronic device by the communication unit; a writing unit that writes predetermined information to the data area that is not determined to be the reading surface by the determination unit when passage is permitted based on information read from the data area determined to be the reading surface. By providing it, it is possible to contribute to the reduction of the work burden on users and staff.
(第2実施形態)
次に、第2実施形態について説明する。なお、本実施形態におけるカード媒体や自動改札機は、上述した第1実施形態のカード媒体1と自動改札機100と同様の機能構成を有するため詳細な説明は省略し、同一の符号を付して以下説明する。以下、第1実施形態と異なる点について説明する。
(Second embodiment)
Next, a second embodiment will be described. The card medium and the automatic ticket gate in this embodiment have the same functional configuration as the
図10は、第2実施形態におけるデータ領域4b-2の一例を示す図である。データ領域4b-2は、2つのデータ領域XとYとを含む。データ領域Xの直前には更新フラグ領域X3が、データ領域Xの直後であって且つデータ領域Yの直前には更新フラグ領域Zが、データ領域Yの直後には更新フラグ領域Y3が、それぞれ設定されている。
FIG. 10 is a diagram showing an example of the
データ領域4b-2において、データ領域XとYの位置、更新フラグ領域X3,Z,Y3の位置は、それぞれアドレスで管理されている。例えば、更新フラグ領域X3の先頭位置はアドレスP3であり、更新フラグ領域Zの先頭位置はアドレスP4である。アドレスP3を指定して、更新フラグ領域X3の先頭から情報を書き込むことより、「更新フラグ領域X3+データ領域X+更新フラグ領域Z」に対して情報を書き込むことができる。また、アドレスP4を指定して、更新フラグ領域Zの先頭から情報を書き込むことより、「更新フラグ領域Z+データ領域Y+更新フラグ領域Y3」に対して情報を書き込むことができる。
In the
図11は、カード媒体1のデータ領域4b-2に書き込まれる情報の一例を示す図である。なお、以下に説明する各処理は、カード媒体1が自動改札機100に翳される度に実行される処理である。
FIG. 11 is a diagram showing an example of information written in the
まず、カード媒体1が初期状態である場合、更新フラグ領域X3,Z,Y3およびデータ領域X,Yには、情報がない。(1回目の処理)カード媒体1が初期状態である場合、決定部261は、読み取り情報がないことを決定するとともに、データ領域Xを書き込み面に決定する。そして、アドレスP3を先頭にして、「0xAA+データD11+0xAA」が書き込まれる。
First, when the
(2回目の処理)カード媒体1が1回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP4を先頭にして、「0xBB+データD12+0xBB」が書き込まれる。
(Second Processing) When the
(3回目の処理)カード媒体1が2回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP3を先頭にして、「0xAA+データD13+0xAA」が書き込まれる。
(Third Processing) When the
(4回目の処理)次いで、カード媒体1が3回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP4を先頭にして、「0xCC+データD14+0xCC」が書き込まれる。
(Fourth Processing) Next, when the
(5回目の処理)カード媒体1が4回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP3を先頭にして、「0xAA+データD15+0xAA」が書き込まれる。
(Fifth Processing) When the
(6回目の処理)次いで、カード媒体1が5回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP4を先頭にして、「0xBB+データD16+0xBB」が書き込まれる。
(Sixth process) Next, when the
(7回目の処理)カード媒体1が6回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP3を先頭にして、「0xAA+データD17+0xAA」が書き込まれる。しかし、この処理においてカード媒体1がわずかな時間でリーダライタ面210aから離されたため、先頭の更新フラグ領域X3には情報「0xAA」が上書きされるものの、データ領域Xに対するデータD17の書き込み途中で書き込みに失敗してしまい、更新フラグ領域Zには情報「0xAA」が上書きされない。このため、更新フラグ領域X3=「0xAA」、更新フラグ領域Z=「0xBB」となる。この場合、データ領域Xから読み出された情報は破損している。
(Seventh Process) When the
(8回目の処理)カード媒体1が7回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP3を先頭にして、「0xAA+データD17+0xAA」が書き込まれる。上述の通り、書き込み面と読み取り面とを別のデータ領域に分けておくことにより、読み取り情報が破壊されずに、書き込み処理を実行することができる。
(Eighth Process) When the
(9回目の処理)カード媒体1が8回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP4を先頭にして、「0xCC+データD18+0xCC」が書き込まれる。しかし、上述の通り、先頭の更新フラグ領域Zには情報「0xCC」が上書きされるものの、データ領域Yに対するデータD18の書き込み途中で書き込みに失敗してしまい、更新フラグ領域Y3には情報「0xCC」が上書きされないとする。この場合、更新フラグ領域Z=「0xCC」、更新フラグ領域Y3=「0xBB」となる。そして、データ領域Yから読み出された情報は破損している。
(Ninth Processing) When the
(10回目の処理)カード媒体1が9回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP3を先頭にして、「0xCC+データD18+0xCC」が書き込まれる。
(Tenth Processing) When the
図12~14は、第2実施形態における自動改札機100による読み取り処理の一例を示すフローチャートである。まず、リーダライタ制御部264は、リーダライタ部210を制御して、カード媒体1から情報を読み取る(ステップS301)。次いで、決定部261は、読み取った情報に含まれる更新フラグ情報の種類の組み合わせに応じて、データ領域XやYが使用済であるか、あるいは未使用であるかを決定する。
12 to 14 are flowcharts showing an example of reading processing by the
例えば、決定部261は、データ領域4b-2のアドレスに基づいて、更新フラグ領域X3から読み出した情報が「0xAA」であるか否かを判定する(ステップS303)。また、決定部261は、更新フラグ領域Zから読み出した情報が「0xAA」か「0xCC」のどちらかであるか否かを判定する(ステップS305)。更新フラグ領域X3から読み出した情報が「0xAA」であって、且つ、更新フラグ領域Zから読み出した情報が「0xAA」か「0xCC」のどちらかである場合、決定部261は、データ領域Xが使用済であると決定する(ステップS307)。一方、ステップS303,S305のどちらかで否定的な判定結果である場合、つまり、更新フラグ領域X3から読み出した情報が「0xAA」でない場合、あるいは、更新フラグ領域Z2から読み出した情報が「0xAA」か「0xCC」のどちらでもない場合、決定部261は、データ領域Xが未使用であると決定する(ステップS309)。
For example, the determining
次いで、決定部261は、データ領域4b-2のアドレスに基づいて、更新フラグ領域Zから読み出した情報が「0xBB」か「0xCC」のどちらかであるか否かを判定する(ステップS311)。また、決定部261は、更新フラグ領域Y3から読み出した情報が「0xBB」か「0xCC」のどちらであるか否かを判定する(ステップS313)。更新フラグ領域ZおよびY3から読み出した情報が「0xBB」か「0xCC」のどちらかである場合、決定部261は、データ領域Yが使用済であると決定する(ステップS315)。一方、ステップS311,S313のどちらかで否定的な判定結果である場合、つまり、更新フラグ領域ZあるいはY3から読み出した情報が「0xBB」か「0xCC」のどちらでもない場合、決定部261は、データ領域Yが未使用であると決定する(ステップS317)。
Next, the
次いで、決定部261は、データ領域XとYの両方が未使用であるか否かを判定する(ステップS319)。データ領域XとYの両方が未使用である場合、決定部261は、読み取りデータがないと決定する(ステップS321)。そして、自動改札機100は読み取り処理を終了する。
Next, the
一方、データ領域XとYの両方が未使用でない場合、決定部261は、データ領域Xが使用済であるか否かを判定する(ステップS323)。データ領域Xが使用済である場合、決定部261は、更新フラグ領域X3から読み出した情報と、更新フラグ領域Zから読み出した情報とが一致するか否かを判定する(ステップS325)。両者が一致する場合、復号化処理部266は、データ領域Xから読み出した情報を復号化する(ステップS327)。決定部261は、復号化された情報に異常がない状態であるか否かを判定する(ステップS229)。つまり、復号化された情報が正常であるか否かを判定する。復号化された情報に異常がない情報である場合、決定部261は、データ領域Xに書き込まれている情報は正常(OK)であると決定する(ステップS331)。一方、ステップS323によりデータ領域Xが未使用であると判定された場合、および、ステップS325あるいはステップS329においてデータ領域Xに書き込まれている情報が正常でないと判定された場合、決定部261は、データ領域X=NGと決定する(ステップS333)。
On the other hand, if both the data areas X and Y are not unused, the determining
次いで、決定部261は、データ領域Yが使用済であるか否かを判定する(ステップS335)。データ領域Yが使用済である場合、決定部261は、更新フラグ領域Zから読み出した情報と、更新フラグ領域Y3から読み出した情報とが一致するか否かを判定する(ステップS337)。両者が一致する場合、復号化処理部266は、データ領域Yから読み出した情報を復号化する(ステップS339)。決定部261は、復号化された情報に異常がない状態であるか否かを判定する(ステップS341)。つまり、復号化された情報が正常であるか否かを判定する。復号化された情報に異常がない情報である場合、決定部261は、データ領域Yに書き込まれている情報は正常(OK)であると決定する(ステップS343)。一方、ステップS335によりデータ領域Yが未使用であると判定された場合、および、ステップS337あるいはステップS341においてデータ領域Yに書き込まれている情報が正常でないと判定された場合、決定部261は、データ領域Y=NGと決定する(ステップS345)。
Next, the
ステップS147-157の処理は、上述した通りである。 The processing of steps S147-157 is as described above.
ステップS147-157のいずれにも該当しない場合、つまり、データ領域X=OK、且つ、データ領域Y=OKである場合、決定部261は、更新フラグ領域Zから読み出された更新フラグ情報の種類に応じて(ステップS359)、読み取り面を決定する。
If none of steps S147 to S157 apply, that is, if data area X=OK and data area Y=OK, the
例えば、更新フラグ領域Zから読み出された更新フラグ情報が「0xBB」あるいは「0xCC」のいずれかである場合、決定部261は、データ領域Yを読み取り面に決定する(ステップS361)。
For example, if the update flag information read from the update flag area Z is either "0xBB" or "0xCC", the determining
一方、更新フラグ領域Zから読み出された更新フラグ情報が「0xAA」である場合、決定部261は、データ領域Xを読み取り面に決定する(ステップS363)。そして、自動改札機100は読み取り処理を終了する。
On the other hand, when the update flag information read from the update flag area Z is "0xAA", the determining
図15は、第2実施形態における自動改札機100による書き込み処理の一例を示すフローチャートである。まず、決定部261は、読み取り面に応じて(ステップS401)、書き込み面を決定する。読み取り面がデータ領域Yである場合、あるいは、データ領域XとYの両方について読み取りデータがない場合、決定部261は、書き取り面をデータ領域Xに決定する(ステップS403)。そして、決定部261は、書き込み時の更新フラグ情報を「0xAA」に決定する(ステップS409)。
FIG. 15 is a flowchart showing an example of writing processing by the
一方、ステップS401において、読み取り面がデータ領域Xである場合、決定部261は、書き取り面をデータ領域Yに決定する(ステップS411)。次いで、決定部261は、更新フラグ領域Y3から読み出された更新フラグ情報の種類に応じて(ステップS413)、書き込み時の更新フラグ情報の種類を決定する。更新フラグ領域Y3から読み出された更新フラグ情報がが「0xCC」である場合、あるいは更新フラグ領域Y3に書き込まれていた情報がない場合、決定部261は、書き込み時の更新フラグ情報を「0xBB」に決定する(ステップS415)。一方、読み取り時の更新フラグ情報が「0xBB」である場合、決定部261は、書き込み時の更新フラグ情報を「0xCC」に決定する(ステップS417)。
On the other hand, if the reading surface is the data area X in step S401, the
(第3実施形態)
次に、第3実施形態について説明する。なお、本実施形態におけるカード媒体や自動改札機は、上述した第1実施形態のカード媒体1と自動改札機100と同様の機能構成を有するため詳細な説明は省略し、同一の符号を付して以下説明する。以下、第1実施形態と異なる点について説明する。
(Third embodiment)
Next, a third embodiment will be described. The card medium and the automatic ticket gate in this embodiment have the same functional configuration as the
図16は、第3実施形態におけるデータ領域4b-3の一例を示す図である。データ領域4b-3は、2つのデータ領域XとYとを含む。データ領域Xの直前には更新フラグ領域X5が、データ領域Yの直後には更新フラグ領域Y5が、それぞれ設定されている。
FIG. 16 is a diagram showing an example of the
データ領域4b-3において、データ領域XとYの位置、更新フラグ領域X5,Y5の位置は、それぞれアドレスで管理されている。例えば、更新フラグ領域X5の先頭位置はアドレスP5であり、データ領域Yの先頭位置はアドレスP6であり、更新フラグ領域Y5の先頭位置はアドレスP7である。
In the
データ領域Xの情報を書き込む場合、アドレスP5を指定して、更新フラグ領域X5の先頭から情報を書き込むことより、「更新フラグ領域X5+データ領域X」に対して情報を書き込むことができる。また、アドレスP7を指定して、更新フラグ領域Y5の先頭から情報を書き込むことより、「更新フラグ領域Y5」に対して情報を書き込むことができる。 When writing information in the data area X, by designating the address P5 and writing the information from the top of the update flag area X5, the information can be written in the "update flag area X5+data area X". Further, by specifying the address P7 and writing information from the beginning of the update flag area Y5, information can be written to the "update flag area Y5".
データ領域Yの情報を書き込む場合、アドレスP5を指定して、更新フラグ領域X5の先頭から情報を書き込むことより、「更新フラグ領域X5」に対して情報を書き込むことができる。また、アドレスP6を指定して、データ領域Yの先頭から情報を書き込むことより、「データ領域Y+更新フラグ領域Y5」に対して情報を書き込むことができる。 When writing the information in the data area Y, the information can be written in the "update flag area X5" by designating the address P5 and writing the information from the beginning of the update flag area X5. Further, by designating the address P6 and writing information from the beginning of the data area Y, information can be written to the "data area Y+update flag area Y5".
図17は、カード媒体1のデータ領域4b-3に書き込まれる情報の一例を示す図である。なお、以下に説明する各処理は、カード媒体1が自動改札機100に翳される度に実行される処理である。
FIG. 17 is a diagram showing an example of information written in the
まず、カード媒体1が初期状態である場合、更新フラグ領域X5,Y5およびデータ領域X,Yには、情報がない。(1回目の処理)カード媒体1が初期状態である場合、決定部261は、読み取り情報がないことを決定するとともに、データ領域Xを書き込み面に決定する。そして、アドレスP5を先頭にして「0xAA+データD21」が書き込まれ、アドレスP7を先頭にして「0xAA」が書き込まれる。
First, when the
(2回目の処理)カード媒体1が1回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP5を先頭にして「0xBB」が書き込まれ、アドレスP6を先頭にして「データD22+0xBB」が書き込まれる。
(Second Processing) When the
(3回目の処理)カード媒体1が2回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP5を先頭にして「0xAA+データD23」が書き込まれ、アドレスP7を先頭にして「0xAA」が書き込まれる。
(Third Processing) When the
(4回目の処理)次いで、カード媒体1が3回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP5を先頭にして、「0xBB」が書き込まれ、アドレスP6を先頭にして、「データD24+0xBB」が書き込まれる。
(Fourth Processing) Next, when the
(5回目の処理)カード媒体1が4回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP5を先頭にして「0xAA+データD25」が書き込まれ、アドレスP7を先頭にして「0xAA」が書き込まれる。しかし、この処理においてカード媒体1がわずかな時間でリーダライタ面210aから離されたため、先頭の更新フラグ領域X5には情報「0xAA」が上書きされるものの、データ領域Xに対するデータD25の書き込み途中で書き込みに失敗してしまい、更新フラグ領域Y5には情報「0xAA」が上書きされない。このため、更新フラグ領域X5=「0xAA」、更新フラグ領域Y5=「0xBB」となる。この場合、データ領域Xから読み出された情報は破損している。
(Fifth Processing) When the
(6回目の処理)カード媒体1が5回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP5を先頭にして「0xAA+データD25」が書き込まれ、アドレスP7を先頭にして「0xAA」が書き込まれる。上述の通り、書き込み面と読み取り面とを別のデータ領域に分けておくことにより、読み取り情報が破壊されずに、書き込み処理を実行することができる。
(Sixth process) When the
(7回目の処理)カード媒体1が6回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP5を先頭にして「0xBB」が書き込まれ、アドレスP6を先頭にして「データD26+0xBB」が書き込まれる。しかし、上述の通り、先頭の更新フラグ領域X5には情報「0xBB」が上書きされるものの、データ領域Yに対するデータD16の書き込み途中で書き込みに失敗してしまい、更新フラグ領域Y5には情報「0xBB」が上書きされないとする。この場合、更新フラグ領域X5=「0xBB」、更新フラグ領域Y5=「0xAA」となる。そして、データ領域Yから読み出された情報は破損している。
(Seventh Process) When the
(8回目の処理)カード媒体1が7回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP5を先頭にして「0xBB」が書き込まれ、アドレスP6を先頭にして「データD26+0xBB」が書き込まれる。
(Eighth Process) When the
図18~20は、第3実施形態における自動改札機100による読み取り処理の一例を示すフローチャートである。まず、リーダライタ制御部264は、リーダライタ部210を制御して、カード媒体1から情報を読み取る(ステップS501)。次いで、決定部261は、読み取った情報に含まれる更新フラグ情報の種類の組み合わせに応じて、データ領域XやYが使用済であるか、あるいは未使用であるかを決定する。
18 to 20 are flowcharts showing an example of reading processing by the
例えば、決定部261は、データ領域4b-3のアドレスに基づいて、更新フラグ領域Y5から読み出した情報が「0xAA」か「0xBB」のどちらかであるか否かを判定する(ステップS503)。更新フラグ領域Y5から読み出した情報が「0xAA」か「0xBB」のどちらでもない場合、決定部261は、データ領域XおよびYの両方が未使用であると決定する(ステップS505)。そして、決定部261は、読み取りデータがないと決定する(ステップS507)。そして、自動改札機100は読み取り処理を終了する。
For example, the
一方、ステップS503で否定的な判定結果である場合、つまり、更新フラグ領域Y5から読み出した情報が「0xAA」か「0xBB」のどちらでもない場合、図19の処理に進む。 On the other hand, if the determination result in step S503 is negative, that is, if the information read from the update flag area Y5 is neither "0xAA" nor "0xBB", the process proceeds to FIG.
決定部261は、更新フラグ領域X5から読み出した情報と、更新フラグ領域Y5から読み出した情報とが共に「0xAA」であるか否かを判定する(ステップS525)。両者が共に「0xAA」である場合、復号化処理部266は、データ領域Xから読み出した情報を復号化する(ステップS527)。決定部261は、復号化された情報に異常がない状態であるか否かを判定する(ステップS529)。つまり、復号化された情報が正常であるか否かを判定する。復号化された情報に異常がない情報である場合、決定部261は、データ領域Xに書き込まれている情報は正常(OK)であると決定する(ステップS531)。一方、ステップS529においてデータ領域Xに書き込まれている情報が正常でないと判定された場合、決定部261は、データ領域X=NGと決定する(ステップS533)。
The determining
ステップS525において両者が共に「0xAA」でない場合、決定部261は、更新フラグ領域X5から読み出した情報と、更新フラグ領域Y5から読み出した情報とが共に「0xBB」であるか否かを判定する(ステップS537)。両者が共に「0xBB」である場合、復号化処理部266は、データ領域Yから読み出した情報を復号化する(ステップS539)。決定部261は、復号化された情報に異常がない状態であるか否かを判定する(ステップS541)。つまり、復号化された情報が正常であるか否かを判定する。復号化された情報に異常がない情報である場合、決定部261は、データ領域Yに書き込まれている情報は正常(OK)であると決定する(ステップS543)。一方、ステップS541においてデータ領域Yに書き込まれている情報が正常でないと判定された場合、決定部261は、データ領域Y=NGと決定する(ステップS545)。
If both are not "0xAA" in step S525, the
ステップS537において両者が共に「0xBB」でない場合、決定部261は、更新フラグ領域X5から読み出した情報が「00AA」、且つ、更新フラグ領域Y5から読み出した情報が「0xBB」であるか否かを判定する(ステップS547)。更新フラグ領域X5から読み出した情報が「00AA」、且つ、更新フラグ領域Y5から読み出した情報が「0xBB」である場合、決定部261は、データ領域X=NGと決定する(ステップS549)。
If both are not "0xBB" in step S537, the determining
ステップS547において、更新フラグ領域X5から読み出した情報が「00AA」、且つ、更新フラグ領域Y5から読み出した情報が「0xBB」でない場合、決定部261は、更新フラグ領域X5から読み出した情報が「00BB」、且つ、更新フラグ領域Y5から読み出した情報が「0xAA」であるか否かを判定する(ステップS551)。更新フラグ領域X5から読み出した情報が「00BB」、且つ、更新フラグ領域Y5から読み出した情報が「0xAA」である場合、決定部261は、データ領域Y=NGと決定する(ステップS553)。
In step S547, if the information read from the update flag area X5 is not "00AA" and the information read from the update flag area Y5 is not "0xBB", the
ステップS147-157の処理は、上述した通りである。 The processing of steps S147-157 is as described above.
ステップS147-157のいずれにも該当しない場合、つまり、データ領域X=OK、且つ、データ領域Y=OKである場合、決定部261は、更新フラグ領域X5から読み出された更新フラグ情報の種類に応じて(ステップS559)、読み取り面を決定する。
If none of steps S147 to S157 apply, that is, if data area X=OK and data area Y=OK, the
例えば、更新フラグ領域X5から読み出された更新フラグ情報が「0xBB」である場合、決定部261は、データ領域Yを読み取り面に決定する(ステップS561)。
For example, when the update flag information read from the update flag area X5 is "0xBB", the determining
一方、更新フラグ領域X5から読み出された更新フラグ情報が「0xAA」である場合、決定部261は、データ領域Xを読み取り面に決定する(ステップS563)。そして、自動改札機100は読み取り処理を終了する。
On the other hand, when the update flag information read from the update flag area X5 is "0xAA", the determining
図21は、第3実施形態における自動改札機100による書き込み処理の一例を示すフローチャートである。まず、決定部261は、読み取り面に応じて(ステップS601)、書き込み面を決定する。読み取り面がデータ領域Yである場合、あるいは、データ領域XとYの両方について読み取りデータがない場合、決定部261は、書き取り面をデータ領域Xに決定する(ステップS603)。そして、決定部261は、書き込み時の更新フラグ情報を「0xAA」に決定する(ステップS609)。
FIG. 21 is a flowchart showing an example of writing processing by the
一方、ステップS601において、読み取り面がデータ領域Xである場合、決定部261は、書き取り面をデータ領域Yに決定する(ステップS611)。そして、決定部261は、書き込み時の更新フラグ情報を「0xBB」に決定する(ステップS615)。
On the other hand, if the reading surface is the data area X in step S601, the
本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。 While several embodiments of the invention have been described, these embodiments have been presented by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and modifications can be made without departing from the scope of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, as well as the scope of the invention described in the claims and equivalents thereof.
1…カード媒体、2…基材、3…二次元コード、4…RFIDタグ、100…自動改札機、200…主機、210…リーダライタ部、220…上面表示部、230…正面表示部、240…扉部、250…扉部、260…制御部、261…決定部、262…通過可否判定部、263…通過制御部、264…リーダライタ制御部、265…通信制御部、266…復号化処理部
DESCRIPTION OF
Claims (13)
前記通信部が前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定する決定部と、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記決定部により前記読み取り面と決定されていない方のデータ領域に所定情報を書き込む書込部と、
を備え、
前記書込部は、
前記第1データ領域に情報を書き込む場合、前記第1方向において前記第1データ領域の直前と直後の第1更新フラグ領域に第1更新フラグ情報を書き込み、
前記第2データ領域に情報を書き込む場合、前記第1方向において前記第2データ領域の直前と直後の第2更新フラグ領域に前記第1更新フラグ情報と異なる第2更新フラグ情報を書き込み、
前記第1更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報および前記第2更新フラグ情報と異なる第3更新フラグ情報を、前記第1更新フラグ領域に書き込み、
前記第2更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報、前記第2更新フラグ情報、および第3更新フラグ情報と異なる第4更新フラグ情報を、前記第2更新フラグ領域に書き込む、
自動改札機。 a communication unit for communicating with an electronic device having a first direction in which a reading direction and a writing direction are the same, and comprising a first data area and a second data area behind the first data area in the first direction;
a determination unit that determines a reading surface of the first data area or the second data area based on the information read from the electronic device by the communication unit;
a writing unit that writes predetermined information to the data area that is not determined as the reading surface by the determining unit when passage is permitted based on information read from the data area determined as the reading surface;
with
The writing unit
when writing information in the first data area, writing the first update flag information in first update flag areas immediately before and after the first data area in the first direction;
when writing information in the second data area, writing second update flag information different from the first update flag information in second update flag areas immediately before and after the second data area in the first direction;
When the first update flag information is written in the first update flag area, third update flag information different from the first update flag information and the second update flag information is written in the first update flag area. ,
When the second update flag information is written in the second update flag area, the fourth update flag information different from the first update flag information, the second update flag information, and the third update flag information is written to the write to the second update flag area;
Automatic ticket gate.
前記第1更新フラグ領域に前記第1更新フラグ情報が書き込まれており、且つ、前記第2更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第2データ領域を前記読み取り面に決定し、
前記第1更新フラグ領域に前記第3更新フラグ情報が書き込まれており、且つ、前記第2更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第1データ領域を前記読み取り面に決定し、
前記第1更新フラグ領域に前記第3更新フラグ情報が書き込まれており、且つ、前記第2更新フラグ領域に前記第4更新フラグ情報が書き込まれている場合、前記第2データ領域を前記読み取り面に決定し、
前記第1更新フラグ領域に前記第1更新フラグ情報が書き込まれており、且つ、前記第2更新フラグ領域に前記第4更新フラグ情報が書き込まれている場合、前記第1データ領域を前記読み取り面に決定する、
請求項1に記載の自動改札機。 The decision unit
When the first update flag information is written in the first update flag area and the second update flag information is written in the second update flag area, the second data area is read from the reading surface. decided to
When the third update flag information is written in the first update flag area and the second update flag information is written in the second update flag area, the first data area is read from the reading surface. decided to
When the third update flag information is written in the first update flag area and the fourth update flag information is written in the second update flag area, the second data area is read from the reading surface. decided to
When the first update flag information is written in the first update flag area and the fourth update flag information is written in the second update flag area, the first data area is read from the reading surface. decide to
The automatic ticket gate according to claim 1 .
前記通信部が前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定する決定部と、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記決定部により前記読み取り面と決定されていない方のデータ領域に所定情報を書き込む書込部と、
を備え、
前記書込部は、
前記第1データ領域に情報を書き込む場合、前記第1方向において前記第1データ領域の直前の第3更新フラグ領域と、前記第1方向において前記第1データ領域の直後であって且つ前記第2データ領域の直前である第4更新フラグ領域に、第1更新フラグ情報を書き込み、
前記第2データ領域に情報を書き込む場合、前記第4更新フラグ領域と、前記第1方向において前記第2データ領域の直後の第5更新フラグ領域に、前記第1更新フラグ情報と異なる第2更新フラグ情報あるいは、前記第1更新フラグ情報および前記第2更新フラグ情報と異なる第5更新フラグ情報を書き込む、
自動改札機。 a communication unit for communicating with an electronic device having a first direction in which a reading direction and a writing direction are the same, and comprising a first data area and a second data area behind the first data area in the first direction;
a determination unit that determines a reading surface of the first data area or the second data area based on the information read from the electronic device by the communication unit;
a writing unit that writes predetermined information to the data area that is not determined as the reading surface by the determining unit when passage is permitted based on information read from the data area determined as the reading surface;
with
The writing unit
When writing information in the first data area, a third update flag area immediately before the first data area in the first direction and a second update flag area immediately after the first data area in the first direction and the second update flag area immediately before the first data area in the first direction. writing the first update flag information in the fourth update flag area immediately before the data area;
When information is written in the second data area, second update flag information different from the first update flag information is written in the fourth update flag area and in the fifth update flag area immediately after the second data area in the first direction. writing flag information or fifth update flag information different from the first update flag information and the second update flag information;
Automatic ticket gate.
前記第3更新フラグ領域と前記第4更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1データ領域を前記読み取り面に決定し、
前記第4更新フラグ領域と前記第5更新フラグ領域に前記第2更新フラグ情報あるいは前記第5更新フラグ情報が書き込まれている場合、前記第2データ領域を前記読み取り面に決定する、
請求項3に記載の自動改札機。 The decision unit
determining the first data area as the reading surface when the first update flag information is written in the third update flag area and the fourth update flag area;
determining the second data area as the reading surface when the second update flag information or the fifth update flag information is written in the fourth update flag area and the fifth update flag area;
The automatic ticket gate according to claim 3 .
前記通信部が前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定する決定部と、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記決定部により前記読み取り面と決定されていない方のデータ領域に所定情報を書き込む書込部と、
を備え、
前記書込部は、
前記第1方向において前記第1データ領域の直前の第6更新フラグ領域と、前記第1方向において前記第2データ領域の直後の第7更新フラグ領域とに、第1更新フラグ情報および前記第1更新フラグ情報と異なる第2更新フラグ情報を交互に書き込み、
前記決定部は、
前記第6更新フラグ領域と前記第7更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1データ領域を前記読み取り面に決定し、
前記第6更新フラグ領域と前記第7更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第2データ領域を前記読み取り面に決定する、
自動改札機。 a communication unit for communicating with an electronic device having a first direction in which a reading direction and a writing direction are the same, and comprising a first data area and a second data area behind the first data area in the first direction;
a determination unit that determines a reading surface of the first data area or the second data area based on the information read from the electronic device by the communication unit;
a writing unit that writes predetermined information to the data area that is not determined as the reading surface by the determining unit when passage is permitted based on information read from the data area determined as the reading surface;
with
The writing unit
First update flag information and the first alternately writing second update flag information different from update flag information;
The decision unit
determining the first data area as the reading surface when the first update flag information is written in the sixth update flag area and the seventh update flag area;
determining the second data area as the reading surface when the second update flag information is written in the sixth update flag area and the seventh update flag area;
Automatic ticket gate.
前記第1データ領域あるいは前記第2データ領域のうち、書き込まれている情報が正常である方を、前記読み取り面に決定する、
請求項1から5のうちいずれか一項に記載の自動改札機。 The decision unit
determining which of the first data area and the second data area, in which written information is normal, as the reading surface;
The automatic ticket gate according to any one of claims 1 to 5 .
前記第1データ領域と前記第2データ領域の両方において、書き込まれた情報が正常である場合、情報が書き込まれたタイミングが新しい方を、前記読み取り面に決定する、
請求項1から6のうちいずれか一項に記載の自動改札機。 The decision unit
If the written information is normal in both the first data area and the second data area, the one with the newer timing of information writing is determined as the reading surface.
The automatic ticket gate according to any one of claims 1 to 6 .
読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信し、
前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定し、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記読み取り面に決定されていない方のデータ領域に所定情報を書き込み、
前記第1データ領域に情報を書き込む場合、前記第1方向において前記第1データ領域の直前と直後の第1更新フラグ領域に第1更新フラグ情報を書き込み、
前記第2データ領域に情報を書き込む場合、前記第1方向において前記第2データ領域の直前と直後の第2更新フラグ領域に前記第1更新フラグ情報と異なる第2更新フラグ情報を書き込み、
前記第1更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報および前記第2更新フラグ情報と異なる第3更新フラグ情報を、前記第1更新フラグ領域に書き込み、
前記第2更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報、前記第2更新フラグ情報、および第3更新フラグ情報と異なる第4更新フラグ情報を、前記第2更新フラグ領域に書き込む、
通過管理方法。 the computer
Communicating with an electronic device having a first direction in which a read direction and a write direction are the same, and comprising a first data area and a second data area after the first data area in the first direction;
determining a reading surface of the first data area or the second data area based on the information read from the electronic device;
When passage is permitted based on information read from the data area determined on the reading surface, writing predetermined information in the data area not determined on the reading surface;
when writing information in the first data area, writing the first update flag information in first update flag areas immediately before and after the first data area in the first direction;
when writing information in the second data area, writing second update flag information different from the first update flag information in second update flag areas immediately before and after the second data area in the first direction;
When the first update flag information is written in the first update flag area, third update flag information different from the first update flag information and the second update flag information is written in the first update flag area. ,
When the second update flag information is written in the second update flag area, the fourth update flag information different from the first update flag information, the second update flag information, and the third update flag information is written to the write to the second update flag area;
Passage control method.
読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信し、
前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定し、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記読み取り面に決定されていない方のデータ領域に所定情報を書き込み、
前記第1データ領域に情報を書き込む場合、前記第1方向において前記第1データ領域の直前の第3更新フラグ領域と、前記第1方向において前記第1データ領域の直後であって且つ前記第2データ領域の直前である第4更新フラグ領域に、第1更新フラグ情報を書き込み、
前記第2データ領域に情報を書き込む場合、前記第4更新フラグ領域と、前記第1方向において前記第2データ領域の直後の第5更新フラグ領域に、前記第1更新フラグ情報と異なる第2更新フラグ情報あるいは、前記第1更新フラグ情報および前記第2更新フラグ情報と異なる第5更新フラグ情報を書き込む、
通過管理方法。 the computer
Communicating with an electronic device having a first direction in which a read direction and a write direction are the same, and comprising a first data area and a second data area after the first data area in the first direction;
determining a reading surface of the first data area or the second data area based on the information read from the electronic device;
When passage is permitted based on information read from the data area determined on the reading surface, writing predetermined information in the data area not determined on the reading surface;
When writing information in the first data area, a third update flag area immediately before the first data area in the first direction and a second update flag area immediately after the first data area in the first direction and the second update flag area immediately before the first data area in the first direction. writing the first update flag information in the fourth update flag area immediately before the data area;
When information is written in the second data area, second update flag information different from the first update flag information is written in the fourth update flag area and in the fifth update flag area immediately after the second data area in the first direction. writing flag information or fifth update flag information different from the first update flag information and the second update flag information;
Passage control method.
読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信し、
前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定し、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記読み取り面に決定されていない方のデータ領域に所定情報を書き込み、
前記第1方向において前記第1データ領域の直前の第6更新フラグ領域と、前記第1方向において前記第2データ領域の直後の第7更新フラグ領域とに、第1更新フラグ情報および前記第1更新フラグ情報と異なる第2更新フラグ情報を交互に書き込み、
前記第6更新フラグ領域と前記第7更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1データ領域を前記読み取り面に決定し、
前記第6更新フラグ領域と前記第7更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第2データ領域を前記読み取り面に決定する、
通過管理方法。 the computer
Communicating with an electronic device having a first direction in which a read direction and a write direction are the same, and comprising a first data area and a second data area after the first data area in the first direction;
determining a reading surface of the first data area or the second data area based on the information read from the electronic device;
When passage is permitted based on information read from the data area determined on the reading surface, writing predetermined information in the data area not determined on the reading surface;
First update flag information and the first alternately writing second update flag information different from update flag information;
determining the first data area as the reading surface when the first update flag information is written in the sixth update flag area and the seventh update flag area;
determining the second data area as the reading surface when the second update flag information is written in the sixth update flag area and the seventh update flag area;
Passage control method.
読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信させ、
前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定させ、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記読み取り面に決定されていない方のデータ領域に所定情報を書き込ませ、
前記第1データ領域に情報を書き込ませる場合、前記第1方向において前記第1データ領域の直前と直後の第1更新フラグ領域に第1更新フラグ情報を書き込ませ、
前記第2データ領域に情報を書き込ませる場合、前記第1方向において前記第2データ領域の直前と直後の第2更新フラグ領域に前記第1更新フラグ情報と異なる第2更新フラグ情報を書き込ませ、
前記第1更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報および前記第2更新フラグ情報と異なる第3更新フラグ情報を、前記第1更新フラグ領域に書き込ませ、
前記第2更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第1更新フラグ情報、前記第2更新フラグ情報、および第3更新フラグ情報と異なる第4更新フラグ情報を、前記第2更新フラグ領域に書き込ませる、
プログラム。 to the computer,
Communicate with an electronic device having a first direction in which a read direction and a write direction are the same, and comprising a first data area and a second data area after the first data area in the first direction;
determining a reading surface of the first data area or the second data area based on information read from the electronic device;
If passage is permitted based on the information read from the data area determined on the reading surface, writing predetermined information in the data area that is not determined on the reading surface ,
when writing information in the first data area, writing the first update flag information in the first update flag areas immediately before and after the first data area in the first direction;
when writing information in the second data area, writing second update flag information different from the first update flag information in second update flag areas immediately before and after the second data area in the first direction;
When the first update flag information is written in the first update flag area, third update flag information different from the first update flag information and the second update flag information is written in the first update flag area. height,
When the second update flag information is written in the second update flag area, the fourth update flag information different from the first update flag information, the second update flag information, and the third update flag information is written to the causing the second update flag area to be written;
program.
読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信させ、
前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定させ、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記読み取り面に決定されていない方のデータ領域に所定情報を書き込ませ、
前記第1データ領域に情報を書き込ませる場合、前記第1方向において前記第1データ領域の直前の第3更新フラグ領域と、前記第1方向において前記第1データ領域の直後であって且つ前記第2データ領域の直前である第4更新フラグ領域に、第1更新フラグ情報を書き込ませ、
前記第2データ領域に情報を書き込ませる場合、前記第4更新フラグ領域と、前記第1方向において前記第2データ領域の直後の第5更新フラグ領域に、前記第1更新フラグ情報と異なる第2更新フラグ情報あるいは、前記第1更新フラグ情報および前記第2更新フラグ情報と異なる第5更新フラグ情報を書き込ませる、
プログラム。 to the computer,
Communicate with an electronic device having a first direction in which a read direction and a write direction are the same, and comprising a first data area and a second data area after the first data area in the first direction;
determining a reading surface of the first data area or the second data area based on information read from the electronic device;
If passage is permitted based on the information read from the data area determined on the reading surface, writing predetermined information in the data area that is not determined on the reading surface ,
When writing information in the first data area, a third update flag area immediately before the first data area in the first direction and a third update flag area immediately after the first data area in the first direction and the first update flag area causing the first update flag information to be written in the fourth update flag area immediately preceding the second data area;
When writing information in the second data area, a second update flag information different from the first update flag information is written in the fourth update flag area and a fifth update flag area immediately after the second data area in the first direction. writing update flag information or fifth update flag information different from the first update flag information and the second update flag information;
program.
読み取り方向と書き込み方向が同じ第1方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信させ、
前記電子装置から読み出した情報に基づいて、前記第1データ領域あるいは前記第2データ領域のうち、読み取り面を決定させ、
前記読み取り面に決定されたデータ領域から読み取った情報に基づいて通過が許可された場合、前記読み取り面に決定されていない方のデータ領域に所定情報を書き込ませ、
前記第1方向において前記第1データ領域の直前の第6更新フラグ領域と、前記第1方向において前記第2データ領域の直後の第7更新フラグ領域とに、第1更新フラグ情報および前記第1更新フラグ情報と異なる第2更新フラグ情報を交互に書き込ませ、
前記第6更新フラグ領域と前記第7更新フラグ領域に前記第1更新フラグ情報が書き込まれている場合、前記第1データ領域を前記読み取り面に決定させ、
前記第6更新フラグ領域と前記第7更新フラグ領域に前記第2更新フラグ情報が書き込まれている場合、前記第2データ領域を前記読み取り面に決定させる、
プログラム。 to the computer,
Communicate with an electronic device having a first direction in which a read direction and a write direction are the same, and comprising a first data area and a second data area after the first data area in the first direction;
determining a reading surface of the first data area or the second data area based on information read from the electronic device;
If passage is permitted based on the information read from the data area determined on the reading surface, writing predetermined information in the data area that is not determined on the reading surface ,
First update flag information and the first alternately writing the second update flag information different from the update flag information;
determining the first data area as the reading surface when the first update flag information is written in the sixth update flag area and the seventh update flag area;
If the second update flag information is written in the sixth update flag area and the seventh update flag area, determining the second data area as the reading surface;
program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018217269A JP7204438B2 (en) | 2018-11-20 | 2018-11-20 | Automatic ticket gate, passage control method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018217269A JP7204438B2 (en) | 2018-11-20 | 2018-11-20 | Automatic ticket gate, passage control method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2020086704A JP2020086704A (en) | 2020-06-04 |
| JP7204438B2 true JP7204438B2 (en) | 2023-01-16 |
Family
ID=70909954
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2018217269A Active JP7204438B2 (en) | 2018-11-20 | 2018-11-20 | Automatic ticket gate, passage control method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7204438B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104281862A (en) | 2014-10-10 | 2015-01-14 | 国家电网公司 | A segmented continuation and protection method of UHF RFID memory area |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2833136B2 (en) * | 1990-04-03 | 1998-12-09 | オムロン株式会社 | Non-contact storage media processing system |
| JPH08335175A (en) * | 1995-06-06 | 1996-12-17 | Shinko Electric Co Ltd | Writing / reading method for shared memory |
-
2018
- 2018-11-20 JP JP2018217269A patent/JP7204438B2/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104281862A (en) | 2014-10-10 | 2015-01-14 | 国家电网公司 | A segmented continuation and protection method of UHF RFID memory area |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2020086704A (en) | 2020-06-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4434549B2 (en) | Management apparatus and management method | |
| US4829169A (en) | IC card having state marker for record access | |
| US9298756B1 (en) | Read/write RFID system for animals | |
| KR970004106B1 (en) | Ic card | |
| ES2204049T3 (en) | PROCEDURE AND DEVICE FOR THE PROCESSING OF CODED INFORMATION WITH A CHIP CARD. | |
| CN112330459B (en) | Method and device for mining enterprise investment and financing event based on business data | |
| CN106095613A (en) | Use the rollback database of WAL | |
| JP7204438B2 (en) | Automatic ticket gate, passage control method, and program | |
| JP2008158890A5 (en) | ||
| CN107239229A (en) | Method for performing data renewal | |
| JPS62177696A (en) | Multipurpose IC card and how to use it | |
| JP2017207854A (en) | Customer management system and customer management method | |
| Otuagoma et al. | Design and development of a hospital biometric data management system | |
| JP5308927B2 (en) | Device information management apparatus and method | |
| JP4626937B2 (en) | Achievement time collection system, RFID reader / writer, and achievement time collection method | |
| JP2006155247A (en) | Unit information collecting apparatus, system and program for plural information processing apparatuses | |
| JP7528904B2 (en) | Information processing method, card, secure device, microcontroller and computer program | |
| JP2005259033A (en) | Rfid consultation ticket system for single medical institution/a plurality of medical institutions, and using method therefor | |
| Walczowski et al. | Training in the use of java smart cards for embedded applications | |
| JP2003228618A (en) | Periodic patrol business management method using non-contact IC tag | |
| JP4836707B2 (en) | Portable electronic device and IC card | |
| JP7731261B2 (en) | Time management device, work management system, information processing method and program | |
| JP2005059453A (en) | Image forming apparatus, program, and computer-readable recording medium | |
| JPH03208192A (en) | Collected ic card using system | |
| JP6888984B2 (en) | Information processing equipment and programs |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210910 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220819 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220830 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20221031 |
|
| 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: 20221206 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20221228 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7204438 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |