JPH07121674A - Ic card and information processor using the card - Google Patents

Ic card and information processor using the card

Info

Publication number
JPH07121674A
JPH07121674A JP5267140A JP26714093A JPH07121674A JP H07121674 A JPH07121674 A JP H07121674A JP 5267140 A JP5267140 A JP 5267140A JP 26714093 A JP26714093 A JP 26714093A JP H07121674 A JPH07121674 A JP H07121674A
Authority
JP
Japan
Prior art keywords
data
compression
decompression
processing
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.)
Granted
Application number
JP5267140A
Other languages
Japanese (ja)
Other versions
JP3096380B2 (en
Inventor
Yoshiharu Enomoto
好晴 榎本
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP05267140A priority Critical patent/JP3096380B2/en
Publication of JPH07121674A publication Critical patent/JPH07121674A/en
Application granted granted Critical
Publication of JP3096380B2 publication Critical patent/JP3096380B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Credit Cards Or The Like (AREA)

Abstract

PURPOSE:To provide an IC card which can perform the compression or extension processing in response to data and also can increase the data input/output processing speed. CONSTITUTION:The data received via an external interface part 13 are supplied to an MPU 11 together with the attribute information which is used for compression/restoration of the data. The MPU 11 applies the prescribed compression processing to the data based on the supplied attribute information and then stores these supplied data and attribute information in a prescribed area of a memory 12. In a reproduction mode, the data and the attribute information are sent to the MPU 11 from the memory 12. Thus the MPU 11 performs the prescribed restoration processing based on the attribute information and then outputs the data via the part 13.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データの伸張または圧
縮を行なうICカードおよびそのICカードを用いた情
報処理装置に関し、特に、圧縮または伸張処理に関する
圧縮または伸張処理用データを用いて圧縮または伸張処
理を行なうICカードおよびそのICカードを用いた情
報処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an IC card for decompressing or compressing data and an information processing apparatus using the IC card, and more particularly, to compressing or decompressing data for compression or decompression processing. The present invention relates to an IC card that performs decompression processing and an information processing device that uses the IC card.

【0002】[0002]

【従来の技術】近年、情報処理装置に用いられる外部記
憶装置であるフロッピィディスクドライブ、光磁気ディ
スクドライブ、カセットレコーダ等や、半導体メモリで
あるRAM(Randam Access Memory)、ROM(Read O
nly Memory)等は、技術進歩により、小型化または大容
量化が実現されている。この結果、クレジット、キャッ
シング等の金融取引カード、または、身分証明、医療、
福祉、住民等の個人情報カードは、磁気カードからIC
カードへ変化しつつある。ICカードは、内部にメモリ
およびマイクロプロセッサ等が搭載されており、種々の
情報処理が可能となっている。また、ICカードに含ま
れるメモリの記憶容量が比較的大きくなり、使用される
アプリケーションに応じて、必要なデータがそのままI
Cカード内のメモリに記憶されている。
2. Description of the Related Art In recent years, floppy disk drives, magneto-optical disk drives, cassette recorders, etc., which are external storage devices used in information processing apparatuses, and RAM (Randam Access Memory), ROM (Read O
nly Memory) and the like have been downsized or increased in capacity due to technological progress. As a result, financial transaction cards such as credit and cashing, or identification, medical care,
Personal information cards for welfare, residents, etc. can be read from the magnetic card to the IC
It is changing to a card. The IC card has a memory, a microprocessor and the like mounted therein and is capable of various information processing. In addition, the memory capacity of the memory included in the IC card becomes relatively large, so that the necessary data can be kept unchanged depending on the application used.
It is stored in the memory in the C card.

【0003】一方、記憶されるデータの増加に伴い、記
憶するデータをデータ圧縮処理して、記憶容量を低減す
るICカードが開発されている。
On the other hand, with the increase in the amount of stored data, IC cards have been developed which reduce the storage capacity by compressing the data to be stored.

【0004】たとえば、特開平1−219981号公報
では、ICカード内にメモリおよびCPU(中央演算処
理装置)以外に外部から入力されたデータに対してデー
タの圧縮を行なうデータ圧縮手段と、圧縮されて記憶さ
れているデータに対してデータの伸長を行なうデータ伸
長手段とを有するデータ圧縮・伸長回路を含むICカー
ドが開示されている。
For example, in Japanese Unexamined Patent Publication No. 1-219981, data compression means for compressing data input from the outside in addition to a memory and a CPU (central processing unit) in an IC card, and a compression means. There is disclosed an IC card including a data compression / decompression circuit having data decompression means for decompressing stored data.

【0005】また、特開平2−183388号公報で
は、ICカード内にメモリとマイクロコンピュータが搭
載されており、外部から入力されたデータを圧縮してメ
モリ内へ書込む書込機能とメモリ内の圧縮されたデータ
を復元して外部へ出力する読出機能を行なうマイクロコ
ンピュータを含むICカードが開示されている。以下、
上記のような従来のICカードについて図面を参照しな
がら説明する。図14は、従来のICカードの構成を示
すブロック図である。
Further, in Japanese Patent Laid-Open No. 2-183388, a memory and a microcomputer are mounted in an IC card, and a writing function for compressing data input from the outside and writing it in the memory and a memory function in the memory. An IC card including a microcomputer that performs a reading function of restoring compressed data and outputting it to the outside is disclosed. Less than,
The conventional IC card as described above will be described with reference to the drawings. FIG. 14 is a block diagram showing the configuration of a conventional IC card.

【0006】図14において、ICカード100は、C
PU101、メモリ102、外部インタフェース部10
3、圧縮/変換部104を含む。
In FIG. 14, the IC card 100 has a C
PU 101, memory 102, external interface unit 10
3, including a compression / conversion unit 104.

【0007】次に、上記の従来のICカードの圧縮処理
および復元処理について説明する。図15は、従来のI
Cカードの圧縮処理を説明するフローチャートである。
Next, the compression processing and decompression processing of the above-mentioned conventional IC card will be described. FIG. 15 shows a conventional I
It is a flow chart explaining compression processing of a C card.

【0008】まず、ステップS71において、外部処理
装置からデータが入力される。外部処理装置から出力さ
れるデータは、外部インタフェース部103を介してC
PU101へ入力される。CPU101は、圧縮/変換
部104へ入力したデータを出力する。
First, in step S71, data is input from the external processing device. The data output from the external processing device is C via the external interface unit 103.
It is input to the PU 101. The CPU 101 outputs the input data to the compression / conversion unit 104.

【0009】次に、ステップS72において、データの
圧縮処理を行なう。圧縮/復元部104は、入力された
データに予め決められた圧縮方法により圧縮処理を施
し、メモリ102へ出力する。
Next, in step S72, data compression processing is performed. The compression / decompression unit 104 performs compression processing on the input data according to a predetermined compression method, and outputs the data to the memory 102.

【0010】次に、ステップS73において、メモリ1
02への圧縮データの書込処理を行なう。圧縮/変換部
104で圧縮されたデータは、メモリ102の所定のア
ドレスに記録される。
Next, in step S73, the memory 1
The writing processing of the compressed data to 02 is performed. The data compressed by the compression / conversion unit 104 is recorded at a predetermined address in the memory 102.

【0011】図16は、従来のICカードの復元処理を
説明するフローチャートである。まず、ステップS81
において、メモリ102から記憶されているデータを読
出す。CPU101により指定された所定のアドレスに
格納されるデータがメモリ102から圧縮/変換部10
4へ出力される。
FIG. 16 is a flow chart for explaining a conventional IC card restoration process. First, step S81
At, the stored data is read from memory 102. The data stored at the predetermined address designated by the CPU 101 is transferred from the memory 102 to the compression / conversion unit 10.
4 is output.

【0012】次に、ステップS82において、データの
復元処理を行なう。メモリ102から出力されたデータ
は、圧縮/復元部104により予め定められた所定の復
元方法により元のデータに復元される。
Next, in step S82, data restoration processing is performed. The data output from the memory 102 is restored to the original data by the compression / decompression unit 104 by a predetermined decompression method.

【0013】次に、ステップS83において、外部処理
装置への復元データの出力処理を行なう。圧縮/変換部
104で復元されたデータはCPU101へ出力され
る。CPU101は、入力したデータを外部インタフェ
ース部103を介して外部処理装置へ出力する。
Next, in step S83, a process of outputting the restored data to the external processing device is performed. The data restored by the compression / conversion unit 104 is output to the CPU 101. The CPU 101 outputs the input data to the external processing device via the external interface unit 103.

【0014】以上の処理により、予め定められた圧縮ま
たは復元方法によりデータが圧縮または復元され、メモ
リ102へ記憶されたり、または、メモリ102から外
部処理装置へ出力される。
Through the above processing, the data is compressed or decompressed by a predetermined compression or decompression method and stored in the memory 102 or output from the memory 102 to an external processing device.

【0015】[0015]

【発明が解決しようとする課題】上記の従来のICカー
ドでは、予め定められた圧縮または復元処理によりすべ
てのデータについて圧縮または復元処理を行なっていた
ため、外部から転送されるデータは情報量の多い状態で
そのまま転送されるため、入出力の処理に時間がかかっ
てしまうという問題点があった。また、すべてのデータ
について同一の圧縮または復元処理を行なっているた
め、各データに応じた圧縮または復元処理を行なうこと
ができないという問題点もあった。
In the above-mentioned conventional IC card, all the data is compressed or decompressed by a predetermined compression or decompression process, so that the data transferred from the outside has a large amount of information. Since the data is transferred as it is, there is a problem that the input / output processing takes time. Further, since the same compression or decompression process is performed on all data, there is a problem that the compression or decompression process corresponding to each data cannot be performed.

【0016】本発明は上記課題を解決するためのもので
あって、データに応じた圧縮または伸長処理をおこなう
ことができ、かつ、データの入出力処理を高速化できる
ICカードを提供することを目的とする。
The present invention is to solve the above problems, and provides an IC card capable of performing compression or decompression processing according to data and speeding up data input / output processing. To aim.

【0017】また、本発明の他の目的は、データに応じ
た圧縮または伸長処理をICカードまたは情報処理装置
において行なうことができる情報処理装置を提供するこ
とである。
Another object of the present invention is to provide an information processing apparatus capable of performing compression or expansion processing according to data in an IC card or an information processing apparatus.

【0018】[0018]

【課題を解決するための手段】請求項1記載のICカー
ドは、圧縮処理用データに応じてデータに所定のデータ
圧縮処理を行なう圧縮手段と、圧縮手段により圧縮され
たデータ、または、圧縮されていないデータを記憶する
記憶手段と、記憶手段から読出された圧縮データを伸張
処理用データに応じて所定のデータ伸張処理を行なう伸
張処理手段とを含む。
According to another aspect of the present invention, there is provided an IC card in which compression means for performing predetermined data compression processing on data according to compression processing data, data compressed by the compression means, or compressed data. Storage means for storing data that has not been stored, and decompression processing means for performing predetermined data decompression processing on the compressed data read from the storage means according to the decompression processing data.

【0019】請求項2記載の情報処理装置は、圧縮また
は伸張処理に関する圧縮または伸張処理用データを含む
データを処理するICカードを用いた情報処理装置であ
り、ICカードは、圧縮処理用データに応じてデータに
所定のデータ圧縮処理を行なう第1圧縮手段と、第1圧
縮手段により圧縮されたデータ、または、圧縮されてい
ないデータを記憶する記憶手段と、記憶手段から読出さ
れた圧縮データを伸張処理用データに応じて所定のデー
タ伸張処理を行なう第1伸張処理手段とを含み、情報処
理装置は、圧縮処理用データに応じてデータに所定のデ
ータ圧縮処理を行ない、圧縮データをICカードへ出力
する第2圧縮手段と、伸張処理用データに応じてICカ
ードから出力される圧縮データに所定のデータ伸張処理
を行なう第2伸張手段とを含む。
An information processing apparatus according to a second aspect is an information processing apparatus using an IC card for processing data including compression or decompression processing data relating to compression or decompression processing. A first compression unit that performs a predetermined data compression process on the data, a storage unit that stores the data compressed by the first compression unit or the uncompressed data, and the compressed data read from the storage unit. The information processing apparatus includes a first decompression processing unit that performs a predetermined data decompression process according to the decompression process data, and the information processing device performs a predetermined data compression process on the data according to the compression process data and outputs the compressed data to the IC card. Second decompression means for outputting to the second decompression means for decompressing the compressed data output from the IC card according to the decompression processing data. And a stage.

【0020】[0020]

【作用】請求項1記載のICカードにおいては、圧縮ま
たは伸長処理用データに応じて、所定のデータ圧縮また
は伸長処理を行なうことができるので、ICカード内
で、データに応じた所望のデータ圧縮または伸長処理を
行なうことができる。
In the IC card according to the first aspect, predetermined data compression or decompression processing can be performed in accordance with the compression or decompression processing data. Therefore, desired data compression according to the data is performed in the IC card. Alternatively, extension processing can be performed.

【0021】請求項2記載の情報処理装置においては、
情報処理装置およびICカードともに、圧縮または伸長
処理用データに応じて、所定のデータ圧縮または伸長処
理を行なうことができるので、ICカードまたは情報処
理装置内で、データに応じた所望のデータ圧縮または伸
長処理を行なうことができる。
According to another aspect of the information processing apparatus,
Since both the information processing device and the IC card can perform predetermined data compression or expansion processing in accordance with the compression or expansion data, the IC card or the information processing device can perform desired data compression or expansion according to the data. Decompression processing can be performed.

【0022】[0022]

【実施例】以下、本発明の一実施例のICカードについ
て図面を参照しながら説明する。図1は、本発明の一実
施例のICカードの構成を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An IC card according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an IC card according to an embodiment of the present invention.

【0023】図1において、ICカード1は、MPU
(マイクロプロセッサユニット)11、メモリ12、外
部インタフェース部13を含む。また、MPU11は、
ROM14、CPU15、RAM16を含む。外部イン
タフェース部13は、外部の情報処理装置(図示省略)
と接続され、外部の情報処理装置とのデータとの転送を
行なう。CPU15は、ROM14に予め記憶されてい
るデータを用い所定の処理を行なうとともに、作成した
データ等をRAM16へ一時的に記憶する。また、CP
U15は、以下に述べる圧縮・復元用属性情報に応じた
所定の圧縮・復元処理を行ない、外部インタフェース部
13から入力されたデータをメモリ12の所定のアドレ
スに記憶させる。
In FIG. 1, the IC card 1 is an MPU.
(Microprocessor unit) 11, memory 12, and external interface unit 13 are included. In addition, MPU11,
It includes a ROM 14, a CPU 15, and a RAM 16. The external interface unit 13 is an external information processing device (not shown).
Is connected to and transfers data with an external information processing device. The CPU 15 performs a predetermined process using the data stored in advance in the ROM 14, and temporarily stores the created data and the like in the RAM 16. Also, CP
U15 performs a predetermined compression / decompression process according to the compression / decompression attribute information described below, and stores the data input from the external interface unit 13 in a predetermined address of the memory 12.

【0024】また、メモリ12は、使用される複数のア
プリケーションに応じてメモリ領域が所定に分割されて
いる。ROM14には、複数種類の暗号化用の情報およ
びデータ圧縮・伸長用の属性情報が記憶されている。個
数および方式名は特別なコマンド、たとえば、ATR情
報、カードID情報、各アプリケーション内の属性情報
の取得等のコマンドによって、外部の処理装置が取得で
きるものとする。また、各ROM14内の各アプリケー
ションごとの領域内には、その領域内でのデータの取扱
い方が記述されている属性情報のエリアが設けられてお
り、データ処理時にはその情報に基づいてデータの復元
・圧縮処理を行なうか否か、さらに、圧縮・復元処理を
行なう場合にはどの圧縮・復元方式を用いるかを判断す
る。
In the memory 12, the memory area is divided into predetermined areas according to a plurality of applications used. The ROM 14 stores a plurality of types of encryption information and data compression / decompression attribute information. The number and method name can be acquired by an external processing device by a special command, for example, a command such as acquisition of ATR information, card ID information, attribute information in each application. An area for each application in each ROM 14 is provided with an area for attribute information that describes how to handle the data in the area, and the data is restored based on the information during data processing. It is determined whether or not to perform compression processing, and which compression / restoration method is to be used when performing compression / restoration processing.

【0025】次に、図1に示すROM14のデータの構
成を説明する。図2は、図1に示すROM14のデータ
の構成を示す図である。
Next, the data structure of the ROM 14 shown in FIG. 1 will be described. FIG. 2 is a diagram showing a data structure of the ROM 14 shown in FIG.

【0026】図2に示すように、ROM14の中には、
ICカード処理用プログラム部21、暗号処理関数群部
26、圧縮・復元処理関数群部25、圧縮・復元処理関
数群管理テーブル24、暗号処理関数群管理テーブル2
3、その他および管理テーブル等22が含まれる。圧縮
・復元処理関数群部25には、関数1、2、3、…の複
数の圧縮・復元処理用の関数が含まれる。圧縮・復元処
理関数群管理テーブル24には、各関数の関数ナンバー
241、関数先頭アドレス242が含まれる。その他お
よび管理テーブル等22には、圧縮・復元処理関数群管
理テーブル先頭アドレス223、暗号処理関数群管理テ
ーブル先頭アドレス222、ICカード処理用プログラ
ム部先頭アドレス221が含まれる。上記の圧縮・復元
処理関数群部25内の各関数はICカード処理用プログ
ラム部21のプログラムを実行する場合に必要に応じて
使用される。
As shown in FIG. 2, in the ROM 14,
IC card processing program unit 21, encryption processing function group unit 26, compression / decompression processing function group unit 25, compression / decompression processing function group management table 24, encryption processing function group management table 2
3, other and management table 22 and the like are included. The compression / decompression processing function group unit 25 includes a plurality of functions for compression / decompression processing such as functions 1, 2, 3, .... The compression / decompression function group management table 24 includes a function number 241 and a function start address 242 of each function. The others and the management table 22 include a compression / decompression processing function group management table start address 223, an encryption processing function group management table start address 222, and an IC card processing program section start address 221. Each function in the compression / decompression processing function group section 25 is used as necessary when executing the program of the IC card processing program section 21.

【0027】次に、図1に示すメモリ12のデータの構
成について説明する。図3は、図1に示すメモリ12の
データの構成を示す図である。
Next, the data structure of the memory 12 shown in FIG. 1 will be described. FIG. 3 is a diagram showing a data configuration of the memory 12 shown in FIG.

【0028】図3に示すように、メモリ12内のデータ
は、システム管理領域30、アプリケーション領域に分
けられ、アプリケーション領域は、アプリケーション1
領域31、アプリケーション2領域32、アプリケーシ
ョン3領域33等の複数のアプリケーション領域に分け
られる。各アプリケーション領域には、ファイル管理部
311、データ部312が含まれる。データ管理部31
2は、エリア単位、レコード単位、バイト単位でデータ
が記憶される。
As shown in FIG. 3, the data in the memory 12 is divided into a system management area 30 and an application area, and the application area is the application 1
It is divided into a plurality of application areas such as an area 31, an application 2 area 32, and an application 3 area 33. Each application area includes a file management unit 311 and a data unit 312. Data management unit 31
In 2, data is stored in area units, record units, and byte units.

【0029】上記のデータ構成は、アプリケーションの
内容により異なるものであり、図3に示すデータ構成に
限定されるものではない。各アプリケーションごとのフ
ァイル管理下に、ファイル管理部が含まれ、その下に、
ファイル内エリアを管理する管理情報テーブルが含まれ
る。
The above data structure differs depending on the content of the application, and is not limited to the data structure shown in FIG. A file management section is included under the file management for each application, and below that,
A management information table for managing the area in the file is included.

【0030】図4は、図3に示すファイル管理部の構成
を示す図である。図4に示すように、ファイル管理部
は、ファイル管理テーブル40、ファイル内エリア管理
情報テーブル41が含まれる。ファイル管理テーブル4
0には、ファイル名401、アクセス条件402、属性
・その他ファイル管理情報403が含まれる。ファイル
内エリア管理情報テーブル41には、エリアID41
1、アクセス条件412、属性・その他エリア管理情報
413が含まれる。
FIG. 4 is a diagram showing the structure of the file management unit shown in FIG. As shown in FIG. 4, the file management unit includes a file management table 40 and an in-file area management information table 41. File management table 4
0 includes a file name 401, access condition 402, and attribute / other file management information 403. The area ID 41 is stored in the file area management information table 41.
1, an access condition 412, and attribute / other area management information 413 are included.

【0031】次に、本実施例で使用する圧縮・復元用属
性情報について説明する。本実施例では、データ転送時
に、圧縮・復元用属性情報を同時に転送することによ
り、転送された圧縮・復元用属性情報に応じて所定の圧
縮・復元処理を実行する。図5は、圧縮・復元用属性情
報の構成を示す図である。
Next, the compression / decompression attribute information used in this embodiment will be described. In the present embodiment, the compression / decompression attribute information is transferred at the same time when the data is transferred, so that a predetermined compression / decompression process is executed according to the transferred compression / decompression attribute information. FIG. 5 is a diagram showing the structure of compression / decompression attribute information.

【0032】図5に示すように、圧縮・復元用属性情報
は、第1圧縮・復元用属性51、第2圧縮・復元用属性
52を含む。第1圧縮・復元用属性51は、圧縮フラグ
(Eflag)53、復元フラグ(Dflag)54を
含む。第2圧縮・復元用属性52は、圧縮・復元関数タ
イプ55を含む。
As shown in FIG. 5, the compression / decompression attribute information includes a first compression / decompression attribute 51 and a second compression / decompression attribute 52. The first compression / decompression attribute 51 includes a compression flag (Eflag) 53 and a decompression flag (Dflag) 54. The second compression / decompression attribute 52 includes a compression / decompression function type 55.

【0033】ICカード1に入出力されるデータは、第
1圧縮・復元用属性51に含まれる圧縮フラグ53およ
び復元フラグ54により圧縮または復元処理を実行する
か否かが判断され、各処理で使用する関数は、第2圧縮
・復元用属性52の圧縮・復元関数タイプ55により図
2に示したROM14内の関数群から所定の関数を規定
することで各処理が実行される。表1に、圧縮フラグ5
3および復元フラグ54に応じた圧縮・復元処理のパタ
ーンを示す。
The data input / output to / from the IC card 1 is determined by the compression flag 53 and the decompression flag 54 included in the first compression / decompression attribute 51 as to whether or not the compression or decompression process is executed. As for the function to be used, each processing is executed by defining a predetermined function from the function group in the ROM 14 shown in FIG. 2 by the compression / decompression function type 55 of the second compression / decompression attribute 52. In Table 1, the compression flag 5
3 shows a pattern of compression / decompression processing according to 3 and the decompression flag 54.

【0034】[0034]

【表1】 [Table 1]

【0035】次に、上記のように構成されたICカード
の圧縮または復元処理について説明する。図6は、IC
カードの圧縮処理を説明するフローチャートである。
Next, the compression or decompression process of the IC card configured as described above will be described. Figure 6 shows the IC
It is a flow chart explaining compression processing of a card.

【0036】まず、ステップS1において、外部の情報
処理装置から転送されてきたデータをICカード1の外
部インタフェース部13を介してMPU11が受取る。
First, in step S1, the MPU 11 receives the data transferred from the external information processing apparatus via the external interface unit 13 of the IC card 1.

【0037】次に、ステップS2において、外部の情報
処理装置から出力されるコマンドに応じて、送信された
データが図3に示すどのファイルのどのエリアに書込む
かということを示す指示情報を基に、該当するエリアの
圧縮・復元用属性情報を取得する。
Next, in step S2, in accordance with a command output from an external information processing device, instruction information indicating which area of which file shown in FIG. Then, the compression / decompression attribute information of the corresponding area is acquired.

【0038】次に、ステップS3において、取得した圧
縮・復元用属性情報に含まれる圧縮フラグ(Efla
g)をチェックする。圧縮フラグが1の場合はデータの
圧縮処理を行なうためステップS5へ移行し、その他の
場合は圧縮処理を行なわないためステップS4へ移行す
る。
Next, in step S3, a compression flag (Efla) included in the acquired compression / decompression attribute information.
Check g). If the compression flag is 1, the process moves to step S5 to perform the data compression process, and otherwise the process proceeds to step S4 because the compression process is not performed.

