JP3837407B2 - IC card and control method thereof - Google Patents

IC card and control method thereof Download PDF

Info

Publication number
JP3837407B2
JP3837407B2 JP2003363377A JP2003363377A JP3837407B2 JP 3837407 B2 JP3837407 B2 JP 3837407B2 JP 2003363377 A JP2003363377 A JP 2003363377A JP 2003363377 A JP2003363377 A JP 2003363377A JP 3837407 B2 JP3837407 B2 JP 3837407B2
Authority
JP
Japan
Prior art keywords
functional module
host device
data
command
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003363377A
Other languages
Japanese (ja)
Other versions
JP2005128769A (en
Inventor
善久 稲垣
勇雄 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2003363377A priority Critical patent/JP3837407B2/en
Publication of JP2005128769A publication Critical patent/JP2005128769A/en
Application granted granted Critical
Publication of JP3837407B2 publication Critical patent/JP3837407B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Credit Cards Or The Like (AREA)

Description

本発明は、ICカード及びその制御方法に関する。   The present invention relates to an IC card and a control method thereof.

近年、様々な種類のICカードが使われるようになってきた。図7を用いて、従来例1のICカード(カメラカード)を説明する。図7は、従来例1のICカードの構成を示すブロック図である。図7において、701はICカード、102はホスト機器である。ICカード701は、インターフェース111、カメラモジュール712、メモリモジュール713を有する。カメラモジュール712は、カメラコントローラ721、バッファRAM122、A/D変換器123、プリアンプ124、CCD(Charge-Coupled Devices)125を有する。メモリモジュール713は、メモリコントローラ731、バッファRAM132、フラッシュメモリ133を有する。   In recent years, various types of IC cards have been used. The IC card (camera card) of Conventional Example 1 will be described with reference to FIG. FIG. 7 is a block diagram showing the configuration of the IC card of Conventional Example 1. In FIG. 7, reference numeral 701 denotes an IC card, and reference numeral 102 denotes a host device. The IC card 701 includes an interface 111, a camera module 712, and a memory module 713. The camera module 712 includes a camera controller 721, a buffer RAM 122, an A / D converter 123, a preamplifier 124, and a CCD (Charge-Coupled Devices) 125. The memory module 713 includes a memory controller 731, a buffer RAM 132, and a flash memory 133.

ホスト機器102は、ICカード701の挿入スロットを有するPDA又は携帯電話等である。ICカード701は、静止画カメラ機能とメモリ機能とを有する多機能ICカードである。ホスト機器102とICカード701とは、コマンド/レスポンス線、1又は複数のデータ線、ホスト機器102からインターフェース111に通信用クロックを送るクロック線、ホスト機器102からICカード701に電力を供給する電源線、及びグラウンド線で接続される。   The host device 102 is a PDA or a cellular phone having an insertion slot for the IC card 701. The IC card 701 is a multi-function IC card having a still image camera function and a memory function. The host device 102 and the IC card 701 are a command / response line, one or a plurality of data lines, a clock line for sending a communication clock from the host device 102 to the interface 111, and a power source for supplying power from the host device 102 to the IC card 701. And a ground line.

ホスト機器102とICカード701とは、ホスト機器102をマスターとしICカード701をスレーブとするマスター/スレーブ方式の通信を行う。ホスト機器102は、コマンド/レスポンス線、インターフェース111を通じて各機能モジュール712、713にコマンドを送信する。各機能モジュール712、713は、自己宛てのコマンドに応じてレスポンスを生成し、インターフェース111、コマンド/レスポンス線を通じてホスト機器102に送信する。更に、コマンドの種類に応じて、ホスト機器102とICカード701との間でいずれかの方向にデータ線を通じてデータを送信することも出来る。   The host device 102 and the IC card 701 perform master / slave communication using the host device 102 as a master and the IC card 701 as a slave. The host device 102 transmits a command to the function modules 712 and 713 through the command / response line and the interface 111. Each of the functional modules 712 and 713 generates a response in response to the command addressed to itself, and transmits the response to the host device 102 through the interface 111 and the command / response line. Further, data can be transmitted between the host device 102 and the IC card 701 through the data line in either direction according to the type of command.

ホスト機器102からの撮像コマンドに応じて、カメラモジュール712のCCD125は画像データ(例えば静止画であって、クロック成分を含む。)を出力する。プリアンプ124は、CCD125の出力データをダブルサンプリングして画像データを抽出する。A/D変換器123は、画像データをデジタル信号に変換する。カメラコントローラ721は、デジタル化された画像データを一旦バッファRAM122に格納し、その後所定の処理を行った後、再びバッファRAM122に格納する。更にホスト機器102からの出力要求コマンドに応じて、インターフェース111を通じて、バッファRAM122から読み出した画像データをホスト機器102に伝送する。   In response to the imaging command from the host device 102, the CCD 125 of the camera module 712 outputs image data (for example, a still image including a clock component). The preamplifier 124 extracts image data by double sampling the output data of the CCD 125. The A / D converter 123 converts the image data into a digital signal. The camera controller 721 temporarily stores the digitized image data in the buffer RAM 122, performs predetermined processing thereafter, and then stores the image data in the buffer RAM 122 again. Further, in response to an output request command from the host device 102, the image data read from the buffer RAM 122 is transmitted to the host device 102 through the interface 111.

ホスト機器102からの書き込みコマンドに応じて、メモリモジュール713のメモリコントローラ731はホスト機器102から送信されたデータ(例えばホスト機器102がカメラモジュール712から読み出した画像データ)を入力し、一旦バッファRAM132に格納した後、フラッシュメモリ133に書き込む。ホスト機器102からの読み出しコマンドに応じて、メモリモジュール713のメモリコントローラ731はフラッシュメモリ133からデータを読み出し、一旦バッファRAM132に格納した後、インターフェース111、データ線を通じてホスト機器102にデータを送信する。   In response to a write command from the host device 102, the memory controller 731 of the memory module 713 inputs data transmitted from the host device 102 (for example, image data read from the camera module 712 by the host device 102), and temporarily enters the buffer RAM 132. After storing, the data is written to the flash memory 133. In response to a read command from the host device 102, the memory controller 731 of the memory module 713 reads data from the flash memory 133, temporarily stores it in the buffer RAM 132, and then transmits the data to the host device 102 through the interface 111 and the data line.

特開2001−51904号公報に、従来例2のICカード(メモリカード)が記載されている。メモリカードはフラッシュメモリ等の不揮発性メモリを有し、ホスト機器の記憶装置として使われている。メモリーカードは、ホスト機器に装着され、ホスト機器から伝送された音声データ又は映像データ等を記憶する携帯型の記憶装置である。   Japanese Patent Laid-Open No. 2001-51904 describes an IC card (memory card) of Conventional Example 2. The memory card has a non-volatile memory such as a flash memory and is used as a storage device of a host device. A memory card is a portable storage device that is attached to a host device and stores audio data or video data transmitted from the host device.

特開2001−51904号公報JP 2001-51904 A

従来例1のICカード(カメラカード)において、ホスト機器が十分な記憶容量を持たない場合(例えばホスト機器が小さなメモリを有する携帯電話である場合)、ホスト機器はカメラモジュール712で撮った画像データを記憶することができなかった。ICカードのメモリモジュールは十分大きな記憶容量を有する。   In the IC card (camera card) of Conventional Example 1, when the host device does not have a sufficient storage capacity (for example, when the host device is a mobile phone having a small memory), the host device uses the image data taken by the camera module 712. Could not be remembered. The memory module of the IC card has a sufficiently large storage capacity.

しかし、カメラモジュールで撮った画像をメモリモジュールに記録するためには、ホスト機器が、カメラモジュールで撮った画像データを一旦読み出し、その後、ホスト機器からメモリモジュールに画像データを伝送しなければならなかった。従来のICカードにおいては、各機能モジュールはホスト機器との間でのみデータ伝送をする構成になっている故、カメラモジュールとメモリモジュールとの間で直接データ転送をすることが出来なかった。1つのICカードに内蔵されるカメラモジュールとメモリモジュールとの間でデータ転送を行うためには、ホスト機器を経由して行わなければならなかった。実質的にICカード内のデータ転送を行うために、ホスト機器とICカードとの間でコマンド、レスポンス及びデータのやり取りを頻繁に行うことになり、多くの処理時間を要した。そのため、本来のホスト機器内のデータ処理、又はホスト機器とICカードとの間のデータ通信に、支障が生じる恐れがあった。   However, in order to record images taken by the camera module in the memory module, the host device must once read the image data taken by the camera module and then transmit the image data from the host device to the memory module. It was. In the conventional IC card, since each functional module is configured to transmit data only with the host device, data cannot be directly transferred between the camera module and the memory module. In order to transfer data between a camera module and a memory module built in one IC card, it has to be performed via a host device. In order to substantially transfer data in the IC card, commands, responses, and data are frequently exchanged between the host device and the IC card, which requires a lot of processing time. For this reason, there is a risk that the data processing in the original host device or the data communication between the host device and the IC card may be hindered.

本発明は、ホスト機器、ホスト機器とICカードとの間の通信回線の負荷を増加させることなく、内蔵する複数の機能モジュール間でデータ転送を行うICカード及びその制御方法を提供することを目的とする。   An object of the present invention is to provide a host device, an IC card for transferring data between a plurality of built-in functional modules without increasing the load on a communication line between the host device and the IC card, and a control method therefor. And

上記課題を解決するため、本発明は下記の構成を有する。請求項1に記載の発明は、ホスト機器から送信されたコマンドに従って動作する第1の機能モジュールと第2の機能モジュールとをし、前記第1の機能モジュールは、前記ホスト機器からのコマンドに基づいてデータを生成し、前記ホスト機器からのコマンドと生成した前記データとを前記第2の機能モジュールに送信し、前記第2の機能モジュールは、前記ホスト機器からのコマンドと前記第1の機能モジュールが生成した前記データとを、前記第1の機能モジュールから受信して、前記第1の機能モジュールから受信し前記データを処理する、ことを特徴とするICカードである。 In order to solve the above problems, the present invention has the following configuration. The invention according to claim 1, possess a first functional module and a second functional module which operates in accordance with commands sent from the host device, prior Symbol first functional module, a command from said host device based on the generated data, and transmits the said data generated as a command from the host device to the second functional module, the second function module, a command from the host device the first and a functional module has generated the data, the received from the first functional module, for processing the data received from the first functional module, it is an IC card according to claim.

請求項5に記載の発明は、ホスト機器から送信されたコマンドに従って動作する第1の機能モジュールと第2の機能モジュールとを有するICカードの制御方法であって、前記第1の機能モジュールが、前記ホスト機器からのコマンドに基づいて、データを生成する第1の機能モジュール動作ステップと、前記第1の機能モジュールが、前記ホスト機器からのコマンド及び生成した前記データを第2の機能モジュールに伝送する伝送ステップと、前記第2の機能モジュールが前記第1の機能モジュールから伝送された前記ホスト機器からのコマンドに基づいて、前記第1の機能モジュールが生成した記データを処理する第2の機能モジュール動作ステップと、を有することを特徴とするICカードの制御方法である。 The invention according to claim 5 is an IC card control method having a first functional module and a second functional module that operate in accordance with a command transmitted from a host device , wherein the first functional module includes: , on the basis of the command from the host device, a first functional module operating step of generating the data, the first functional module, the data a second function that commands and generated from the host device a transmission step of transmitting to the module, the second function modules, wherein said transmitted from the first functional module based on a command from the host device, the first function before the module has generated Kide over data And a second functional module operation step for processing the IC card.

本発明は、ホスト機器、ホスト機器とICカードとの間の通信回線の負荷を増加させることなく、内蔵する複数の機能モジュール間でデータ転送を行うICカード及びその制御方法を実現するという作用を有する。
第1の機能モジュールは、ホスト機器からのコマンドに基づいて、データを生成し、ホスト機器からのコマンド及び生成したデータを第2の機能モジュールにのみ伝送しても良く、又はホスト機器からのコマンド及び生成したデータを第2の機能モジュールに伝送すると共に、生成したデータをホスト機器に伝送しても良い。
The present invention has an effect of realizing an IC card for transferring data between a plurality of built-in functional modules without increasing the load on a communication line between the host device, the host device and the IC card, and a control method thereof. Have.
The first functional module may generate data based on a command from the host device , and may transmit the command from the host device and the generated data only to the second functional module, or the command from the host device The generated data may be transmitted to the second functional module, and the generated data may be transmitted to the host device.

請求項2に記載の発明は、前記ICカードは、前記ホスト機器から送信されたコマンドを解読して、前記第1の機能モジュールと前記第2の機能モジュールのいずれで処理すべきかを判断する判断手段を更に有し、前記第2の機能モジュールは、前記第1の機能モジュールから送信されたデータと、前記ホスト機器から送信されたデータを格納する記憶部と、前記ホスト機器が指定した論理アドレスを前記記憶部の物理アドレスに変換するためのホスト機器用のアドレス変換テーブルと、前記第1の機能モジュールが指定した論理アドレスを前記記憶部の物理アドレスに変換するための第1の機能モジュール用のアドレス変換テーブルと、を有し、前記ホスト機器から送信されたデータを書き込む又は読み出すためのコマンドを前記ホスト機器から直接受信した場合は前記ホスト機器用のアドレス変換テーブルを使用し、前記第1の機能モジュールから送信されたデータを書き込む又は読み出すためのコマンドを前記ホスト機器から前記第1の機能モジュールを介して受信した場合は前記第1の機能モジュール用のアドレス変換テーブルを使用することにより、前記ホスト機器から送信されたデータを書き込んだ前記記憶部の領域と、前記第1の機能モジュールから送信されたデータを書き込んだ前記記憶部の領域と、を別個独立に管理する制御部と、を有し、前記判断手段は、前記ホスト機器から送信されたコマンドが、前記第1の機能モジュールが前記第2の機能モジュールに格納したデータを前記ホスト機器が読み出すことを要求するコマンドであると判断した場合、前記第1の機能モジュールに前記ホスト機器からのコマンドを送信し、前記第1の機能モジュールは、前記第2の機能モジュールに格納したデータの送信を前記ホスト機器から要求された場合は、前記第2の機能モジュールに格納したデータを読み出して、前記ホスト機器に伝送する、ことを特徴とする請求項1に記載のICカードである。 According to a second aspect of the present invention, the IC card decodes a command transmitted from the host device, and determines whether the first functional module or the second functional module should process the command. The second functional module includes: data transmitted from the first functional module; a storage unit for storing data transmitted from the host device; and a logical address designated by the host device. An address conversion table for a host device for converting a physical address of the storage unit into a physical address of the storage unit, and a first functional module for converting a logical address designated by the first functional module into a physical address of the storage unit And a command for writing or reading data transmitted from the host device. When receiving directly from the host device, the host device uses an address conversion table, and a command for writing or reading data transmitted from the first functional module is sent from the host device via the first functional module. When received, by using the address conversion table for the first functional module, the area of the storage unit in which the data transmitted from the host device is written, and the data transmitted from the first functional module And a control unit that manages each of the storage unit areas to which the command is transmitted, and the determination unit is configured such that the command transmitted from the host device is received by the first functional module and the second function module is the second function module. If it is determined that the command is a command that requests the host device to read the data stored in the functional module, the first And transmission commands to the function module from the host device, the first function module, if the transmission of the data stored in the second functional modules is requested from the host device, the first It reads the data stored in the second functional module and transmitted before Symbol host device is an IC card according to claim 1, characterized in that.

請求項6に記載の発明は、前記ICカードが前記ホスト機器から送信されたコマンドを解読して、前記第1の機能モジュールと前記第2の機能モジュールのいずれで処理すべきかを判断する判断手段を更に有し、前記第2の機能モジュールは、前記ホスト機器から送信されたデータと前記第1の機能モジュールから送信されたデータを格納する記憶部と、前記ホスト機器が指定した論理アドレスを前記記憶部の物理アドレスに変換するためのホスト機器用のアドレス変換テーブルと、前記第1の機能モジュールが指定した論理アドレスを前記記憶部の物理アドレスに変換するための第1の機能モジュール用のアドレス変換テーブルと、を有し、前記ホスト機器からのコマンドが、前記第1の機能モジュールが前記第2の機能モジュールに格納したデータを前記ホスト機器が読み出すコマンドであると、前記判断手段が判断した場合、前記ホスト機器からのコマンドを前記判断手段から前記第1の機能モジュールに送信するステップと、前記第1の機能モジュールから前記第2の機能モジュールに、前記ホスト機器からのコマンドを転送するステップと、前記第2の機能モジュールが、転送された前記ホスト機器からのコマンドに基づいて、前記第1の機能モジュール用のアドレス変換テーブルを使用して、前記記憶部に格納した前記第1の機能モジュールのデータを読み出して、前記第1の機能モジュールに送信するステップと、前記第1の機能モジュールが、前記第2の機能モジュールから受信した前記データを、前記ホスト機器に送信するステップと、を有することを特徴とする請求項5に記載のICカードの制御方法である。 According to a sixth aspect of the present invention , the IC card decodes a command transmitted from the host device and determines whether the first functional module or the second functional module should process the command. The second functional module further includes a storage unit for storing data transmitted from the host device, data transmitted from the first functional module, and a logical address designated by the host device. An address conversion table for the host device for converting into a physical address of the storage unit, and an address for the first functional module for converting a logical address designated by the first functional module into a physical address of the storage unit A conversion table, and a command from the host device is stored in the second functional module by the first functional module. And When it is the data host device reads commands if said determination means determines, sending a command from said host device from said determining means to the first functional module, the first functional module Transferring the command from the host device to the second functional module from the host device, and the second functional module uses the command for the first functional module based on the transferred command from the host device. Using the address conversion table, the data of the first functional module stored in the storage unit is read and transmitted to the first functional module; and the first functional module includes the second functional module the data received from the functional module and characterized by having the steps of: transmitting to said host device A control method for an IC card according to claim 5.

本発明によれば、第1の機能モジュールはメモリモジュール(第2の機能モジュール)をあたかも第1の機能モジュールに付属するメモリのように使用し、生成した出力データを大規模メモリである第2の機能モジュールに格納できる。ホスト機器は、第1のモジュールと第2のモジュールとの間の通信を認識する必要がない。ホスト機器との通信において、本発明のICカードは従来のICカードと完全な互換性を有する。   According to the present invention, the first functional module uses the memory module (second functional module) as if it were a memory attached to the first functional module, and the generated output data is the second large-scale memory. Can be stored in functional modules. The host device does not need to recognize the communication between the first module and the second module. In communication with the host device, the IC card of the present invention is completely compatible with the conventional IC card.

請求項3に記載の発明は、前記第1の機能モジュールは、生成した前記データを前記第2の機能モジュールに書き込んだ場合、前記第1の機能モジュールは、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータを特定するための読み出し情報を前記ホスト機器に伝送し、前記第2の機能モジュールは、書き込まれた前記第1の機能モジュールのデータの前記読み出し情報を管理し、その後、前記第2の機能モジュールが、前記読み出し情報を含み且つ前記第1の機能モジュールが書き込んだデータの読み出しを要求するコマンドを前記ホスト機器から直接受信すると、前記読み出し情報に基づいて、前記第1の機能モジュールが書き込んだ前記データを特定し、前記ホスト機器に直接送信する、ことを特徴とする請求項1又は請求項2に記載のICカードである。 According to a third aspect of the present invention, when the first functional module writes the generated data to the second functional module, the first functional module is the first functional module is the first functional module. Read information for specifying the data written in the second functional module is transmitted to the host device, and the second functional module manages the read information of the written data of the first functional module, After that, when the second functional module directly receives a command including the read information and requesting reading of the data written by the first functional module from the host device , the second functional module receives the command based on the read information. 1 function module writes to identify the data, sent directly to the host device, and wherein the billing 1 or an IC card according to claim 2.

請求項7に記載の発明は、前記第1の機能モジュールが生成した前記データを、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだ場合、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータを特定するための読み出し情報を、前記第1の機能モジュールから前記ホスト機器に伝送するステップと、前記第2の機能モジュールに書き込まれた前記第1の機能モジュールのデータの前記読み出し情報を前記第2の機能モジュールで管理するステップと、その後、前記読み出し情報を含み且つ前記第1の機能モジュールが書き込んだデータの読み出しを要求するコマンドが前記ホスト機器から前記第2の機能モジュールに直接送信されると、前記読み出し情報に基づいて、前記第1の機能モジュールが書き込んだ前記データを特定し、前記第2の機能モジュールから前記ホスト機器に直接送信するステップと、を有することを特徴とする請求項5又は請求項6に記載のICカードの制御方法である。 According to a seventh aspect of the present invention, when the first functional module writes the data generated by the first functional module into the second functional module, the first functional module is the second functional module. Transmitting the read information for specifying the data written in the functional module from the first functional module to the host device, and the data of the first functional module written in the second functional module Managing the read information in the second functional module, and thereafter, a command requesting reading of the data including the read information and written by the first functional module is sent from the host device to the second functional module. When transmitted directly to the functional module, the first functional module writes based on the read information. Identifies the data I is a control method for an IC card according to claim 5 or claim 6, characterized in that it has the steps of: transmitting directly to the host device from the second function module.

本発明において、第1の機能モジュールは、生成したデータを第2の機能モジュール(メモリモジュール)に格納し、且つ読み出し情報をホスト機器に送信する。読み出し情報は、例えば出力データのファイルの識別情報や、生成したデータが第2の機能モジュールに格納されているアドレスの情報(例えば先頭アドレスとデータ量、又は先頭アドレスと最後尾アドレス)である。
第1の機能モジュールは、ホスト機器からのコマンドに基づいて機能動作し、データを生成し、第2の機能モジュールがそのデータを格納する際に、読み出し情報をホスト機器に伝送しても良い。又は、第1の機能モジュールがホスト機器からのデータの送信要求を受信した時、データを送信することに代えて、読み出し情報を送信しても良い。後者の場合、ホスト機器が読み出し情報に基づいて、第2の機能モジュールに出力データの送信要求を再送する。第2の機能モジュールがデータを読み出して送信する。
請求項2の発明と請求項3の発明とを組み合わせても良い。この場合、ホスト機器は、第1の機能モジュールにデータの送信を要求しても良く、第2の機能モジュールにデータの送信を要求しても良い。
In the present invention, the first function module, and stores the generated data to the second function module (memory module), and transmits the read information to the host device. The read information is, for example, file identification information of output data, or address information (for example, the start address and the data amount, or the start address and the end address) where the generated data is stored in the second functional module.
The first functional module transmission, and operating functions on the basis of a command from the host device, generates data, when the second function module to store the data of that, the read information to the host device You may do it. Or, when the first functional module receives a request for transmission of data from the host device, instead of transmitting the data, it may transmit the read information. In the latter case, the host device retransmits the output data transmission request to the second functional module based on the read information. Transmitting reads the second function module is de chromatography data.
The invention of claim 2 and the invention of claim 3 may be combined. In this case, the host device, also request the transmission of data to the first functional module may, may request transmission of data to the second function module.

請求項4に記載の発明は、前記読み出し情報は、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータのファイルの識別情報であることを特徴とする請求項3に記載のICカードである。 According to a fourth aspect of the present invention, in the IC according to the third aspect, the read information is identification information of a file of data written to the second functional module by the first functional module. Card.

請求項8に記載の発明は、前記読み出し情報は、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータのファイルの識別情報であることを特徴とする請求項7に記載のICカードの制御方法である。
ホスト機器は、第2の機能モジュールのアドレス管理をすることなく、識別情報に基づいてデータを読み出すことが出来る。
According to an eighth aspect of the present invention, in the IC according to the seventh aspect, the read information is identification information of a file of data written to the second functional module by the first functional module. This is a card control method.
The host device, without the address management of the second functional module, it is possible to read the data based on the identification information.

本発明によれば、ホスト機器、ホスト機器とICカードとの間の通信回線の負荷を増加させることなく、内蔵する複数の機能モジュール間でデータ転送を行うICカード及びその制御方法を実現できるという有利な効果が得られる。
本発明によれば、ホスト機器、ホスト機器とICカードとの間の通信回線の負荷を増加させることなく、ICカード内で生成された出力データをICカード内のメモリに書き込み、読み出すことが出来るICカード及びその制御方法を実現できるという有利な効果が得られる。
According to the present invention, an IC card for transferring data between a plurality of built-in functional modules and a control method thereof can be realized without increasing the load on the communication line between the host device and the host device and the IC card. An advantageous effect is obtained.
According to the present invention, output data generated in an IC card can be written to and read from a memory in the IC card without increasing the load on the communication line between the host device and the host device and the IC card. An advantageous effect that an IC card and its control method can be realized is obtained.

本発明によれば、ホスト機器がアドレス管理を行うことなく、ICカード内で生成された出力データをICカード内のメモリに書き込み、識別情報を用いて読み出すことが出来るICカード及びその制御方法を実現できるという有利な効果が得られる。   According to the present invention, there is provided an IC card that can write output data generated in an IC card to a memory in the IC card and read it using identification information without performing address management by the host device, and a control method thereof. An advantageous effect that it can be realized is obtained.

以下本発明の実施をするための最良の形態を具体的に示した実施の形態について、図面とともに記載する。   DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments that specifically show the best mode for carrying out the present invention will be described below with reference to the drawings.

《実施の形態1》
図1〜3を用いて、本発明の実施の形態1のICカードを説明する。図1は、本発明の実施の形態1のICカードの構成を示すブロック図である。図1において、101はICカード、102はホスト機器である。ICカード101は、インターフェース111、カメラモジュール112、メモリモジュール113を有する。カメラモジュール112は、カメラコントローラ121、バッファRAM122、A/D変換器123、プリアンプ124、CCD125を有する。メモリモジュール113は、メモリコントローラ131、バッファRAM132、フラッシュメモリ133を有する。本発明の実施の形態1のICカード101は、カメラコントローラ121とメモリコントローラ131とを接続する通信回線を有し、この通信回線を通じてデータ伝送をする点で、従来例1のICカード701(図7)と異なる。それ以外は、従来例1と同一である。図1において、従来例1のICカードと同一ブロックには、同一の符号を付している。
Embodiment 1
The IC card according to the first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing a configuration of an IC card according to Embodiment 1 of the present invention. In FIG. 1, 101 is an IC card, and 102 is a host device. The IC card 101 includes an interface 111, a camera module 112, and a memory module 113. The camera module 112 includes a camera controller 121, a buffer RAM 122, an A / D converter 123, a preamplifier 124, and a CCD 125. The memory module 113 includes a memory controller 131, a buffer RAM 132, and a flash memory 133. The IC card 101 according to the first embodiment of the present invention has a communication line for connecting the camera controller 121 and the memory controller 131 and transmits data through this communication line. Different from 7). Other than that, it is the same as Conventional Example 1. In FIG. 1, the same blocks as those of the IC card of the conventional example 1 are denoted by the same reference numerals.

