JP2930258B2 - Portable electronic devices - Google Patents

Portable electronic devices

Info

Publication number
JP2930258B2
JP2930258B2 JP3090174A JP9017491A JP2930258B2 JP 2930258 B2 JP2930258 B2 JP 2930258B2 JP 3090174 A JP3090174 A JP 3090174A JP 9017491 A JP9017491 A JP 9017491A JP 2930258 B2 JP2930258 B2 JP 2930258B2
Authority
JP
Japan
Prior art keywords
protocol
data
communication
external device
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3090174A
Other languages
Japanese (ja)
Other versions
JPH04321189A (en
Inventor
康雄 飯島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=13991126&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP2930258(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP3090174A priority Critical patent/JP2930258B2/en
Publication of JPH04321189A publication Critical patent/JPH04321189A/en
Application granted granted Critical
Publication of JP2930258B2 publication Critical patent/JP2930258B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Credit Cards Or The Like (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

[発明の目的] [Object of the invention]

【0001】[0001]

【産業上の利用分野】本発明は、データを通信するため
のプロトコルを有した例えばICカードのような携帯可
能電子装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a portable electronic device such as an IC card having a protocol for communicating data.

【0002】[0002]

【従来の技術】従来、携帯可能な記憶媒体としてICカ
ードが存在する。このICカードには、制御プログラム
を格納しているマスクROM、各種のデータを格納する
ためのデータメモリ、上記マスクROM中の制御プログ
ラムの内容に基づいて各種制御を行うCPU、外部装置
と電気的に接触しデータ等のやり取りを行うためのコン
タクト等が設けられており、前記マスクROM中には、
外部装置とのデータ通信を行うためのプロトコルが設け
られている。
2. Description of the Related Art Conventionally, there is an IC card as a portable storage medium. The IC card includes a mask ROM for storing a control program, a data memory for storing various data, a CPU for performing various controls based on the contents of the control program in the mask ROM, and an external device and an electrical device. There is provided a contact or the like for making contact with and exchanging data and the like, and in the mask ROM,
A protocol for performing data communication with an external device is provided.

【0003】ところで、前記通信プロトコルはマスクR
OM中に実現されているものである。そのため、ICカ
ードを作成する場合、該ICカードにて使用される通信
プロトコルごとに専用のマスクROMを作成しておかな
ければならず、マスクROMの製造コストが高くついて
しまうという問題点があった。
Incidentally, the communication protocol is a mask R
This is realized in the OM. Therefore, when an IC card is created, a dedicated mask ROM must be created for each communication protocol used in the IC card, and there is a problem that the manufacturing cost of the mask ROM increases. .

【0004】[0004]

【発明が解決しようとする課題】上述したように、従来
の携帯可能電子装置は、使用する通信プロトコルの種類
が異なるごとに異なった種類のマスクROMを有してい
た。
As described above, conventional portable electronic devices have different types of mask ROMs for different types of communication protocols to be used.

【0005】そこで本発明は、1つの携帯可能電子装置
で、異なった種類の通信プロトコルを有した外部装置に
対応することが可能な携帯可能電子装置を提供すること
を目的とする。 [発明の構成]
SUMMARY OF THE INVENTION It is an object of the present invention to provide a portable electronic device that can handle external devices having different types of communication protocols with one portable electronic device. [Configuration of the Invention]

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本発明の携帯可能電子装置は、複数種の通信プロトコ
ルに対応した複数のプログラムを記憶する第1の記憶手
段と、前記複数種の通信プロトコルの優先順位情報を記
憶している第2の記憶手段と、外部装置との通信の開始
時に前記第2の記憶手段の内容に基づき前記複数種の通
信プロトコルのうちの優先順位の高い通信プロトコルを
外部装置との通信に使用する初期プロトコルとしてその
識別情報を記憶する第3の記憶手段と、この第3の記憶
手段に記憶されている識別情報に対応した1つの通信プ
ロトコルのプログラムを使用して外部装置との通信を行
う通信手段前記第1の記憶手段に記憶している複数のプ
ログラムに対応しICカードがサポートしているプロト
コルの種別情報を外部装置に出力する出力手段と、前記
外部装置からプロトコル指定のデータを受信した場合、
前記第3の記憶手段に記憶している識別情報を前記外部
装置からの受信データにより指定されたプロトコルの識
別情報に変更することで、前記通信手段によって使用さ
れる通信プロトコルを変更するプロトコル変更手段とを
有してなることを特徴とする。
In order to achieve the above object, a portable electronic device according to the present invention comprises a plurality of types of communication protocols.
Storage means for storing a plurality of programs corresponding to files
And priority information of the plurality of communication protocols.
Start of communication between the stored second storage means and the external device
Sometimes, the plurality of types of communication are based on the contents of the second storage means.
Communication protocol with the highest priority
The initial protocol used to communicate with external devices
Third storage means for storing identification information; and third storage means
One communication protocol corresponding to the identification information stored in the means.
Uses a protocol program to communicate with external devices.
Communication means a plurality of programs stored in the first storage means.
Prototype supported by IC card corresponding to program
Output means for outputting the type information of the col to an external device;
When receiving protocol specified data from an external device,
The identification information stored in the third storage means is stored in the external storage device.
Knowledge of the protocol specified by the data received from the device
By changing to different information, the information used by the communication
Protocol change means for changing the communication protocol to be used.
It is characterized by having.

【0007】[0007]

【作用】携帯可能電子装置の記憶手段には、複数種の通
信プロトコルがあらかじめ記憶されており、携帯可能電
子装置の使用開始前に有効化手段によって前記複数種の
通信プロトコルの中から1種類の通信プロトコルが有効
化される。そして、通信手段は前記有効化手段によって
有効化された通信プロトコルを用いて外部装置との間で
通信を行なう。
A plurality of communication protocols are previously stored in the storage means of the portable electronic device, and one of the plurality of communication protocols is selected from the plurality of communication protocols by the activating means before the use of the portable electronic device is started. The communication protocol is activated. The communication means communicates with an external device using the communication protocol validated by the validation means.

【0008】[0008]

【実施例】以下、本発明をICカードに適用した一実施
例について、図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to an IC card will be described below in detail with reference to the drawings.

【0009】まず図1を参照して、本実施例のICカー
ド1の内部構成について説明する。ICカード1には、
制御プログラムを格納しているマスクROM2、各種の
データを格納するための、例えばEEPROM等からな
るデータメモリ3、上記マスクROM2中の制御プログ
ラムの内容に基づいて各種制御を行うCPU4、リーダ
ライタ等の外部装置と電気的に接触しデータ等のやり取
りを行うためのコンタクト部5等が設けられている。ま
た、前記マスクROM2中には、通信を行うための2種
類のプロトコルA、Bが設けられている。本実施例のI
Cカード1において外部装置と通信を行う場合、前記マ
スクROM2内にある前記プロトコルAまたはBのプロ
グラムにより、CPU4が制御を行う。また、前記CP
U4中には図示しないRAMが有されている。
First, an internal configuration of an IC card 1 according to this embodiment will be described with reference to FIG. In the IC card 1,
A mask ROM 2 storing a control program, a data memory 3 such as an EEPROM for storing various data, a CPU 4 for performing various controls based on the contents of the control program in the mask ROM 2, a reader / writer, etc. A contact portion 5 and the like for electrically contacting an external device and exchanging data and the like are provided. The mask ROM 2 is provided with two types of protocols A and B for performing communication. I of this embodiment
When the C card 1 communicates with an external device, the CPU 4 performs control according to the protocol A or B program stored in the mask ROM 2. In addition, the CP
A RAM (not shown) is provided in U4.

【0010】次に本実施例のICカード1を用いて外部
装置(リーダライタ)との間でデータ通信を行う場合の
動作について図2乃至図5を参照して説明する。まず最
初にCPU4は、データメモリ3内のアドレス$000
0のデータを読み出し、このデータの上ニブルが0H
否かを判断する(ステップ1)。ここで、アドレス$0
000の上ニブルが0H であれば、CPU4は、このI
Cカード1はプロトコルAもしくはプロトコルBのどち
らか一方の通信プロトコルのみをサポートしているもの
である(以下、ケース1と称する)と判断し、後述する
ステップ2から始まる処理を行う。また、ステップ1に
おいて、データメモリ3内のアドレス$0000のデー
タの上ニブルが0H 以外であれば、CPU4は、このI
Cカード1は、プロトコルA、Bの2種類の通信プロト
コルをサポートしており、外部装置により適宜いずれか
が指定できるものである(以下、ケース2と称する)と
判断し、後述するステップ14から始まる処理を行う。
Next, an operation when data communication is performed with an external device (reader / writer) using the IC card 1 of the present embodiment will be described with reference to FIGS. First, the CPU 4 determines the address $ 000 in the data memory 3.
Reads 0 data, nibble on this data it is determined whether 0 H (step 1). Here, address $ 0
If the upper nibble of 000 is 0 H , CPU 4
It is determined that the C card 1 supports only one of the communication protocols of the protocol A and the protocol B (hereinafter, referred to as case 1), and performs processing starting from step 2 described later. Further, in step 1, if nibble on the data of the address $ 0000 of data memory 3 is other than 0 H, CPU 4, the I
The C card 1 supports two types of communication protocols, protocol A and protocol B. It is determined that one of them can be appropriately designated by an external device (hereinafter, referred to as case 2), and the process proceeds from step 14 described later. Perform the processing that starts.

【0011】まずはじめに、ICカード1がプロトコル
AもしくはBのどちらか一方をサポートしている場合
(ケース1)の処理について、図3を参照して説明す
る。ここで、ICカード1は、外部装置から電源、クロ
ック信号を供給することにより、CPU4が動作を行う
ものである。まず、データの通信を行うに先立ち、外部
装置からCPU4に対してリセット信号が送信される。
このリセット信号を解除すると、ICカード1のCPU
4から外部装置に対して"Anserto Reset"と称される初
期データが出力される。この、"Anser to Reset"には、
ICカード1がサポートする通信プロトコルの種別を規
定するためのデータが含まれており、外部装置はこれを
受けてICカード1との通信プロトコルを確認するもの
である。
First, the processing when the IC card 1 supports either the protocol A or the protocol B (case 1) will be described with reference to FIG. Here, in the IC card 1, the CPU 4 operates by supplying power and a clock signal from an external device. First, a reset signal is transmitted from an external device to the CPU 4 before performing data communication.
When the reset signal is released, the CPU of the IC card 1
4 outputs the initial data called "Anserto Reset" to the external device. This "Anser to Reset"
Data for defining the type of communication protocol supported by the IC card 1 is included, and the external device receives the data and checks the communication protocol with the IC card 1.

【0012】さて、このときICカード1内のCPU4
は、前述した"Anser to Reset"を外部装置に対して送出
する前に、前記データメモリ3内のアドレス$0000
のデータを読み出し、アドレス$0000の上ニブルが
H であることを確認した後(前記ステップ1)、前記
データの下ニブルが0H か否かを判断する(ステップ
2)。このとき、アドレス$0000のデータの下ニブ
ルが0H となっていれば、CPU4は「通信プロトコル
はプロトコルAである」旨を示す"Anser to Reset"を出
力し(ステップ3)、プロトコルAにて外部装置からの
コマンド待ち状態に移る(ステップ4)。そして、何ら
かのコマンド入力がなされる(ステップ5)まで、プロ
トコルAにてコマンド待ち状態を続ける。また、前記ス
テップ2においてアドレス$0000のデータの下ニブ
ルが0H 以外であれば、CPU4は「通信プロトコルは
プロトコルBである」旨を示す"Anser to Reset"を出力
し(ステップ6)、プロトコルBにて外部からのコマン
ド待ち状態に移る(ステップ7)。この場合において
も、何らかのコマンド入力がなされる(ステップ8)ま
で、プロトコルBにてコマンド待ち状態を続ける。
At this time, the CPU 4 in the IC card 1
Before sending the above-mentioned "Anser to Reset" to the external device, the address $ 0000 in the data memory 3
Reads the data, address $ on nibble 0 After confirming that the H (step 1) of 0000, under nibble of the data to determine whether 0 H (Step 2). At this time, if the lower nibble of the data at address $ 0000 is a 0 H, CPU 4 outputs the "communication protocol is protocol A" shows the effect "Anser to Reset" (Step 3), the protocol A To wait for a command from the external device (step 4). Then, until a command is input (step 5), a command A wait state is maintained by the protocol A. Also, if other than the lower nibble 0 H data of the address $ 0000 in step 2, CPU 4 outputs the "communication protocol is a protocol B" shows the effect "Anser to Reset" (Step 6), protocol At B, the process shifts to a command waiting state from the outside (step 7). In this case as well, the command wait state is maintained by the protocol B until some command is input (step 8).

【0013】続いて、外部装置からコマンドを受け付け
ると、まずCPU4はこのコマンドがデータ通信終了コ
マンドであるか否かを確認する(ステップ9)。データ
通信終了コマンドでなかった場合、このコマンドに対応
する処理を行った後(ステップ10)、データメモリ3
内のアドレス$0000の値を再度参照し、データの下
ニブルが0H か否かを確認する(ステップ11)。そし
て、アドレス$0000の下ニブルが0H となっていれ
ば、処理結果をプロトコルAにて外部装置に出力した後
(ステップ12)、前述したステップ3のプロトコルA
でのコマンド待ち状態に戻る。また、ステップ11にお
いて、アドレス$0000の下ニブルが0H 以外であれ
ば、処理結果をプロトコルBにて外部装置に出力した後
(ステップ13)、前述したステップ6のプロトコルB
でのコマンド待ち状態に戻る。前記ステップ9におい
て、受信したコマンドがデータ通信終了コマンドであっ
た場合、CPU4はデータ通信処理を終了する。
Subsequently, when a command is received from an external device, the CPU 4 first checks whether this command is a data communication end command (step 9). If it is not the data communication end command, after processing corresponding to this command is performed (step 10), the data memory 3
The value of address $ 0000 of the inner reference again under nibble of data checks whether 0 H (step 11). Then, if the lower nibble of address $ 0000 is a 0 H, after outputting to the external device a processing result in protocol A (step 12), step 3 described above Protocol A
Return to the command waiting state. Further, in step 11, if it is other than the address $ lower nibble 0 0000 H, after outputting to the external device a processing result in protocol B (step 13), step 6 described above Protocol B
Return to the command waiting state. If the received command is the data communication end command in the step 9, the CPU 4 ends the data communication processing.

【0014】次に、ICカード1が2種類の通信プロト
コルをサポートしており、外部装置によりそのいずれか
が指定できる場合(ケース2)のICカード1のデータ
通信処理について図4を参照して説明する。まず、前述
したようにICカード1は、外部から電源、クロック信
号を供給することにより、CPU4が動作を行う。そし
て、前述したリセット信号が解除された後に、CPU4
はデータメモリ3のアドレス$0000のデータを読み
出し、アドレス$0000のデータの上ニブルが0H
外のものであることを確認した後(ステップ1)、前記
データの下ニブルが0H か否かを確認する(ステップ1
4)。このとき、アドレス$0000のデータの下ニブ
ルが0H であれば、CPU4はプロトコルAを優先順位
第1のプロトコル(以下、第1プロトコルと称する)プ
ロトコルBを優先順位第2のプロトコル(以下、第2プ
ロトコルと称する)とするという内容の"Anser to Rese
t"を外部装置に対して出力し(ステップ15)、CPU
4内のRAMの特定アドレスに00H を格納する(ステ
ップ16)。そして、プロトコルAにて外部装置からの
コマンド待ち状態に移る(ステップ17)。さて、プロ
トコルAにてコマンド待ち状態の時に何等かのデータを
受信すると、CPU4はまず、該データが通信プロトコ
ルを選択するためのPTS(Protocol Type Selection
) 用データであるかどうかを確認する(ステップ1
8)。
Next, the data communication processing of the IC card 1 when the IC card 1 supports two types of communication protocols and either of them can be designated by an external device (case 2) will be described with reference to FIG. explain. First, as described above, the CPU 4 operates by supplying power and a clock signal from the outside to the IC card 1. After the reset signal is released, the CPU 4
It reads the data of the address $ 0000 data memory 3, after confirming that nibble on the data of the address $ 0000 is other than 0 H (step 1), the lower nibble of the data or not 0 H or Confirm (Step 1
4). At this time, if the lower nibble of the data of the address $ 0000 is 0 H , the CPU 4 sets the protocol A to the first priority protocol (hereinafter, referred to as the first protocol) and the protocol B to the second priority protocol (hereinafter, referred to as the first protocol). "Anser to Rese"
t "to the external device (step 15), and the CPU
Specific address of RAM 4 to store the 00 H (step 16). Then, the process shifts to a state of waiting for a command from the external device according to the protocol A (step 17). When any data is received in the command waiting state in the protocol A, the CPU 4 first receives the data as a PTS (Protocol Type Selection) for selecting a communication protocol.
Check if the data is for use (Step 1)
8).

【0015】ここで、受信したデータがPTS用データ
であった場合、続いてこのPTS用データがプロトコル
B指定用のデータであるかどうかを確認し(ステップ1
9)、そうであれば、CPU4内のRAMの特定アドレ
スに01H を格納した後(ステップ22)、後述するス
テップ23におけるプロトコルBによるコマンド待ち状
態に移る。
If the received data is PTS data, it is checked whether the PTS data is data for protocol B designation (step 1).
9), if so, after storing the 01 H to a specific address of the RAM in the CPU 4 (step 22), moves to the command wait state by the protocol B in step 23 to be described later.

【0016】前述したステップ18において、受信した
データがPTS用データでない、もしくは前述したステ
ップ19においてPTS用データがプロトコルB指定用
のPTSデータでない場合は、続いて受信したデータが
コマンドであるか否かを判定し(ステップ20)、受信
したデータがコマンドでなければプロトコルAによるコ
マンド待ち状態に戻る(ステップ17)。
In step 18 described above, if the received data is not PTS data, or if the PTS data is not PTS data for protocol B designation in step 19, it is determined whether the subsequently received data is a command. (Step 20), and if the received data is not a command, the process returns to a command waiting state according to protocol A (step 17).

【0017】前記ステップ14において、アドレス$0
000のデータの下ニブルが0H 以外であれば、CPU
4はプロトコルBを第1プロトコル、プロトコルAを第
2プロトコルとするという内容の"Anser to Reset"を外
部装置に対して出力し(ステップ21)、CPU4内の
RAMの特定アドレスに01H を格納する(ステップ2
2)。そして、プロトコルBにて外部装置からのコマン
ド待ち状態に移る(ステップ23)。さて、プロトコル
Bにてコマンド待ち状態の時に何等かのデータを受信す
ると、CPU4はまず、該データがPTS用データであ
るかどうかを確認する(ステップ24)。ここで、受信
したデータがPTS用データであった場合、続いてこの
PTS用データがプロトコルA指定用のデータであるか
どうかを確認し(ステップ25)、そうであれば、CP
U4内のRAMの特定アドレスに00H を格納した後
(ステップ16)、前述したステップ17におけるプロ
トコルAによるコマンド待ち状態に移る。前述したステ
ップ24において、受信したデータがPTS用データで
ない、もしくは前述したステップ25においてPTS用
データがプロトコルA指定用のPTSデータでない場合
は、続いて受信したデータがコマンドであるか否かを判
定し(ステップ26)、受信したデータがコマンドでな
ければプロトコルBにてコマンド待ち状態に戻る(ステ
ップ23)。
In step 14, the address $ 0
If the 000 under nibble of the data of other than 0 H, CPU
4 outputs the first protocol a protocol B, and "Anser to Reset" stating the protocol A second protocol to an external device (step 21), stores the 01 H to a specific address of the RAM in the CPU4 (Step 2
2). Then, a transition is made to a state of waiting for a command from an external device using protocol B (step 23). When any data is received in the command waiting state by the protocol B, the CPU 4 first checks whether the data is PTS data (step 24). If the received data is PTS data, it is checked whether the PTS data is data for protocol A designation (step 25).
After storing the 00 H to RAM at a specific address in the U4 (Step 16), moves to the command wait state by the protocol A in step 17 described above. If the received data is not PTS data in step 24 described above, or if the PTS data is not PTS data for protocol A designation in step 25 described above, it is determined whether or not subsequently received data is a command. If the received data is not a command (step 26), the process returns to the command waiting state using protocol B (step 23).

【0018】ところで、前述したステップ20及びステ
ップ26において、外部装置から受信したデータがコマ
ンドであるとCPU4が判断すると、いずれの場合にお
いてもCPU4はまず該コマンドがデータ通信終了コマ
ンドであるか否かを確認する(ステップ27)。そし
て、受信したコマンドがデータ通信終了コマンドでなか
った場合、該コマンドの処理を行った後(ステップ2
8)、内蔵するRAMの特定アドレスの内容を確認する
(ステップ29)。そして、RAMの特定アドレスの内
容が00H であればプロトコルAにて前記コマンドの処
理結果を出力し(ステップ30)、先のステップ17の
プロトコルAでのコマンド待ち状態に戻る。また、ステ
ップ29において、前記RAMの特定アドレスの内容が
00H でなければプロトコルBにて前記コマンドの処理
結果を出力し(ステップ31)、先のステップ23のプ
ロトコルBでのコマンド待ち状態に戻る。前記ステップ
27において、受信したコマンドがデータ通信終了コマ
ンドであるとCPU4が判断した場合、データ通信処理
は終了する。
When the CPU 4 determines in step 20 and step 26 that the data received from the external device is a command, in any case, the CPU 4 first determines whether the command is a data communication end command. Is confirmed (step 27). If the received command is not the data communication end command, the command is processed (step 2).
8) Check the contents of the specific address of the built-in RAM (step 29). Then, if the content is 00 H at a specific address of the RAM to output the processing result of the command in protocol A (step 30), the flow returns to the command wait state in protocol A in the previous step 17. Further, in step 29, the contents of the specific address of RAM to output the processing result of the command at 00 H unless protocol B (step 31), the flow returns to the command wait state in protocol B in the previous step 23 . If the CPU 4 determines in step 27 that the received command is the data communication end command, the data communication processing ends.

