JPS63234378A - Portable electronic device - Google Patents

Portable electronic device

Info

Publication number
JPS63234378A
JPS63234378A JP62068241A JP6824187A JPS63234378A JP S63234378 A JPS63234378 A JP S63234378A JP 62068241 A JP62068241 A JP 62068241A JP 6824187 A JP6824187 A JP 6824187A JP S63234378 A JPS63234378 A JP S63234378A
Authority
JP
Japan
Prior art keywords
program
control
check
card
electronic 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
JP62068241A
Other languages
Japanese (ja)
Other versions
JP2577376B2 (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
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP62068241A priority Critical patent/JP2577376B2/en
Priority to US07/143,654 priority patent/US4939353A/en
Priority to DE3801699A priority patent/DE3801699A1/en
Priority to KR1019880000466A priority patent/KR910007035B1/en
Priority to FR888800717A priority patent/FR2610121B1/en
Publication of JPS63234378A publication Critical patent/JPS63234378A/en
Application granted granted Critical
Publication of JP2577376B2 publication Critical patent/JP2577376B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Credit Cards Or The Like (AREA)

Abstract

PURPOSE:To eliminate problem caused by the breakage of a control program by providing a means to check the propriety of a control program and a means to output the checking result to outside. CONSTITUTION:A control element 11 is started by the control signal received from a card reader/writer 2 and an IC card 1 checks the propriety in the control program up to the end of a program memory 13. If an improper state is judged during said checking action, the element 11 sends immediately the answer data to the reader/writer 2 to show that the program is not proper and holds the program. Then the element 11 carries out a self-diagnosis program when it is judged that all programs are proper. Thus it is possible to eliminate the problem caused by the breakage of the control program and to obtain the IC card having high reliability.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、たとえば不揮発性のデータメモリおよびCP
Uなどの制御素子を有するIC(集積回路)チップを内
蔵した、いわゆるICカードと称される携帯可能電子装
置に関する。
Detailed Description of the Invention [Object of the Invention] (Industrial Application Field) The present invention is applicable to non-volatile data memory and CPU
The present invention relates to a portable electronic device called an IC card, which has a built-in IC (integrated circuit) chip having a control element such as a U.

(従来の技術) 最近、新たな携帯可能なデータ記憶媒体として、不揮発
性のデータメモリおよびCPすなどの制御素子を有する
ICチップを内蔵したICカードが開発されている。こ
の種のICカードは、内蔵する制御素子によって内蔵す
るデータメモリをアクセスし、外部装置からの要求に応
じて必要なデータの入出力を選択的に行なうようになっ
ている。
(Prior Art) Recently, as a new portable data storage medium, an IC card containing a built-in IC chip having a nonvolatile data memory and a control element such as a CPU has been developed. This type of IC card accesses a built-in data memory using a built-in control element, and selectively inputs and outputs necessary data in response to a request from an external device.

そして、上記制御素子は、内蔵する制御プログラムによ
り種々の制御を行なうようになっている。
The control element performs various controls using a built-in control program.

この制御プログラムは、通常、ICカードの製造時にマ
スクROMで構成されるプログラムメモリにマスクパタ
ーンとしてプログラムデータを記憶することにより実現
される。
This control program is usually realized by storing program data as a mask pattern in a program memory constituted by a mask ROM when manufacturing the IC card.

さて、最近のICカードは、その起動直後に自己診断を
行なっている。この自己診断は、制御プログラム内に自
己診断プログラムを入れておき、起動直後に同自己診断
プログラムを実行することで実現していた。しかして、
この自己診断は、ICカードが正常動作できるか否かの
確認で、主に制御素子内のRAMやレジスタなどの動作
確認であり、プログラムデータの正当性チェックはなさ
れていなかった。したがって、たとえばプログラムデー
タのうち、インターフェイス部分のプログラムを構成す
るデータが破損しており、自己診断の結果としては動作
可能であっても、外部装置とのデータの授受が不可能で
あるなどの不具合が生じていた。
Now, recent IC cards perform self-diagnosis immediately after starting up. This self-diagnosis was achieved by including a self-diagnosis program in the control program and executing the self-diagnosis program immediately after startup. However,
This self-diagnosis is to check whether the IC card can operate normally, and mainly checks the operation of the RAM, registers, etc. in the control element, and does not check the validity of the program data. Therefore, for example, if the data that makes up the interface part of the program data is corrupted, and even if the self-diagnosis results indicate that it is operational, it may be impossible to send or receive data to or from an external device. was occurring.

(発明が解決しようとする問題点) 本発明は、上記したように内蔵する制御プログラムが破
損していた場合には不具合が生じるという問題点を解決
すべくなされたもので、内蔵する制御プログラムが破損
していた場合に生じる不具合を除去でき、信頼性の高い
ものが得られる携帯可能電子装置を提供することを目的
とする。
(Problems to be Solved by the Invention) The present invention has been made to solve the above-mentioned problem that problems occur when the built-in control program is damaged. It is an object of the present invention to provide a portable electronic device which can eliminate problems caused by damage and which is highly reliable.

[発明の構成] (問題点を解決するための手段) 本発明は、データメモリ部と、このデータメモリ部に対
してデータの読出しおよび書込みを行なうための制御部
を有し、かつ前記制御部が制御を行なうための制御プロ
グラムを記憶するプログラムメモリ部を有し、選択的に
外部からの入出力を行なう携帯可能電子装置であって、
前記プログラムメモリ部に記憶されている制御プログラ
ムの正当性をチェックするチェック手段と、このチェッ
ク手段のチェック結果を外部へ出力する出力手段とを具
備している。
[Structure of the Invention] (Means for Solving the Problems) The present invention has a data memory section and a control section for reading and writing data to the data memory section, and the control section A portable electronic device that has a program memory section that stores a control program for controlling the device, and that selectively performs input and output from the outside,
The apparatus includes a checking means for checking the validity of the control program stored in the program memory section, and an output means for outputting the check result of the checking means to the outside.

(作用) 内蔵する制御プログラムの正当性をチェックできるため
、前述したような制御プログラムが破損していた場合に
生じる不具合を除去でき、信頼性の高いものが得られる
(Function) Since the validity of the built-in control program can be checked, the above-mentioned problems that occur when the control program is damaged can be eliminated, and a highly reliable product can be obtained.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第6図は本発明に係る携帯可能電子装置としてのICカ
ードを取扱う端末装置の構成例を示すものである。すな
わち、この端末装置は、ICカード1をカードリーダ・
ライタ2を介してCPUなどからなる制御部3と接続可
能にするとともに、IIJ m1部3にキーボード4、
CRTディスプレイ装置5、プリンタ6およびフロッピ
ィディスク装置7を接続して構成される。
FIG. 6 shows an example of the configuration of a terminal device that handles an IC card as a portable electronic device according to the present invention. That is, this terminal device connects the IC card 1 to a card reader.
It is possible to connect to the control section 3 consisting of a CPU etc. via the writer 2, and the IIJ m1 section 3 is equipped with a keyboard 4,
It is constructed by connecting a CRT display device 5, a printer 6, and a floppy disk device 7.

ICカード1は、たとえば第4図に示すように、制御部
としての制御素子(たとえばCPLJ)11、データメ
モリ部としての記憶内容が消去可能な不揮発性のデータ
メモリ12、プログラムメモリ部としてのプログラムメ
モリ13、およびカードリーダ・ライタ2との電気的接
触を得るためのコンタクト部14によって構成されてお
り、これらのうち破線内の部分(制御素子11、データ
メモリ12、プログラムメモリ13)は1つのICチッ
プで構成されてICカード本体内に埋設されている。デ
ータメモリ12は各種データの記憶に使用され、たとえ
ばEEPROMで構成されている。
For example, as shown in FIG. 4, the IC card 1 includes a control element (for example, CPLJ) 11 as a control section, a nonvolatile data memory 12 as a data memory section whose storage contents can be erased, and a program as a program memory section. It is composed of a memory 13 and a contact part 14 for obtaining electrical contact with the card reader/writer 2. Of these, the part within the broken line (control element 11, data memory 12, program memory 13) is one It is composed of an IC chip and is embedded within the IC card body. The data memory 12 is used to store various data, and is composed of, for example, an EEPROM.

プログラムメモリ13は、たとえばマスクROMで構成
されており、第2図に示すように制御素子11の制御プ
ログラム、およびICカード1の起動開始を意味する初
期応答データ(ICカード1の伝送プロトコル仕様情報
などからなる)を記憶している。そして、プログラムメ
モリ13に記憶された制御プログラムは、第3図に示す
ように複数のチェックコード、およびこのチェックコー
ドを基にプログラムデータの正当性をチェックするため
のサブプログラムが存在し、このサブプログラムを実行
すると、プログラムデータを読出し、上記チェックコー
ドにより読出し範囲内でのプログラムデータの正当性を
チェックするようになっている。第3図において、たと
えば範囲Aのチェックコードはa、範囲Bのチェックコ
ードはb1範囲CのチェックコードはCといったように
対応する。ここに、チェックコードは、対応する範囲内
のプログラムデータのチェックサムデータである。
The program memory 13 is composed of, for example, a mask ROM, and as shown in FIG. etc.). As shown in FIG. 3, the control program stored in the program memory 13 includes a plurality of check codes and a subprogram for checking the validity of program data based on the check codes. When a program is executed, the program data is read out, and the validity of the program data within the read range is checked using the check code. In FIG. 3, for example, the check code for range A corresponds to a, the check code for range B corresponds to b1, and the check code for range C corresponds to C. Here, the check code is checksum data of program data within the corresponding range.

