JPH09231331A - IC card - Google Patents

IC card

Info

Publication number
JPH09231331A
JPH09231331A JP8286455A JP28645596A JPH09231331A JP H09231331 A JPH09231331 A JP H09231331A JP 8286455 A JP8286455 A JP 8286455A JP 28645596 A JP28645596 A JP 28645596A JP H09231331 A JPH09231331 A JP H09231331A
Authority
JP
Japan
Prior art keywords
card
information
command
condition
transmission
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
JP8286455A
Other languages
Japanese (ja)
Other versions
JP3718564B2 (en
Inventor
Kazuyoshi Irisawa
和義 入澤
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP28645596A priority Critical patent/JP3718564B2/en
Publication of JPH09231331A publication Critical patent/JPH09231331A/en
Application granted granted Critical
Publication of JP3718564B2 publication Critical patent/JP3718564B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)

Abstract

(57)【要約】 【課題】 ICカードの発行後に、その通信条件をコマ
ンドにより用意に設定・変更することが可能なICカー
ドを提供する。 【解決手段】 通信条件に関する条件情報を格納した記
憶手段を有し、前記条件情報に従い外部機器と通信を行
うICカードにおいて、前記記憶手段は、書き換え可能
な記憶手段であり、前記条件情報の内容は、外部からの
コマンドにより変更可能である。
(57) 【Abstract】 PROBLEM TO BE SOLVED: To provide an IC card capable of easily setting / changing its communication condition by a command after issuing the IC card. In an IC card having storage means for storing condition information regarding communication conditions and communicating with an external device in accordance with the condition information, the storage means is a rewritable storage means, and contents of the condition information. Can be changed by an external command.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ICカードが発行
された後に、コマンドを付与することにより、リーダラ
イタ装置等との通信条件を設定・変更することが可能な
ICカードに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an IC card capable of setting / changing a communication condition with a reader / writer device or the like by giving a command after the IC card is issued.

【0002】[0002]

【従来の技術】従来のICカードは、CPU、RAM、
ROM、EEPROM等を具備しており、I/O端子を
介してリーダライタ装置と通信を行い、コマンドを受信
し、そのコマンドを解釈、実行していた。この場合に、
コマンドは、共通コマンドとして、JIS X 630
6に定められているものを使用している。
2. Description of the Related Art A conventional IC card includes a CPU, a RAM,
It has a ROM, an EEPROM, etc., communicates with the reader / writer device via the I / O terminal, receives a command, interprets and executes the command. In this case,
The command is JIS X 630 as a common command.
The one specified in 6 is used.

【0003】また、ICカードは、外部と通信を行う場
合には、そのICカードが属するICカードシステム
(以下、単に「システム」という)において予め定めら
れた一定の通信条件に従い行う。ここで、通信条件と
は、例えば、信号の伝送速度、ストップビットの長さ、
初期応答(ATR)の内容などをいう。
Further, when the IC card communicates with the outside, the IC card performs the communication according to a predetermined communication condition predetermined in the IC card system to which the IC card belongs (hereinafter simply referred to as "system"). Here, the communication conditions include, for example, a signal transmission speed, a stop bit length,
The contents of the initial response (ATR).

【0004】従来、一つのICカードは、一つのシステ
ムにおいてのみ使用されていたので、ICカードが従う
べき通信条件は一つのみであった。このために、通信条
件は、ICカードのROMに、ICカードの動作を規定
するプログラムとともに格納され、ICカードがリーダ
ライタ装置と通信を行う場合には、CPUがROMの通
信条件を読みとり、その条件に沿った通信を行ってい
た。
Conventionally, one IC card has been used only in one system, so that the IC card has only one communication condition. Therefore, the communication conditions are stored in the ROM of the IC card together with the program that defines the operation of the IC card. When the IC card communicates with the reader / writer device, the CPU reads the communication conditions of the ROM and I was communicating according to the conditions.

【0005】[0005]

【発明が解決しようとする課題】ICカードは、そのセ
キュリティの高さ等が評価され、最近、急速に社会に普
及しつつある。また、ICカードの普及に伴い、一つの
ICカードを異なる2以上のシステムで利用したいとの
要求が増大しつつある。これに対し各システムは、シス
テムの目的や、システムを構築したハードウェアの相違
から、設定されている通信条件が異なる場合が多い。ま
た、同一のシステムであっても、新技術の導入により通
信速度を高める等、通信条件が変更となる場合がある。
The IC card is highly evaluated for its high security and the like, and has recently been rapidly spreading to society. Further, with the spread of IC cards, there is an increasing demand for using one IC card in two or more different systems. On the other hand, each system often has different set communication conditions due to the purpose of the system and the difference in the hardware that constructs the system. In addition, even in the same system, the communication conditions may be changed by increasing the communication speed due to the introduction of new technology.

【0006】一方、従来のICカードでは、通信条件が
ROMに格納されていたために、その設定を後発的に変
更することはできない。したがって、一つのICカード
を異なる2以上のシステムにおいて使用したい場合に
は、システム側において通信条件を統一する必要があっ
た。
On the other hand, in the conventional IC card, since the communication condition is stored in the ROM, the setting cannot be changed later. Therefore, when it is desired to use one IC card in two or more different systems, it is necessary to unify the communication conditions on the system side.

