Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7204438B2 - Automatic ticket gate, passage control method, and program - Google Patents
[go: Go Back, main page]

JP7204438B2 - Automatic ticket gate, passage control method, and program - Google Patents

Automatic ticket gate, passage control method, and program Download PDF

Info

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
Application number
JP2018217269A
Other languages
Japanese (ja)
Other versions
JP2020086704A (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.)
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
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 Toshiba Corp, Toshiba Infrastructure Systems and Solutions Corp filed Critical Toshiba Corp
Priority to JP2018217269A priority Critical patent/JP7204438B2/en
Publication of JP2020086704A publication Critical patent/JP2020086704A/en
Application granted granted Critical
Publication of JP7204438B2 publication Critical patent/JP7204438B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2007-310590号公報Japanese Patent Application Laid-Open No. 2007-310590

本発明が解決しようとする課題は、利用者や係員の作業負担の軽減に貢献することができる自動改札機、通過管理方法、およびプログラムを提供することである。 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 update flag information 4 Update flag information is written in the second update flag area.

第1実施形態の電子装置の一例を示す平面図。FIG. 2 is a plan view showing an example of the electronic device according to the first embodiment; カード媒体1のメモリ4aのデータ領域4bの一例を示す図。4 is a diagram showing an example of a data area 4b of a memory 4a of the card medium 1; FIG. 第1実施形態の自動改札機100を上方から見た図。The figure which looked at the automatic ticket gate 100 of 1st Embodiment from upper direction. 第1実施形態の自動改札機100の構成の一例を示す図。The figure which shows an example of a structure of the automatic ticket gate 100 of 1st Embodiment. カード媒体1のデータ領域4bに書き込まれる情報の一例を示す図。4 is a diagram showing an example of information written in a data area 4b of the card medium 1; FIG. 第1実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。4 is a flowchart showing an example of reading processing by the automatic ticket gate 100 in the first embodiment; 第1実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。4 is a flowchart showing an example of reading processing by the automatic ticket gate 100 in the first embodiment; 第1実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。4 is a flowchart showing an example of reading processing by the automatic ticket gate 100 in the first embodiment; 第1実施形態における自動改札機100による書き込み処理の一例を示すフローチャート。4 is a flowchart showing an example of writing processing by the automatic ticket gate 100 in the first embodiment; 第2実施形態におけるデータ領域4b-2の一例を示す図。The figure which shows an example of the data area 4b-2 in 2nd Embodiment. カード媒体1のデータ領域4b-2に書き込まれる情報の一例を示す図。4 is a diagram showing an example of information written in a data area 4b-2 of the card medium 1; FIG. 第2実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。The flowchart which shows an example of the reading process by the automatic ticket gate 100 in 2nd Embodiment. 第2実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。The flowchart which shows an example of the reading process by the automatic ticket gate 100 in 2nd Embodiment. 第2実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。The flowchart which shows an example of the reading process by the automatic ticket gate 100 in 2nd Embodiment. 第2実施形態における自動改札機100による書き込み処理の一例を示すフローチャート。The flowchart which shows an example of the write-in process by the automatic ticket gate 100 in 2nd Embodiment. 第3実施形態におけるデータ領域4b-3の一例を示す図。The figure which shows an example of the data area 4b-3 in 3rd Embodiment. カード媒体1のデータ領域4b-3に書き込まれる情報の一例を示す図。4 is a diagram showing an example of information written in a data area 4b-3 of the card medium 1; FIG. 第3実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。The flowchart which shows an example of the reading process by the automatic ticket gate 100 in 3rd Embodiment. 第3実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。The flowchart which shows an example of the reading process by the automatic ticket gate 100 in 3rd Embodiment. 第3実施形態における自動改札機100による読み取り処理の一例を示すフローチャート。The flowchart which shows an example of the reading process by the automatic ticket gate 100 in 3rd Embodiment. 第3実施形態における自動改札機100による書き込み処理の一例を示すフローチャート。The flowchart which shows an example of the write-in process by the automatic ticket gate 100 in 3rd Embodiment.

以下、実施形態の自動改札機、通過管理方法、およびプログラムを、図面を参照して説明する。 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 card medium 1 in which an RFID (Radio Frequency Identifier) tag is embedded in the base material. The electronic device of the embodiment may be one in which an RFID tag is embedded in a base material of various shapes without being limited to a card shape.

カード媒体1は、例えば、二次元コード3が印刷された表示面2aを有する基材2と、基材2に漉き込まれたRFIDタグ4とを備える。二次元コード3にはRFIDタグ4のタグIDが記録されており、RFIDタグ4の読み書きをおこなうためには二次元コード3を先に読み取る必要がある。二次元コード3は、「表示オブジェクト」の一例である。二次元コード3は、基材2の表示面2aに印刷された光読取りコードである。利用者は、カード媒体1の外見から二次元コード3を目視で確認できる。二次元コード3の具体例としては、例えばQRコード(株式会社デンソーウェーブの登録商標)等が挙げられる。 The card medium 1 includes, for example, a base material 2 having a display surface 2a on which a two-dimensional code 3 is printed, and an RFID tag 4 embedded in the base material 2. FIG. The tag ID of the RFID tag 4 is recorded in the two-dimensional code 3, and in order to read/write the RFID tag 4, the two-dimensional code 3 must be read first. The two-dimensional code 3 is an example of a "display object". The two-dimensional code 3 is an optically readable code printed on the display surface 2a of the substrate 2. FIG. A user can visually confirm the two-dimensional code 3 from the appearance of the card medium 1. - 特許庁A specific example of the two-dimensional code 3 is a QR code (registered trademark of Denso Wave Inc.).

