JP2009054090A - Ic card system - Google Patents

Ic card system Download PDF

Info

Publication number
JP2009054090A
JP2009054090A JP2007222503A JP2007222503A JP2009054090A JP 2009054090 A JP2009054090 A JP 2009054090A JP 2007222503 A JP2007222503 A JP 2007222503A JP 2007222503 A JP2007222503 A JP 2007222503A JP 2009054090 A JP2009054090 A JP 2009054090A
Authority
JP
Japan
Prior art keywords
history information
operation history
recording
card
execution
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.)
Withdrawn
Application number
JP2007222503A
Other languages
Japanese (ja)
Inventor
Hironori Aoki
大典 青木
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP2007222503A priority Critical patent/JP2009054090A/en
Publication of JP2009054090A publication Critical patent/JP2009054090A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a system for recording operation history information in an IC card in which there is little contradiction even when recording failure is permitted and no influence is given to recording next time. <P>SOLUTION: A CPU of a contactless IC card executes a series of processing steps. A log file has an operation history information storage area to be a set of operation history information successively recorded at a plurality of recording positions according to a wrap around system and current information for showing a latest recording position of the operation history information in the operation history information storage area, determines a next recording position before starting execution, tries execution after recording a completion unconfirmed message as operation history information prior to execution of each processing step, overwrites the completion unconfirmed message by a normal message when the execution is completed, records it as operation history information, and makes the completion unconfirmed message as operation history information as it is when the execution is not completed. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ICカードの動作履歴情報を、ラップアラウンド方式でICカードに記録するシステムに関する。     The present invention relates to a system for recording operation history information of an IC card on an IC card by a wraparound method.

特許文献1に記載されているように、銀行の決済処理において、サーバ側の履歴情報と同等な証拠能力を有するICカードの使用履歴を、ICカードへ記録するシステムがある。このシステムは、ATMなどの堅牢なICカードリーダライタによりICカードの使用履歴を記録することを想定している。しかしながら、非接触型のICカードの場合は、ユーザが手動でICカードをICカードリーダライタにセットすることになるので、ICカードへの電源供給の維持が保証されておらず、履歴の記録に失敗するリスクがあることが問題となる。   As described in Patent Document 1, there is a system that records use history of an IC card having evidence capacity equivalent to server-side history information in the IC card in bank settlement processing. This system assumes that an IC card usage history is recorded by a robust IC card reader / writer such as ATM. However, in the case of a non-contact type IC card, since the user manually sets the IC card in the IC card reader / writer, maintenance of power supply to the IC card is not guaranteed, and history recording is not possible. The problem is the risk of failure.

そのため、このような非接触型ICカードの使用履歴の参照は、ICカードを使用する際に通信するサーバに記録された履歴情報を照会するシステムが一般的となっている。また、特許文献2に記載されているように、携帯電話のICカード機能に専用プログラムを組み合わせて履歴情報を携帯電話内に記録する例もあるが、上記と同様にサーバに記録されている履歴情報と同期している情報を、携帯電話にも記録するものである。
特開平10−111900号公報 特開2003−85466号公報
For this reason, a system for referring to history information recorded in a server that communicates when using an IC card is generally used to refer to the use history of such a non-contact type IC card. In addition, as described in Patent Document 2, there is an example in which history information is recorded in a cellular phone by combining a dedicated program with the IC card function of the cellular phone. The information synchronized with the information is also recorded on the mobile phone.
JP-A-10-111900 JP 2003-85466 A

決済処理など、履歴情報の保証が必須であるシステムについては、履歴の記録に失敗するリスクのある手法は採用できない。一方で、証拠能力が無くてもよく、厳格な履歴情報の保証が必ずしも必要ない用途も存在する。このようなシステムでは、非接触型のICカード自体に履歴情報を記録しても、つまり記録に失敗する可能性があるとしても、大きな支障を来すことが少ないと考えられる。そのような履歴情報の保証が必須ではない使用形態では、サーバにより履歴情報を管理する処理を排して、ICカード内に履歴情報を記録するシステムとすることができる。また、場合によっては、サーバへ通信する処理も排して、スタンドアロンの情報処理装置とICカードとの間だけで完結するシステムとすることもできる。   For systems that require guarantee of history information, such as payment processing, methods that have a risk of failing to record history cannot be adopted. On the other hand, there is a use that does not need evidence ability and does not necessarily require strict history information guarantee. In such a system, even if history information is recorded on the non-contact type IC card itself, that is, there is a possibility that the recording may fail, it is considered that there is little trouble. In a usage mode in which such guarantee of history information is not essential, it is possible to provide a system that records history information in an IC card by eliminating the process of managing history information by a server. Moreover, depending on the case, the process which communicates with a server can also be excluded and it can also be set as the system completed only between a stand-alone information processing apparatus and an IC card.

このようなシステムでは、履歴情報の記録に失敗する可能性があり、その際には正確な履歴が残らないが、メリットとして、システム環境を構築するコストの削減、ICカードのレスポンスの向上、ICカードリーダライタを設置するコストの削減、野外や航空機内等のICカードリーダライタの設置場所の自由度を上げること、などが挙げられる。   In such a system, there is a possibility that recording of history information may fail, and in that case, an accurate history is not left. However, as a merit, the cost for constructing the system environment is reduced, the response of the IC card is improved, the IC For example, the cost of installing a card reader / writer can be reduced, and the degree of freedom in installing an IC card reader / writer in the field or in an airplane can be increased.

例えば、商店でプレゼント引換や割引などの効果を持つ電子クーポンを、街頭に設置されたICカードリーダライタからICカードに受信するようなシステムを考える。電子クーポンの取得を試みた場合に、電圧不足などによるエラーが数回発生した後に無事に電子クーポンを取得したとする。この場合、エラーの履歴の記録が不正確であったとしてもユーザにとって実害はない。一方、これが決済処理であれば、不正アクセスを検知するために正確なエラーの履歴が必要である。   For example, consider a system in which an electronic coupon having an effect such as gift exchange or discount at a store is received from an IC card reader / writer installed on the street to the IC card. Assume that an electronic coupon is successfully acquired after several errors due to insufficient voltage occur when attempting to acquire the electronic coupon. In this case, even if the error history record is inaccurate, there is no real harm to the user. On the other hand, if this is a payment process, an accurate error history is required to detect unauthorized access.

