JP2005284805A - Small memory card adapter and information apparatus - Google Patents

Small memory card adapter and information apparatus Download PDF

Info

Publication number
JP2005284805A
JP2005284805A JP2004098989A JP2004098989A JP2005284805A JP 2005284805 A JP2005284805 A JP 2005284805A JP 2004098989 A JP2004098989 A JP 2004098989A JP 2004098989 A JP2004098989 A JP 2004098989A JP 2005284805 A JP2005284805 A JP 2005284805A
Authority
JP
Japan
Prior art keywords
memory card
small memory
card
information device
small
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.)
Pending
Application number
JP2004098989A
Other languages
Japanese (ja)
Inventor
Maki Kurihara
真樹 栗原
Masahiro Nakamura
雅裕 中村
Mitsuhiro Watanabe
光洋 渡辺
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 Holdings Corp
Original Assignee
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004098989A priority Critical patent/JP2005284805A/en
Publication of JP2005284805A publication Critical patent/JP2005284805A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a small memory card adapter and an information apparatus that can check whether a small memory card is inserted or removed even when a card monitoring part can not detect insertion/removal of the small memory card. <P>SOLUTION: In a configuration having a host, the small card adapter and a small card, a driver installed on the host, or a controller and firmware for controlling the small card adapter can solve the identification problem of the small card by software to identify the small card and avoid damage to data from accidental writing or the like even when the small card detection part providing a hardware solution fails in detection. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、小型メモリーカードを情報機器に接続するために前記小型メモリーカードが装着される小型メモリーカードアダプタ及びそれを用いる情報機器に関する。   The present invention relates to a small memory card adapter to which the small memory card is mounted in order to connect the small memory card to an information device, and an information device using the small memory card adapter.

近年、小型メモリーカードは、パーソナルコンピュータ、デジタルカメラ、PDA(Personal Digital Assistance)およびハンディターミナルなどに利用されている。デジタルカメラでは、PCカードATA規格インターフェイスに準拠しないSD(Secure Digital)メモリーカードなどが小型メモリーカードとして各種データを保存するために頻繁に利用され、この小型メモリーカードに保存された各種データをパーソナルコンピュータが読み書きできるようにするための小型メモリーカードアダプタもよく利用されている。   In recent years, small memory cards are used in personal computers, digital cameras, PDAs (Personal Digital Assistance), handy terminals, and the like. In digital cameras, SD (Secure Digital) memory cards that do not conform to the PC card ATA standard interface are frequently used to store various data as small memory cards, and the various data stored in these small memory cards are stored in personal computers. Small memory card adapters are also often used to help read and write.

PCカードATA規格インターフェイスにおいて、カード検知端子がGNDになることで、カードが装着されている状態を検知している。従来の小型メモリーカードアダプタでは、このことを利用し、図1のようにPCカードATA規格インターフェイスのカード検知端子に接続された、小型メモリーカード検出端子コネクタ101が、小型メモリーカードが装着されることによってGNDとなることによって、小型メモリーカードがカードスロットに装着されているか否かを確認している。   In the PC card ATA standard interface, when the card detection terminal is set to GND, a state where the card is mounted is detected. In the conventional small memory card adapter, by utilizing this fact, the small memory card detection terminal connector 101 connected to the card detection terminal of the PC card ATA standard interface as shown in FIG. By becoming GND, it is confirmed whether or not a small memory card is mounted in the card slot.

また、他の従来の小型メモリーカード検出方法として、小型メモリーカードの1端子をGNDとし、その1端子をカード検出専用端子として用い、PCカードATA規格インターフェイスのカード検知端子に接続することにより、小型メモリーカードがカードスロットに装着されているか否かを確認している。   As another conventional method for detecting a small memory card, one terminal of a small memory card is set to GND, and that one terminal is used as a card detection dedicated terminal and is connected to a card detection terminal of a PC card ATA standard interface. Checks whether a memory card is installed in the card slot.

また、他の従来のメモリーカード検出方法では、第一の電源をメモリーカード、カードコントローラ及び演算部に供給し、第一の電源とは異なる電圧の第二の電源をカード検知部及びメモリに供給する。演算部は、第一の電源及び第二の電源が供給されたとき、初期設定の後に、カードコントローラを制御してメモリーカードの情報を読みとらせ、第二の電源の供給中に第一の電源の供給が停止されたとき、メモリの所定領域にカードの情報をセーブしてマスクする。そして、第一の電源の供給が再度供給されたとき、カードコントローラにセーブした情報を書き込み、メモリの所定領域のマスクを解除し、カードコントローラの情報を書き込みする。次に、カード割り込みがあったとき、メモリの所定領域の情報に基づくカード読みとり処理を実施する。また、カード検知部は、第二の電源の供給に基づいて動作状態になり、カードの挿入または抜き取りを検出し、挿抜があったときカードの割り込み信号を発生する。(例えば、特許文献1参照)
特開平7−281794号公報
In another conventional memory card detection method, the first power source is supplied to the memory card, the card controller, and the arithmetic unit, and the second power source having a voltage different from that of the first power source is supplied to the card detector unit and the memory. To do. When the first power supply and the second power supply are supplied, the arithmetic unit controls the card controller to read the information on the memory card after the initial setting, and the first power supply is supplied during the second power supply. When the power supply is stopped, the card information is saved and masked in a predetermined area of the memory. When the first power supply is supplied again, the saved information is written into the card controller, the mask of the predetermined area of the memory is released, and the card controller information is written. Next, when a card interruption occurs, a card reading process based on information in a predetermined area of the memory is performed. Further, the card detection unit enters an operation state based on the supply of the second power, detects insertion or removal of the card, and generates an interrupt signal for the card when the card is inserted or removed. (For example, see Patent Document 1)
JP-A-7-281794