【0007】しかし、システム間の通信条件の統一は、
場合によっては多大の設備投資を必要とするという問題
を有する。また、同一システムにおいて、通信条件を変
更する場合には、新しい通信条件を格納したROMを開
発・製造し、それを用いてICカードを再生産・再発行
しなければならない。ところが、新しいROMの開発・
生産には、多大な費用と時間が必要とされる。このため
に、一般にシステムの通信条件を変更することは容易で
なく、関連技術が大きく進歩しているのにも関わらず、
ICカードのシステムにその利益を導入できないという
問題があった。
However, the unification of communication conditions between systems is
There is a problem that a large amount of capital investment is required in some cases. Further, in the same system, when changing communication conditions, it is necessary to develop / manufacture a ROM storing new communication conditions and use it to reproduce / reissue an IC card. However, the development of new ROM
A large amount of money and time are required for production. For this reason, it is generally not easy to change the communication conditions of the system, and despite the great progress in related technologies,
There was a problem that the profit could not be introduced into the IC card system.

【0008】そこで、本発明の課題は、ICカードの発
行後に、その通信条件をコマンドにより用意に設定・変
更することが可能なICカードを提供することである。
[0008] Therefore, an object of the present invention is to provide an IC card in which the communication conditions can be easily set and changed by a command after the IC card is issued.

【0009】[0009]

【課題を解決するための手段】前記課題を解決するため
に、請求項1に係る発明は、伝送条件、伝送データ、動
作特性をカスタマイズすることができることを特徴とす
る。請求項2に係る発明は、通信条件に関する条件情報
を格納した記憶手段を有し、前記条件情報に従い外部機
器と通信を行うICカードにおいて、前記記憶手段は、
書き換え可能な記憶手段であり、前記条件情報の内容
は、外部からのコマンドにより変更可能であることを特
徴とする。請求項3に係る発明は、請求項1又は請求項
2に記載のICカードにおいて、前記伝送条件又は前記
条件情報は、伝送速度に関する情報であることを特徴と
する。
In order to solve the above-mentioned problems, the invention according to claim 1 is characterized in that the transmission condition, the transmission data, and the operation characteristic can be customized. According to a second aspect of the present invention, in an IC card that has storage means for storing condition information regarding communication conditions, and communicates with an external device according to the condition information, the storage means is
It is a rewritable storage means, and the content of the condition information can be changed by a command from the outside. According to a third aspect of the present invention, in the IC card according to the first or second aspect, the transmission condition or the condition information is information regarding a transmission speed.

【0010】請求項4に係る発明は、請求項1又は請求
項2に記載のICカードにおいて、前記伝送条件又は前
記条件情報は、ストップビットに関する情報であること
を特徴とする。請求項5に係る発明は、請求項1又は請
求項2に記載のICカードにおいて、前記伝送データ又
は前記条件情報は、初期応答ファイルの内容の一部又は
全部に関する初期応答情報であることを特徴とする。請
求項6に係る発明は、請求項1又は請求項2に記載のI
Cカードにおいて、前記動作特性又は前記条件情報は、
コマンド受信待ち状態において、当該ICカードが低消
費電力動作を行うか否かに関する情報であることを特徴
とする。
The invention according to claim 4 is the IC card according to claim 1 or 2, wherein the transmission condition or the condition information is information relating to a stop bit. According to a fifth aspect of the present invention, in the IC card according to the first or second aspect, the transmission data or the condition information is initial response information regarding a part or all of the content of the initial response file. And The invention according to claim 6 is the I according to claim 1 or claim 2.
In the C card, the operation characteristic or the condition information is
It is characterized in that it is information regarding whether or not the IC card performs a low power consumption operation in a command reception waiting state.

【0011】請求項7に係る発明は、請求項3及び請求
項4の一方又は双方に記載のICカードにおいて、前記
伝送速度に関する情報及び前記ストップビットに関する
情報の一方又は双方と、前記初期応答情報との関係に関
する情報を記憶する参照情報記憶手段と、前記外部から
のコマンドにより、前記伝送速度に関する情報又は前記
ストップビットに関する情報の一方又は双方の内容が変
更された場合に、前記参照情報記憶手段に記憶されてい
る情報に基づき前記初期応答情報の内容を変更する変更
手段とを有することを特徴とする。
According to a seventh aspect of the invention, in the IC card according to one or both of the third and fourth aspects, one or both of the information regarding the transmission rate and the information regarding the stop bit, and the initial response information. And a reference information storage unit that stores information regarding the relationship between the reference information storage unit and the information about the transmission rate or the stop bit, when one or both of the contents is changed by a command from the outside. And a changing unit for changing the content of the initial response information based on the information stored in.

【0012】[0012]

【発明の実施の形態】以下、図面等を参照して、本発明
に係る一実施形態について、さらに詳しく説明する。図
1は、本発明に係るICカード10及びリーダライタ装
置20を示すブロック図である。
Hereinafter, an embodiment of the present invention will be described in more detail with reference to the drawings. FIG. 1 is a block diagram showing an IC card 10 and a reader / writer device 20 according to the present invention.

【0013】はじめに、図1を用いてICカード10の
構成について説明する。図に示されるように、ICカー
ド10には、I/Oインタフェース11、CPU12、
ROM13、RAM14、EEPROM15が内蔵され
ている。I/Oインタフェース11は、データを送受す
るための入出力回路であり、CPU12は、このI/O
インタフェース11を介してリーダライタ装置20と交
信する。ROM13内には、CPU12によって実行さ
れるべきプログラムが記憶されており、CPU12はこ
のプログラムに基いて、ICカード10を統括制御す
る。RAM14は、CPU12がこのような統括制御を
行う上で作業領域として使用するメモリである。一方、
EEPROM15は、このICカード10に記録すべき
本来のデータを格納するメモリである。
First, the structure of the IC card 10 will be described with reference to FIG. As shown in the figure, the IC card 10 includes an I / O interface 11, a CPU 12,
The ROM 13, the RAM 14, and the EEPROM 15 are built in. The I / O interface 11 is an input / output circuit for transmitting / receiving data, and the CPU 12 uses the I / O interface.
It communicates with the reader / writer device 20 via the interface 11. A program to be executed by the CPU 12 is stored in the ROM 13, and the CPU 12 integrally controls the IC card 10 based on this program. The RAM 14 is a memory used as a work area when the CPU 12 performs such overall control. on the other hand,
The EEPROM 15 is a memory that stores original data to be recorded in the IC card 10.