【0039】ステップS3において圧縮フラグが1であ
ると判断された場合は、ステップS5において、データ
の圧縮処理を行なうため使用する関数を規定する。この
処理は、圧縮・復元用属性情報に含まれる圧縮・復元関
数タイプの値に応じて、ROM14に含まれる圧縮・復
元処理関数群部から所定の関数を選択して規定する。
If the compression flag is determined to be 1 in step S3, the function used for performing the data compression process is defined in step S5. This processing is defined by selecting a predetermined function from the compression / decompression function group included in the ROM 14 according to the value of the compression / decompression function type included in the compression / decompression attribute information.

【0040】次に、ステップS6において、規定された
圧縮・復元処理関数を用いて所定のデータ圧縮を行な
う。
Next, in step S6, predetermined data compression is performed using the prescribed compression / decompression processing function.

【0041】次に、ステップS7において、圧縮された
データをメモリ12の所定の位置に記憶する。
Next, in step S7, the compressed data is stored in a predetermined position of the memory 12.

【0042】一方、ステップS3において、圧縮フラグ
が1でないと判断された場合は、ステップS4におい
て、復元フラグDflagをチェックする。復元フラグ
が0の場合はステップS7へ移行し、0でない場合は処
理を終了する。つまり、表1に示すように、圧縮フラグ
が0でかつ復元フラグが0の場合は正常な動作であると
判断して、以降の処理を継続するが、圧縮フラグが0で
かつ復元フラグが1の場合は異常な状態であると判断し
て処理を終了する。このとき、動作が異常であることを
外部の情報処理装置に伝えるため、エラーステータスを
レスポンスとして転送してもよい。
On the other hand, if it is determined in step S3 that the compression flag is not 1, the decompression flag Dflag is checked in step S4. If the restoration flag is 0, the process proceeds to step S7, and if it is not 0, the process ends. That is, as shown in Table 1, when the compression flag is 0 and the decompression flag is 0, it is determined that the operation is normal, and the subsequent processing is continued, but the compression flag is 0 and the decompression flag is 1 In the case of, it is determined that the state is abnormal, and the process ends. At this time, the error status may be transferred as a response in order to notify the external information processing device that the operation is abnormal.