二次元コード3には、乗車券の種別や効力を示す効力情報などがエンコードされていてもよい。エンコードとは、情報を、符号化、記号化、その他の手法により、人が内容を直接的に認識できない状態に変換することをいう。また、効力情報とは、例えば以下のような情報であり、乗車券の利用可能な範囲を規定する情報である。なお、二次元コード3に代えて、バーコードその他の、情報がエンコードされた任意の種類の表示オブジェクトが印刷されてもよい。また、乗車券は、1回の乗車についての効力を有する通常券であってもよいし、利用日において何度も利用可能な1日乗車券などであってもよい。
(1)一日乗車券
例:〇〇鉄道の全ての区間を、回数の制限なく、一日利用可能
(2)利用可能な区間および日付
例:〇〇駅~××駅までの区間を、12/1~12/31まで利用可能
(3)運賃上限および利用可能な日付
例:運賃500円までの区間を、12/1~12/31まで利用可能
The two-dimensional code 3 may be encoded with validity information indicating the ticket type and validity. Encoding refers to transforming information into a state in which the contents cannot be directly recognized by humans by encoding, symbolizing, or other techniques. Further, the validity information is, for example, the following information, and is information that defines the range in which the ticket can be used. Any type of display object in which information is encoded, such as a bar code, may be printed instead of the two-dimensional code 3 . Also, the ticket may be a regular ticket valid for one ride, or a one-day ticket that can be used any number of times on the day of use.
(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 tag 4 includes a chip and an antenna. The RFID tag 4 is embedded inside the card medium 1 by being embedded in the base material 2 . The chip of the RFID tag 4 is, for example, a passive type IC (Integrated Circuit) chip. The chip of the RFID tag 4 transmits and receives information to and from the reader/writer section of the automatic ticket gate using RFID technology. Processing by the chip of the RFID tag 4 is performed, for example, by a command response method of responding to a command received via the antenna of the RFID tag 4 from a reader/writer of an automatic ticket gate.

RFIDタグ4のチップの制御回路は、自動改札機のリーダライタから指示されたデータをメモリ4aに書き込んだり、メモリ4aから読み出したデータを、アンテナを介して自動改札機のリーダライタに送信したりする。 The control circuit of the chip of the RFID tag 4 writes the data instructed by the reader/writer of the automatic ticket gate into the memory 4a, and transmits the data read from the memory 4a to the reader/writer of the automatic ticket gate through the antenna. do.

RFIDタグ4のチップのメモリ4aは、例えば、EEPROM(Electrically Erasable Programmable Read-Only Memory)等の読書き可能な不揮発性記憶媒体を含む。メモリ4aには、例えば、カード媒体1の利用記録が、自動改札機のリーダライタによって書き込まれる。カード媒体1の利用記録とは、例えば、利用駅(入場駅、出場駅)、利用日時(入場日時、出場日時)等の情報である。 The memory 4a of the chip of the RFID tag 4 includes, for example, a readable/writable nonvolatile storage medium such as EEPROM (Electrically Erasable Programmable Read-Only Memory). For example, a usage record of the card medium 1 is written in the memory 4a by a reader/writer of an automatic ticket gate. The usage record of the card medium 1 is, for example, information such as usage station (entrance station, exit station), usage date and time (entrance date and time, departure date and time).

図2は、カード媒体1のメモリ4aのデータ領域4bの一例を示す図である。データ領域4bにおける読み取り方向と書き込み方向は同一であり、第1方向d1である。 FIG. 2 is a diagram showing an example of the data area 4b of the memory 4a of the card medium 1. As shown in FIG. The reading direction and the writing direction in the data area 4b are the same, which is the first direction d1.

データ領域4bは、2つのデータ領域XとYとを含む。データ領域XとYには、それぞれカード媒体1の利用記録が交互に書き込まれる。データ領域Xの直前には更新フラグ領域X1が、データ領域Xの直後には更新フラグ領域X1が、それぞれ設定されている。データ領域Yの直前には更新フラグ領域Y1が、データ領域Yの直後には更新フラグ領域Y1が、それぞれ設定されている。 Data area 4b includes two data areas X and Y. FIG. Usage records of the card medium 1 are alternately written in the data areas X and Y, respectively. An update flag area X1 is set immediately before the data area X, and an update flag area X1 is set immediately after the data area X, respectively. An update flag area Y1 is set immediately before the data area Y, and an update flag area Y1 is set immediately after the data area Y, respectively.

データ領域4bにおいて、データ領域XとYの位置、更新フラグ領域X1,X2,Y1,Y2の位置は、それぞれアドレスで管理されている。例えば、更新フラグ領域X1の先頭位置はアドレスP1であり、更新フラグ領域Y1の先頭位置はアドレスP2である。アドレスP1を指定して、更新フラグ領域X1の先頭から情報を書き込むことより、「更新フラグ領域X1+データ領域X+更新フラグ領域X2」に対して情報を書き込むことができる。また、アドレスP2を指定して、更新フラグ領域Y1の先頭から情報を書き込むことより、「更新フラグ領域Y1+データ領域Y+更新フラグ領域Y2」に対して情報を書き込むことができる。 In the data area 4b, the positions of the data areas X and Y and the positions of the update flag areas X1, X2, Y1 and Y2 are managed by addresses. For example, the top position of update flag area X1 is address P1, and the top position of update flag area Y1 is address P2. By designating the address P1 and writing information from the top of the update flag area X1, information can be written to "update flag area X1+data area X+update flag area X2". Further, by designating the address P2 and writing information from the top of the update flag area Y1, information can be written to "update flag area Y1+data area Y+update flag area Y2".

図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 automatic ticket gate 100 of the first embodiment. The automatic ticket gate 100 includes a main machine 200 and a slave machine 300 facing each other across a passage. The main device 200 includes, for example, a reader/writer section 210, a top display section 220, a front display section 230, a door section 240 and a door section 250, and a control section 260. Slave device 300 also includes reader/writer section 310 , upper display section 320 , front display section 330 , and door sections 340 and 350 .

主機200のリーダライタ部210は、図3のa方向に通過しようとする利用者によって翳されたカード媒体1に記憶された情報を読み取って、読み取った情報を制御部260に送信する。上面表示部220は、制御部260によって処理された結果を表示する。正面表示部230は、a方向に通過可能であるか否かを示すマークや図形、文字等を表示する。正面表示部230の表示内容は、制御部260によって決定される。図3の例では、自動改札機100は、a方向の通過のみ許可する動作モード(第1の動作モード)に設定されているため、主機200の正面表示部230は、通過を許可することを示すマークを表示している。制御部260は、主機200と従機300の各部を制御する。 The reader/writer unit 210 of the main unit 200 reads the information stored in the card medium 1 held by the user who is about to pass in the direction a in FIG. The top display unit 220 displays the results processed by the control unit 260 . The front display unit 230 displays marks, figures, characters, etc. indicating whether or not it is possible to pass in the direction a. The display content of front display section 230 is determined by control section 260 . In the example of FIG. 3, since the automatic ticket gate 100 is set to the operation mode (first operation mode) that permits passage only in the direction of a, the front display section 230 of the main machine 200 indicates that passage is permitted. A mark is displayed. The controller 260 controls each part of the main machine 200 and the slave machine 300 .

一方、従機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/writer unit 310 of the slave device 300 reads the information stored in the card medium 1 held up by the user who is about to pass in the b direction, and transmits the read information to the control unit 260 of the main device 200. . The upper surface display section 320 displays the result processed by the control section 260 of the main machine 200 when the card medium 1 is held over the reader/writer section 310 . The front display unit 330 displays marks, figures, characters, etc., indicating whether or not it is possible to pass in the b direction. The display content of the front display section 330 is determined by the control section 260 of the main machine 200 . In the example of FIG. 3, the automatic ticket gate 100 is set to the first operation mode that permits passage only in the direction of a. it's shown.

リーダライタ部210および310は、例えば、リーダライタ面210aおよび310aに翳されたカード媒体1と通信する。リーダライタ部210および310は、カード媒体1から各種情報を読み取る読み取り処理を実行する。例えば、リーダライタ部210および310は、カードIDと利用記録情報を取得する。カードIDとは、カード媒体1を識別する識別情報である。利用記録情報は、上述した通り、例えば利用駅、利用日時等の情報を含むカード媒体1の利用記録を示す情報である。 The reader/writer units 210 and 310, for example, communicate with the card medium 1 held over the reader/writer surfaces 210a and 310a. The reader/writer units 210 and 310 execute reading processing for reading various information from the card medium 1 . For example, the reader/writer units 210 and 310 acquire card IDs and usage record information. A card ID is identification information for identifying the card medium 1 . The usage record information is, as described above, information indicating the usage record of the card medium 1 including information such as the station used and the date and time of use.

また、リーダライタ部210および310は、リーダライタ面210aおよび310aに翳されたカード媒体1に対して、情報の書き込み処理を実行する。リーダライタ部210および310において、1回の書き込みで書き込めるデータ長さが決められている。リーダライタ部210および310は、カード媒体1のデータ領域XやYに情報を書き込む場合、情報を分割して、複数回に分けて全ての情報を書き込む。このため、書き込み処理の途中で、カード媒体がリーダライタ面210aおよび310aから離されると、書き込み処理が途中で終了してしまうため、カード媒体1に書き込まれた情報が破損する。 In addition, the reader/writer units 210 and 310 write information to the card medium 1 held over the reader/writer surfaces 210a and 310a. In the reader/writer units 210 and 310, the data length that can be written in one write is determined. When writing information to the data areas X and Y of the card medium 1, the reader/writer units 210 and 310 divide the information and write all the information in a plurality of times. Therefore, if the card medium is separated from the reader/writer surfaces 210a and 310a in the middle of the writing process, the writing process ends halfway, and the information written in the card medium 1 is damaged.

制御部260は、自動改札機100が第1の動作モードに設定されている場合には、扉部250および350を開放状態に維持すると共に、扉部240および340を開放状態または閉止状態に制御することで、a方向の利用者の通過を許可または禁止する。また、制御部260は、自動改札機100が図1のb方向の通過のみ許可する動作モード(第2の動作モード)に設定されている場合には、扉部240および340を開放状態に維持すると共に、扉部250および350を開放状態または閉止状態に制御することで、b方向の利用者の通過を許可または禁止する。 When the automatic ticket gate 100 is set to the first operation mode, the control unit 260 keeps the doors 250 and 350 open and controls the doors 240 and 340 to open or close. By doing so, the passage of the user in the direction of a is permitted or prohibited. Further, when the automatic ticket gate 100 is set to an operation mode (second operation mode) that permits passage only in the direction b in FIG. At the same time, by controlling the doors 250 and 350 to be open or closed, the passage of the user in the b direction is permitted or prohibited.

主機200の制御部260は、リーダライタ部210あるいはリーダライタ部310により読み取られた情報に基づいて、通過の可否を判定し、扉部240,250,340,350を制御する。 The control unit 260 of the main machine 200 determines whether passage is permitted based on the information read by the reader/writer unit 210 or the reader/writer unit 310, and controls the door units 240, 250, 340, and 350.

図4は、第1実施形態の自動改札機100の構成の一例を示す図である。以下、説明簡略化のため、主機200の各構成について説明し、従機300の構成についての説明を省略する。 FIG. 4 is a diagram showing an example of the configuration of the automatic ticket gate 100 of the first embodiment. Hereinafter, for simplification of explanation, each configuration of the main machine 200 will be explained, and the explanation of the configuration of the slave machine 300 will be omitted.

リーダライタ部210は、リーダライタ211と、エンコード/デコード部212とを含む。リーダライタ211は、リーダライタ面210aに翳されたカード媒体1と通信する。リーダライタ211は、例えばアンテナを備え、13.56[MHz]等のISM(Industry-Science-Medical)帯の周波数帯域を利用して、カード媒体1と無線通信を行う。 The reader/writer section 210 includes a reader/writer 211 and an encoding/decoding section 212 . The reader/writer 211 communicates with the card medium 1 held over the reader/writer surface 210a. The reader/writer 211 has, for example, an antenna, and performs wireless communication with the card medium 1 using an ISM (Industry-Science-Medical) frequency band such as 13.56 [MHz].

エンコード/デコード部212は、例えば、リーダライタ211によってカード媒体1から読み取られた情報を復号して制御部260に出力すると共に、制御部260により指示された情報を暗号化してリーダライタ211に出力する。リーダライタ211は、エンコード/デコード部212から入力された情報をカード媒体1に書き込む。 For example, the encoding/decoding unit 212 decodes information read from the card medium 1 by the reader/writer 211 and outputs the information to the control unit 260 , and also encrypts information instructed by the control unit 260 and outputs the encrypted information to the reader/writer 211 . do. The reader/writer 211 writes the information input from the encoding/decoding section 212 to the card medium 1 .

記憶部270は、例えば、RAM(Random Access Memory)、ROM(Read Only Memory)、HDD(Hard Disk Drive)などによって実現される。記憶部270は、プロセッサが実行するプログラムを格納する他、駅情報271や、運賃テーブル272等を格納する。 The storage unit 270 is realized by, for example, RAM (Random Access Memory), ROM (Read Only Memory), HDD (Hard Disk Drive), and the like. The storage unit 270 stores programs executed by the processor, station information 271, a fare table 272, and the like.

制御部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 control unit 260 includes, for example, a determination unit 261, a passability determination unit 262, a pass control unit 263, a reader/writer control unit 264, a communication control unit 265, and a decoding processing unit 266. Some or all of these functional units are implemented by a processor such as a CPU (Central Processing Unit) executing programs (software) stored in the storage unit 270 . In addition, some or all of the functions of these components are implemented in hardware such as LSI (Large Scale Integration), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), and GPU (Graphics Processing Unit). (including circuitry), or may be realized by cooperation of software and hardware. The program may be stored in advance in a storage device such as a HDD (Hard Disk Drive) or flash memory, or may be stored in a removable storage medium such as a DVD or CD-ROM. It may be installed by being worn.