【0014】ICカード10には、リーダライタ装置2
0から電源やクロックが供給される。したがって、IC
カード10がリーダライタ装置20等と切り離される
と、ICカード10への電源及びクロックの供給は停止
する。しかしながら、EEPROM15は不揮発性メモ
リであるため、電源供給が停止した後もその記録内容は
そのまま保持される。ただし、RAM14内のデータに
ついては、電源供給の停止によりすべて失われる。
The IC card 10 includes a reader / writer device 2
Power and clock are supplied from 0. Therefore, IC
When the card 10 is separated from the reader / writer device 20 or the like, the power supply and the clock supply to the IC card 10 are stopped. However, since the EEPROM 15 is a non-volatile memory, its recorded content is retained as it is even after the power supply is stopped. However, all the data in the RAM 14 is lost due to the stop of power supply.

【0015】ICカード10内の各メモリ13、14、
15へのアクセスは、すべてCPU12を介して行わ
れ、外部からこれらメモリを直接アクセスすることはで
きない。すなわち、リーダライタ装置20等からCPU
12に対して所定の「コマンド」を与えると、CPU1
2はこの「コマンド」を解釈実行し、その結果を、リー
ダライタ装置20等に対して「レスポンス」として返送
することになる。
Each memory 13, 14 in the IC card 10
All access to 15 is performed via the CPU 12, and these memories cannot be directly accessed from the outside. That is, from the reader / writer device 20 or the like to the CPU
When a predetermined “command” is given to 12, the CPU 1
2 interprets and executes this "command", and returns the result as a "response" to the reader / writer device 20 or the like.

【0016】図2は、本実施形態のROM13、EEP
ROM15に割り付けられているアドレスの一例を示す
図である。本実施形態では、ROM13にアドレス00
00h〜1FFFhを、EEPROM15に8000h
〜9FFFhのアドレスを割り当てている。なお、数値
の末尾に付加されている「h」は、その数値が16進法
に基づき表記されていることを意味する。
FIG. 2 shows the ROM 13 and EEP of this embodiment.
It is a figure which shows an example of the address allocated to ROM15. In this embodiment, the address 00 is stored in the ROM 13.
00h-1FFFh to EEPROM15 for 8000h
Addresses of ~ 9FFFh are assigned. The “h” added to the end of the numerical value means that the numerical value is expressed in hexadecimal notation.

【0017】本実施形態では、ICカード10がリーダ
ライタ装置20と通信を行う際の通信条件をROM13
のアドレス00A1h〜00A4hの領域と、EEPR
OM15のアドレス8025h以降の所定領域に格納し
ている。ROM13のアドレス00A1h及び00A2
hには、通信信号の伝送速度に関する情報が格納されて
いる。例えば、アドレス00A1hには、伝送速度Aと
して9600(bps)、アドレス00A2hには、伝
送速度Bとして19200(bps)の値が格納されて
いる。
In the present embodiment, the ROM 13 indicates the communication conditions when the IC card 10 communicates with the reader / writer device 20.
Area of addresses 00A1h to 00A4h and EEPR
It is stored in a predetermined area after the address 8025h of the OM15. Addresses 00A1h and 00A2 of ROM 13
Information regarding the transmission rate of the communication signal is stored in h. For example, the address 00A1h stores a value of 9600 (bps) as the transmission rate A, and the address 00A2h stores a value of 19200 (bps) as the transmission rate B.

【0018】また、アドレス00A3h及び00A4h
には、ストップビットのビット長に関する情報が格納さ
れている。すなわち、アドレス00A3hには、ストッ
プビットCとして1(ビット)、アドレス00A4hに
は、ストップビットDとして2(ビット)の値が格納さ
れている。
Addresses 00A3h and 00A4h
Stores information on the bit length of the stop bit. That is, the address 00A3h stores a value of 1 (bit) as the stop bit C, and the address 00A4h stores a value of 2 (bit) as the stop bit D.

【0019】一方、EEPROM15のアドレス802
5hには、ユーザーの指定識別が格納されている。指定
識別は、最初のCUSTOMIZEコマンドを受ける前
までは、FFhに設定されている。指定識別がFFhで
ある時は、別のメモリ(本実施形態ではROMの「10
25h〜1029h」の領域)に、製造時に設定された
ATR値、伝送条件を参照すべきこと意味する。指定識
別は、CUSTOMIZEコマンドを受けた後は、内部
で自動的にC3hに書き代わる。指定識別がC3hであ
るときは、ユーザーの設定したATR値等を参照すべき
ことが意味される。また、アドレス8026hには、R
OM13に格納されている伝送速度A、Bのいずれに従
って通信を行うか、すなわち、伝送速度を指定するフラ
グ(以下「伝送速度フラグ」という)が格納されてい
る。伝送速度フラグは、例えば、第3ビット目のみが
「1」に設定されていれば伝送速度Aに従い、また、第
3ビット目及び第1ビット目が「1」に設定されている
ときは、伝送速度Bに従い通信を行うべきことを示す。
On the other hand, the address 802 of the EEPROM 15
The designation identification of the user is stored in 5h. The designated identification is set to FFh before receiving the first CUSTOMIZE command. When the designated identification is FFh, another memory (“10 in the ROM in this embodiment” is used).
25h to 1029h ”) means that the ATR value and the transmission condition set at the time of manufacture should be referred to. After receiving the CUSTOMIZE command, the designated identification automatically replaces C3h internally. When the designated identification is C3h, it means that the ATR value set by the user should be referred to. In addition, at the address 8026h, R
A flag (hereinafter, referred to as “transmission rate flag”) that specifies which of the transmission rates A and B stored in the OM 13 is used for communication, that is, the transmission rate is stored. The transmission rate flag follows, for example, the transmission rate A when only the third bit is set to "1", and when the third bit and the first bit are set to "1", It indicates that communication should be performed according to the transmission rate B.