【0043】ステップS4において、復元フラグが0で
あると判断された場合はステップS7において、転送さ
れたデータをそのままメモリ12の所定の位置に記憶す
る。
If it is determined in step S4 that the restoration flag is 0, the transferred data is stored in a predetermined position of the memory 12 as it is in step S7.

【0044】以上の処理により、圧縮・復元用属性情報
に応じた所定の圧縮処理を行なうことが可能となる。
With the above processing, it is possible to perform a predetermined compression processing according to the compression / decompression attribute information.

【0045】次に、ICカードの復元処理について説明
する。図7は、ICカードの復元処理を説明するフロー
チャートである。
Next, the IC card restoration process will be described. FIG. 7 is a flowchart illustrating the IC card restoration process.

【0046】まず、ステップS11において、メモリ1
2から所定のデータを読出しMPU11へ出力する。こ
のとき、どのファイルのどのエリアからデータを読出す
かという指示情報は、MPU11から出力されるコマン
ドにより指定される。
First, in step S11, the memory 1
Predetermined data is read from 2 and output to the MPU 11. At this time, instruction information indicating from which area of which file the data is to be read is designated by a command output from the MPU 11.

【0047】次に、ステップS12において、読出した
ファイル内のエリアの圧縮・復元用属性情報を取得す
る。
Next, in step S12, the compression / decompression attribute information of the area in the read file is acquired.