さらに、取得されICカードに記録された電子クーポンを、店頭のICカードライトリーダを介して使用する際、使用履歴を記録する前に電子クーポン情報の確認完了をもって電子クーポンを発効させた場合を考えてみる。この場合、電子クーポンの使用には成功したが、使用履歴の記録には失敗したということになる可能性がある。しかしながら、このような場合でもユーザへのデメリットは小さく、逆に電子クーポンの発効と使用履歴の記録とを同期させないことによるシステムのレスポンス向上のメリットが、デメリットを上回ると考えられる。   Furthermore, when using an electronic coupon acquired and recorded on an IC card via an IC card light reader at a store, consider the case where the electronic coupon is activated upon completion of confirmation of electronic coupon information before recording the usage history. Try. In this case, there is a possibility that the electronic coupon has been successfully used, but the usage history has failed to be recorded. However, even in such a case, the disadvantage to the user is small, and conversely, the merit of improving the response of the system by not synchronizing the activation of the electronic coupon and the recording of the use history is considered to exceed the disadvantage.

また、以下に述べるような、非接触型ICカードリーダライタとの接触が不十分であり、ICカードへの電波及び電源の供給が微弱になることを前提としたシステムも考えられる。例えば、上述のような電子クーポンや、告知したいメッセージ情報など、ユーザが意図しない状況でユーザが所有するICカードへ一方的に配信するシステムである。例えば、ユーザが椅子に座ると、椅子に内蔵されたICカードリーダライタからユーザのポケットに入っているICカードへ通信する形態や、ユーザが特定の場所を歩くと床に内蔵されたICカードリーダライタから靴に内蔵されたICカードに通信する形態などが考えられる。このようなシステムは、サプライズ効果や遊び心にはたらきかける効果があり、宣伝効果を高めることが目的であるが、当然ながら履歴情報の記録に失敗する可能性は高まる。   Further, a system based on the premise that the contact with the non-contact type IC card reader / writer is insufficient and the supply of radio waves and power to the IC card becomes weak as described below. For example, it is a system that unilaterally distributes to the IC card owned by the user in a situation not intended by the user, such as the above-described electronic coupon or message information to be notified. For example, when the user sits on a chair, the IC card reader / writer built in the chair communicates with the IC card in the user's pocket, or when the user walks in a specific place, the IC card reader built in the floor The form etc. which communicate from the writer to the IC card built in the shoes are conceivable. Such a system has a surprise effect and a playful effect, and is aimed at enhancing the advertising effect. Naturally, the possibility of failure in recording history information increases.

本発明の目的は、ICカードの使用履歴などの情報(以降、「動作履歴情報」と呼ぶ)を、ICカード内に記録するシステムにおいて、動作履歴情報の記録の失敗をある程度許容する替わりにシステム全体の他のメリット(レスポンスの向上や負荷の軽減等)を確保することである。   It is an object of the present invention to record information such as an IC card usage history (hereinafter referred to as “operation history information”) in the IC card, instead of allowing a certain degree of failure in recording the operation history information. It is to secure other merits of the whole (improvement of response, reduction of load, etc.).

具体的には、動作履歴情報の記録に失敗しても、次回の記録に影響しないようにICカード内に動作履歴情報を記録する手段と、記録した動作履歴情報の内容を段階的に更新することで、動作履歴情報の記録に失敗しても、動作履歴情報の内容にできるだけ矛盾が生じないようにする手段とを提供する。なお、動作履歴情報を保存するICカードが有する記録媒体の特徴を考慮すると、保存できる動作履歴情報の容量に上限を設けることが望ましいため、動作履歴情報の記録はラップアラウンド方式によるものとする。   Specifically, even if the recording of the operation history information fails, means for recording the operation history information in the IC card so as not to affect the next recording, and the contents of the recorded operation history information are updated step by step. Thus, there is provided means for preventing the contradiction of the contents of the operation history information as much as possible even if the recording of the operation history information fails. In consideration of the characteristics of the recording medium included in the IC card that stores the operation history information, it is desirable to set an upper limit on the capacity of the operation history information that can be stored. Therefore, the operation history information is recorded by the wrap-around method.

上記課題を解決するために本発明は、CPU及び記録媒体を備えた非接触型のICカードと、前記ICカードと通信するICカードリーダライタとを有し、前記CPUは、前記ICカードリーダライタを介して情報処理装置と通信することにより前記ICカードの各機能に係る一連の処理ステップを実行し、前記記録媒体は、前記一連の処理ステップの実行の結果を示す動作履歴情報を記録したログファイルを格納しているICカードシステムであって、前記ログファイルが、ラップアラウンド方式に従って複数の記録位置に順次記録された前記動作履歴情報の集合である動作履歴情報保存領域と、前記動作履歴情報保存領域における最新の動作履歴情報の記録位置を示すカレント情報とを有し、前記CPUが前記ログファイルに対する記録及び参照を行う手段を有し、かつ、前記記録及び参照を行う手段により前記CPUが、前記一連の処理ステップの実行を開始する際に前記カレント情報を参照して前記動作履歴情報保存領域における次の動作履歴情報を保存すべき記録位置を判別し、前記一連の処理ステップに含まれる各処理ステップの実行に先立って前記次の動作履歴情報を保存すべき記録位置に対して完了未確認メッセージを動作履歴情報として記録した後に各処理ステップの実行を試み、該各処理ステップの実行を完了した場合は通常メッセージにより前記完了未確認メッセージを上書きして動作履歴情報として記録し、各処理ステップの実行を完了できなかった場合は前記完了未確認メッセージがそのまま動作履歴情報となることを特徴とする。   In order to solve the above problems, the present invention includes a non-contact type IC card having a CPU and a recording medium, and an IC card reader / writer that communicates with the IC card. A series of processing steps related to each function of the IC card by communicating with the information processing apparatus via the log, and the recording medium records operation history information indicating a result of execution of the series of processing steps An IC card system storing a file, wherein the log file is an operation history information storage area that is a set of the operation history information sequentially recorded at a plurality of recording positions according to a wraparound method, and the operation history information Current information indicating the recording position of the latest operation history information in the storage area, and the CPU records in the log file. And a means for referring to the current information when the CPU starts execution of the series of processing steps by the means for recording and referring to the next in the operation history information storage area. Before the execution of each processing step included in the series of processing steps, a completion unconfirmed message is operated for the recording position where the next operation history information is to be stored. Attempts to execute each processing step after recording as history information, and when execution of each processing step is completed, overwrites the unconfirmed completion message with a normal message and records it as operation history information, completing the execution of each processing step If not completed, the completion unconfirmed message becomes the operation history information as it is.