上記のような手法で小型メモリーカードの挿抜を検知している場合、小型メモリーカード形状変換アダプタを用いたり、小型メモリーカード検知端子が破損していたりすると、小型メモリーカードが抜き取られ、他種の小型メモリーカード交換されたとしても、その交換を検知できないという欠点を有していた。   When the insertion / removal of a small memory card is detected by the method described above, if a small memory card shape conversion adapter is used or the small memory card detection terminal is damaged, the small memory card will be removed and other types will be removed. Even if a small memory card is replaced, it has the disadvantage that the replacement cannot be detected.

例えば、図1のようにminiSDカード(103)を小型メモリーカード形状変換アダプタ(102)を用いてSDメモリーカードの形状に変換するような場合である。この
場合、miniSDカード(103)をSDメモリーカード形状に変換した状態(状態1A)で、小型メモリーカードアダプタに挿入した後に、miniSDカードのみを抜き取り(状態1B)、別のminiSDカード(104)を挿入した場合(状態1C)、miniSDカードを交換されたことを、情報機器が検知できない。この状態で、miniSDカードに対し、アクセス行為を行うと、交換前のFAT情報がOSにて保存されているため、OSは小型メモリーカードが交換されたとしても、その保存されたFAT情報を参照して、交換後の小型メモリーカードにアクセス行為を行う。そのため、交換された後のminiSDカード内のデータが破壊されるという欠点を有していた。
For example, as shown in FIG. 1, a miniSD card (103) is converted into the shape of an SD memory card using a small memory card shape conversion adapter (102). In this case, after the miniSD card (103) is converted into the SD memory card shape (state 1A), after inserting into the small memory card adapter, only the miniSD card is removed (state 1B) and another miniSD card (104) is inserted. If this occurs (state 1C), the information device cannot detect that the miniSD card has been replaced. In this state, when the miniSD card is accessed, the FAT information before the replacement is stored in the OS, so the OS refers to the stored FAT information even if the small memory card is replaced. Then, access to the small memory card after replacement is performed. For this reason, the data in the miniSD card after the exchange is destroyed.

本発明に係る小型メモリーカードアダプタは、小型メモリーカードを情報機器に接続するために前記小型メモリーカードが装着される小型メモリーカードアダプタであって、装着された小型メモリーカードの種類を識別するソフトウェアによる小型メモリカード識別手段と、小型メモリーカード識別手段によって識別された小型メモリーカードの種類に基づいて、前記情報機器が発行したドライバ命令を受け取り、受け取ったそのドライバ命令を前記小型メモリーカードへ転送する転送手段と、小型メモリーカード識別情報を取得するコントローラとを具備することを特徴とする。   A small memory card adapter according to the present invention is a small memory card adapter to which the small memory card is mounted in order to connect the small memory card to an information device, and is a small memory by software for identifying the type of the mounted small memory card. A card identification unit; and a transfer unit that receives a driver command issued by the information device based on the type of the small memory card identified by the small memory card identification unit and transfers the received driver command to the small memory card; And a controller for acquiring small memory card identification information.

本発明に係る情報機器は、小型メモリーカードアダプタが装着される情報機器であって、前記小型メモリーカードアダプタを装着するためのスロットと、小型メモリーカードアダプタに設けられた小型メモリーカード識別手段によって識別された小型メモリーカードの種類に基づいて、前記小型メモリーカードへ転送するためのドライバ命令を発行するドライバソフトウェアとを具備することを特徴とする。   An information device according to the present invention is an information device to which a small memory card adapter is mounted, and the small memory card identified by a slot for mounting the small memory card adapter and a small memory card identifying means provided in the small memory card adapter. And driver software that issues a driver command for transferring to the small memory card based on the type of the memory card.

本発明に係る小型メモリーカードアダプタは、前記情報機器と小型メモリーカード間のデータ通信においてエラーが発生した際に識別情報を保存し、エラー発生前に保存した識別情報と比較するファームウェアとコントローラを具備することを特徴とする。   A small memory card adapter according to the present invention includes firmware and a controller that store identification information when an error occurs in data communication between the information device and the small memory card, and compare the identification information stored before the error occurs. It is characterized by that.

本発明に係る小型メモリーカードアダプタは、定期的に小型メモリーカードの識別情報を取得する手段を有するファームウェアとコントローラを具備することを特徴とする。   The small memory card adapter according to the present invention includes a firmware and a controller having means for periodically obtaining identification information of the small memory card.

本発明に係る小型メモリーカードアダプタは、小型メモリーカードごとの識別情報であるCID(Card IDentification)を取得し保持することを特徴とする。   The small memory card adapter according to the present invention is characterized by acquiring and holding CID (Card IDentification) which is identification information for each small memory card.

本発明に係る小型メモリーカードアダプタは、SDメモリーカードとマルチメディアカードの識別情報であるCIDを保存する際に、前記SDメモリカードのCIDか前記マルチメディアカードのCIDかを判断する情報を保持するデータ構造を具備する。   The small memory card adapter according to the present invention stores data for determining whether the CID of the SD memory card or the multimedia card when storing the CID which is identification information of the SD memory card and the multimedia card. It has a structure.

本発明に係る情報機器は、小型メモリーカードを装着した際に、小型メモリーカード識別を行うコマンドをコントローラに発行し、コントローラが取得した識別情報を保存するドライバソフトウェアを具備することを特徴とする。   An information device according to the present invention includes driver software that issues a command for identifying a small memory card to the controller when the small memory card is mounted, and stores the identification information acquired by the controller.

本発明に係る情報機器は、情報機器と小型メモリーカード間のデータ通信においてエラーが発生した際に識別情報を保存し、エラー発生前に保存した識別情報と比較するドライバソフトウェアを具備することを特徴とする。   An information device according to the present invention includes driver software that stores identification information when an error occurs in data communication between the information device and the small memory card, and compares the identification information with the information stored before the error occurs. And

