[go: up one dir, main page]

JP3077911B2 - Portable electronic devices - Google Patents

Portable electronic devices

Info

Publication number
JP3077911B2
JP3077911B2 JP03090172A JP9017291A JP3077911B2 JP 3077911 B2 JP3077911 B2 JP 3077911B2 JP 03090172 A JP03090172 A JP 03090172A JP 9017291 A JP9017291 A JP 9017291A JP 3077911 B2 JP3077911 B2 JP 3077911B2
Authority
JP
Japan
Prior art keywords
protocol
data
communication
external device
card
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
JP03090172A
Other languages
Japanese (ja)
Other versions
JPH04321191A (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
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP03090172A priority Critical patent/JP3077911B2/en
Publication of JPH04321191A publication Critical patent/JPH04321191A/en
Application granted granted Critical
Publication of JP3077911B2 publication Critical patent/JP3077911B2/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 ROM 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 ROM, and an electrical contact with an external device. A contact for exchanging data and the like is provided, and a protocol for performing data communication with an external device is provided in the ROM.

【0003】ところで、近年ではこのICカードは多種
多様な使用方法が提案され、そのために様々な場所で様
々な外部装置とデータのやり取りをする必要性が生じて
きた。ところが、従来のICカードはデータ通信のため
のプロトコルを一つしか有していなかったために、該プ
ロトコル(もしくは、該プロトコルに対応したプロトコ
ル)を有した外部装置に対してのみしか正確なデータ通
信を行い得なかった。
In recent years, various methods of using the IC card have been proposed, and for that purpose, it has been necessary to exchange data with various external devices in various places. However, since the conventional IC card has only one protocol for data communication, accurate data communication can be performed only for an external device having the protocol (or a protocol corresponding to the protocol). Could not be performed.

【0004】[0004]

【発明が解決しようとする課題】上述したように、従来
の携帯可能電子装置はデータ通信を行うためのプロトコ
ルを一つしか有していなかったため、限られた外部装置
としかデータのやり取りを行うことができなかった。
As described above, since the conventional portable electronic device has only one protocol for performing data communication, it exchanges data with only a limited number of external devices. I couldn't do that.

【0005】そこで本発明は、複数のデータ通信プロト
コルを有し、外部装置に合わせてその都度データ通信プ
ロトコルを選択することによって、異なった種類の通信
プロトコルを有した外部装置に対しても正確にデータの
通信が行うことのできる携帯可能電子装置を提供するこ
とを目的とする。 [発明の構成]
Therefore, the present invention has a plurality of data communication protocols, and by selecting a data communication protocol in each case according to the external device, it is possible to accurately perform the communication even for an external device having a different type of communication protocol. It is an object of the present invention to provide a portable electronic device capable of performing data communication. [Configuration of the Invention]

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本願発明の携帯可能電子装置は、複数種の通信プロト
コルに対応した複数のプログラムを記憶する第1の記憶
手段と、外部装置との通信の開始時に前記複数種の通信
プロトコルのうちの1つを外部装置との通信に使用する
初期プロトコルとしてその識別情報を記憶する第2の記
憶手段と、この第2の記憶手段に記憶されている識別情
報に対応した1つの通信プロトコルのプログラムを使用
して外部装置との通信を行う通信手段と、前記第1の記
憶手段に記憶されている複数のプログラムに対応しIC
カードがサポートしているプロトコルの種別情報を外部
装置に出力する出力手段と、前記外部装置からプロトコ
ル指定のデータを受信した場合、前記第の記憶手段に
記憶されている識別情報を前記外部装置からの受信デー
タにより指定されたプロトコルの識別情報に変更するこ
とで、前記通信手段によって使用される通信プロトコル
を変更するプロトコル変更手段とを有してなることを特
徴とする。
In order to achieve the above object, a portable electronic device according to the present invention comprises a first storage means for storing a plurality of programs corresponding to a plurality of types of communication protocols, and an external device. A second storage means for storing one of the plurality of types of communication protocols as an initial protocol used for communication with an external device at the start of the communication, the identification information being stored in the second storage means; Communication means for performing communication with an external device using a program of one communication protocol corresponding to identification information, and an IC corresponding to a plurality of programs stored in the first storage means.
An output unit that outputs type information of a protocol supported by the card to an external device; and, when receiving protocol-designated data from the external device, the identification information stored in the second storage unit is output to the external device. And a protocol changing unit for changing the communication protocol used by the communication unit by changing the identification information of the protocol specified by the data received from the communication unit.

【0007】[0007]

【作用】外部装置との間でデータ通信を行う場合、携帯
可能電子装置が有している複数の通信プロトコルの中か
ら、該外部装置に対応した所定の通信プロトコルを該外
部装置からの指定によって選択し、該選択された通信プ
ロトコルを使用してデータ通信を行うことができる。こ
れにより、異なったデータ通信プロトコルを有した外部
装置に対しても常に正確なデータ通信を行うことができ
る。
When data communication is performed with an external device, a predetermined communication protocol corresponding to the external device is designated from the plurality of communication protocols of the portable electronic device by designating the external device. Selected, and data communication can be performed using the selected communication protocol. Thus, accurate data communication can be always performed even with an external device having a different data communication protocol.

【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 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】また、通信プロトコルの切り替えが外部装
置により可能であるため、例えば異なる通信プロトコル
を有する複数の端末と接続し、これらから交互にデータ
が通信された場合においても、それぞれと対応する通信
プロトコルに適宜切り替えることによって正確なデータ
通信が可能である。
Further, 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 exchanged. 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 given to the plurality of communication protocols in advance, and the highest-priority communication protocol is selected at the same time as the start. 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]