以上のように本発明によれば、次のような効果がある。
ICカードの使用目的に関連した各機能毎に設定された一連の処理ステップをCPUが実行するにあたって、各処理ステップの実行に先立って、その処理ステップの動作履歴情報が記録される記録位置に対し、予め完了未確認メッセージを記録した後に処理ステップの実行を試み、実行を完了した場合は通常メッセージを上書きして動作履歴情報とする。一方、実行を完了できなかった場合は、予め記録した完了未確認メッセージがそのまま動作履歴情報となるので、実行完了後の上書きができなかった場合でもその内容に矛盾が少なくなるという効果がある。
As described above, the present invention has the following effects.
When the CPU executes a series of processing steps set for each function related to the purpose of use of the IC card, prior to the execution of each processing step, the recording position where the operation history information of the processing step is recorded is recorded. Then, after the completion unconfirmed message is recorded in advance, the execution of the processing step is attempted, and when the execution is completed, the normal message is overwritten as the operation history information. On the other hand, if the execution cannot be completed, the completion unconfirmed message recorded in advance becomes the operation history information as it is, so that there is an effect that even if the overwriting after the completion of the execution cannot be performed, the content is less contradictory.

このように、ログファイルに複数回上書き出力して段階的に内容を更新することにより、ICカードに電源の供給が停止されるなどの問題が生じて動作履歴情報の記録が不完全であっても、処理ステップ終了後の動作履歴情報の内容に矛盾が少なくなる。   As described above, when the log file is overwritten multiple times and the contents are updated step by step, the supply of power to the IC card is stopped and the recording of the operation history information is incomplete. In addition, the content of the operation history information after the processing step ends is less inconsistent.

カレント情報は、常に最新の動作履歴情報の記録位置を示しているので、これを参照することにより、次回以降の動作履歴情報の記録は、確実に次の記録位置に対して行うことができる。従って、一連の処理ステップが中断した場合であっても、次回以降の一連の処理ステップの動作履歴情報の記録には何らの影響も及ぼさない。   Since the current information always indicates the recording position of the latest operation history information, by referring to this, the recording of the operation history information from the next time on can be surely performed at the next recording position. Therefore, even when a series of processing steps is interrupted, there is no influence on the recording of operation history information of a series of processing steps after the next time.

以下、本発明の一実施例を示す図面を参照して本発明の実施の一形態を説明する。
図1は、本発明に係る一実施例によるシステム構成図である。図1において、本発明に係る一実施例によるICカードシステムは、ICカード1と、ICカードリーダライタ6と、情報処理装置7とから構成されている。ICカード1は、CPU2と、アンテナ3と、記録媒体4とを有する非接触型である。記録媒体4は、動作履歴情報を記録するログファイル5を有する。なお、記録媒体4は、ICカードの使用目的である各機能を実行するためのプログラム及び各機能に関連したデータ、並びに、本発明による動作履歴情報の記録を実行するためのプログラムも保存する。CPU2は、記録媒体4に保存された所定のプログラムを読み込み、実行する。ICカード1とICカードリーダライタ6とは、非接触で通信を行う。ICカードリーダライタ6と情報処理装置7は、適宜の無線又は有線の通信手段を介して通信を行う。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings illustrating an embodiment of the present invention.
FIG. 1 is a system configuration diagram according to an embodiment of the present invention. In FIG. 1, an IC card system according to an embodiment of the present invention includes an IC card 1, an IC card reader / writer 6, and an information processing device 7. The IC card 1 is a non-contact type having a CPU 2, an antenna 3, and a recording medium 4. The recording medium 4 has a log file 5 for recording operation history information. The recording medium 4 also stores a program for executing each function, which is the purpose of use of the IC card, data related to each function, and a program for recording the operation history information according to the present invention. The CPU 2 reads and executes a predetermined program stored in the recording medium 4. The IC card 1 and the IC card reader / writer 6 perform non-contact communication. The IC card reader / writer 6 and the information processing apparatus 7 communicate via an appropriate wireless or wired communication unit.

このように構成されたICカードシステムは、ICカード1のCPU2が、アンテナ3とICカードリーダライタ6とを介して、情報処理装置7と通信することにより、ICカード1の使用目的である電子クーポンの取得及び使用などの各機能に関するプログラムを実行する。例えば、その機能が電子クーポン取得機能である場合、CPU2が、情報処理装置7からICカード1に送信された電子クーポン情報を受信し、その受信した電子クーポン情報を記録媒体4の所定の記憶領域に保存するというプログラムを実行する。また別の例として、電子クーポン使用機能である場合は、CPU2が、記録媒体4に保存されている電子クーポン情報を情報処理装置7に送信し、情報処理装置7が受信した電子クーポン情報が有効か無効かを確認してその結果をICカード1に返信し、CPU2がそれを受信するというプログラムを実行する。   In the IC card system configured as described above, the CPU 2 of the IC card 1 communicates with the information processing device 7 via the antenna 3 and the IC card reader / writer 6, so that the electronic card that is the purpose of use of the IC card 1 is used. A program related to each function such as acquisition and use of coupons is executed. For example, when the function is an electronic coupon acquisition function, the CPU 2 receives electronic coupon information transmitted from the information processing device 7 to the IC card 1, and stores the received electronic coupon information in a predetermined storage area of the recording medium 4. Run the program that saves the file. As another example, when the electronic coupon usage function is used, the CPU 2 transmits the electronic coupon information stored in the recording medium 4 to the information processing device 7 and the electronic coupon information received by the information processing device 7 is valid. Whether the program is invalid or not is returned to the IC card 1 and the CPU 2 executes a program to receive it.