ホスト機器102は、ICカード101の挿入スロットを有するPDA又は携帯電話等である。ICカード101は、静止画カメラ機能とメモリ機能とを有する多機能ICカードである。ホスト機器102とICカード101とは、コマンド/レスポンス線、1又は複数のデータ線、ホスト機器102からインターフェース111に通信用クロックを送るクロック線、ホスト機器102からICカード101に電力を供給する電源線、及びグラウンド線で接続される。   The host device 102 is a PDA or a mobile phone having an IC card 101 insertion slot. The IC card 101 is a multi-function IC card having a still image camera function and a memory function. The host device 102 and the IC card 101 are a command / response line, one or a plurality of data lines, a clock line for sending a communication clock from the host device 102 to the interface 111, and a power source for supplying power from the host device 102 to the IC card 101. And a ground line.

ホスト機器102とICカード101とは、ホスト機器102をマスターとしICカード101をスレーブとするマスター/スレーブ方式の通信を行う。通信方法は、従来例と同一である。ICカード101のインターフェース111は、ホスト機器102から送信されたコマンドを受信し、そのコマンドをカメラコントローラ121及びメモリコントローラ131に伝送する。インターフェース111は、カメラコントローラ121又はメモリコントローラ131から受け取ったレスポンス(又はレスポンス及びデータ)をホスト機器102に送信する。   The host device 102 and the IC card 101 perform master / slave communication with the host device 102 as a master and the IC card 101 as a slave. The communication method is the same as in the conventional example. The interface 111 of the IC card 101 receives a command transmitted from the host device 102 and transmits the command to the camera controller 121 and the memory controller 131. The interface 111 transmits the response (or response and data) received from the camera controller 121 or the memory controller 131 to the host device 102.