カードリーダ・ライタ2は、ICカード1と制御部3と
の間でデータの授受を行なうものである。
The card reader/writer 2 sends and receives data between the IC card 1 and the control section 3.

具体的には、第5図に示すように、図示しないカード挿
入口に挿入されたICカード1を所定の位置まで搬送す
る搬送機構21、所定の位置にセットされたICカード
1のコンタクト部14に電気的に接触されるコンタクト
部22、全゛体の制御を司るCPtJなどからなる制御
部23、制御部23と制御部3との間で命令データや応
答データの授受を行なうための入出力インタフェイス回
路24、およびデータを記憶するデータメモリ25など
から構成されている。
Specifically, as shown in FIG. 5, the transport mechanism 21 transports the IC card 1 inserted into a card insertion slot (not shown) to a predetermined position, and the contact part 14 of the IC card 1 set at the predetermined position. A contact part 22 that is electrically contacted, a control part 23 consisting of a CPtJ, etc. that controls the whole body, and an input/output part for exchanging command data and response data between the control part 23 and the control part 3. It is composed of an interface circuit 24, a data memory 25 for storing data, and the like.

次に、このような構成において第1図に示すフローチャ
ートを参照しつつ動作を説明する。ICカード1は、カ
ードリーダ・ライタ2から電源およびクロックが供給さ
れた後、起動用制御信号であるリセット信号が供給され
ることによりリセットが解除され、制御素子11が起動
される。すると、制御素子11は、制御プログラム内の
サブプログラムを実行することにより、制御プログラム
の正当性をチェックする。すなわち、まず範囲Aのプロ
グラムデータを読出して順次加えてゆき、その結果がチ
ェックコードaと一致するか否かにより正当性を判断す
る。このチェック動作をプログラムメモリ13の最終ま
で、すなわち第3因の例では範囲Cまで行ない、その途
中、正当でないと判断すれば、制御素子11は直ちにプ
ログラムネ当を意味する応答データをカードリーダ・ラ
イタ2に送出し、ホールト状態に入る。
Next, the operation of such a configuration will be explained with reference to the flowchart shown in FIG. After the IC card 1 is supplied with power and a clock from the card reader/writer 2, the IC card 1 is released from reset by being supplied with a reset signal, which is a control signal for activation, and the control element 11 is activated. Then, the control element 11 checks the validity of the control program by executing a subprogram within the control program. That is, first, program data in range A is read out and sequentially added, and validity is determined based on whether the result matches check code a. This checking operation is performed until the end of the program memory 13, that is, up to range C in the example of the third cause, and if it is determined that the program is invalid during the check, the control element 11 immediately sends response data indicating that the program is incorrect to the card reader. It is sent to writer 2 and enters the halt state.