【0020】EEPROM16のアドレス8027hに
は、ストップビットのビット長をROM13に格納され
ているストップビットC、Dのいずれに設定すべきかを
示すフラグ(以下「ストップビットフラグ」という)
が、第1ビット目から第7ビット目までに格納されてい
る。ストップビットフラグは、例えば、第1ビット目が
「1」に設定されていればストップビットAに示される
ビット長のストップビットを使用し、「0」に設定され
ていればストップビットBに示されるビット長のストッ
プビットを使用して通信を行うべきことを示す。
At the address 8027h of the EEPROM 16, a flag indicating which of the stop bits C and D stored in the ROM 13 the bit length of the stop bit should be set (hereinafter referred to as "stop bit flag").
Are stored from the 1st bit to the 7th bit. For the stop bit flag, for example, if the first bit is set to "1", the stop bit having the bit length indicated by the stop bit A is used, and if it is set to "0", the stop bit B is indicated. Indicates that communication should be performed using stop bits of the bit length that is set.

【0021】アドレス8027hの第8ビット目には、
スリープモードフラグが設定されている。スリープモー
ドとは、コマンド受信待ち状態において、低消費電力モ
ードに自動的に移行するというICカードの動作態様の
一つである。スリープモードフラグは、「1」のときに
スリープモードを使用することを、「0」のときにスリ
ープモードを使用しないことを示す。
In the 8th bit of the address 8027h,
The sleep mode flag is set. The sleep mode is one of the operation modes of the IC card that automatically shifts to the low power consumption mode in the command reception waiting state. The sleep mode flag indicates that the sleep mode is used when it is “1” and does not use when it is “0”.

【0022】アドレス8029hには、初期応答ファイ
ルの一部または全部を構成すべき情報が格納されてい
る。図3は、初期応答ファイルの項目とその内容を示し
た図である。初期応答ファイルの内容は、ISOに規格
化されており、フォーマットキャラクタ、インターフェ
イスキャラクタ等から構成される。本実施形態では、初
期応答ファイルの内容のうち、インターフェイスキャラ
クタの内容をアドレス8029hに格納している。ま
た、アドレス8028hには、そのインタフェースキャ
ラクターの長さ(バイト数)が格納されている。
The address 8029h stores information that should form part or all of the initial response file. FIG. 3 is a diagram showing the items and contents of the initial response file. The content of the initial response file is standardized by ISO and is composed of format characters, interface characters and the like. In this embodiment, of the contents of the initial response file, the contents of the interface character are stored at address 8029h. Further, the address 8028h stores the length (number of bytes) of the interface character.

【0023】本実施形態では、ICカード10がリーダ
ライタ装置20と通信を行う場合には、CPU12がE
EPROM15のアドレス8025h以降の領域を参照
し、それに格納されている情報に基づいて通信条件を設
定する。すなわち、ICカード10では、通信を開始す
る前に、EEPROM15に格納されている伝送速度フ
ラグ及びストップビットフラグが確認される。次に、確
認された伝送速度フラグ等により指定された伝送速度及
びストップビット長がROM13より読み出され、それ
らの内容に従った条件により通信が行われる。また、リ
ーダライタ装置に対し初期応答(ATR)を行うときに
は、アドレス8028h以降に格納されているインター
フェースキャラクタが参照され、その内容を反映した初
期応答ファイルが初期応答としてリーダライタ装置に送
信される。
In this embodiment, when the IC card 10 communicates with the reader / writer device 20, the CPU 12 causes the E
The area after the address 8025h of the EPROM 15 is referred to and the communication condition is set based on the information stored therein. That is, in the IC card 10, the transmission speed flag and the stop bit flag stored in the EEPROM 15 are confirmed before starting the communication. Next, the transmission rate and the stop bit length designated by the confirmed transmission rate flag and the like are read from the ROM 13, and communication is performed under the conditions according to the contents. When making an initial response (ATR) to the reader / writer device, the interface character stored at address 8028h and thereafter is referenced, and an initial response file reflecting the contents is transmitted to the reader / writer device as an initial response.

【0024】図4は、本実施形態に係るICカードで使
用されるCUSTOMIZEコマンドのAPDUを示す
図である。CUSTOMIZEコマンドは、EEPRO
M16に格納されている伝送速度フラグ,ストップビッ
トフラグ及びインターフェースキャラクタ等の設定・変
更を行なうためのコマンドである。CUSTOMIZE
コマンドを使用して、伝送速度フラグ等の内容を設定・
変更した場合には、設定・変更後の内容は、ICカード
を次回活性化した後から有効となる。
FIG. 4 is a diagram showing an APDU of the CUSTOMIZE command used in the IC card according to the present embodiment. The CUSTOMIZE command is EEPRO
This is a command for setting / changing the transmission speed flag, stop bit flag, interface character, etc. stored in M16. CUSTOMIZE
Use commands to set contents such as transmission speed flags.
If changed, the contents after setting and changing will be valid after the next activation of the IC card.