カメラコントローラ121とメモリコントローラ131とは、カメラコントローラ121をマスターとしメモリコントローラ131をスレーブとするマスター/スレーブ方式の通信を行う。その通信方法は、ホスト機器102とICカード101との間の通信方法と同一である。カメラコントローラ121は、コマンド/レスポンス線を通じてメモリコントローラ131にコマンドを送信する。メモリコントローラ131は、コマンドに応じてレスポンスを生成し、コマンド/レスポンス線を通じてカメラコントローラ121に送信する。更に、コマンドの種類に応じて、カメラコントローラ121とメモリコントローラ131との間でいずれかの方向にデータ線を通じてデータを送信することも出来る。   The camera controller 121 and the memory controller 131 perform master / slave communication using the camera controller 121 as a master and the memory controller 131 as a slave. The communication method is the same as the communication method between the host device 102 and the IC card 101. The camera controller 121 transmits a command to the memory controller 131 through a command / response line. The memory controller 131 generates a response in response to the command and transmits it to the camera controller 121 through the command / response line. Furthermore, data can be transmitted between the camera controller 121 and the memory controller 131 through the data line in either direction according to the type of command.

ホスト機器102からの撮像コマンドに応じて、カメラモジュール112のカメラコントローラ121は、CCD125が生成した画像データ(デジタル画像データ)を一旦バッファRAM122に格納し、その後所定の処理を行った後、再びバッファRAM122に格納する。ホスト機器102からの出力及び格納要求コマンドに応じて、カメラコントローラ121は、インターフェース111を通じて、バッファRAM122から読み出した画像データをホスト機器102に伝送すると共に、同じ画像データと書き込みコマンドとをメモリモジュール113のメモリコントローラ131に送る。メモリコントローラ131は、画像データをフラッシュメモリ133の未記録領域に書き込む。   In response to the imaging command from the host device 102, the camera controller 121 of the camera module 112 temporarily stores the image data (digital image data) generated by the CCD 125 in the buffer RAM 122, performs a predetermined process, and then buffers again. Stored in the RAM 122. In response to the output and storage request command from the host device 102, the camera controller 121 transmits the image data read from the buffer RAM 122 to the host device 102 through the interface 111 and transmits the same image data and write command to the memory module 113. To the memory controller 131. The memory controller 131 writes the image data in the unrecorded area of the flash memory 133.