決定部261は、リーダライタ部210によりカード媒体1から読み出された情報に基づいて、データ領域Xあるいはデータ領域Yのうち、読み取り面がどちらであるかを決定する。また、決定部261は、データ領域Xあるいはデータ領域Yのうち、読み取り面に決定されていない方のデータ領域を、書き取り面に決定する。 Based on the information read from the card medium 1 by the reader/writer section 210, the determination section 261 determines which of the data area X and the data area Y is to be read. Further, the determining unit 261 determines the data area which has not been determined as the reading surface, either the data area X or the data area Y, as the writing surface.

例えば、決定部261は、データ領域Xあるいはデータ領域Yのうち、書き込まれている情報が正常である方を、読み取り面に決定する。データ領域Xとデータ領域Yの両方において、書き込まれた情報が正常である場合、決定部261は、情報が書き込まれたタイミングが新しい方を、読み取り面に決定する。「書き込まれた情報が正常である」とは、書き込まれた情報が破損していない状態であって、復号化された情報に異常がない状態をさらに含んでもよい。復号化された情報に異常がない状態には、例えば、情報の並び、情報の長さ、情報の配置などが予め決められた範囲内であることなどが含まれる。 For example, the determination unit 261 determines the reading surface to be the data area X or the data area Y in which the written information is normal. If the written information is normal in both the data area X and the data area Y, the determination unit 261 determines the side to be read, whichever has the most recent information written timing. "The written information is normal" may further include a state in which the written information is not damaged and a state in which the decoded information is normal. The state in which there is no abnormality in the decoded information includes, for example, that the arrangement of information, the length of information, the arrangement of information, etc. are within a predetermined range.

例えば、決定部261は、更新フラグ領域X1,X2,Y1,およびY2に書き込まれている更新フラグ情報に基づいて、各データ領域に書き込まれている情報が正常であるか否かを決定する。また、決定部261は、各更新フラグ領域に書き込まれている情報の種類に基づいて書き込まれたタイミングの新旧を決定する。更新フラグ情報の種類には、例えば、AA,BB,CC,DD…が含まれる。これらの詳細な方法については、後述する。 For example, the determining unit 261 determines whether the information written in each data area is normal based on the update flag information written in the update flag areas X1, X2, Y1, and Y2. Further, the determining unit 261 determines whether the timing of writing is new or old based on the type of information written in each update flag area. Types of update flag information include, for example, AA, BB, CC, DD, and so on. These detailed methods will be described later.

また、決定部261は、更新フラグ領域X1,X2,Y1,およびY2に書き込む更新フラグ情報の種類を決定する。例えば、決定部261は、AA,BB,CC,DD…の順に更新フラグ情報を利用するように、書き込む更新フラグ情報の種類を決定する。こうすることにより、決定部261は、更新フラグ情報の種類に基づいて、情報が書き込まれたタイミングを判定することができる。 The determining unit 261 also determines the types of update flag information to be written in the update flag areas X1, X2, Y1, and Y2. For example, the determining unit 261 determines the type of update flag information to be written so that the update flag information is used in the order of AA, BB, CC, DD, . By doing so, the determination unit 261 can determine the timing at which the information is written based on the type of update flag information.

通過可否判定部262は、リーダライタ部210により読み取られた情報のうち、決定部261により読み取り面に決定された方のデータ領域から読み取られた情報に基づいて、利用者の通過の可否を判定する。例えば、データ領域Xが決定部261により読み取り面に決定された場合、通過可否判定部262は、リーダライタ部210により読み取られた情報からデータ領域Xに対応する情報(データX´)を抽出し、抽出したデータX´に基づいて、利用者の通過の可否を判定する。なお、通過可否判定部262は、データ領域4bにおけるデータ領域Xの位置を示すアドレスを参照して、データX´を抽出する。 The passage propriety determination unit 262 determines whether or not the user can pass based on the information read from the data area determined as the reading surface by the determination unit 261 among the information read by the reader/writer unit 210. do. For example, when the data area X is determined by the determination unit 261 to be the reading surface, the passability determination unit 262 extracts information (data X′) corresponding to the data area X from the information read by the reader/writer unit 210. , based on the extracted data X', it is determined whether or not the user can pass through. Note that the passability determining unit 262 refers to the address indicating the position of the data area X in the data area 4b and extracts the data X'.

例えば、カード媒体1が1日券として利用される場合、通過可否判定部262は、当日がデータX´に含まれる利用可能期間に該当する場合、通過が可能であると判定する。また、カード媒体1が出場時に精算される乗車券として利用される場合、通過可否判定部262は、記憶部270の運賃テーブル272を照合し、データX´に含まれる駅情報に基づいて精算する運賃を導出し、カード媒体1にチャージされている残高の方が運賃よりも高い場合、通過が可能であると判定してもよい。 For example, when the card medium 1 is used as a one-day ticket, the passability determination unit 262 determines that the pass is possible if the current day falls within the available period included in the data X'. In addition, when the card medium 1 is used as a ticket to be settled when exiting the train, the pass propriety determination unit 262 collates the fare table 272 in the storage unit 270 and settles the payment based on the station information included in the data X'. A fare may be derived, and if the balance charged in the card medium 1 is higher than the fare, it may be determined that passage is possible.

通過制御部263は、通過可否判定部262による判定結果や、リーダライタ制御部264による処理結果に応じて、扉部240および250、上面表示部220、正面表示部230、またはこれらを組み合わせたものを制御する。例えば、通過可否判定部262により通過が許可され、且つ、リーダライタ制御部264によりカード媒体に対する書き込みが完了した場合、例えば、上面表示部220、正面表示部230に、カード媒体1を利用できることを表す情報を出力させ、扉部240および250を開放状態に制御して利用者の通過を許可する。 The passage control unit 263 controls the doors 240 and 250, the upper surface display unit 220, the front display unit 230, or a combination of these according to the determination result of the passage possibility determination unit 262 and the processing result of the reader/writer control unit 264. to control. For example, when passage is permitted by the passability determination unit 262 and writing to the card medium is completed by the reader/writer control unit 264, for example, the upper display unit 220 and the front display unit 230 indicate that the card medium 1 can be used. It outputs the information representing the door, controls the doors 240 and 250 to open, and permits the passage of the user.

また、通過制御部263は、通過可否判定部262によって利用者の通過を禁止すると判定された場合や、リーダライタ制御部264によりカード媒体に対する書き込みが実行中である場合、例えば、上面表示部220、正面表示部230に、カード媒体1を利用できないことを表す情報を出力させ、扉部240および250を閉止状態に制御して利用者の通過を禁止する。 Further, the passage control unit 263, when it is determined by the passage permission determination unit 262 that the passage of the user is prohibited, or when the reader/writer control unit 264 is executing writing to the card medium, for example, the upper surface display unit 220 , the front display section 230 is caused to output information indicating that the card medium 1 cannot be used, and the door sections 240 and 250 are controlled to be closed to prohibit the passage of the user.

リーダライタ制御部264は、通過可否判定部262により利用者の通過が許可された場合、決定部261により書き込み面に決定された方のデータ領域に、所定情報を書き込むようリーダライタ部210を制御する。所定情報には、例えば、利用記録(出場駅、出場日時など)、精算完了を示すフラグ、精算後のチャージ金額等が含まれる。 The reader/writer control unit 264 controls the reader/writer unit 210 so that predetermined information is written in the data area determined as the writing surface by the determination unit 261 when the passability determination unit 262 permits the passage of the user. do. The predetermined information includes, for example, usage records (departure station, departure date and time, etc.), a flag indicating completion of payment, charge amount after payment, and the like.

所定情報を書き込み面のデータ領域に書き込むとき、リーダライタ制御部264は、書き込み面のデータ領域の前後の更新フラグ領域に、決定部261により決定された種類の更新フラグ情報を書き込むようリーダライタ部210を制御する。例えば、リーダライタ制御部264は、書き込み面のデータ領域の前の更新フラグ領域の先頭のアドレスを指定して、指定したアドレスから、所定情報の前と後ろに更新フラグ情報を連結された情報を書き込むようリーダライタ部210を制御する。なお、リーダライタ制御部264は、更新フラグ情報の位置がずれないように、データ領域XやYのデータ長さに合わせて、所定情報を作成する。 When writing the predetermined information to the data area of the writing surface, the reader/writer control unit 264 causes the reader/writer unit to write the type of update flag information determined by the determining unit 261 to the update flag areas before and after the data area of the writing surface. 210. For example, the reader/writer control unit 264 designates the top address of the update flag area before the data area of the writing surface, and from the designated address, reads information in which the update flag information is linked before and after the predetermined information. Control the reader/writer unit 210 to write. Note that the reader/writer control unit 264 creates predetermined information according to the data lengths of the data areas X and Y so that the position of the update flag information does not shift.

通信制御部265は、例えば、自動改札機100に設けられる通信機器を制御して、リーダライタ部210によってカード媒体1から読み取られた情報や、カード媒体1に書き込む情報などを、サーバ装置に送信する。通信機器は、例えば、NIC等の通信インターフェースを含む。また、通信制御部265は、通信機器を用いて、サーバ装置から各種情報を受信し、記憶部270に格納してもよい。 The communication control unit 265, for example, controls communication equipment provided in the automatic ticket gate 100, and transmits information read from the card medium 1 by the reader/writer unit 210, information to be written in the card medium 1, and the like to the server device. do. A communication device includes, for example, a communication interface such as a NIC. Further, the communication control unit 265 may receive various information from the server device and store it in the storage unit 270 using a communication device.

復号化処理部266は、符号化されている情報を復号する。 The decoding processing unit 266 decodes the encoded information.

次に、制御部260による処理の一例について説明する。図5は、第1実施形態におけるデータ領域4bに書き込まれる情報の一例を示す図である。なお、以下に説明する各処理は、カード媒体1が自動改札機100に翳される度に実行される処理である。 Next, an example of processing by the control unit 260 will be described. FIG. 5 is a diagram showing an example of information written in the data area 4b in the first embodiment. Each processing described below is executed each time the card medium 1 is held over the automatic ticket gate 100 .

まず、カード媒体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 card medium 1 is in the initial state, the update flag areas X1, X2, Y1, Y2 and the data areas X, Y have no information. (First process) When the card medium 1 is in the initial state, the determining unit 261 determines that there is no read information, and determines the data area X as the writing surface. Then, "0xAA+data D1+0xAA" is written starting from the address P1. "0xAA+data D1+0xAA" is data obtained by concatenating data D1 after 0xAA and concatenating 0xAA after data D1.

(2回目の処理)カード媒体1が1回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP2を先頭にして、「0xBB+データD2+0xBB」が書き込まれる。 (Second Processing) When the card medium 1 is in the state after the first processing, the determination unit 261 determines the data area X as the reading side and the data area Y as the writing side. Then, "0xBB+data D2+0xBB" is written starting from the address P2.

(3回目の処理)カード媒体1が2回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP1を先頭にして、「0xCC+データD3+0xCC」が書き込まれる。 (Third Processing) When the card medium 1 is in the state after the second processing, the determination unit 261 determines the data area Y as the reading side and the data area X as the writing side. Starting from address P1, "0xCC+data D3+0xCC" is written.

(4回目の処理)次いで、カード媒体1が3回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP2を先頭にして、「0xDD+データD4+0xDD」が書き込まれる。 (Fourth Processing) Next, when the card medium 1 is in the state after the third processing, the determination unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Starting from address P2, "0xDD+data D4+0xDD" is written.

(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 card medium 1 is in a state after the fourth processing, the determination unit 261 determines the data area Y as the reading side and the data area X as the writing side. Starting from address P1, "0xAA+data D5+0xAA" is written. However, in this process, the card medium 1 is separated from the reader/writer surface 210a for a short period of time. The writing fails, and the information "0xAA" is not overwritten in the update flag area X2. Therefore, the update flag area X1="0xAA" and the update flag area X2="0xCC". In this case, the information read from data area X is corrupted.

(6回目の処理)カード媒体1が5回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP1を先頭にして、「0xAA+データD4+0xAA」が書き込まれる。上述の通り、書き込み面と読み取り面とを別のデータ領域に分けておくことにより、読み取り情報が破壊されずに、書き込み処理を実行することができる。 (Sixth process) When the card medium 1 is in a state after the fifth process, the determining unit 261 determines the data area Y as the reading surface and the data area X as the writing surface. Here, since the card medium 1 is not separated from the reader/writer surface 210a, "0xAA+data D4+0xAA" is written with the address P1 at the top. As described above, by separating the writing surface and the reading surface into different data areas, the writing process can be performed without destroying the read information.

(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 card medium 1 is in a state after the sixth process, the determination unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Starting from the address P2, "0xBB+data D6+0xBB" is written. However, as described above, although the top update flag area X1 is overwritten with the information "0xBB", the writing of the data D6 to the data area Y fails during writing, and the information "0xBB" is written to the update flag area X2. ” is not overwritten. In this case, the update flag area Y1="0xBB" and the update flag area Y2="0xDD". In this case, the information read from data area Y is corrupted.

(8回目の処理)カード媒体1が7回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP2を先頭にして、「0xBB+データD6+0xBB」が書き込まれる。 (Eighth Process) When the card medium 1 is in the state after the seventh process, the determination unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Starting from the address P2, "0xBB+data D6+0xBB" is written.

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 automatic ticket gate 100 will be described. 6 to 8 are flowcharts showing an example of reading processing by the automatic ticket gate 100 in the first embodiment. First, the reader/writer control unit 264 controls the reader/writer unit 210 to read information from the card medium 1 (step S101). Next, the determination unit 261 determines whether the data areas X and Y are used or unused according to the combination of types of update flag information included in the read information.

例えば、決定部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 unit 261 determines whether the information read from the update flag area X1 is either "0xAA" or "0xCC" based on the address of the data area 4b (step S103). The determination unit 261 also determines whether the information read from the update flag area X2 is either "0xAA" or "0xCC" (step S105). If the information read from the update flag areas X1 and X2 is either "0xAA" or "0xCC", the determining unit 261 determines that the data area X has been used (step S107). On the other hand, if the determination result is negative in either step S103 or S105, that is, if the information read from the update flag area X1 or X2 is neither "0xAA" nor "0xCC", the determination unit 261 It is determined that the data area X is unused (step S109).

次いで、決定部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 determination unit 261 determines whether the information read from the update flag area Y1 is either "0xBB" or "0xDD" based on the address of the data area 4b (step S111). The determination unit 261 also determines whether the information read from the update flag area Y2 is "0xBB" or "0xDD" (step S113). If the information read from the update flag areas Y1 and Y2 is either "0xBB" or "0xDD", the determination unit 261 determines that the data area Y has been used (step S115). On the other hand, if either step S111 or S113 yields a negative determination result, that is, if the information read from the update flag area Y1 or Y2 is neither "0xBB" or "0xDD", the determining unit 261 It is determined that the data area Y is unused (step S117).

次いで、決定部261は、データ領域XとYの両方が未使用であるか否かを判定する(ステップS119)。データ領域XとYの両方が未使用である場合、決定部261は、読み取りデータがないと決定する(ステップS121)。そして、自動改札機100は読み取り処理を終了する。 Next, the determination unit 261 determines whether or not both the data areas X and Y are unused (step S119). If both the data areas X and Y are unused, the determination unit 261 determines that there is no read data (step S121). Then, the automatic ticket gate 100 ends the reading process.

一方、データ領域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 unit 261 determines whether the data area X is already used (step S123). When the data area X is already used, the determining unit 261 determines whether or not the information read from the update flag area X1 matches the information read from the update flag area X1 (step S125). If both match, the decoding processing unit 266 decodes the information read from the data area X (step S127). The determination unit 261 determines whether or not the decoded information is normal (step S129). That is, it is determined whether or not the decoded information is normal. If the decoded information is normal information, the determining unit 261 determines that the information written in the data area X is normal (OK) (step S131). On the other hand, when it is determined in step S123 that the data area X is unused, and when it is determined in step S125 or step S129 that the information written in the data area X is not normal, the determination unit 261 Data area X=NG is determined (step S133).

次いで、決定部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 determination unit 261 determines whether or not the data area Y has been used (step S135). When the data area Y has been used, the determining unit 261 determines whether or not the information read from the update flag area Y1 matches the information read from the update flag area Y1 (step S137). If both match, the decoding processing unit 266 decodes the information read from the data area Y (step S139). The determination unit 261 determines whether or not the decoded information is normal (step S141). That is, it is determined whether or not the decoded information is normal. If the decoded information is normal information, the determining unit 261 determines that the information written in the data area Y is normal (OK) (step S143). On the other hand, when it is determined in step S135 that the data area Y is unused, and when it is determined in step S137 or step S141 that the information written in the data area Y is not normal, the determining unit 261 Data area Y=NG is determined (step S145).

次いで、決定部261は、データ領域のOKあるいはNGの判定結果に応じて、読み取り面を決定する。例えば、決定部261は、データ領域X=NG、且つ、データ領域Y=NGであるか否かを判定する(ステップS147)。データ領域X=NG、且つ、データ領域Y=NGである場合、決定部261は、読み取り処理のエラーであると決定する(ステップS149)。この場合、自動改札機100での処理はできないため、利用者は係員のところにカード媒体1を持参して処理してもらう必要がある。 Next, the determination unit 261 determines the reading surface according to the OK or NG determination result of the data area. For example, the determining unit 261 determines whether data area X=NG and data area Y=NG (step S147). When data area X=NG and data area Y=NG, the determining unit 261 determines that there is an error in the reading process (step S149). In this case, since the automatic ticket gate 100 cannot process, the user needs to bring the card medium 1 to the clerk and have it processed.

次いで、決定部261は、データ領域X=OK、且つ、データ領域Y=NGであるか否かを判定する(ステップS151)。データ領域X=OK、且つ、データ領域Y=NGである場合、決定部261は、データ領域Xを読み取り面に決定する(ステップS153)。 Next, the determination unit 261 determines whether data area X=OK and data area Y=NG (step S151). When data area X=OK and data area Y=NG, the determining unit 261 determines the data area X as the reading surface (step S153).

次いで、決定部261は、データ領域X=NG、且つ、データ領域Y=OKであるか否かを判定する(ステップS155)。データ領域X=NG、且つ、データ領域Y=OKである場合、決定部261は、データ領域Yを読み取り面に決定する(ステップS157)。 Next, the determination unit 261 determines whether data area X=NG and data area Y=OK (step S155). When data area X=NG and data area Y=OK, the determination unit 261 determines data area Y as the reading surface (step S157).

そして、上述したケースのいずれにも該当しない場合、つまり、データ領域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 determination unit 261 determines the combination of update flag information (step S159) Determine the reading surface.

例えば、更新フラグ情報の組み合わせが「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 unit 261 determines data area Y as the reading surface (step S161).

一方、更新フラグ情報の組み合わせが「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 determination unit 261 determines data area X as the reading surface (step S163). Then, the automatic ticket gate 100 ends the reading process.

図9は、第1実施形態における自動改札機100による書き込み処理の一例を示すフローチャートである。まず、決定部261は、読み取り面に応じて(ステップS201)、書き込み面を決定する。読み取り面がデータ領域Yである場合、あるいは、データ領域XとYの両方について読み取りデータがない場合、決定部261は、書き取り面をデータ領域Xに決定する(ステップS203)。 FIG. 9 is a flowchart showing an example of writing processing by the automatic ticket gate 100 in the first embodiment. First, the determining unit 261 determines the writing surface according to the reading surface (step S201). If the reading surface is the data area Y, or if there is no reading data for both the data areas X and Y, the determining unit 261 determines the writing surface to be the data area X (step S203).

次いで、決定部261は、読み取り時の更新フラグ情報の種類に応じて(ステップS205)、書き込み時の更新フラグ情報の種類を決定する。読み取り時の更新フラグ情報が「0xDD」である場合、あるいは更新フラグ領域Y1,Y2に書き込まれていた情報がない場合、決定部261は、書き込み時の更新フラグ情報を「0xAA」に決定する(ステップS207)。一方、読み取り時の更新フラグ情報が「0xBB」である場合、決定部261は、書き込み時の更新フラグ情報を「0xCC」に決定する(ステップS209)。 Next, the determination unit 261 determines the type of update flag information for writing according to the type of update flag information for reading (step S205). If the update flag information at the time of reading is "0xDD", or if there is no information written in the update flag areas Y1 and Y2, the determining unit 261 determines the update flag information at the time of writing to be "0xAA" ( step S207). On the other hand, when the update flag information for reading is "0xBB", the determining unit 261 determines the update flag information for writing to be "0xCC" (step S209).

一方、ステップ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 determination unit 261 determines the writing surface to be the data area Y (step S211). Next, the determination unit 261 determines the type of update flag information for writing according to the type of update flag information for reading (step S213). When the update flag information for reading is "0xAA", the determining unit 261 determines the update flag information for writing to be "0xBB" (step S215). On the other hand, when the update flag information for reading is "0xCC", the determination unit 261 determines the update flag information for writing to be "0xDD" (step S217).

そして、リーダライタ制御部264は、リーダライタ部210を制御して、カード媒体1に情報を書き込む(ステップS219)。ここで、リーダライタ制御部264は、決定部261により決定された更新フラグ情報を、書き込まれる所定情報の前後に連結した情報を生成する。リーダライタ制御部264は、決定部261により書き込み面に決定されたデータ領域XあるいはYのアドレスを指定して、生成した情報を書き込むよう、リーダライタ部210を制御する。 Then, the reader/writer control unit 264 controls the reader/writer unit 210 to write information to the card medium 1 (step S219). Here, the reader/writer control unit 264 generates information in which the update flag information determined by the determination unit 261 is connected before and after the predetermined information to be written. The reader/writer control unit 264 controls the reader/writer unit 210 so as to specify the address of the data area X or Y determined on the writing surface by the determination unit 261 and write the generated information.

以上説明した少なくとも一つの実施形態によれば、読み取り方向と書き込み方向が同じ第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 card medium 1 and the automatic ticket gate 100 in the first embodiment described above, so a detailed description thereof will be omitted and the same reference numerals will be given. are explained below. Differences from the first embodiment will be described below.

図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 data area 4b-2 in the second embodiment. The data area 4b-2 includes two data areas X and Y. FIG. An update flag area X3 is set immediately before the data area X, an update flag area Z is set immediately after the data area X and immediately before the data area Y, and an update flag area Y3 is set immediately after the data area Y. It is

データ領域4b-2において、データ領域XとYの位置、更新フラグ領域X3,Z,Y3の位置は、それぞれアドレスで管理されている。例えば、更新フラグ領域X3の先頭位置はアドレスP3であり、更新フラグ領域Zの先頭位置はアドレスP4である。アドレスP3を指定して、更新フラグ領域X3の先頭から情報を書き込むことより、「更新フラグ領域X3+データ領域X+更新フラグ領域Z」に対して情報を書き込むことができる。また、アドレスP4を指定して、更新フラグ領域Zの先頭から情報を書き込むことより、「更新フラグ領域Z+データ領域Y+更新フラグ領域Y3」に対して情報を書き込むことができる。 In the data area 4b-2, the positions of the data areas X and Y and the positions of the update flag areas X3, Z and Y3 are managed by addresses. For example, the top position of update flag area X3 is address P3, and the top position of update flag area Z is address P4. By designating the address P3 and writing information from the beginning of the update flag area X3, information can be written to "update flag area X3+data area X+update flag area Z". Further, by designating the address P4 and writing information from the beginning of the update flag area Z, information can be written to "update flag area Z+data area Y+update flag area Y3".

図11は、カード媒体1のデータ領域4b-2に書き込まれる情報の一例を示す図である。なお、以下に説明する各処理は、カード媒体1が自動改札機100に翳される度に実行される処理である。 FIG. 11 is a diagram showing an example of information written in the data area 4b-2 of the card medium 1. As shown in FIG. Each processing described below is executed each time the card medium 1 is held over the automatic ticket gate 100 .

まず、カード媒体1が初期状態である場合、更新フラグ領域X3,Z,Y3およびデータ領域X,Yには、情報がない。(1回目の処理)カード媒体1が初期状態である場合、決定部261は、読み取り情報がないことを決定するとともに、データ領域Xを書き込み面に決定する。そして、アドレスP3を先頭にして、「0xAA+データD11+0xAA」が書き込まれる。 First, when the card medium 1 is in the initial state, the update flag areas X3, Z, Y3 and the data areas X, Y have no information. (First process) When the card medium 1 is in the initial state, the determining unit 261 determines that there is no read information, and determines the data area X as the writing surface. Then, "0xAA+data D11+0xAA" is written starting from the address P3.

(2回目の処理)カード媒体1が1回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP4を先頭にして、「0xBB+データD12+0xBB」が書き込まれる。 (Second Processing) When the card medium 1 is in the state after the first processing, the determination unit 261 determines the data area X as the reading side and the data area Y as the writing side. Then, "0xBB+data D12+0xBB" is written starting from the address P4.

(3回目の処理)カード媒体1が2回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP3を先頭にして、「0xAA+データD13+0xAA」が書き込まれる。 (Third Processing) When the card medium 1 is in the state after the second processing, the determination unit 261 determines the data area Y as the reading side and the data area X as the writing side. Starting from address P3, "0xAA+data D13+0xAA" is written.

(4回目の処理)次いで、カード媒体1が3回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP4を先頭にして、「0xCC+データD14+0xCC」が書き込まれる。 (Fourth Processing) Next, when the card medium 1 is in the state after the third processing, the determination unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Starting from address P4, "0xCC+data D14+0xCC" is written.

(5回目の処理)カード媒体1が4回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP3を先頭にして、「0xAA+データD15+0xAA」が書き込まれる。 (Fifth Processing) When the card medium 1 is in a state after the fourth processing, the determination unit 261 determines the data area Y as the reading side and the data area X as the writing side. Starting from address P3, "0xAA+data D15+0xAA" is written.

(6回目の処理)次いで、カード媒体1が5回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。アドレスP4を先頭にして、「0xBB+データD16+0xBB」が書き込まれる。 (Sixth process) Next, when the card medium 1 is in the state after the fifth process, the determining unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Starting from address P4, "0xBB+data D16+0xBB" is written.

(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 card medium 1 is in the state after the sixth process, the determination unit 261 determines the data area Y as the reading surface and the data area X as the writing surface. Starting from address P3, "0xAA+data D17+0xAA" is written. However, in this process, the card medium 1 is separated from the reader/writer surface 210a for a short period of time. The writing fails, and the update flag area Z is not overwritten with the information "0xAA". Therefore, the update flag area X3="0xAA" and the update flag area Z="0xBB". In this case, the information read from data area X is corrupted.

(8回目の処理)カード媒体1が7回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP3を先頭にして、「0xAA+データD17+0xAA」が書き込まれる。上述の通り、書き込み面と読み取り面とを別のデータ領域に分けておくことにより、読み取り情報が破壊されずに、書き込み処理を実行することができる。 (Eighth Process) When the card medium 1 is in a state after the seventh process, the determination unit 261 determines the data area Y as the reading surface and the data area X as the writing surface. Here, since the card medium 1 has not been separated from the reader/writer surface 210a, "0xAA+data D17+0xAA" is written starting from the address P3. As described above, by separating the writing surface and the reading surface into different data areas, the writing process can be performed without destroying the read information.

(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 card medium 1 is in the state after the eighth processing, the determining unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Starting from address P4, "0xCC+data D18+0xCC" is written. However, as described above, although the information "0xCC" is overwritten in the update flag area Z at the beginning, the writing fails during the writing of the data D18 to the data area Y, and the information "0xCC" is written in the update flag area Y3. ” is not overwritten. In this case, the update flag area Z="0xCC" and the update flag area Y3="0xBB". The information read from data area Y is corrupted.

(10回目の処理)カード媒体1が9回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP3を先頭にして、「0xCC+データD18+0xCC」が書き込まれる。 (Tenth Processing) When the card medium 1 is in the state after the ninth processing, the determining unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Here, since the card medium 1 is not separated from the reader/writer surface 210a, "0xCC+data D18+0xCC" is written with the address P3 at the top.

図12~14は、第2実施形態における自動改札機100による読み取り処理の一例を示すフローチャートである。まず、リーダライタ制御部264は、リーダライタ部210を制御して、カード媒体1から情報を読み取る(ステップS301)。次いで、決定部261は、読み取った情報に含まれる更新フラグ情報の種類の組み合わせに応じて、データ領域XやYが使用済であるか、あるいは未使用であるかを決定する。 12 to 14 are flowcharts showing an example of reading processing by the automatic ticket gate 100 in the second embodiment. First, the reader/writer control unit 264 controls the reader/writer unit 210 to read information from the card medium 1 (step S301). Next, the determination unit 261 determines whether the data areas X and Y are used or unused according to the combination of types of update flag information included in the read information.

例えば、決定部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 unit 261 determines whether or not the information read from the update flag area X3 is "0xAA" based on the address of the data area 4b-2 (step S303). The determination unit 261 also determines whether the information read from the update flag area Z is either "0xAA" or "0xCC" (step S305). When the information read from the update flag area X3 is "0xAA" and the information read from the update flag area Z is either "0xAA" or "0xCC", the determination unit 261 determines that the data area X is It is determined that it has been used (step S307). On the other hand, if the determination result is negative in either step S303 or S305, that is, if the information read from the update flag area X3 is not "0xAA", or if the information read from the update flag area Z2 is "0xAA" or “0xCC”, the determining unit 261 determines that the data area X is unused (step S309).

次いで、決定部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 determination unit 261 determines whether the information read from the update flag area Z is either "0xBB" or "0xCC" based on the address of the data area 4b-2 (step S311). The determining unit 261 also determines whether the information read from the update flag area Y3 is "0xBB" or "0xCC" (step S313). If the information read from the update flag areas Z and Y3 is either "0xBB" or "0xCC", the determining unit 261 determines that the data area Y has been used (step S315). On the other hand, if either step S311 or S313 yields a negative determination result, that is, if the information read from the update flag area Z or Y3 is neither "0xBB" nor "0xCC", the determination unit 261 It is determined that the data area Y is unused (step S317).

次いで、決定部261は、データ領域XとYの両方が未使用であるか否かを判定する(ステップS319)。データ領域XとYの両方が未使用である場合、決定部261は、読み取りデータがないと決定する(ステップS321)。そして、自動改札機100は読み取り処理を終了する。 Next, the determination unit 261 determines whether or not both the data areas X and Y are unused (step S319). If both data areas X and Y are unused, the determination unit 261 determines that there is no read data (step S321). Then, the automatic ticket gate 100 ends the reading process.

一方、データ領域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 unit 261 determines whether the data area X is already used (step S323). When the data area X is already used, the determining unit 261 determines whether or not the information read from the update flag area X3 matches the information read from the update flag area Z (step S325). If both match, the decoding processing unit 266 decodes the information read from the data area X (step S327). The determination unit 261 determines whether or not the decoded information is normal (step S229). That is, it is determined whether or not the decoded information is normal. If the decoded information is normal information, the determining unit 261 determines that the information written in the data area X is normal (OK) (step S331). On the other hand, when it is determined in step S323 that the data area X is unused, and when it is determined in step S325 or step S329 that the information written in the data area X is not normal, the determination unit 261 Data area X=NG is determined (step S333).

次いで、決定部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 determination unit 261 determines whether or not the data area Y has been used (step S335). If the data area Y has been used, the determination unit 261 determines whether or not the information read from the update flag area Z matches the information read from the update flag area Y3 (step S337). If both match, the decoding processing unit 266 decodes the information read from the data area Y (step S339). The determination unit 261 determines whether or not the decoded information is normal (step S341). That is, it is determined whether or not the decoded information is normal. If the decoded information is normal information, the determining unit 261 determines that the information written in the data area Y is normal (OK) (step S343). On the other hand, when it is determined in step S335 that the data area Y is unused, and when it is determined in step S337 or step S341 that the information written in the data area Y is not normal, the determination unit 261 Data area Y=NG is determined (step S345).

ステップ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 determination unit 261 determines the type of update flag information read from update flag area Z. (step S359), the reading surface is determined.

例えば、更新フラグ領域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 unit 261 determines the data area Y as the reading surface (step S361).

一方、更新フラグ領域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 unit 261 determines the data area X as the reading surface (step S363). Then, the automatic ticket gate 100 ends the reading process.

図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 automatic ticket gate 100 in the second embodiment. First, the determining unit 261 determines the writing surface according to the reading surface (step S401). If the read surface is the data area Y, or if there is no read data for both the data areas X and Y, the determining unit 261 determines the data area X as the writing surface (step S403). Then, the determination unit 261 determines the update flag information at the time of writing to be "0xAA" (step S409).

一方、ステップ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 determination unit 261 determines the writing surface to be the data area Y (step S411). Next, the determination unit 261 determines the type of update flag information at the time of writing according to the type of update flag information read from the update flag area Y3 (step S413). If the update flag information read from the update flag area Y3 is "0xCC", or if there is no information written in the update flag area Y3, the determining unit 261 sets the update flag information at the time of writing to "0xBB." ” (step S415). On the other hand, when the update flag information for reading is "0xBB", the determining unit 261 determines the update flag information for writing to be "0xCC" (step S417).

(第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 card medium 1 and the automatic ticket gate 100 in the first embodiment described above, so a detailed description thereof will be omitted and the same reference numerals will be given. are explained below. Differences from the first embodiment will be described below.

図16は、第3実施形態におけるデータ領域4b-3の一例を示す図である。データ領域4b-3は、2つのデータ領域XとYとを含む。データ領域Xの直前には更新フラグ領域X5が、データ領域Yの直後には更新フラグ領域Y5が、それぞれ設定されている。 FIG. 16 is a diagram showing an example of the data area 4b-3 in the third embodiment. Data area 4b-3 includes two data areas X and Y. FIG. An update flag area X5 is set immediately before the data area X, and an update flag area Y5 is set immediately after the data area Y, respectively.

データ領域4b-3において、データ領域XとYの位置、更新フラグ領域X5,Y5の位置は、それぞれアドレスで管理されている。例えば、更新フラグ領域X5の先頭位置はアドレスP5であり、データ領域Yの先頭位置はアドレスP6であり、更新フラグ領域Y5の先頭位置はアドレスP7である。 In the data area 4b-3, the positions of the data areas X and Y and the positions of the update flag areas X5 and Y5 are managed by addresses. For example, the head position of the update flag area X5 is address P5, the head position of the data area Y is address P6, and the head position of the update flag area Y5 is address P7.

データ領域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 data area 4b-3 of the card medium 1. As shown in FIG. Each processing described below is executed each time the card medium 1 is held over the automatic ticket gate 100 .

まず、カード媒体1が初期状態である場合、更新フラグ領域X5,Y5およびデータ領域X,Yには、情報がない。(1回目の処理)カード媒体1が初期状態である場合、決定部261は、読み取り情報がないことを決定するとともに、データ領域Xを書き込み面に決定する。そして、アドレスP5を先頭にして「0xAA+データD21」が書き込まれ、アドレスP7を先頭にして「0xAA」が書き込まれる。 First, when the card medium 1 is in the initial state, the update flag areas X5 and Y5 and the data areas X and Y have no information. (First process) When the card medium 1 is in the initial state, the determining unit 261 determines that there is no read information, and determines the data area X as the writing surface. Then, "0xAA+data D21" is written starting from the address P5, and "0xAA" is written starting from the address P7.

(2回目の処理)カード媒体1が1回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP5を先頭にして「0xBB」が書き込まれ、アドレスP6を先頭にして「データD22+0xBB」が書き込まれる。 (Second Processing) When the card medium 1 is in the state after the first processing, the determination unit 261 determines the data area X as the reading side and the data area Y as the writing side. Then, "0xBB" is written starting from the address P5, and "data D22+0xBB" is written starting from the address P6.

(3回目の処理)カード媒体1が2回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。アドレスP5を先頭にして「0xAA+データD23」が書き込まれ、アドレスP7を先頭にして「0xAA」が書き込まれる。 (Third Processing) When the card medium 1 is in the state after the second processing, the determination unit 261 determines the data area Y as the reading side and the data area X as the writing side. "0xAA+data D23" is written starting from the address P5, and "0xAA" is written starting from the address P7.

(4回目の処理)次いで、カード媒体1が3回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。そして、アドレスP5を先頭にして、「0xBB」が書き込まれ、アドレスP6を先頭にして、「データD24+0xBB」が書き込まれる。 (Fourth Processing) Next, when the card medium 1 is in the state after the third processing, the determination unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Then, "0xBB" is written starting from the address P5, and "data D24+0xBB" is written starting from the address P6.

(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 card medium 1 is in a state after the fourth processing, the determination unit 261 determines the data area Y as the reading side and the data area X as the writing side. "0xAA+data D25" is written starting from the address P5, and "0xAA" is written starting from the address P7. However, in this process, the card medium 1 is separated from the reader/writer surface 210a for a short period of time. The writing fails, and the information "0xAA" is not overwritten in the update flag area Y5. Therefore, the update flag area X5="0xAA" and the update flag area Y5="0xBB". In this case, the information read from data area X is corrupted.

(6回目の処理)カード媒体1が5回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Yに決定するとともに、書き込み面をデータ領域Xに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP5を先頭にして「0xAA+データD25」が書き込まれ、アドレスP7を先頭にして「0xAA」が書き込まれる。上述の通り、書き込み面と読み取り面とを別のデータ領域に分けておくことにより、読み取り情報が破壊されずに、書き込み処理を実行することができる。 (Sixth process) When the card medium 1 is in a state after the fifth process, the determining unit 261 determines the data area Y as the reading surface and the data area X as the writing surface. Here, since the card medium 1 is not separated from the reader/writer surface 210a, "0xAA+data D25" is written starting from the address P5, and "0xAA" is written starting from the address P7. As described above, by separating the writing surface and the reading surface into different data areas, the writing process can be performed without destroying the read information.

(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 card medium 1 is in a state after the sixth process, the determination unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Then, "0xBB" is written starting from the address P5, and "data D26+0xBB" is written starting from the address P6. However, as described above, although the top update flag area X5 is overwritten with the information "0xBB", the writing of the data D16 to the data area Y fails during writing, and the information "0xBB" is written to the update flag area Y5. ” is not overwritten. In this case, the update flag area X5="0xBB" and the update flag area Y5="0xAA". The information read from data area Y is corrupted.

(8回目の処理)カード媒体1が7回目の処理後の状態である場合、決定部261は、読み取り面をデータ領域Xに決定するとともに、書き込み面をデータ領域Yに決定する。ここでは、カード媒体1がリーダライタ面210aから離されなかったため、アドレスP5を先頭にして「0xBB」が書き込まれ、アドレスP6を先頭にして「データD26+0xBB」が書き込まれる。 (Eighth Process) When the card medium 1 is in the state after the seventh process, the determination unit 261 determines the data area X as the reading surface and the data area Y as the writing surface. Here, since the card medium 1 is not separated from the reader/writer surface 210a, "0xBB" is written starting with the address P5, and "data D26+0xBB" is written starting with the address P6.

図18~20は、第3実施形態における自動改札機100による読み取り処理の一例を示すフローチャートである。まず、リーダライタ制御部264は、リーダライタ部210を制御して、カード媒体1から情報を読み取る(ステップS501)。次いで、決定部261は、読み取った情報に含まれる更新フラグ情報の種類の組み合わせに応じて、データ領域XやYが使用済であるか、あるいは未使用であるかを決定する。 18 to 20 are flowcharts showing an example of reading processing by the automatic ticket gate 100 in the third embodiment. First, the reader/writer control unit 264 controls the reader/writer unit 210 to read information from the card medium 1 (step S501). Next, the determination unit 261 determines whether the data areas X and Y are used or unused according to the combination of types of update flag information included in the read information.

例えば、決定部261は、データ領域4b-3のアドレスに基づいて、更新フラグ領域Y5から読み出した情報が「0xAA」か「0xBB」のどちらかであるか否かを判定する(ステップS503)。更新フラグ領域Y5から読み出した情報が「0xAA」か「0xBB」のどちらでもない場合、決定部261は、データ領域XおよびYの両方が未使用であると決定する(ステップS505)。そして、決定部261は、読み取りデータがないと決定する(ステップS507)。そして、自動改札機100は読み取り処理を終了する。 For example, the determination unit 261 determines whether the information read from the update flag area Y5 is either "0xAA" or "0xBB" based on the address of the data area 4b-3 (step S503). If the information read from the update flag area Y5 is neither "0xAA" nor "0xBB", the determining unit 261 determines that both data areas X and Y are unused (step S505). Then, the determining unit 261 determines that there is no read data (step S507). Then, the automatic ticket gate 100 ends the reading process.

一方、ステップ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 unit 261 determines whether the information read from the update flag area X5 and the information read from the update flag area Y5 are both "0xAA" (step S525). If both are "0xAA", the decoding processing unit 266 decodes the information read from the data area X (step S527). The determination unit 261 determines whether or not the decoded information is normal (step S529). That is, it is determined whether or not the decoded information is normal. If the decoded information is normal information, the determining unit 261 determines that the information written in the data area X is normal (OK) (step S531). On the other hand, if it is determined in step S529 that the information written in the data area X is not normal, the determination unit 261 determines data area X=NG (step S533).

ステップ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 determination unit 261 determines whether the information read from the update flag area X5 and the information read from the update flag area Y5 are both "0xBB" ( step S537). If both are "0xBB", the decoding processing unit 266 decodes the information read from the data area Y (step S539). The determination unit 261 determines whether or not the decoded information is normal (step S541). That is, it is determined whether or not the decoded information is normal. If the decoded information is normal information, the determining unit 261 determines that the information written in the data area Y is normal (OK) (step S543). On the other hand, if it is determined in step S541 that the information written in the data area Y is not normal, the determining unit 261 determines data area Y=NG (step S545).

ステップ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 unit 261 determines whether the information read from the update flag area X5 is "00AA" and the information read from the update flag area Y5 is "0xBB". Determine (step S547). When the information read from the update flag area X5 is "00AA" and the information read from the update flag area Y5 is "0xBB", the determining unit 261 determines that the data area X=NG (step S549).

ステップ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 determination unit 261 determines that the information read from the update flag area X5 is "00BB". ' and the information read from the update flag area Y5 is '0xAA' (step S551). When the information read from the update flag area X5 is "00BB" and the information read from the update flag area Y5 is "0xAA", the determining unit 261 determines that the data area Y=NG (step S553).

ステップ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 determination unit 261 determines the type of update flag information read from the update flag area X5. (step S559), the reading surface is determined.

例えば、更新フラグ領域X5から読み出された更新フラグ情報が「0xBB」である場合、決定部261は、データ領域Yを読み取り面に決定する(ステップS561)。 For example, when the update flag information read from the update flag area X5 is "0xBB", the determining unit 261 determines the data area Y as the reading surface (step S561).

一方、更新フラグ領域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 unit 261 determines the data area X as the reading surface (step S563). Then, the automatic ticket gate 100 ends the reading process.

図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 automatic ticket gate 100 in the third embodiment. First, the determining unit 261 determines the writing surface according to the reading surface (step S601). If the reading surface is the data area Y, or if there is no reading data for both the data areas X and Y, the determining unit 261 determines the writing surface to be the data area X (step S603). Then, the determination unit 261 determines the update flag information at the time of writing to be "0xAA" (step S609).

一方、ステップ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 determination unit 261 determines the writing surface to be the data area Y (step S611). Then, the determination unit 261 determines the update flag information at the time of writing to be "0xBB" (step S615).

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。 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 SYMBOLS 1... Card medium, 2... Base material, 3... Two-dimensional code, 4... RFID tag, 100... Automatic ticket gate, 200... Main machine, 210... Reader-writer part, 220... Upper surface display part, 230... Front display part, 240 Door section 250 Door section 260 Control section 261 Determination section 262 Passability determination section 263 Passage control section 264 Reader/writer control section 265 Communication control section 266 Decoding process Department

Claims (13)

読み取り方向と書き込み方向が同じ第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更新フラグ領域に書き込む、
自動改札機。
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方向であって、第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更新フラグ情報を書き込む、
自動改札機。
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方向であって、第1データ領域と、前記第1データ領域よりも前記第1方向の後ろに第2データ領域とを備える電子装置と通信する通信部と、
前記通信部が前記電子装置から読み出した情報に基づいて、前記第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.
JP2018217269A 2018-11-20 2018-11-20 Automatic ticket gate, passage control method, and program Active JP7204438B2 (en)

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)

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

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

Patent Citations (1)

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