【0025】CUSTOMIZEコマンドの第1バイト
目から第4バイト目には、順にコマンドのクラス(CL
A)、種別コード(INS)、パラメータ(P1、P
2)が配置されている。また、第6バイト目以降は、コ
マンドのデータフィールド(DATA)である。データ
フィールドには、先頭から伝送速度フラグ、スリープモ
ードフラグ及びストップビットフラグ、インターフェー
スキャラクタ長、及びインターフェースキャラクタが配
置されている。なお、CLAからLCまでには、例えば
図4に示す各値が割り当てられている。
In the first byte to the fourth byte of the CUSTOMIZE command, the command class (CL
A), type code (INS), parameters (P1, P)
2) is arranged. The sixth byte and subsequent bytes are the data field (DATA) of the command. In the data field, a transmission speed flag, a sleep mode flag and a stop bit flag, an interface character length, and an interface character are arranged from the beginning. Each value shown in FIG. 4, for example, is assigned to CLA to LC.

【0026】図5は、CUSTOMIZEコマンドを処
理するICカード10の動作を示す流れ図である。IC
カード10は、リーダライタ装置20からCUSTOM
IZEコマンドを受信すると、はじめにコマンドの実行
前チェックを行う(S101)。実行前チェックは、例
えば、LCが存在し、かつ、その値が適正であるか、D
ATAの内容が存在するか等、受信したコマンドがCU
STOMIZEコマンドとして必要な情報を備えている
か否かについて行われる。実行前チェックを行った結
果、エラーが発見された場合には(S102、No)、
その旨のエラーメッセージが生成される(S103)。
生成されたエラーメッセージは、レスポンスとしてリー
ダライタ装置20に送信され(S117)、これをもっ
てコマンドの処理は終了される。
FIG. 5 is a flow chart showing the operation of the IC card 10 which processes the CUSTOMIZE command. IC
The card 10 can be read from the reader / writer device 20 to CUSTOM.
When the IZE command is received, a pre-execution check of the command is first performed (S101). The pre-execution check is, for example, whether LC is present and its value is proper, or D
Whether the received command is CU, such as whether ATA contents exist
It is performed as to whether or not the STOMIZE command has necessary information. If an error is found as a result of the pre-execution check (S102, No),
An error message to that effect is generated (S103).
The generated error message is sent to the reader / writer device 20 as a response (S117), and the command processing is ended.

【0027】実行前チェックにおいてエラーが発見され
なかった場合(S102、Yes)には、次にCUST
OMIZEコマンドのデータフィールド(DATA)の
内容が確認される(S104、S107、S110)。
はじめに、ICカード10は、データフィールドの第1
バイト目(伝送速度)のチェックを行い、上位,下位そ
れぞれの4ビットが0100b,0101b,0110
bのいずれかの値であるか否かを判断する(S104、
S105)。その結果、第1バイト目の内容が上記いず
れかの値に該当しなかった場合には(S105、N
o)、該当するデータがない旨のエラーメッセージを生
成して(S106)、これをレスポンスとしてリーダラ
イタ装置20へ送信する(S117)。レスポンスの送
信が終了すると、コマンドの処理は終了される。
If no error is found in the pre-execution check (S102, Yes), then CUST
The content of the data field (DATA) of the OMIZE command is confirmed (S104, S107, S110).
First, the IC card 10 has the first data field.
The byte (transmission rate) is checked, and the upper 4 bits and the lower 4 bits are 0100b, 0101b, 0110.
It is determined whether or not it is any value of b (S104,
S105). As a result, when the content of the first byte does not correspond to any of the above values (S105, N
o), an error message indicating that there is no corresponding data is generated (S106), and this is sent to the reader / writer device 20 as a response (S117). When the transmission of the response ends, the command processing ends.

【0028】S104、S105において、第1バイト
目のデータが正常であることが確認されると、次に、デ
ータフィールドの第2バイト目(ストップビット)のチ
ェックが行われる(S107)。チェックの結果、第1
ビット及び第8ビットが、0、1以外の値を有する場合
には(S108、No)、該当するデータがない旨のエ
ラーメッセージを生成する(S109)。生成されたエ
ラーメッセージは、レスポンスとしてリーダライタ装置
20へ送信され(S117)、その後にコマンドの処理
が終了される。
If it is confirmed in S104 and S105 that the data of the first byte is normal, then the second byte (stop bit) of the data field is checked (S107). As a result of the check, the first
When the bit and the eighth bit have values other than 0 and 1 (S108, No), an error message indicating that there is no corresponding data is generated (S109). The generated error message is transmitted to the reader / writer device 20 as a response (S117), and then the command processing ends.

【0029】S107、S108において、第2バイト
目のデータが適正なものであることが確認されると、次
に、データフィールドの第3バイト目(インターフェー
スキャラクタ長)のチェックが行われる(S110)。
チェックの結果、第3バイト目の内容が15を超える値
を有する場合には(S111、No)、該当するデータ
がない旨のエラーメッセージが生成される(S11
2)。生成されたエラーメッセージは、リーダライタに
送信され(S117)、これによりコマンドの処理は終
了する。
If it is confirmed in S107 and S108 that the data of the second byte is proper, then the third byte (interface character length) of the data field is checked (S110). .
As a result of the check, if the content of the third byte has a value exceeding 15 (S111, No), an error message indicating that there is no corresponding data is generated (S11).
2). The generated error message is transmitted to the reader / writer (S117), and the processing of the command is completed thereby.

【0030】データフィールドの第1バイト目から第3
バイト目までのチェックが全て終了し、データフィール
ドの内容が適正なものであることが確認されると、次
に、データフィールドの内容をEEPROM15に書き
込む処理が実行される(S113)。具体的には、ま
ず、アドレス8025hのユーザー指定識別が「FF
h」から「C3h」に書き直される。次に、CUSTO
MIZEコマンドのデータフィールドの内容が、アドレ
スの8026h以降に順に書き込まれる。すなわち、E
EPROM15に格納されていた伝送速度フラグ等の内
容は、CUSTOMIZEコマンドのデータフィールド
の内容に変更される。書き込みが正常に行なわれた場合
には、その旨のメッセージが生成され(S116)、レ
スポンスとしてリーダライタ装置20に送信される(S
117)。レスポンス送信後、ICカード10は、CU
STOMIZEコマンドの処理を終了する。
The first to third bytes of the data field
When all the checks up to the byte are completed and it is confirmed that the contents of the data field are proper, then the process of writing the contents of the data field into the EEPROM 15 is executed (S113). Specifically, first, the user-specified identification at address 8025h is "FF
It is rewritten from "h" to "C3h". Next, CUSTO
The contents of the data field of the MIX command are sequentially written after the address 8026h. That is, E
The contents of the transmission speed flag and the like stored in the EPROM 15 are changed to the contents of the data field of the CUSTOMIZE command. When the writing is normally performed, a message to that effect is generated (S116), and is transmitted to the reader / writer device 20 as a response (S).
117). After sending the response, the IC card 10
The processing of the STOMIZE command ends.

【0031】以上説明したように、本実施形態では、C
USTOMIZEコマンドを用いてICカード10の通
信条件を設定・変更することが可能となっている。例え
ば、伝送速度は、9600bps又は19200bps
(CLK=3.5712供給時)のいずれか一方に自由
に設定することが可能である。つまり、本実施形態で
は、従来、出荷時に一義的に設定されていた伝送速度
を、ICカードが発行された後に、ユーザー側で使用す
るリーダライタ装置20の速度に対応させて、設定する
ことが可能となっている。
As described above, in this embodiment, C
It is possible to set / change the communication conditions of the IC card 10 by using the USTOMIZE command. For example, the transmission rate is 9600 bps or 19200 bps
It is possible to freely set either one (when CLK = 3.5712 is supplied). In other words, in the present embodiment, the transmission speed, which was conventionally uniquely set at the time of shipping, can be set corresponding to the speed of the reader / writer device 20 used on the user side after the IC card is issued. It is possible.

【0032】また、本実施形態では、ストップビットの
長さもCUSTOMIZEコマンドを用いて設定・変更
することが可能である。ストップビットは、1バイトの
データを送るときに、データが送り終わったことを示す
ビットである。ストップビットが短い場合には、リーダ
ライタ装置20の処理能力によっては、RAM14にデ
ータを格納するのに時間がかかり、データを取り込みき
れないことがある。この実施形態では、上記のような場
合に、ストップビットを長くして、問題を解消すること
ができる。また、処理速度をあげるために、ストップビ
ットを短くすることも可能である。
Further, in this embodiment, the length of the stop bit can also be set / changed by using the CUSTOMIZE command. The stop bit is a bit indicating that the data has been sent when sending 1-byte data. When the stop bit is short, it may take time to store the data in the RAM 14 depending on the processing capability of the reader / writer device 20, and the data may not be captured. In this embodiment, in the above case, the stop bit can be lengthened to solve the problem. In addition, the stop bit can be shortened to increase the processing speed.

【0033】さらに、本実施形態では、初期応答ファイ
ルの内容を変えることができる。初期応答ファイルの内
容は、ICカードシステムにより異なる場合が多い。こ
のために、使用されるコマンドの内容が同一である2つ
のシステムが存在しても、それぞれのシステムにおいて
規定されている初期応答ファイルの内容が異なる場合に
は、一つのICカードをその双方のシステムにおいて使
用できないこととなる。これに対し、本実施形態では、
予めCUSTOMIZEコマンドを用いてEEPROM
15に格納されているインターフェイスキャラクタ等の
内容を変更することにより、上記問題を解決し、一つの
ICカードを複数のシステムにおいて使用可能とするこ
とができる。
Further, in this embodiment, the contents of the initial response file can be changed. The contents of the initial response file often differ depending on the IC card system. For this reason, even if there are two systems in which the contents of the commands used are the same, if the contents of the initial response file specified in each system are different, one IC card is used for both. It cannot be used in the system. In contrast, in the present embodiment,
EEPROM using CUSTOMIZE command in advance
By changing the contents of the interface characters and the like stored in 15, it is possible to solve the above problem and make one IC card usable in a plurality of systems.

【0034】(その他の実施形態)なお、本発明は、上
記実施形態に限定されるものではない。上記実施形態
は、例示であり、本発明の特許請求の範囲に記載された
技術的思想と実質的に同一な構成を有し、同様な作用効
果を奏するものは、いかなるものであっても本発明の技
術的範囲に包含される。
(Other Embodiments) The present invention is not limited to the above embodiment. The above embodiment is an exemplification, and has substantially the same configuration as the technical idea described in the scope of the claims of the present invention. It is included in the technical scope of the invention.

【0035】上記実施形態では、CUSTOMIZEコ
マンドにより、EEPROM15に格納されているイン
ターフェイスキャラクタを設定・変更することとしてい
るが、これは、ICカード10がEEPROM15に格
納されている伝送速度、ストップビットの設定値を参照
して、自動的にインターフェイスキャラクタを設定・変
更することとしてもよい。インターフェイスキャラクタ
を構成するデータの内容は、ISO規格により定められ
ている。ISO規格によれば、ストップビットが「1」
である場合には、インターフェイスキャラクタのTC1
(図参照)は「FF」、ストップビットが「2」である
場合には「00」に設定される。また、クロック周波数
3.5712MHzにおいて、伝送速度が9600bp
sである場合には、TA1は「11」に、19200b
psの場合には「12」に設定される。したがって、R
OM13に必要とされるISO規格の所定データを予め
格納し、EEPROM15において、伝達速度又はスト
ップビットに関する情報が変更等された場合に、CPU
12がROM13に格納されているデータを参照して、
必要に応じてEEPROM15に格納されているインタ
ーフェイスキャラクタを書き換えることであってもよ
い。
In the above-described embodiment, the interface character stored in the EEPROM 15 is set / changed by the CUSTOMIZE command. This means that the IC card 10 sets the transmission speed and the stop bit stored in the EEPROM 15. The interface character may be automatically set / changed by referring to the value. The content of the data forming the interface character is defined by the ISO standard. According to the ISO standard, the stop bit is "1"
, The interface character TC1
(Refer to the figure) is set to "FF" and "00" when the stop bit is "2". At a clock frequency of 3.5712 MHz, the transmission rate is 9600 bp.
If it is s, TA1 is set to “11” and 19200b
In the case of ps, it is set to "12". Therefore, R
Predetermined data of the ISO standard required in the OM 13 is stored in advance, and when the information about the transmission speed or the stop bit is changed in the EEPROM 15, the CPU
12 refers to the data stored in the ROM 13,
The interface character stored in the EEPROM 15 may be rewritten if necessary.

【0036】また、上記実施形態では、EEPROM1
5に伝送速度フラグ、ストップビットフラグを格納する
こととしているが、これは、9600、19200(b
ps)等の伝送速度の値や、1ビット、2ビット等のス
トップビット長の値を直接EEPROM15に格納・変
更することとしてもよい。
In the above embodiment, the EEPROM 1
5, the transmission speed flag and the stop bit flag are stored, but these are 9600 and 19200 (b
The value of the transmission speed such as ps) or the value of the stop bit length such as 1 bit or 2 bits may be directly stored / changed in the EEPROM 15.

【0037】[0037]

【発明の効果】以上詳しく説明したように、本発明によ
れば、ICカードが発行された後に、ユーザー側で使用
するリーダライタ装置の仕様等に対応させて、ICカー
ドの通信条件を設定することが可能となっている。
As described above in detail, according to the present invention, after the IC card is issued, the communication condition of the IC card is set in accordance with the specifications of the reader / writer device used by the user. It is possible.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係るICカード及びリーダライタ装置
を示すブロック図である。
FIG. 1 is a block diagram showing an IC card and a reader / writer device according to the present invention.

【図2】ROM13、EEPROM15に割り付けられ
ているアドレスの一例を示す図である。
FIG. 2 is a diagram showing an example of addresses assigned to a ROM 13 and an EEPROM 15.

【図3】初期応答ファイルの項目とその内容を示した図
である。
FIG. 3 is a diagram showing items and contents of an initial response file.

【図4】CUSTOMIZEコマンドのAPDUを示す
図である。
FIG. 4 is a diagram showing an APDU of a CUSTOMIZE command.

【図5】CUSTOMIZEコマンドを処理するときの
ICカードの動作を示す流れ図である。
FIG. 5 is a flowchart showing the operation of the IC card when processing a CUSTOMIZE command.

【符号の説明】[Explanation of symbols]

11 I/Oインタフェース 12 CPU 13 ROM 14 RAM 15 EEPROM 20 取引端末装置 11 I / O Interface 12 CPU 13 ROM 14 RAM 15 EEPROM 20 Transaction Terminal Device

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 伝送条件、伝送データ、動作特性をカス
タマイズすることができることを特徴とするICカー
ド。
1. An IC card characterized in that transmission conditions, transmission data, and operation characteristics can be customized.
【請求項2】 通信条件に関する条件情報を格納した記
憶手段を有し、 前記条件情報に従い外部機器と通信を行うICカードに
おいて、 前記記憶手段は、書き換え可能な記憶手段であり、 前記条件情報の内容は、外部からのコマンドにより変更
可能であることを特徴とするICカード。
2. An IC card having storage means for storing condition information relating to communication conditions, wherein the storage means is a rewritable storage means, and the storage means stores rewritable storage information of the condition information. An IC card whose contents can be changed by an external command.
【請求項3】 請求項1又は請求項2に記載のICカー
ドにおいて、 前記伝送条件又は前記条件情報は、伝送速度に関する情
報であることを特徴とするICカード。
3. The IC card according to claim 1, wherein the transmission condition or the condition information is information regarding a transmission speed.
【請求項4】 請求項1又は請求項2に記載のICカー
ドにおいて、 前記伝送条件又は前記条件情報は、ストップビットに関
する情報であることを特徴とするICカード。
4. The IC card according to claim 1, wherein the transmission condition or the condition information is information about a stop bit.
【請求項5】 請求項1又は請求項2に記載のICカー
ドにおいて、 前記伝送データ又は前記条件情報は、初期応答ファイル
の内容の一部又は全部に関する初期応答情報であること
を特徴とするICカード。
5. The IC card according to claim 1, wherein the transmission data or the condition information is initial response information relating to a part or all of the contents of the initial response file. card.
【請求項6】 請求項1又は請求項2に記載のICカー
ドにおいて、 前記動作特性又は前記条件情報は、コマンド受信待ち状
態において、低消費電力動作を行うか否かに関する情報
であることを特徴とするICカード。
6. The IC card according to claim 1, wherein the operation characteristic or the condition information is information regarding whether to perform a low power consumption operation in a command reception waiting state. IC card.
【請求項7】 請求項3及び請求項4の一方又は双方に
記載のICカードにおいて、 前記伝送速度に関する情報及び前記ストップビットに関
する情報の一方又は双方と、前記初期応答情報との関係
に関する情報を記憶する参照情報記憶手段と、 前記外部からのコマンドにより、前記伝送速度に関する
情報又は前記ストップビットに関する情報の一方又は双
方の内容が変更された場合に、前記参照情報記憶手段に
記憶されている情報に基づき前記初期応答情報の内容を
変更する変更手段とを有することを特徴とするICカー
ド。
7. The IC card according to claim 3 or 4, wherein information relating to a relationship between one or both of the information regarding the transmission rate and the information regarding the stop bit and the initial response information is provided. Information stored in the reference information storage means when the content of one or both of the information regarding the transmission rate or the information regarding the stop bit is changed by a reference information storage means for storing and a command from the outside. And a changing unit for changing the content of the initial response information based on the above.
JP28645596A 1995-12-22 1996-10-29 IC card Expired - Lifetime JP3718564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28645596A JP3718564B2 (en) 1995-12-22 1996-10-29 IC card

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP33550995 1995-12-22
JP7-335509 1995-12-22
JP28645596A JP3718564B2 (en) 1995-12-22 1996-10-29 IC card