メモリコントローラ131は、フラッシュメモリ133の中の画像データが書き込まれた領域を、ホスト機器102が消去又は書き換えできない領域と定義する。ホスト機器102が画像データを消去又は書き換えする場合は、カメラコントローラ121に消去又は書き換えコマンドを送信する。カメラコントローラ121は、メモリコントローラ131にそのコマンドを送信する。メモリコントローラ131はフラッシュメモリ133の中の画像データを消去し又は書き換える。   The memory controller 131 defines the area where the image data is written in the flash memory 133 as an area that the host device 102 cannot erase or rewrite. When the host device 102 erases or rewrites image data, it sends an erase or rewrite command to the camera controller 121. The camera controller 121 transmits the command to the memory controller 131. The memory controller 131 erases or rewrites image data in the flash memory 133.

カメラコントローラ121は、ホスト機器102からの画像データ送信要求コマンドに応じて、メモリコントローラ131にその画像データの読み出しコマンドを送信する。カメラコントローラ121は、フラッシュメモリ133から読み出されたデータを入力し、インターフェース111、データ線を通じてホスト機器102に送信する。   In response to the image data transmission request command from the host device 102, the camera controller 121 transmits the image data read command to the memory controller 131. The camera controller 121 inputs data read from the flash memory 133 and transmits the data to the host device 102 through the interface 111 and the data line.

図2は、ICカードの処理の場合分けのフローチャートである。本発明のICカード101は、カメラモジュール112とメモリモジュール113とを有し、カメラモジュール112単独の処理と、メモリモジュール113単独の処理と、カメラモジュール112とメモリモジュール113との間で行う処理とを行う。
ホスト機器102は、コマンドをICカード101のインターフェース111に送信する。ICカード101のインターフェース111は、ホスト機器102から送られたコマンドを受信する(ステップ201)。インターフェース111は、コマンドを解読し(ステップ202)、各モジュール内の単独動作か否か判断する(ステップ203)。
FIG. 2 is a flowchart for dividing a case of processing of an IC card. The IC card 101 of the present invention includes a camera module 112 and a memory module 113, a process of the camera module 112 alone, a process of the memory module 113 alone, and a process performed between the camera module 112 and the memory module 113. I do.
The host device 102 transmits a command to the interface 111 of the IC card 101. The interface 111 of the IC card 101 receives a command sent from the host device 102 (step 201). The interface 111 decodes the command (step 202) and determines whether or not it is a single operation within each module (step 203).