上記のように、ICカード1の一つの機能を実行するプログラムには、通常、複数の処理ステップが含まれる。本明細書では、この複数の処理ステップを「一連の処理ステップ」と称する。本発明により記録される動作履歴情報は、一連の処理ステップ全体の実行結果を対象としてもよいし、一連の処理ステップ全体を幾つかに細分化した部分的な各処理ステップ毎の実行結果を対象としてもよい。なお、どの程度に細分化したものを各処理ステップとするか、つまりどの程度細かく動作履歴情報を記録するかについては任意である。本発明は、処理ステップの細分化の程度に関わらず適用可能である。   As described above, a program that executes one function of the IC card 1 usually includes a plurality of processing steps. In the present specification, the plurality of processing steps are referred to as “a series of processing steps”. The operation history information recorded according to the present invention may target the execution results of the entire series of processing steps, or target the execution results of each partial processing step obtained by subdividing the entire series of processing steps into some parts. It is good. It should be noted that it is arbitrary how finely divided each processing step is used, that is, how finely the operation history information is recorded. The present invention is applicable regardless of the degree of subdivision of processing steps.

後述するように、CPU2は、一連の処理ステップの実行結果を、動作履歴情報としてログファイル5にラップアラウンド方式で蓄積する。各動作履歴情報は、後述するように、一連の処理ステップの実行を完了したことを示す情報(以下、これを「通常メッセージ」と総称する)、又は、実行が途中で不能になったことを示す情報(以下、これを「完了未確認メッセージ」と総称する)のいずれかとなる。   As will be described later, the CPU 2 accumulates the execution results of a series of processing steps in the log file 5 as operation history information in a wrap-around manner. As will be described later, each operation history information is information indicating that execution of a series of processing steps has been completed (hereinafter collectively referred to as “normal message”), or that execution has become impossible during the process. Information (hereinafter collectively referred to as “completion unconfirmed message”).

ここで、「実行が途中で不能になった場合」とは、一連の処理ステップの途中でICカードへの電源供給が止まり後続の処理ステップが行われず、一連の処理ステップを終了できなかった場合が典型例である。このような場合は、以下の想定済みのエラーとは区別する。   Here, “when execution is disabled in the middle” means that the power supply to the IC card is stopped in the middle of a series of processing steps, the subsequent processing steps are not performed, and the series of processing steps cannot be completed. Is a typical example. Such cases are distinguished from the following assumed errors.

これに対して、「実行を完了した場合」には、一連の処理ステップがエラーを生じることなく終了した場合と、エラーを生じても一応終了できた場合とが含まれる。プログラムが終了できるようなエラーは、想定済みのエラー(例えば、電子クーポンが期限切れで使用できなかった等)であって、プログラムの分岐処理に組み込まれているので、プログラムを一応終了することができる。   On the other hand, “when the execution is completed” includes a case where a series of processing steps are completed without causing an error, and a case where the processing can be completed even if an error occurs. An error that can terminate the program is an assumed error (for example, the electronic coupon has expired and cannot be used), and is included in the branch processing of the program. Therefore, the program can be terminated temporarily. .

通常メッセージ及び完了未確認メッセージの各々の具体的内容は、処理ステップの内容に応じて様々に設定される。具体例については、図3以降でさらに詳細に説明する。   Specific contents of each of the normal message and the unconfirmed message are variously set according to the contents of the processing step. Specific examples will be described in more detail with reference to FIG.

図2は、本発明の一実施例によるログファイル5のデータ構成図である。図2に示すように、ログファイル5は、カレント情報21と、動作履歴情報の集合である動作履歴情報保存領域22とから構成されている。   FIG. 2 is a data configuration diagram of the log file 5 according to an embodiment of the present invention. As shown in FIG. 2, the log file 5 includes current information 21 and an operation history information storage area 22 that is a set of operation history information.

カレント情報21は、動作履歴情報保存領域22内における一番最近記録された最新の動作履歴情報の記録位置を常に示している。記録位置とは、具体的には記録媒体内のアドレスであり、カレント情報21には、常に最新の動作履歴情報のアドレスがセットされている。   The current information 21 always indicates the recording position of the latest operation history information recorded most recently in the operation history information storage area 22. The recording position is specifically an address in the recording medium, and the current information 21 is always set to the address of the latest operation history information.

動作履歴情報保存領域22において、新たに1つの動作履歴情報を記録する際には、一番古い動作履歴情報が保存されている記録位置(以下、「アドレス」と称する)にその新しい動作履歴情報を上書きして保存する。すなわちラップアラウンド方式による記録手段を備えており、これにより動作履歴情報の集合が保存されている。   When a new piece of operation history information is recorded in the operation history information storage area 22, the new operation history information is recorded at the recording position (hereinafter referred to as “address”) where the oldest operation history information is stored. Overwrite and save. That is, a recording means by a wraparound method is provided, and a set of operation history information is stored thereby.

図1に示したCPU2は、ログファイル5に記録された動作履歴情報を参照する手段と、ログファイル5に対して動作履歴情報を記録する手段とを備えている。なお、本明細書中の説明では、CPU2によるログファイル5のデータの参照(又は取得)を「入力」と称し、また、ログファイル5に対するデータの記録(又は保存)を「出力」と称する場合がある。
CPU2は、動作履歴情報保存領域22における各動作履歴情報のアドレスと、各動作履歴情報が記録された順序とを判別することができ、ラップアラウンド方式に従った動作履歴情報の記録及び参照を行うことができる。一般的には、動作履歴情報保存領域22が循環バッファと呼ばれる構造になっていることをもって、動作履歴情報の記録順序が明確となっている。また、動作履歴情報保存領域22の容量は、CPU2の制御により常に一定の容量以下となるように維持されている。
The CPU 2 shown in FIG. 1 includes means for referring to the operation history information recorded in the log file 5 and means for recording the operation history information in the log file 5. In the description in this specification, the reference (or acquisition) of data in the log file 5 by the CPU 2 is referred to as “input”, and the recording (or storage) of data in the log file 5 is referred to as “output”. There is.
The CPU 2 can determine the address of each operation history information in the operation history information storage area 22 and the order in which each operation history information is recorded, and record and reference the operation history information according to the wraparound method. be able to. In general, since the operation history information storage area 22 has a structure called a circular buffer, the recording order of the operation history information is clear. Further, the capacity of the operation history information storage area 22 is always maintained to be equal to or less than a certain capacity under the control of the CPU 2.