こうして、全てのプログラムが正当であることをチェッ
クし終わると、制御素子11は制御プログラム内の自己
診断プログラムを実行することにより、以降の動作が正
常に遂行できるか否かを自己診断する。この自己診断に
は、たとえば制御素子11内のRAMやレジスタなどが
正常に動作するか否かのチェックなどがある。この自己
診断の結果、正常動作を行なうと判断すると、制御素子
11はプログラムメモリ13内の初期応答データをカー
ドリーダ・ライタ2に送出し、カードリーダ・ライタ2
からの命令データ持ち状態となる。
After checking that all programs are valid in this manner, the control element 11 executes a self-diagnosis program within the control program to self-diagnose whether subsequent operations can be performed normally. This self-diagnosis includes, for example, checking whether the RAM, registers, etc. in the control element 11 operate normally. As a result of this self-diagnosis, if it is determined that normal operation is performed, the control element 11 sends the initial response data in the program memory 13 to the card reader/writer 2.
It will be in a state where it has command data from.

このとき、カードリーダ・ライタ2から命令データが入
力されると、制御素子11はその命令データにしたがっ
て処理を実行し、その処理結果を示す応答データをカー
ドリーダ・ライタ2に送出し、再び命令データ持ち状態
に戻る。一方、上記自己診断の結果、正常動作を行なわ
ないと判断すると、制御素子11は初期応答データを送
出せずにホールト状態に入る。
At this time, when command data is input from the card reader/writer 2, the control element 11 executes processing according to the command data, sends response data indicating the processing result to the card reader/writer 2, and then commands the card reader/writer 2 again. Return to data holding state. On the other hand, if it is determined that normal operation is not performed as a result of the above self-diagnosis, the control element 11 enters a halt state without transmitting initial response data.

このように、起動直後、プログラムメモリ内の制御プロ
グラムの正当性をチェックし、正当でないと判断される
とその旨を示す応答データを外部に出力して動作を停止
し、正当であると判断されると正常動作を遂行できるか
否かの自己診断を行なうものである。したがって、制御
プログラムの正当性をチェックできるため、前述したよ
うな制御プログラムが破損していた場合に生じる不具合
を除去でき、信頼性の高いICカードが得られる。
In this way, immediately after startup, the validity of the control program in the program memory is checked, and if it is determined that it is not valid, response data indicating that is output to the outside and the operation is stopped. Then, a self-diagnosis is performed to determine whether normal operation can be performed. Therefore, since the validity of the control program can be checked, the above-described problems that occur when the control program is damaged can be eliminated, and a highly reliable IC card can be obtained.

なお、前記実施例では、携帯可能電子装置としてICカ
ードを例示したが、本発明はカード状のものに限定され
るものでなく、たとえばブロック状あるいはペンシル状
のものでもよい。また、携帯可能電子装置のハード構成
もその要旨を逸脱しない範囲で種々変形可能である。
In the above embodiment, an IC card is used as an example of a portable electronic device, but the present invention is not limited to a card-shaped device, and may be a block-shaped or pencil-shaped device, for example. Furthermore, the hardware configuration of the portable electronic device can be modified in various ways without departing from the spirit of the invention.

[発明の効果] 以上詳述したように本発明によれば、内蔵する制御プロ
グラムの正当性をチェックできるため、制御プログラム
が破損していた場合に生じる不具合を除去でき、信頼性
の高いも、のが得られる携帯可能電子装置を提供できる
[Effects of the Invention] As detailed above, according to the present invention, since the validity of the built-in control program can be checked, problems that occur when the control program is damaged can be eliminated, and the system is highly reliable. It is possible to provide a portable electronic device that provides the following.

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

図は本発明の一実施例を説明するためのもので、第1図
は動作を説明するフローチャート、第2図はプログラム
メモリ内のフォーマットを示す図、第3図はプログラム
メモリ内の制御プログラムを説明する図、第4図はIC
カードの構成を示すブロック図、第5図はカードリーダ
・ライタの構成を示すブロック図、第6図は端末装置の
構成を示すブロック図である。 1・・・・・・ICカード(携帯可能電子装置)、2・
・・・・・カードリーダ・ライタ、11・・・・・・制
御素子(制御部)、12・・・・・・データメモリ(デ
ータメモリ部)、13・・・・・・プログラムメモリ(
プログラムメモリ部)。 出願人代理人 弁理士 鈴江武彦 第1図 第2図 第3図 第4図
The figures are for explaining one embodiment of the present invention, and FIG. 1 is a flowchart explaining the operation, FIG. 2 is a diagram showing the format in the program memory, and FIG. 3 is a diagram showing the control program in the program memory. Diagram to explain, Figure 4 is IC
FIG. 5 is a block diagram showing the structure of the card, FIG. 5 is a block diagram showing the structure of the card reader/writer, and FIG. 6 is a block diagram showing the structure of the terminal device. 1...IC card (portable electronic device), 2.
... Card reader/writer, 11 ... Control element (control section), 12 ... Data memory (data memory section), 13 ... Program memory (
program memory section). Applicant's representative Patent attorney Takehiko Suzue Figure 1 Figure 2 Figure 3 Figure 4

Claims (4)

【特許請求の範囲】[Claims] (1)データメモリ部と、このデータメモリ部に対して
データの読出しおよび書込みを行なうための制御部を有
し、かつ前記制御部が制御を行なうための制御プログラ
ムを記憶するプログラムメモリ部を有し、選択的に外部
からの入出力を行なう携帯可能電子装置であって; 前記プログラムメモリ部に記憶されている制御プログラ
ムの正当性をチエックするチエック手段と; このチエック手段のチエック結果を外部へ出力する出力
手段と を具備したことを特徴とする携帯可能電子装置。
(1) It has a data memory section, a control section for reading and writing data to the data memory section, and a program memory section that stores a control program for the control section to perform control. A portable electronic device that selectively performs input and output from the outside, comprising: a check means for checking the validity of a control program stored in the program memory section; and a check result of the check means being transmitted to the outside. 1. A portable electronic device comprising an output means for outputting an output.
(2)前記チエック手段によるチエックは前記制御部の
起動直後に行なわれることを特徴とする特許請求の範囲
第1項記載の携帯可能電子装置。
(2) The portable electronic device according to claim 1, wherein the check by the check means is performed immediately after activation of the control section.
(3)前記チエック手段のチエック結果が否定的な場合
に前記制御部の制御動作を停止することを特徴とする特
許請求の範囲第1項記載の携帯可能電子装置。
(3) The portable electronic device according to claim 1, wherein the control operation of the control section is stopped when the check result of the check means is negative.
(4)前記制御プログラム中の少なくとも1箇所にプロ
グラムチェック情報が存在し、前記制御プログラム中の
プログラムチエック用サブプログラムにより、前記プロ
グラムチエック情報を用いて前記チエック手段を実現す
ることを特徴とする特許請求の範囲第1項記載の携帯可
能電子装置。
(4) A patent characterized in that program check information is present in at least one location in the control program, and the check means is realized using the program check information by a program check subprogram in the control program. A portable electronic device according to claim 1.
JP62068241A 1987-01-22 1987-03-23 Portable electronic devices Expired - Lifetime JP2577376B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62068241A JP2577376B2 (en) 1987-03-23 1987-03-23 Portable electronic devices
US07/143,654 US4939353A (en) 1987-01-22 1988-01-13 Processing system for enabling data communication with a self-diagnose device
DE3801699A DE3801699A1 (en) 1987-01-22 1988-01-21 DATA PROCESSING SYSTEM
KR1019880000466A KR910007035B1 (en) 1987-01-22 1988-01-22 A data processing method between the first electronic devie and the second electronic device and a portable device as the second electronic device for the data processing method
FR888800717A FR2610121B1 (en) 1987-01-22 1988-01-22 PROCESSING SYSTEM FOR PROVIDING THE TRANSMISSION OF DATA BETWEEN A PORTABLE INFORMATION MEDIUM AND A DEVICE FOR READING SAME UNDER CONDITIONS OF INCREASED RELIABILITY

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62068241A JP2577376B2 (en) 1987-03-23 1987-03-23 Portable electronic devices

Publications (2)

Publication Number Publication Date
JPS63234378A true JPS63234378A (en) 1988-09-29
JP2577376B2 JP2577376B2 (en) 1997-01-29

Family

ID=13368081

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62068241A Expired - Lifetime JP2577376B2 (en) 1987-01-22 1987-03-23 Portable electronic devices

Country Status (1)

Country Link
JP (1) JP2577376B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03143452A (en) * 1989-10-31 1991-06-19 Toray Ind Inc Shaping of tube
JPH03171386A (en) * 1989-11-30 1991-07-24 Toshiba Corp Portable electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6083159A (en) * 1983-10-13 1985-05-11 Fujitsu Ltd Program check system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6083159A (en) * 1983-10-13 1985-05-11 Fujitsu Ltd Program check system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03143452A (en) * 1989-10-31 1991-06-19 Toray Ind Inc Shaping of tube
JPH03171386A (en) * 1989-11-30 1991-07-24 Toshiba Corp Portable electronic device

Also Published As

Publication number Publication date
JP2577376B2 (en) 1997-01-29

Similar Documents

Publication Publication Date Title
US4939353A (en) Processing system for enabling data communication with a self-diagnose device
JP2856393B2 (en) Portable electronic devices
JP3590338B2 (en) Portable electronic devices
KR910001972B1 (en) Processing system for portable electronic apparatus
JPS63234378A (en) Portable electronic device
JP2651426B2 (en) IC card
JP2635601B2 (en) Portable electronic devices
EP3379424B1 (en) Ic card, portable electronic device, program, processing apparatus, and processing system
JPS63234375A (en) Processing system
JP3251579B2 (en) Portable electronic devices
JP2577370B2 (en) Portable electronic devices
JPS63239574A (en) Portable electronic device
JP2577369B2 (en) IC card
JP2618953B2 (en) Transmission processing method, data storage medium and IC chip
JPH0772891B2 (en) Data transmission method
JP2003162740A (en) Non-contact ic card system
JPH01223586A (en) Ic card testing system
JP3014538B2 (en) IC card
JPS63234376A (en) Processing system
JPH0628533A (en) Ic card and data storage method for ic card
KR930007047B1 (en) Portable electronic apparatus
JP2547795B2 (en) Portable electronic devices
JPH03175596A (en) Portable electronic equipment
JPS62128389A (en) Portable electronic device
JPS6383894A (en) Portable electronic device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071107

Year of fee payment: 11