【0019】前述したように、本実施例のICカード1
を用いて外部装置との間でデータ通信を行う場合、IC
カード1のCPU4は、データメモリ3のアドレス$0
000のデータ内容を初期データとして参照し、このデ
ータに基づいて、データ通信にどのプロトコロルを使用
するかを決定する。そこで、通信プロトコルを変更した
い場合等には、前記初期データを書き換える必要があ
る。この場合の処理について図5を参照して説明する。
初期データの書換を行う場合、まず外部装置からICカ
ード1のCPU4に対して、図6に見られるようなフォ
ーマットの初期データ変更コマンドが送られる。このコ
マンドは初期データの変更を意味する機能コードと、変
更するデータとからなる。ICカード1のCPU4は、
このコマンドを受け取ると、データメモリ3のアドレス
$0000に変更データを書き込んだ後(ステップ
1)、書き込みが正常に行われたかどうかをチェックす
る(ステップ2)。そして、書き込みが正常に行われて
いれば正常終了を意味するレスポンスを作成し(ステッ
プ3)、書き込みが正常に行われていなければ異常終了
を示すレスポンスを作成する(ステップ4)。こうして
作成されたレスポンスは、前述した処理結果出力処理
(ケース1におけるステップ12もしくはステップ1
3、ケース2におけるステップ30もしくはステップ3
1)によって外部装置に対して出力される。たとえば、
このコマンドを用いれば、前述したケース1の場合にお
いても、ICカード1においてサポートされる通信プロ
トコルを外部装置から変更することができる。
As described above, the IC card 1 of the present embodiment
When performing data communication with an external device using the
The CPU 4 of the card 1 reads the address $ 0 of the data memory 3
000 is referred to as initial data, and a protocol to be used for data communication is determined based on the data. Therefore, when it is desired to change the communication protocol, it is necessary to rewrite the initial data. The processing in this case will be described with reference to FIG.
When rewriting the initial data, first, an external device sends an initial data change command in a format as shown in FIG. 6 to the CPU 4 of the IC card 1. This command includes a function code indicating a change in initial data and data to be changed. The CPU 4 of the IC card 1
When this command is received, the changed data is written to the address $ 0000 of the data memory 3 (step 1), and it is checked whether or not the writing has been normally performed (step 2). If the writing has been performed normally, a response indicating a normal end is created (step 3). If the writing has not been performed normally, a response indicating an abnormal end is created (step 4). The response created in this manner is output to the above-described processing result output processing (step 12 or step 1 in case 1).
3. Step 30 or step 3 in case 2
1) is output to an external device. For example,
By using this command, the communication protocol supported by the IC card 1 can be changed from the external device even in the case 1 described above.

