JPH04321189A - Portable electronic equipment - Google Patents

Portable electronic equipment

Info

Publication number
JPH04321189A
JPH04321189A JP3090174A JP9017491A JPH04321189A JP H04321189 A JPH04321189 A JP H04321189A JP 3090174 A JP3090174 A JP 3090174A JP 9017491 A JP9017491 A JP 9017491A JP H04321189 A JPH04321189 A JP H04321189A
Authority
JP
Japan
Prior art keywords
protocol
data
communication
card
external device
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
JP3090174A
Other languages
Japanese (ja)
Other versions
JP2930258B2 (en
Inventor
Yasuo Iijima
康雄 飯島
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=JPH04321189(A) "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

Abstract

PURPOSE:To deal with an external device which contains plural communication protocols of different types by validating one of these protocols and performing the communication with the external device with use of the validated protocol. CONSTITUTION:Two types of protocols A and B are provided in a mask ROM 2 of an IC card 1 for execution of the communication. When the communication is carried out to an external device (reader/writer), the initial data is outputted to the external device from a CPU 4 of the card 1. The initial data includes the data that prescribes the type of the communication protocol supported by the card 1. The external device receives the initial data and confirms the communication protocol to the card 1. For instance, the CPU 4 outputs the initial data to show a fact that the communication protocol is equal to the protocol A. Thus a command is waited for from the external device by the protocol A.

Description

【発明の詳細な説明】[Detailed description of the invention]

[発明の目的] [Purpose 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, an IC card has been used as a portable storage medium. This IC card has a mask ROM that stores a control program, a data memory that stores various data, a CPU that performs various controls based on the contents of the control program in the mask ROM, and electrical connections with external devices. Contacts and the like are provided for contacting and exchanging data, etc., and in the mask ROM,
A protocol is provided for data communication with external devices.

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

【0004】0004

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

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

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本発明の携帯可能電子装置は、複数種の通信プロトコ
ルを記憶してなる記憶手段と、この記憶手段に記憶され
ている複数種の通信プロトコルの中から所定の通信プロ
トコルを有効化する有効化手段と、この有効化手段によ
って有効化された通信プロトコルを使用して外部装置と
の間で通信を行う通信手段とを有してなることを特徴と
する。
[Means for Solving the Problems] In order to achieve the above object, a portable electronic device of the present invention includes a storage means for storing a plurality of types of communication protocols, and a plurality of types of communication protocols stored in the storage means. It comprises an enabling means for enabling a predetermined communication protocol from among the communication protocols, and a communication means for communicating with an external device using the communication protocol enabled by the enabling means. It is characterized by

【0007】[0007]

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

【0008】[0008]

【実施例】以下、本発明をICカードに適用した一実施
例について、図面を参照して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to an IC card will be described in detail below 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, referring to FIG. 1, the internal structure of the IC card 1 of this embodiment will be explained. IC card 1 has
A mask ROM 2 that stores a control program, a data memory 3 such as an EEPROM for storing various data, a CPU 4 that performs various controls based on the contents of the control program in the mask ROM 2, a reader/writer, etc. A contact section 5 and the like are provided for electrically contacting an external device and exchanging data and the like. Furthermore, the mask ROM 2 is provided with two types of protocols A and B for communication. I of this example
When the C card 1 communicates with an external device, the CPU 4 performs control based on the protocol A or B program stored in the mask ROM 2. In addition, the CP
A RAM (not shown) is included in U4.

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

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

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

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

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

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

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

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

【0018】ところで、前述したステップ20及びステ
ップ26において、外部装置から受信したデータがコマ
ンドであるとCPU4が判断すると、いずれの場合にお
いてもCPU4はまず該コマンドがデータ通信終了コマ
ンドであるか否かを確認する(ステップ27)。そして
、受信したコマンドがデータ通信終了コマンドでなかっ
た場合、該コマンドの処理を行った後(ステップ28)
、内蔵するRAMの特定アドレスの内容を確認する(ス
テップ29)。そして、RAMの特定アドレスの内容が
00H であればプロトコルAにて前記コマンドの処理
結果を出力し(ステップ30)、先のステップ17のプ
ロトコルAでのコマンド待ち状態に戻る。また、ステッ
プ29において、前記RAMの特定アドレスの内容が0
0H でなければプロトコルBにて前記コマンドの処理
結果を出力し(ステップ31)、先のステップ23のプ
ロトコルBでのコマンド待ち状態に戻る。前記ステップ
27において、受信したコマンドがデータ通信終了コマ
ンドであるとCPU4が判断した場合、データ通信処理
は終了する。
By the way, in steps 20 and 26 described above, when the CPU 4 determines that the data received from the external device is a command, in either case, the CPU 4 first determines whether the command is a data communication termination command or not. (Step 27). If the received command is not a data communication end command, after processing the command (step 28)
, confirm the contents of the specific address of the built-in RAM (step 29). If the content of the specific address in the RAM is 00H, the processing result of the command is output using protocol A (step 30), and the process returns to the command waiting state using protocol A in step 17. Further, in step 29, the content of the specific address of the RAM is 0.
If not 0H, the processing result of the command is output using protocol B (step 31), and the process returns to the command waiting state using protocol B in step 23. In step 27, if the CPU 4 determines that the received command is a data communication end command, the data communication process 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もしくはステップ13、ケー
ス2におけるステップ30もしくはステップ31)によ
って外部装置に対して出力される。たとえば、このコマ
ンドを用いれば、前述したケース1の場合においても、
ICカード1においてサポートされる通信プロトコルを
外部装置から変更することができる。
As mentioned above, the IC card 1 of this embodiment
When performing data communication with an external device using an IC,
The CPU 4 of the card 1 uses the address $0 of the data memory 3.
The data content of 000 is referred to as initial data, and based on this data, it is determined which protocol to use for data communication. Therefore, when it is desired to change the communication protocol, it is necessary to rewrite the initial data. Processing in this case will be explained with reference to FIG. When rewriting the initial data, an initial data change command in the format shown in FIG. 6 is first sent from the external device to the CPU 4 of the IC card 1. This command consists of a function code that means changing initial data and data to be changed. The CPU 4 of the IC card 1 is
When this command is received, after writing the changed data to address $0000 of data memory 3 (step 1)
, check if the write was successful (
Step 2). Then, if the writing is performed normally, a response is created that indicates normal completion (step 3).
), and if writing is not performed normally, a response indicating abnormal termination is created (step 4). The response created in this way is output to the external device by the processing result output processing described above (step 12 or step 13 in case 1, step 30 or step 31 in case 2). For example, if you use this command, even in case 1 mentioned above,
The communication protocol supported by the IC card 1 can be changed from an external device.