単独動作でない場合(CCD125が生成した画像データをフラッシュメモリ133に書き込む指令コマンドの場合)、カメラモジュール112とメモリモジュール113との間で処理を行う(ステップ204、図3)。ホスト機器102は、コマンドをインターフェース111に送信するだけで、後の処理(カメラモジュール112からメモリモジュール113へのデータ転送)はICカード101内で自動的に行う(詳細は後述する。)。   If it is not a single operation (in the case of a command command for writing image data generated by the CCD 125 to the flash memory 133), processing is performed between the camera module 112 and the memory module 113 (step 204, FIG. 3). The host device 102 simply transmits a command to the interface 111, and the subsequent processing (data transfer from the camera module 112 to the memory module 113) is automatically performed in the IC card 101 (details will be described later).

ステップ203において、各モジュール内の単独動作である場合は、カメラモジュール112の単独動作か否か判断する(ステップ205)。カメラモジュール112の単独動作である場合、カメラモジュール112が処理を行う(ステップ206)。例えば、CCD125のシャッタ機能の設定等である。
ステップ205において、カメラモジュール112の単独動作でない場合、メモリモジュール113の単独動作か否か判断する(ステップ207)。メモリモジュール113の単独動作である場合、メモリモジュール113が処理を行う(ステップ208)。例えば、ホスト機器102から送られたデータをフラッシュメモリ133に書き込む、又はフラッシュメモリ133に格納されているデータを読み出してホスト機器102に送信する等である。
In step 203, if it is a single operation in each module, it is determined whether or not the camera module 112 is a single operation (step 205). If the camera module 112 is a single operation, the camera module 112 performs processing (step 206). For example, the shutter function of the CCD 125 is set.
If it is determined in step 205 that the camera module 112 is not operating alone, it is determined whether or not the memory module 113 is operating independently (step 207). If the memory module 113 is a single operation, the memory module 113 performs processing (step 208). For example, data sent from the host device 102 is written to the flash memory 133, or data stored in the flash memory 133 is read and transmitted to the host device 102.

図3は、CCD125が生成した画像データをフラッシュメモリに書き込む方法(図2のステップ204の詳細)のフローチャートである。ステップ301〜305は、カメラモジュール112が処理する。ステップ306は、メモリモジュール113が処理する。
カメラコントローラ121に、インターフェース111を通じて、ホスト機器102から送信された、CCD125が生成した画像データをフラッシュメモリに書き込むことを要求するコマンドを入力する(ステップ301)。カメラコントローラ121はコマンドに基づいて、CCD125に画像データの出力を指令する(CCD125に駆動クロックを送る。)。CCD125は、画像データを生成し、出力する(ステップ302)。
FIG. 3 is a flowchart of a method of writing image data generated by the CCD 125 into the flash memory (details of step 204 in FIG. 2). Steps 301 to 305 are processed by the camera module 112. Step 306 is processed by the memory module 113.
A command requesting to write the image data generated by the CCD 125 transmitted from the host device 102 to the flash memory via the interface 111 is input to the camera controller 121 (step 301). Based on the command, the camera controller 121 commands the CCD 125 to output image data (sends a drive clock to the CCD 125). The CCD 125 generates and outputs image data (step 302).

カメラコントローラ121は、プリアンプ124、A/D変換器123を通じて入力したデジタル化された画像データをバッファRAM122に一時的に格納し、所定の処理を行う(ステップ303)。カメラコントローラ121は、メモリコントローラ131にデータの書き込み指令コマンドを伝送する(ステップ304)。カメラコントローラ121は、バッファRAM122から読み出した画像データをメモリコントローラ131に伝送する(ステップ305)。
メモリコントローラ131は、画像データを入力し、フラッシュメモリ133に書き込む(ステップ306)。処理を終了する。
カメラコントローラ121は任意の論理アドレスで規定した領域に画像データを書き込むことが出来る。メモリコントローラ131は、カメラコントローラ121が指定した論理アドレスを未使用の物理アドレスに変換し、そこに画像データを書き込む。
The camera controller 121 temporarily stores the digitized image data input through the preamplifier 124 and the A / D converter 123 in the buffer RAM 122 and performs a predetermined process (step 303). The camera controller 121 transmits a data write command command to the memory controller 131 (step 304). The camera controller 121 transmits the image data read from the buffer RAM 122 to the memory controller 131 (step 305).
The memory controller 131 inputs the image data and writes it in the flash memory 133 (step 306). The process ends.
The camera controller 121 can write image data in an area defined by an arbitrary logical address. The memory controller 131 converts the logical address designated by the camera controller 121 into an unused physical address and writes the image data there.

図4は、ホスト機器102がカメラモジュール112に画像データの読み出し要求コマンドを送った場合の処理方法を示すフローチャートである。図4において、ステップ401、402、405は、カメラモジュール112が処理する。ステップ403、404は、メモリモジュール113が処理する。
カメラコントローラ121に、インターフェース111を通じて、ホスト機器102から送信された画像データの読み出し要求コマンドを入力する(ステップ401)。カメラコントローラ121は、画像データの読み出し要求コマンドをメモリモジュール113に転送する(ステップ402)。メモリコントローラ131は、フラッシュメモリ133から画像データを読み出す(ステップ403)。メモリコントローラ131は、読み出した画像データをカメラコントローラ121に転送する(ステップ404)。カメラコントローラ121は画像データをホスト機器102に送信する(ステップ405)。処理を終了する。
FIG. 4 is a flowchart showing a processing method when the host device 102 sends an image data read request command to the camera module 112. In FIG. 4, steps 401, 402, and 405 are processed by the camera module 112. Steps 403 and 404 are processed by the memory module 113.
An image data read request command transmitted from the host device 102 is input to the camera controller 121 through the interface 111 (step 401). The camera controller 121 transfers an image data read request command to the memory module 113 (step 402). The memory controller 131 reads image data from the flash memory 133 (step 403). The memory controller 131 transfers the read image data to the camera controller 121 (step 404). The camera controller 121 transmits the image data to the host device 102 (step 405). The process ends.

メモリコントローラ131は、ホスト機器102がメモリアクセスする際に使用する論理アドレス/物理アドレス変換テーブルと、カメラコントローラ121がメモリアクセスする際に使用する論理アドレス/物理アドレス変換テーブルと、を別個独立に(カメラコントローラ121は、ホスト機器102が書き込んだデータを少なくとも消去・書き換えすることが出来ず、ホスト機器102は、カメラコントローラ121が書き込んだデータを少なくとも消去・書き換えすることが出来ない。)、互いに干渉しないように(1つの物理アドレスに、ホスト機器102が指定した論理アドレスと、カメラコントローラ121が指定した論理アドレスとが重複して割り当てられないように)管理する。ホスト機器102がカメラコントローラ121に画像データの消去・書き換えコマンドを送信することにより、カメラコントローラ121が書き込んだデータを消去・書き換えすることは可能である。ホスト機器102が、カメラコントローラ121が書き込んだデータを読み出せるようにしても良い。カメラコントローラ121が、ホスト機器102が書き込んだデータを読み出せるようにしても良い。   The memory controller 131 uses a logical address / physical address conversion table used when the host device 102 accesses the memory and a logical address / physical address conversion table used when the camera controller 121 accesses the memory separately and independently ( The camera controller 121 cannot at least erase / rewrite the data written by the host device 102, and the host device 102 cannot at least erase / rewrite the data written by the camera controller 121). Management (so that the logical address designated by the host device 102 and the logical address designated by the camera controller 121 are not assigned to one physical address redundantly). It is possible for the host device 102 to erase / rewrite data written by the camera controller 121 by transmitting an image data erase / rewrite command to the camera controller 121. The host device 102 may be configured to read data written by the camera controller 121. The camera controller 121 may be configured to read data written by the host device 102.