本発明に係る情報機器は、定期的に小型メモリーカードの識別情報を取得する手段を有するドライバソフトウェアを具備することを特徴とする。   An information device according to the present invention includes driver software having means for periodically acquiring identification information of a small memory card.

本発明に係る情報機器は、小型メモリーカードごとの識別情報であるCIDを保持するドライバソフトウェアを具備することを特徴とする。   An information device according to the present invention includes driver software that holds CID, which is identification information for each small memory card.

本発明に係る情報機器は、SDメモリーカードとマルチメディアカードの識別情報であるCIDを保存する際に、前記CIDの未使用領域に、前記SDメモリカードのCIDか前記マルチメディアカードのCIDかを判断する情報を保持することを特徴とする。   When the information device according to the present invention stores the CID, which is identification information of the SD memory card and the multimedia card, the CID of the SD memory card or the CID of the multimedia card is stored in the unused area of the CID. It holds the information to be judged.

本発明に係る情報機器は、小型メモリーカードを情報機器に接続するための小型メモリーカードスロットをもつ情報機器であって、装着された小型メモリーカードの種類を識別するソフトウェアによる小型メモリカード識別手段と、小型メモリーカード識別手段によって識別された小型メモリーカードの種類に基づいて、小型メモリーカード制御命令を発行し、小型メモリーカード識別情報を取得するコントローラを具備することを特徴とする。   An information device according to the present invention is an information device having a small memory card slot for connecting a small memory card to the information device, and includes a small memory card identifying means by software for identifying the type of the small memory card mounted. And a controller for issuing a small memory card control command and acquiring small memory card identification information based on the type of the small memory card identified by the small memory card identifying means.

従来技術では、小型メモリーカード監視部が小型メモリーカードの挿抜を検知できない場合において、小型メモリーカード内のデータを破壊させる可能性があった。しかし、本発明により、カード監視部が小型メモリーカードの挿抜を検知できない場合においても、小型メモリーカードが挿抜されたかどうかを確認できる。それにより、小型メモリーカードが交換された場合において、小型メモリーカード内のデータが破壊される事を防ぐことができる。また、小型メモリーカードの検知を行うのはソフトウェアであり、機構的スイッチや電気的な回路を要しないため、省スペース化・低コスト化できる。   In the conventional technology, there is a possibility that data in the small memory card may be destroyed when the small memory card monitoring unit cannot detect insertion / removal of the small memory card. However, according to the present invention, even when the card monitoring unit cannot detect insertion / removal of the small memory card, it can be confirmed whether or not the small memory card is inserted / removed. Thereby, when the small memory card is replaced, the data in the small memory card can be prevented from being destroyed. In addition, the software that detects small memory cards is software, and no mechanical switch or electrical circuit is required, saving space and cost.

以下本発明を実施するための最良の形態について、図面を参照しながら説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

(実施の形態1)
本発明の請求項1、2の実施形態について図面を参照しながら説明する。図2は、一般的な小型メモリーカードアダプタの構成図を示している。201は、小型メモリーカードアダプタ202と通信するホストコンピュータである。202はホストコンピュータ201と小型メモリーカード203との仲介の役目を担う装置である。203は小型メモリーカードアダプタ202に装着され、通信する装置である。204はホストコンピュータにインストールされるドライバである。205は小型メモリーカードアダプタ202を制御するファームウェアである。これらの構成のうち、小型メモリーカードアダプタ202を制御するファームウェア205の動作について、図3、図4のフローチャートを用いて説明する。
(Embodiment 1)
Embodiments of claims 1 and 2 of the present invention will be described with reference to the drawings. FIG. 2 shows a configuration diagram of a general small memory card adapter. A host computer 201 communicates with the small memory card adapter 202. A device 202 serves as an intermediary between the host computer 201 and the small memory card 203. A device 203 is attached to the small memory card adapter 202 and communicates. Reference numeral 204 denotes a driver installed in the host computer. Reference numeral 205 denotes firmware that controls the small memory card adapter 202. Of these configurations, the operation of the firmware 205 for controlling the small memory card adapter 202 will be described with reference to the flowcharts of FIGS.

図3は小型メモリーカード203が小型メモリーカードアダプタに装着されたときのファームウェア205の動作フローチャートである。ファームウェア205は、小型メモリーカードが装着されると、手順302によりその識別情報の取得を行う。次に手順303により、取得した識別情報を保存し、手順304により通信可能状態へ遷移する。 図4は小型メモリーカード203との通信を終了した後のファームウェア205の動作フローチャートである。ファームウェア205は、小型メモリーカード203との通信終了後に、手順402によりその通信がエラーであったかの確認を行う。エラーでない場合は、手順403により通常処理に遷移する。エラーだった場合は、手順404により再度、小型メモリーカード203に対して識別情報の取得を行う。次に手順405により、直前に取得した識別情報と、手順302により取得した識別情報とを比較する。手順406による比較結果参照により、一致した場合は、手順408によりアクセスを許可し、手順409によりエラー回復処理を行ったあと、手順410により再び通信可能状態へ遷移する。手順406による比較結果参照により、不一致だった場合は、手順407により、以降のア
クセスを禁止する。
FIG. 3 is an operation flowchart of the firmware 205 when the small memory card 203 is attached to the small memory card adapter. When the small memory card is inserted, the firmware 205 acquires the identification information by the procedure 302. Next, in step 303, the acquired identification information is stored, and in step 304, the state transits to a communicable state. FIG. 4 is an operation flowchart of the firmware 205 after the communication with the small memory card 203 is completed. After the communication with the small memory card 203 is completed, the firmware 205 confirms whether the communication is an error according to the procedure 402. If it is not an error, the process proceeds to normal processing in step 403. If there is an error, the identification information is acquired again for the small memory card 203 in step 404. Next, in step 405, the identification information acquired immediately before is compared with the identification information acquired in step 302. If they match by referring to the comparison result in step 406, access is permitted in step 408, error recovery processing is performed in step 409, and then transition is made to a communicable state again in step 410. If there is a mismatch due to the comparison result reference in step 406, subsequent access is prohibited in step 407.