Publications (2)

Publication Number Publication Date
JPH09231331A true JPH09231331A (en) 1997-09-05
JP3718564B2 JP3718564B2 (en) 2005-11-24

Family

ID=26556324

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28645596A Expired - Lifetime JP3718564B2 (en) 1995-12-22 1996-10-29 IC card

Country Status (1)

Country Link
JP (1) JP3718564B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006501555A (en) * 2002-10-04 2006-01-12 オベルトゥル カード システムズ ソシエテ アノニム Micro circuit card whose performance can be changed after customization
JP2006506709A (en) * 2002-11-13 2006-02-23 サンディスク コーポレイション General purpose non-volatile memory card used with various different standard cards with memory controller
JP2008004021A (en) * 2006-06-26 2008-01-10 Dainippon Printing Co Ltd IC card with mode change function and IC card program
JP2012198676A (en) * 2011-03-18 2012-10-18 Toshiba Corp Portable electronic device, processor for portable electronic device, and processing system for portable electronic device
JP2014071528A (en) * 2012-09-27 2014-04-21 Dainippon Printing Co Ltd Communication system, ic card, processing program for ic card and communication method
WO2021124846A1 (en) * 2019-12-20 2021-06-24 株式会社 東芝 Ic card and control program for ic card
JP2025126486A (en) * 2024-02-19 2025-08-29 多摩川精機株式会社 Encoder and measurement system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006501555A (en) * 2002-10-04 2006-01-12 オベルトゥル カード システムズ ソシエテ アノニム Micro circuit card whose performance can be changed after customization
JP2006506709A (en) * 2002-11-13 2006-02-23 サンディスク コーポレイション General purpose non-volatile memory card used with various different standard cards with memory controller
JP2008004021A (en) * 2006-06-26 2008-01-10 Dainippon Printing Co Ltd IC card with mode change function and IC card program
JP2012198676A (en) * 2011-03-18 2012-10-18 Toshiba Corp Portable electronic device, processor for portable electronic device, and processing system for portable electronic device
JP2014071528A (en) * 2012-09-27 2014-04-21 Dainippon Printing Co Ltd Communication system, ic card, processing program for ic card and communication method
WO2021124846A1 (en) * 2019-12-20 2021-06-24 株式会社 東芝 Ic card and control program for ic card
JP2021099632A (en) * 2019-12-20 2021-07-01 株式会社東芝 Ic card and control program for ic card
US11868836B2 (en) 2019-12-20 2024-01-09 Kabushiki Kaisha Toshiba IC card and control program for IC card
JP2025126486A (en) * 2024-02-19 2025-08-29 多摩川精機株式会社 Encoder and measurement system

Also Published As

Publication number Publication date
JP3718564B2 (en) 2005-11-24

Similar Documents

Publication Publication Date Title
US6199120B1 (en) IC card reading/writing apparatus and method for allowing use of multiple vendors
EP0643857A1 (en) Reading data from a smart card
US8931705B2 (en) IC card, mobile electronic device and data processing method in IC card
US20050185463A1 (en) Nonvolatile memory and data processing system
JPH06302180A (en) Data access system for electronic device
JP3480746B2 (en) Portable electronic devices
EP2278501B1 (en) Smartcard for portable electronic device
WO2015037187A1 (en) Communication device and communication system
JP3718564B2 (en) IC card
EP0950982B1 (en) Portable electronic apparatus
EP2367115B9 (en) Portable electronic apparatus and method of controlling a portable electronic apparatus
US6669099B2 (en) Memory card
CN101401113B (en) Ic chip of supporting large size memory and method thereof
CN102112992A (en) Communication device, communication method, and program
US20070075149A1 (en) Portable electronic device and IC card
US20040000593A1 (en) Portable electronic medium issuing system and issuing method and portable electronic medium
JP4590201B2 (en) Data carrier and data carrier program
JP7005934B2 (en) Electronic information storage medium, IC card, data transmission method, data writing method, data transmission program and data writing program
JP5991119B2 (en) COMMUNICATION SYSTEM, IC CARD, IC CARD PROCESSING PROGRAM, EXTERNAL DEVICE, AND COMMUNICATION METHOD
JPH09231113A (en) IC card
JP6984328B2 (en) Electronic information storage medium, IC card, external device, data writing method and data writing program
JP3641693B2 (en) IC card and method of using the same
JP7582527B1 (en) Electronic information storage medium, IC chip, record processing method, and program
JP7468757B1 (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, RESPONSE TRANSMISSION METHOD, AND PROGRAM
US20040238646A1 (en) Management of byte transmission in a smartcard

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050513

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050729

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050905

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090909

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100909

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110909

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110909

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120909

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120909

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130909

Year of fee payment: 8

EXPY Cancellation because of completion of term