【0020】以上説明したように、本実施例のICカー
ド1は、データ通信を行う外部装置に合わせて通信プロ
トコルを切り替えることができるので、異なった種類の
通信プロトコルを有した外部装置に対しても正確にデー
タの通信が行うことができる。これによって、ICカー
ドの汎用性が高められ、ICカードを利用したシステム
の構築が柔軟に行うことができる。
As explained above, since the IC card 1 of this embodiment can switch the communication protocol according to the external device that performs data communication, it is compatible with external devices having different types of communication protocols. data can also be communicated accurately. This increases the versatility of the IC card, and allows flexible construction of a system using the IC card.

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

【0022】またこのように、複数の通信プロトコルを
サポートできるようにした場合、これら複数の通信プロ
トコルにあらかじめ優先順位をつけておき、起動と同時
に優先順位最上位の通信プロトコルが選択されるように
することもできる。これによって、例えば、使用頻度の
最も高い通信プロトコルを優先順位最上位に設定してお
けば、起動と同時に使用頻度の最も高い通信プロトコル
でデータ通信を行えるようにすることができる。
[0022] In addition, when multiple communication protocols can be supported in this way, the multiple communication protocols are prioritized in advance so that the communication protocol with the highest priority is selected at the same time as the startup. You can also. As a result, for example, by setting the most frequently used communication protocol as the highest priority, it is possible to perform data communication using the most frequently used communication protocol at the same time as startup.

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

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

【0025】[0025]

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

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

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

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

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

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

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

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

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

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

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  複数種の通信プロトコルを記憶してな
る記憶手段と、この記憶手段に記憶されている複数種の
通信プロトコルの中から所定の通信プロトコルを有効化
する有効化手段と、この有効化手段によって有効化され
た通信プロトコルを使用して外部装置との間で通信を行
う通信手段とを有してなることを特徴とする携帯可能電
子装置。
1. Storage means for storing a plurality of types of communication protocols; enabling means for activating a predetermined communication protocol from among the plurality of types of communication protocols stored in the storage means; 1. A portable electronic device, comprising: communication means for communicating with an external device using a communication protocol validated by the activation means.
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 true JPH04321189A (en) 1992-11-11
JP2930258B2 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5420412A (en) * 1992-01-30 1995-05-30 Gemplus Card International PC-card having several communication protocols
EP0695069A3 (en) * 1994-07-26 1998-08-19 Sharp Kabushiki Kaisha Communication apparatus automatically selecting one of two operation modes
US5959276A (en) * 1993-04-12 1999-09-28 Kabushiki Kaisha Toshiba Issuing customized IC cards of different types
JP2002304605A (en) * 2001-04-03 2002-10-18 Dainippon Printing Co Ltd Ic card
CN105282369A (en) * 2014-07-24 2016-01-27 柯尼卡美能达株式会社 Image processing apparatus, and method of controlling the same

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5420412A (en) * 1992-01-30 1995-05-30 Gemplus Card International PC-card having several communication protocols
US5959276A (en) * 1993-04-12 1999-09-28 Kabushiki Kaisha Toshiba Issuing customized IC cards of different types
EP0695069A3 (en) * 1994-07-26 1998-08-19 Sharp Kabushiki Kaisha Communication apparatus automatically selecting one of two operation modes
JP2002304605A (en) * 2001-04-03 2002-10-18 Dainippon Printing Co Ltd Ic card
CN105282369A (en) * 2014-07-24 2016-01-27 柯尼卡美能达株式会社 Image processing apparatus, and method of controlling the same
EP2978203A1 (en) 2014-07-24 2016-01-27 Konica Minolta, Inc. Image processing apparatus, method of controlling the same and program
US9392134B2 (en) 2014-07-24 2016-07-12 Konica Minolta, Inc. Image processing apparatus, method of controlling the same and non-transitory computer readable recording medium

Also Published As

Publication number Publication date
JP2930258B2 (en) 1999-08-03

Similar Documents

Publication Publication Date Title
JPH04321192A (en) Portable electronic equipment
JP3839844B2 (en) Microprocessor system using state machine and startup method thereof
US5274771A (en) System for configuring an input/output board in a computer
US6237849B1 (en) Remote smartcard terminal link
JPH08227444A (en) Ic card reader writer
US7490194B2 (en) System and method for updating firmware in a non-volatile memory without using a processor
JPS6192053A (en) Selective calling-dialing device for radio transmission system moving radio station
KR20020036717A (en) Microcomputer and method for controlling the same
JPH04321189A (en) Portable electronic equipment
JPH04321193A (en) Portable electronic equipment
JP3077911B2 (en) Portable electronic devices
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
JP5010065B2 (en) Microcomputer
JPH11120077A (en) Use of internal memory and external memory
JP2845839B2 (en) Radio selective call receiver
JP4793798B2 (en) Microcomputer
JPH1185724A (en) Cpu mode switch circuit
JPH09146651A (en) Remote start system for computer
JP7439798B2 (en) Electronic information storage medium, application selection processing method, and program
JPH10283172A (en) Flash rom data rewrite system
JPH0962313A (en) Flexible input and output module and programmable controller
KR100564759B1 (en) Method for Changing ATR Answer To Reset in Smart Card Systems
JPH07193860A (en) Portable terminal equipment having program memory
JP2587046B2 (en) Electronic equipment

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