以上に述べた手順により、不意に小型メモリーカードが交換され、識別情報が異なった小型メモリーカードに対する通信を制限し、データの破壊を回避する。   By the procedure described above, a small memory card is unexpectedly replaced, communication with a small memory card with different identification information is restricted, and data destruction is avoided.

(実施の形態2)
以下本発明の請求項4の実施形態について図面を参照しながら説明する。実施の形態1では、一般的な小型メモリーカードに対する実施の形態を述べたが、単純に小型メモリーカードが持つ識別情報を比較するだけでは、識別できない場合がある。そのようなケースについて図5を用いて説明する。図5はSDメモリーカードもしくはマルチメディアカードの識別情報であるCIDの構成を示している。SDメモリーカードもしくはマルチメディアカードのCIDは図5のCID情報(501)と未使用領域(502)とで構成される。SDメモリーカードもしくはマルチメディアカードのCID情報(501)の内部構成は同じであり、規格上、SDメモリカードとマルチメディアカードを区別するように規定されていない。そのため、CID情報(501)のみを比較した場合、SDメモリカード同士、もしくはマルチメディアカード同士の識別を行うことは可能であるが、SDメモリカードとマルチメディアカードの識別を行えない可能性がある。そこで、この未使用領域(502)を利用することで、SDメモリカードとマルチメディアカードを識別する方法について、図6、図7のフローチャートを用いて説明する。
(Embodiment 2)
An embodiment of claim 4 of the present invention will be described below with reference to the drawings. In the first embodiment, an embodiment for a general small memory card has been described. However, there are cases where identification cannot be performed simply by comparing identification information held by the small memory card. Such a case will be described with reference to FIG. FIG. 5 shows the configuration of a CID that is identification information of an SD memory card or multimedia card. The CID of the SD memory card or multimedia card is composed of the CID information (501) and the unused area (502) in FIG. The internal structure of the CID information (501) of the SD memory card or the multimedia card is the same, and the standard does not specify that the SD memory card and the multimedia card be distinguished from each other. Therefore, when only the CID information (501) is compared, the SD memory cards or the multimedia cards can be identified, but the SD memory card and the multimedia card may not be identified. . Therefore, a method of identifying the SD memory card and the multimedia card by using this unused area (502) will be described with reference to the flowcharts of FIGS.

図6は、SDメモリカードもしくはマルチメディアカードの初期化時のファームウェア205の動作フローチャートである。また、図7はSDメモリーカードもしくはマルチメディアカードとの通信を終了した後のファームウェア205の動作フローチャートである。ファームウェア205は、SDメモリーカードもしくはマルチメディアカードが装着されると、手順602により小型メモリーカードの初期化を行い、初期化の過程でSDメモリーカードもしくはマルチメディアカードの判断を行う。次に、手順603によりCIDを取得する。手順604によるエラーフラグセットの確認を行い、エラーフラグがセットされていない場合、手順605により取得したCIDを保存する。次に、手順606により、保存したCIDの未使用領域に、手順602の初期化の過程で判断したSDメモリーカードもしくはマルチメディアカードの情報を503もしくは504のように格納する。その後、手順612によりアクセス許可となり、手順613により通信可能状態へ遷移する。この状態でSDメモリーカードもしくはマルチメディアカードへの通信が発生し、手順701の小型メモリーカードへの通信が終了した後、手順702によりその通信がエラーであったかの確認を行う。エラーでなかった場合は、手順703により通常処理に遷移する。エラーだった場合は、手順704によりエラーフラグのセットを行い、手順601により再度SDメモリーカードもしくはマルチメディアカードの初期化を行う。前述同様、手順602、603により初期化の過程でSDメモリーカードもしくはマルチメディアカードの判断を行い、CIDを取得する。手順604では、前述の手603でエラーフラグがセットされているため、手順607のCID情報比較へ移行し、保存済みのCID情報と、直前で取得したCIDのCID情報との比較を行う。手順608の判定により、不一致だった場合は、手順614により以降の小型メモリーカードへのアクセスを禁止する。一致した場合は、手順609に移行し、未使用領域に保存済みのSDメモリーカードもしくはマルチメディアカード情報の比較を行う。手順610の判定により不一致だった場合は、手順614により以降のアクセスを禁止する。一致した場合は、手順611によりエラー回復処理を行い、手順612によりアクセスを許可し、手順513により通信可能状態へ遷移する。   FIG. 6 is an operation flowchart of the firmware 205 when the SD memory card or multimedia card is initialized. FIG. 7 is an operation flowchart of the firmware 205 after communication with the SD memory card or multimedia card is completed. When the SD memory card or the multimedia card is inserted, the firmware 205 initializes the small memory card in step 602, and determines the SD memory card or the multimedia card in the initialization process. Next, the CID is acquired by the procedure 603. The error flag set is checked in step 604. If the error flag is not set, the CID acquired in step 605 is saved. Next, in step 606, information on the SD memory card or multimedia card determined in the initialization process in step 602 is stored in the unused area of the saved CID as in 503 or 504. Thereafter, the access is permitted by the procedure 612, and the procedure transits to the communicable state by the procedure 613. In this state, communication to the SD memory card or multimedia card occurs, and after the communication to the small memory card in the procedure 701 is completed, it is confirmed in the procedure 702 whether the communication is an error. If it is not an error, the process proceeds to the normal process in step 703. If there is an error, an error flag is set in step 704, and the SD memory card or multimedia card is initialized again in step 601. As described above, the SD memory card or multimedia card is determined during the initialization process in steps 602 and 603, and the CID is acquired. In step 604, since the error flag is set in the above-described hand 603, the process proceeds to CID information comparison in step 607, and the stored CID information is compared with the CID information of the CID acquired immediately before. If the result of determination in step 608 is that they do not match, subsequent access to the small memory card is prohibited in step 614. If they match, the process proceeds to step 609 to compare the SD memory card or multimedia card information stored in the unused area. If there is a mismatch according to the determination in step 610, subsequent access is prohibited in step 614. If they match, error recovery processing is performed in step 611, access is permitted in step 612, and a transition to a communicable state is made in step 513.

以上に述べた手順により、SDメモリカードとマルチメディアカードの識別を行い、データの破壊を回避する。   According to the procedure described above, the SD memory card and the multimedia card are identified and data destruction is avoided.

(実施の形態3)
以下、本発明の請求項5の実施の形態について図面を参照ながら説明する。実施の形態1、実施の形態2、実施の形態3においては、小型メモリーカードアダプタ202及びファームウェア205における実施の形態を述べたが、本形態では、ホストコンピュータ201にインストールされるドライバにて実現する際の動作について、図8、図9、図10を用いて説明する。
(Embodiment 3)
Hereinafter, an embodiment of claim 5 of the present invention will be described with reference to the drawings. In the first embodiment, the second embodiment, and the third embodiment, the embodiments of the small memory card adapter 202 and the firmware 205 have been described. However, in the present embodiment, the driver is installed in the host computer 201. Will be described with reference to FIGS. 8, 9, and 10. FIG.

図8は図2において、小型メモリーカード203が小型メモリーカードアダプタ202に装着された状態で、ホストコンピュータ201に装着した場合おけるドライバ204の動作フローチャートである。   FIG. 8 is an operation flowchart of the driver 204 when the small memory card 203 is mounted on the host computer 201 in the state where the small memory card 203 is mounted on the small memory card adapter 202 in FIG.

小型メモリーカードが装着されると、ファームウェア205により、小型メモリーカードが初期化される。初期化の後、ドライバは、装着小型メモリーカードを手順803によりSDメモリーカードもしくはマルチメディアカードの判断をする。マルチメディアカードの場合、通信可能状態(807)へ遷移する。SDの場合は、手順804にてSDメモリーカードに対してのみ有効な小型メモリーカード識別コマンドをファームウェア105に対し発行し、小型メモリーカードがSDメモリーカードであることを再度確認し、SDメモリーカードでない場合は通信可能状態(807)へ遷移し、SDメモリーカードの場合は手順805にて識別情報を取得、手順806にて保存し、通信可能状態(807)へ遷移する。   When the small memory card is inserted, the small memory card is initialized by the firmware 205. After the initialization, the driver determines whether the mounted small memory card is an SD memory card or a multimedia card in step 803. In the case of a multimedia card, the state transits to a communicable state (807). In the case of SD, in step 804, a small memory card identification command that is valid only for the SD memory card is issued to the firmware 105, confirms again that the small memory card is an SD memory card, and is not an SD memory card. In the case of an SD memory card, the identification information is acquired in step 805, stored in step 806, and transferred to the communication ready state (807).

図9は小型メモリーカードアダプタ202を経由して小型メモリーカード203との通信を終了した後のドライバ204の動作フローチャートである。ドライバ204は、小型メモリーカード203との通信終了後に、手順902によりその通信がエラーであったかの確認を行う。エラーでない場合は、手順906により通常処理に遷移する。エラーの場合は、手順903によりSDメモリーカードもしくはマルチメディアカードの判断をする。マルチメディアカードの場合は、手順907により小型メモリーカード交換フラグをクリアし、手順908にてアクセス禁止フラグをセットした後、通常処理を行う。SDメモリーカードの場合は、手順904にて小型メモリーカード交換フラグをセットした後、通常処理を行う。   FIG. 9 is an operation flowchart of the driver 204 after communication with the small memory card 203 is completed via the small memory card adapter 202. After the communication with the small memory card 203 is completed, the driver 204 confirms whether the communication is an error according to the procedure 902. If there is no error, the procedure proceeds to normal processing according to step 906. In the case of an error, the SD memory card or the multimedia card is determined in step 903. In the case of a multimedia card, the small memory card replacement flag is cleared in step 907, the access prohibition flag is set in step 908, and normal processing is performed. In the case of an SD memory card, after the small memory card replacement flag is set in step 904, normal processing is performed.

図10はホストコンピュータ201から小型メモリーカードへのアクセス要求があった時のドライバ204のフローチャートである。ドライバ204は、ホストコンピュータ201から小型メモリーカードへのアクセス要求があると、手順1002にてアクセス禁止フラグを確認し、アクセス禁止と判断すると、小型メモリーカードアクセスフラグをセットしたまま(1010)とし、以降のアクセスを禁止する(1011)。アクセス可能と判断した場合、手順1003にて小型メモリーカード交換フラグを確認する。小型メモリーカード交換がされていない場合、通信可能状態へ遷移する(1009)。小型メモリーカードが交換されたと判断すると、手順1004にてSDメモリーカードに対してのみ有効な小型メモリーカード識別コマンドをファームウェア205に対し発行し、小型メモリーカードがSDメモリーカードであることを確認する。小型メモリーカードがSDメモリーカードではない場合、手順1010にてアクセス禁止フラグをセットし、以降のアクセスを禁止する(1011)。小型メモリーカードがSDメモリーカードの場合、手順1005にて識別情報を取得し、手順1006にてその識別情報を保存する。次に、手順1007にて小型メモリーカード装着時に手順806にて保存した識別情報と比較し、識別情報が一致しなければ、手順1010にてアクセス禁止フラグをセットし、以降のアクセスを禁止する(1011)。識別情報が一致すれば、手順1008にて小型メモリーカード交換フラグをクリアし、通信可能状態へ遷移する。(1009)。   FIG. 10 is a flowchart of the driver 204 when there is an access request from the host computer 201 to the small memory card. When there is a request for access to the small memory card from the host computer 201, the driver 204 checks the access prohibition flag in step 1002. If the driver 204 determines that access is prohibited, the driver 204 keeps setting the small memory card access flag (1010). Subsequent access is prohibited (1011). If it is determined that access is possible, the small memory card replacement flag is confirmed in step 1003. If the small memory card has not been replaced, a transition is made to a communicable state (1009). If it is determined that the small memory card has been replaced, a small memory card identification command that is valid only for the SD memory card is issued to the firmware 205 in step 1004 to confirm that the small memory card is an SD memory card. If the small memory card is not an SD memory card, an access prohibition flag is set in step 1010, and subsequent access is prohibited (1011). If the small memory card is an SD memory card, identification information is acquired in step 1005, and the identification information is stored in step 1006. Next, compared with the identification information stored in step 806 when the small memory card is mounted in step 1007, if the identification information does not match, an access prohibition flag is set in step 1010 and subsequent access is prohibited ( 1011). If the identification information matches, the small memory card replacement flag is cleared in step 1008, and a transition is made to a communicable state. (1009).

以上に述べた手順により、識別情報が異なった小型メモリーカード及びSDメモリカー
ドとマルチメディアカードの識別を行い、不意に小型メモリーカードが交換された場合の通信を制限し、データの破壊を回避する。
The above-described procedure identifies small memory cards with different identification information and SD memory cards and multimedia cards, restricts communication when a small memory card is unexpectedly replaced, and prevents data corruption. .

本発明にかかる小型メモリーカード識別方法および装置は、非機構的・非電気的な小型メモリーカード検知方法を有し、機構的検知方法で小型メモリーカードの挿抜状態を検知する小型メモリーカードアダプタにて、小型メモリーカード形状変換アダプタを用いた場合において、不意に小型メモリーカード挿抜され、小型メモリーカードが交換された場合においても、小型メモリーカード内のデータを破壊することがないため、貴重なデータを破壊されることがなくなり有用である。また、本発明と機構的検知方法の二重の検知方法を用いることで、機構的検知方法が正常に動作しない場合においても、誤ってデータを破壊することも極めて少なくなる。   A small memory card identification method and apparatus according to the present invention includes a non-mechanistic / non-electric small memory card detection method, and a small memory card adapter that detects a small memory card insertion / removal state by a mechanical detection method. When a small memory card shape conversion adapter is used, even if a small memory card is inserted or removed unexpectedly and the small memory card is replaced, the data in the small memory card will not be destroyed. It is useful because it is never done. Further, by using the double detection method of the present invention and the mechanical detection method, even when the mechanical detection method does not operate normally, the possibility of erroneous data destruction is extremely reduced.

一般的な小型メモリーカードアダプタを示す図Diagram showing a typical small memory card adapter 一般的な小型メモリーカードアダプタの構成図Configuration diagram of a general small memory card adapter 小型メモリーカード装着時のフロー図Flow chart when a small memory card is installed 小型メモリーカード通信終了後のフロー図Flow chart after communication with small memory card SDメモリーカードもしくはマルチメディアカードのCID領域構成図CID area configuration diagram of SD memory card or multimedia card SDメモリーカードもしくはマルチメディアカードの初期化フロー図SD memory card or multimedia card initialization flow diagram SDメモリーカードもしくはマルチメディアカードの通信終了後のフロー図Flow chart after communication of SD memory card or multimedia card 小型メモリーカード装着時のフロー図Flow chart when a small memory card is installed 小型メモリーカード通信エラー時のフロー図Flow chart for small memory card communication error アクセス前処理のフロー図Access pre-processing flowchart

符号の説明Explanation of symbols

101:小型メモリーカードスロットのカード検出端子
102:小型メモリーカード形状変換アダプタ
103:miniSDカード(A)
104:miniSDカード(B)
201:ホストコンピュータ
202:小型メモリーカードアダプタ
203:小型メモリーカード
204:ホストコンピュータにインストールされるドライバ
205:小型メモリーカードアダプタを制御するファームウェア
501:SDメモリーカードもしくはマルチメディアカードのCID内のCID情報
502:SDメモリーカードもしくはマルチメディアカードのCID内の未使用領域
101: Card detection terminal of a small memory card slot 102: Small memory card shape conversion adapter 103: MiniSD card (A)
104: miniSD card (B)
201: Host computer 202: Small memory card adapter 203: Small memory card 204: Driver installed in the host computer 205: Firmware that controls the small memory card adapter 501: CID information in the CID of the SD memory card or multimedia card 502: SD Unused area in CID of memory card or multimedia card

Claims (26)

情報機器に接続するために小型メモリーカードが装着される小型メモリーカードアダプタであって、装着された小型メモリーカードの種類を識別するソフトウェアによる小型メモリカード識別手段と、前記小型メモリーカード識別手段によって識別された前記小型メモリーカードの種類に基づいて、前記情報機器が発行したドライバ命令を受け取り、受け取った前記ドライバ命令を前記小型メモリーカードへ転送する転送手段と、前記小型メモリーカード識別情報を取得するコントローラを具備することを特徴とする小型メモリーカードアダプタ。   A small memory card adapter into which a small memory card is mounted for connection to an information device, and is identified by a small memory card identifying means by software for identifying the type of the small memory card mounted, and the small memory card identifying means. A transfer means for receiving a driver command issued by the information device based on the type of the small memory card and transferring the received driver command to the small memory card; and a controller for acquiring the small memory card identification information. A compact memory card adapter characterized by comprising. コントローラは小型メモリーカードを装着した際に小型メモリーカードの識別を行いその識別情報を保存する請求項1に記載の小型メモリーカードアダプタ。   The small memory card adapter according to claim 1, wherein the controller identifies the small memory card and stores the identification information when the small memory card is mounted. コントローラは情報機器と小型メモリーカード間のデータ通信においてエラーが発生した際に識別情報を保存してエラー発生前に保存した識別情報と比較する請求項1に記載の小型メモリーカードアダプタ。   2. The small memory card adapter according to claim 1, wherein the controller stores the identification information when an error occurs in data communication between the information device and the small memory card and compares the identification information with the identification information stored before the error occurs. コントローラは定期的に小型メモリーカードの識別情報を取得する手段を有する請求項1に記載の小型メモリーカードアダプタ。   2. The small memory card adapter according to claim 1, wherein the controller has means for periodically acquiring identification information of the small memory card. 小型メモリーカードの種類はデータを格納のするためのメモリー領域を持つカードとする請求項1に記載の小型メモリーカードアダプタ。   2. The small memory card adapter according to claim 1, wherein the small memory card is a card having a memory area for storing data. 小型メモリーカードは、SD(Secure Digital)メモリーカード、miniSDカード、マルチメディアカードを装着することができる請求項1に記載の小型メモリーカードアダプタ。   The small memory card adapter according to claim 1, wherein the small memory card is capable of mounting an SD (Secure Digital) memory card, a miniSD card, or a multimedia card. 小型メモリーカードを装着するために設けられたカードスロットを具備する請求項1に記載の小型メモリーカードアダプタ。   The small memory card adapter according to claim 1, further comprising a card slot provided for mounting a small memory card. コントローラは小型メモリーカード毎の識別情報であるCID(Card IDentification)を取得し保持する請求項1に記載の小型メモリーカードアダプタ。   The small memory card adapter according to claim 1, wherein the controller acquires and holds CID (Card IDentification) which is identification information for each small memory card. コントローラはSDメモリーカードとマルチメディアカードの識別情報であるCIDを保存する際に、前記SDメモリカードのCIDか前記マルチメディアカードのCIDかを判断する情報を保持するデータ構造を具備する請求項8に記載の小型メモリーカードアダプタ。   The controller includes a data structure for holding information for determining whether the CID of the SD memory card or the multimedia card when storing the CID which is identification information of the SD memory card and the multimedia card. Small memory card adapter as described in コントローラはカードスロットに挿入されている小型メモリーカードのCIDを一度保持した後、カードスロットに別の小型メモリーカードが挿入された時に取得したCIDが、あらかじめ保持した前記CIDと異なる場合、情報機器が発行したドライバ命令は、コントローラにより無効とし、小型メモリーカードに対しメモリーカード制御命令を発行しない機能を具備する請求項8に記載の小型メモリーカードアダプタ。   After the controller holds the CID of the small memory card inserted in the card slot once, and the CID acquired when another small memory card is inserted in the card slot is different from the previously held CID, the information device 9. The small memory card adapter according to claim 8, wherein the issued driver command is invalidated by the controller and has a function of not issuing a memory card control command to the small memory card. 情報機器はホストコンピュータである請求項1記載の小型メモリーカードアダプタ。   2. The small memory card adapter according to claim 1, wherein the information device is a host computer. ホストコンピュータはパーソナルコンピュータである請求項11に記載の小型メモリーカードアダプタ。   The small memory card adapter according to claim 11, wherein the host computer is a personal computer. 情報機器は、小型メモリーカードを動作させるためのOS命令を発行するためのOSと
、前記OSによって発行されたOS命令に基づいて、小型メモリーカードを動作させるためのOS命令を発行するためのドライバソフトウェアとを備えている請求項1に記載の小型メモリーカードアダプタ。
An information device includes an OS for issuing an OS command for operating a small memory card, and a driver for issuing an OS command for operating the small memory card based on the OS command issued by the OS. The small memory card adapter according to claim 1, further comprising software.
小型メモリーカードアダプタが装着される情報機器であって、前記小型メモリーカードアダプタを装着するためのスロットと、前記小型メモリーカードアダプタに設けられた小型メモリーカード識別手段によって識別された小型メモリーカードの種類に基づいて、前記小型メモリーカードへ転送するためのドライバ命令を発行するドライバソフトウェアを具備することを特徴とする情報機器。   An information device to which a small memory card adapter is mounted, based on a slot for mounting the small memory card adapter and a type of the small memory card identified by a small memory card identifying means provided in the small memory card adapter An information device comprising driver software for issuing a driver command for transferring to the small memory card. 小型メモリーカードを動作させるためのOS命令を発行するためのOSを具備し、ドライバソフトウェアは前記OSによって発行されたOS命令に基づいてドライバ命令を発行する請求項14に記載の情報機器。   15. The information device according to claim 14, further comprising an OS for issuing an OS command for operating the small memory card, wherein the driver software issues a driver command based on the OS command issued by the OS. ドライバソフトウェアによって発行されるドライバ命令は小型メモリーカードにメモリーカード制御命令するためのコマンドコードとパラメータとを含んでおり、前記コマンドコードと前記パラメータとはコントローラに設けられた複数のレジスタに設定される請求項14に記載の情報機器。   The driver instruction issued by the driver software includes a command code and a parameter for instructing a memory card control to the small memory card, and the command code and the parameter are set in a plurality of registers provided in the controller. The information device according to claim 14. ドライバソフトウェアは小型メモリーカードを装着した際に小型メモリーカード識別を行うコマンドをコントローラに発行し、前記コントローラが取得した識別情報を保存する請求項14に記載の情報機器。   15. The information device according to claim 14, wherein the driver software issues a command for identifying the small memory card to the controller when the small memory card is mounted, and stores the identification information acquired by the controller. ドライバソフトウェアは情報機器と小型メモリーカード間のデータ通信においてエラーが発生した際に識別情報を保存してエラー発生前に保存した識別情報と比較する請求項14に記載の情報機器。   15. The information device according to claim 14, wherein the driver software stores the identification information when an error occurs in data communication between the information device and the small memory card and compares it with the identification information stored before the error occurs. ドライバソフトウェアは定期的に小型メモリーカードの識別情報を取得する手段を有する請求項14に記載の情報機器。   15. The information device according to claim 14, wherein the driver software has means for periodically obtaining identification information of the small memory card. ドライバソフトウェアは小型メモリーカード毎の識別情報であるCIDを保持する請求項14に記載の情報機器。   15. The information device according to claim 14, wherein the driver software holds a CID that is identification information for each small memory card. ドライバソフトウェアはSDメモリーカードとマルチメディアカードの識別情報であるCIDを保存する際に前記CIDの未使用領域に前記SDメモリカードのCIDか前記マルチメディアカードのCIDかを判断する情報を保持するデータ構造を具備する請求項14に記載の情報機器。   When the driver software stores the CID, which is identification information of the SD memory card and the multimedia card, data that holds information for determining whether the CID of the SD memory card or the multimedia card is in an unused area of the CID The information device according to claim 14, further comprising a structure. ドライバソフトウェアはカードスロットに挿入されている前記小型メモリーカードのCIDを一度保持した後、カードスロットに別の小型メモリーカードが挿入された時に取得したCIDがあらかじめ保持した前記CIDと異なる場合にOSが発行する小型メモリーカードを動作させるためのOS命令は前記ドライバソフトウェアにより無効とし、小型メモリーカードに対しメモリーカード制御命令を発行しない機能を具備する請求項14に記載の情報機器。   The driver software once holds the CID of the small memory card inserted in the card slot, and then the OS detects when the CID acquired when another small memory card is inserted in the card slot is different from the previously held CID. 15. The information device according to claim 14, further comprising a function of invalidating an OS command for operating a small memory card to be issued by the driver software and not issuing a memory card control command to the small memory card. 情報機器はホストコンピュータである請求項14に記載の情報機器。   The information device according to claim 14, wherein the information device is a host computer. ホストコンピュータはパーソナルコンピュータである請求項23に記載の情報機器。   The information device according to claim 23, wherein the host computer is a personal computer. 小型メモリーカードを接続するための小型メモリーカードスロットを持つ情報機器であ
って請求項1、2、3、4、8、9、10のいずれかに記載のコントローラを具備した情報機器。
An information device having a small memory card slot for connecting a small memory card and comprising the controller according to any one of claims 1, 2, 3, 4, 8, 9, and 10.
小型メモリーカードを接続するための小型メモリーカードスロットを持つ情報機器であって、請求項14、16、17、18、19、20、21のいずれかに記載のドライバソフトウェアを具備した情報機器。   An information device having a small memory card slot for connecting a small memory card, comprising the driver software according to any one of claims 14, 16, 17, 18, 19, 20, and 21.
JP2004098989A 2004-03-30 2004-03-30 Small memory card adapter and information apparatus Pending JP2005284805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004098989A JP2005284805A (en) 2004-03-30 2004-03-30 Small memory card adapter and information apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004098989A JP2005284805A (en) 2004-03-30 2004-03-30 Small memory card adapter and information apparatus

Publications (1)

Publication Number Publication Date
JP2005284805A true JP2005284805A (en) 2005-10-13

Family

ID=35183104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004098989A Pending JP2005284805A (en) 2004-03-30 2004-03-30 Small memory card adapter and information apparatus

Country Status (1)

Country Link
JP (1) JP2005284805A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008097369A (en) * 2006-10-12 2008-04-24 Omron Corp Plc
WO2008142742A1 (en) * 2007-04-20 2008-11-27 Panasonic Corporation Insertion/removal detector
US8608072B2 (en) 2011-03-17 2013-12-17 Samsung Electronics Co., Ltd. Memory card socket and data processing device including the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008097369A (en) * 2006-10-12 2008-04-24 Omron Corp Plc
WO2008142742A1 (en) * 2007-04-20 2008-11-27 Panasonic Corporation Insertion/removal detector
JPWO2008142742A1 (en) * 2007-04-20 2010-08-05 パナソニック株式会社 Insertion / extraction detection device
US7970972B2 (en) 2007-04-20 2011-06-28 Panasonic Corporation Insertion/removal detector
US8608072B2 (en) 2011-03-17 2013-12-17 Samsung Electronics Co., Ltd. Memory card socket and data processing device including the same

Similar Documents

Publication Publication Date Title
US6813668B2 (en) Multi-functional electronic card capable of detecting removable cards
EP0552873B1 (en) Modifying system configuration in a computer system
US7007127B2 (en) Method and related apparatus for controlling transmission interface between an external device and a computer system
US7810727B2 (en) Card and host device
US20050038956A1 (en) Method and an apparatus of flash cards access
HU217158B (en) Method and circuit arrangement for automatic configuration of data processing system and expanding unit
JP2006209643A (en) Interface circuit and system device using the same
US7044385B2 (en) Apparatus and method for establishing data transfer mode through identification of card insertion
EP1403814B1 (en) Electronic apparatus, information processing apparatus, adapter apparatus, and information exchange system
US20040225836A1 (en) Portable USB storage device capable of being set to device mode or host mode
US7296097B2 (en) Memory card and initialization setting method thereof to avoid initializing operation failure in a memory card
US7970972B2 (en) Insertion/removal detector
US20080140972A1 (en) Memory card system with password confirmation and transmission
US6722572B2 (en) Recording medium control method, data management apparatus, and recording medium
JP2005284805A (en) Small memory card adapter and information apparatus
US7047565B2 (en) Method and system for capturing in-service date information
CN112380078A (en) USB equipment communication test method and test device
US20080155312A1 (en) Detection device
JP4215789B2 (en) Communication protocol conversion system, communication protocol conversion method, and communication protocol conversion cradle
US20030195716A1 (en) Interface device for product testing
US6996708B1 (en) Methods and apparatus for automatically selecting and loading initialization software for a hardware configuration
US20070134988A1 (en) Information processing apparatus in which memory cards of different sizes can be used
US6957289B2 (en) Bus system having improved control process
EP3451220B1 (en) Erasing device
JP2000276258A (en) Device and method for inserting/ejecting ide device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070301

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070412

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20091120

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100413

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100817