JP2004157924A - Portable electronic device - Google Patents

Portable electronic device Download PDF

Info

Publication number
JP2004157924A
JP2004157924A JP2002325128A JP2002325128A JP2004157924A JP 2004157924 A JP2004157924 A JP 2004157924A JP 2002325128 A JP2002325128 A JP 2002325128A JP 2002325128 A JP2002325128 A JP 2002325128A JP 2004157924 A JP2004157924 A JP 2004157924A
Authority
JP
Japan
Prior art keywords
data
memory
sharing
shared
applications
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.)
Granted
Application number
JP2002325128A
Other languages
Japanese (ja)
Other versions
JP2004157924A5 (en
JP4177642B2 (en
Inventor
Hajime Takeda
元 竹田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2002325128A priority Critical patent/JP4177642B2/en
Publication of JP2004157924A publication Critical patent/JP2004157924A/en
Publication of JP2004157924A5 publication Critical patent/JP2004157924A5/ja
Application granted granted Critical
Publication of JP4177642B2 publication Critical patent/JP4177642B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a portable electronic device capable of arbitrarily changing the ON/OFF of data in common among a plurality of registered applications when issuing, and designating the ON/OFF of data in common by detail data element units in files. <P>SOLUTION: This portable electronic device is provided with a rewritable non-volatile memory and a control element for carrying out the reading or writing of data to the non-volatile memory to selectively carry out the input/output of data with the outside. In an IC card where a plurality of applications are registered, and a plurality of application files corresponding to those plurality of applications are provided, a data memory is provided with a common data table for carrying out the common designation of data in the application files by byte units among the plurality of applications, and a program in a program memory is provided with a function of realizing data in common by interpreting the shared data table. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、たとえば、書込み、書換えが可能な不揮発性メモリおよびCPUなどの制御素子を有し、選択的に外部との間でデータの入出力を行なう手段を備えたICチップを内蔵した、いわゆるICカードと称される携帯可能電子装置に係り、特に複数のアプリケーションが登録されている携帯可能電子装置に関する。
【0002】
【従来の技術】
近年、たとえば、クレジット、ポイント、デビットなどの複数のアプリケーションに対応したICカードが実用化されている。そして、最近、この種のICカードにおいて、登録された複数のアプリケーション間でデータを共有して使用する方法が提案されている(たとえば、特許文献1参照)。
【0003】
【特許文献1】
特開平2−50287号公報
【0004】
【発明が解決しようとする課題】
従来の複数のアプリケーション間でのデータ共有には、
(1)エレメンタリファイル(EF)単位でのデータ共有のオン/オフを指定できる。
(2)書換え不可能な不揮発性メモリ(ROM)にプログラムされたデータのみ、データ要素単位にて共有のオン/オフを指定できる。
【0005】
という方法が用いられてきた。
【0006】
ところが、上記(1)の方法では、共有するデータをデータ要素単位に細かく指定することが行なえない。また、上記(2)の方法を用いて、細かく共有データを指定するためには、不揮発性メモリ(ROM)にあらかじめプログラムしておく必要があり、さらに、カード発行時などにデータ共有のオン/オフを任意に設定することができず、プログラムされた一義的な共有しか行なえないという、汎用的なプログラムを開発とするための障害となっていた。
【0007】
そこで、本発明は、登録された複数のアプリケーション間でのデータ共有のオン/オフを、発行時に任意に変更することを可能とし、また、ファイル内の細かなデータ要素単位でのデータ共有のオン/オフ指定も可能とする携帯可能電子装置を提供することを目的とする。
【0008】
【課題を解決するための手段】
本発明の携帯可能電子装置は、データを記憶するメモリ、および、このメモリに対してデータの読出しあるいは書込みを行なうための制御部を有し、選択的に外部との間でデータの入出力を行ない、かつ、複数のアプリケーションが登録されていて、これら複数のアプリケーションに関係するデータが格納される複数のアプリケーションファイルが前記メモリ内に設けられている携帯可能電子装置において、前記複数のアプリケーション間で、そのアプリケーションファイル内のデータを共有指定するための共有データを記憶した記憶手段と、この記憶手段に記憶された共有データを解釈し前記データ共有を実現する制御手段とを具備している。
【0009】
また、本発明の携帯可能電子装置は、データを記憶する書換え可能な不揮発性の第1のメモリ、この第1のメモリに対してデータの読出しあるいは書込みを行なうための制御部、および、この制御部が動作するためのプログラムが格納されている書換え不可能な不揮発性の第2のメモリを有し、選択的に外部との間でデータの入出力を行ない、かつ、複数のアプリケーションが登録されていて、これら複数のアプリケーションに関係するデータが格納される複数のアプリケーションファイルが前記第1のメモリ内に設けられている携帯可能電子装置において、前記第2のメモリ内に記憶され、前記複数のアプリケーション間で、そのアプリケーションファイル内のデータを共有指定するための共有データを格納した共有データテーブルと、前記第1のメモリ内に記憶され、前記共有データテーブルに対応して前記データ共有を行なうか否かを指定する共有指定データと、前記第2のメモリ内に記憶され、前記第2のメモリに記憶された共有データテーブルの内容および前記第1のメモリに記憶された共有指定データを解釈し前記データ共有を実現するプログラムを有し、このプログラムを実行することにより前記データ共有を実現する制御手段とを具備している。
【0010】
【発明の実施の形態】
以下、本発明の実施の形態について図面を参照して説明する。
図1は、本実施の形態に係る携帯可能電子装置としてのICカードを取扱うICカードシステムの構成例を示すものである。このICカードシステムは、ICカード11をカードリーダ・ライタ12を介してパーソナルコンピュータなどの端末装置13と接続可能にするとともに、端末装置13にキーボード14、CRT表示部16、プリンタ16を接続して構成される。
【0011】
図2は、ICカード11の構成を示すもので、制御部としての制御素子(たとえば、CPU)101、第1のメモリとしてのデータメモリ102、ワーキングメモリ103、第2のメモリとしてのプログラムメモリ104、および、カードリーダ・ライタ12との電気的接触を得るためのコンタクト部105によって構成されている。そして、これらのうち、破線内の部分(制御素子101、データメモリ102、ワーキングメモリ103、プログラムメモリ104)は1つ(あるいは複数)のICチップで構成され、さらに、このICチップとコンタクト部105とが一体的にICモジュール化されて、ICカード本体内に埋設されている。
【0012】
データメモリ102は、各種データの記憶に使用され、たとえば、EEPROMなどの記憶内容が書換え可能な不揮発性メモリで構成されている。
ワーキングメモリ103は、制御素子101が処理を行なう際の処理データなどを一時的に保持するための作業用メモリであり、たとえば、RAMなどで構成される。
プログラムメモリ104は、たとえば、マスクROMなどの記憶内容が書換え不可能な不揮発性メモリで構成されており、制御素子101の制御プログラム、および、複数のアプリケーションプログラムなどを記憶するものである。
【0013】
図3は、データメモリ102の構成を示している。データメモリ102は、複数のアプリケーションに関するデータがファイル構造で記憶されている。図2の例では、たとえば、2つのクレジット用アプリケーションが登録された状態を示している。
【0014】
すなわち、最上位がマスタファイル(MF:Master File)201で、その配下には、各アプリケーションごとに設定されるフォルダとしてアプリケーションファイル(ADF:Application Dedicated File、DF番号:01,02)202,203が設けられ、さらに、アプリケーションファイル202の配下には、実際にアプリケーションで使われるユーザデータ等の格納に使用されるエレメンタリファイル(EF:Elementary File)、たとえば、レコードデータEF(EF番号:11)204、キーデータEF(EF番号:12)205、バイナリデータEF(EF番号:13)206、共有データテーブルEF(EF番号:14)207が設けられ、アプリケーションファイル203の配下には、同じく実際にアプリケーションで使われるユーザデータ等の格納に使用されるエレメンタリファイル、たとえば、レコードデータEF(EF番号:21)208、キーデータEF(EF番号:22)209、バイナリデータEF(EF番号:23)210、共有データテーブルEF(EF番号:24)211が設けられている構成になっている。
【0015】
バイナリデータEF206,210は、たとえば、図4に示すように、その内部がデータ要素として、それぞれ、取引回数カウンタ、取引金額、前回取引結果、取引回数上限値、取引金額上限値、と分かれているものとする。
【0016】
本実施の形態では、データ要素単位でのデータ共有の有効性を、カード発行時に任意に指定可能とするもので、たとえば、取引回数カウンタのみを共有することにより、これまではアプリケーションごとにカウントされていた取引回数が、カード全体での取引回数カウンタとなり、カード使用者の取引回数に対して厳しい条件付けを行なうことができる。また、このような厳しい条件付けを行ないたくない場合は、データ共有をオフに設定することで、アプリケーションごとに取引回数カウンタを別々に使用することもできる。
【0017】
本実施の形態では、図3に示した共有データテーブルEF207,211を使用することで、アプリケーションファイル202,203の間において、たとえば、バイナリデータEF206,210内の取引回数カウンタのみをデータ共有オンするなど、データ要素単位でのデータ共有のオン/オフを任意に設定することが可能であり、上記のような有効性を得ることができる。以下、その実現方法について詳細に説明する。
【0018】
まず、共有データテーブルEF207,211は、たとえば、図5に示すように構成されている。すなわち、1つのデータ要素のデータ共有をオンに指定するために、下記のようなデータが連なったテーブルを作成する。
参照元EF番号 :1バイト
参照元データ先頭アドレス:2バイト
参照先DF番号 :1バイト
参照先EF番号 :1バイト
参照先データ先頭アドレス:2バイト
参照データ長 :2バイト
ここで、現在カレント状態となっているアプリケーションファイル(ADF)を参照元、データを共有する(データを参照する)先となるアプリケーションファイル(ADF)を参照先と呼ぶ。たとえば、図5に示したように共有データテーブルEF211が設定されている場合、アプリケーションファイル202,203間では、図4に示すバイナリデータEF206,210内の取引回数カウンタのみがデータ単位で共有オンの指定をされた状態となる。
ここに、共有データテーブルEF211内の先頭バイトは、以降のデータに設定されている共有指定されたデータの個数を示し、図5の例は共有指定されたデータの個数(共有データ数)が1個(01h)の場合を示している。
【0019】
なお、実際の運用において、この共有データテーブルEF207,211へのデータ設定は、アプリケーションファイル202,203間でのファイアウォールなど、セキュリティの確保のため、ICカードの発行時、または、ICカードの運用時においては、しかるべきアクセス権限を持つ人だけが設定、変更できるようにする必要がある。
【0020】
次に、共有データテーブルEFが設定されているICカードの動作を図6に示すフローチャートを参照して説明する。
たとえば、今、アプリケーションファイル203が選択された状態にあり、この状態において、端末装置13からコマンドを受信すると(ステップS1)、制御素子101は、受信したコマンドの対象となるエレメンタリファイル(EF)が共有データテーブルEF207内の参照元エレメンタリファイルとして登録されているかを判定する(ステップS2)。この判定の結果、参照元エレメンタリファイルとして登録されていない場合、制御素子101は、通常のコマンド処理を継続する。
【0021】
ステップS2の判定の結果、参照元エレメンタリファイルとして登録されているエレメンタリファイルにアクセスするコマンドと判定された場合、制御素子101は、データメモリ102内の該当エレメンタリファイル(この例の場合、バイナリデータEF210)のデータをコマンド処理のため、ワーキングメモリ(RAM)103へ展開する(ステップS3)。
【0022】
次に、制御素子101は、共有データテーブルEF207内の参照元データ先頭アドレス、参照先DF番号、参照先EF番号、参照先データ先頭アドレスからデータ単位で共有されているデータを検索し(ステップS4)、データ共有指定があれば(ステップS5)、参照先エレメンタリファイル(この例の場合、バイナリデータEF206)から参照データ長分のデータ(この例の場合、取引回数カウンタ)を読出し、この読出したデータを既にワーキングメモリ103に展開されている参照元エレメンタリファイル210の該当データ(この例の場合、取引回数カウンタ)の上に上書きする(ステップS6)。
【0023】
次に、制御素子101は、通常と同じくコマンドの処理を行なう(ステップS7)。この例の場合においては、ワーキングメモリ103に展開されている取引回数カウンタを「+1」する処理を行なう。なお、ステップS5において、データ共有指定がなければ、ステップS6をジャンプしてステップS7に進む。
【0024】
次に、制御素子101は、コマンド処理が終了すると、ワーキングメモリ103に展開されている全てのデータを参照元エレメンタリファイル210へ書込む処理を行なう(ステップS8)。
次に、制御素子101は、ステップS5と同様にデータ共有指定があるか否かをチェックし(ステップS9)、データ共有指定があれば、ワーキングメモリ103に展開されているデータのうち共有データテーブルEF207で共有指定されているデータのみを参照先エレメンタリファイル206の該当位置へ書込む(ステップS10)。
【0025】
次に、制御素子101は、受信したコマンドに対するレスポンスを端末装置13へ送信して(ステップS11)、当該処理を終了する。なお、ステップS9において、データ共有指定がなければ、ステップS10をジャンプしてステップS11に進む。
【0026】
以上のような処理を各コマンドに対して行なうことにより、任意のエレメンタリファイル内の任意のデータをデータ単位で共有することが可能となる。データ共有を全く行なわない場合は、共有データテーブルの先頭バイト(共有データ数)を0「00h」に設定することで、実現することができる。
【0027】
なお、前記実施の形態では、共有データテーブルをエレメンタリファイル構造としてデータメモリ102内に格納する場合を示したが、データメモリ102のサイズ制限、あるいは、必ずしも汎用的にする必要がない場合などにおいては、図7に示すような共有データテーブル(図5と同様)301をプログラムメモリ104内にあらかじめプログラムしておくとともに、図8に示すようなデータ共有のオン/オフを指定するデータ(共有指定EF)302のみをデータメモリ102に格納することで、同機能を実現することが可能である。
図8の例では、共有指定EF302の1バイト目最上位ビット(8ビット目)をオン(「1」)とすることで、取引回数カウンタのみのデータ共有が可能となる。
【0028】
具体的には、共有指定EF302の1バイト目最上位ビットがオンであることを認識した場合、同ビットがオンの場合に参照されるプログラムメモリ104内の共有データテーブル301を参照し、共有データテーブルを取得する。その後に、前記実施の形態と同様な手順にて処理を行ない、最終的にデータをデータメモリ102へ書込む。
【0029】
以下、共有データテーブルおよび共有指定EFが設定されているICカードの動作を図9に示すフローチャートを参照して説明する。
前記実施の形態と同様、アプリケーションファイル203が選択された状態にあり、この状態において、端末装置13からコマンドを受信すると(ステップS21)、制御素子101は、受信したコマンドの対象となるエレメンタリファイルが共有データテーブル301内の参照元エレメンタリファイルとして登録されているかを判定する(ステップS22)。この判定の結果、参照元エレメンタリファイルとして登録されていない場合、制御素子101は、通常のコマンド処理を継続する。
【0030】
ステップS22の判定の結果、参照元エレメンタリファイルとして登録されているエレメンタリファイルにアクセスするコマンドと判定された場合、制御素子101は、データメモリ102内の該当エレメンタリファイル(この例の場合、バイナリデータEF210)のデータをコマンド処理のため、ワーキングメモリ(RAM)103へ展開する(ステップS23)。
【0031】
次に、制御素子101は、データメモリ(EEPROM)102内の共有指定EF302を検索し(ステップS24)、データ共有指定ビットがあるか否かをチェックする(ステップS25)。このチェックの結果、データ共有指定ビットがある場合、制御素子101は、プログラムメモリ104から共有データテーブル301を検索し(ステップS26)、参照先エレメンタリファイル206から参照データ長分のデータ(取引回数カウンタ)を読出し、この読出したデータを既にワーキングメモリ103に展開されている参照元エレメンタリファイル210の該当データ(取引回数カウンタ)の上に上書きする(ステップS27)。
【0032】
次に、制御素子101は、通常と同じくコマンドの処理を行なう(ステップS28)。この例の場合においては、ワーキングメモリ103に展開されている取引回数カウンタを「+1」する処理を行なう。なお、ステップS25において、データ共有指定ビットがなければ、ステップS26,S27をジャンプしてステップS28に進む。
【0033】
次に、制御素子101は、コマンド処理が終了すると、ワーキングメモリ103に展開されている全てのデータを参照元エレメンタリファイル210へ書込む処理を行なう(ステップS29)。
次に、制御素子101は、データメモリ102(EEPROM)内の共有指定EF302を検索し(ステップS30)、データ共有指定ビットがあるか否かをチェックする(ステップS31)。このチェックの結果、データ共有指定ビットがある場合、制御素子101は、プログラムメモリ104から共有データテーブル301を検索し(ステップS32)、ワーキングメモリ103に展開されているデータのうち共有データテーブル301で共有指定されているデータのみを参照先エレメンタリファイル206の該当位置へ書込む(ステップS33)。
【0034】
次に、制御素子101は、受信したコマンドに対するレスポンスを端末装置13へ送信して(ステップS34)、当該処理を終了する。なお、ステップS31において、データ共有指定ビットがなければ、ステップS32,S33をジャンプしてステップS34に進む。
【0035】
以上のような方法でも前記実施の形態と同様な機能を実現することが可能である。
【0036】
以上説明したように、上記実施の形態によれば、ICカードのプログラムメモリ(ROM)のプログラムを変更することなく、複数搭載されたアプリケーション間でのデータ共有のオン/オフを、カード発行時に任意に設定することが可能となり、また、これまでのICカードでは、プログラムを変更することなしには実現できなかった、エレメンタリファイル内の細かなデータ単位でのデータ共有のオン/オフの指定も可能となる。
【0037】
また、ICカードのデータ共有のオン/オフの設定に関して、プログラムメモリのプログラムを変更する必要がなくなるため、ICカードプログラムの共通化および汎用化を図ることができる。
【0038】
さらに、ICカード発行システムなどにおいても、データ共有のオンの場合と、オフの場合で、アプリケーションファイル内のファイル構成が同一であるため、データ共有のオンの場合とオフの場合で異なる処理を行なう必要がない。このため、発行システムの共通化および汎用化をも図ることができる。
【0039】
なお、前記実施の形態では、接触式ICカードおよびその周辺システムについて例示したが、その形態についての限定はなく、たとえば、いわゆるCOTと称されるモジュール形態のもの、非接触式ICカードなどに対しても、同様に適用可能である。
【0040】
【発明の効果】
以上詳述したように本発明によれば、登録された複数のアプリケーション間でのデータ共有のオン/オフを、発行時に任意に変更することを可能とし、また、ファイル内の細かなデータ要素単位でのデータ共有のオン/オフ指定も可能とする携帯可能電子装置を提供できる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係るICカードを取扱うICカードシステムの構成を概略的に示すブロック図。
【図2】ICカードの構成を概略的に示すブロック図。
【図3】データメモリの構成を模式的に示す図。
【図4】バイナリデータEF内のデータ要素構成の一例を示す図。
【図5】共有データテーブルEF内のデータ構成の一例を示す図。
【図6】動作を説明するフローチャート。
【図7】本発明の変形例に係る共有データテーブルのデータ構成の一例を示す図。
【図8】本発明の変形例に係る共有指定EF内のデータ構成の一例を示す図。
【図9】本発明の変形例に係る動作を説明するフローチャート。
【符号の説明】
11…ICカード、12…カードリーダ・ライタ、13…端末装置、14…キーボード、15…CRT表示部、16…プリンタ、101…制御素子(制御部)、102…データメモリ(メモリ、記憶手段、第1のメモリ)、103…ワーキングメモリ、104…プログラムメモリ(第2のメモリ)、105…コンタク部、201…マスタファイル、202,203…アプリケーションファイル、204〜211…エレメンタリファイル、204,208…レコードデータEF、205,209…キーデータEF、206,210…バイナリデータEF、207,211…共有データテーブルEF、301…共有データテーブル、302…共有指定EF。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a so-called so-called IC chip having a control element such as a writable / rewritable nonvolatile memory and a CPU and selectively inputting / outputting data to / from an external device. The present invention relates to a portable electronic device called an IC card, and more particularly to a portable electronic device in which a plurality of applications are registered.
[0002]
[Prior art]
In recent years, for example, IC cards corresponding to a plurality of applications such as credit, points, and debit have been put to practical use. Recently, in this type of IC card, a method of sharing and using data among a plurality of registered applications has been proposed (for example, see Patent Document 1).
[0003]
[Patent Document 1]
JP-A-2-50287
[Problems to be solved by the invention]
For traditional data sharing between multiple applications,
(1) ON / OFF of data sharing for each elementary file (EF) can be designated.
(2) Only data programmed in a non-rewritable non-volatile memory (ROM) can be specified to be shared on / off for each data element.
[0005]
That method has been used.
[0006]
However, in the above method (1), it is not possible to finely designate shared data in data element units. In addition, in order to finely specify shared data using the method (2), it is necessary to program the data in a nonvolatile memory (ROM) in advance. The off-state cannot be set arbitrarily, and can only be programmed and unambiguously shared, which is an obstacle to developing a general-purpose program.
[0007]
Therefore, the present invention enables the on / off of data sharing among a plurality of registered applications to be arbitrarily changed at the time of issuance, and enables the on / off of data sharing in units of small data elements in a file. It is an object of the present invention to provide a portable electronic device that can also specify ON / OFF.
[0008]
[Means for Solving the Problems]
A portable electronic device according to the present invention has a memory for storing data, and a control unit for reading or writing data to and from the memory, and selectively inputs and outputs data to and from an external device. And a plurality of applications are registered, and a plurality of application files in which data related to the plurality of applications are stored are provided in the memory. Storage means for storing shared data for designating sharing of data in the application file, and control means for interpreting the shared data stored in the storage means and realizing the data sharing.
[0009]
Also, the portable electronic device of the present invention includes a rewritable nonvolatile first memory for storing data, a control unit for reading or writing data from / to the first memory, A non-rewritable non-volatile second memory storing a program for operating the unit, selectively performing input / output of data with an external unit, and registering a plurality of applications. A plurality of application files storing data related to the plurality of applications are stored in the second memory in the portable electronic device provided in the first memory, and the plurality of application files are stored in the second memory; A shared data table that stores shared data for designating the sharing of data in the application file between applications, Sharing designation data that is stored in a first memory and that specifies whether to perform the data sharing in accordance with the shared data table, and that is stored in the second memory and is stored in the second memory Control means for interpreting the contents of the shared data table and the sharing designation data stored in the first memory to realize the data sharing, and executing the program to realize the data sharing; and Is provided.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows a configuration example of an IC card system that handles an IC card as a portable electronic device according to the present embodiment. In this IC card system, the IC card 11 can be connected to a terminal device 13 such as a personal computer via a card reader / writer 12, and a keyboard 14, a CRT display unit 16, and a printer 16 are connected to the terminal device 13. Be composed.
[0011]
FIG. 2 shows a configuration of the IC card 11, a control element (for example, CPU) 101 as a control unit, a data memory 102 as a first memory, a working memory 103, and a program memory 104 as a second memory. , And a contact portion 105 for obtaining electrical contact with the card reader / writer 12. Of these, the portion within the broken line (control element 101, data memory 102, working memory 103, program memory 104) is composed of one (or a plurality) of IC chips. Are integrated into an IC module and are embedded in the IC card body.
[0012]
The data memory 102 is used for storing various kinds of data, and is composed of a rewritable nonvolatile memory such as an EEPROM, for example.
The working memory 103 is a working memory for temporarily storing processing data and the like when the control element 101 performs processing, and is composed of, for example, a RAM.
The program memory 104 is composed of, for example, a non-rewritable non-volatile memory such as a mask ROM, and stores a control program for the control element 101 and a plurality of application programs.
[0013]
FIG. 3 shows a configuration of the data memory 102. The data memory 102 stores data on a plurality of applications in a file structure. In the example of FIG. 2, for example, a state in which two credit applications are registered is shown.
[0014]
That is, the top level is a master file (MF: Master File) 201, and under that are application files (ADF: Application Dedicated File, DF numbers: 01, 02) 202, 203 as folders set for each application. Under the application file 202, an elementary file (EF: Elementary File) used for storing user data and the like actually used in the application, for example, record data EF (EF number: 11) 204 , Key data EF (EF number: 12) 205, binary data EF (EF number: 13) 206, and shared data table EF (EF number: 14) 207 are provided. 3, elementary files used for storing user data and the like actually used in the application, for example, record data EF (EF number: 21) 208, key data EF (EF number: 22) 209, The configuration is such that binary data EF (EF number: 23) 210 and shared data table EF (EF number: 24) 211 are provided.
[0015]
For example, as shown in FIG. 4, the binary data EFs 206 and 210 are internally divided as data elements into a transaction number counter, a transaction amount, a previous transaction result, a transaction number upper limit value, and a transaction amount upper limit value. Shall be.
[0016]
In the present embodiment, the validity of data sharing in data element units can be arbitrarily specified at the time of card issuance. For example, by sharing only the transaction counter, it is possible to count by application so far. The number of transactions that has been performed becomes a counter for the number of transactions for the entire card, and strict conditions can be imposed on the number of transactions for the card user. If such strict conditioning is not desired, data sharing can be turned off, and the transaction counter can be used separately for each application.
[0017]
In the present embodiment, by using the shared data tables EF 207 and 211 shown in FIG. 3, for example, only the transaction counters in the binary data EF 206 and 210 are turned on between the application files 202 and 203. For example, it is possible to arbitrarily set ON / OFF of data sharing in units of data elements, and the above-described effectiveness can be obtained. Hereinafter, a method of realizing this will be described in detail.
[0018]
First, the shared data tables EF207 and EF211 are configured, for example, as shown in FIG. That is, in order to designate data sharing of one data element to be ON, a table in which the following data is linked is created.
Reference source EF number: 1-byte reference source data start address: 2-byte reference destination DF number: 1-byte reference destination EF number: 1 byte reference destination data start address: 2-byte reference data length: 2 bytes The application file (ADF) is referred to as a reference source, and the application file (ADF) to which data is shared (refers to data) is referred to as a reference destination. For example, when the shared data table EF211 is set as shown in FIG. 5, only the transaction counters in the binary data EFs 206 and 210 shown in FIG. It will be in the specified state.
Here, the first byte in the shared data table EF211 indicates the number of data specified to be shared set in subsequent data, and in the example of FIG. 5, the number of data specified to be shared (the number of shared data) is one. (01h) is shown.
[0019]
In an actual operation, the data setting in the shared data tables EF 207 and 211 is performed when an IC card is issued or when the IC card is operated to secure security such as a firewall between the application files 202 and 203. In, it is necessary that only a person having an appropriate access right can set and change the setting.
[0020]
Next, the operation of the IC card in which the shared data table EF is set will be described with reference to the flowchart shown in FIG.
For example, the application file 203 is currently selected, and in this state, when a command is received from the terminal device 13 (step S1), the control element 101 causes the elementary file (EF) to be the target of the received command. Is registered as a reference source elementary file in the shared data table EF207 (step S2). If the result of this determination is that the file has not been registered as a reference source elementary file, the control element 101 continues normal command processing.
[0021]
As a result of the determination in step S2, when it is determined that the command is a command for accessing the elementary file registered as the reference source elementary file, the control element 101 determines the corresponding elementary file in the data memory 102 (in this example, The data of the binary data EF210) is expanded in the working memory (RAM) 103 for command processing (step S3).
[0022]
Next, the control element 101 searches the shared data table EF207 for data shared in data units from the reference source data start address, the reference DF number, the reference EF number, and the reference data start address (step S4). ), If there is a data sharing designation (step S5), data of the reference data length (in this example, the number of transactions) is read from the reference destination elementary file (in this example, binary data EF206) and read out. This data is overwritten on the corresponding data (transaction counter in this example) of the reference source elementary file 210 already developed in the working memory 103 (step S6).
[0023]
Next, the control element 101 performs command processing as usual (step S7). In the case of this example, a process is performed for incrementing the number of transactions counter developed in the working memory 103 by “+1”. In step S5, if there is no data sharing designation, step S6 is jumped to step S7.
[0024]
Next, when the command processing is completed, the control element 101 performs a process of writing all data developed in the working memory 103 to the reference source elementary file 210 (step S8).
Next, the control element 101 checks whether or not there is a data sharing designation as in step S5 (step S9), and if there is a data sharing designation, the shared data table among the data developed in the working memory 103 is determined. Only the data designated to be shared by the EF 207 is written to the corresponding position of the reference destination elementary file 206 (step S10).
[0025]
Next, the control element 101 transmits a response to the received command to the terminal device 13 (step S11), and ends the process. In step S9, if there is no data sharing designation, step S10 is jumped to step S11.
[0026]
By performing the above-described processing for each command, it is possible to share arbitrary data in an arbitrary elementary file in data units. When no data sharing is performed, this can be realized by setting the first byte (the number of shared data) of the shared data table to 0 “00h”.
[0027]
In the above-described embodiment, the case where the shared data table is stored in the data memory 102 as the elementary file structure has been described. Is a program in which a shared data table (similar to FIG. 5) 301 as shown in FIG. 7 is programmed in advance in the program memory 104, and data for specifying ON / OFF of data sharing as shown in FIG. By storing only the EF) 302 in the data memory 102, the same function can be realized.
In the example of FIG. 8, by turning on (“1”) the most significant bit (eighth bit) of the first byte of the sharing designation EF 302, data sharing of only the transaction number counter becomes possible.
[0028]
Specifically, when it is recognized that the most significant bit of the first byte of the sharing designation EF 302 is on, the shared data table 301 in the program memory 104 referred to when the bit is on is referred to, and the shared data is read. Get a table. Thereafter, processing is performed in the same procedure as in the above embodiment, and data is finally written to the data memory 102.
[0029]
Hereinafter, the operation of the IC card in which the shared data table and the shared designation EF are set will be described with reference to the flowchart shown in FIG.
As in the above-described embodiment, the application file 203 is in a selected state. In this state, when a command is received from the terminal device 13 (step S21), the control element 101 sets the elementary file as the target of the received command. Is registered as a reference source elementary file in the shared data table 301 (step S22). If the result of this determination is that the file has not been registered as a reference source elementary file, the control element 101 continues normal command processing.
[0030]
As a result of the determination in step S22, when it is determined that the command accesses the elementary file registered as the reference source elementary file, the control element 101 determines the corresponding elementary file in the data memory 102 (in this example, The data of the binary data EF210) is developed in the working memory (RAM) 103 for command processing (step S23).
[0031]
Next, the control element 101 searches the sharing designation EF 302 in the data memory (EEPROM) 102 (step S24), and checks whether there is a data sharing designation bit (step S25). If the result of this check is that there is a data sharing designation bit, the control element 101 searches the shared data table 301 from the program memory 104 (step S26), and from the reference destination elementary file 206, data corresponding to the reference data length (transaction count) Counter), and overwrites the read data on the corresponding data (transaction counter) of the reference source elementary file 210 already developed in the working memory 103 (step S27).
[0032]
Next, the control element 101 performs the command processing as usual (step S28). In the case of this example, a process is performed for incrementing the number of transactions counter developed in the working memory 103 by “+1”. If there is no data sharing designation bit in step S25, steps S26 and S27 are skipped and the process proceeds to step S28.
[0033]
Next, when the command processing is completed, the control element 101 performs a process of writing all data developed in the working memory 103 to the reference source elementary file 210 (step S29).
Next, the control element 101 searches the sharing designation EF 302 in the data memory 102 (EEPROM) (step S30), and checks whether there is a data sharing designation bit (step S31). As a result of this check, if there is a data sharing designation bit, the control element 101 searches the shared memory table 301 from the program memory 104 (step S32), and uses the shared data table 301 among the data expanded in the working memory 103. Only the data designated to be shared is written to the corresponding position of the reference destination elementary file 206 (step S33).
[0034]
Next, the control element 101 transmits a response to the received command to the terminal device 13 (Step S34), and ends the processing. If there is no data sharing designation bit in step S31, steps S32 and S33 are skipped and the process proceeds to step S34.
[0035]
The same function as that of the above embodiment can be realized by the above method.
[0036]
As described above, according to the above embodiment, it is possible to turn on / off data sharing between a plurality of installed applications without changing the program in the program memory (ROM) of the IC card at the time of issuing the card. In addition, it is also possible to specify on / off of data sharing in small data units in the elementary file, which was not realized without changing the program in the conventional IC card. It becomes possible.
[0037]
In addition, since it is not necessary to change the program in the program memory when setting the data sharing of the IC card on / off, the IC card program can be made common and general-purpose.
[0038]
Further, even in an IC card issuing system, since the file configuration in the application file is the same between when data sharing is on and when data sharing is off, different processing is performed when data sharing is on and when data sharing is off. No need. For this reason, the issuing system can be shared and generalized.
[0039]
In the above-described embodiment, the contact type IC card and its peripheral system have been described as examples. However, there is no limitation on the form. For example, a so-called COT module, a non-contact type IC card, etc. However, the same can be applied.
[0040]
【The invention's effect】
As described above in detail, according to the present invention, the on / off of data sharing between a plurality of registered applications can be arbitrarily changed at the time of issuance, and a fine data element unit in a file can be changed. And a portable electronic device capable of specifying ON / OFF of data sharing in the portable electronic device.
[Brief description of the drawings]
FIG. 1 is a block diagram schematically showing a configuration of an IC card system for handling an IC card according to an embodiment of the present invention.
FIG. 2 is a block diagram schematically showing a configuration of an IC card.
FIG. 3 is a diagram schematically showing a configuration of a data memory.
FIG. 4 is a diagram showing an example of a data element configuration in binary data EF.
FIG. 5 is a diagram showing an example of a data configuration in a shared data table EF.
FIG. 6 is a flowchart illustrating an operation.
FIG. 7 is a diagram showing an example of a data configuration of a shared data table according to a modified example of the present invention.
FIG. 8 is a diagram showing an example of a data configuration in a sharing designation EF according to a modification of the present invention.
FIG. 9 is a flowchart illustrating an operation according to a modification of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 11 ... IC card, 12 ... Card reader / writer, 13 ... Terminal device, 14 ... Keyboard, 15 ... CRT display part, 16 ... Printer, 101 ... Control element (control part), 102 ... Data memory (memory, storage means, Working memory, 104 program memory (second memory), 105 contactor, 201 master file, 202, 203 application file, 204 to 211 elementary file, 204, 208 ... record data EF, 205, 209 ... key data EF, 206, 210 ... binary data EF, 207, 211 ... shared data table EF, 301 ... shared data table, 302 ... shared designation EF.

Claims (6)

データを記憶するメモリ、および、このメモリに対してデータの読出しあるいは書込みを行なうための制御部を有し、選択的に外部との間でデータの入出力を行ない、かつ、複数のアプリケーションが登録されていて、これら複数のアプリケーションに関係するデータが格納される複数のアプリケーションファイルが前記メモリ内に設けられている携帯可能電子装置において、
前記複数のアプリケーション間で、そのアプリケーションファイル内のデータを共有指定するための共有データを記憶した記憶手段と、
この記憶手段に記憶された共有データを解釈し前記データ共有を実現する制御手段と、
を具備したことを特徴とする携帯可能電子装置。
A memory for storing data, and a control unit for reading or writing data to and from the memory, selectively inputting and outputting data to and from external devices, and registering a plurality of applications In a portable electronic device wherein a plurality of application files in which data relating to the plurality of applications are stored are provided in the memory,
Storage means for storing shared data for designating sharing of data in the application file among the plurality of applications;
Control means for interpreting the shared data stored in the storage means and realizing the data sharing;
A portable electronic device comprising:
前記記憶手段は前記メモリであり、前記制御手段は前記制御部であって、前記メモリに記憶された共有データを解釈し前記データ共有を実現するプログラムを有し、このプログラムを実行することにより前記データ共有を実現することを特徴とする請求項1記載の携帯可能電子装置。The storage unit is the memory, and the control unit is the control unit, and has a program that interprets shared data stored in the memory and realizes the data sharing. The portable electronic device according to claim 1, wherein data sharing is realized. 前記複数のアプリケーションファイルは、それぞれ少なくとも1つ以上のデータが格納されていて、前記記憶手段は、前記アプリケーションファイル内のデータのうち各アプリケーションファイル間で共有可能なデータごとに共有指定するための共有データをテーブルの形で記憶していることを特徴とする請求項1記載の携帯可能電子装置。The plurality of application files each store at least one or more pieces of data, and the storage unit is configured to share data for designating sharing of data that can be shared among the application files among data in the application files. 2. The portable electronic device according to claim 1, wherein the data is stored in the form of a table. データを記憶する書換え可能な不揮発性の第1のメモリ、この第1のメモリに対してデータの読出しあるいは書込みを行なうための制御部、および、この制御部が動作するためのプログラムが格納されている書換え不可能な不揮発性の第2のメモリを有し、選択的に外部との間でデータの入出力を行ない、かつ、複数のアプリケーションが登録されていて、これら複数のアプリケーションに関係するデータが格納される複数のアプリケーションファイルが前記第1のメモリ内に設けられている携帯可能電子装置において、
前記第1のメモリ内に記憶され、前記複数のアプリケーション間で、そのアプリケーションファイル内のデータをバイト単位で共有指定するための共有データを格納した共有データテーブルと、
前記第2のメモリ内に記憶され、前記第1のメモリに記憶された共有データテーブルの内容を解釈し前記データ共有を実現するプログラムを有し、このプログラムを実行することにより前記データ共有を実現する制御手段と、
を具備したことを特徴とする携帯可能電子装置。
A rewritable nonvolatile first memory for storing data, a control unit for reading or writing data from and to the first memory, and a program for operating the control unit are stored. Having a non-rewritable non-volatile second memory, selectively inputting / outputting data to / from the outside, and registering a plurality of applications, and storing data related to the plurality of applications. In a portable electronic device in which a plurality of application files in which is stored in the first memory,
A shared data table stored in the first memory and storing shared data for specifying data in the application file in units of bytes between the plurality of applications;
A program for interpreting the contents of the shared data table stored in the second memory and realizing the data sharing by interpreting the contents of the shared data table stored in the first memory; realizing the data sharing by executing the program; Control means for performing
A portable electronic device comprising:
データを記憶する書換え可能な不揮発性の第1のメモリ、この第1のメモリに対してデータの読出しあるいは書込みを行なうための制御部、および、この制御部が動作するためのプログラムが格納されている書換え不可能な不揮発性の第2のメモリを有し、選択的に外部との間でデータの入出力を行ない、かつ、複数のアプリケーションが登録されていて、これら複数のアプリケーションに関係するデータが格納される複数のアプリケーションファイルが前記第1のメモリ内に設けられている携帯可能電子装置において、
前記第2のメモリ内に記憶され、前記複数のアプリケーション間で、そのアプリケーションファイル内のデータを共有指定するための共有データを格納した共有データテーブルと、
前記第1のメモリ内に記憶され、前記共有データテーブルに対応して前記データ共有を行なうか否かを指定する共有指定データと、
前記第2のメモリ内に記憶され、前記第2のメモリに記憶された共有データテーブルの内容および前記第1のメモリに記憶された共有指定データを解釈し前記データ共有を実現するプログラムを有し、このプログラムを実行することにより前記データ共有を実現する制御手段と、
を具備したことを特徴とする携帯可能電子装置。
A rewritable nonvolatile first memory for storing data, a control unit for reading or writing data from and to the first memory, and a program for operating the control unit are stored. Having a non-rewritable non-volatile second memory, selectively inputting / outputting data to / from the outside, and registering a plurality of applications, and storing data related to the plurality of applications. In a portable electronic device in which a plurality of application files in which is stored in the first memory,
A shared data table stored in the second memory and storing shared data for specifying data in the application file among the plurality of applications;
Sharing designation data stored in the first memory and designating whether or not to perform the data sharing corresponding to the shared data table;
A program for interpreting the contents of the shared data table stored in the second memory and the sharing designation data stored in the first memory and realizing the data sharing; A control unit that realizes the data sharing by executing this program;
A portable electronic device comprising:
前記複数のアプリケーションファイルは、それぞれ少なくとも1つ以上のデータが格納されていて、前記共有データテーブルは、前記アプリケーションファイル内のデータのうち各アプリケーションファイル間で共有可能なデータごとに共有指定するための共有データを格納していることを特徴とする請求項5記載の携帯可能電子装置。The plurality of application files each store at least one or more pieces of data, and the shared data table is used to specify sharing of data that can be shared among the application files among data in the application files. The portable electronic device according to claim 5, wherein the portable electronic device stores shared data.
JP2002325128A 2002-11-08 2002-11-08 Portable electronic device Expired - Lifetime JP4177642B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002325128A JP4177642B2 (en) 2002-11-08 2002-11-08 Portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002325128A JP4177642B2 (en) 2002-11-08 2002-11-08 Portable electronic device

Publications (3)

Publication Number Publication Date
JP2004157924A true JP2004157924A (en) 2004-06-03
JP2004157924A5 JP2004157924A5 (en) 2005-12-22
JP4177642B2 JP4177642B2 (en) 2008-11-05

Family

ID=32804450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002325128A Expired - Lifetime JP4177642B2 (en) 2002-11-08 2002-11-08 Portable electronic device

Country Status (1)

Country Link
JP (1) JP4177642B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001034512A (en) * 1999-07-23 2001-02-09 Toshiba Corp Portable electronic device
JP2002073196A (en) * 2000-09-05 2002-03-12 Dainippon Printing Co Ltd Portable information processor provided with shared access managing function

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001034512A (en) * 1999-07-23 2001-02-09 Toshiba Corp Portable electronic device
JP2002073196A (en) * 2000-09-05 2002-03-12 Dainippon Printing Co Ltd Portable information processor provided with shared access managing function

Also Published As

Publication number Publication date
JP4177642B2 (en) 2008-11-05

Similar Documents

Publication Publication Date Title
JP3015377B2 (en) IC card
KR910002257B1 (en) Portable electronic device
US5754762A (en) Secure multiple application IC card using interrupt instruction issued by operating system or application program to control operation flag that determines the operational mode of bi-modal CPU
JP4891587B2 (en) Portable electronic device, IC card and IC module
JPH02210590A (en) Portable data carrier for storing and processing data
JPS63201748A (en) Portable electronic equipment
JP2005515542A (en) Apparatus and method for writing to NV memory in a controller architecture together with a corresponding computer program and a corresponding computer-readable storage medium
JPS62190584A (en) Portable electronic device
JP2004157924A (en) Portable electronic device
JP3017736B2 (en) Portable electronic devices
JP2537200B2 (en) Portable electronic devices
JP2609645B2 (en) Portable electronic devices
JP2004334745A (en) Ic card
JP2001243118A (en) Ic card and personalizing device
JP3246558B2 (en) IC card
JP3054119B2 (en) Portable electronic devices
JP3789994B2 (en) IC card
JP2005056259A (en) Portable electronic medium and portable electronic medium handling device
JP2000306060A (en) Portable electronic device
JP2675563B2 (en) Portable electronic devices
JPH03224047A (en) Portable electronic device
JP2003203211A (en) Portable electronic device
JP2000306060A5 (en) Portable electronic devices and IC cards
JPS6376095A (en) Ic card
JPS62269289A (en) Portable electronic unit

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051104

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051104

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071106

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071228

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080822

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

Free format text: PAYMENT UNTIL: 20110829

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4177642

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20110829

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120829

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120829

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130829

Year of fee payment: 5

EXPY Cancellation because of completion of term