JP3926491B2 - IC card system with self-setting function - Google Patents

IC card system with self-setting function Download PDF

Info

Publication number
JP3926491B2
JP3926491B2 JP30268998A JP30268998A JP3926491B2 JP 3926491 B2 JP3926491 B2 JP 3926491B2 JP 30268998 A JP30268998 A JP 30268998A JP 30268998 A JP30268998 A JP 30268998A JP 3926491 B2 JP3926491 B2 JP 3926491B2
Authority
JP
Japan
Prior art keywords
information
card
electronic information
point
electronic money
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
JP30268998A
Other languages
Japanese (ja)
Other versions
JP2000132746A (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.)
Hitachi Ltd
Hitachi Advanced Digital Inc
Original Assignee
Hitachi Ltd
Hitachi Advanced Digital Inc
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 Ltd, Hitachi Advanced Digital Inc filed Critical Hitachi Ltd
Priority to JP30268998A priority Critical patent/JP3926491B2/en
Publication of JP2000132746A publication Critical patent/JP2000132746A/en
Application granted granted Critical
Publication of JP3926491B2 publication Critical patent/JP3926491B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、貨幣に代えてICカードに貯えられた電気的な電子マネー情報やポイント情報をやり取りする電子財布システムに用いて好適な電子マネー授受システムに係り、特に、ポイント機能を用いたサービスシステムに好適な自己設定機能付きICカードシステムに関する。
【0002】
【従来の技術】
例えば、販売店などによっては、顧客に対して買い物の金額に応じた各種のプレミアサービスを行なうようにしている。この場合、買い物の金額によって販売店がポイント情報を発行し、このポイント情報に相当する金権や商品券を顧客に発行したり、商品の売値を割引したりしてサービスすることが多い。
【0003】
電気的な電子マネーやこれに類する限られた範囲で有効な電子マネーであるポイントなどの電子情報をやり取りする従来の電子財布システムでは、ポイントのやり取りは、例えば、特開平3−92966号公報に記載のように、ICカードに記録された電子的な情報を端末装置が読み出して演算や制御をすることにより、例えば、商品との交換などのサービス提供を行なうようになっていた。このため、サービス提供を行なう際には、必ず端末装置において、これらの電子情報に加え、必要な情報を全て端末装置が収集し、演算などの処理を行なわなければならなかった。
【0004】
【発明が解決しようとする課題】
上記従来の技術では、電子マネーやポイントの情報のやり取りでは、端末装置が必要な全ての情報を収集する必要があった。このため、能動的に変化する、例えば、取り引きの際の割引率や使用した電子マネーの額に対するポイントの付与率などは、端末装置が情報を取得してから演算する必要があった。例えば、既に取得しているポイント値に応じて商品購入価格に対する割引サービスを行なう場合、割引率を変えるためには、端末装置は、まず、商品価格を取得し、次いで、既に取得しているポイント値をICカードから取得し、次に、内部に設定されているポイント値に応じた割引率を取得し、商品価格にポイント値に応じた割引率を掛け合わせて実際に支払う商品金額を演算して使用者に知らせることが必要であった。さらには、端末装置は、使用者に知らせた上で、実際に支払いに伴う決済を行なうことになる。
【0005】
また、既に蓄積されているポイントの値に応じてポイントを付加する割合を増やすには、端末装置は、まず、商品価格を取得し、次いで、ICカードから蓄積されているポイント値を取得し、次に、内部に設定されているポイント値に応じたポイントの付加率を取得し、商品価格にポイント値に応じた付加率を掛け合わせて付加するポイント値を演算をしなければならなかった。
【0006】
さらに、例えば、消費税のような一定の利率によって実際の取り引き金額を増加する場合、この増加額の計算も、端末装置は、まず、商品価格を取得し、この端末装置に設定された税率を用いて商品価格に税率を掛る演算を行なわなければならなかった。
【0007】
また、ポイント機能に有効期限がある場合には、端末装置は、ICカードから既に累積されている点数の有効期限を点数毎に有効期限と合わせてICカードから読み出し、取り引きの実行される日付に応じて、各点数とその有効期限を判別した後、有効な点数を加算し、しかる後、ポイント数に応じた処理を行なわなければならなかった。
【0008】
また、ポイントに従った実際の支払い金額の演算処理を端末装置の内部で行なう場合、例えば、端末装置の演算処理が違っていると、支払い金額も端末装置によって異なってしまうことになる。このため、端末装置に記録されているポイントの算出のための付加率や商品の割引率や有効期限といった情報を端末装置間で等しくする手間が必要であった。
【0009】
本発明の目的は、かかる問題を解消し、端末装置が行なっていた演算処理を軽減することにより、電子マネーやポイントなどの情報のやり取りを容易にすることができるようにした自己設定機能付きICカードシステムを提供することにある。
【0010】
【課題を解決するための手段】
上記目的を達成するために、本発明は、商品価格の情報をICカードに入力することにより、該ICカードの中央演算処理部が商品の価格を認識し、該ICカードに保持されているポイントの残高を該中央演算処理部が自ら参照し、このポイントの残高に応じて該ICカードに予め記録されている付与率のテーブルから該当する付与率を取得し、該商品価格に取得した該付与率を掛け合わせる演算を該中央演算処理部が実行し、この演算結果の付加ポイントを該中央演算処理部が自ら内部のポイントの残高に記録する構成とする。
【0011】
また、本発明は、商品価格の情報をICカードに入力することにより、該ICカードの中央演算処理部が商品の価格を認識し、該ICカードに保持されているポイントの残高を該中央演算処理部が自ら参照し、このポイントの残高に応じて該ICカードに予め記録されている割引率のテーブルから該当する割引率を取得し、該商品価格に取得した該割引率を掛け合わせる演算を該中央演算処理部が実行し、この演算結果の支払い金額を該ICカードが応答する構成とする。
【0012】
さらに、本発明は、取引きの日付の情報をICカードに入力することにより、該ICカードの中央演算処理部が取引きの日付を認識し、該ICカードに保持されているポイントの有効期限の取得を該中央演算処理部が自ら行ない、取得した該ポイント毎の有効期限を入力された該取引きの日付と比較する確認動作を該中央演算処理部が自ら行ない、その結果有効なポイントに対して該中央演算処理部が必要な処理を行なう構成とする。
【0013】
さらに、本発明は、商品価格の情報と税率をICカードに入力することにより、該ICカードの中央演算処理部が該商品価格と該税率を取得し、該商品価格に該税率を掛け合わせる支払い金額の演算を該中央演算処理部が行ない、この演算結果の支払い金額を該ICカードが応答する構成とする。
【0014】
さらに、本発明は、電子マネーとポイントといった複数の機能を有するICカードを用いて、商品価格と税率をICカードに入力することにより、有効期限の確認,付加ポイントの加算,税率とポイントによる割引きを適用した支払い金額の計算に加え、電子マネーによる支払い金額の決済も該中央演算処理部が自ら行なう構成とする。
【0015】
さらに、本発明は、演算に必要なポイントの付与率や商品価格の割引率,ポイントの有効期限といったシステムに共通なデータをICカードが有しており、これにより、どこでも同じ演算ができるようにした構成とする。
【0016】
【発明の実施の形態】
以下、本発明の実施形態を図面を用いて説明する。
図1は本発明による自己設定機能付きICカードシステムの第1の実施形態を示すブロック構成図であって、1はICカード、2は端末装置、3は中央演算装置、4は表示装置、5は入力装置、6は端末装置プログラム記録媒体、7はポイント処理プログラム、8は電子マネー処理プログラム、9は伝送線路、10は中央演算装置、11はカードプログラム記録媒体、12は電子マネー処理プログラム、13は電子マネー情報、14はポイント処理プログラム、15ポイント情報、16は電子マネー取り扱い処理プログラム、17は切替機能部である。
【0017】
同図において、この実施形態は、端末装置2とこれに着脱可能に装着されて伝送線路9によって接続されるICカード1とから構成されている。ICカード1はその内部に電子マネー情報を有しており、端末装置2は装着されたICカード1で、伝送線路9を介し、電子マネー情報の書込みや読出しを行なう。
【0018】
端末装置2は、ICカード1や端末装置2の動作を制御する中央演算装置3と、中央演算装置3によって制御されて文字などの表示を行なう表示装置4と、ユーザが動作の指示情報などを入力するための入力装置5と、中央演算装置3の制御内容を記録した端末装置プログラム記録媒体6とから構成されており、この端末装置プログラム記録媒体6には、中央演算装置3が、特に、ユーザによるICカード1の使用毎のポイントの移動の処理を行なうためのポイント処理プログラム7やユーザによるICカード1の使用毎の電子マネー情報の移動の処理を行なうための電子マネー処理プログラム8とが格納されている。
【0019】
また、ICカード1は、このICカード1の内部のデータ処理を行なう中央演算装置10と、中央演算装置10の動作を規定するプログラムが格納されたカードプログラム記録媒体11と、切替機能部17とから構成されており、この中央演算装置10と端末装置2の中央演算装置3との間で、伝送線路9を介し、電源やクロックの供給,リセット制御などの制御信号の伝送、及びデータの送受信が行なわれる。
【0020】
そして、カードプログラム記録媒体11には、中央演算装置10がICカード1の電子マネー情報13の管理動作を行なうための電子マネー処理プログラム12と、中央演算装置10がICカード1のポイント情報15の管理動作を行なうためのポイント処理プログラム14とが格納されており、このポイント処理プログラム14は、電子マネー処理プログラム12を介して電子マネー情報の移動を行なう電子マネー取り扱い処理プログラム16も含んでいる。
【0021】
切替機能部17は、中央演算装置10からの切替制御信号SCにより、端末装置2との間で送受信するデータを電子マネー処理プログラム12による処理とポイント処理プログラム14による処理とのいずれかに切り替える動作を行なうと同時に、電子マネー取り扱い処理プログラム16に対して電子マネー情報EMを接続する切り替える機能を有するものである。
【0022】
なお、中央演算装置10は、カードプログラム記録媒体11から電子マネー処理プログラム12やポイント処理プログラム14を読み取って電子マネー情報やポイント情報を処理するものであり、実際に電子マネー処理やポイント処理を行なうのは中央演算装置10であるが、図1では、図面の煩雑さを回避するために、電子マネー情報やポイント情報はカードプログラム記録媒体11に送られるようにし、夫々が電子マネー処理プログラム12やポイント処理プログラム14で処理されるように図示している。しかし、実際には、これらの処理は中央演算装置10で行なわれるものであり、以下では、電子マネー処理プログラム12による処理を電子マネー処理12といい、ポイント処理プログラム14による処理をポイント処理14といい、電子マネー取り扱い処理プログラム16による処理を電子マネー取り扱い処理16という。
【0023】
また、切替機能部17も中央演算装置10が持つ機能を分離して示したものである。
【0024】
図2は図1におけるICカード1の内部のファイルシステムを示すファイル構成図であって、中央演算装置10を介して端末装置2側からカードプログラム記録媒体11上のプログラムを見た構成である。この構成はISO規格7816に準拠した形となっている。また、図中のファイルの名称もISO規格でのファイル名称に従っている。
【0025】
同図において、MF(マスタファイル)20は電源投入やリセット直後のICカード1がアクセスできるファイルの最上位に位置するマスタファイルであり、その下位にDIR file(ディレクトリファイル)21とDF(デディケーテッドファイル)22とがある。DIR file21はICカード1内部に存在しているアプリケーションプログラムのディレクトリを記録したファイルであり、DF22は切替機能部17(図1)をソフトウエアで実現しているファイルである。
【0026】
DF22の下位にDF23,24とEF(エレメンタリファイル)25とがある。DF23は電子マネー処理12(図1)を実現しているファイル、DF24はポイント処理14(図1)を実現しているファイルであり、EF25は切替機能部17のDF22のファイルである。また、EF26は電子マネー処理12のDF23が電子マネー情報13を記録したファイルであり、EF27はポイント処理14のDF24がポイント情報15を記録したファイルである。なお、図1における電子マネー取り扱い処理16はポイント処理14のDF24の内部に含まれた形となっている。
【0027】
図3は図2に示すファイル構成を有する端末装置2での中央演算装置3がICカード1の処理の開始からポイント処理14を起動するまでの動作を示すフローチャートである。
【0028】
同図において、動作を開始するために、端末装置2がICカード1に電源電圧とクロックとを投入し、しかる後、リセット信号を供給することにより、ICカード1を活性化する(ステップ100)。ICカード1は、活性化すると、ISO7816規格に従ったATR(Answer To Reset)情報を出力する。端末装置2は、このATR情報を読み取り(ステップ101)、このATR情報に従ってICカード1との通信プロトコルを設定する。
【0029】
次に、端末装置2は、DIR file21を選択し(ステップ102)、このDIR file21からICカード1内のプログラムがあるDFの情報を読み込む(ステップ103)。この実施形態では、切替機能部17を実現するDF22はDIR file21に記述されておらず、実際の処理を行なう電子マネー処理12のDF23及びポイント処理14のDF24の各プログラムの情報が記述されている。端末装置2は、DIR file21に記述されているポイント処理14のDF24の情報を取得する。取得したこの情報に従い、ISO7816規格で定められたSelect Fileコマンドを用いてポイント処理14のDF24を選択することにより(ステップ104)、ポイント処理14の実行へと進む(ステップ105)。このとき、ポイント処理14のDF24が選択されると、切替機能部17が持つDF22が動作し、ポイント処理14のDF24を選択して端末装置2が扱えるようにすると同時に、ポイント処理14のDF24が電子マネー処理12のDF23に対してデータの受け渡しができるようになる。
【0030】
図4は端末装置2によるポイント処理14の開始指示命令(Start point Transaction command)とICカード1によるその応答(Start point Transaction response)とのフォーマットを示す図である。
【0031】
図4(a)において、ポイント処理14の開始指示命令は、ヘッダを構成するCLA,INS,P1,P2の情報とボディを構成するLc,Leの情報とからなっている。ここで、値x1のCLAはこのポイント処理14の開始指示命令がISO規格に定められた命令であるか否かを区別するための情報であり、値x2のINSはこの命令の種類を表わす情報であり、値x3,x4のP1,P2はこの命令の詳細を規定するものである(規定しない場合には、夫々“00”とする)。また、値x5のLcはこのポイント処理14の開始指示命令に含まれるデータの長さを表わす情報であり、値x6のLeはこのポイント処理14の開始指示命令に対するレスポンスに含まれるデータの長さを規定するものである(このデータ長を規定せず、可変長とする場合には、“00”とする)。なお、これらの値x1〜x6は16進数(“x”で表わす)である。この例では、上記各情報のデータ長は、x1=“82”,x2=“02”,x3=“00”,x4=“00”,x5=“1D”,x6=“13”としている。
【0032】
かかるデータ構成のポイント処理14の開始指示命令の後に、端末装置2は、商品の販売に伴なうデータ、即ち、図4(a)で「Le Data」として示すポイント処理14のためのデータが送られる。このデータは商品価格(6バイト)、税率(6バイト)、取り扱い年月日時分秒(7バイト)、取り扱った店舗のID(4バイト)、購入する商品を示すコード(6バイト)の各データからなり、合計29バイト(即ち、データ長“ID”)となる。
【0033】
ICカード1は、上記のポイント処理14の開始指示命令でこれら商品価格,税率,取り扱い年月日時分秒,取り扱った店舗のID,購入する商品を示すコードの各データを受け取ると、かかるデータを用いてポイント処理14の実行を開始する。そして、このポイント処理14を終了すると、その処理結果を図4(b)に示すフォーマットの応答として端末装置2に送る。
【0034】
この応答は、図4(b)において、「Le Data」として示す上記処理結果のデータをボディとし、これにトレイラを構成するSW1,SW2の情報が続く構成をなしている。このボディのデータ長は、先にポイント処理14の開始指示命令の情報Leで規定されるものであって、この例では、実際に支払われる支払い商品価格(6バイト),税金の金額(6バイト),処理された年月日時分秒(7バイト)の各データが付加された形となっており、合計19バイト(即ち、データ長“13”)となっている。また、SW1,SW2の情報はICカード1が正常に処理したか否かのステータスを示すものであって、正常処理の場合、SW1の値s1=“90”,SW2の値s2=“00”である。
【0035】
図5は端末装置2によるポイント処理14を介した電子マネー情報EMの移動開始指示命令(Start Value Transaction command)とICカード1によるその応答(Start Value Transaction Response)とのフォーマットを示す図である。
【0036】
ICカード1が図4に示したポイント処理14の開始指示命令に対する正常な応答を端末装置2に返すと、端末装置2は、この応答を受け取った後、図5(a)に示すフォーマットの電子マネー情報の移動開始指示命令を発行する(この命令の情報INSの値x2は“04”としている)。この命令も図4(a)に示したポイント処理14の開始指示命令と同様のフォーマットをなしているが、「Lc Data」としてのデータは送られず、この命令だけが発行される。また、この場合の「Le Data」で要求する応答でのデータ長は“FF”、即ち、255バイトである。ICカード1は、この命令を受け取り、ポイント処理14を介した電子マネー情報の移動を開始する。
【0037】
このため、ポイント処理プログラム14は、電子マネー情報の移動を電子マネー処理プログラム12に要求する。この要求は、電子マネー取り扱い処理16の中で電子マネー処理プログラム12の仕様に従った命令と応答の形に変換され、さらに、電子マネー情報を伴って、切替機能部17を介し、電子マネー処理12に入力されることで処理される。電子マネー処理12は、その内部に記録された電子マネー情報13を切替機能部17を介し、電子マネー情報としてポイント処理14に渡す。この電子マネー情報は暗号化されたものである。ポイント処理14は、図5(b)に示すように、渡された255バイトの電子マネー情報「Le Data」に加えて処理が正常であることを示す情報SW1,SW2を合わせてICカード1から出力する。
【0038】
図6は端末装置2によるポイント処理14を介した電子マネー情報の移動終了指示命令(End Value Transaction command)とICカード1によるその応答(End Value Transaction Response)とのフォーマットを示す図である。
【0039】
ICカード1が、図5(a)に示した電子マネー情報の移動開始指示命令に対し、図5(b)に示した正常な応答を返すと、端末装置2は、この応答を受け取った後、図6(a)に示すフォーマットのポイント処理14を介した電子マネー情報の移動終了指示命令を発行する(この命令の情報INSの値x2は“08”としている)。この命令は、端末装置2に接続された対向する電子マネー情報の記憶媒体(図示せず)が出力した「Lc Data」として示す電子マネー情報を付加した形で発行される。
【0040】
ICカード1では、この電子マネー情報の移動終了指示命令を受けると、ポイント処理14を介した電子マネー情報の移動を終了する。この場合、この電子マネー情報の移動終了指示命令を受け取ったポイント処理14は、この命令に付加されている電子マネー情報を電子マネー取り扱い処理16で電子マネー処理12の仕様に従った形に変換した後、この電子マネー処理12に渡して処理させる。電子マネー処理12は、この電子マネー情報を正常に受け取り、正常に処理完了すると、図6(b)に示すように、実際に移動した電子マネー情報の金額や内部で算出し加算されたポイント数,加算された後のポイント累計点数の各データからなる「Le Data」を形成し、これを正常処理を示すSW1,SW2に付加して応答とし、端末装置2に出力する。
【0041】
図7は図1におけるICカード1の中央演算装置10のポイント処理14の動作をより詳細に示すフローチャートである。
【0042】
同図において、図4(a)に示したポイント処理14の開始指示命令を受け取ると、ポイント処理14が起動し(ステップ200)、合わせて「Lc Data」として受け取った送られた「年月日時分秒」のデータから「月」のデータを取得する(ステップ201)。一方、ポイント情報14のEF27(図2)には、「月」毎にポイント累計点数が登録されており、これらポイント累計点数の中からこの取得した「月」のデータに該当するポイント累計点数を取得する(ステップ202)。
【0043】
次に、ポイント処理14(図1)の内部に記録されているポイント換算テーブルからこの取得したポイントの累計点数に応じた割引率を取得し、この割引率と「Lc Data」として受け取った商品価格(図4(a))とを掛け合わせて支払い商品価格を算出する。この場合の計算式は、
支払い商品価格=商品価格×割引率×(1+税率)
税金=商品価格×割引率×税率
のようになる(ステップ203)。
【0044】
次に、電子マネー取り扱いプログラム16(図1)及び切替機能部17(図1)を介して、電子マネー処理プログラム12が保有する残高の電子マネー情報13を取得し(ステップ204)、この残高と上記の計算によって得られた支払い商品価格とを比較する(ステップ205)。そして、残高が不足している場合には、残高不足であることを端末装置2に通知して(ステップ206)ポイント処理14を終了する。
【0045】
ステップ205での比較処理によって残高が足りていることが判明した場合には、先に図4(b)で説明したように、正常であることを示す応答(SW1,SW2)に上記の計算によって得られた支払い商品価格や税金の額,「年月日時分秒」からなる「Le Data」を加えて端末装置2に応答する(ステップ207)。端末装置2は、この応答を受け取ると、図5(a)に示した電子マネー情報の移動開始指示命令をICカード1に送るが、ICカード1の中央演算装置10はこの移動開始指示命令を受け取り(ステップ208)、この命令が正しいか否かを確認する(ステップ209)。命令が正しくなければ、正常に処理しないことを表わす図5(b)に示す情報SW1,SW2からなる応答を端末装置2に出力し(ステップ219)、処理を終了する。
【0046】
ステップ209で取り込んだ電子マネー情報の移動開始指示命令が正しいと判定したときには、ポイント処理プログラム14は、上記の計算によって得られた支払い商品価格を移動金額として設定し、電子マネー取り扱い処理16を介して電子マネー処理12に対し、電子マネー情報の移動を要求する命令を渡す(ステップ210)。電子マネー処理12が正常にこの命令を受理すると(ステップ211)、必要な手順により、ポイント処理14から電子マネー処理12を介して端末装置2への電子マネー情報の移動が行なわれる(ステップ212)。これにより、電子マネー情報13に記録される電子マネーの残高が、この移動金額、即ち、支払い商品価格分減少する。また、この際、移動する電子マネー情報が電子マネー処理12から端末装置2に出力されると、ポイント処理14は、図5(b)に示すように、この出力された電子マネー情報に加え、電子マネー情報の移動命令が正常に処理されたことを示す情報SW1,SW2を付けて端末装置2に応答を返す。
【0047】
この正常を示す応答を受け取った端末装置2は、図6(a)に示す電子マネー情報の移動終了指示命令をICカード1に送る。ポイント処理14は、この命令を受け取ると、電子マネー情報の移動処理を終了する手順を電子マネー処理12に対して行ない、電子マネー情報の移動が正常に終了すると(ステップ213)、ポイント処理14は、移動した支払い商品価格から税金の額を引いた値に上記のポイント換算テーブルから取得したポイント係数を掛けて加算ポイントを算出する。この場合の計算式は、
加算ポイント=(支払い商品価格−税金)×ポイント係数
のようになる(ステップ214)。
【0048】
次に、先に取得した「取り扱い年月日時分秒」のデータの中の「年月日」のデータとこの加算ポイントとをポイント情報15のEF27(図2)に記録するとともに(ステップ216)、このEF27のポイント累計点数にこの加算ポイントを加算した新しいポイント累計点数とし、これをポイント情報15のEF27に記録する(ステップ217)が、このとき、このEF27に同じ月のデータがない場合、古い月のポイント累計点数を消去する(ステップ215)。そして、ステップ216,217の記録が正しく行なわれると、図6(b)に示すように、算出した上記の加算ポイントと新しいポイント累計点数と移動した電子マネー情報の金額である支払い商品価格と合わせて「Le Data」とし、これに正常に終了したことを示す情報SW1,SW2が付加された応答を端末装置2に出力して(ステップ218)処理を終了する。
【0049】
なお、電子マネー情報の移動が異常に終了した場合には(ステップ213)、正常に終了しないことを表わす図6(b)に示す情報SW1,SW2からなる応答を端末装置2に出力し(ステップ219)、処理を終了する。
【0050】
図8は図1におけるポイント処理プログラム14の内部に記録されたポイント換算テーブルの一具体例を示す構成図である。
【0051】
同図において、このポイント換算テーブルでは、ポイント累計点数がその値に応じて区分され、その区分毎に商品価格の割引率や加算ポイントの算出のためのポイント計数が設定されている。図7のステップ203,214の処理に用いる割引率やポイント係数がこのポイント換算テーブルから取得される。
【0052】
図9は図1におけるポイント情報15の内部構成を示す図である。
同図において、ポイント情報15は、記録順序を示すレコード番号毎に加算ポイント,ポイント累計点数,加算ポイントの更新年月日,更新店舗固有のIDの各情報からなるものであって、これら情報が記録されないレコード番号では、値“FF……”が記録されている。
【0053】
いま、例えば、1998年2月では、20日,21日,25日及び28日にポイント処理14の動作があったとすると、図9(a)に示すように、夫々の期日毎に加算ポイントとポイント累計点数と加算ポイントの更新年月日と更新した店舗固有のIDが記録されている。そして、かかるポイント情報15を持つポイント処理14がある状態で、その後、3月20日にポイント処理14を行なったとすると、このとき、3月という新しい月の取り引きが初めてなされたことになるので、ポイント情報15の全ての情報が消去され(図7のステップ215)、図9(b)に示すように、3月20日の取り引きによる情報がレコード番号1の欄に記録されることになる。
【0054】
以上説明したように、この実施形態では、商品の取り引きに伴う税金の計算やポイントの計算,累計などの処理がICカード1内で自動的に行なわれるので、端末装置2でこれらの処理を行なう必要がなくなるし、また、ICカード1内でこれらの処理が行なわれることから、これらの計算を端末装置2で不正に行なうことができず、不正防止の効果も得られる。
【0055】
図10は本発明による自己設定機能付きICカードシステムの第2の実施形態を示すブロック構成図であって、28は駐車券取り扱い処理プログラム、29は駐車券処理プログラム、30は駐車券情報であり、図1に対応する部分には同一符号を付けて重複する説明を省略する。
【0056】
同図において、この第2の実施形態は、図1に示した第1の実施形態でのカードプログラム記録媒体11に、駐車券処理プログラム29による処理(これも中央演算装置10で実行されるものであり、以下では、この処理も駐車券処理29という)を追加したものであり、これに伴ってポイント処理14に駐車券取り扱い処理プログラム28の処理(これを、駐車券取り扱い処理28という)を含み、また、切替機能部17がポイント処理14と駐車券処理29との間の駐車券情報PCの移動も可能としている。ここで、駐車券処理プログラム29には、駐車券の記録情報である駐車券情報30が設けられている。また、駐車券取り扱い処理28は、ポイント処理14が駐車券処理29を介して駐車券情報30の参照や変更の処理を行なうものであり、切替機能部17がポイント処理14を選択すると、駐車券処理29との間で駐車券情報30を送受信可能とする。
【0057】
図11は図10におけるICカード1内のファイルシステムを示すファイル構成図である。
【0058】
同図において、このファイルシステムは、図2に示したファイルシステムに駐車券処理29を実現しているDF31が追加された構成をなし、駐車券処理DF31に駐車券情報30を記録したEF32が設けられている。図10における電子マネー取り扱い処理16と駐車券取り扱い処理28とは、ポイント処理14のDF24の内部に含まれた形となっている。
【0059】
この第2の実施形態も、図12に示すように、端末装置2の中央演算装置3がICカード1の処理を開始させてからポイント処理プログラム14を起動するまでの動作手順は、図3に示した第1の実施形態と同様である。
【0060】
図13は図10における端末装置2によるポイント処理14の開始指示命令(Start Point Transaction Command)とICカード1によるその応答(Start Point Transaction Response)とのフォーマットを示す図である。
【0061】
図13(a)は端末装置2からのポイント処理14の開始指示命令(この命令を表わす情報INSの値x2は“02”)であり、基本的には、図1での第1の実施形態に用いられる同様の命令(図4(a))と同様の構成をなすものであるが、この命令で送るデータ「Lc Data」としては、購入する商品の価格,取り扱い年月日時分秒,取り扱った店舗のID,購入する商品を示すコード及び優先通貨指定の各データからなるものであり、ICカード1はかかる命令を受けてポイント処理14を開始する。
【0062】
ICカード1は、ポイント処理14を開始すると、ポイント処理プログラム14を実行し、この結果を図13(b)に示すフォーマットの応答を端末装置2に出力する。この応答は、正常にポイント処理14がなされた場合、正常の処理を示す情報SW1,SW2に、移動を必要とする電子マネー情報の金額と処理された年月日時分秒とのデータからなる「Le Data」が付加された形式となっている。
【0063】
図14は図10における端末装置2によるポイント処理14を介した電子マネー情報の移動開始指示命令(Start Value Transaction Command)とICカード1によるその応答(Start Value Transaction Response)とのフォーマットを示す図である。
【0064】
図13に示したポイント処理14の開始指示命令に対するICカード1からの正常応答を受けると、端末装置2は、図14(a)に示すフォーマットのポイント処理14を介した電子マネー情報の移動開始指示命令をICカード1に発行する。この命令は、図5(a)に示した図1でのポイント処理14を介した電子マネー情報の移動開始指示命令と同様である。ICカード1は、この命令を受けると、ポイント処理14を介した電子マネー情報の移動を開始する。ポイント処理14は、第1の実施形態と同様、図14(b)に示すように、渡された電子マネー情報に加えて処理の結果を示す情報SW1,SW2を合わせた応答をICカード1から端末装置2に出力する。
【0065】
図15は図10における端末装置2によるポイント処理14を介した電子マネー情報の移動終了指示命令(End Value Transaction Command)とICカード1によるその応答(End Value Transaction Response)とのフォーマットを示す図である。
【0066】
図14に示した電子マネー情報の移動開始指示命令に対するICカード1からの正常応答を受けると、端末装置2は図15(a)に示すフォーマットのポイント処理14を介した電子マネー情報の移動終了指示命令を発行する。この命令は、図6(a)に示した図1でのポイント処理14を介した電子マネー情報の移動終了指示命令と同様であり、端末装置2に接続された対向する電子マネー情報の記憶媒体(図示せず)が出力した電子マネー情報が付加された形で発行される。
【0067】
ICカード1は、この命令を受けると、ポイント処理14を介した電子マネー情報の移動処理を終了する。この場合、この電子マネー情報の移動終了指示命令を受け取ったポイント処理14は、この命令に付加されている電子マネー情報を電子マネー取り扱い処理16で電子マネー処理プログラム12の仕様に従った形に変換した後、この電子マネー処理プログラム12に渡して処理させる。電子マネー処理12は、この電子マネー情報を正常に受け取り、正常に処理完了すると、図15(b)に示すように、実際に移動した電子マネー情報の金額や内部で算出し加算されたポイント数,加算された後のポイント累計点数の各データと駐車券処理29から駐車券取り扱い処理28を介して取り込んだ駐車券情報30とからなる「Le Data」を形成し、これを正常処理を示す情報SW1,SW2に付加して応答として、ICカード1から端末装置2に出力する。
【0068】
図16は図10におけるICカード1の中央演算装置10のポイント処理14の動作をより詳細に示すフローチャートである。
【0069】
同図において、図13(a)に示したポイント処理14の開始指示命令を受け取ると、ポイント処理14が起動する(ステップ200)。そして、ポイント情報15からポイント累計点数を取得し(ステップ301)、次に、電子マネー取り扱い処理16を介して電子マネー処理プログラム12が保有する電子マネー情報13の残高を取得する(ステップ302)。
【0070】
その後、上記ポイント処理14の開始指示命令ともに送られてきた優先通貨指定の情報(図13)を取得し、優先通貨が電子マネーであるか、ポイントであるかを判定する(スイップ303)。優先通貨が電子マネーである場合には、図17に示す電子マネー優先処理(ステップ304)に分岐し、優先通貨がポイントである場合には、ステップ305に進む。
【0071】
いま、優先通貨がポイントであるとすると、移動金額を以下の式、即ち、
移動金額=商品価格−ポイント累計点数
から算出し(ステップ305)、この算出した移動金額の正負を判別する(ステップ306)。移動金額が0または負であるときには、以下の計算、即ち、
新ポイントの累計点数=ポイント累計点数−商品価格
から新ポイントの累計点数を求め(ステップ307)、この新ポイントの累計点数をポイント情報15(図10)に書き込んだ後、図18に示す駐車券処理(ステップ309)に分岐する。
【0072】
一方、ステップ306の判定処理において、ステップ305で求めた移動金額が正である場合には、新ポイントの累計点数として0を設定した後(ステップ310)、ステップ302で取得した電子マネー情報13の残高とステップ305で求めた移動金額を比較する(ステップ311)。そして、移動金額が残高を上回わる(即ち、残高不足)場合には、残高不足を示す情報SW1,SW2のみからなる応答(図13(b))を端末装置2に通知し(ステップ312)し、ポイント処理14を終了する。
【0073】
移動金額が残高以内である場合には(ステップ311)、新ポイントの累計点数(この場合、0)をポイント情報15に書き込み(ステップ313)、「Le Data」の移動する電子マネー情報の金額として上記の移動金額を設定して正常の終了を示す情報SW1,SW2に付加した図13(b)に示すフォーマットの応答を端末装置2に返す(ステップ314)。
【0074】
端末装置2は、この応答を取得すると、図14に示した電子マネー情報の移動開始指示命令をICカード1に与え、ICカード1はこの命令を受信することによってポイント処理14を継続する(ステップ315)。ICカード1の中央演算装置10は、この命令が正しいか否かを判定し(ステップ316)、この命令が正しい場合には、ステップ317〜ステップ322により、図1に示した第1の実施形態での図7に示すステップ210〜214,218と同じ処理を行なう。
【0075】
即ち、ポイント処理プログラム14は、電子マネー取り扱い処理16を介して電子マネー処理12に対し、上記の移動金額の電子マネー情報の移動を要求する命令を渡す(ステップ317)。電子マネー処理12が正常にこの命令を受理すると(ステップ318)、必要な手順により、ポイント処理14から電子マネー処理12を介して、図14(a)に示す命令に対する応答として、端末装置2への電子マネー情報の移動が行なわれる(ステップ319)。この際、この応答には、図14(b)に示すように、移動する電子マネー情報が電子マネー処理12から端末装置2に出力されると、ポイント処理14は、この出力された電子マネー情報に加え、電子マネー情報の移動命令が正常に処理されたことを示す情報SW1,SW2を付加したものとなっている。
【0076】
この正常を示す応答を受け取った端末装置2は、図15(a)に示す電子マネー情報の移動終了指示命令をICカード1に送る。ポイント処理14は、この命令を受け取ると、電子マネー情報の移動処理を終了する手順を電子マネー処理12に対して行ない、電子マネー情報の移動が正常に終了すると(ステップ320)、移動した電子マネー情報の値である移動金額に加算ポイント係数を掛け合わせることにより、即ち、
加算ポイント数=移動金額×加算ポイント係数
の計算により、加算ポイント数を求める(ステップ321)。そして、求めた加算ポイント数をポイント情報15のポイント累計点数に書き込んだ後(ステップ322)、図18に示す駐車券処理29(ステップ309)の実行に移る。
【0077】
なお、取得した電子マネー情報の移動開始指示命令の移動指示が正しくない場合(ステップ316)、あるいは正しい電子マネー情報の移動開始指示命令に対して移動が正常に行なわれない場合(ステップ320)には、元のポイントの累計点数をポイント情報15に書き込み(ステップ323)、正常でないことを示す情報SW1,SW2のみからなる応答(図15(b))を端末装置2に通知して(ステップ324)ポイント処理14を終了する。
【0078】
図17は図16での電子マネー優先処理(ステップ304)を示すフローチャートである。
【0079】
同図において、まず、図16のステップ300で取り込んだ図13(a)に示したポイント処理14の開始指示命令からの「商品価格」の情報と図16のステップ302で取得した残高とを用いて、次式の計算により、移動ポイントを求める(ステップ401)。
移動ポイント=商品価格−残高
そして、移動ポイントの正負を判別する(ステップ402)。移動ポイントが負である場合には、商品価格を移動金額に設定し(ステップ403)、ステップ409に進む。
【0080】
ステップ402で移動ポイントが正と判定された場合には、上記残高を移動金額に設定し(ステップ404)、上記の移動ポイントと図16のステップ301で取得したポイント累計点数を比較する(ステップ405)。そして、ポイント累計点数が移動ポイントに満たない場合には、ポイント累計点数が不足していることを示す情報SW1,SW2だけの図13(b)に示す応答を端末装置2に返して(ステップ406)ポイント処理14を終了する。
【0081】
ポイント累計点数が移動ポイント以上の場合には、上記のポイント累計点数と移動ポイントとから、次式の計算により、新ポイントの累計点数を求め、
新ポイントの累計点数=ポイント累計点数−移動ポイント
この新ポイントの累計点数をポイント情報15に書き込んで(ステップ408)、ステップ409に進む。
【0082】
ステップ409では、「Le Data」の移動する電子マネー情報の金額として上記の移動金額を設定して正常の終了を示す情報SW1,SW2に付加した図13(b)に示すフォーマットの応答を端末装置2に返す。これに対し、端末装置装置2は、その内容を確認した後、図14(a)に示した電子マネー情報の移動開始指示命令をICカード1に与えることにより、この電子マネー優先処理、従って、ポイント処理を継続させる(ステップ410)。
【0083】
ICカード1では、この与えられた移動開始指示命令が正しいか否か判定し(ステップ411)、この命令が正しいときには、ステップ412〜ステップ417により、図16に示すステップ317〜322と同じ処理を行なう。
【0084】
即ち、ポイント処理プログラム14は、電子マネー取り扱い処理16を介して電子マネー処理12に対し、上記の移動金額の電子マネー情報の移動を要求する命令を渡す(ステップ412)。電子マネー処理12が正常にこの命令を受理すると(ステップ413)、必要な手順により、ポイント処理14から電子マネー処理12を介して、図14(a)に示す命令に対する応答として、端末装置2への電子マネー情報の移動が行なわれる(ステップ414)。この際、この応答には、図14(b)に示すように、移動する電子マネー情報が電子マネー処理12から端末装置2に出力されると、ポイント処理14は、この出力された電子マネー情報に加え、電子マネー情報の移動命令が正常に処理されたことを示す情報SW1,SW2を付加したものとなっている。
【0085】
この正常を示す応答を受け取った端末装置2は、図15(a)に示す電子マネー情報の移動終了指示命令をICカード1に送る。ポイント処理14は、この命令を受け取ると、電子マネー情報の移動処理を終了する手順を電子マネー処理12に対して行ない、電子マネー情報の移動が正常に終了すると(ステップ415)、移動した電子マネー情報の値である移動金額に加算ポイント係数を掛け合わせることにより、即ち、
加算ポイント数=移動金額×加算ポイント係数
の計算により、加算ポイント数を求める(ステップ416)。そして、求めた加算ポイント数をポイント情報15のポイント累計点数に書き込んだ後(ステップ417)、図18に示す駐車券処理29(ステップ309)の実行に移る。
【0086】
なお、取得した電子マネー情報の移動開始指示命令の移動指示が正しくない場合(ステップ411)、あるいは正しい電子マネー情報の移動開始指示命令に対して移動が正常に行なわれない場合(ステップ415)には、元のポイントの累計点数をポイント情報15に書き込み(ステップ418)、正常でないことを示す情報SW1,SW2のみからなる応答(図15(b))を端末装置2に通知して(ステップ419)ポイント処理14を終了する。
【0087】
図18は図16での駐車券処理(ステップ309)を示すフローチャートである。
同図において、まず、図10におけるポイント処理14が駐車券取り扱い処理28を介して駐車券処理29の駐車券情報30を取得する(ステップ501)。
【0088】
ここで、このポイント処理14のポイント情報15は、図19に示すように、ポイント累計点数とポイント係数と駐車時間係数と上限値と更新年月日と更新店舗IDとから構成されている。これらのうちのポイント係数と駐車時間係数と上限値との情報は管理テーブルとしての機能を有して書き替え不能であり、また、残りの情報、即ち、ポイント累計点数と更新年月日と更新店舗IDとは随時書き換えられる部分である。また、駐車券情報30は、図20に示すように、入庫年月日時刻と商品購入フラグと駐車許可時間と更新店舗IDとの情報から構成されており、随時駐車券処理29によって書き換えられるものである。
【0089】
図18に戻って、ステップ501で取得した駐車券情報30の内容の年月日や時間(図20)を確認してこの駐車券情報30が有効であるか否かを確認し(ステップ502)、有効な駐車券情報30がない場合には、ステップ511に進むが、有効な駐車券情報30がある場合には、この有効な駐車券情報30に商品を購入したことを示す商品購入フラグ(図20)を“1”に設定する(ステップ503)。これにより、商品購入による駐車時間の割引サービスが設定されたことになる。
【0090】
次に、駐車券情報30に既に書き込まれている駐車許可時間(図20)を読み取り(ステップ504)、ポイント処理14の内部のポイント管理テーブルに記録された上限値(図19)未満であるか否かを確認する(ステップ505)。この上限値以上の場合には、ステップ511に進むが、上限値未満である場合には、ポイント管理テーブルに記録されている駐車時間係数(図19)と上記の商品価格とから、次式の計算により、加算許可時間を求め(ステップ506)、
加算許可時間=商品価格×駐車時間係数
この加算許可時間が上記の上限値を越えるか否か判定する(ステップ507)。そして、この加算許可時間が上記の上限値を越えるか否かを判定し(ステップ507)、越える場合には、上限値を新しい駐車許可時間に設定するが(ステップ509)、加算許可時間が上限値以下の場合には、この加算許可時間と先に駐車券情報から読み取った駐車許可時間(図20)とから、次式の計算により、
新しい駐車許可時間=加算許可時間+駐車許可時間
新しい駐車許可時間を求め(ステップ508)、この新しい駐車許可時間またはステップ509で設定した新しい駐車許可時間を、駐車許可時間として、駐車券情報30(図20)に書き込む。この場合、図13(a)に示したポイント処理14の開始指示命令で取得した店舗IDも、更新店舗IDとして、駐車券情報30(図20)に書き込む(ステップ510)。しかる後、既に算出されている加算ポイント数や新しいポイント累計点数,移動金額,新しい駐車許可時間とを「Le Data」とし、これに正常終了を示す情報SW1,SW2を付加した図15(b)に示す応答を端末装置2に出力し(ステップ511)、この駐車券処理、従って、ポイント処理14を終了する。
【0091】
以上の動作により、この第2の実施形態では、商品の決済について2つの方法があり、これら2つの方法を指示することにより、実際の決済処理がICカード1内で自動的に処理されるため、端末装置2でこれらの処理を行なう必要がなくなる効果がある。また、商品の決済に合わせて付加的な別の機能である駐車券の駐車時間追加といったサービスも自動的に行なわれる。さらに、ICカード1内で処理が行われることから、これらの計算処理において、端末装置2側で不正が行われようとしても、この不正を行うことができないという効果は第1の実施形態と同様である。
【0092】
図21は本発明による自己設定機能付きICカードシステムの第3の実施形態を示すブロック構成図であって、33は貸し付け処理プログラム(ここでも、このプログラムによる処理を貸し付け処理33という)、34は貸し付け残高情報、35は電子マネー取り扱い処理プログラム(ここでも、このプログラムによる処理を電子マネー取り扱い処理35という)であり、図1に対応する部分には同一符号を付けて重複する説明を省略する。
【0093】
同図において、この第3の実施形態が図1に示した第1の実施形態と異なる点は、ポイント処理14に代えて、貸し付け処理33の機能を設けた点である。そして、この貸し付け処理33は、内部に貸し付け残高情報34と電子マネー取り扱い処理35とを有する構成をなしている。
【0094】
図22はこの第3の実施形態のICカード1内のファイルシステムを示す構成図である。
【0095】
同図において、このファイルシステムが図1に示す第1の実施形態のファイルシステムと異なる点は、図2と比較して明らかなように、図2でのポイント情報27を含むポイント処理14のDF24の代わりに、貸し付け残高情報37を含む貸し付け処理33を実現しているDF36が設けられている点である。図21における電子マネー取り扱い処理35は貸し付け処理33のDF36内に含まれている。
【0096】
この第3の実施形態でも、端末装置2の中央演算装置3がICカード1の処理を開始させてから貸し付け処理プログラム33を起動させるまで動作手順は、図3に示した第1の実施形態と同様である。
【0097】
図23はこの第3の実施形態での貸し付け処理プログラム33に対する端末装置2からの命令とそれに対するICカード1の応答を示す図である。
【0098】
同図(a)は貸し付け処理33の開始指示命令(Start Loan Command)の構成を示すものであって、基本構成は第1の実施形態での図4(a)で示したポイント処理14の開始指示命令と同様であるが、「Lc Data」が貸し付け金額と取り扱い年月日時分秒と取り扱った店舗の店舗IDと購入する商品を示すコードの各情報とからなり、ICカード1はかかる命令を端末装置2から受け取ると、貸し付け処理33の動作を開始する。
【0099】
貸し付け処理を開始すると、貸し付け処理33の内部は処理を実行し、この結果を応答する。正常に処理された場合のこの応答は、図23(b)に示すように、貸し付け可能な金額と処理された年月日時分秒と貸し付け限度額と貸し付け合計額と暗号化された承認番号の各情報からなる「Le Data」が付加された正常処理を示すSW1,SW2の情報から構成されている。
【0100】
図24は図21における貸し付け処理33の動作を示すフローチャートである。
【0101】
同図において、端末装置2から図23(a)に示した貸し付け処理33の開始指示命令を受け取って起動すると(ステップ601)、この命令の「Lc Data」での「取り扱い年月日時分秒」の情報から開始時の「月」の情報を取得し(ステップ602)、貸し付け処理33での貸し付け残高情報34からこの開始時の「月」と同じ月の貸し付け残高累計を取得する(ステップ603)。
【0102】
なお、貸し付け処理33内に記録されているテーブルでは、図25に示すように、電子マネー情報13の残高が区分され、その区分毎に対応する貸し付け可能金額が設定されている。つまり、電子マネー情報13の残高に応じて、貸し付け可能金額が決まることになる。また、ICカード1の貸し付け残高情報34は、図26に示すように、貸し付け金額(図23に示した貸し付け処理33の開始指示命令での「Lc Data」である貸し付け金額に対する実際に貸し付ける金額)と貸し付け合計(同じ月内での貸し付け金額の累計:上記の貸し付け残高累計)と貸し付け年月日と貸し付け店舗IDとの情報が書き込まれるて記録されてようになっている。
【0103】
そして、図24において、ステップ603の処理が終わると、この貸し付け処理33がこの開始時の「月」の最初の処理であるか否かを判定し(ステップ604)、この貸し付け処理33がこの「月」の最初の処理、即ち、貸し付け処理33にこの開始時の「月」と同じ月の貸し付け残高情報34がない場合には(図26において、例えば、レコード番号1〜4の情報しかない場合、3月の貸し付け残高情報34はないことになる)、貸し付け残高情報34にこの開始時の「月」の情報を記録し(ステップ605:図26において、例えば、レコード番号1〜4の情報しかなく、この貸し付け処理33が3月の最初の処理である場合には、レコード番号5の貸し付け年月日の欄に「3月」を表わす情報を記録する)、電子マネー取り扱い処理35を介して電子マネー処理12内の電子マネー情報13の値(残高)を取得して(ステップ606)、貸し付け処理33内に予め記録されているテーブルからこの取得した電子マネー情報13の残高に応じた貸し付け可能金額(図25)を取得し(ステップ607:例えば、電子マネー情報13の残高が10,000円とすると、図25により、貸し付け可能金額は50,000円となる)、これを貸し付け残高情報34に記録する(ステップ608)。この場合、貸し付け合計には0を設定する(この貸し付け処理33が図26での貸し付け年月日が98年3月10日である3月の最初のレコード番号5に対応している場合には、この段階で貸し付け金額,貸し付け合計ともに0に設定される)。
【0104】
なお、既に開始時の「月」と同じ月の情報が貸し付け残高情報34に記録されていた場合には(ステップ604)、以上のステップ605〜608の貸し付け可能金額の取得と記録は不要であり、代わって貸し付け残高情報34から貸し付け可能金額と貸し付け合計との取得を行なってステップ609に進む(例えば、図26において、レコード番号1〜3までの記録しかなく、98年2月28日に貸し付け処理33を行うとすると、このときの貸し付け合計は、レコード番号3に記録されている貸し付け合計30,050円ということになる)。
【0105】
ステップ604または608の処理が終わると、貸し付け処理33の開始指示命令に伴って要求された貸し付け金額に貸し付け合計を加算して(ステップ609)、その加算値と上記の貸し付け可能金額とを比較し(ステップ610)、加算値が貸し付け可能金額以下のときには、貸し付けに必要な処理を実行して、貸し付け金額と、これを貸し付け残高情報34(図26)に記録されているその月の貸し付け合計と加算した新たな貸し付け合計とを貸し付け残高情報34に記録する(ステップ611)。これを、図26において、3月に対するレコード番号5について説明すると、この場合、このレコード番号5の貸し付け合計は0であるので、貸し付け金額を5,000円とすると、新たな貸し付け合計も5000円となり、レコード番号5に貸し付け金額が5000、貸し付け合計も5000と記録されることになる。
【0106】
しかる後、貸し付け金額,貸し付けた年月日分秒,貸し付け限度額,貸し付け合計額及び内部で生成した暗号化された承認番号の各情報からなる「Le Data」が貸し付け処理33を正常に完了したことを示す情報SW1,SW2からなる図23(b)で示す応答を端末装置2に通知し(ステップ612)、貸し付け処理33を終了する。端末装置2は、この応答での貸し付け金額を確認し、承認番号が正しいことを確認した後、要求された貸し付けが可能であることを表示装置4を用いて使用者に知らせる。
【0107】
また、貸し付け金額の要求が貸し付け可能金額を越えた場合には(ステップ610)、このことを示す情報SW1,SW2の図23(b)で示す応答を端末装置2に通知し(ステップ613)、貸し付け処理33を終了する。端末装置2は、この応答を確認し、表示装置4を用いて使用者に貸し付けができないことを知らせる。
【0108】
以上の動作により、この第3の実施形態では、貸し付けの限度額を設定する際に、電子マネー情報13の残高を参照しているが,この参照をICカード1内で行うことができるので、外部で参照する必要がなく、また、毎月最初の取り引きでは,貸し付け限度額の設定がICカード1内で自動的に行なわれるので、端末装置2などを介して外部で処理することが不要となる。
【0109】
【発明の効果】
以上説明したように、本発明によると、商品価格の情報をICカードにコマンドとして入力することにより、ICカードの中央演算処理部が商品の価格を認識し、ICカードに貯えられているポイント情報の残高を該中央演算処理部が参照し、このポイントの残高に応じてICカードに予め記録されている付与率のテーブルから用いる付与率を取得し、商品価格に取得した付与率を掛け合わせる演算を該中央演算処理部が実行し、この演算した付加ポイントを該中央演算処理部が自ら内部のポイントの残高に記録するものであるから、いちいち端末装置がICカードからポイントのデータを取得して付加ポイントの演算や新規ポイントの書込みの処理をする必要がなくなる。
【0110】
また、本発明によると、商品価格の情報をICカードにコマンドとして入力することにより、ICカードの中央演算処理部が商品の価格を認識し、ICカードに貯えられているポイント情報の残高を該中央演算処理部が参照し、このポイントの残高に応じてICカードに予め記録されている割引率のテーブルから用いる割引率を取得し、商品価格に取得した割引率を掛け合わせる演算を該中央演算処理部が実行し、この演算した支払い金額をICカードが自ら決定するので、端末装置では、ICカードからポイントのデータを取得して割引率を用いた支払い金額算出の演算や新規ポイントの書込みの処理をする必要がなくなる。
【0111】
さらに、本発明によると、取り引きの日付の情報をICカードに入力することにより、ICカードの中央演算処理部が取り引きの日付を認識し、ICカードに貯えられているポイントの有効期限の取得を該中央演算処理部が自ら行ない、取得したポイント毎の有効期限を入力された取り引きの日付と比較する確認動作を該中央演算処理部が自ら行ない、この結果、有効なポイントに対して該中央演算処理部が必要な処理を行なうので、端末装置がポイントデータ毎にICカードからポイントの点数と更新年月日のデータを総て取得する必要がなくなる。
【0112】
さらに、本発明によると、商品価格の情報と税率をICカードに入力することにより、ICカードの中央演算処理部が価格と税率を取得し、価格に税率を掛け合わせる支払い金額の演算を該中央演算処理部が行ない、この演算した支払い金額をICカードが応答するので、端末装置では、商品価格と税金の額を演算する必要がなくなる。
【0113】
さらに、本発明によると、電子マネーとポイントといった複数の機能を有したICカードを用い、商品価格の情報と税率をこのICカードに入力することにより、有効期限の確認や付加ポイントの加算,税率とポイントによる割引きを適用した支払い金額の計算に加え、電子マネーによる支払い金額の決済もICカードの中央演算処理部が自ら行なうので、端末装置では、商品価格に対する税金額の算出や有効期限の確認といった処理が不要になるばかりでなく、電子マネーの移動のための処理も軽減される。
【0114】
さらに、本発明によると、演算に必要なポイントの付与率や商品の割引率,ポイントの有効期限といったシステムに共通なデータと演算式をICカードが持っていることにより、どこでも同じ演算ができるようになり、端末装置が異なっても、常に同じ条件での処理が行なわれることになる。
【図面の簡単な説明】
【図1】本発明による自己設定機能付きICカードシステムの第1の実施形態を示す構成図である。
【図2】図1におけるICカードの内部のファイルシステムを示すファイル構成図である。
【図3】図2に示す構成のファイルシステムを有する図1での端末装置の中央演算装置がICカードの処理の開始からポイント処理プログラムを起動するまでの動作を示すフローチャートである。
【図4】図1での端末装置によるポイント処理の開始指示命令とICカードによるその応答とのフォーマットを示す図である。
【図5】図1での端末装置によるポイント処理を介した電子マネー情報の移動開始指示命令とICカードによるその応答とのフォーマットを示す図である。
【図6】図1での端末装置によるポイント処理を介した電子マネー情報の移動終了指示命令とICカードによるその応答とのフォーマットを示す図である。
【図7】図1におけるICカードのポイント処理の動作を示すフローチャートである。
【図8】図1におけるポイント処理プログラムの内部に記録されたポイント換算テーブルの一具体例を示す構成図である。
【図9】図1におけるポイント情報の内部構成を示す図である。
【図10】本発明による自己設定機能付きICカードシステムの第2の実施形態を示すブロック構成図である。
【図11】図10におけるICカード内のファイルシステムを示す構成図である。
【図12】図11に示す構成のファイルシステムを有する図10での端末装置の中央演算装置がICカードの処理の開始からポイント処理プログラムを起動するまでの動作を示すフローチャートである。
【図13】図10における端末装置によるポイント処理の開始指示命令とICカードによるその応答とのフォーマットを示す図である。
【図14】図10における端末装置によるポイント処理を介した電子マネー情報の移動開始指示命令とICカードによるその応答とのフォーマットを示す図である。
【図15】図10における端末装置によるポイント処理を介した電子マネー情報の移動終了指示命令とICカードによるその応答とのフォーマットを示す図である。
【図16】図10におけるICカードの中央演算装置のポイント処理の動作をより詳細に示すフローチャートである。
【図17】図16での電子マネー優先処理を示すフローチャートである。
【図18】図16での駐車券処理を示すフローチャートである。
【図19】図10におけるポイント情報のデータ構成を示す図である。
【図20】図10における駐車券情報のデータ構成を示す図である。
【図21】本発明による自己設定機能付きICカードシステムの第3の実施形態を示すブロック構成図である。
【図22】図21におけるICカード内のファイルシステムを示す構成図である。
【図23】図21における端末装置による貸し付け処理の開始指示命令とICカードによるその応答とのフォーマットを示す図である。
【図24】図21におけるICカードの中央演算装置の貸し付け処理の動作をより詳細に示すフローチャートである。
【図25】図21における貸し付け処理でのテーブルのデータ構成を示す図である。
【図26】図21における貸し付け残高情報のデータ構成を示す図である。
【符号の説明】
1 ICカード
2 端末機
3 中央演算装置
5 入力装置
6 端末プログラム記録媒体
9 伝送線路
10 中央演算装置
11 カードプログラム記録媒体
12 電子マネー処理プログラム
13 電子マネー情報
14 ポイント処理プログラム
15 ポイント情報
16 電子マネー取り扱い処理
17 切替機能部
28 駐車券取り扱い処理
29 駐車券処理プログラム
30 駐車券情報
33 貸し付け処理プログラム
34 貸し付け残高情報
35 電子マネー取り扱い処理プログラム
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an electronic money transfer system suitable for use in an electronic wallet system for exchanging electrical electronic money information and point information stored in an IC card in place of money, and in particular, a service system using a point function. It is related with the IC card system with a self-setting function suitable for.
[0002]
[Prior art]
For example, depending on a store or the like, various premier services according to the amount of shopping are provided to customers. In this case, the dealer often issues point information according to the amount of shopping, and issues a money right or gift certificate corresponding to the point information to the customer, or discounts the selling price of the product.
[0003]
In a conventional electronic wallet system for exchanging electronic information such as electrical electronic money and points that are effective electronic money within a limited range, points are exchanged in, for example, Japanese Patent Laid-Open No. 3-92966. As described, the terminal device reads out the electronic information recorded on the IC card and performs calculation and control, thereby providing services such as exchange for goods. For this reason, when providing a service, the terminal device must always collect all necessary information in addition to the electronic information in the terminal device and perform processing such as computation.
[0004]
[Problems to be solved by the invention]
In the above-described conventional technology, it is necessary to collect all information necessary for the terminal device when exchanging information of electronic money or points. For this reason, for example, a discount rate at the time of transaction or a point grant rate for the amount of electronic money used needs to be calculated after the terminal device has acquired information. For example, when a discount service for a product purchase price is performed according to a point value that has already been acquired, in order to change the discount rate, the terminal device first acquires the product price, and then the points that have already been acquired. Get the value from the IC card, then get the discount rate according to the point value set inside, and multiply the product price by the discount rate according to the point value to calculate the amount of goods actually paid It was necessary to inform the user. Furthermore, the terminal device actually makes a settlement with payment after informing the user.
[0005]
Further, in order to increase the rate of adding points according to the value of points already accumulated, the terminal device first obtains the product price, then obtains the accumulated point value from the IC card, Next, it is necessary to obtain the point addition rate according to the point value set inside, and to calculate the point value to be added by multiplying the product price by the addition rate according to the point value.
[0006]
Furthermore, for example, when the actual transaction amount is increased by a certain interest rate such as a consumption tax, the terminal device first obtains the product price and calculates the tax rate set for this terminal device. It was necessary to use the tax rate on the product price.
[0007]
If the point function has an expiration date, the terminal device reads the expiration date of the points already accumulated from the IC card together with the expiration date for each score from the IC card, and sets the date when the transaction is executed. Accordingly, after determining each score and its expiration date, the effective score must be added, and then processing corresponding to the number of points must be performed.
[0008]
In addition, when the calculation processing of the actual payment amount according to the points is performed inside the terminal device, for example, if the calculation processing of the terminal device is different, the payment amount also varies depending on the terminal device. For this reason, it is necessary to make the information such as the addition rate for calculating the points recorded in the terminal device, the product discount rate, and the expiration date equal among the terminal devices.
[0009]
An object of the present invention is to provide an IC with a self-setting function capable of solving such problems and facilitating the exchange of information such as electronic money and points by reducing the arithmetic processing performed by the terminal device. To provide a card system.
[0010]
[Means for Solving the Problems]
In order to achieve the above-mentioned object, the present invention provides a point that the central processing unit of the IC card recognizes the price of the product and stores the price of the product by inputting the information of the product price to the IC card. The central processing unit refers to the balance of itself, obtains a corresponding grant rate from a table of grant rates recorded in advance on the IC card according to the balance of the points, and acquires the grant obtained for the product price. The central arithmetic processing unit executes an operation of multiplying the rates, and the central arithmetic processing unit records the additional points of the calculation result in the balance of the internal points.
[0011]
In addition, the present invention provides that the central processing unit of the IC card recognizes the price of the product by inputting the information on the product price into the IC card, and the balance of the points held in the IC card is calculated by the central processing. The processing unit refers to itself, obtains a corresponding discount rate from a table of discount rates recorded in advance on the IC card according to the balance of the points, and calculates the product price multiplied by the acquired discount rate. The central processing unit executes the processing, and the IC card responds with the payment amount of the calculation result.
[0012]
Furthermore, the present invention provides the IC card with information on the date of transaction, whereby the central processing unit of the IC card recognizes the date of transaction, and the expiration date of the points held in the IC card The central processing unit itself performs the confirmation operation of comparing the acquired expiration date for each point with the date of the entered transaction, and as a result, the effective point The central processing unit is configured to perform necessary processing.
[0013]
Furthermore, the present invention provides a payment that multiplies the product price by multiplying the product price by obtaining the product price and the tax rate by inputting the product price information and the tax rate to the IC card. The central processing unit performs the calculation of the amount of money, and the IC card responds with the payment amount of the calculation result.
[0014]
Furthermore, the present invention uses an IC card having a plurality of functions such as electronic money and points, and inputs the product price and tax rate to the IC card, thereby confirming the expiration date, adding additional points, and discounting by tax rate and points. In addition to the calculation of the payment amount applying the above, the central processing unit itself performs the settlement of the payment amount by electronic money.
[0015]
Furthermore, in the present invention, the IC card has data common to the system such as the point grant rate necessary for the calculation, the discount rate of the product price, and the expiration date of the points, so that the same calculation can be performed anywhere. The configuration is as follows.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a first embodiment of an IC card system with a self-setting function according to the present invention, where 1 is an IC card, 2 is a terminal device, 3 is a central processing unit, 4 is a display device, Is an input device, 6 is a terminal device program recording medium, 7 is a point processing program, 8 is an electronic money processing program, 9 is a transmission line, 10 is a central processing unit, 11 is a card program recording medium, 12 is an electronic money processing program, Reference numeral 13 is electronic money information, 14 is a point processing program, 15 point information, 16 is an electronic money handling processing program, and 17 is a switching function unit.
[0017]
In this figure, this embodiment comprises a terminal device 2 and an IC card 1 that is detachably attached to the terminal device 2 and connected by a transmission line 9. The IC card 1 has electronic money information inside, and the terminal device 2 writes and reads electronic money information via the transmission line 9 with the IC card 1 attached.
[0018]
The terminal device 2 includes a central processing unit 3 that controls the operation of the IC card 1 and the terminal device 2, a display device 4 that is controlled by the central processing unit 3 to display characters and the like, and a user's operation instruction information and the like. An input device 5 for inputting and a terminal device program recording medium 6 in which the control contents of the central processing unit 3 are recorded. The terminal device program recording medium 6 includes the central processing unit 3 in particular. There are a point processing program 7 for performing point movement processing for each use of the IC card 1 by the user and an electronic money processing program 8 for performing processing for movement of electronic money information for each use of the IC card 1 by the user. Stored.
[0019]
Further, the IC card 1 includes a central processing unit 10 that performs data processing inside the IC card 1, a card program recording medium 11 that stores a program that defines the operation of the central processing unit 10, a switching function unit 17, Between the central processing unit 10 and the central processing unit 3 of the terminal device 2 via the transmission line 9, transmission of control signals such as power supply and clock, reset control, and transmission / reception of data Is done.
[0020]
The card program recording medium 11 includes an electronic money processing program 12 for the central processing unit 10 to manage the electronic money information 13 of the IC card 1, and the central processing unit 10 stores the point information 15 of the IC card 1. A point processing program 14 for performing a management operation is stored. The point processing program 14 also includes an electronic money handling processing program 16 for transferring electronic money information via the electronic money processing program 12.
[0021]
The switching function unit 17 is configured to switch the data transmitted / received to / from the terminal device 2 between the processing by the electronic money processing program 12 and the processing by the point processing program 14 in accordance with the switching control signal SC from the central processing unit 10. At the same time, the electronic money handling program 16 has a function of switching the electronic money information EM.
[0022]
The central processing unit 10 reads the electronic money processing program 12 and the point processing program 14 from the card program recording medium 11 and processes electronic money information and point information, and actually performs electronic money processing and point processing. In FIG. 1, in order to avoid the complexity of the drawing, electronic money information and point information are sent to the card program recording medium 11 in FIG. It is illustrated as being processed by the point processing program 14. However, in practice, these processes are performed by the central processing unit 10, and in the following, the process by the electronic money processing program 12 is referred to as an electronic money process 12, and the process by the point process program 14 is referred to as a point process 14. The processing by the electronic money handling processing program 16 is called electronic money handling processing 16.
[0023]
The switching function unit 17 also shows the functions of the central processing unit 10 separately.
[0024]
FIG. 2 is a file configuration diagram showing a file system inside the IC card 1 in FIG. 1, in which the program on the card program recording medium 11 is viewed from the terminal device 2 side through the central processing unit 10. This configuration is in conformity with ISO standard 7816. In addition, the file names in the figure also follow the ISO standard file names.
[0025]
In the figure, an MF (master file) 20 is a master file located at the top of a file that can be accessed by the IC card 1 immediately after power-on or reset, and a DIR file (directory file) 21 and a DF (dedicated file) are located below it. Ted file) 22. The DIR file 21 is a file in which the directory of the application program existing in the IC card 1 is recorded, and the DF 22 is a file in which the switching function unit 17 (FIG. 1) is realized by software.
[0026]
There are DFs 23 and 24 and an EF (elementary file) 25 under the DF 22. The DF 23 is a file that realizes the electronic money process 12 (FIG. 1), the DF 24 is a file that realizes the point process 14 (FIG. 1), and the EF 25 is a file of the DF 22 of the switching function unit 17. The EF 26 is a file in which the DF 23 of the electronic money process 12 records the electronic money information 13, and the EF 27 is a file in which the DF 24 of the point process 14 records the point information 15. Note that the electronic money handling process 16 in FIG. 1 is included in the DF 24 of the point process 14.
[0027]
FIG. 3 is a flowchart showing an operation from the start of processing of the IC card 1 to starting the point processing 14 in the terminal device 2 having the file configuration shown in FIG.
[0028]
In the figure, in order to start the operation, the terminal device 2 inputs a power supply voltage and a clock to the IC card 1, and then activates the IC card 1 by supplying a reset signal (step 100). . When activated, the IC card 1 outputs ATR (Answer To Reset) information according to the ISO7816 standard. The terminal device 2 reads this ATR information (step 101), and sets a communication protocol with the IC card 1 according to the ATR information.
[0029]
Next, the terminal device 2 selects the DIR file 21 (step 102), and reads the DF information with the program in the IC card 1 from the DIR file 21 (step 103). In this embodiment, the DF 22 that realizes the switching function unit 17 is not described in the DIR file 21, and information of each program of the DF 23 of the electronic money process 12 and the DF 24 of the point process 14 that perform actual processing is described. . The terminal device 2 acquires the DF 24 information of the point processing 14 described in the DIR file 21. According to the acquired information, the DF 24 of the point process 14 is selected using the Select File command defined in the ISO 7816 standard (step 104), and the process proceeds to the execution of the point process 14 (step 105). At this time, when the DF 24 of the point processing 14 is selected, the DF 22 of the switching function unit 17 operates to select the DF 24 of the point processing 14 so that the terminal device 2 can handle it. At the same time, the DF 24 of the point processing 14 Data can be transferred to the DF 23 of the electronic money process 12.
[0030]
FIG. 4 is a diagram showing a format of a start instruction command (Start point Transaction command) of the point processing 14 by the terminal device 2 and a response (Start point Transaction response) by the IC card 1.
[0031]
In FIG. 4A, the start instruction command of the point process 14 includes information on CLA, INS, P1, and P2 constituting the header and information on Lc and Le constituting the body. Here, CLA of value x1 is information for distinguishing whether the start instruction command of this point processing 14 is a command defined in the ISO standard, and INS of value x2 is information indicating the type of this command. P1 and P2 of the values x3 and x4 define the details of this instruction (if not specified, they are set to “00”, respectively). Further, Lc of value x5 is information indicating the length of data included in the start instruction command of this point process 14, and Le of value x6 is the length of data included in the response to the start instruction instruction of this point process 14 (If this data length is not specified but variable length, it is set to “00”). These values x1 to x6 are hexadecimal numbers (represented by “x”). In this example, the data length of each piece of information is x1 = "82", x2 = "02", x3 = "00", x4 = "00", x5 = "1D", x6 = "13".
[0032]
After the start instruction command of the point process 14 having such a data structure, the terminal device 2 receives data associated with the sale of the product, that is, data for the point process 14 indicated as “Le Data” in FIG. Sent. This data consists of product price (6 bytes), tax rate (6 bytes), handling date / time / minute / second (7 bytes), handling store ID (4 bytes), and code (6 bytes) indicating the product to be purchased. For a total of 29 bytes (ie, data length “ID”).
[0033]
When the IC card 1 receives each data of the product price, the tax rate, the handling date / time / minute / second, the ID of the handled store, and the code indicating the product to be purchased in response to the start instruction of the point processing 14, the data is received. The execution of the point process 14 is started. When this point processing 14 is completed, the processing result is sent to the terminal device 2 as a response in the format shown in FIG.
[0034]
This response has a structure in which data of the above processing result shown as “Le Data” in FIG. 4B is used as a body, followed by information on SW1 and SW2 constituting the trailer. The data length of this body is specified in advance by the information Le of the start instruction command of the point processing 14, and in this example, the payment product price (6 bytes) to be actually paid, the amount of tax (6 bytes) ), Processed data of year / month / day / hour / minute / second (7 bytes) is added, and the total data is 19 bytes (that is, the data length is "13"). The information of SW1 and SW2 indicates the status of whether or not the IC card 1 has processed normally. In the case of normal processing, SW1 value s1 = “90” and SW2 value s2 = “00”. It is.
[0035]
FIG. 5 is a diagram showing a format of an electronic money information EM movement start instruction command (Start Value Transaction command) and a response (Start Value Transaction Response) by the IC card 1 through the point processing 14 by the terminal device 2.
[0036]
When the IC card 1 returns a normal response to the start instruction command of the point processing 14 shown in FIG. 4 to the terminal device 2, the terminal device 2 receives the response, and then the electronic device having the format shown in FIG. A movement start instruction command for money information is issued (the value x2 of the information INS of this command is set to “04”). This command also has the same format as the start instruction command of the point processing 14 shown in FIG. 4A, but data as “Lc Data” is not sent, and only this command is issued. In this case, the data length in the response requested by “Le Data” is “FF”, that is, 255 bytes. The IC card 1 receives this command and starts moving electronic money information via the point process 14.
[0037]
Therefore, the point processing program 14 requests the electronic money processing program 12 to move the electronic money information. This request is converted into an instruction and response form in accordance with the specifications of the electronic money processing program 12 in the electronic money handling process 16, and the electronic money process is performed via the switching function unit 17 together with the electronic money information. 12 is processed. The electronic money process 12 passes the electronic money information 13 recorded therein to the point process 14 as electronic money information via the switching function unit 17. This electronic money information is encrypted. As shown in FIG. 5 (b), the point processing 14 includes information SW 1 and SW 2 indicating that the processing is normal in addition to the 255-byte electronic money information “Le Data” passed from the IC card 1. Output.
[0038]
FIG. 6 is a diagram showing a format of an electronic money information transfer end instruction command (End Value Transaction command) via the point processing 14 by the terminal device 2 and a response (End Value Transaction Response) by the IC card 1.
[0039]
When the IC card 1 returns the normal response shown in FIG. 5B in response to the electronic money information transfer start instruction command shown in FIG. 5A, the terminal device 2 receives this response. Then, an electronic money information transfer end instruction command is issued through the point processing 14 in the format shown in FIG. 6A (the value x2 of the information INS of this command is set to “08”). This command is issued in a form to which electronic money information indicated as “Lc Data” output from a storage medium (not shown) of opposing electronic money information connected to the terminal device 2 is added.
[0040]
When the IC card 1 receives this electronic money information movement end instruction command, the movement of the electronic money information via the point process 14 is terminated. In this case, the point process 14 that has received the instruction to end the movement of electronic money information converts the electronic money information added to the instruction into a form according to the specifications of the electronic money process 12 by the electronic money handling process 16. Thereafter, it is transferred to the electronic money processing 12 for processing. When the electronic money processing 12 normally receives this electronic money information and completes the processing normally, as shown in FIG. 6B, the amount of electronic money information actually moved and the number of points calculated and added internally , “Le Data” made up of the accumulated points is added to SW1 and SW2 indicating normal processing as a response and output to the terminal device 2.
[0041]
FIG. 7 is a flowchart showing the operation of the point processing 14 of the central processing unit 10 of the IC card 1 in FIG. 1 in more detail.
[0042]
In FIG. 4, when the start instruction command for the point process 14 shown in FIG. 4A is received, the point process 14 is activated (step 200), and the received “year / month / date / time received as“ Lc Data ”is also received. “Month” data is acquired from “minute and second” data (step 201). On the other hand, in the EF 27 (FIG. 2) of the point information 14, the accumulated point number for each “month” is registered, and the accumulated point number corresponding to the acquired “month” data is selected from these accumulated point points. Obtain (step 202).
[0043]
Next, a discount rate corresponding to the cumulative number of points acquired is acquired from the point conversion table recorded in the point processing 14 (FIG. 1), and the discount rate and the commodity price received as “Lc Data”. The product price to be paid is calculated by multiplying (FIG. 4A). The formula in this case is
Payment product price = product price x discount rate x (1 + tax rate)
Tax = product price x discount rate x tax rate
(Step 203).
[0044]
Next, the electronic money information 13 of the balance held by the electronic money processing program 12 is acquired via the electronic money handling program 16 (FIG. 1) and the switching function unit 17 (FIG. 1) (step 204). The payment commodity price obtained by the above calculation is compared (step 205). If the balance is insufficient, the terminal device 2 is notified that the balance is insufficient (step 206), and the point processing 14 is terminated.
[0045]
If it is determined by the comparison process in step 205 that the balance is sufficient, as described above with reference to FIG. 4B, the response (SW1, SW2) indicating normality is obtained by the above calculation. The payment product price and tax amount obtained, and “Le Data” consisting of “year / month / day / hour / minute / second” are added to respond to the terminal device 2 (step 207). When the terminal device 2 receives this response, it sends the movement start instruction command for the electronic money information shown in FIG. 5A to the IC card 1. The central processing unit 10 of the IC card 1 sends this movement start instruction command. Receipt (step 208), and confirms whether this command is correct (step 209). If the command is not correct, a response including information SW1 and SW2 shown in FIG. 5B indicating that the command is not processed normally is output to the terminal device 2 (step 219), and the process is terminated.
[0046]
When it is determined that the transfer start instruction command of the electronic money information captured in step 209 is correct, the point processing program 14 sets the payment commodity price obtained by the above calculation as the transfer amount, and passes through the electronic money handling process 16. Then, a command requesting movement of the electronic money information is passed to the electronic money processing 12 (step 210). When the electronic money processing 12 normally accepts this command (step 211), electronic money information is transferred from the point processing 14 to the terminal device 2 via the electronic money processing 12 by a necessary procedure (step 212). . As a result, the balance of the electronic money recorded in the electronic money information 13 is reduced by this transfer amount, that is, the payment commodity price. At this time, when the moving electronic money information is output from the electronic money processing 12 to the terminal device 2, the point processing 14 adds to the output electronic money information, as shown in FIG. A response is returned to the terminal device 2 with the information SW1 and SW2 indicating that the electronic money information transfer command has been processed normally.
[0047]
The terminal device 2 that has received the response indicating normality sends an electronic money information transfer end instruction command to the IC card 1 as shown in FIG. Upon receiving this command, the point process 14 performs a procedure for ending the electronic money information transfer process on the electronic money process 12, and when the transfer of the electronic money information ends normally (step 213), the point process 14 Then, an additional point is calculated by multiplying the value obtained by subtracting the amount of tax from the price of the paid payment product by the point coefficient acquired from the above point conversion table. The formula in this case is
Additional points = (Priced product price-Tax) x Point coefficient
(Step 214).
[0048]
Next, the data of “year / month / day” in the data of “handling date / time / minute / second” acquired earlier and this addition point are recorded in the EF 27 (FIG. 2) of the point information 15 (step 216). Then, a new point accumulated point obtained by adding the added point to the point accumulated point of the EF 27 is recorded in the EF 27 of the point information 15 (step 217). At this time, when there is no data of the same month in the EF 27, The accumulated point number for the old month is deleted (step 215). When the recording in steps 216 and 217 is performed correctly, as shown in FIG. 6B, the calculated added points, the new accumulated points, and the payment merchandise price which is the amount of the electronic money information transferred are matched. "Le Data", and a response to which information SW1 and SW2 indicating normal termination is added is output to the terminal device 2 (step 218), and the processing is terminated.
[0049]
When the movement of the electronic money information is abnormally terminated (step 213), a response including the information SW1 and SW2 shown in FIG. 6B indicating that the electronic money information is not normally terminated is output to the terminal device 2 (step 213). 219), the process ends.
[0050]
FIG. 8 is a block diagram showing a specific example of the point conversion table recorded in the point processing program 14 in FIG.
[0051]
In this figure, in this point conversion table, the accumulated point number is divided according to the value, and a discount rate of product price and a point count for calculating additional points are set for each division. Discount rates and point coefficients used in the processing of steps 203 and 214 in FIG. 7 are acquired from this point conversion table.
[0052]
FIG. 9 is a diagram showing an internal configuration of the point information 15 in FIG.
In the figure, the point information 15 is composed of each information of an addition point, a cumulative point number, an update date of the addition point, and an ID unique to the update store for each record number indicating the recording order. In the record number not recorded, the value “FF...” Is recorded.
[0053]
Now, for example, in February 1998, if the point process 14 was operated on the 20th, 21st, 25th and 28th, as shown in FIG. The accumulated point number, the update date of the added point, and the updated unique ID of the store are recorded. Then, if there is a point process 14 with such point information 15 and then the point process 14 is performed on March 20, then the transaction for a new month of March will be made for the first time. All information of the point information 15 is deleted (step 215 in FIG. 7), and information from the transaction on March 20 is recorded in the record number 1 column as shown in FIG. 9B.
[0054]
As described above, in this embodiment, processing such as tax calculation, point calculation, and totalization associated with merchandise transactions is automatically performed in the IC card 1, so these processes are performed by the terminal device 2. Since it is not necessary, and since these processes are performed in the IC card 1, these calculations cannot be performed illegally in the terminal device 2, and the effect of preventing fraud can be obtained.
[0055]
FIG. 10 is a block diagram showing a second embodiment of the IC card system with a self-setting function according to the present invention, wherein 28 is a parking ticket handling processing program, 29 is a parking ticket processing program, and 30 is parking ticket information. The parts corresponding to those in FIG.
[0056]
In the figure, the second embodiment is a process (also executed by the central processing unit 10) by the parking ticket processing program 29 on the card program recording medium 11 in the first embodiment shown in FIG. In the following, this processing is also referred to as parking ticket processing 29), and accordingly, the processing of the parking ticket handling processing program 28 (referred to as parking ticket handling processing 28) is added to the point processing 14. In addition, the switching function unit 17 enables the movement of the parking ticket information PC between the point processing 14 and the parking ticket processing 29. Here, the parking ticket processing program 29 is provided with parking ticket information 30 which is parking ticket recording information. The parking ticket handling process 28 is a process in which the point process 14 refers to or changes the parking ticket information 30 via the parking ticket process 29. When the switching function unit 17 selects the point process 14, the parking ticket is processed. The parking ticket information 30 can be transmitted to and received from the process 29.
[0057]
FIG. 11 is a file configuration diagram showing a file system in the IC card 1 in FIG.
[0058]
In this figure, this file system has a configuration in which a DF 31 that realizes the parking ticket processing 29 is added to the file system shown in FIG. 2, and an EF 32 that records the parking ticket information 30 is provided in the parking ticket processing DF 31. It has been. The electronic money handling process 16 and the parking ticket handling process 28 in FIG. 10 are included in the DF 24 of the point process 14.
[0059]
Also in the second embodiment, as shown in FIG. 12, the operation procedure from when the central processing unit 3 of the terminal device 2 starts processing of the IC card 1 until the point processing program 14 is started is shown in FIG. This is the same as the first embodiment shown.
[0060]
FIG. 13 is a diagram illustrating a format of a start instruction command (Start Point Transaction Command) of the point processing 14 by the terminal device 2 in FIG. 10 and a response (Start Point Transaction Response) by the IC card 1.
[0061]
FIG. 13A shows a start instruction command for the point processing 14 from the terminal device 2 (the value x2 of the information INS representing this command is “02”), which is basically the first embodiment in FIG. It has the same configuration as the same command used in the process (Fig. 4 (a)), but the data "Lc Data" sent by this command includes the price of the product to be purchased, the handling date / time / minute / second, handling The IC card 1 starts the point process 14 in response to such a command.
[0062]
When the IC card 1 starts the point processing 14, the IC card 1 executes the point processing program 14, and outputs the result to the terminal device 2 in the format shown in FIG. When the point processing 14 is normally performed, this response includes information SW1 and SW2 indicating normal processing and data of the amount of electronic money information that needs to be transferred and the processed year / month / day / hour / minute / second. “Le Data” is added.
[0063]
FIG. 14 is a diagram showing a format of an electronic money information movement start instruction command (Start Value Transaction Command) via the point processing 14 by the terminal device 2 in FIG. 10 and a response (Start Value Transaction Response) by the IC card 1. is there.
[0064]
Upon receiving a normal response from the IC card 1 in response to the start instruction command for the point process 14 shown in FIG. 13, the terminal device 2 starts moving electronic money information via the point process 14 in the format shown in FIG. An instruction command is issued to the IC card 1. This command is the same as the electronic money information movement start instruction command through the point process 14 in FIG. 1 shown in FIG. Upon receiving this command, the IC card 1 starts moving electronic money information via the point process 14. As in the first embodiment, the point processing 14 sends a response including information SW1 and SW2 indicating processing results in addition to the passed electronic money information from the IC card 1, as shown in FIG. Output to the terminal device 2.
[0065]
FIG. 15 is a diagram showing a format of an electronic money information movement end instruction command (End Value Transaction Command) via the point processing 14 by the terminal device 2 in FIG. 10 and a response (End Value Transaction Response) by the IC card 1. is there.
[0066]
Upon receiving a normal response from the IC card 1 to the electronic money information movement start instruction command shown in FIG. 14, the terminal device 2 finishes moving the electronic money information via the point processing 14 in the format shown in FIG. Issue a directive command. This instruction is the same as the instruction to end moving electronic money information via the point process 14 in FIG. 1 shown in FIG. 6A, and the storage medium of the opposing electronic money information connected to the terminal device 2 It is issued with the electronic money information output by (not shown) added.
[0067]
Upon receiving this command, the IC card 1 ends the electronic money information transfer process via the point process 14. In this case, the point process 14 that has received this electronic money information movement end instruction command converts the electronic money information added to this instruction into a form in accordance with the specifications of the electronic money processing program 12 by the electronic money handling process 16. After that, it is transferred to the electronic money processing program 12 for processing. When the electronic money processing 12 normally receives this electronic money information and completes the processing normally, as shown in FIG. 15B, the amount of electronic money information actually moved and the number of points calculated and added internally , Information indicating the normal processing is formed by forming “Le Data” composed of each data of the accumulated points after the addition and the parking ticket information 30 taken from the parking ticket processing 29 through the parking ticket handling processing 28. It is added to SW1 and SW2 and outputted from the IC card 1 to the terminal device 2 as a response.
[0068]
FIG. 16 is a flowchart showing in more detail the operation of the point processing 14 of the central processing unit 10 of the IC card 1 in FIG.
[0069]
In the figure, when the start instruction command for the point process 14 shown in FIG. 13A is received, the point process 14 is activated (step 200). Then, the accumulated point number is acquired from the point information 15 (step 301), and then the balance of the electronic money information 13 held by the electronic money processing program 12 is acquired via the electronic money handling process 16 (step 302).
[0070]
Thereafter, the priority currency designation information (FIG. 13) sent together with the start instruction command of the point processing 14 is acquired, and it is determined whether the priority currency is electronic money or points (Swap 303). If the priority currency is electronic money, the process branches to electronic money priority processing (step 304) shown in FIG. 17, and if the priority currency is points, the process proceeds to step 305.
[0071]
Assuming that the preferred currency is a point, the transfer amount is expressed as follows:
Transfer amount = Product price-Points accumulated points
(Step 305), and the sign of the calculated transfer amount is determined (step 306). When the transfer amount is 0 or negative, the following calculation:
Accumulated points for new points = Accumulated points-Product price
Then, the cumulative number of new points is obtained (step 307), the cumulative number of new points is written in the point information 15 (FIG. 10), and the process branches to the parking ticket processing (step 309) shown in FIG.
[0072]
On the other hand, if the transfer amount obtained in step 305 is positive in the determination process in step 306, 0 is set as the cumulative number of new points (step 310), and then the electronic money information 13 acquired in step 302 is updated. The balance is compared with the transfer amount obtained in step 305 (step 311). If the transfer amount exceeds the balance (that is, the balance is insufficient), a response (FIG. 13B) consisting only of the information SW1 and SW2 indicating the shortage of balance is notified to the terminal device 2 (step 312). Then, the point process 14 is completed.
[0073]
If the transfer amount is within the balance (step 311), the cumulative number of new points (in this case, 0) is written into the point information 15 (step 313), and the amount of electronic money information to be transferred “Le Data” A response in the format shown in FIG. 13B added to the information SW1 and SW2 indicating the normal end by setting the transfer amount is returned to the terminal device 2 (step 314).
[0074]
Upon obtaining this response, the terminal device 2 gives the instruction to start moving electronic money information shown in FIG. 14 to the IC card 1, and the IC card 1 continues the point processing 14 by receiving this instruction (step S1). 315). The central processing unit 10 of the IC card 1 determines whether or not this command is correct (step 316). If this command is correct, the first embodiment shown in FIG. The same processing as steps 210 to 214, 218 shown in FIG.
[0075]
That is, the point processing program 14 passes a command requesting the transfer of the electronic money information of the transfer amount to the electronic money process 12 through the electronic money handling process 16 (step 317). When the electronic money processing 12 normally accepts this command (step 318), the point processing 14 through the electronic money processing 12 through the electronic money processing 12 according to a necessary procedure, to the terminal device 2 as a response to the command shown in FIG. The electronic money information is transferred (step 319). At this time, as shown in FIG. 14B, when the electronic money information to be moved is output from the electronic money processing 12 to the terminal device 2, the point processing 14 indicates that the output electronic money information is included in this response. In addition, information SW1 and SW2 indicating that the electronic money information transfer command has been processed normally are added.
[0076]
Receiving the response indicating normality, the terminal device 2 sends an electronic money information transfer end instruction command to the IC card 1 as shown in FIG. Upon receiving this command, the point processing 14 performs a procedure for ending the electronic money information transfer process on the electronic money process 12, and when the transfer of the electronic money information ends normally (step 320), the transferred electronic money information is transferred. By multiplying the transfer amount that is the value of the information by the additional point coefficient,
Number of points added = amount transferred x coefficient of points added
The number of points to be added is obtained by calculating (Step 321). Then, after the obtained added point number is written in the accumulated point number of the point information 15 (step 322), the process proceeds to execution of the parking ticket process 29 (step 309) shown in FIG.
[0077]
When the movement instruction of the movement start instruction command for the acquired electronic money information is not correct (step 316), or when the movement is not normally performed with respect to the movement start instruction instruction for the correct electronic money information (step 320). Writes the cumulative number of original points in the point information 15 (step 323), and notifies the terminal device 2 of a response (FIG. 15B) consisting only of information SW1 and SW2 indicating that the points are not normal (step 324). ) The point process 14 is terminated.
[0078]
FIG. 17 is a flowchart showing the electronic money priority process (step 304) in FIG.
[0079]
In the figure, first, the “product price” information from the start instruction command of the point processing 14 shown in FIG. 13A taken in step 300 of FIG. 16 and the balance acquired in step 302 of FIG. Thus, the movement point is obtained by calculating the following equation (step 401).
Movement point = product price-balance
Then, it is determined whether the moving point is positive or negative (step 402). If the movement point is negative, the product price is set to the movement amount (step 403) and the process proceeds to step 409.
[0080]
If it is determined in step 402 that the movement point is positive, the balance is set as the movement amount (step 404), and the above movement point is compared with the accumulated point score acquired in step 301 of FIG. 16 (step 405). ). If the accumulated point number is less than the moving point, a response shown in FIG. 13B with only the information SW1 and SW2 indicating that the accumulated point number is insufficient is returned to the terminal device 2 (step 406). ) The point process 14 is terminated.
[0081]
If the total number of points is greater than or equal to the moving point, calculate the total number of new points from the above point total points and moving points by calculating the following formula.
Cumulative points of new points = cumulative points-moving points
The cumulative number of new points is written in the point information 15 (step 408), and the process proceeds to step 409.
[0082]
In step 409, the above-mentioned transfer amount is set as the amount of electronic money information to which “Le Data” is transferred, and a response in the format shown in FIG. 13B added to the information SW1 and SW2 indicating normal end is sent to the terminal device. Return to 2. On the other hand, after confirming the contents, the terminal device 2 gives the IC card 1 a movement start instruction command for the electronic money information shown in FIG. Point processing is continued (step 410).
[0083]
The IC card 1 determines whether or not the given movement start instruction command is correct (step 411). When this command is correct, the same processing as steps 317 to 322 shown in FIG. Do.
[0084]
That is, the point processing program 14 passes a command for requesting the transfer of the electronic money information of the transfer amount to the electronic money process 12 via the electronic money handling process 16 (step 412). When the electronic money processing 12 normally accepts this command (step 413), according to a necessary procedure, the point processing 14 passes the electronic money processing 12 to the terminal device 2 as a response to the command shown in FIG. The electronic money information is transferred (step 414). At this time, as shown in FIG. 14B, when the electronic money information to be moved is output from the electronic money processing 12 to the terminal device 2, the point processing 14 indicates that the output electronic money information is included in this response. In addition, information SW1 and SW2 indicating that the electronic money information transfer command has been processed normally are added.
[0085]
Receiving the response indicating normality, the terminal device 2 sends an electronic money information transfer end instruction command to the IC card 1 as shown in FIG. Upon receipt of this command, the point process 14 performs a procedure for ending the electronic money information transfer process on the electronic money process 12, and when the transfer of the electronic money information ends normally (step 415), the transferred electronic money information is transferred. By multiplying the transfer amount that is the value of the information by the additional point coefficient,
Number of points added = amount transferred x coefficient of points added
The number of points to be added is obtained by calculating (Step 416). Then, after the obtained added point number is written in the accumulated point number of the point information 15 (step 417), the process proceeds to the execution of the parking ticket process 29 (step 309) shown in FIG.
[0086]
When the movement instruction of the movement start instruction command of the acquired electronic money information is not correct (step 411) or when the movement is not normally performed with respect to the movement start instruction instruction of correct electronic money information (step 415). Writes the cumulative number of original points in the point information 15 (step 418), and notifies the terminal device 2 of a response (FIG. 15B) consisting only of information SW1 and SW2 indicating that the points are not normal (step 419). ) The point process 14 is terminated.
[0087]
FIG. 18 is a flowchart showing the parking ticket process (step 309) in FIG.
In the figure, first, the point process 14 in FIG. 10 acquires the parking ticket information 30 of the parking ticket process 29 through the parking ticket handling process 28 (step 501).
[0088]
Here, as shown in FIG. 19, the point information 15 of this point processing 14 is composed of a cumulative point number, a point coefficient, a parking time coefficient, an upper limit value, an update date, and an update store ID. Of these, the information of the point coefficient, parking time coefficient and upper limit value has a function as a management table and cannot be rewritten, and the remaining information, that is, the cumulative number of points, update date, and update The store ID is a part that is rewritten as needed. In addition, as shown in FIG. 20, the parking ticket information 30 is composed of information of the warehousing date and time, the product purchase flag, the parking permission time, and the updated store ID, and is rewritten by the parking ticket processing 29 as needed. It is.
[0089]
Returning to FIG. 18, the date and time (FIG. 20) of the contents of the parking ticket information 30 acquired in step 501 are confirmed to confirm whether or not the parking ticket information 30 is valid (step 502). If there is no valid parking ticket information 30, the process proceeds to step 511, but if there is valid parking ticket information 30, a product purchase flag ( 20) is set to "1" (step 503). As a result, a discount service for parking time by purchasing a product is set.
[0090]
Next, the parking permission time (FIG. 20) already written in the parking ticket information 30 is read (step 504), and whether it is less than the upper limit value (FIG. 19) recorded in the point management table inside the point processing 14 It is confirmed whether or not (step 505). If it is greater than or equal to this upper limit value, the process proceeds to step 511. If it is less than the upper limit value, the following equation is obtained from the parking time coefficient (FIG. 19) recorded in the point management table and the above product price. The addition permission time is obtained by calculation (step 506),
Addition permission time = product price x parking time factor
It is determined whether or not the addition permission time exceeds the above upper limit (step 507). Then, it is determined whether or not the addition permission time exceeds the above upper limit value (step 507). If it exceeds, the upper limit value is set to a new parking permission time (step 509), but the addition permission time is set to the upper limit value. If it is less than the value, from this addition permission time and the parking permission time previously read from the parking ticket information (FIG. 20),
New parking permission time = additional permission time + parking permission time
A new parking permission time is obtained (step 508), and the new parking permission time or the new parking permission time set in step 509 is written in the parking ticket information 30 (FIG. 20) as the parking permission time. In this case, the store ID acquired by the start instruction command of the point process 14 shown in FIG. 13A is also written in the parking ticket information 30 (FIG. 20) as the updated store ID (step 510). Thereafter, the already calculated number of added points, new point accumulated points, amount of movement, and new parking permission time are set as “Le Data”, and information SW1 and SW2 indicating normal end are added to this, as shown in FIG. Is output to the terminal device 2 (step 511), and this parking ticket process, and thus the point process 14, is terminated.
[0091]
With the above operation, in the second embodiment, there are two methods for settlement of merchandise, and actual settlement processing is automatically processed in the IC card 1 by instructing these two methods. There is an effect that the terminal device 2 does not need to perform these processes. In addition, a service such as adding a parking ticket parking time, which is another additional function, is automatically performed in accordance with the settlement of the product. Furthermore, since the processing is performed in the IC card 1, even if an attempt is made to perform fraud on the terminal device 2 side in these calculation processes, the effect that the fraud cannot be performed is the same as in the first embodiment. It is.
[0092]
FIG. 21 is a block diagram showing a third embodiment of the IC card system with a self-setting function according to the present invention, in which 33 is a lending process program (also referred to herein as lending process 33), and 34 is a lending process program. The loan balance information 35 is an electronic money handling processing program (here, the processing by this program is referred to as electronic money handling processing 35), and the portions corresponding to those in FIG.
[0093]
In the figure, the third embodiment is different from the first embodiment shown in FIG. 1 in that a function of a lending process 33 is provided instead of the point process 14. The lending process 33 has a structure having lending balance information 34 and an electronic money handling process 35 inside.
[0094]
FIG. 22 is a configuration diagram showing a file system in the IC card 1 of the third embodiment.
[0095]
In this figure, the difference between this file system and the file system of the first embodiment shown in FIG. 1 is that the DF 24 of the point process 14 including the point information 27 in FIG. Instead, a DF 36 that realizes a loan process 33 including the loan balance information 37 is provided. The electronic money handling process 35 in FIG. 21 is included in the DF 36 of the lending process 33.
[0096]
Also in the third embodiment, the operation procedure is the same as that of the first embodiment shown in FIG. 3 until the central processing unit 3 of the terminal device 2 starts the processing of the IC card 1 and starts the lending processing program 33. It is the same.
[0097]
FIG. 23 is a diagram showing a command from the terminal device 2 to the lending processing program 33 in the third embodiment and a response of the IC card 1 to the command.
[0098]
FIG. 4A shows the configuration of the start instruction command (Start Loan Command) of the lending process 33. The basic configuration is the start of the point processing 14 shown in FIG. 4A in the first embodiment. It is the same as the instruction command, but “Lc Data” consists of the loan amount, the handling date / time / hour / minute / second, the store ID of the store handled, and each information of the code indicating the product to be purchased. When received from the terminal device 2, the operation of the lending process 33 is started.
[0099]
When the lending process is started, the inside of the lending process 33 executes the process and responds with the result. As shown in FIG. 23 (b), this response when processed normally includes the loanable amount, the processed month / day / hour / minute / second, the loan limit, the total loan amount, and the encrypted approval number. It consists of SW1 and SW2 information indicating normal processing with “Le Data” consisting of each information added.
[0100]
FIG. 24 is a flowchart showing the operation of the lending process 33 in FIG.
[0101]
In this figure, when the start instruction command of the lending process 33 shown in FIG. 23A is received from the terminal device 2 and started (step 601), the “handling date / time / minute / second” in the “Lc Data” of this command is displayed. Information on the starting month is acquired from the information (step 602), and the accumulated loan balance of the same month as the starting month is acquired from the loan balance information 34 in the loan processing 33 (step 603). .
[0102]
In the table recorded in the lending process 33, as shown in FIG. 25, the balance of the electronic money information 13 is classified, and a lent amount corresponding to each classification is set. That is, the lent amount is determined according to the balance of the electronic money information 13. Further, as shown in FIG. 26, the loan balance information 34 of the IC card 1 includes a loan amount (amount actually loaned with respect to the loan amount “Lc Data” in the start instruction command of the loan processing 33 shown in FIG. 23). And the total of the loan (cumulative sum of the loan amount within the same month: the above-mentioned sum of the loan balance), the date of the loan, and the information of the loan store ID are written and recorded.
[0103]
In FIG. 24, when the process of step 603 is completed, it is determined whether or not the lending process 33 is the first process of the “month” at the start (step 604). In the case where there is no loan balance information 34 in the first process of “month”, that is, the loan process 33 in the same month as the “month” at the start (in FIG. 26, for example, there is only information of record numbers 1 to 4 The loan balance information 34 for March will not be present), and the information of “Month” at the start is recorded in the loan balance information 34 (step 605: in FIG. 26, for example, only the information of record numbers 1 to 4) If the lending process 33 is the first process in March, the information indicating “March” is recorded in the lending date field of record number 5), the electronic money handling process 5 is used to obtain the value (balance) of the electronic money information 13 in the electronic money process 12 (step 606), and from the table recorded in advance in the loan process 33, the balance of the obtained electronic money information 13 is obtained. A loanable amount (FIG. 25) is acquired (step 607: For example, if the balance of the electronic money information 13 is 10,000 yen, the loanable amount is 50,000 yen according to FIG. 25). Recorded in the loan balance information 34 (step 608). In this case, 0 is set in the total loan (in the case where this loan processing 33 corresponds to the first record number 5 in March in which the loan date in FIG. 26 is March 10, 1998). At this stage, both the loan amount and the total loan are set to 0).
[0104]
If the information of the same month as the “month” at the start has already been recorded in the loan balance information 34 (step 604), it is not necessary to acquire and record the loanable amount in the above steps 605 to 608. Instead, the lent amount and the total loan amount are acquired from the loan balance information 34, and the process proceeds to step 609 (for example, in FIG. 26, there are only records of record numbers 1 to 3, and the loan is made on February 28, 1998. If processing 33 is performed, the total loan at this time is the total loan recorded in record number 3 is 30,050 yen).
[0105]
When the processing in step 604 or 608 ends, the total loan amount is added to the loan amount requested in accordance with the start instruction command of the loan processing 33 (step 609), and the added value is compared with the above lent amount. (Step 610) When the added value is less than or equal to the loanable amount, processing necessary for the loan is executed, and the loan amount and the loan total for the month recorded in the loan balance information 34 (FIG. 26) The added new loan total is recorded in the loan balance information 34 (step 611). This will be explained with reference to record number 5 for March in FIG. 26. In this case, since the total loan amount of record number 5 is 0, if the loan amount is 5,000 yen, the new loan sum is also 5000 yen. Thus, the loan amount 5000 is recorded in record number 5, and the total loan is also recorded as 5000.
[0106]
After that, “Le Data” consisting of information of loan amount, loan date, loan date, loan limit, total loan amount and internally generated encrypted approval number has successfully completed the loan process 33. The terminal device 2 is notified of the response shown in FIG. The terminal device 2 confirms the loan amount in this response, confirms that the approval number is correct, and then notifies the user that the requested loan is possible using the display device 4.
[0107]
When the request for the loan amount exceeds the loanable amount (step 610), the terminal device 2 is notified of the response shown in FIG. 23B of the information SW1 and SW2 indicating this (step 613) The lending process 33 is terminated. The terminal device 2 confirms this response and informs the user that the loan cannot be made using the display device 4.
[0108]
With the above operation, in the third embodiment, the balance of the electronic money information 13 is referred to when setting the lending limit, but this reference can be performed in the IC card 1. There is no need to refer to the outside, and since the setting of the lending limit is automatically performed in the IC card 1 in the first transaction every month, it is not necessary to perform external processing via the terminal device 2 or the like. .
[0109]
【The invention's effect】
As described above, according to the present invention, the point information stored in the IC card is recognized by the central processing unit of the IC card when the product price information is input to the IC card as a command. The central processing processing unit refers to the balance of the product, obtains the grant rate used from the grant rate table recorded in advance on the IC card according to the balance of the points, and multiplies the product price by the acquired grant rate Is executed by the central processing unit, and the calculated additional points are recorded by the central processing unit in the balance of the internal points. Therefore, each time the terminal device acquires point data from the IC card, There is no need to calculate additional points or write new points.
[0110]
In addition, according to the present invention, by inputting the product price information as a command to the IC card, the central processing unit of the IC card recognizes the price of the product, and the balance of the point information stored in the IC card is stored in the IC card. Refers to the central processing unit, obtains a discount rate to be used from a discount rate table recorded in advance on the IC card according to the balance of the points, and performs an operation of multiplying the product price by the acquired discount rate. Since the processing unit executes and the IC card determines the calculated payment amount by itself, the terminal device obtains point data from the IC card, calculates the payment amount using the discount rate, and writes new points. No need to process.
[0111]
Furthermore, according to the present invention, by inputting the transaction date information to the IC card, the central processing unit of the IC card recognizes the transaction date and obtains the expiration date of the points stored in the IC card. The central processing unit itself performs a confirmation operation for comparing the acquired expiration date for each acquired point with the input transaction date. As a result, the central processing unit performs the central processing on the valid points. Since the processing unit performs necessary processing, it is not necessary for the terminal device to acquire all the point score and update date data from the IC card for each point data.
[0112]
Furthermore, according to the present invention, by inputting product price information and a tax rate into the IC card, the central processing unit of the IC card acquires the price and the tax rate, and calculates the payment amount by multiplying the price by the tax rate. Since the calculation processing unit performs the IC card response with the calculated payment amount, the terminal device does not need to calculate the product price and the tax amount.
[0113]
Further, according to the present invention, an IC card having a plurality of functions such as electronic money and points is used, and information on a product price and a tax rate are input to the IC card, thereby confirming an expiration date, adding additional points, and tax rate. In addition to calculating the payment amount applying discounts with points, the central processing unit of the IC card also performs settlement of the payment amount with electronic money, so the terminal device calculates the tax amount for the product price and checks the expiration date The processing for transferring electronic money is reduced as well.
[0114]
Furthermore, according to the present invention, since the IC card has data and arithmetic expressions common to the system, such as the point grant rate necessary for the calculation, the discount rate of the product, and the expiration date of the points, the same calculation can be performed anywhere. Therefore, even if the terminal devices are different, processing is always performed under the same conditions.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing a first embodiment of an IC card system with a self-setting function according to the present invention.
2 is a file configuration diagram showing an internal file system of the IC card in FIG. 1; FIG.
3 is a flowchart showing an operation from the start of processing of an IC card to starting a point processing program by the central processing unit of the terminal device in FIG. 1 having the file system having the configuration shown in FIG. 2;
4 is a diagram showing a format of a point processing start instruction command by the terminal device in FIG. 1 and a response by the IC card. FIG.
5 is a diagram showing a format of an electronic money information movement start instruction command through a point process by the terminal device in FIG. 1 and a response by the IC card. FIG.
6 is a diagram showing a format of an electronic money information movement end instruction command through a point process by the terminal device in FIG. 1 and a response by the IC card. FIG.
7 is a flowchart showing an operation of point processing of the IC card in FIG. 1; FIG.
8 is a block diagram showing a specific example of a point conversion table recorded in the point processing program in FIG. 1. FIG.
FIG. 9 is a diagram showing an internal configuration of point information in FIG. 1;
FIG. 10 is a block diagram showing a second embodiment of the IC card system with a self-setting function according to the present invention.
11 is a block diagram showing a file system in the IC card in FIG.
12 is a flowchart showing an operation from the start of processing of an IC card to the start of a point processing program by the central processing unit of the terminal device in FIG. 10 having the file system having the configuration shown in FIG. 11;
13 is a diagram showing a format of a point processing start instruction command by the terminal device in FIG. 10 and a response by the IC card. FIG.
14 is a diagram showing a format of an electronic money information movement start instruction command through a point process by the terminal device in FIG. 10 and a response by the IC card. FIG.
15 is a diagram showing a format of an electronic money information movement end instruction command through a point process by the terminal device in FIG. 10 and a response by the IC card. FIG.
16 is a flowchart showing in more detail the point processing operation of the central processing unit of the IC card in FIG.
FIG. 17 is a flowchart showing electronic money priority processing in FIG. 16;
FIG. 18 is a flowchart showing the parking ticket process in FIG.
19 is a diagram showing a data configuration of point information in FIG.
20 is a diagram showing a data configuration of parking ticket information in FIG.
FIG. 21 is a block diagram showing a third embodiment of the IC card system with a self-setting function according to the present invention.
22 is a block diagram showing a file system in the IC card in FIG. 21. FIG.
23 is a diagram showing a format of a start instruction command for lending processing by the terminal device in FIG. 21 and a response by the IC card. FIG.
24 is a flowchart showing in more detail the operation of the lending process of the central processing unit of the IC card in FIG. 21. FIG.
25 is a diagram showing a data structure of a table in the lending process in FIG.
26 is a diagram showing a data configuration of loan balance information in FIG. 21. FIG.
[Explanation of symbols]
1 IC card
2 terminal
3 Central processing unit
5 input devices
6 Terminal program recording medium
9 Transmission line
10 Central processing unit
11 Card program recording medium
12 Electronic money processing program
13 Electronic money information
14 point processing program
15 point information
16 Electronic money handling processing
17 Switching function part
28 Parking ticket handling
29 Parking ticket processing program
30 Parking ticket information
33 Loan processing program
34 Loan balance information
35 Electronic money handling processing program