【0048】次に、ステップS13において、取得した
圧縮・復元用属性情報に含まれる復元フラグ(Dfla
g)をチェックする。復元フラグが1の場合は、データ
の復元処理を実行するため、ステップS14へ移行し、
1以外の場合はデータの復元処理を行なわないようにす
るためステップS17へ移行する。
Next, in step S13, the decompression flag (Dfla) included in the obtained compression / decompression attribute information.
Check g). If the restoration flag is 1, the process proceeds to step S14 to execute the data restoration process.
If it is other than 1, the process proceeds to step S17 so as not to perform the data restoration process.

【0049】次に、ステップS14において、圧縮フラ
グ(Eflag)をチェックする。圧縮フラグが1の場
合はステップS15へ移行し、その他の場合は処理を終
了する。つまり、表1に示すように、復元フラグが1で
かつ圧縮フラグが1の場合は正常な動作であると判断し
て以降の復元処理を実行するが、復元フラグが1でかつ
圧縮フラグが0の場合動作が異常であるので処理を終了
する。処理を終了するとき、外部の情報処理装置に動作
が異常であることを知らせるため、エラーステータスを
レスポンスとして転送してもよい。
Next, in step S14, the compression flag (Eflag) is checked. If the compression flag is 1, the process proceeds to step S15, otherwise the process ends. That is, as shown in Table 1, when the decompression flag is 1 and the compression flag is 1, it is determined that the operation is normal and the subsequent decompression processing is executed, but the decompression flag is 1 and the compression flag is 0. In the case of, since the operation is abnormal, the processing ends. When ending the processing, the error status may be transferred as a response in order to notify the external information processing apparatus that the operation is abnormal.

【0050】次に、ステップS15において、データの
復元処理に使用する関数を規定する。つまり、圧縮・復
元用属性情報に含まれる圧縮・復元関数タイプの値に応
じて、ROM14の圧縮・復元処理関数群部から所定の
関数を選択して規定する。
Next, in step S15, the function used for the data restoration processing is defined. That is, a predetermined function is selected from the compression / decompression function group of the ROM 14 and defined according to the value of the compression / decompression function type included in the compression / decompression attribute information.

【0051】次に、ステップS16において、規定され
た復元処理用の関数を用いてデータの復元を行なう。
Next, in step S16, the data is restored using the defined restoration processing function.

【0052】次に、ステップS17において、MPU1
1は、復元されたデータを外部インタフェース部13を
介して外部の情報処理装置へ転送する。
Next, in step S17, the MPU1
1 transfers the restored data to the external information processing device via the external interface unit 13.

【0053】一方、ステップS13において、復元フラ
グが1でないと判断された場合は、ステップS17にお
いて、メモリ12から読出したデータをそのまま外部イ
ンタフェース部13を介して外部の情報処理装置へ転送
する。
On the other hand, if it is determined in step S13 that the restoration flag is not 1, the data read from the memory 12 is directly transferred to the external information processing device via the external interface unit 13 in step S17.

【0054】以上の処理により圧縮・復元用属性情報に
応じた所定の復元処理が実行される。
By the above processing, a predetermined decompression process according to the compression / decompression attribute information is executed.

【0055】上記の圧縮・復元処理関数としては、可逆
性アルゴリズムのもので、かつ、容量が少なく処理速度
が速いものを用いる。たとえば、ハフマン符号や算術符
号のアルゴリズムを用いた方式が使用される。
As the above compression / decompression processing function, a reversible algorithm having a small capacity and a high processing speed is used. For example, a method using an algorithm of Huffman code or arithmetic code is used.

【0056】次に、図6および図7に示す圧縮・復元処
理用使用関数の規定処理S5、S15について説明す
る。図8は、ICカードの圧縮・復元処理関数群から使
用する関数を選択する処理を説明するフローチャートで
ある。
Next, the defining processes S5 and S15 of the compression / decompression use function shown in FIGS. 6 and 7 will be described. FIG. 8 is a flowchart illustrating a process of selecting a function to be used from the IC card compression / decompression function group.

