JP3984062B2 - Card processing apparatus and card processing method - Google Patents

Card processing apparatus and card processing method Download PDF

Info

Publication number
JP3984062B2
JP3984062B2 JP2002017457A JP2002017457A JP3984062B2 JP 3984062 B2 JP3984062 B2 JP 3984062B2 JP 2002017457 A JP2002017457 A JP 2002017457A JP 2002017457 A JP2002017457 A JP 2002017457A JP 3984062 B2 JP3984062 B2 JP 3984062B2
Authority
JP
Japan
Prior art keywords
data
search
card
record table
check digit
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.)
Expired - Lifetime
Application number
JP2002017457A
Other languages
Japanese (ja)
Other versions
JP2003216907A (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
Original Assignee
Toshiba 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 filed Critical Toshiba Corp
Priority to JP2002017457A priority Critical patent/JP3984062B2/en
Publication of JP2003216907A publication Critical patent/JP2003216907A/en
Application granted granted Critical
Publication of JP3984062B2 publication Critical patent/JP3984062B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Credit Cards Or The Like (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えば磁気記録式あるいはICメモリ式などのカード状記録媒体からカード固有の情報を読み取りカード状記録媒体の認証を行う際に用いられるカード処理装置、カード処理方法に関する。
【0002】
【従来の技術】
従来のカード処理装置としては、ICカードよりデータを読み取り、ICカード自体の正当性をチェックした後、カード処理を行うカードリーダ/ライタなどがある。
【0003】
従来のカードリーダ/ライタには、予めメモリにチェック元となる複数のレコードがレコードテーブルとして記憶されており、各レコードの内容とICカードから読み取ったデータとを比較していずれかのレコードに該当データが存在するかどうかをチェックすることでICカードが有効か無効かの判定(正当性チェック)を行っている。
【0004】
メモリのレコードテーブルには、図5に示すように、レコード番号に対応してデータ範囲を示すFromデータとToデータとチェック桁数が予め格納されている。
【0005】
カードリーダ/ライタがカードから読み取った検索対象データが、例えば「56789012」などの場合、カードリーダ/ライタは、まず、メモリのレコードテーブルの第1レコードのチェック桁数を見る(図6のS601)。
【0006】
そして、カードリーダ/ライタは、その桁数分のデータをFromデータ、Toデータ、検索対象データからそれぞれ抽出する(S602、S603)。
【0007】
この例の場合、Fromデータは、「10」、Toデータは「20」、検索対象データは「56」となり、検索対象データがこの第1レコードの範囲には含まれおらず、判定結果としては、Noとなり、次のレコードの検索を行う(S605、S606)。
【0008】
このような処理を順次繰り返し、全レコードの検索が終了するか(S605のYes)、またはどこかのレコードの範囲に含まれた場合に(S604のYes)、検索処理は終了する。
【0009】
この例では、3レコード目に該当データが含まれているため、3レコード目を検索した時点で処理が終了となる(S604)。
【0010】
すなわち、従来のカードリーダ/ライタの場合、1レコード毎にチェック桁数分のデータの抽出を行った後、その抽出した桁の中でデータが存在するか否かのチェックを行っている。
【0011】
ところで、このようなカードリーダ/ライタを設計および商品化する上では、装置自体の処理機能(検索プログラム)が正常に機能するかどうかを確認する試験(デバッグなど)が行われる。
【0012】
【発明が解決しようとする課題】
しかしながら、従来のカードリーダ/ライタ、つまりカード処理装置の場合、上記のようにカードよりデータを読み取る際に、レコード毎にデータからチェック桁を抽出する処理を行った上で、カードより読み出したデータが各レコードの範囲内に存在するか否かを検索するという煩わしい処理を随時行う必要があるため、試験(デバッグなど)に多大な時間を要するという問題がある。
【0013】
また、従来のカード処理装置では、実際にカードが利用される際に、データからの桁数抽出処理と検索処理とを行うためカード処理に時間がかかり、カード処理時間の短縮化を求められるバスや駅の改札業務、有料道路の出入口などに導入される入退場システムには不向きであるという問題点があった。
【0014】
本発明はこのような課題を解決するためになされたもので、カード処理時間を短縮することのできるカード処理装置、カード処理方法を提供することを目的としている。
【0015】
【課題を解決するための手段】
上記した目的を達成するために、請求項1記載の発明は、カード状記憶媒体より検索対象データを読み取る読取手段と、前記検索対象データについて、検索範囲の開始データおよび検索範囲の終了データと、チェックすべき桁数を示すチェック桁数データとから構成されたレコードテーブルを記憶するレコードテーブル記憶手段と、前記レコードテーブル記憶手段に記憶されているレコードテーブルのチェック桁数データに基づいて前記開始データのチェック桁以外の部分にNULLを示す「0」を代入し、また前記終了データのチェック桁以外の部分に16進法の最終値である「F」を代入し前記開始データおよび前記終了データを置換する置換手段と、前記読取手段により読み取られた検索対象データが、前記置換手段により置換された前記開始データおよび前記終了データの範囲内に存在するか否かを検索する検索手段とを具備することを特徴としている。
【0016】
請求項2記載の発明は、検索対象データについて、検索範囲の開始データおよび検索範囲の終了データと、チェックすべき桁数を示すチェック桁数データとから構成されたレコードテーブルを記憶するステップと、前記レコードテーブルのチェック桁数データに基づいて前記開始データのチェック桁以外の部分にNULLを示す「0」を代入し、また前記終了データのチェック桁以外の部分に16進法の最終値である「F」を代入し前記開始データおよび前記終了データを置換するステップと、カード状記憶媒体より検索対象データを読み取るステップと、読み取った検索対象データが、置換した前記開始データおよび前記終了データの範囲内に存在するか否かを検索するステップとを有することを特徴としている。
【0017】
本発明では、レコードテーブル記憶手段に記憶されているレコードテーブルのチェック桁数データに基づいて開始データのチェック桁以外の部分にNULLを示す「0」を代入し、また終了データのチェック桁以外の部分に16進法の最終値である「F」を代入し開始データおよび終了データを予め置換しておく。
【0018】
そして、読取手段によりカード状記憶媒体から検索対象データが読み取られたときに、検索対象データが、置換された開始データおよび終了データの範囲内に存在するか否かを検索することで、カード状記憶媒体が有効か無効かのチェックを行う。これにより、従来検索時に行っていた検索対象データ、開始データおよび終了データからの桁数分のデータ抽出処理が不用になり、カードデータの検索処理を高速に行うことができ、カード処理時間を短縮することができる。
【0019】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して詳細に説明する。
図1は本発明に係る一つの実施形態のカード処理システムの構成を示す図である。
【0020】
同図に示すように、このカード処理システムは、カード状記録媒体、例えばICメモリ式のクレジットカード(以下ICカード1と称す)をセットして、ICカード1から情報を読み取り、カード処理を実行するカードリーダ/ライタ2と、このカードリーダ/ライタ2に通信網3を介して接続されたコンピュータ4とを有している。コンピュータ4は、カードリーダ/ライタ2に対して検索元のデータとなるレコードテーブルを転送するホストコンピュータであり、カード会社などに設置されている。コンピュータ4は、カードリーダ/ライタ2からの料金引き落とし依頼を受けて該当預金口座への料金引き落とし処理などを実行する。
【0021】
ICカード1には、カードを識別するためのカード固有の情報、つまり検索対象データが記憶されている。この例において、検索対象データの値は、従来の技術で説明した例と同様に、8桁の数値データ、例えば「56789012」などとする。
【0022】
カードリーダ/ライタ2は、CPUなどの制御部と、EEPROM、RAMなどのメモリと、ICカード1から情報を読み取りおよび書き込むカードリードライト部と、EEPROMにはこの装置の制御プログラムおよびコンピュータ4から転送されてきたレコードテーブルが記憶されており、装置起動時にCPUが制御プログラムを読み込みRAMに展開することでカード処理が可能になる。制御プログラムおよびレコードテーブルの内容はアップグレードあるいは更新可能である。
【0023】
以下、図2〜図5を参照してこのカード処理システムにおけるカードリーダ/ライタ2の動作を説明する。なお、説明を判りやすくするために、検索元のレコードテーブルは、複数のレコードを有し、従来の説明で図5に示したもの、つまりデータの範囲を示すFromデータ(検索範囲の開始データ)およびToデータ(検索範囲の終了データ)と、チェックすべき桁数を示すチェック桁数データとから構成されているものとし、コンピュータ4からカードリーダ/ライタ2のメモリに予め転送され記憶されているものとする。
【0024】
このカードリーダ/ライタ2の場合、検索処理前の事前準備として、カードリーダ/ライタ2のメモリに記憶されているレコードテーブルのデータ群(各レコードのFromデータおよびToデータ)を変換しておく。
【0025】
従って、このカードリーダ/ライタ2では、制御部は、まず、1レコード目からチェック桁数が最大桁(8桁)かどうかをチェックし(図2のS201)、最大桁未満であれば、データの置換処理を実施する。
【0026】
図5のレコードテーブルでは、第1レコードのチェック桁数が「2」であるため、データの置換処理が必要となる。
【0027】
この例では、第1レコードのFromデータが「10999999」であるが、必要な値は上2桁のみであるため、カードリーダ/ライタ2の制御部は、残りの下6桁をすべてNULL、例えば「0」などに置き換える。つまり満たない桁に「0」を埋める(S202)。
【0028】
同様に、Toデータは「20999999」であるが、必要な値は上2桁のみであるため、カードリーダ/ライタ2の制御部は、残りの下6桁をすべて16進法の最終値である「F」に置き換える。つまり満たない桁に「F」を埋める(S203)。
【0029】
このデータ置換処理は、レコードテーブルの各レコードのデータ群すべてに対して行われる。
【0030】
この結果、図3に示すような置換後のレコードテーブル(データ群)が生成される。
【0031】
以降、チェック桁数は、意識する必要がなくなるため、事前変換したレコードテーブルのフォーマットでは不用となっている。
【0032】
続いて、ICカード1から実際に読み取ったデータの検索処理動作について説明する。なお、検索対象データの値は、従来の技術で説明した例と同様に「56789012」とする。
【0033】
この場合、カードリーダ/ライタ2では、装置本体にセットされたICカード1からカードリードライト部がデータを読み取ると、制御部は、まず、検索レコード番号nに1を設定し(図4のS401)、予め生成しておいた図3のレコードテーブルの第1レコードの範囲に検索対象データが含まれているかどうかをチェックする(図4のS402)。
【0034】
このチェック結果、第1レコードの範囲に検索対象データが含まれていれば(S402のYes)、検索処理終了となるが、この例では含まれないため、このS402の処理での判定はNoとなり、制御部は、次のレコードの検索を行う(S403、S404)。
【0035】
この処理を順次繰り返し、全レコードの検索が終了するか(S403のYes)、またはどこかのレコードの範囲に含まれていた場合(S402のYes)、制御部は、検索処理を終了する。
【0036】
図3のレコードテーブルの例では、「56789012」は、3レコード目の範囲(55550000〜7777FFFF)に含まれるため、そこで検索処理終了となる(S403)。
【0037】
上記検索処理により、いずれかのレコードにICカード1のデータがヒットすれば、そのICカード1は、有効(使用可能)であり、続いて、ICカードリーダライタ2によるICカード1へのデータの書き込み処理やコンピュータ4に対する料金引き落とし依頼の処理などの通常のカード処理が行われる。
【0038】
従来の技術の処理(図6のフローチャート)と本実施例の処理(図3のフローチャート)とを比較すると、図6の検索処理ステップS602,S603が図3には存在せず、その分、処理の高速化が図られることが判る。
【0039】
つまり、従来の場合、処理のループ回数が多くなる(つまりレコードnの値が大きい)と、その分処理が増え、処理時間が増大する。
【0040】
本発明では、チェックする桁数が常に最大桁数分となってしまうものの、従来のような都度一律でない桁数分データを抽出する処理が不用になり、検索処理の高速化を図ることができる。
【0041】
ここで、検索対象データを「98765439」とした場合(ケース)について説明する。従来の技術で示した図5のレコードテーブルを用いて本発明のように検索桁数を最大桁「8」で「98765439」をそのまま検索すると、「データが含まれない」という検索結果になるが、正解としては、7桁を抽出して検索する必要があるため「含まれる」という結果を導く必要がある。このため、図3のようなレコードテーブルへの事前変換処理は必須である。
【0042】
このケースのように、検索対象データ側のチェック桁数に含まれない値に左右されることなく検索できるのも本実施形態のカードリーダ/ライタ2の利点となる。
【0043】
なお、今まで説明した例では、第1レコードからの逐次検索を行っているが、レコードテーブルの各レコードが昇順、降順どちらか一方で並べられていれば、二分検索も併用することができ、さらに検索処理の高速化を図ることができる。
【0044】
このようにこの実施形態のカード処理システムによれば、検索すべき桁数が全桁ではないデータ検索処理を行う場合、カードリーダ/ライタ2のメモリのレコードテーブルのデータを事前に検索桁数以外の部分を考慮しなくても済むようにデータを置換しておき、ICカード1からデータを読み取ったときには、同じ桁数でのデータ検索を実行するだけなので、カード処理手順の単純化およびカード処理の高速化を図ることができる。
【0045】
また、データを検索する際に、検索対象桁数に含まれない桁位置に入っている値により検索結果が変わるような不具合も回避できる。
【0046】
すなわち、From−To形式のレコードテーブルでの検索処理により検索すべき桁数が全桁ではないデータ検索を行う上で、同一桁数での比較になるので、抽出処理が不要になり処理手順が単純化され、検索処理を高速化することができ、カード処理時間を短縮することができる。
【0047】
なお、本発明は上記実施形態のみに限定されるものではない。
上記実施形態では、ICカード1を読み書きするカードリーダ/ライタ2を例にして説明したが、この他、磁気記録式や無線通信方式のカード状記録媒体を読み書きするカード処理装置についても本発明を適用できることは言うまでもない。
【0048】
また、上記実施形態におけるカードリーダ/ライタ2の処理を実行する制御プログラム(ソフトウェア)は、ICカードやフレキシブルディスクなどのコンピュータあるいはカードリーダ/ライタ2が読み出し可能な記憶媒体に記憶されていても良く、また、ソフトウェア(プログラム)単体として伝送されるものでもよい。この場合、記憶媒体に記憶されたソフトウェア(プログラム)をコンピュータあるいはカードリーダ/ライタ2が読み出したり、LANやインターネッ上のサイト(サーバ)からダウンロードすることにより、上記実施形態における処理が可能になる。
【0049】
つまり、本発明におけるソフトウェア(プログラム)は、コンピュータと独立した記憶媒体に記憶されているものだけに限らず、LANやインターネットなどの伝送媒体を介して流通されるものも含まれる。
【0050】
なお、記憶媒体としては、上記ICカードやフレキシブルディスクの他、例えば磁気ディスク、光ディスク(CD−ROM、CD−R、DVDなど)、光磁気ディスク(MOなど)、半導体メモリなど、プログラムを記憶でき、かつコンピュータが読み取り可能な記憶媒体であれば、その記憶形式はいずれの形態であっても良い。
【0051】
また、記憶媒体からコンピュータにインストールされたプログラムの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)や、データベース管理ソフト、ネットワークソフトなどのMW(ミドルウェア)などが本実施形態を実現するための各処理の一部を実行しても良い。
【0052】
さらに、記憶媒体は、コンピュータと独立した媒体に限らず、LANやインターネットなどにより伝送されたプログラムをダウンロードして記憶または一時記憶した記憶媒体も含まれる。また、記憶媒体は一つに限らず、複数の媒体から本実施形態における処理が実行される場合も本発明における記録媒体に含まれ、媒体構成はいずれの構成であっても良い。
【0053】
なお、コンピュータは、記憶媒体に記憶されたプログラムに基づき、本実施形態における各処理を実行するものであって、パソコンなどの一つからなる装置、複数の装置がネットワーク接続されたシステムなどのいずれの構成であっても良い。
【0054】
また、コンピュータとは、パソコンに限らず、情報処理機器に含まれる演算処理装置、マイコンなども含み、プログラムによって本発明の機能を実現することが可能な機器、装置を総称している。
【0055】
以上説明したように本発明によれば、レコードテーブル記憶手段に記憶されている開始データのチェック桁以外の部分にNULLを示す「0」を代入し、また終了データのチェック桁以外の部分に16進法の最終値である「F」を代入し開始データおよび終了データを予め置換しておき、読取手段によりカード状記憶媒体から検索対象データが読み取られたときに、検索対象データが、開始データおよび終了データの範囲内に存在するか否かを検索することで、従来検索時に行っていた検索対象データ、開始データおよび終了データからの桁数分のデータの抽出処理が不になり、カードデータの検索処理を高速に行うことができ、カード処理時間を短縮することができる。
【図面の簡単な説明】
【図1】本発明の一つの実施形態のカード処理システムの構成を示す図である。
【図2】この実施形態のカード処理システムにおいて、カードリーダ/ライタによる事前置換処理を示すフローチャートである。
【図3】図2の事前置換処理にて置換されたレコードテーブルの内容を示す図である。
【図4】カードリーダ/ライタによる検索処理を示すフローチャートである。
【図5】従来の検索処理に使用されるレコードテーブルを示す図。
【図6】従来の検索処理を示すフローチャートである。
【符号の説明】
1…ICカード、2…カードリーダ/ライタ、3…通信網、4…コンピュータ。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a card processing apparatus and a card processing method used when, for example, information unique to a card is read from a card-like recording medium such as a magnetic recording type or an IC memory type to authenticate the card-like recording medium.
[0002]
[Prior art]
As a conventional card processing apparatus, there is a card reader / writer that reads data from an IC card, checks the validity of the IC card itself, and performs card processing.
[0003]
In a conventional card reader / writer, a plurality of records to be checked are stored in advance in a memory as a record table, and the contents of each record are compared with the data read from the IC card, which corresponds to any record By checking whether or not data exists, it is determined whether the IC card is valid or invalid (validity check).
[0004]
In the record table of the memory, as shown in FIG. 5, From data, To data, and the number of check digits indicating a data range corresponding to the record number are stored in advance.
[0005]
When the search target data read from the card by the card reader / writer is, for example, “56789012”, the card reader / writer first checks the number of check digits of the first record in the record table of the memory (S601 in FIG. 6). .
[0006]
Then, the card reader / writer extracts data corresponding to the number of digits from the From data, To data, and search target data (S602, S603).
[0007]
In this example, the From data is “10”, the To data is “20”, the search target data is “56”, and the search target data is not included in the range of the first record. No, and the next record is searched (S605, S606).
[0008]
Such a process is sequentially repeated, and if the search of all records is completed (Yes in S605) or included in some record range (Yes in S604), the search process ends.
[0009]
In this example, since the corresponding data is included in the third record, the process ends when the third record is searched (S604).
[0010]
That is, in the case of a conventional card reader / writer, after extracting data for the number of check digits for each record, it is checked whether or not data exists in the extracted digits.
[0011]
By the way, in designing and commercializing such a card reader / writer, a test (debugging etc.) is performed to check whether the processing function (search program) of the apparatus itself functions normally.
[0012]
[Problems to be solved by the invention]
However, in the case of a conventional card reader / writer, that is, a card processing device, when reading data from the card as described above, the data read from the card is processed after extracting the check digit from the data for each record. Therefore, there is a problem that it takes a lot of time for testing (debugging etc.) because it is necessary to perform troublesome processing of searching whether or not each exists within the range of each record.
[0013]
Also, in the conventional card processing apparatus, when the card is actually used, the number of digits extraction processing from the data and the search processing are performed, so that the card processing takes time, and a bus that is required to shorten the card processing time. There is a problem that it is not suitable for entrance / exit systems that are introduced at ticket gates at train stations and at entrances and exits of toll roads.
[0014]
The present invention has been made to solve such a problem, and an object of the present invention is to provide a card processing apparatus and a card processing method capable of reducing the card processing time.
[0015]
[Means for Solving the Problems]
In order to achieve the above-described object, the invention described in claim 1 includes a reading unit that reads search target data from a card-shaped storage medium, and for the search target data, search range start data and search range end data, Record table storage means for storing a record table composed of check digit data indicating the number of digits to be checked, and the start data based on the check digit data of the record table stored in the record table storage means “0” indicating NULL is assigned to a part other than the check digit of “1”, and “F” which is a hexadecimal final value is assigned to a part other than the check digit of the end data, and the start data and the end data are assigned. Replacement means for replacing, and search target data read by the reading means are replaced by the replacement means. It is characterized by comprising a search unit for searching whether present in serial start data and the range of the end data.
[0016]
The invention of claim 2 stores a record table composed of search range start data and search range end data, and check digit number data indicating the number of digits to be checked, for search target data; Based on the check digit number data of the record table, “0” indicating NULL is substituted into a portion other than the check digit of the start data , and the hexadecimal value is the final value in a portion other than the check digit of the end data. Substituting “F” to replace the start data and the end data, reading the search target data from the card-like storage medium, and the range of the start data and the end data replaced by the read search target data And a step of searching for whether or not it exists within.
[0017]
In the present invention, “0” indicating NULL is assigned to a portion other than the check digit of the start data based on the check digit number data of the record table stored in the record table storage means, and the check data other than the check digit of the end data is substituted. The start data and the end data are substituted in advance by substituting “F”, which is the final value in hexadecimal notation, for the portion .
[0018]
Then, when the search target data is read from the card-shaped storage medium by the reading means, the search is performed to determine whether the search target data exists within the range of the replaced start data and end data. Check whether the storage medium is valid or invalid. As a result, the data extraction process for the number of digits from the search target data, start data, and end data, which has been performed at the time of the conventional search, becomes unnecessary, the card data search process can be performed at high speed, and the card processing time is shortened. can do.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a diagram showing a configuration of a card processing system according to one embodiment of the present invention.
[0020]
As shown in the figure, this card processing system sets a card-like recording medium, for example, an IC memory type credit card (hereinafter referred to as IC card 1), reads information from the IC card 1, and executes card processing. And a computer 4 connected to the card reader / writer 2 via a communication network 3. The computer 4 is a host computer that transfers a record table serving as search source data to the card reader / writer 2, and is installed in a card company or the like. The computer 4 receives a charge reduction request from the card reader / writer 2 and executes a charge reduction process to the corresponding deposit account.
[0021]
The IC card 1 stores card-specific information for identifying the card, that is, search target data. In this example, the value of the search target data is assumed to be 8-digit numerical data, for example, “56789012”, as in the example described in the related art.
[0022]
The card reader / writer 2 includes a control unit such as a CPU, a memory such as an EEPROM and a RAM, a card read / write unit that reads and writes information from the IC card 1, and a control program for the apparatus and a computer 4 that transfer the data to the EEPROM. The record table thus stored is stored, and when the apparatus is activated, the CPU reads the control program and develops it in the RAM, thereby enabling card processing. The contents of the control program and record table can be upgraded or updated.
[0023]
The operation of the card reader / writer 2 in this card processing system will be described below with reference to FIGS. In order to make the description easy to understand, the record table of the search source has a plurality of records and is shown in FIG. 5 in the conventional description, that is, From data indicating the data range (start data of the search range). And To data (search range end data) and check digit number data indicating the number of digits to be checked, which are transferred from the computer 4 to the memory of the card reader / writer 2 and stored in advance. Shall.
[0024]
In the case of this card reader / writer 2, as a preparation before the search process, a data group (From data and To data of each record) of the record table stored in the memory of the card reader / writer 2 is converted.
[0025]
Therefore, in this card reader / writer 2, the control unit first checks whether the number of check digits is the maximum (8 digits) from the first record (S201 in FIG. 2). Perform the replacement process.
[0026]
In the record table of FIG. 5, since the number of check digits of the first record is “2”, data replacement processing is required.
[0027]
In this example, the From data of the first record is “10999999”, but since the required value is only the first two digits, the control unit of the card reader / writer 2 sets the remaining lower six digits to NULL, for example, Replace with “0”. That is, “0” is filled in the digits that are not satisfied (S202).
[0028]
Similarly, the To data is “20999999”, but since the required value is only the first two digits, the control unit of the card reader / writer 2 uses the remaining six digits as the final hexadecimal value. Replace with “F”. That is, “F” is filled in the digits that are not satisfied (S203).
[0029]
This data replacement process is performed for all data groups of each record in the record table.
[0030]
As a result, a record table (data group) after replacement as shown in FIG. 3 is generated.
[0031]
Thereafter, the check digit number is unnecessary in the format of the record table that has been converted in advance because it is not necessary to be aware of it.
[0032]
Next, a search processing operation for data actually read from the IC card 1 will be described. Note that the value of the search target data is “56789012” as in the example described in the related art.
[0033]
In this case, in the card reader / writer 2, when the card read / write unit reads data from the IC card 1 set in the apparatus body, the control unit first sets 1 to the search record number n (S401 in FIG. 4). 3), it is checked whether or not the search target data is included in the range of the first record of the record table of FIG. 3 generated in advance (S402 of FIG. 4).
[0034]
As a result of the check, if the search target data is included in the range of the first record (Yes in S402), the search process ends. However, since this example does not include, the determination in the process of S402 is No. The control unit searches for the next record (S403, S404).
[0035]
This process is sequentially repeated, and if the search of all records is completed (Yes in S403) or if it is included in some record range (Yes in S402), the control unit ends the search process.
[0036]
In the example of the record table of FIG. 3, since “56789012” is included in the range of the third record (555550000 to 7777FFFF), the search process ends there (S403).
[0037]
If the data of the IC card 1 hits any record by the above search processing, the IC card 1 is valid (usable), and subsequently, the data of the data to the IC card 1 by the IC card reader / writer 2 is stored. Normal card processing such as writing processing and processing for requesting a charge reduction to the computer 4 is performed.
[0038]
When the processing of the prior art (flowchart of FIG. 6) and the processing of the present embodiment (flowchart of FIG. 3) are compared, the search processing steps S602 and S603 of FIG. 6 do not exist in FIG. It can be seen that the speed of the system can be increased.
[0039]
That is, in the conventional case, when the number of processing loops increases (that is, the value of the record n is large), the processing increases and the processing time increases accordingly.
[0040]
In the present invention, although the number of digits to be checked is always the maximum number of digits, the conventional process of extracting data for the number of digits that is not uniform every time becomes unnecessary, and the search process can be speeded up. .
[0041]
Here, a case (case) where the search target data is “98765439” will be described. If the record table of FIG. 5 shown in the prior art is used to search “98765439” as it is with the maximum number of search digits “8” as in the present invention, a search result “data not included” is obtained. As a correct answer, since it is necessary to search by extracting 7 digits, it is necessary to derive a result of “included”. For this reason, the pre-conversion process to the record table as shown in FIG. 3 is essential.
[0042]
As in this case, it is also an advantage of the card reader / writer 2 of the present embodiment that the search can be performed without being influenced by a value not included in the number of check digits on the search target data side.
[0043]
In the example described so far, sequential search from the first record is performed, but if each record in the record table is arranged in either ascending order or descending order, binary search can be used together, Furthermore, the search process can be speeded up.
[0044]
As described above, according to the card processing system of this embodiment, when performing data search processing in which the number of digits to be searched is not all digits, the data in the record table in the memory of the card reader / writer 2 is stored in advance other than the number of search digits. The data is replaced so that it is not necessary to consider this part, and when the data is read from the IC card 1, only the data search with the same number of digits is executed, so the card processing procedure is simplified and the card processing is performed. Can be speeded up.
[0045]
In addition, when searching for data, it is possible to avoid the problem that the search result changes depending on the value in the digit position not included in the number of digits to be searched.
[0046]
That is, in performing a data search in which the number of digits to be searched is not all digits by the search process in the record table in the From-To format, the comparison is made with the same number of digits, so that the extraction process becomes unnecessary and the processing procedure is reduced. It is simplified, the search process can be speeded up, and the card processing time can be shortened.
[0047]
In addition, this invention is not limited only to the said embodiment.
In the above embodiment, the card reader / writer 2 that reads and writes the IC card 1 has been described as an example. However, the present invention is also applied to a card processing apparatus that reads and writes a magnetic recording type or wireless communication type card-like recording medium. Needless to say, it can be applied.
[0048]
Further, the control program (software) for executing the processing of the card reader / writer 2 in the above embodiment may be stored in a computer such as an IC card or a flexible disk or a storage medium readable by the card reader / writer 2. Alternatively, it may be transmitted as software (program) alone. In this case, the software (program) stored in the storage medium is read out by the computer or the card reader / writer 2 or downloaded from a site (server) on the LAN or the Internet, thereby enabling the processing in the above embodiment.
[0049]
That is, the software (program) in the present invention is not limited to that stored in a storage medium independent of the computer, but includes software distributed via a transmission medium such as a LAN or the Internet.
[0050]
As the storage medium, in addition to the IC card and the flexible disk, programs such as a magnetic disk, an optical disk (CD-ROM, CD-R, DVD, etc.), a magneto-optical disk (MO, etc.), and a semiconductor memory can be stored. As long as the computer-readable storage medium is used, the storage format may be any form.
[0051]
Further, based on an instruction of a program installed in a computer from a storage medium, an OS (operating system) running on the computer, database management software, MW (middleware) such as network software, and the like realize this embodiment. A part of each process may be executed.
[0052]
Furthermore, the storage medium is not limited to a medium independent of the computer, but also includes a storage medium in which a program transmitted via a LAN or the Internet is downloaded and stored or temporarily stored. Further, the number of storage media is not limited to one, and the case where the processing in the present embodiment is executed from a plurality of media is also included in the recording medium in the present invention, and the media configuration may be any configuration.
[0053]
The computer executes each process in the present embodiment based on a program stored in a storage medium, and includes any one device such as a personal computer or a system in which a plurality of devices are connected to a network. It may be configured as follows.
[0054]
The computer is not limited to a personal computer, but includes an arithmetic processing device, a microcomputer, and the like included in an information processing device, and is a generic term for devices and devices that can realize the functions of the present invention by a program.
[0055]
As described above, according to the present invention, “0” indicating NULL is assigned to a portion other than the check digit of the start data stored in the record table storage means, and 16 is assigned to the portion other than the check digit of the end data. When the search target data is read from the card-like storage medium by the reading means by substituting the start data and the end data in advance by substituting “F” which is the final value of the decimal system , the search target data becomes the start data and by searching whether there within the end data, the search target data which has been performed in the conventional search time, extraction of the number of data digits from the start data and end data becomes unnecessary, card Data search processing can be performed at high speed, and card processing time can be shortened.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of a card processing system according to an embodiment of the present invention.
FIG. 2 is a flowchart showing pre-replacement processing by a card reader / writer in the card processing system of this embodiment.
FIG. 3 is a diagram showing the contents of a record table replaced by the pre-replacement process of FIG.
FIG. 4 is a flowchart showing search processing by a card reader / writer.
FIG. 5 is a view showing a record table used in a conventional search process.
FIG. 6 is a flowchart showing a conventional search process.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... IC card, 2 ... Card reader / writer, 3 ... Communication network, 4 ... Computer.

Claims (2)

カード状記憶媒体より検索対象データを読み取る読取手段と、
前記検索対象データについて、検索範囲の開始データおよび検索範囲の終了データと、チェックすべき桁数を示すチェック桁数データとから構成されたレコードテーブルを記憶するレコードテーブル記憶手段と、
前記レコードテーブル記憶手段に記憶されているレコードテーブルのチェック桁数データに基づいて前記開始データのチェック桁以外の部分にNULLを示す「0」を代入し、また前記終了データのチェック桁以外の部分に16進法の最終値である「F」を代入し前記開始データおよび前記終了データを置換する置換手段と、
前記読取手段により読み取られた検索対象データが、前記置換手段により置換された前記開始データおよび前記終了データの範囲内に存在するか否かを検索する検索手段と
を具備したことを特徴とするカード処理装置。
Reading means for reading search target data from a card-like storage medium;
A record table storage means for storing a record table composed of search range start data and search range end data, and check digit number data indicating the number of digits to be checked, for the search target data;
Based on the check digit number data of the record table stored in the record table storage means, “0” indicating NULL is substituted for the part other than the check digit of the start data , and the part other than the check digit of the end data Substituting means for substituting “F”, which is the final value in hexadecimal, for the start data and the end data,
And a search means for searching whether or not the search object data read by the reading means is within the range of the start data and the end data replaced by the replacement means. Processing equipment.
検索対象データについて、検索範囲の開始データおよび検索範囲の終了データと、チェックすべき桁数を示すチェック桁数データとから構成されたレコードテーブルを記憶するステップと、
前記レコードテーブルのチェック桁数データに基づいて前記開始データのチェック桁以外の部分にNULLを示す「0」を代入し、また前記終了データのチェック桁以外の部分に16進法の最終値である「F」を代入し前記開始データおよび前記終了データを置換するステップと、
カード状記憶媒体より検索対象データを読み取るステップと、
読み取った検索対象データが、置換した前記開始データおよび前記終了データの範囲内に存在するか否かを検索するステップと
を有することを特徴とするカード処理方法。
For the search target data, storing a record table composed of search range start data and search range end data, and check digit data indicating the number of digits to be checked;
Based on the check digit number data of the record table, “0” indicating NULL is substituted into a portion other than the check digit of the start data , and the hexadecimal value is the final value in a portion other than the check digit of the end data. Substituting “F” to replace the start data and the end data;
Reading search target data from a card-like storage medium;
And a step of searching whether or not the read search target data exists within the range of the replaced start data and end data.
JP2002017457A 2002-01-25 2002-01-25 Card processing apparatus and card processing method Expired - Lifetime JP3984062B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002017457A JP3984062B2 (en) 2002-01-25 2002-01-25 Card processing apparatus and card processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002017457A JP3984062B2 (en) 2002-01-25 2002-01-25 Card processing apparatus and card processing method

Publications (2)

Publication Number Publication Date
JP2003216907A JP2003216907A (en) 2003-07-31
JP3984062B2 true JP3984062B2 (en) 2007-09-26

Family

ID=27653148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002017457A Expired - Lifetime JP3984062B2 (en) 2002-01-25 2002-01-25 Card processing apparatus and card processing method

Country Status (1)

Country Link
JP (1) JP3984062B2 (en)

Also Published As

Publication number Publication date
JP2003216907A (en) 2003-07-31

Similar Documents

Publication Publication Date Title
US7032229B1 (en) Automatic tracking of user progress in a software application
KR20090046797A (en) Electronic device, information processing method, and program
CN108170449A (en) The upgrade method of core protocol in a kind of block catenary system
CN102346925B (en) Electronic ticket storage equipment, electronic ticket checking system and method
CN116051303A (en) Method, device, equipment and medium for electronic certificate identification processing
CN113810199A (en) OBU equipment issuing method, device, equipment and storage medium
CN101681415A (en) Method and apparatus for changing and adding activation keys for functions of digital content without having to change and recompile the digital content
JP3984062B2 (en) Card processing apparatus and card processing method
JP2005078165A (en) Ic card, authentication server, and password alteration method
JP2002140664A (en) Method for shifting data in ic card and the ic card
CN112732678B (en) Data comparison method, system, electronic equipment and computer storage medium
US20020054513A1 (en) Method for program revise of an IC smartcard system
CN106873917A (en) A kind of object storage system based on disk
CN112766829A (en) Service processing method, device and equipment
JP2000113132A (en) Method for detecting illegal electronic storage medium and ic card system using the same
JP3565432B2 (en) Usage fee payment system
CN112579242B (en) Page jump relation analysis method, device, equipment and storage medium
JP2007193493A (en) Settlement system, terminal and settlement method
CN109271277A (en) Access method, device and system after database delay machine
KR100726482B1 (en) Method for managing credit card slip and system of enabling the method
JPH1153487A (en) Method for deciding validity of written data on ic card
CN118608152A (en) Method for realizing transaction power verification in financial system scene
JP4199179B2 (en) Method for detecting unauthorized electronic storage medium and IC card system using the same
CN117151042A (en) Data extraction method and device and electronic equipment
CN112651825A (en) Information verification method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070314

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070403

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070531

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: 20070703

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070705

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100713

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 3984062

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100713

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110713

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120713

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130713

Year of fee payment: 6

EXPY Cancellation because of completion of term