Claims (12)

電気的な情報を読み取りまたは書き込む端末部と該端末部と電気的に接続されたICカードとからなり、該ICカードが、該端末部からの電気的な情報を受け取って判断や処理を行なう中央演算部と、該中央演算部に接続されて内部に電子情報を格納した電子情報記録部と、該電子情報記録部の内部に記録されて商品との交換もしくは割引きなどの擬似的な金銭として使うことができる電気的な電子マネー情報もしくは電子マネー情報に類するポイント情報などと、該端末部が該電子情報を読出しや書込みを行なうことによって商取引を行なう電子マネー取り引き機能とを備えた電子マネーシステムにおいて、
読み出した該電子情報の値の、既に記録されている該電子情報の値に応じて交換の際の商品との交換比率が変わり、
該電子情報の値に応じた商品との交換比率を該ICカードの該中央演算装置が演算し、該演算した結果の交換比率を該端末部に出力することを特徴とする自己設定機能付きICカードシステム。
A terminal unit that reads or writes electrical information and an IC card electrically connected to the terminal unit, and the IC card receives electrical information from the terminal unit and performs determination and processing. A computing unit, an electronic information recording unit that is connected to the central processing unit and stores electronic information therein, and is recorded inside the electronic information recording unit and used as pseudo-money for exchanging or discounting products. In an electronic money system comprising electrical electronic money information or point information similar to electronic money information and the like, and an electronic money transaction function in which the terminal unit reads and writes the electronic information to perform a commercial transaction ,
Value of the read electronic information, Ri already exchange ratio of the product at the time of replacement depending on the value in the electronic information recorded is River,
An IC with a self-setting function, characterized in that the central processing unit of the IC card calculates a replacement ratio with a product corresponding to the value of the electronic information, and outputs the calculated replacement ratio to the terminal unit Card system.
請求項1において、
前記ICカードが少なくとも2つの前記電子情報を有し、このうちの1つの該電子情報の値に応じた商品との交換比率を前記ICカードの前記中央演算装置が演算し、該演算した結果の交換比率に従って、前記もう一方の電子情報を移動することを特徴とする自己設定機能付きICカードシステム。
In claim 1,
The IC card has at least two pieces of electronic information, and the central processing unit of the IC card calculates an exchange ratio with a product corresponding to the value of one of the electronic information, and the result of the calculation An IC card system with a self-setting function , wherein the other electronic information is moved according to an exchange ratio .
請求項2において、
前記ICカードが少なくとも2つの前記電子情報を有し、該複数の電子情報を前記中央演算装置で処理し、かつ1つの電子情報を扱う前記ICカードに格納されたソフトウエアが他方の電子情報を扱えることを特徴とする自己設定機能付きICカードシステム。
In claim 2,
The IC card has at least two pieces of electronic information, the plurality of pieces of electronic information are processed by the central processing unit, and software stored in the IC card that handles one piece of electronic information receives the other piece of electronic information. IC card system with self-setting function, characterized by being able to handle .
請求項3において、
前記ICカードが少なくとも2つの前記電子情報を有し、該複数の電子情報を前記中央演算装置で処理し、かつ1つの電子情報を扱う前記ICカードに格納されたソフトウエアが他方の電子情報を扱うために他方の電子情報を該ソフトウエアに書込みや読出しができるように切替える手段を設けたことを特徴とする自己設定機能付きICカードシステム。
In claim 3,
The IC card has at least two pieces of electronic information, the plurality of pieces of electronic information are processed by the central processing unit, and software stored in the IC card that handles one piece of electronic information receives the other piece of electronic information. An IC card system with a self-setting function, characterized in that means for switching so that the other electronic information can be written to and read from the software for handling .
請求項1,2,3または4において、
前記ICカードが少なくとも2つの前記電子情報を有し、このうちの1つの該電子情報の値に応じた商品との交換比率を前記ICカードの前記中央演算装置が演算し、かつ該演算した結果の移動する電子情報の値に設定可能な係数を掛け合わせた演算を行ない、前記もう一方の電子情報を移動することを特徴とする自己設定機能付きICカードシステム。
In claim 1, 2, 3 or 4 ,
The IC card has at least two pieces of the electronic information, and the central processing unit of the IC card calculates an exchange ratio with a product corresponding to the value of one of the electronic information, and the calculation result An IC card system with a self-setting function, characterized in that an operation is performed by multiplying a value of electronic information to be moved by a settable coefficient to move the other electronic information .
請求項1,2,3,4または5において、
前記電子情報が有効期限もしくは設定された日付などの時間情報を有し、該時間情報を前記中央演算部が読み出し、かつ時間情報に従った判別処理を行なうことにより、前記電子情報の有効もしくは無効の判別を行なうことを特徴とする自己設定機能付きICカードシステム。
In claim 1, 2, 3, 4 or 5 ,
The electronic information has time information such as an expiration date or a set date, the time information is read by the central processing unit, and a determination process according to the time information is performed, whereby the electronic information is valid or invalid IC card system with a self-setting function and performing the determination.
電気的な情報を読み取りまたは書き込む端末部と該端末部と電気的に接続されたICカードとからなり、該ICカードが、該端末部からの電気的な情報を受け取って判断や処理を行なう中央演算部と、該中央演算部に接続されて内部に電子情報を格納した電子情報記録部と、該電子情報記録部の内部に記録された商品との交換もしくは割引きなどの擬似的な金銭として使うことができる電気的な電子マネー情報もしくは電子マネー情報に類するポイント情報などと、該端末部が該電子情報の読出しや書込みを行なうことによって商取引を行なう電子マネー取り引き機能とを備えた電子マネーシステムにおいて、
商品の購入などの取り引きの結果に応じて該電子情報が付与され、かつ付与される該電子情報の値が既に記録されている該電子情報の値により変わり、
付与される該電子情報の値を該ICカードの該中央演算装置が演算し、該演算の結果の付与される電子情報の値を該端末部に出力することを特徴とする自己設定機能付きICカードシステム。
A terminal unit that reads or writes electrical information and an IC card electrically connected to the terminal unit, and the IC card receives electrical information from the terminal unit and performs determination and processing. Used as a pseudo-money for exchanging or discounting a computing unit, an electronic information recording unit connected to the central computing unit and storing electronic information therein, and a product recorded in the electronic information recording unit In an electronic money system comprising electrical electronic money information or point information similar to electronic money information, etc., and an electronic money transaction function in which the terminal unit reads and writes the electronic information to perform a commercial transaction ,
The electronic information is given according to the result of a transaction such as purchase of a product, and the value of the given electronic information varies depending on the value of the electronic information already recorded,
The IC with self-setting function , wherein the central processing unit of the IC card calculates the value of the electronic information to be assigned, and outputs the value of the electronic information to which the result of the calculation is given to the terminal unit Card system.
請求項7において、
前記ICカードが少なくとも2つの前記電子情報を有し、このうちの1つの前記電子情報の値に応じて付与する前記電子情報の値を前記ICカードの前記中央演算装置が演算し、該演算の結果の付与される電子情報に従って、前記もう一方の電子情報の移動する値を演算しかつ移動することを特徴とする自己設定機能付きICカードシステム。
In claim 7,
The IC card has at least two pieces of the electronic information, and the central processing unit of the IC card calculates the value of the electronic information to be given according to the value of one of the electronic information. A self-setting function-equipped IC card system , wherein a moving value of the other electronic information is calculated and moved according to the electronic information to which the result is given .
請求項8において、
前記ICカードが少なくとも複数の前記電子情報を有し、該複数の電子情報を前記中央演算装置で処理し、かつ1つの電子情報を扱う前記ICカードに格納されたソフトウエアが他方の電子情報を扱えることを特徴とする自己設定機能付きICカードシステム。
In claim 8,
The IC card has at least a plurality of the electronic information, and the software stored in the IC card that processes the plurality of electronic information by the central processing unit and handles one electronic information receives the other electronic information. IC card system with self-setting function, characterized by being able to handle .
請求項9において、
前記ICカードが少なくとも複数の前記電子情報を有し、該複数の電子情報を前記中央演算装置で処理し、かつ1つの電子情報を扱う前記ICカードに格納されたソフトウエアが他方の電子情報を扱うために他方の電子情報を該ソフトウエアに書込みや読出しができるように切替える手段を設けたことを特徴とする自己設定機能付きICカードシステム。
In claim 9,
The IC card has at least a plurality of the electronic information, and the software stored in the IC card that processes the plurality of electronic information by the central processing unit and handles one electronic information receives the other electronic information. An IC card system with a self-setting function, characterized in that means for switching so that the other electronic information can be written to and read from the software for handling .
請求項7,8,9または10において、
前記ICカードが少なくとも2つの前記電子情報を有し、そのうちの1つの前記電子情報の値に応じて移動する他方の前記電子情報の値を前記ICカードの前記中央演算装置が演算し、かつ該演算の結果の移動する電子情報の値に設定可能な係数を掛け合わせた演算を行ない、前記他方の電子情報を移動することを特徴とする自己設定機能付きICカードシステム。
In claim 7, 8, 9 or 10 ,
The IC card has at least two pieces of electronic information, and the central processing unit of the IC card calculates the value of the other electronic information that moves according to the value of one of the pieces of electronic information, and An IC card system with a self-setting function , wherein a calculation is performed by multiplying a value of electronic information to be moved as a result of the calculation by a settable coefficient, and the other electronic information is moved .
請求項7,8,9,10または11において、
前記電子情報が有効期限もしくは設定された日付などの時間情報を有し、該時間情報を前記中央演算部が読み出し、かつ時間情報に従った判別処理を行なうことにより、前記電子情報の有効もしくは無効の判別を行なうことを特徴とする自己設定機能付きICカードシステム。
In claim 7, 8, 9, 10 or 11 ,
The electronic information has time information such as an expiration date or a set date, the time information is read by the central processing unit, and a determination process according to the time information is performed, whereby the electronic information is valid or invalid IC card system with a self-setting function and performing the determination.
JP30268998A 1998-10-23 1998-10-23 IC card system with self-setting function Expired - Lifetime JP3926491B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30268998A JP3926491B2 (en) 1998-10-23 1998-10-23 IC card system with self-setting function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30268998A JP3926491B2 (en) 1998-10-23 1998-10-23 IC card system with self-setting function

Publications (2)

Publication Number Publication Date
JP2000132746A JP2000132746A (en) 2000-05-12
JP3926491B2 true JP3926491B2 (en) 2007-06-06

Family

ID=17912016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30268998A Expired - Lifetime JP3926491B2 (en) 1998-10-23 1998-10-23 IC card system with self-setting function

Country Status (1)

Country Link
JP (1) JP3926491B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3526188B2 (en) * 1997-10-21 2004-05-10 株式会社日立製作所 Service processing method using IC card and IC card used therefor
JP2002063521A (en) 2000-08-23 2002-02-28 Sony Corp Communication system and information processing method
JP2002170064A (en) * 2000-12-05 2002-06-14 Dainippon Printing Co Ltd Point service system linked with electronic money
KR100385453B1 (en) * 2001-01-10 2003-05-27 삼성에스디에스 주식회사 Portable electronic medium for collective maintenancing of royalty service and method thereof
EP1597691A1 (en) 2003-02-18 2005-11-23 Matsushita Electric Industrial Co., Ltd. Sales system and recording medium
JP4361816B2 (en) * 2003-02-18 2009-11-11 パナソニック株式会社 Sales system and recording medium
JP6303036B2 (en) * 2017-02-01 2018-03-28 東芝テック株式会社 Point granting device and program thereof
JP2019215714A (en) * 2018-06-13 2019-12-19 ドレミング合同会社 Fund lending processing system to financial institution, lending processing method, lender terminal and lending managing device and program thereof

Also Published As

Publication number Publication date
JP2000132746A (en) 2000-05-12

Similar Documents

Publication Publication Date Title
US20020046106A1 (en) Method and system for modeling business card exchanges in a point-to -point value
JPH09259193A (en) Transaction method for electronic money system
JP2001514402A (en) Multi-function card system
US20020070270A1 (en) Award point service system, recording medium for use therein and award point service method
JP4326165B2 (en) IC card and electronic money deposit system
JP3926491B2 (en) IC card system with self-setting function
JP2002109237A (en) Ic card for card dealing
JP2002334254A (en) Electronic coupon utilization system
JP3219847B2 (en) Payment system using IC card
KR100330093B1 (en) Method of Issuing Pre-paid Card, and Method and System for Authorizing the Pre-paid Card and Supervising Balance thereof
JP2003296641A (en) Card use control method, customer card processor, customer card and card use control program
JP2005317040A (en) Ic card, and electronic money receiving system
JPH05324998A (en) Charge adjustment system using ic card
JP2002099966A (en) Point bank system and point-issuing terminal
JP2002083240A (en) Point exchange method and system
JP2006040106A (en) Sales information management system cooperating with prepaid electronic money settlement mechanism
JP3063195B2 (en) Transaction point management system using memory card
JP3410740B2 (en) IC card
JPH0390994A (en) Card system for privilage and change
JP3537873B2 (en) Point management method
JP2002319072A (en) Point management server
JP2002279531A (en) Commodity sales data processor, commodity sales data processing method and computer program
KR20010098205A (en) Method for charging on electric commerce and recording device thereof
JP2968802B2 (en) Appropriate change treatment method
JP2002230647A (en) Commodity sales system using point

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060824

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060919

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061120

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070228

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120309

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130309

Year of fee payment: 6