図3は、CPU2による動作履歴情報の記録処理フローの一例を示す図である。必要に応じて図1及び図2で用いた符号を参照する。以下、電子クーポンの取得又は使用の機能(要求内容)を実行する場合の動作履歴情報の記録を一例として説明する。   FIG. 3 is a diagram illustrating an example of a recording process flow of operation history information by the CPU 2. Reference numerals used in FIGS. 1 and 2 are referred to as necessary. Hereinafter, recording of operation history information in the case where a function (request content) for acquiring or using an electronic coupon is executed will be described as an example.

ICカード1がICカードリーダライタ6の感知範囲内に入ると、ICカードリーダライタ6からICカード1へ電源が供給され、要求内容に関連する一連の処理ステップが開始される。同時に、ICカード1内での動作履歴情報の記録処理ステップも開始されることになる。先ず、CPU2は、ログファイル5のカレント情報21の内容を入力して、一番最近出力された動作履歴情報のアドレスを把握する(ステップ301)。   When the IC card 1 enters the sensing range of the IC card reader / writer 6, power is supplied from the IC card reader / writer 6 to the IC card 1, and a series of processing steps related to the requested content is started. At the same time, an operation history information recording process step in the IC card 1 is also started. First, the CPU 2 inputs the contents of the current information 21 of the log file 5 and grasps the address of the operation history information that has been output most recently (step 301).

ステップ301で把握したアドレスに基づいて、所定の記録順序に従い、次の動作履歴情報を記録すべき動作履歴情報保存領域22内のアドレスを判別し、そのアドレスをカレント情報21に出力する(ステップ302)。これによりカレント情報21が更新される。   Based on the address acquired in step 301, the address in the operation history information storage area 22 where the next operation history information is to be recorded is determined in accordance with a predetermined recording order, and the address is output to the current information 21 (step 302). ). Thereby, the current information 21 is updated.

次に、ステップ302で出力したカレント情報21が指し示すアドレスにおけるメッセージログ(以下、「カレント」と称する)に、「カードリーダを認識できませんでした」という完了未確認メッセージを出力する(ステップ303)。つまり、最初の処理ステップの実行に先立って、予め完了未確認メッセージを動作履歴情報としてカレントに記録しておく。   Next, a completion unconfirmed message “Card reader could not be recognized” is output to the message log (hereinafter referred to as “current”) at the address indicated by the current information 21 output in step 302 (step 303). That is, prior to execution of the first processing step, a completion unconfirmed message is recorded in advance as operation history information in advance.

続いて、最初の処理ステップを実行する。すなわち、ICカードリーダライタ6を介して情報処理装置7との通信を確立し、情報処理装置7から情報処理装置7がもつタイムスタンプと要求内容とを取得する処理を実行する(ステップ304)。   Subsequently, the first processing step is executed. That is, communication with the information processing device 7 is established via the IC card reader / writer 6 and processing for acquiring the time stamp and request content of the information processing device 7 from the information processing device 7 is executed (step 304).

ステップ304の取得処理が成功した場合(ステップ305)、カレントに、タイムスタンプと、要求内容の処理の完了を確認できなかったという旨の完了未確認メッセージとを、上書きの形式で出力する(ステップ306)。例えば、要求内容がクーポンの取得である場合、「07/02/23 20:01:10 クーポンAを取得します(完了未確認)」という完了未確認メッセージを出力する。つまり、上記ステップ303と同様に、ステップ306でも、次の処理ステップの実行に先立って、完了未確認メッセージを動作履歴情報として記録しておく。   When the acquisition process of step 304 is successful (step 305), a time stamp and a completion unconfirmed message indicating that the completion of the processing of the requested content could not be confirmed are output in an overwrite format (step 306). ). For example, when the request content is acquisition of a coupon, a completion unconfirmed message “07/02/23 20:01:10 Coupon A is acquired (completion unconfirmed)” is output. That is, similarly to step 303 above, in step 306, a completion unconfirmed message is recorded as operation history information prior to execution of the next processing step.

ステップ304の取得処理が失敗した場合(ステップ305)、カレントに、失敗した理由を記述したエラーメッセージを、ステップ303で出力した完了未確認メッセージの上書きの形式で出力する(ステップ307)。例えば、電波の受信に失敗した場合は「電波を受信できませんでした」というエラーメッセージを出力する。エラーメッセージでカレントを上書きした後、電子クーポンの取得又は使用などの一連の処理ステップを終了する。ステップ307を経由したフローでも、一応、一連の処理ステップは終了するので、ステップ307で出力されるエラーメッセージは、通常メッセージの一つである。   If the acquisition process in step 304 fails (step 305), an error message describing the reason for the failure is output in the form of overwriting the unconfirmed completion message output in step 303 (step 307). For example, if reception of radio waves fails, an error message “Could not receive radio waves” is output. After overwriting the current with an error message, a series of processing steps such as acquisition or use of an electronic coupon is terminated. Even in the flow through step 307, the series of processing steps is temporarily ended, so the error message output in step 307 is one of normal messages.

ステップ305で取得処理が成功した場合、ICカードリーダライタ6を介して情報処理装置7と通信して、電子クーポンの取得又は使用など、プログラムされている要求内容の処理を実行する(ステップ308)。   If the acquisition process is successful in step 305, communication with the information processing device 7 is performed via the IC card reader / writer 6 and processing of the requested request content such as acquisition or use of an electronic coupon is executed (step 308). .

ステップ308の処理が成功した場合(ステップ309)、カレントに、要求内容の処理が問題なく完了したという旨の通常メッセージを、ステップ306で出力した完了未確認メッセージの上書きの形式で出力する(ステップ310)。例えば、要求内容がクーポンの取得である場合、「07/02/23 20:01:10 クーポンAを取得しました」という通常メッセージを出力する。なお、タイムスタンプを記述した部分はステップ306で出力した内容から変更せず、メッセージ部分だけ更新してもよい。   If the processing in step 308 is successful (step 309), a normal message indicating that the processing of the requested content has been completed without any problem is output in the form of overwriting the unconfirmed completion message output in step 306 (step 310). ). For example, when the request content is acquisition of a coupon, a normal message “07/02/23 20:01:10 Coupon A has been acquired” is output. Note that the part describing the time stamp may not be changed from the content output in step 306, and only the message part may be updated.

ステップ308の処理が失敗した場合(ステップ309)、カレントに、失敗した理由を記述したエラーメッセージを、ステップ306で出力した完了未確認メッセージの上書きの形式で出力する(ステップ311)。例えば、クーポンの有効期限が切れていた場合は、「07/02/23 20:01:10 クーポンAは有効期限切れのため使用できません」というエラーメッセージを出力する。エラーメッセージでカレントを上書きした後、電子クーポンの取得又は使用などの一連の処理ステップを終了する。ステップ311を経由したフローでも、一応、一連の処理ステップは終了するので、ステップ311で出力されるエラーメッセージは、通常メッセージの一つである。   If the process in step 308 fails (step 309), an error message describing the reason for the failure is output in the form of overwriting the unconfirmed completion message output in step 306 (step 311). For example, if the coupon has expired, an error message “07/02/23 20:01:10 Coupon A is expired and cannot be used” is output. After overwriting the current with an error message, a series of processing steps such as acquisition or use of an electronic coupon is terminated. Even in the flow via step 311, the series of processing steps is temporarily ended, so the error message output in step 311 is one of normal messages.

以上の通り、図3のフローにより一連の処理ステップを行う場合、いずれかの処理ステップの途中でICカードへの電源の供給が止まり、後続のステップが実行されないという事態が生じ得る。そのような事態が生じた場合、上記のステップ307、310又は311で出力される通常メッセージによる上書きが実行できないことになる。その場合、カレントにはステップ303又はステップ306で出力された完了未確認メッセージがそのまま動作履歴情報として残されることになる。しかしながら、その内容は、生じた事態と比較して矛盾の少ないものとなる。   As described above, when a series of processing steps are performed according to the flow of FIG. 3, the supply of power to the IC card is stopped in the middle of any processing step, and the subsequent steps may not be executed. When such a situation occurs, overwriting with the normal message output in step 307, 310 or 311 described above cannot be executed. In this case, the completion unconfirmed message output in step 303 or step 306 is left as operation history information as it is. However, the content is less inconsistent than the situation that occurred.

例えば、ステップ304の処理中あるいは完了直後に電源の供給が止まり、ステップ306又は307による動作履歴情報の上書き出力が行われなかった場合、その時点でのカレント内の動作履歴情報は、ステップ303で出力した「カードリーダを認識できませんでした」という完了未確認メッセージの内容になっている。   For example, if the supply of power is stopped during the processing of step 304 or immediately after completion and the operation history information is not overwritten and output in step 306 or 307, the operation history information in the current at that time is The content of the completed unconfirmed message “Card reader could not be recognized” is output.

また、ステップ308の処理中に電源の供給が止まり、ステップ311による動作履歴情報の上書き出力が行われなかった場合、その時点でのカレント内の動作履歴情報は、ステップ306で出力した「07/02/23 20:01:10 クーポンAを取得します(完了未確認)」という完了未確認メッセージの内容になっている。   If the supply of power is stopped during the processing of step 308 and the operation history information is not overwritten and output in step 311, the operation history information in the current at that time is “07 / 02/23 20:01:10 Coupon A is acquired (completion unconfirmed) ".

また、ステップ308の処理自体には成功した場合でも、直後に電源の供給が止まり、ステップ310による動作履歴情報の上書き出力が行われなかった場合(本発明では、この場合も、ステップ308の処理の実行を完了できなかった場合に含めることとする)は、その時点でのカレント内の動作履歴情報はステップ306で出力した「07/02/23 20:01:10 クーポンAを取得します(完了未確認)」という完了未確認メッセージの内容になっている。   Further, even when the process of step 308 itself is successful, the power supply is stopped immediately and the operation history information is not overwritten by step 310 (in the present invention, the process of step 308 is also performed in this case). Is included when the execution of is not completed), the operation history information in the current at that time will be obtained in step 306 "07/02/23 20:01:10 Coupon A ( The content of the completion unconfirmed message is “unconfirmed completion)”.

このように、以上に例示したいずれのケースも、矛盾の少ない動作履歴情報の内容になっている。なお、図3で示した例よりも処理ステップをさらに細分化し、それらの処理ステップの都度、適切な動作履歴情報の内容に上書き出力すれば、より矛盾の少ない動作履歴情報の内容にすることができる。また、動作履歴情報の容量を節約するために、完了未確認メッセージ及び通常メッセージを、文字列データではなく識別子で記録してもよい。ただしこの場合、これらのメッセージを参照する際に、識別子が意味する情報を認識できるようにする手段が必要である。   As described above, in any of the cases exemplified above, the content of the operation history information is less contradictory. If the processing steps are further subdivided from the example shown in FIG. 3 and the contents of the appropriate operation history information are overwritten and output at each processing step, the contents of the operation history information with less contradiction can be obtained. it can. In order to save the capacity of the operation history information, the completion unconfirmed message and the normal message may be recorded with an identifier instead of the character string data. However, in this case, when referring to these messages, it is necessary to have a means for recognizing the information indicated by the identifier.

図4は、ログファイル5の記録状態の一例を示すデータ構造図である。この場合、動作履歴情報保存領域22に動作履歴情報22A〜22Dが連続して記録されており、記録する各動作履歴情報の容量は常に一定であり、動作履歴情報保存領域22が循環バッファであるとする。   FIG. 4 is a data structure diagram showing an example of the recording state of the log file 5. In this case, the operation history information 22A to 22D is continuously recorded in the operation history information storage area 22, the capacity of each operation history information to be recorded is always constant, and the operation history information storage area 22 is a circular buffer. And

カレント情報21が示す通り、一番最近記録された動作履歴情報は、動作履歴情報22Cである。各動作履歴情報の容量が一定の循環バッファであるため、動作履歴情報が記録された順序は、動作履歴情報22D(最古)、動作履歴情報22A、動作履歴情報22B、動作履歴情報22C(最新)であることが分かる。   As the current information 21 indicates, the most recently recorded operation history information is the operation history information 22C. Since the capacity of each operation history information is a constant circular buffer, the operation history information is recorded in the order of operation history information 22D (oldest), operation history information 22A, operation history information 22B, and operation history information 22C (latest). ).

動作履歴情報22Cの次の動作履歴情報が記録されるべき領域は、各動作履歴情報の容量が一定の循環バッファであるため、丁度、動作履歴情報22Dの領域になる。この状態から、例えばクーポンBを使用する一連の処理ステップを実行した場合、クーポンBの使用における動作履歴情報の記録は、動作履歴情報22Dの領域に対して上書きするように動作履歴情報が出力される。   The area where the operation history information next to the operation history information 22C is to be recorded is an area of the operation history information 22D just because the capacity of each operation history information is a circular buffer. From this state, for example, when a series of processing steps using the coupon B is executed, the operation history information is output so that the operation history information in the use of the coupon B is overwritten on the region of the operation history information 22D. The

図5は、図4と同じ構成のデータ構造図であり、図4の状態から遷移した状態である。図4の状態から、クーポンBを使用する一連の処理ステップの実行を開始したが、クーポン情報の送信中あるいは送信完了直後に電源の供給が止まったため、動作履歴情報22Dの内容が「07/12/23 22:51:40 クーポンBを使用します(完了未確認)」となっている状態である。   FIG. 5 is a data structure diagram having the same configuration as FIG. 4, and is a state transitioned from the state of FIG. 4. Although the execution of a series of processing steps using the coupon B is started from the state of FIG. 4, the supply of power stops during the transmission of the coupon information or immediately after the completion of the transmission. / 23 22:51:40 Coupon B will be used (completion not confirmed) ".

カレント情報21は、クーポンBを使用する一連の処理ステップの冒頭で更新されているため、正しく動作履歴情報22Dを指し示している。各動作履歴情報の容量が一定の循環バッファであるため、動作履歴情報が記録された順序は、動作履歴情報22A(最古)、動作履歴情報22B、動作履歴情報22C、動作履歴情報22D(最新)であることが分かる。   Since the current information 21 is updated at the beginning of a series of processing steps using the coupon B, it correctly points to the operation history information 22D. Since the capacity of each operation history information is a constant circular buffer, the operation history information is recorded in the order of operation history information 22A (oldest), operation history information 22B, operation history information 22C, and operation history information 22D (latest). ).

動作履歴情報22Dの次の動作履歴情報が記録されるべき領域は、各動作履歴情報の容量が一定の循環バッファであるため、丁度、動作履歴情報22Aの領域になる。この状態から、例えばクーポンDを取得する一連の処理ステップを実行した場合、クーポンDの取得における動作履歴情報の記録は、動作履歴情報22Aの領域に対して上書きするように動作履歴情報が出力される。   The area where the operation history information next to the operation history information 22D is to be recorded is an area of the operation history information 22A just because the capacity of each operation history information is a circular buffer. From this state, for example, when a series of processing steps for acquiring the coupon D is executed, the operation history information is output so that the operation history information in the acquisition of the coupon D is overwritten on the region of the operation history information 22A. The

以上のことから分かるように、クーポンBを使用する一連の処理ステップの実行中に問題が発生して動作履歴情報の記録が不完全であっても、次回以降の動作履歴情報の記録には何ら影響をおよぼさない。   As can be seen from the above, even if a problem occurs during the execution of a series of processing steps using the coupon B and the recording of the operation history information is incomplete, there is nothing to record the operation history information after the next time. Has no effect.

図6は、図5と同じ構成のデータ構造図であり、図5の状態からさらに遷移した状態である。図5の状態から、クーポンDを取得する一連の処理ステップが問題無く完了し、動作履歴情報22Aの内容が「07/12/23 22:53:12 クーポンDを取得しました」となっている状態である。   FIG. 6 is a data structure diagram having the same configuration as that in FIG. 5 and is a state further transitioned from the state in FIG. From the state of FIG. 5, a series of processing steps for acquiring the coupon D is completed without any problem, and the content of the operation history information 22A is “07/12/23 22:53:12 Coupon D has been acquired”. State.

カレント情報21が示す通り、一番最近記録された動作履歴情報が動作履歴情報22Aである。各動作履歴情報の容量が一定の循環バッファであるため、動作履歴情報が記録された順序は、動作履歴情報22B(最古)、動作履歴情報22C、動作履歴情報22D、動作履歴情報22A(最新)であることが分かる。   As the current information 21 indicates, the most recently recorded operation history information is the operation history information 22A. Since each operation history information has a constant capacity, the operation history information is recorded in the order of operation history information 22B (oldest), operation history information 22C, operation history information 22D, and operation history information 22A (latest). ).

本発明に係る一実施形態におけるシステム構成図である。It is a system configuration figure in one embodiment concerning the present invention. ログファイルのデータ構成図である。It is a data block diagram of a log file. 動作履歴情報の記録処理フローの一例を示す図である。It is a figure which shows an example of the recording processing flow of operation history information. ログファイルの記録状態の一例を表すデータ構成図である。It is a data block diagram showing an example of the recording state of a log file. ログファイルの記録状態の一例を表すデータ構成図である。It is a data block diagram showing an example of the recording state of a log file. ログファイルの記録状態の一例を表すデータ構成図である。It is a data block diagram showing an example of the recording state of a log file.

符号の説明Explanation of symbols

1…ICカード、2…CPU、3…アンテナ、4…記録媒体、5…ログファイル、6…ICカードリーダライタ、7…情報処理装置、21…カレント情報、22…動作履歴情報保存領域、22A〜22D…動作履歴情報 DESCRIPTION OF SYMBOLS 1 ... IC card, 2 ... CPU, 3 ... Antenna, 4 ... Recording medium, 5 ... Log file, 6 ... IC card reader / writer, 7 ... Information processing apparatus, 21 ... Current information, 22 ... Operation history information storage area, 22A ~ 22D ... operation history information

Claims (2)

CPU及び記録媒体を備えた非接触型のICカードと、前記ICカードと通信するICカードリーダライタとを有し、前記CPUは、前記ICカードリーダライタを介して情報処理装置と通信することにより前記ICカードの各機能に係る一連の処理ステップを実行し、前記記録媒体は、前記一連の処理ステップの実行の結果を示す動作履歴情報を記録したログファイルを格納しているICカードシステムであって、
前記ログファイルが、ラップアラウンド方式に従って複数の記録位置に順次記録された前記動作履歴情報の集合である動作履歴情報保存領域と、前記動作履歴情報保存領域における最新の動作履歴情報の記録位置を示すカレント情報とを有し、
前記CPUが前記ログファイルに対する記録及び参照を行う手段を有し、かつ、
前記記録及び参照を行う手段により前記CPUが、前記一連の処理ステップの実行を開始する際に前記カレント情報を参照して前記動作履歴情報保存領域における次の動作履歴情報を保存すべき記録位置を判別し、前記一連の処理ステップに含まれる各処理ステップの実行に先立って前記次の動作履歴情報を保存すべき記録位置に対して完了未確認メッセージを動作履歴情報として記録した後に各処理ステップの実行を試み、該各処理ステップの実行を完了した場合は通常メッセージにより前記完了未確認メッセージを上書きして動作履歴情報として記録し、各処理ステップの実行を完了できなかった場合は前記完了未確認メッセージがそのまま動作履歴情報となることを特徴とするICカードシステム。
A non-contact type IC card including a CPU and a recording medium; and an IC card reader / writer that communicates with the IC card. The CPU communicates with an information processing device via the IC card reader / writer. A series of processing steps relating to each function of the IC card is executed, and the recording medium is an IC card system storing a log file in which operation history information indicating a result of execution of the series of processing steps is recorded. And
The log file indicates an operation history information storage area that is a collection of the operation history information sequentially recorded at a plurality of recording positions according to a wraparound method, and a recording position of the latest operation history information in the operation history information storage area Current information,
The CPU has means for recording and referring to the log file; and
When the CPU starts execution of the series of processing steps by the recording and referring means, the CPU refers to the current information and determines a recording position where the next operation history information should be stored in the operation history information storage area. Determine and execute each processing step after recording a completion unconfirmed message as operation history information for the recording position where the next operation history information should be stored prior to execution of each processing step included in the series of processing steps. When the execution of each processing step is completed, the completion unconfirmed message is overwritten by a normal message and recorded as operation history information. When the execution of each processing step cannot be completed, the completion unconfirmed message is left as it is. An IC card system characterized by being operation history information.
前記動作履歴情報が、文字列データ以外の識別子であることを特徴とする請求項1に記載のICカードシステム。   The IC card system according to claim 1, wherein the operation history information is an identifier other than character string data.
JP2007222503A 2007-08-29 2007-08-29 Ic card system Withdrawn JP2009054090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007222503A JP2009054090A (en) 2007-08-29 2007-08-29 Ic card system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007222503A JP2009054090A (en) 2007-08-29 2007-08-29 Ic card system

Publications (1)

Publication Number Publication Date
JP2009054090A true JP2009054090A (en) 2009-03-12

Family

ID=40505092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007222503A Withdrawn JP2009054090A (en) 2007-08-29 2007-08-29 Ic card system

Country Status (1)

Country Link
JP (1) JP2009054090A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012004939A1 (en) * 2010-07-07 2012-01-12 パナソニック株式会社 Communication device and communication method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012004939A1 (en) * 2010-07-07 2012-01-12 パナソニック株式会社 Communication device and communication method
JP4892652B1 (en) * 2010-07-07 2012-03-07 パナソニック株式会社 Communication apparatus and communication method
US8855563B2 (en) 2010-07-07 2014-10-07 Panasonic Intellectual Property Corporation Of America Communication apparatus and communication method

Similar Documents

Publication Publication Date Title
EP2667519B1 (en) Bluetooth connection method
CN102934101B (en) For the transparent access mechanism of local and remote data
EP2296108A1 (en) Portable electronic device and control method thereof
US9703995B2 (en) Portable terminal, imaging apparatus, communication system, communication method of portable terminal, communication method of imaging apparatus, and computer readable storage device
KR20070087474A (en) Password management device, password management method, and computer readable recording medium recording a password management program
EP3614570A1 (en) Near filed communication (nfc) device and system
US9430638B2 (en) Authentication method, authentication apparatus and authentication device
JP4468407B2 (en) Data management system, management server, data management method, and program
CN108303926B (en) Electric vehicle control method and computing device
CN117391099A (en) Data downloading and checking method and system for smart card and storage medium
CN109791485A (en) Aerial modem firmware upgrade based on mesh network
CN117687664A (en) Online upgrade configuration method and device for DSP
CN112905668A (en) Database derivative method, apparatus, and medium based on distributed data stream processing engine
JP2011087180A (en) Service providing system and method
JP2009054090A (en) Ic card system
CN107957916A (en) Terminal restorative procedure and device, electronic equipment, computer-readable recording medium
CN110502258A (en) A kind of method, equipment and readable medium upgrading network interface card
CN103491057A (en) Method, system and device for sharing session data
CN113852610B (en) Message processing method, device, computer equipment and storage medium
JP2002140664A (en) Method for shifting data in ic card and the ic card
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium
CN107710265B (en) Seal device, operation method thereof, and program
CN110427280B (en) Cache management method, system, computer equipment and storage medium
CN111163155A (en) Account checking file transmission method, account checking file transmission system, account checking file transmission server and storage medium
US20080300019A1 (en) Cellular phone

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20101102