【発明の効果】以上説明したように本発明の携帯可能電
子装置は、あらかじめ複数のデータ通信プロトコルを有
しておりデータ通信を行う際に使用する通信プロトコル
をその都度変更することができる。これによって、異な
った種類の通信プロトコルを有した外部装置に対しても
正確にデータの通信が行うことができる。
As described above, the portable electronic device of the present invention has a plurality of data communication protocols in advance, and can change the communication protocol used for performing data communication each time. As a result, data can be accurately communicated to 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の記憶手段と、 外部装置との通信の開始時に前記複数種の通信プロトコ
ルのうちの1つを外部装置との通信に使用する初期プロ
トコルとしてその識別情報を記憶する第2の記憶手段
と、 この第2の記憶手段に記憶されている識別情報に対応し
た1つの通信プロトコルのプログラムを使用して外部装
置との通信を行う通信手段と、 前記第1の記憶手段に記憶されている複数のプログラム
に対応しICカードがサポートしているプロトコルの種
別情報を外部装置に出力する出力手段と、 前記外部装置からプロトコル指定のデータを受信した場
合、前記第の記憶手段に記憶されている識別情報を前
記外部装置からの受信データにより指定されたプロトコ
ルの識別情報に変更することで、前記通信手段によって
使用される通信プロトコルを変更するプロトコル変更手
段とを有してなることを特徴とする携帯可能電子装置。
A first storage unit for storing a plurality of programs corresponding to a plurality of types of communication protocols; and, when starting communication with the external device, one of the plurality of types of communication protocols is communicated with the external device. A second storage means for storing the identification information as an initial protocol used for communication, and an external device using one communication protocol program corresponding to the identification information stored in the second storage means. Communication means for performing communication; output means for outputting, to an external device, type information of a protocol corresponding to a plurality of programs stored in the first storage means and supported by the IC card; when receiving the specified data, identification of the designated protocol identification information stored in said second storage means by the data received from the external device By changing the information, portable electronic device characterized by comprising and a protocol changing means for changing the communication protocol used by said communication means.
JP03090172A 1991-04-22 1991-04-22 Portable electronic devices Expired - Lifetime JP3077911B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPH04321191A JPH04321191A (en) 1992-11-11
JP3077911B2 true JP3077911B2 (en) 2000-08-21

Family

ID=13991074

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP3077911B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597146A (en) * 2019-10-08 2019-12-20 六安市三鑫电器设备有限公司 Integrated electric control cabinet and control method thereof

Families Citing this family (3)

* 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
JP2002304605A (en) * 2001-04-03 2002-10-18 Dainippon Printing Co Ltd Ic card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597146A (en) * 2019-10-08 2019-12-20 六安市三鑫电器设备有限公司 Integrated electric control cabinet and control method thereof

Also Published As

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

Similar Documents

Publication Publication Date Title
JP2930257B2 (en) Portable electronic devices
JP3522882B2 (en) Protocol switching method
JPH06276249A (en) Transmission control system
JP3028815B2 (en) Transmission method of portable electronic device and portable electronic device
JP3480746B2 (en) Portable electronic devices
EP0617369A1 (en) I/O memory card and I/O memory card control method
JP3077911B2 (en) Portable electronic devices
JP2930259B2 (en) Portable electronic devices
JP2930258B2 (en) Portable electronic devices
JP4090350B2 (en) IC card
JP2579170B2 (en) Memory card
EP1146421A2 (en) Control method and electronic device to enhance the functionality of a main processor
KR100605804B1 (en) Apparatus and method for changing the display font of a portable terminal
JP2845839B2 (en) Radio selective call receiver
JP7501808B2 (en) IC chip
JP3667364B2 (en) IC card
JP2587046B2 (en) Electronic equipment
JP2024173086A (en) ELECTRONIC INFORMATION STORAGE MEDIUM, IC CHIP, IC CARD, COMMUNICATION PARAMETER TRANSMISSION METHOD, AND PROGRAM
KR100564759B1 (en) How to Change Response to Reset Signal on Smart Card Systems
JP2005525615A (en) Managing byte transmission in smart cards
JPH0282849A (en) Interface with variable communication method
JPH1069529A (en) Ic card
JPS5942875B2 (en) Pattern data transfer output method
JPH0693252B2 (en) Portable electronic device initialization device
JPH0357014A (en) Storage device

Legal Events

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

Free format text: PAYMENT UNTIL: 20090616

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090616

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110616

Year of fee payment: 11

EXPY Cancellation because of completion of term