JP4533665B2 - Portable electronic device - Google Patents
Portable electronic device Download PDFInfo
- Publication number
- JP4533665B2 JP4533665B2 JP2004153213A JP2004153213A JP4533665B2 JP 4533665 B2 JP4533665 B2 JP 4533665B2 JP 2004153213 A JP2004153213 A JP 2004153213A JP 2004153213 A JP2004153213 A JP 2004153213A JP 4533665 B2 JP4533665 B2 JP 4533665B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- file
- definition information
- data
- file definition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Description
本発明は、たとえば、書換え可能な不揮発性メモリおよびCPUなどの制御素子を有し、選択的に外部との間でデータの入出力を行なう手段を備えたICチップを内蔵した、いわゆるICカードと称される携帯可能電子装置に係り、特に複数のアプリケーションが登録されている携帯可能電子装置に関する。 The present invention relates to a so-called IC card having a built-in IC chip having a control element such as a rewritable nonvolatile memory and a CPU and selectively inputting / outputting data to / from the outside. More particularly, the present invention relates to a portable electronic device in which a plurality of applications are registered.
一般に、この種のICカードの製造段階として、初期化(Initialize)、1次発行(Pre−Personalize)、2次発行(Personalize)の3段階に分かれている。1次発行では、ファイル創成(Create File)コマンドにより、書換え可能な不揮発性メモリ内にファイル定義情報の設定および2次発行するデータを格納する領域の確保を行なう。 Generally, there are three stages for manufacturing this type of IC card: initialization (initialize), primary issue (Pre-Personize), and secondary issue (Personalize). In the primary issue, a file creation command is used to set file definition information and secure an area for storing secondary issue data in a rewritable nonvolatile memory.
ここに、初期化(Initialize)とは、ICカードのシステム領域(ルートディレクトリ)に対し書込みを行ない、ICカードが動作可能な状態となるようにすることである。
1次発行(Pre−Personalize)とは、ICカードに1つあるいは複数のデータを格納可能とするためのディレクトリおよびファイルを作成することである。
2次発行(Personalize)とは、1次発行で作成したファイルに個別情報を書込み、カードを使用可能な状態にすることである。
The primary issue (Pre-Personalize) is to create a directory and a file for enabling one or a plurality of data to be stored in the IC card.
The secondary issue (Personalize) is to write individual information in a file created by the primary issue to make the card usable.
ところが、従来のICカードでは、各種データを格納するための書換え可能な不揮発性メモリ内にファイル定義情報が設定されるため、書換え可能な不揮発性メモリの有効活用が困難であるという問題がある。
また、1次発行を経てからでないと2次発行が行なえず、カード製造工程の短縮化が困難であるという問題がある。
However, the conventional IC card has a problem that it is difficult to effectively use the rewritable nonvolatile memory because the file definition information is set in the rewritable nonvolatile memory for storing various data.
Moreover, there is a problem in that it is difficult to shorten the card manufacturing process since the secondary issuance cannot be performed until after the primary issuance.
そこで、本発明は、1次発行を行なわずに2次発行が可能となり、各種データを格納するための書換え可能な不揮発性メモリの有効活用が可能で、製造工程の短縮化も図れる携帯可能電子装置を提供することを目的とする。 Therefore, the present invention enables secondary issuance without performing primary issuance, enables effective use of a rewritable nonvolatile memory for storing various data, and enables portable electronic devices that can shorten the manufacturing process. An object is to provide an apparatus.
本発明の携帯可能電子装置は、データを記憶する書換え可能な第1のメモリ、この第1のメモリに対してデータの読出しあるいは書込み等を行なうための制御部、および、この制御部が動作するためのプログラム等が格納されている書換え不可能な第2のメモリを有し、選択的に外部との間でデータの入出力を行なう携帯可能電子装置において、データを格納するファイルを定義するためのファイル定義情報で、当該ファイル定義情報を識別するための識別情報を含むファイル定義情報を前記第2のメモリにあらかじめ登録しておき、このあらかじめ登録したファイル定義情報の識別情報を指定することで、当該ファイル定義情報により定義されるファイルを前記第1のメモリ内に創成することを特徴とする。 A portable electronic device according to the present invention has a rewritable first memory for storing data, a control unit for reading or writing data to the first memory, and the control unit operates In order to define a file for storing data in a portable electronic device having a non-rewritable second memory in which a program for storing data is stored and selectively inputting / outputting data to / from the outside In this file definition information, file definition information including identification information for identifying the file definition information is registered in the second memory in advance, and the identification information of the file definition information registered in advance is designated. A file defined by the file definition information is created in the first memory.
本発明によれば、アプリケーションによって決定されるファイル定義情報をあらかじめ書換え不可能な第2のメモリに登録しておくことで、1次発行を行なわずに2次発行が可能となり、よって各種データを格納するための書換え可能な第1のメモリの有効活用が可能で、1次発行を行なわないことによる製造工程の短縮化も図れる携帯可能電子装置を提供できる。 According to the present invention, file definition information determined by an application is registered in advance in a second memory that cannot be rewritten, so that secondary issue is possible without performing primary issue. It is possible to provide a portable electronic device that can effectively use the rewritable first memory for storing and can shorten the manufacturing process by not performing the primary issue.
以下、本発明の実施の形態について図面を参照して説明する。
図1は、本実施の形態に係る携帯可能電子装置としてのICカードを取扱うICカードシステムの構成例を示すものである。このICカードシステムは、ICカード101をカードリーダ・ライタ102を介してパーソナルコンピュータなどの端末装置103と接続可能にするとともに、端末装置103にキーボード104、CRT表示部106、プリンタ106を接続して構成される。
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, an
図2は、ICカード101の構成を示すもので、制御部としての制御素子(たとえば、CPU)201、第1のメモリとしてのデータメモリ202、ワーキングメモリ203、第2のメモリとしてのプログラムメモリ204、および、カードリーダ・ライタ102との通信を行なうための通信部205によって構成されている。そして、これらのうち、破線内の部分(制御素子201、データメモリ202、ワーキングメモリ203、プログラムメモリ204)は1つ(あるいは複数)のICチップ200で構成され、さらに、このICチップ200と通信部205とが一体的にICモジュール化されて、ICカード本体内に埋設されている。
FIG. 2 shows a configuration of the
データメモリ202は、各種データの記憶に使用され、たとえば、EEPROMなどの記憶内容が書換え可能な不揮発性メモリで構成されている。
ワーキングメモリ203は、制御素子201が処理を行なう際の処理データなどを一時的に保持するための作業用メモリであり、たとえば、RAMなどの記憶内容が書換え可能な揮発性メモリで構成される。
プログラムメモリ204は、たとえば、マスクROMなどの記憶内容が書換え不可能な不揮発性メモリで構成されており、制御素子201の制御プログラム、複数のアプリケーションプログラム、および、ファイル定義情報などを記憶するものである。
The
The
The
通信部205は、当該ICカード101が無線式ICカードの場合にはアンテナおよび送受信部として構成され、無線式カードリーダ・ライタから送信された変調波を非接触で受信したり外部へ変調波を送信するようになっている。また、受信した変調波から内部回路に供給するための電源やクロックパルスを生成するようになっている。また、当該ICカード101が接触式ICカードの場合にはコンタクト部として構成され、カードリーダ・ライタに設けられたICカード接触端子部と接触することにより、データの送受信を行なうとともに、電源やクロックパルスを得るようになっている。
When the
図3は、プログラムメモリ204内のデータの一部を示すものである。プログラムメモリ204内には、各種プログラムの実行コード以外に、複数のファイル定義情報、この例では、たとえば、複数のエレメンタリファイル(EF:Elementary File)を定義するためのファイル定義情報(EF)302、および、複数のデティケーテッドファイル(DF:Dedicated File)を定義するためのファイル定義情報(DF)309が格納されている。
FIG. 3 shows a part of the data in the
ファイル定義情報302は、ファイル識別情報としてのEF−ID303、後述するデータ409およびPIN410(図4参照)の位置を示す相対アドレス304、サイズ305、アクセス条件情報306、アプリケーションの種類を識別するためのアプリケーション識別情報307、鍵、レコード、バイナリなどのEFの種類を識別するEFタイプ情報308から構成される。
ファイル定義情報(DF)309は、アクセス条件情報310、アプリケーションの種類を識別するためのアプリケーション識別情報311、後述するAID411(図4参照)の位置を示す相対アドレス312から構成される。
The
The file definition information (DF) 309 includes
図4は、データメモリ202の構成を示すものである。データメモリ202は、システム領域402とユーザ領域408とから構成されており、ユーザ領域408は、さらに、パーティション412により第1の領域408aと第2の領域408bとに分離されている。
FIG. 4 shows the configuration of the
システム領域402には、アプリケーションの種類を識別するためのアプリケーション識別情報403、パーティション先頭アドレス404、パーティションサイズ405、当該ICカードの状態を識別するための状態識別情報406、1次発行あるいは2次発行を行なうときの条件として認証の必要な鍵407が設定されている。
In the
ユーザ領域408の第1の領域408aには、ファイル定義情報(EF)302で指定されるデータ409、PIN(暗証番号)410、ファイル定義情報(DF)309で指定されるファイル識別情報としてのAID(エリアID)411が複数格納されている。
The first area 408a of the
ユーザ領域408の第2の領域408bには、後述するファイル創成コマンド601(図6参照)で設定したファイル定義情報(EF)417、ファイル定義情報(DF)413、ファイル定義情報(EF)417で指定されるデータ424、PIN(暗証番号)425、ファイル定義情報(DF)413で指定されるAID(エリアID)426が複数格納されている。
In the second area 408b of the
ファイル定義情報(DF)413は、アクセス条件情報414、アプリケーションの種類を識別するためのアプリケーション識別情報415、AID426の相対アドレス416から構成される。
ファイル定義情報(EF)417は、ファイル識別情報としてのEF−ID418、データ424およびPIN425を指定するための相対アドレス419、データ424およびPIN425のサイズ420、アクセス条件情報421、アプリケーションの種類を識別するためのアプリケーション識別情報422、EFタイプ情報423から構成される。
File definition information (DF) 413 includes
File definition information (EF) 417 identifies EF-
図5は、2次発行用コマンド501の構成を示すもので、コマンドヘッダ502とデータ503とから構成されている。2次発行用コマンド501としては、たとえば、セレクトコマンド、書込みコマンド、読出しコマンド、認証コマンドなどがある。
図6は、ファイル創成コマンド601の構成を示すもので、コマンドヘッダ602とデータ603とから構成されている。データ603は、たとえば、ファイル定義情報(EF)417またはファイル定義情報(DF)413+AID426から構成される。
FIG. 5 shows the configuration of the
FIG. 6 shows the configuration of the
次に、上記のような構成において、全体的な処理の流れについて図7〜図10に示すフローチャートを参照して説明する。
カードリーダ・ライタ102からのコマンドを受信すると、制御素子201は、システム領域402内の状態識別情報406が1次発行になっているか否かを判定し(ステップ703)、1次発行になっている場合、図8のステップ715に進む。1次発行になっていない場合、制御素子201は、状態識別情報406が2次発行になっているか否かを判定し(ステップ705)、2次発行になっていない場合、図9のステップ724に進む。
Next, the overall processing flow in the above configuration will be described with reference to the flowcharts shown in FIGS.
When receiving a command from the card reader /
ステップ705において、2次発行になっている場合、制御素子201は、受信したコマンドはセレクトコマンドであるか否かを判定し(ステップ707)、セレクトコマンドの場合、図10のステップ728に進む。セレクトコマンドでない場合、制御素子201は、受信したコマンドは認証コマンドであるか否かを判定し(ステップ709)、認証コマンドの場合、システム領域402内の鍵407の認証を行なう認証コマンド処理を行なう(ステップ710)。
In
ステップ709において、認証コマンドでない場合、制御素子201は、鍵407の認証が実施され、かつ、成功しているか否かを判定し(ステップ711)、条件を満たさない場合、所定のエラー処理を行なう(ステップ712)。
If it is determined in
ステップ711において、条件を満たす場合、この場合は2次発行状態で、セレクトコマンド、認証コマンド以外の場合の処理であるので、制御素子201は、2次発行用コマンド501のデータ503は、システム領域402内のアプリケーション識別情報403で指定されるファイル定義情報302の条件を満たすか否かを判定し(ステップ735)、条件を満たさない場合、所定のエラー処理を行なう(ステップ736)。
ステップ735において、条件を満たす場合、制御素子201は、ユーザ領域408の第1の領域408aにデータ409あるいはPIN410の設定を行ない(ステップ737)、処理を正常終了する。
In
If the condition is satisfied in
ステップ715以降は1次発行状態の場合の処理である。すなわち、制御素子201は、鍵407の認証が実施され、かつ、成功しているか否かを判定し(ステップ715)、条件を満たさない場合、所定のエラー処理を行なう(ステップ716)。条件を満たす場合、制御素子201は、受信したコマンドはファイル創成コマンド601であるか否かを判定し(ステップ717)、ファイル創成コマンド601ではない場合、他のコマンド処理を行なう(ステップ718)。
Step 715 and subsequent steps are processing in the case of the primary issue state. That is, the
ステップ717において、ファイル創成コマンド601である場合、制御素子201は、データメモリ202に充分な空きエリアが確保されているか否かを判定し(ステップ719)、不十分であれば、所定のエラー処理を行なう(ステップ720)。
In
ステップ719において、データメモリ202に充分な空きエリアがあれば、制御素子201は、ユーザ領域408の第2の領域408bにファイル定義情報(EF)417あるいはファイル定義情報(DF)413+AID426の書込みを行ない(ステップ721)、処理を正常終了する。
If there is sufficient free area in the
ステップ724以降は、1次発行状態でも、2次発行状態でもない場合の処理である。すなわち、制御素子201は、状態識別情報406が初期化状態か否かを判定し(ステップ724)、初期化状態であれば、初期化コマンド処理を行ない(ステップ725)、初期化状態でなければ、運用コマンド処理を行なう(ステップ726)。
Step 724 and subsequent steps are processing when neither the primary issue state nor the secondary issue state is set. That is, the
ステップ728以降はセレクトコマンドの場合の処理である。すなわち、制御素子201は、セレクトコマンドのデータ503で指定されるAIDは、既にデータメモリ202内に存在しているか否かを判定し(ステップ728)、存在している場合、指定されているAIDのDFをカレント状態にする(ステップ729)。
ステップ728において、既にデータメモリ202内に存在していない場合、制御素子201は、鍵407の認証が実施され、かつ、成功しているか否かを判定し(ステップ730)、条件を満たさない場合、所定のエラー処理を行なう(ステップ731)。条件を満たす場合、制御素子201は、ユーザ領域408の第1の領域408aにAID411を設定して、当該AIDのDFをカレント状態にし(ステップ732)、処理を正常終了する。
In
以上説明したように、上記実施の形態によれば、アプリケーションによって決定されるファイル定義情報をあらかじめプログラムメモリ(ROM)204に登録しておくことで、1次発行を行なわずに2次発行を行なうことが可能となる。したがって、プログラムメモリ204内にファイル定義情報を持つため、データメモリ(EEPROM)202の有効活用が可能となる。また、1次発行を行なわないことによる、製造工程の短縮化も可能となる。
As described above, according to the above-described embodiment, file definition information determined by an application is registered in the program memory (ROM) 204 in advance, and secondary issue is performed without performing primary issue. It becomes possible. Therefore, since the
101…ICカード、102…カードリーダ・ライタ、103…端末装置、104…キーボード、105…CRT表示部、106…プリンタ、201…制御素子(制御部)、202…データメモリ(メモリ、記憶手段、第1のメモリ)、203…ワーキングメモリ、204…プログラムメモリ(第2のメモリ)、205…通信部、402…システム領域、408…ユーザ領域、408a…第1の領域、408b…第2の領域、412…パーティション。
DESCRIPTION OF
Claims (3)
データを格納するファイルを定義するためのファイル定義情報で、当該ファイル定義情報を識別するための識別情報を含むファイル定義情報を前記第2のメモリにあらかじめ登録しておき、このあらかじめ登録したファイル定義情報の識別情報を指定することで、当該ファイル定義情報により定義されるファイルを前記第1のメモリ内に創成することを特徴とする携帯可能電子装置。 A rewritable first memory for storing data, a control unit for reading and writing data to the first memory, a program for operating the control unit, and the like are stored. In a portable electronic device having a non-rewritable second memory and selectively inputting / outputting data to / from the outside,
File definition information for defining a file for storing data. File definition information including identification information for identifying the file definition information is registered in the second memory in advance, and this pre-registered file definition A portable electronic device, wherein a file defined by the file definition information is created in the first memory by specifying identification information of the information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004153213A JP4533665B2 (en) | 2004-05-24 | 2004-05-24 | Portable electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004153213A JP4533665B2 (en) | 2004-05-24 | 2004-05-24 | Portable electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005338925A JP2005338925A (en) | 2005-12-08 |
JP4533665B2 true JP4533665B2 (en) | 2010-09-01 |
Family
ID=35492468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004153213A Active JP4533665B2 (en) | 2004-05-24 | 2004-05-24 | Portable electronic device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4533665B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4828958B2 (en) * | 2006-02-16 | 2011-11-30 | 株式会社エヌ・ティ・ティ・ドコモ | Subscriber authentication module issuing system and subscriber authentication module issuing method |
JP2016129072A (en) * | 2016-03-11 | 2016-07-14 | 株式会社東芝 | Ic card, portable electronic device and ic card processor |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000113121A (en) * | 1998-09-30 | 2000-04-21 | Toshiba Corp | Portable electronic equipment and method for initializing portable electronic equipment |
JP2002298105A (en) * | 2001-03-30 | 2002-10-11 | Sony Corp | Device and method for storing data, device and method for processing information, recording medium and program |
JP2003067679A (en) * | 2001-08-29 | 2003-03-07 | Toshiba Corp | Portable electronic device and data write method therefor |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2974144B2 (en) * | 1988-08-31 | 1999-11-08 | 株式会社東芝 | Portable electronic devices |
JP3246558B2 (en) * | 1991-07-05 | 2002-01-15 | 大日本印刷株式会社 | IC card |
JPH10105472A (en) * | 1996-09-30 | 1998-04-24 | Toshiba Corp | Method for managing access of memory |
-
2004
- 2004-05-24 JP JP2004153213A patent/JP4533665B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000113121A (en) * | 1998-09-30 | 2000-04-21 | Toshiba Corp | Portable electronic equipment and method for initializing portable electronic equipment |
JP2002298105A (en) * | 2001-03-30 | 2002-10-11 | Sony Corp | Device and method for storing data, device and method for processing information, recording medium and program |
JP2003067679A (en) * | 2001-08-29 | 2003-03-07 | Toshiba Corp | Portable electronic device and data write method therefor |
Also Published As
Publication number | Publication date |
---|---|
JP2005338925A (en) | 2005-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3568970B2 (en) | IC card issuing device | |
US7775423B2 (en) | Portable electronic device and control method of portable electronic device | |
US9183400B2 (en) | IC card and IC card control method | |
JP5259513B2 (en) | Portable electronic device, IC card, and portable electronic device control method | |
US20050132151A1 (en) | Portable electronic device | |
JP2006236200A (en) | Card type storage device and host device thereof | |
JP4533665B2 (en) | Portable electronic device | |
JP7020969B2 (en) | Portable electronic devices and IC cards | |
US20120234926A1 (en) | Portable electronic apparatus | |
JP2011022841A (en) | Processing system for portable electronic apparatus, portable electronic apparatus, and processing apparatus for portable electronic apparatus | |
JP4950730B2 (en) | Portable electronic device, file access method and IC card in portable electronic device | |
JP6499052B2 (en) | IC card, IC module, and program | |
JP2006293706A (en) | Multi-application ic card with application updating function | |
JP4836707B2 (en) | Portable electronic device and IC card | |
JP3526287B2 (en) | Portable electronic device and data writing method thereof | |
JP2011060136A (en) | Portable electronic apparatus, and data management method in the same | |
JP5693824B2 (en) | IC card processing device, IC card, and IC card processing system | |
JP2012133656A (en) | Portable electronic apparatus and ic card | |
JP2008299416A (en) | Portable electronic device, file access method in portable electronic device, and ic card | |
JP5932588B2 (en) | IC card, portable electronic device, and IC card processing device | |
JP2018194995A (en) | Electronic information storage medium, IC card, data transmission method, data writing method, data transmission program and data writing program | |
US10068168B2 (en) | IC card and IC module | |
JP2009176034A (en) | Portable electronic device and data management method | |
JP5259541B2 (en) | Portable electronic device, method for controlling portable electronic device, and IC card | |
JP2675563B2 (en) | Portable electronic devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070330 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100223 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100423 |
|
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: 20100518 |
|
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: 20100614 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4533665 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: 20130618 Year of fee payment: 3 |