ホスト機器102は、カメラモジュール112とメモリモジュール113とのデータ転送を管理する必要がなく、あたかもカメラモジュール112が大容量の不揮発性メモリを内蔵しているかのように取り扱うことが出来る。   The host device 102 does not need to manage data transfer between the camera module 112 and the memory module 113, and can be handled as if the camera module 112 had a large-capacity nonvolatile memory.

《実施の形態2》
図5及び図6を用いて、本発明の実施の形態2のICカードを説明する。図5は、本発明の実施の形態2のICカードの構成を示すブロック図である。図5において、図1と同一部には同一の符号を付している。実施の形態2のICカード501が実施の形態1のICカード101と違うところは、以下の点である。カメラモジュール121が画像データをメモリモジュール113に送信した場合、ホスト機器102に、ホスト機器102がメモリモジュール113から画像データを読み出すための情報である読み出し情報を伝送する。メモリモジュール113は、ホスト機器102から画像データの読み出しコマンドを入力した場合、画像データを読み出し、ホスト機器102に送信する。即ち、カメラモジュール121が画像データをメモリモジュール113に送信し、画像データをフラッシュメモリ133に書き込む方法は実施の形態1と同様である(図3)。実施の形態2において、ホスト機器102がメモリモジュール113から直接画像データを読み出す(図6)。
<< Embodiment 2 >>
The IC card according to the second embodiment of the present invention will be described with reference to FIGS. FIG. 5 is a block diagram showing the configuration of the IC card according to the second embodiment of the present invention. 5, the same parts as those in FIG. 1 are denoted by the same reference numerals. The IC card 501 of the second embodiment is different from the IC card 101 of the first embodiment in the following points. When the camera module 121 transmits image data to the memory module 113, read information that is information for the host device 102 to read image data from the memory module 113 is transmitted to the host device 102. When an image data read command is input from the host device 102, the memory module 113 reads the image data and transmits it to the host device 102. That is, the method in which the camera module 121 transmits image data to the memory module 113 and writes the image data to the flash memory 133 is the same as that in the first embodiment (FIG. 3). In the second embodiment, the host device 102 reads image data directly from the memory module 113 (FIG. 6).

更に、実施の形態2のメモリコントローラ131は、カメラモジュール121により画像データのファイルに付された任意の識別情報(読み出し情報である。)を管理する識別情報管理部541を有する。識別情報管理部541は、画像データのファイルに付された任意の識別情報と、そのファイルが記録されているフラッシュメモリ133の論理アドレスの情報(例えば先頭アドレスとデータ量、又は先頭アドレスと最後尾アドレス)とを対応付けて管理している。ホスト機器102はこの識別情報を用いて画像データを読み出し、又は消去できる。上記の点で、実施の形態2のICカード501は実施の形態1と異なる。それ以外の点で、実施の形態2のICカード501は実施の形態1と同一である。実施の形態2のICカード501は、実施の形態1と同様に、図2、図3の処理を行う。 Further, the memory controller 131 of the second embodiment has an identification information management unit 541 for managing any identification information attached to the image data file by the camera module 121 (which is read information.). The identification information management section 541, and any identification information attached to the image data file, the logical address information in the flash memory 133 in which the file is recorded (eg Eva start address and data size, or the start address and end Tail address) in association with each other. The host device 102 can read or erase the image data using this identification information. The IC card 501 of the second embodiment is different from the first embodiment in the above points. In other respects, the IC card 501 of the second embodiment is the same as that of the first embodiment. The IC card 501 of the second embodiment performs the processing of FIGS. 2 and 3 as in the first embodiment.

図6は、ホスト機器102がメモリモジュール113に画像データの読み出し要求コマンドを送った場合の処理方法を示すフローチャートである。メモリモジュール113が図6の処理を全て実行する。
メモリコントローラ131は、インターフェース111を通じて、ホスト機器102から、画像データのファイルの識別情報(読み出し情報である。)を付した画像データの読み出し要求コマンドを入力する(ステップ601)。メモリコントローラ131の識別情報管理部541は、識別情報に基づいて、そのファイルが記録されているフラッシュメモリ133の論理アドレスの情報(例えば先頭アドレスとデータ量、又は先頭アドレスと最後尾アドレス)を導出する(ステップ602)。メモリコントローラ131は、フラッシュメモリ133からそのファイルの画像データを読み出す(ステップ603)。メモリコントローラ131は画像データをホスト機器102に送信する(ステップ604)。処理を終了する。画像データの消去等も同様に実行できる。
FIG. 6 is a flowchart showing a processing method when the host device 102 sends an image data read request command to the memory module 113. The memory module 113 executes all the processes in FIG.
The memory controller 131 inputs an image data read request command with image data file identification information (read information) from the host device 102 through the interface 111 (step 601). Identification information management unit 541 of the memory controller 131, based on the identification information, the logical address information in the flash memory 133 where the file is recorded (eg Eva start address and data size, or the start address and end address) of Derived (step 602). The memory controller 131 reads the image data of the file from the flash memory 133 (step 603). The memory controller 131 transmits the image data to the host device 102 (step 604). The process ends. The image data can be erased in the same manner.

なお、メモリコントローラ131は、ホスト機器102が指定する論理アドレスと、データを実際に書き込む物理アドレスと、を変換する論理アドレス/物理アドレス変換テーブルのみを有しても良い。この場合、ホスト機器102は、あらかじめカメラモジュール121に所定の論理アドレス空間を割り当てる。カメラモジュール121は、割り当てられた論理アドレス空間内の論理アドレスを用いて画像データをメモリモジュール113に書き込み、画像データを書き込んだ論理アドレスの情報を読み出し情報としてホスト機器102に伝送する。

The memory controller 131 includes a logical address host device 102 specifies a physical address for writing data in fact, it may be closed only logical address / physical address conversion table for converting. In this case, the host device 102 allocates a predetermined logical address space to the camera module 121 in advance. The camera module 121 writes image data to the memory module 113 using a logical address in the allocated logical address space, and transmits information on the logical address where the image data is written to the host device 102 as read information .

カメラモジュール121が、読み出し情報をホスト機器102に伝送するタイミングは任意である。例えば、カメラモジュール121が、ホスト機器102からのコマンドに基づいて画像データを生成し、メモリモジュール113がその画像データを格納する際に、読み出し情報をホスト機器102に伝送しても良い。又は、カメラモジュール121がホスト機器102からの画像データの送信要求を受信した時、画像データを送信することに代えて、読み出し情報を送信しても良い。後者の場合、ホスト機器102が読み出し情報に基づいて、メモリモジュール113に画像データの送信要求を再送する。メモリモジュール113が画像データを読み出してホスト機器102に送信する。   The timing at which the camera module 121 transmits read information to the host device 102 is arbitrary. For example, the read information may be transmitted to the host device 102 when the camera module 121 generates image data based on a command from the host device 102 and the memory module 113 stores the image data. Alternatively, when the camera module 121 receives a transmission request for image data from the host device 102, the read information may be transmitted instead of transmitting the image data. In the latter case, the host device 102 retransmits the image data transmission request to the memory module 113 based on the read information. The memory module 113 reads the image data and transmits it to the host device 102.

実施の形態1と実施の形態2とを組み合わせても良い。この場合、ホスト機器102は、カメラモジュール112に画像データの送信を要求しても良く、メモリモジュール113に画像データの送信を要求しても良い。   The first embodiment and the second embodiment may be combined. In this case, the host device 102 may request the camera module 112 to transmit image data, or may request the memory module 113 to transmit image data.

なお、実施の形態1及び実施の形態2において、ICカードはカメラモジュール112とメモリモジュール113とを有した。これに限定されず、ICカードは他の複数の機能モジュールを有しても良い。
実施の形態1及び実施の形態2は、第1の機能モジュール(カメラモジュール)から第2の機能モジュール(メモリモジュール)にコマンド及びデータを伝送した。これに代えて、第2の機能モジュールから第1の機能モジュールにコマンド及びデータを伝送しても良い。実施の形態の構成は例示であって、任意の異なる機能を有する2つの機能モジュール間でデータ伝送を行うことが出来る。
In the first embodiment and the second embodiment, the IC card has the camera module 112 and the memory module 113. The IC card is not limited to this, and the IC card may have a plurality of other functional modules.
In the first embodiment and the second embodiment, commands and data are transmitted from the first functional module (camera module) to the second functional module (memory module). Alternatively, commands and data may be transmitted from the second functional module to the first functional module. The configuration of the embodiment is an example, and data transmission can be performed between two functional modules having arbitrary different functions.