【0057】まず、ステップS21において、図5に示
す第2圧縮・復元用属性52から圧縮・復元関数タイプ
55の値を取得する。
First, in step S21, the value of the compression / decompression function type 55 is acquired from the second compression / decompression attribute 52 shown in FIG.

【0058】次に、ステップS22において、取得した
圧縮・復元関数タイプの値を、図2に示す圧縮・復元処
理関数群管理テーブル24のオフセット値、つまり、関
数ナンバー241として、関数ナンバー241に対応す
る関数先頭アドレス242を取得する。
Next, in step S22, the obtained compression / decompression function type value corresponds to the function number 241 as the offset value of the compression / decompression processing function group management table 24 shown in FIG. 2, that is, the function number 241. The function start address 242 is obtained.

【0059】次に、ステップS23において、取得した
関数先頭アドレス242により今回使用する関数を圧縮
・復元処理関数群部25から選択して確定する。
Next, in step S23, the function to be used this time is selected from the compression / decompression function group unit 25 by the acquired function start address 242 and is determined.

【0060】以上の処理により、圧縮・復元用属性情報
に応じた所定の関数を選択することが可能となる。
With the above processing, it is possible to select a predetermined function according to the compression / decompression attribute information.

【0061】以上の各動作により、ICカードが使用す
る各アプリケーションつまりデータに応じて所望のデー
タ圧縮または伸長処理を行なうことができ、記憶容量を
有効に活用することが可能となる。つまり、各アプリケ
ーションに応じて、データをそのまま記憶したり、圧縮
比をデータの重要性に応じて変化させたりすることがで
きる。また、ICカード内には、複数の圧縮・復元方式
を登録することができるので、使用できるアプリケーシ
ョンの数が増大し、広範囲なアプリケーションに適用す
ることが可能となる。
By the above operations, desired data compression or expansion processing can be performed according to each application, that is, data used by the IC card, and the storage capacity can be effectively utilized. That is, the data can be stored as it is or the compression ratio can be changed according to the importance of the data according to each application. Moreover, since a plurality of compression / decompression methods can be registered in the IC card, the number of applications that can be used is increased and it is possible to apply to a wide range of applications.

【0062】また、本ICカードでは、圧縮処理を行な
わずそのままデータを記憶することもできるので、予め
外部の情報処理装置で圧縮されたデータを入出力するこ
とにより、外部の情報処理装置とICカードとのデータ
転送時間も短くすることが可能となる。
Further, in the present IC card, the data can be stored as it is without performing the compression processing. Therefore, by inputting / outputting the data which has been compressed by the external information processing device in advance, the IC can be connected to the external information processing device. The data transfer time with the card can be shortened.

【0063】次に、上記のICカードを用いた情報処理
装置について図面を参照しながら説明する。図9は、本
発明の一実施例の情報処理装置の構成を示すブロック図
である。
Next, an information processing apparatus using the above IC card will be described with reference to the drawings. FIG. 9 is a block diagram showing the configuration of the information processing apparatus according to the embodiment of the present invention.

【0064】図9において、情報処理装置は、ICカー
ド1、リーダ/ライタ2、端末装置3を含む。
In FIG. 9, the information processing device includes an IC card 1, a reader / writer 2, and a terminal device 3.

【0065】ICカード1は、図1に示すICカードと
同様の構成を有する。ICカード1は、リーダライタ2
に装着され、リーダライタ2を介して端末装置3とデー
タの転送等の処理を行なう。リーダ/ライタ2は、端末
装置3内部に組み込まれたものでもよい。端末装置3
は、ICカード1と同様に圧縮・復元用属性情報に基づ
き所定の圧縮または復元処理を実行する。端末装置3に
おける圧縮または復元処理では、ICカード1と同様の
処理を実行するため、ICカード1から圧縮または復元
処理に使用する関数タイプ等を取得してその関数を用い
る。
The IC card 1 has the same structure as the IC card shown in FIG. IC card 1 is reader / writer 2
Mounted on the terminal 3 and performs processing such as data transfer with the terminal device 3 via the reader / writer 2. The reader / writer 2 may be built in the terminal device 3. Terminal device 3
Performs a predetermined compression or decompression process based on the compression / decompression attribute information similarly to the IC card 1. In the compression or decompression processing in the terminal device 3, since the same processing as that of the IC card 1 is executed, the function type or the like used in the compression or decompression processing is acquired from the IC card 1 and the function is used.

【0066】次に、端末装置3に予め記憶されているア
プリケーションプログラムの構成について説明する。図
10は、図9に示す端末装置のアプリケーションプログ
ラムの構成を示す図である。図10に示すように、アプ
リケーションプログラムは、メニュープログラム60、
第1業務アプリケーションプログラム611、第2業務
アプリケーションプログラム612、第3業務アプリケ
ーションプログラム613、暗号処理関数群部67、圧
縮・復元処理関数群部66、圧縮・復元処理関数群管理
テーブル65、暗号処理関数群管理テーブル64、プロ
グラム管理テーブル63、管理テーブルおよびその他6
2を含む。管理テーブルおよびその他62は、圧縮・復
元処理関数群管理テーブル先頭アドレス624、暗号処
理関数群管理テーブル先頭アドレス623、プログラム
管理テーブル先頭アドレス622、メニュープログラム
先頭アドレス621を含む。圧縮・復元処理関数群管理
テーブル65は、関数ナンバー651、関数先頭アドレ
ス652を含む。圧縮・復元処理関数群部66は、圧縮
または復元処理に使用する複数の関数1、2、3、…等
を含む。第1、第2、および第3業務アプリケーション
プログラム611、612、613は、それぞれ、圧縮
・復元用属性情報69を含む。圧縮・復元用属性情報6
9は、圧縮または復元処理が必要であるか否かの判断を
行なうための判断情報691を含む。判断情報691
は、圧縮フラグ(TDflag)693、圧縮フラグ
(TEflag)694を含む。
Next, the structure of the application program previously stored in the terminal device 3 will be described. FIG. 10 is a diagram showing a configuration of an application program of the terminal device shown in FIG. As shown in FIG. 10, the application program is a menu program 60,
First business application program 611, second business application program 612, third business application program 613, cryptographic processing function group unit 67, compression / decompression processing function group unit 66, compression / decompression processing function group management table 65, cryptographic processing function Group management table 64, program management table 63, management table and others 6
Including 2. The management table and others 62 include a compression / decompression processing function group management table start address 624, an encryption processing function group management table start address 623, a program management table start address 622, and a menu program start address 621. The compression / decompression function group management table 65 includes a function number 651 and a function start address 652. The compression / decompression processing function group unit 66 includes a plurality of functions 1, 2, 3, ... Used for compression or decompression processing. The first, second, and third business application programs 611, 612, and 613 each include compression / decompression attribute information 69. Compression / decompression attribute information 6
9 includes determination information 691 for determining whether compression or decompression processing is necessary. Judgment information 691
Includes a compression flag (TDflag) 693 and a compression flag (TEflag) 694.

【0067】次に、上記のように構成された情報処理装
置の圧縮または復元処理について説明する。図11は、
情報処理装置の圧縮処理を説明するフローチャートであ
る。
Next, the compression or decompression process of the information processing apparatus configured as described above will be described. FIG. 11 shows
It is a flow chart explaining compression processing of an information processor.

【0068】まず、ステップS31において、端末装置
3での圧縮・復元処理が必要か否かの判断を行なう。そ
の判断情報は、処理したい業務アプリケーションによっ
て異なる場合があり、図10に示すように、各業務アプ
リケーション自身が所有している。端末装置3は、図1
0に示す判断情報691を用いて上記のチェックを行な
う。
First, in step S31, it is determined whether or not compression / decompression processing is required in the terminal device 3. The determination information may differ depending on the business application to be processed, and is owned by each business application itself as shown in FIG. The terminal device 3 is shown in FIG.
The above check is performed using the judgment information 691 shown in 0.

【0069】次に、ステップS32において、圧縮フラ
グ(TEfalg)が1であるか否かをチェックする。
圧縮フラグが1である場合、圧縮処理が必要であるため
ステップS34へ移行し、その他の場合は圧縮処理が不
要であるためステップS33へ移行する。
Next, in step S32, it is checked whether the compression flag (TEfalg) is 1.
When the compression flag is 1, the compression process is necessary, and thus the process proceeds to step S34. In other cases, the compression process is not necessary, and the process proceeds to step S33.

【0070】次に、ステップS34において、端末装置
3は、現在の業務アプリケーションが端末装置3側での
圧縮処理が必要と判断したため、ICカード1から今回
データを書込むための目的のファイル内エリアの圧縮・
復元用属性情報を読出す。つまり、端末装置3が圧縮・
復元用属性情報をリクエストすると、ICカード1側で
は、ステップS41において、指定されたファイル内の
エリアから圧縮・復元用属性情報を取出し出力する。出
力された圧縮・復元用属性情報がレスポンスとして端末
装置3側へ出力される。
Next, in step S34, the terminal device 3 determines that the current business application requires the compression process on the terminal device 3 side, and therefore the target file area for writing the data from the IC card 1 this time. Compression of
Read the attribute information for restoration. That is, the terminal device 3 compresses
Upon requesting the decompression attribute information, the IC card 1 extracts and outputs the compression / decompression attribute information from the area in the designated file in step S41. The output compression / decompression attribute information is output to the terminal device 3 side as a response.

【0071】次に、ステップS35において、取得した
圧縮・復元用属性情報に含まれる圧縮フラグ(Efla
g)をチェックする。圧縮フラグ(Eflag)が1の
場合はステップS37へ移行し、その他の場合はステッ
プS36へ移行する。圧縮フラグ(Eflag)が1で
ある場合データの圧縮処理を行なうため、ステップS3
7において、圧縮処理に使用する関数を規定する。つま
り、ステップS34で取得されたICカード1の圧縮・
復元用属性情報に含まれる圧縮・復元関数タイプの値に
応じて、端末装置3側の業務アプリケーションソフト内
に組み込まれている関数から所定の関数を選択して規定
する。
Next, in step S35, the compression flag (Efla) included in the acquired compression / decompression attribute information.
Check g). If the compression flag (Eflag) is 1, the process proceeds to step S37, and if not, the process proceeds to step S36. If the compression flag (Eflag) is 1, data compression processing is performed, so step S3
7 defines the function used for compression processing. That is, the compression of the IC card 1 acquired in step S34
According to the value of the compression / restoration function type included in the restoration attribute information, a predetermined function is selected from the functions incorporated in the business application software on the terminal device 3 side and defined.

【0072】次に、ステップS38において、規定され
た圧縮処理用の関数を用いてデータの圧縮処理を実行す
る。
Next, in step S38, data compression processing is executed using the specified compression processing function.

【0073】次に、ステップS39において、圧縮され
たデータを書込用データとして端末装置3は、リーダ/
ライタ2を介してICカード1へ出力する。つまり、I
Cカード1側では、端末装置3から出力されたデータを
図6に示す圧縮処理に従ってメモリ12の所定の領域に
データを書込む。
Next, in step S39, the terminal device 3 uses the compressed data as the write data for the reader / writer.
Output to the IC card 1 via the writer 2. That is, I
On the C card 1 side, the data output from the terminal device 3 is written in a predetermined area of the memory 12 according to the compression processing shown in FIG.

【0074】一方、ステップS32において、圧縮フラ
グ(TEflag)が1でないと判断された場合、ステ
ップS33において、復元フラグ(TDflag)をチ
ェックする。復元フラグ(TDflag)が0の場合は
圧縮処理を行なわないため、直接ステップS39へ移行
する。
On the other hand, when it is determined that the compression flag (TEflag) is not 1 in step S32, the restoration flag (TDflag) is checked in step S33. If the decompression flag (TDflag) is 0, compression processing is not performed, and the process directly moves to step S39.

【0075】次に、ステップS39において、圧縮され
ていないデータをそのままICカード1へ出力する。こ
のとき、ICカード1側では、入力したデータをそのま
まメモリ12に記憶させる。また、復元フラグ(TDf
lag)が0以外の場合は動作が異常であると判断して
処理を終了する。このとき、端末装置3のさらに上位に
他の情報処理装置が接続されている場合は、動作が異常
であることを知らせるためにエラーステータスを上位の
情報処理装置へ返してもよい。
Next, in step S39, the uncompressed data is directly output to the IC card 1. At this time, on the IC card 1 side, the input data is stored in the memory 12 as it is. In addition, the restoration flag (TDf
If lag) is other than 0, it is determined that the operation is abnormal, and the process ends. At this time, if another information processing device is connected to a higher level of the terminal device 3, an error status may be returned to the higher level information processing device in order to notify that the operation is abnormal.

【0076】また、ステップS35において、圧縮フラ
グ(Eflag)が1でないと判断された場合は、ステ
ップS36において、ICカード1から出力された圧縮
・復元用属性情報に含まれる復元フラグ(Dflag)
をチェックする。復元フラグ(Dflag)が0の場合
は圧縮処理を行なわないため、ステップS39へ移行す
る。また、復元フラグ(Dflag)が0でない場合
は、動作が異常であるので、ステップS33と同様に処
理を終了する。また、上位に情報処理装置が接続されて
いる場合はエラーステータスを転送してもよい。
If it is determined in step S35 that the compression flag (Eflag) is not 1, the decompression flag (Dflag) included in the compression / decompression attribute information output from the IC card 1 in step S36.
Check. If the decompression flag (Dflag) is 0, the compression process is not performed, and the process proceeds to step S39. If the restoration flag (Dflag) is not 0, the operation is abnormal, and the process is ended in the same manner as step S33. Further, when the information processing device is connected to the host, the error status may be transferred.

【0077】以上の処理により、各業務アプリケーショ
ンプログラムに応じた圧縮処理を実行することが可能と
なる。
With the above processing, it is possible to execute the compression processing according to each business application program.

【0078】図12は、情報処理装置の復元処理を説明
するフローチャートである。ここでは、処理したい業務
アプリケーションプログラムが端末装置3側でのデータ
の圧縮または復元処理の要または不要の判断情報691
を所有しているものとする。
FIG. 12 is a flow chart for explaining the restoration processing of the information processing apparatus. Here, the business application program to be processed determines whether the data compression or decompression process on the terminal device 3 side is necessary or unnecessary 691.
Shall be owned.

【0079】まず、ステップS51において、端末装置
3は、リーダ/ライタ2を介して所定のコマンドをIC
カード1へ出力する。コマンドを受けたICカード1
は、ステップS61において、コマンドに指示されたメ
モリ12の所定のファイルの所定のエリアからデータを
読出し、リーダ/ライタ2を介して端末装置3へ出力す
る。ステップS61での処理は、図7に示したICカー
ドの復元処理に従って実行される。
First, in step S51, the terminal device 3 sends a predetermined command to the IC via the reader / writer 2.
Output to card 1. IC card 1 that received the command
In step S61, reads data from a predetermined area of a predetermined file in the memory 12 designated by the command and outputs the data to the terminal device 3 via the reader / writer 2. The processing in step S61 is executed according to the IC card restoration processing shown in FIG.

【0080】次に、ステップS52において、業務アプ
リケーションに含まれる圧縮または復元処理の要または
不要を示す判断情報691のチェックを端末装置3側で
行なう。
Next, in step S52, the terminal device 3 side checks the judgment information 691 included in the business application, which indicates whether the compression or decompression process is necessary or not.

【0081】つまり、ステップS53において、復元フ
ラグ(TDflag)のチェックを行なう。復元フラグ
(TDflag)が1の場合は復元処理を実行するため
ステップS54へ移行し、その他の場合は処理を終了す
る。
That is, in step S53, the restoration flag (TDflag) is checked. If the restoration flag (TDflag) is 1, the process proceeds to step S54 to execute the restoration process, otherwise the process is terminated.