【0020】以上説明したように、本実施例のICカー
ド1は、データ通信を行う外部装置に合わせて通信プロ
トコルを切り替えることができるので、異なった種類の
通信プロトコルを有した外部装置に対しても正確にデー
タの通信が行うことができる。これによって、ICカー
ドの汎用性が高められ、ICカードを利用したシステム
の構築が柔軟に行うことができる。
As described above, the IC card 1 of the present embodiment can switch the communication protocol in accordance with the external device that performs data communication, so that the external device having a different type of communication protocol can be used. Also, data communication can be performed accurately. As a result, the versatility of the IC card is enhanced, and a system using the IC card can be flexibly constructed.

【0021】また、通信プロトコルの切り替えが外部装
置により可能であるため、例えば異なる通信プロトコル
を有する複数の端末と接続し、これらから交互にデータ
が通信された場合においても、それぞれと対応する通信
プロトコルに適宜切り替えることによって正確なデータ
通信が可能である。
In addition, since the communication protocol can be switched by an external device, for example, when a plurality of terminals having different communication protocols are connected and data is alternately transmitted from these terminals, the communication protocol corresponding to each of the terminals is connected. By properly switching to the above, accurate data communication is possible.

【0022】またこのように、複数の通信プロトコルを
サポートできるようにした場合、これら複数の通信プロ
トコルにあらかじめ優先順位をつけておき、起動と同時
に優先順位最上位の通信プロトコルが選択されるように
することもできる。これによって、例えば、使用頻度の
最も高い通信プロトコルを優先順位最上位に設定してお
けば、起動と同時に使用頻度の最も高い通信プロトコル
でデータ通信を行えるようにすることができる。
When a plurality of communication protocols can be supported as described above, priorities are assigned to the plurality of communication protocols in advance, and the highest-priority communication protocol is selected upon activation. You can also. Thus, for example, if the communication protocol with the highest frequency of use is set to the highest priority, data communication can be performed with the communication protocol with the highest frequency of use at the same time as the activation.

【0023】また本実施例のICカードは、複数のプロ
トコルをサポートできるようにするか、単一の通信プロ
トコルしかサポートできないようにするかを設定するこ
とができ、単一の通信プロトコルしかサポートできない
ようにした場合でも、該ICカードがサポートできる通
信プロトコルの種類を変更することができる。これによ
って、例えば、一つの端末に対してしか使用しないよう
なICカードに対しては該端末専用の通信プロトコルの
みサポートするようにしておけばよい。さらにまた、上
記したような各種設定はデータメモリ3内のアドレス$
0000の内容を書き換えるだけで行えるので、きわめ
て簡単である。
The IC card of this embodiment can be set to support a plurality of protocols or only a single communication protocol, and can support only a single communication protocol. Even in this case, the type of communication protocol that can be supported by the IC card can be changed. Thus, for example, for an IC card used only for one terminal, only a communication protocol dedicated to the terminal may be supported. Furthermore, the various settings as described above correspond to the addresses in the data memory 3.
Since it can be performed only by rewriting the contents of 0000, it is extremely simple.

【0024】なお、ICカードが有している通信プロト
コルは2種類に限定されるものではなく、3種類以上の
通信プロトコルを有していてこれらを適宜切り替えて使
用するものであっても良い。
The communication protocol possessed by the IC card is not limited to two types, but may be one having three or more types of communication protocols and switching between them as appropriate.

【0025】[0025]

【発明の効果】以上説明したように本発明の携帯可能電
子装置は、マスクROM中にあらかじめ複数のデータ通
信プロトコルを有し、外部装置に合わせてデータ通信プ
ロトコルを選択して、その選択された通信プロトコルを
使用可能にすることができるので、1つの携帯可能電子
装置で、異なった種類の通信プロトコルを有した外部装
置に対応することが可能である。
As described above, the portable electronic device of the present invention has a plurality of data communication protocols in the mask ROM in advance, selects a data communication protocol according to the external device, and selects the selected data communication protocol. Since communication protocols can be enabled, one portable electronic device can support external devices having different types of communication protocols.

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

【図1】本実施例のICカードの内部構成を示すブロッ
ク図である。
FIG. 1 is a block diagram illustrating an internal configuration of an IC card according to an embodiment.

【図2】本実施例のICカードでデータ通信を行う場合
の処理の流れを説明するためのフローチャート(1)で
ある。
FIG. 2 is a flowchart (1) illustrating a flow of a process when data communication is performed by the IC card according to the embodiment;

【図3】本実施例のICカードでデータ通信を行う場合
の処理の流れを説明するためのフローチャート(2)で
ある。
FIG. 3 is a flowchart (2) for explaining the flow of processing when data communication is performed by the IC card according to the embodiment;

【図4】本実施例のICカードでデータ通信を行う場合
の処理の流れを説明するためのフローチャート(3)で
ある。
FIG. 4 is a flowchart (3) illustrating a flow of a process when data communication is performed by the IC card according to the embodiment;

【図5】本実施例のICカードにおいて初期データの書
換えを行う場合の処理の流れを説明するためのフローチ
ャートである。
FIG. 5 is a flowchart illustrating a flow of processing when initial data is rewritten in the IC card of the present embodiment.

【図6】初期データ変更コマンドのフォーマットを説明
するための図である。
FIG. 6 is a diagram for explaining a format of an initial data change command.

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

1…多機能ICカード 2…マスクROM 3…データメモリ 4…CPU 5…コンタクト部 DESCRIPTION OF SYMBOLS 1 ... Multifunctional IC card 2 ... Mask ROM 3 ... Data memory 4 ... CPU 5 ... Contact part

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数種の通信プロトコルに対応した複数
のプログラムを記憶する第1の記憶手段と、 前記複数種の通信プロトコルの優先順位情報を記憶して
いる第2の記憶手段と、 外部装置との通信の開始時に前記第2の記憶手段の内容
に基づき前記複数種の通信プロトコルのうちの優先順位
の高い通信プロトコルを外部装置との通信に使用する初
期プロトコルとしてその識別情報を記憶する第3の記憶
手段と、 この第3の記憶手段に記憶されている識別情報に対応し
た1つの通信プロトコルのプログラムを使用して外部装
置との通信を行う通信手段前記第1の記憶手段に記憶し
ている複数のプログラムに対応しICカードがサポート
しているプロトコルの種別情報を外部装置に出力する出
力手段と、 前記外部装置からプロトコル指定のデータを受信した場
合、前記第3の記憶手段に記憶している識別情報を前記
外部装置からの受信データにより指定されたプロトコル
の識別情報に変更することで、前記通信手段によって使
用される通信プロトコルを変更するプロトコル変更手段
とを有してなることを特徴とする携帯可能電子装置。
1. A plurality of communication protocols corresponding to a plurality of communication protocols.
First storage means for storing the program of the first type, and storing priority information of the plurality of types of communication protocols.
Contents of the second storage means when the communication with the external device is started.
Priority of the plurality of communication protocols based on
First to use a high communication protocol for communication with external devices
Storage for storing the identification information as the initial protocol
Means corresponding to the identification information stored in the third storage means.
Using a communication protocol program
Communication means for communicating with the storage device;
IC card support for multiple programs
Output protocol type information to the external device.
Input means for receiving protocol-specified data from the external device.
If the identification information stored in the third storage means is
Protocol specified by data received from external device
By changing to the identification information of
Protocol changing means for changing the communication protocol used
And a portable electronic device comprising:
JP3090174A 1991-04-22 1991-04-22 Portable electronic devices Expired - Lifetime JP2930258B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3090174A JP2930258B2 (en) 1991-04-22 1991-04-22 Portable electronic devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3090174A JP2930258B2 (en) 1991-04-22 1991-04-22 Portable electronic devices

Publications (2)

Publication Number Publication Date
JPH04321189A JPH04321189A (en) 1992-11-11
JP2930258B2 true JP2930258B2 (en) 1999-08-03

Family

ID=13991126

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3090174A Expired - Lifetime JP2930258B2 (en) 1991-04-22 1991-04-22 Portable electronic devices

Country Status (1)

Country Link
JP (1) JP2930258B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2686998B1 (en) * 1992-01-30 1994-03-25 Gemplus Card International CHIP CARD WITH MULTIPLE COMMUNICATION PROTOCOLS.
JP3568970B2 (en) * 1993-04-12 2004-09-22 株式会社東芝 IC card issuing device
JP3161910B2 (en) * 1994-07-26 2001-04-25 シャープ株式会社 Communication device
JP2002304605A (en) * 2001-04-03 2002-10-18 Dainippon Printing Co Ltd Ic card
JP5967151B2 (en) 2014-07-24 2016-08-10 コニカミノルタ株式会社 Image processing apparatus, control method for image processing apparatus, and computer program

Also Published As

Publication number Publication date
JPH04321189A (en) 1992-11-11

Similar Documents

Publication Publication Date Title
JP2930257B2 (en) Portable electronic devices
JP3839844B2 (en) Microprocessor system using state machine and startup method thereof
JPH06276249A (en) Transmission control system
JP3480746B2 (en) Portable electronic devices
JPS6192053A (en) Selective calling-dialing device for radio transmission system moving radio station
JP2930258B2 (en) Portable electronic devices
JP2930259B2 (en) Portable electronic devices
JP3077911B2 (en) Portable electronic devices
JP4090350B2 (en) IC card
TW499641B (en) Utilizing internal and external memory
EP1146421A2 (en) Control method and electronic device to enhance the functionality of a main processor
KR100605804B1 (en) A display chracter font tranfering apparatus and method of portable terminal equipment
JP2845839B2 (en) Radio selective call receiver
JP7501808B2 (en) IC chip
JP7424536B1 (en) Electronic information storage medium, IC chip, IC card, communication parameter transmission method, and program
JP3667364B2 (en) IC card
JP7397402B2 (en) Electronic information storage medium, data transmission method, and program
JP2858816B2 (en) Initial setting method of EEPROM
JP3688971B2 (en) Electronic equipment
JP4001652B2 (en) IC card
JP2008003811A (en) Information communication medium and communication condition control method
JP2005301657A (en) Ic card having multiple command tables stored in rewritable memory and executing method for command
JP4549731B2 (en) Multi-application IC card with command code that is commonly used by applications
KR100564759B1 (en) Method for Changing ATR Answer To Reset in Smart Card Systems
JP2024036028A (en) Electronic information storage medium, ic card, issuing process method, and program

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100521

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110521

Year of fee payment: 12

EXPY Cancellation because of completion of term