第1の機能モジュールと第2の機能モジュールとの間で、双方向にコマンド及びデータを伝送しても良い。例えば、第1の機能モジュール(無線通信モジュール)と第2の機能モジュール(メモリモジュール)とを有するICカードにおいて、無線通信モジュールで受信したデータをフラッシュメモリに書き込み、又はフラッシュメモリに格納されているデータを無線通信モジュールが出力する等である。
実施の形態1において、カメラコントローラ121が識別情報管理部を有していても良い。ホスト機器102とカメラコントローラ121との間で画像データのファイルの識別情報を用いて通信を行い、この通信に基づいて、カメラコントローラ121がファイルの処理を行う。
機能モジュール間で転送するデータは、任意であり、画像データに限らない。
Commands and data may be transmitted bidirectionally between the first functional module and the second functional module. For example, in an IC card having a first functional module (wireless communication module) and a second functional module (memory module), data received by the wireless communication module is written into the flash memory or stored in the flash memory. For example, the wireless communication module outputs data.
In the first embodiment, the camera controller 121 may have an identification information management unit. Communication is performed between the host device 102 and the camera controller 121 using the image data file identification information, and the camera controller 121 processes the file based on the communication.
Data transferred between the functional modules is arbitrary and is not limited to image data.

本発明は、複数の機能モジュールを有するICカードとして有用である。   The present invention is useful as an IC card having a plurality of functional modules.

本発明の実施の形態1のICカードの構成を示すブロック図The block diagram which shows the structure of the IC card of Embodiment 1 of this invention 本発明の実施の形態1及び2のICカードの場合分け処理のフローチャートFlowchart of case-separation processing for IC cards according to Embodiments 1 and 2 of the present invention 本発明の実施の形態1における、カメラモジュールが生成した画像データをメモリモジュールに書き込む方法(図2のステップ204の詳細)のフローチャートThe flowchart of the method (The detail of step 204 of FIG. 2) of writing in the memory module the image data which the camera module produced | generated in Embodiment 1 of this invention. 本発明の実施の形態1における、ホスト機器がカメラモジュールに画像データの送信要求コマンドを送った場合の処理方法のフローチャートFlowchart of a processing method when the host device sends an image data transmission request command to the camera module according to the first embodiment of the present invention. 本発明の実施の形態2のICカードの構成を示すブロック図The block diagram which shows the structure of the IC card of Embodiment 2 of this invention 本発明の実施の形態2における、ホスト機器がメモリモジュールに画像データの送信要求コマンドを送った場合の処理方法のフローチャートFlowchart of a processing method when a host device sends an image data transmission request command to a memory module in Embodiment 2 of the present invention 従来例1のICカードの構成を示すブロック図The block diagram which shows the structure of the IC card of the prior art example 1.

符号の説明Explanation of symbols

101、501、701 ICカード
102 ホスト機器
111 インターフェース
112、712 カメラモジュール
113、713 メモリモジュール
121、721 カメラコントローラ
122、132 バッファRAM
123 A/D変換器
124 プリアンプ
125 CCD
131、731 メモリコントローラ
133 フラッシュメモリ
541 識別情報管理部
101, 501 and 701 IC card 102 Host device 111 Interface 112 and 712 Camera module 113 and 713 Memory module 121 and 721 Camera controller 122 and 132 Buffer RAM
123 A / D converter 124 Preamplifier 125 CCD
131, 731 Memory controller 133 Flash memory 541 Identification information management unit

Claims (8)