【0082】次に、ステップS54において、圧縮フラ
グ(TEflag)のチェックを行なう。圧縮フラグ
(TEflag)が1の場合はステップS55へ移行
し、その他の場合は、処理を終了するとともに、上記と
同様に上位の情報処理装置がさらに接続されている場合
はエラーステータスを上位の情報処理装置へ出力する。
Next, in step S54, the compression flag (TEflag) is checked. If the compression flag (TEflag) is 1, the process proceeds to step S55, and in other cases, the process is terminated, and if the upper information processing device is further connected as described above, the error status is set to the upper information. Output to the processing unit.

【0083】次に、ステップS55において、端末装置
3は、ステップS61で出力されたデータの圧縮・復元
用属性情報を読出す。つまり、端末装置3は、リーダ/
ライタ2を介して圧縮・復元用属性情報を出力するよう
にICカード1へ指令する。ICカード1は、ステップ
S62において、指定されたファイル内のエリアの圧縮
・復元用属性情報を取出しリーダ/ライタ2を介して出
力する。
Next, in step S55, the terminal device 3 reads the compression / decompression attribute information of the data output in step S61. That is, the terminal device 3 is
The IC card 1 is instructed to output the compression / decompression attribute information via the writer 2. In step S62, the IC card 1 extracts the compression / decompression attribute information of the area in the designated file and outputs it through the reader / writer 2.

【0084】次に、ステップS56において、出力され
た圧縮・復元用属性情報に含まれる復元フラグ(Dfl
ag)をチェックする。復元フラグ(Dflag)が1
の場合はステップS57へ移行し、その他の場合は処理
を終了する。
Next, in step S56, the decompression flag (Dfl) included in the output compression / decompression attribute information.
Check ag). Restore flag (Dflag) is 1
In the case of, the process proceeds to step S57, and in other cases, the process ends.

【0085】次に、ステップS57において、圧縮フラ
グ(Eflag)をチェックする。圧縮フラグ(Efl
ag)が1の場合はステップS58へ移行し、その他の
場合は、動作が異常であるので、処理を中断するととも
に、上位の情報処理装置が接続されている場合はエラー
ステータスを上位の情報処理装置へ出力する。
Next, in step S57, the compression flag (Eflag) is checked. Compression flag (Efl
If ag) is 1, the process proceeds to step S58. In other cases, the operation is abnormal, so the process is interrupted, and if a higher-level information processing device is connected, the error status is set to higher-level information processing. Output to the device.

【0086】次に、ステップS58において、圧縮・復
元用に使用する関数を規定する。つまり、図5に示す第
2圧縮・復元用属性52に含まれる圧縮・復元関数タイ
プ55の値に従って、図10に示すアプリケーションプ
ログラムに組み込まれている所定の関数を選択して規定
する。
Next, in step S58, the function used for compression / decompression is defined. That is, according to the value of the compression / decompression function type 55 included in the second compression / decompression attribute 52 shown in FIG. 5, a predetermined function incorporated in the application program shown in FIG. 10 is selected and defined.

【0087】次に、ステップS59において、規定され
た復元処理用の関数を用いてデータの復元処理を行な
う。
Next, in step S59, data restoration processing is performed using the prescribed restoration processing function.

【0088】以上の処理により、各アプリケーションに
応じた復元処理を実行することが可能となる。
With the above processing, it is possible to execute the restoration processing according to each application.

【0089】上記の圧縮・復元処理用の関数としては、
端末装置3およびICカード1ともに、可逆性アルゴリ
ズムのもので、かつ容量が少なく処理速度が速いものを
使用する。たとえば、ハフマン符号や算術符号のアルゴ
リズムを用いた方式等が使用される。
The functions for the above compression / decompression processing are as follows:
For the terminal device 3 and the IC card 1, those having a reversible algorithm and having a small capacity and a high processing speed are used. For example, a method using an algorithm such as Huffman code or arithmetic code is used.

【0090】次に、図11および図12に示す圧縮・復
元用に使用する関数の規定処理S37、S58について
説明する。図13は、情報処理装置の圧縮・復元処理関
数群から使用する関数を選択する処理を説明するフロー
チャートである。
Next, the definition processing S37 and S58 of the function used for compression / decompression shown in FIGS. 11 and 12 will be described. FIG. 13 is a flowchart illustrating a process of selecting a function to be used from the compression / decompression process function group of the information processing device.

【0091】まず、ステップS71において、ICカー
ド1から読取った第2圧縮・復元用属性に含まれる圧縮
・復元関数タイプの値を取得する。
First, in step S71, the value of the compression / decompression function type included in the second compression / decompression attribute read from the IC card 1 is acquired.

【0092】次に、ステップS72において、取得した
圧縮・復元用関数タイプの値を、端末装置3のアプリケ
ーションプログラムの圧縮・復元処理関数群管理テーブ
ル65のオフセット値、つまり、関数ナンバー651と
して、使用する関数の関数先頭アドレス652を取得す
る。
Next, in step S72, the obtained value of the compression / decompression function type is used as the offset value of the compression / decompression processing function group management table 65 of the application program of the terminal device 3, that is, the function number 651. The function start address 652 of the function to be executed is acquired.

【0093】次に、ステップS73において、取得した
関数先頭アドレス652により今回使用する関数を確定
する。
Next, in step S73, the function to be used this time is determined by the acquired function start address 652.

【0094】以上の処理により、圧縮・復元処理関数群
66の中から使用する関数を選択することが可能とな
る。
By the above processing, it becomes possible to select the function to be used from the compression / decompression processing function group 66.

【0095】上記の各処理により、ICカードまたは情
報処理装置内で、各アプリケーションプログラムつまり
データに応じた所望のデータ圧縮または伸長処理を行な
うことができ、データに応じて、ICカードの記憶容量
を有効に活用できるとともに、適用できるアプリケーシ
ョンプログラムの範囲を広げることが可能となる。ま
た、端末装置により圧縮したデータを直接ICカードへ
出力することもできるので、転送時間の短縮も可能とな
る。
By the above processes, desired data compression or decompression process corresponding to each application program, that is, data can be performed in the IC card or the information processing apparatus, and the storage capacity of the IC card can be increased according to the data. It can be effectively used and the range of applicable application programs can be expanded. Further, since the data compressed by the terminal device can be directly output to the IC card, the transfer time can be shortened.

【0096】[0096]

【発明の効果】請求項1記載のICカードにおいては、
ICカード内で、データに応じた所望のデータ圧縮また
は伸長処理を行なうことができるので、データに応じて
ICカードの記憶容量を有効に活用できるとともに、使
用されるアプリケーションプログラムの範囲を拡大する
こともできる。また、圧縮されたデータの入出力を行な
うこともできるので、データ転送時間を短縮することも
可能となる。
According to the IC card of claim 1,
Since desired data compression or expansion processing can be performed in the IC card according to the data, the storage capacity of the IC card can be effectively utilized according to the data and the range of application programs used can be expanded. You can also Further, since compressed data can be input / output, the data transfer time can be shortened.

【0097】請求項2記載の情報処理装置においては、
ICカードまたは情報処理装置内において、データに応
じた所望のデータ圧縮または伸長処理を行なうことがで
きるので、データに応じてICカードの記憶容量を有効
に活用できるとともに、使用できるアプリケーションプ
ログラムの範囲を拡大することもできる。またICカー
ドは圧縮されたデータを入出力することができるので、
データ転送時間を短縮することも可能となる。
In the information processing apparatus according to claim 2,
Since the desired data compression or decompression processing according to the data can be performed in the IC card or the information processing device, the storage capacity of the IC card can be effectively used according to the data and the range of usable application programs can be increased. It can be expanded. Since the IC card can input and output compressed data,
It also becomes possible to shorten the data transfer time.

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

【図1】本発明の一実施例のICカードの構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration of an IC card according to an embodiment of the present invention.

【図2】図1に示すROMのデータの構成を示す図であ
る。
FIG. 2 is a diagram showing a data structure of a ROM shown in FIG.

【図3】図1に示すメモリのデータの構成を示す図であ
る。
FIG. 3 is a diagram showing a data configuration of a memory shown in FIG.

【図4】図3に示すファイル管理部の構成を示す図であ
る。
FIG. 4 is a diagram showing a configuration of a file management unit shown in FIG.

【図5】圧縮・復元用属性情報の構成を示す図である。FIG. 5 is a diagram showing a structure of compression / decompression attribute information.

【図6】ICカードの圧縮処理を説明するフローチャー
トである。
FIG. 6 is a flowchart illustrating an IC card compression process.

【図7】ICカードの復元処理を説明するフローチャー
トである。
FIG. 7 is a flowchart illustrating an IC card restoration process.

【図8】ICカードの圧縮・復元処理関数群から使用す
る関数を選択する処理を説明するフローチャートであ
る。
FIG. 8 is a flowchart illustrating a process of selecting a function to be used from a compression / decompression process function group of an IC card.

【図9】本発明の一実施例の情報処理装置の構成を示す
ブロック図である。
FIG. 9 is a block diagram showing a configuration of an information processing apparatus according to an embodiment of the present invention.

【図10】図9に示す端末装置のアプリケーションプロ
グラムの構成を示す図である。
10 is a diagram showing a configuration of an application program of the terminal device shown in FIG.

【図11】情報処理装置の圧縮処理を説明するフローチ
ャートである。
FIG. 11 is a flowchart illustrating a compression process of the information processing device.

【図12】情報処理装置の復元処理を説明するフローチ
ャートである。
FIG. 12 is a flowchart illustrating a restoration process of the information processing device.

【図13】情報処理装置の圧縮・復元処理関数群から使
用する関数を選択する処理を説明するフローチャートで
ある。
FIG. 13 is a flowchart illustrating processing for selecting a function to be used from the compression / decompression processing function group of the information processing apparatus.

【図14】従来のICカードの構成を示すブロック図で
ある。
FIG. 14 is a block diagram showing a configuration of a conventional IC card.

【図15】従来のICカードの圧縮処理を説明するフロ
ーチャートである。
FIG. 15 is a flowchart illustrating a compression process of a conventional IC card.

【図16】従来のICカードの復元処理を説明するフロ
ーチャートである。
FIG. 16 is a flowchart illustrating a conventional IC card restoration process.

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

1 ICカード 2 リーダ/ライタ 3 端末装置 11 MPU 12 メモリ 13 外部インタフェース部 14 ROM 15 CPU 16 RAM 1 IC Card 2 Reader / Writer 3 Terminal Device 11 MPU 12 Memory 13 External Interface Section 14 ROM 15 CPU 16 RAM

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 圧縮または伸張処理に関する圧縮または
伸張処理用データを含むデータを処理するICカードで
あって、 前記圧縮処理用データに応じて前記データに所定のデー
タ圧縮処理を行なう圧縮手段と、 前記圧縮手段により圧縮されたデータ、または、前記デ
ータを記憶する記憶手段と、 前記記憶手段から読出された圧縮データを前記伸張処理
用データに応じて所定のデータ伸張処理を行なう伸張処
理手段とを含むICカード。
1. An IC card for processing data including data for compression or decompression related to compression or decompression processing, comprising: compression means for performing predetermined data compression processing on the data according to the data for compression processing. Data compressed by the compression means, or storage means for storing the data, and decompression processing means for performing predetermined data decompression processing on the compressed data read from the storage means in accordance with the decompression processing data. IC card including.
【請求項2】 圧縮または伸張処理に関する圧縮または
伸張処理用データを含むデータを処理するICカードを
用いた情報処理装置であって、 前記ICカードは、 前記圧縮処理用データに応じて前記データに所定のデー
タ圧縮処理を行なう第1圧縮手段と、 前記第1圧縮手段により圧縮されたデータ、または、前
記データを記憶する記憶手段と、 前記記憶手段から読出された圧縮データを前記伸張処理
用データに応じて所定のデータ伸張処理を行なう第1伸
張処理手段とを含み、 前記情報処理装置は、 前記圧縮処理用データに応じて前記データに所定のデー
タ圧縮処理を行ない、圧縮データを前記ICカードへ出
力する第2圧縮手段と、 前記伸張処理用データに応じて前記ICカードから出力
される圧縮データに所定のデータ伸張処理を行なう第2
伸張手段とを含むICカードを用いた情報処理装置。
2. An information processing apparatus using an IC card for processing data including compression or decompression processing data relating to compression or decompression processing, wherein the IC card stores the data in accordance with the compression processing data. First compression means for performing a predetermined data compression process, data compressed by the first compression means, or storage means for storing the data, and compressed data read from the storage means as the decompression processing data. A first decompression processing unit that performs a predetermined data decompression process according to the data processing device, the information processing device performs a predetermined data compression process on the data according to the compression process data, and compresses the compressed data into the IC card Second compression means for outputting to the compressed data output from the IC card according to the decompression processing data. Nau second
An information processing apparatus using an IC card including a decompression unit.
JP05267140A 1993-10-26 1993-10-26 IC card and information processing apparatus using the IC card Expired - Lifetime JP3096380B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05267140A JP3096380B2 (en) 1993-10-26 1993-10-26 IC card and information processing apparatus using the IC card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05267140A JP3096380B2 (en) 1993-10-26 1993-10-26 IC card and information processing apparatus using the IC card

Publications (2)

Publication Number Publication Date
JPH07121674A true JPH07121674A (en) 1995-05-12
JP3096380B2 JP3096380B2 (en) 2000-10-10

Family

ID=17440641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05267140A Expired - Lifetime JP3096380B2 (en) 1993-10-26 1993-10-26 IC card and information processing apparatus using the IC card

Country Status (1)

Country Link
JP (1) JP3096380B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6712476B1 (en) 1999-03-17 2004-03-30 Seiko Epson Corporation Projection display apparatus and method of display
JP2008217650A (en) * 2007-03-07 2008-09-18 Ricoh Co Ltd Information processor, information processing program and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6712476B1 (en) 1999-03-17 2004-03-30 Seiko Epson Corporation Projection display apparatus and method of display
US6913362B2 (en) 1999-03-17 2005-07-05 Seiko Epson Corporation Projection display apparatus and method of display
JP2008217650A (en) * 2007-03-07 2008-09-18 Ricoh Co Ltd Information processor, information processing program and storage medium
US8171056B2 (en) 2007-03-07 2012-05-01 Ricoh Company, Limited Data processor, data processing method, and computer product

Also Published As

Publication number Publication date
JP3096380B2 (en) 2000-10-10

Similar Documents

Publication Publication Date Title
US6839743B2 (en) Web drive system
JPH07121674A (en) Ic card and information processor using the card
CN100508586C (en) Reproduction apparatus, data processing system, reproduction method, program, and storage medium
US6301622B1 (en) Computer system having identification data and method for transferring identification data to computer
JP2901906B2 (en) Method and apparatus for multiple quality transaction card images
JP2741973B2 (en) Image processing system
JPH04241681A (en) Storage device of compression switching system
JP3051014B2 (en) Data storage device and data system
JP2718129B2 (en) IC card
JP3655475B2 (en) IC card
US6154329A (en) Recording apparatus and method featuring efficient handling of data extension
JPH10105672A (en) Computer and memory integrated circuit with operation function to be used in this computer
JPH07168671A (en) Input/output controller
JP2598056B2 (en) Portable electronic devices
JPH06161842A (en) External storage device and computer using the same
JP2001256442A (en) Method for processing ic card
JP2921296B2 (en) Data compression recording device
JP2710897B2 (en) Data compression filing method
JPH02236754A (en) Information processor
JPH05282104A (en) External storage control device
JPH01263714A (en) Information recording control system
JPH07160430A (en) Automatic input/output management device
JPS61123921A (en) Data compression control system
JPH05108304A (en) Data compression system
JPH04364547A (en) Information storage system of auxiliary storage device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000725

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

Free format text: PAYMENT UNTIL: 20070804

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080804

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20080804

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090804

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090804

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100804

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110804

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110804

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130804

Year of fee payment: 13

EXPY Cancellation because of completion of term