ホスト機器から送信されたコマンドに従って動作する第1の機能モジュールと第2の機能モジュールとをし、
記第1の機能モジュールは、前記ホスト機器からのコマンドに基づいてデータを生成し、前記ホスト機器からのコマンドと生成した前記データとを前記第2の機能モジュールに送信し、
前記第2の機能モジュールは、前記ホスト機器からのコマンドと前記第1の機能モジュールが生成した前記データとを、前記第1の機能モジュールから受信して、前記第1の機能モジュールから受信し前記データを処理する、
ことを特徴とするICカード。
Possess a first functional module and a second functional module which operates in accordance with commands sent from the host device,
Before Symbol first function module generates data based on a command from the host device, sends said data generated as a command from the host device to the second functional module,
It said second functional module, and the data commands and the first function module from the host device is generated, and received from the first functional module, received from the first functional module processing the data,
IC card characterized by that.
前記ICカードは、前記ホスト機器から送信されたコマンドを解読して、前記第1の機能モジュールと前記第2の機能モジュールのいずれで処理すべきかを判断する判断手段を更に有し、
前記第2の機能モジュールは、
前記第1の機能モジュールから送信されたデータと、前記ホスト機器から送信されたデータを格納する記憶部と、
前記ホスト機器が指定した論理アドレスを前記記憶部の物理アドレスに変換するためのホスト機器用のアドレス変換テーブルと、前記第1の機能モジュールが指定した論理アドレスを前記記憶部の物理アドレスに変換するための第1の機能モジュール用のアドレス変換テーブルと、を有し、前記ホスト機器から送信されたデータを書き込む又は読み出すためのコマンドを前記ホスト機器から直接受信した場合は前記ホスト機器用のアドレス変換テーブルを使用し、前記第1の機能モジュールから送信されたデータを書き込む又は読み出すためのコマンドを前記ホスト機器から前記第1の機能モジュールを介して受信した場合は前記第1の機能モジュール用のアドレス変換テーブルを使用することにより、前記ホスト機器から送信されたデータを書き込んだ前記記憶部の領域と、前記第1の機能モジュールから送信されたデータを書き込んだ前記記憶部の領域と、を別個独立に管理する制御部と、
を有し、
前記判断手段は、前記ホスト機器から送信されたコマンドが、前記第1の機能モジュールが前記第2の機能モジュールに格納したデータを前記ホスト機器が読み出すことを要求するコマンドであると判断した場合、前記第1の機能モジュールに前記ホスト機器からのコマンドを送信し、
前記第1の機能モジュールは、前記第2の機能モジュールに格納したデータの送信を前記ホスト機器から要求された場合は、前記第2の機能モジュールに格納したデータを読み出して、前記ホスト機器に伝送する、
ことを特徴とする請求項1に記載のICカード。
The IC card further includes a determination unit that decodes a command transmitted from the host device and determines which of the first functional module and the second functional module should be processed,
The second functional module is:
A storage unit for storing data transmitted from the first functional module and data transmitted from the host device;
An address conversion table for a host device for converting a logical address specified by the host device into a physical address of the storage unit, and a logical address specified by the first functional module is converted into a physical address of the storage unit. An address conversion table for the first functional module, and when receiving a command for writing or reading data transmitted from the host device directly from the host device, the address conversion for the host device When a command for writing or reading data transmitted from the first functional module is received from the host device via the first functional module using the table, the address for the first functional module Data transmitted from the host device by using a conversion table An area of the storage unit written, said first function written the transmitted data from the module the storage unit of area, and a control unit for managing separately and independently,
Have
When the determination unit determines that the command transmitted from the host device is a command for requesting the host device to read data stored in the second functional module by the first functional module, Sending a command from the host device to the first functional module;
Wherein the first functional module, said, when requested by the host device to transmit the data stored in the second function module reads the data stored in the second functional module, before Symbol Transmit to the host device,
The IC card according to claim 1.
前記第1の機能モジュールは、生成した前記データを前記第2の機能モジュールに書き込んだ場合、
前記第1の機能モジュールは、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータを特定するための読み出し情報を前記ホスト機器に伝送し、
前記第2の機能モジュールは、書き込まれた前記第1の機能モジュールのデータの前記読み出し情報を管理し、
その後、前記第2の機能モジュールが、前記読み出し情報を含み且つ前記第1の機能モジュールが書き込んだデータの読み出しを要求するコマンドを前記ホスト機器から直接受信すると、前記読み出し情報に基づいて、前記第1の機能モジュールが書き込んだ前記データを特定し、前記ホスト機器に直接送信する、
ことを特徴とする請求項1又は請求項2に記載のICカード。
When the first functional module writes the generated data to the second functional module,
The first functional module transmits read information for identifying data written by the first functional module to the second functional module to the host device,
The second functional module manages the read information of the written data of the first functional module,
After that, when the second functional module directly receives a command including the read information and requesting reading of the data written by the first functional module from the host device , the second functional module receives the command based on the read information. Identifying the data written by one functional module and transmitting it directly to the host device;
The IC card according to claim 1 or 2, wherein
前記読み出し情報は、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータのファイルの識別情報であることを特徴とする請求項3に記載のICカード。 4. The IC card according to claim 3 , wherein the read information is identification information of a file of data written by the first functional module to the second functional module . ホスト機器から送信されたコマンドに従って動作する第1の機能モジュールと第2の機能モジュールとを有するICカードの制御方法であって、
前記第1の機能モジュールが、前記ホスト機器からのコマンドに基づいてデータを生成する第1の機能モジュール動作ステップと、
前記第1の機能モジュールが、前記ホスト機器からのコマンド及び生成した前記データを第2の機能モジュールに伝送する伝送ステップと、
前記第2の機能モジュールが、前記第1の機能モジュールから伝送された前記ホスト機器からのコマンドに基づいて、前記第1の機能モジュールが生成した記データを処理する第2の機能モジュール動作ステップと、
を有することを特徴とするICカードの制御方法。
A control method of an IC card having a first functional module and a second functional module that operate according to a command transmitted from a host device ,
Said first functional module, a first functional module operating step of generating the data based on a command from the host device,
A transmission step in which the first functional module transmits a command from the host device and the generated data to a second functional module;
It said second functional module, based on a command from the host device, which is transmitted from the first functional module, a second function module for processing the Kide over data before the first function module is generated Operation steps;
A method for controlling an IC card, comprising:
前記ICカードは、前記ホスト機器から送信されたコマンドを解読して、前記第1の機能モジュールと前記第2の機能モジュールのいずれで処理すべきかを判断する判断手段を更に有し、
前記第2の機能モジュールは、前記ホスト機器から送信されたデータと前記第1の機能モジュールから送信されたデータを格納する記憶部と、前記ホスト機器が指定した論理アドレスを前記記憶部の物理アドレスに変換するためのホスト機器用のアドレス変換テーブルと、前記第1の機能モジュールが指定した論理アドレスを前記記憶部の物理アドレスに変換するための第1の機能モジュール用のアドレス変換テーブルと、を有し、
前記ホスト機器からのコマンドが、前記第1の機能モジュールが前記第2の機能モジュールに格納したデータを前記ホスト機器が読み出すコマンドであると、前記判断手段が判断した場合、前記ホスト機器からのコマンドを前記判断手段から前記第1の機能モジュールに送信するステップと、
前記第1の機能モジュールから前記第2の機能モジュールに、前記ホスト機器からのコマンドを転送するステップと、
前記第2の機能モジュールが、転送された前記ホスト機器からのコマンドに基づいて、前記第1の機能モジュール用のアドレス変換テーブルを使用して、前記記憶部に格納した前記第1の機能モジュールのデータを読み出して、前記第1の機能モジュールに送信するステップと、
前記第1の機能モジュールが、前記第2の機能モジュールから受信した前記データを、前記ホスト機器に送信するステップと、
を有することを特徴とする請求項5に記載のICカードの制御方法。
The IC card further includes a determination unit that decodes a command transmitted from the host device and determines which of the first functional module and the second functional module should be processed,
The second functional module includes a storage unit for storing data transmitted from the host device and data transmitted from the first functional module, and a logical address designated by the host device as a physical address of the storage unit. An address conversion table for the host device for converting to a logical address, and an address conversion table for the first functional module for converting a logical address designated by the first functional module into a physical address of the storage unit, Have
When the determination unit determines that the command from the host device is a command for the host device to read data stored in the second functional module by the first functional module, the command from the host device Transmitting from the determination means to the first functional module ;
Transferring a command from the host device from the first functional module to the second functional module;
Based on the transferred command from the host device, the second functional module uses the first functional module address conversion table to store the first functional module stored in the storage unit. Reading data and sending it to the first functional module;
The first functional module transmitting the data received from the second functional module to the host device;
The IC card control method according to claim 5, further comprising:
前記第1の機能モジュールが生成した前記データを、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだ場合、
前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータを特定するための読み出し情報を、前記第1の機能モジュールから前記ホスト機器に伝送するステップと、
前記第2の機能モジュールに書き込まれた前記第1の機能モジュールのデータの前記読み出し情報を前記第2の機能モジュールで管理するステップと、
その後、前記読み出し情報を含み且つ前記第1の機能モジュールが書き込んだデータの読み出しを要求するコマンドが前記ホスト機器から前記第2の機能モジュールに直接送信されると、前記読み出し情報に基づいて、前記第1の機能モジュールが書き込んだ前記データを特定し、前記第2の機能モジュールから前記ホスト機器に直接送信するステップと、
を有することを特徴とする請求項5又は請求項6に記載のICカードの制御方法。
When the first functional module writes the data generated by the first functional module into the second functional module,
Transmitting read information for identifying data written by the first functional module to the second functional module from the first functional module to the host device;
Managing the read information of the data of the first functional module written in the second functional module with the second functional module;
Thereafter, when a command including the read information and requesting reading of the data written by the first functional module is directly transmitted from the host device to the second functional module, based on the read information, Identifying the data written by the first functional module and transmitting it directly from the second functional module to the host device;
The method of controlling an IC card according to claim 5 or 6, characterized by comprising:
前記読み出し情報は、前記第1の機能モジュールが前記第2の機能モジュールに書き込んだデータのファイルの識別情報であることを特徴とする請求項7に記載のICカードの制御方法。 8. The IC card control method according to claim 7 , wherein the read information is identification information of a file of data written by the first functional module to the second functional module .
JP2003363377A 2003-10-23 2003-10-23 IC card and control method thereof Expired - Fee Related JP3837407B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003363377A JP3837407B2 (en) 2003-10-23 2003-10-23 IC card and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003363377A JP3837407B2 (en) 2003-10-23 2003-10-23 IC card and control method thereof

Publications (2)

Publication Number Publication Date
JP2005128769A JP2005128769A (en) 2005-05-19
JP3837407B2 true JP3837407B2 (en) 2006-10-25

Family

ID=34642724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003363377A Expired - Fee Related JP3837407B2 (en) 2003-10-23 2003-10-23 IC card and control method thereof

Country Status (1)

Country Link
JP (1) JP3837407B2 (en)

Also Published As

Publication number Publication date
JP2005128769A (en) 2005-05-19

Similar Documents

Publication Publication Date Title
CN107077304B (en) Data conversion equipment, chip, method, apparatus and image system
KR101111946B1 (en) Imaging device, image signal processor and method for sharing memory among chips
JP5014344B2 (en) MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, ACCESS DEVICE, AND NONVOLATILE STORAGE SYSTEM
JP5531753B2 (en) Data recording apparatus and digital camera
JP2001189886A (en) Image pickup device, information processor, system and method for processing image and storage medium
WO2010134300A1 (en) Memory controller, nonvolatile storage device, accessing device, nonvolatile storage system, and method and program for writing data
CN206162501U (en) Data conversion equipment, chip, and image system
US8572307B2 (en) Memory controller, memory card, and nonvolatile memory system
JP2007164355A (en) Non-volatile storage device, data reading method therefor, and data writing method therefor
JPH0937205A (en) Electronic still camera
JP3996962B2 (en) Digital camera
JP3837407B2 (en) IC card and control method thereof
KR100736902B1 (en) Method and apparatus for sharing memory by a plurality of processors
KR101258011B1 (en) Method and device of controlling memory area of the multi-port memory device in the Memorry Link Architecture
JP4262220B2 (en) Digital camera
JP3017524B2 (en) Data recording method and IC memory card system in IC memory card
CN113785308A (en) Recording apparatus, recording method, program, and memory card
JP2005100507A (en) Information recorder
KR100547789B1 (en) Portable terminal and method for exchanging data with external device using internal storage media
JP4817634B2 (en) Data storage
JPWO2018084004A1 (en) Device control apparatus, device apparatus, control method, program, and device control system
JP2004213487A (en) Card type device
JP4930825B2 (en) Imaging device and data transfer device
JPWO2008102610A1 (en) MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, AND NONVOLATILE STORAGE SYSTEM
JP4067418B2 (en) Digital camera

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050524

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060324

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060725

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060731

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090804

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100804

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110804

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120804

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130804

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees