JP2005275501A - Device system - Google Patents

Device system Download PDF

Info

Publication number
JP2005275501A
JP2005275501A JP2004083991A JP2004083991A JP2005275501A JP 2005275501 A JP2005275501 A JP 2005275501A JP 2004083991 A JP2004083991 A JP 2004083991A JP 2004083991 A JP2004083991 A JP 2004083991A JP 2005275501 A JP2005275501 A JP 2005275501A
Authority
JP
Japan
Prior art keywords
card
command
host system
state
data transfer
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.)
Withdrawn
Application number
JP2004083991A
Other languages
Japanese (ja)
Inventor
Shinichi Suzuki
慎一 鈴木
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2004083991A priority Critical patent/JP2005275501A/en
Publication of JP2005275501A publication Critical patent/JP2005275501A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve an initialization process when a device different from a device currently connected to a system is connected to the system. <P>SOLUTION: When a controller 101 with a first device connected in a data transfer mode is further connected with a second device, the controller 101 shifts the first device to a standby state before shifting the second device to an idle state. The first card, which is in a standby state, does not receive the latter command to save a state transition process. This can shorten an access start time for the device to realize an improved initialization process when a device different from a device currently connected to the system is connected to the system. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、デバイスシステム、さらにはそれにおける初期化過程の効率化を図るための技術に関し、例えばマルチメディアカードに適用して有効な技術に関する。   The present invention relates to a device system and a technology for improving the efficiency of the initialization process in the device system, for example, a technology effective when applied to a multimedia card.

パーソナルコンピュータや多機能端末機などの外部記憶デバイスとして、メモリカードが急速に普及している。このメモリカードの1つとして、標準化団体であるMMCA(MultiMedia Card Association)が標準化したマルチメディアカードが広く知られている。このマルチメディアカードは、ディジタルカメラの静止画像記録、携帯電話のデータ記録、携帯音楽プレーヤの音楽記録などに用いられる(例えば特許文献1参照)。   Memory cards are rapidly spreading as external storage devices such as personal computers and multi-function terminals. As one of the memory cards, a multimedia card standardized by MMCA (MultiMedia Card Association) which is a standardization organization is widely known. This multimedia card is used for digital camera still image recording, cellular phone data recording, portable music player music recording, and the like (see, for example, Patent Document 1).

特開2003−50980号公報(第2段落〜)Japanese Patent Laying-Open No. 2003-50980 (from the second paragraph)

マルチメディアカードの規格によれば、一つのホストシステムで複数のマルチメディアカードを制御することができる。MMC規格のMMCモードでは、ホストシステムがカードをスタンバイ状態やトランスファー状態などのデータ転送モードに状態遷移させた後、データ転送が可能となる。この状態遷移に必要な過程を初期化過程と定義する。   According to the multimedia card standard, a plurality of multimedia cards can be controlled by a single host system. In the MMC mode of the MMC standard, data transfer is possible after the host system changes the state of the card to a data transfer mode such as a standby state or a transfer state. The process necessary for this state transition is defined as an initialization process.

しかしながら、現在結合されている第1メモリカードがデータ転送モードとされた状態で、その第1メモリカードとは別の第2メモリカードが新たに結合されたとき、この第2メモリカードとともに第1メモリカードもシステムによって初期化されることになり、それに要する時間や電力が無駄に消費されているのが、本願発明者によって見いだされた。   However, when a second memory card different from the first memory card is newly joined in a state where the first memory card that is currently joined is set to the data transfer mode, the first memory card and the second memory card are connected together. The inventor of the present application has found that the memory card is also initialized by the system, and the time and power required for the memory card are wasted.

本発明の目的は、システムに現在結合されているデバイスとは別のデバイスが上記システムに結合された場合の初期化過程を改善することにある。   It is an object of the present invention to improve the initialization process when a device other than the device currently coupled to the system is coupled to the system.

本発明の前記並びにその他の目的と新規な特徴は本明細書の記述及び添付図面から明らかになるであろう。   The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願において開示される発明のうち代表的なものの概要を簡単に説明すれば下記の通りである。   The following is a brief description of an outline of typical inventions disclosed in the present application.

すなわち、ホストシステムとそれに着脱自在に結合可能な複数のデバイスとを含んでデバイスシステムが構成されるとき、上記ホストシステムは、現在結合されている第1デバイスがデータ転送モードとされた状態で、上記第1デバイスとは別の第2デバイスが結合された場合に、上記第1デバイスをスタンバイ状態に遷移させた後に、上記第2デバイスをアイドル状態に遷移可能なコントローラを含んで成る。   That is, when a device system is configured to include a host system and a plurality of devices that can be detachably coupled to the host system, the host system is in a state where the currently coupled first device is in the data transfer mode. When a second device different from the first device is coupled, the controller includes a controller capable of transitioning the second device to an idle state after transitioning the first device to a standby state.

上記の手段によれば、コントローラは、現在結合されている第1デバイスがデータ転送モードとされた状態で、上記第1デバイスとは別の第2デバイスが結合された場合に、上記第1デバイスをスタンバイ状態に遷移させた後に、上記第2デバイスをアイドル状態に遷移させる。第1カードはスタンバイ状態なので、上記のコマンドを受信せず、状態遷移過程は省略される。このことが、デバイスへのアクセス開始時間を短縮することができ、システムに現在結合されているデバイスとは別のデバイスが上記システムに結合された場合の初期化過程の改善を達成する。   According to the above means, when the first device that is currently coupled is in the data transfer mode and the second device different from the first device is coupled, the controller can Then, the second device is changed to the idle state. Since the first card is in the standby state, the above command is not received and the state transition process is omitted. This can reduce the start time of access to the device and achieves an improved initialization process when a device other than the device currently coupled to the system is coupled to the system.

さらに上記コントローラは、現在結合されている第1デバイスがデータ転送モードとされた状態で、上記第1デバイスとは別の第2デバイスが結合されたとき、データ転送モードのデバイスのみが受信可能な第1コマンドを発行することによって上記第1デバイスをスタンバイ状態に遷移させた後に、第2デバイスをアイドル状態に遷移させるための第2コマンドを発行するように構成することができる。   Further, the controller can receive only the device in the data transfer mode when the second device different from the first device is coupled in a state where the first device currently coupled is in the data transfer mode. After the first device is changed to the standby state by issuing the first command, the second command for changing the second device to the idle state can be issued.

また、上記第1コマンドは、データ転送モードにあるデバイスのみが受信可能なブロードキャスト型コマンドとされ、このブロードキャストコマンドを受信したデバイスは、上記第2コマンドの取り込みを行わないように定義される。上記デバイスをマルチメディアカードとすることができる。   The first command is a broadcast type command that can be received only by a device in the data transfer mode, and the device that receives the broadcast command is defined not to capture the second command. The device can be a multimedia card.

本願において開示される発明のうち代表的なものによって得られる効果を簡単に説明すれば下記の通りである。   The effects obtained by the representative ones of the inventions disclosed in the present application will be briefly described as follows.

すなわち、デバイスへのアクセス開始時間を短縮することができ、システムに結合されているデバイスとは別のデバイスが結合された場合の初期化過程の効率化を図ることができる。   That is, the access start time to the device can be shortened, and the efficiency of the initialization process when a device other than the device coupled to the system is coupled can be improved.

図1には、本発明にかかるデバイスシステムの一例であるマルチメディアカードシステムが示される。図1に示されるマルチメディアカードシステムは、ホストシステム10と、それに着脱自在に結合可能な複数のデバイス例えばマルチメディアカード(以下、単に「カード」と称する)11とを含む。ホストシステム10は、ハードウェア部、システムソフトウェア部、及びアプリケーションソフトウェア部を含む。特に制限されないが、上記ハードウェア部には、コマンド、レスポンスやデータ送受信によりカード11−11の動作を制御するカードコントローラ101が含まれる。特に、このカードコントローラ101は、後に詳述するように、現在結合されているメモリカードがデータ転送モードとされた状態で、そのメモリカードとは別のメモリカードが結合されたとき、データ転送モードのメモリカードをスタンバイ状態に遷移させた後に、別のメモリカードをアイドル状態に遷移することによって初期化する機能を有する。システムソフトウェア部には、上記カードコントローラ101を制御するドライバ102や、データをファイルとして管理するファイルシステム103が含まれる。アプリケーションソフトウェア部には、オーディオ関連のプレーヤやレコーダ等のアプリケーションシステム104が含まれる。   FIG. 1 shows a multimedia card system which is an example of a device system according to the present invention. The multimedia card system shown in FIG. 1 includes a host system 10 and a plurality of devices, for example, multimedia cards (hereinafter simply referred to as “cards”) 11 detachably connectable thereto. The host system 10 includes a hardware part, a system software part, and an application software part. Although not particularly limited, the hardware unit includes a card controller 101 that controls the operation of the card 11-11 by transmission / reception of commands, responses, and data. In particular, as will be described in detail later, the card controller 101 uses the data transfer mode when a memory card other than the memory card is coupled in a state where the currently coupled memory card is in the data transfer mode. After the memory card is transitioned to the standby state, another memory card is initialized by transitioning to the idle state. The system software unit includes a driver 102 that controls the card controller 101 and a file system 103 that manages data as files. The application software section includes an application system 104 such as an audio-related player or recorder.

図2には、図1に示されるマルチメディアカードシステムの比較対象とされるシステムにおけるカードの初期化過程が示される。以下、第1カード11−1が既に接続されてデータ転送モードにあるホストシステム10に、新たに第2カード11−2が装着される場合について説明する。   FIG. 2 shows a card initialization process in a system to be compared with the multimedia card system shown in FIG. Hereinafter, a case where the second card 11-2 is newly attached to the host system 10 in which the first card 11-1 is already connected and is in the data transfer mode will be described.

ホストシステム10は、新たにカード11−2が挿入されたことを検出する(201)。ホストシステム10は全カードをアイドル状態にするコマンドCMD0を発行する(202)。カード11−2はコマンドCMD0を受信するとアイドル状態に遷移する(203B)。コマンドCMD0はインアクティブ状態以外の状態にあるカードが受信するので、データ転送モード(スタンバイ状態、トランスファー状態など)にあるカード11−1もコマンドCMD0を受信しアイドル状態に遷移する(203A)。ホストシステム10はコマンドCMD1を発行し(204)、カード111−2にOCR(動作電圧範囲)を問い合わせる。   The host system 10 detects that a new card 11-2 has been inserted (201). The host system 10 issues a command CMD0 for setting all the cards in the idle state (202). When the card 11-2 receives the command CMD0, the card 11-2 transitions to an idle state (203B). Since the command CMD0 is received by the card in a state other than the inactive state, the card 11-1 in the data transfer mode (standby state, transfer state, etc.) also receives the command CMD0 and transitions to the idle state (203A). The host system 10 issues a command CMD1 (204) and inquires the card 111-2 about OCR (operating voltage range).

カード11−1とカード11−2はコマンドCMD1を受信すると、自身のOCRをそれぞれホストシステム10に返す。また、カードのパワーアップ過程が完了していればレディ状態に遷移する(205A,205B)。   When the card 11-1 and the card 11-2 receive the command CMD1, they return their own OCRs to the host system 10, respectively. Further, if the card power-up process is completed, transition to the ready state is made (205A, 205B).

ホストシステム10は、カード111−2から受信したOCRにより、全カードのパワーアップ過程が完了したかを調べる(206)。終了していなければ、ホストシステム10はコマンドCMD1発行とそのレスポンスを調べることを繰り返し、全カードのパワーアップ過程の終了を待つ。   The host system 10 checks whether the power-up process of all the cards is completed based on the OCR received from the card 111-2 (206). If not completed, the host system 10 repeats issuing the command CMD1 and checking the response, and waits for completion of the power-up process of all cards.

ホストシステム10は、コマンドCMD2を発行し、カード111−2にCID(静的なID)を問い合わせる(207)。コマンドCMD2はレディ状態のカードのみが受信する。カードはコマンドCMD2を受信すると、自身のCIDをホストシステム10に返そうとするが、自身のCIDとバス上のCIDをバイナリで比較し、異なっていれば出力を中止する。つまり、最大のCIDを持つカードのみがCIDを出力することになる。ここで、カード11−1のCIDがカード11−2のCIDより小さいとすると、カード11−2がCIDをホストシステム10に送信し、アイデンティファイ状態に遷移する(208B)。カード11−1は送信を中止しレディ状態に留まる(208A)。ホストシステム10は、CIDを受信したカード11−2にコマンドCMD3を発行し(209)、RCA(バス上での動的な相対アドレス)を割り当てる。ここで、カード11−2に割り当てるRCAを“2”とする。また、コマンドCMD3はアイデンティファイ状態のカードのみが受信する。カード11−2はコマンドCMD3を受信すると、スタンバイ状態へ遷移する(210)。カード11−1はレディ状態なのでコマンドCMD3を受信しない。ホストシステム10は、コマンドCMD2を発行し、カード111−2にCIDを問い合わせる(211)。カード11−1は、コマンドCMD2を受信すると自身のCIDをホストシステム10に返す(212)。カード11−2はスタンバイ状態なのでコマンドCMD2を受信しない。ホストシステム10はCIDを受信したカード11−1にコマンドCMD3を発行し、RCAを割り当てる(213)。ここで、カード11−1に割り当てるRCAを“1”とする。カード11−1は、コマンドCMD3を受信するとスタンバイ状態へ遷移する(214)。カード11−2は、スタンバイ状態なのでコマンドCMD3を受信しない。以上の操作により、2枚のカード11−1,11−2がデータ転送モードになる。例えば、ホストシステム10とカード11−2がデータ転送は、以下の手順で行われる。   The host system 10 issues a command CMD2 and inquires of the card 111-2 about a CID (static ID) (207). The command CMD2 is received only by the ready card. When the card receives the command CMD2, it tries to return its own CID to the host system 10, but compares its own CID with the CID on the bus in binary, and stops output if they are different. That is, only the card having the maximum CID outputs the CID. Here, assuming that the CID of the card 11-1 is smaller than the CID of the card 11-2, the card 11-2 transmits the CID to the host system 10, and transits to the identified state (208B). The card 11-1 stops transmitting and remains in the ready state (208A). The host system 10 issues a command CMD3 to the card 11-2 that has received the CID (209), and assigns RCA (dynamic relative address on the bus). Here, the RCA assigned to the card 11-2 is “2”. The command CMD3 is received only by the card in the identified state. Upon receiving the command CMD3, the card 11-2 transitions to the standby state (210). Since the card 11-1 is in the ready state, the command CMD3 is not received. The host system 10 issues a command CMD2 and inquires of the card 111-2 about the CID (211). Upon receiving the command CMD2, the card 11-1 returns its CID to the host system 10 (212). Since the card 11-2 is in the standby state, it does not receive the command CMD2. The host system 10 issues a command CMD3 to the card 11-1 that has received the CID, and assigns an RCA (213). Here, it is assumed that the RCA assigned to the card 11-1 is “1”. When the card 11-1 receives the command CMD3, the card 11-1 shifts to a standby state (214). Since the card 11-2 is in the standby state, it does not receive the command CMD3. With the above operation, the two cards 11-1 and 11-2 are set in the data transfer mode. For example, data transfer between the host system 10 and the card 11-2 is performed according to the following procedure.

ホストシステム10は、RCAに“2”(=カード11−2のRCA)を設定し、コマンドCMD7を発行する(215)。カード11−2は、コマンドCMD7を受信すると、トランスファー状態に遷移する(216B)。カード11−1は、自身のRCAと異なるのでコマンドCMD7を受信せずにスタンバイ状態に留まる(216A)。ホストシステム10は、リード又はライトコマンドを発行する。リード又はライトコマンドは、トランスファー状態のカードのみが受信する。カード11−2はリード又はライトコマンドを受信すると(218)、リードであればホストシステム10へデータを送信、ライトであればホストシステム10からデータを受信する。カード11−1はスタンバイ状態なのでリード又はライトコマンドを受信しない。   The host system 10 sets “2” (= RCA of the card 11-2) in the RCA, and issues a command CMD7 (215). Upon receiving the command CMD7, the card 11-2 transitions to the transfer state (216B). Since the card 11-1 is different from its own RCA, it does not receive the command CMD7 and remains in the standby state (216A). The host system 10 issues a read or write command. Only the card in the transfer state receives the read or write command. Upon receiving a read or write command (218), the card 11-2 transmits data to the host system 10 if it is a read, and receives data from the host system 10 if it is a write. Since the card 11-1 is in a standby state, it does not receive a read or write command.

図3には、図1に示されるマルチメディアカードシステムにおけるカードの初期化過程が示される。   FIG. 3 shows a card initialization process in the multimedia card system shown in FIG.

以下、図2に示される場合と同様に、第1カード11−1が既に接続されてデータ転送モードにあるホストシステム10に、新たに第2カード11−2が装着される場合について説明する。   Hereinafter, as in the case shown in FIG. 2, a case where the second card 11-2 is newly attached to the host system 10 in which the first card 11-1 is already connected and is in the data transfer mode will be described.

ホストシステム10は、あるポートに新たにカード11−2が挿入されたことを検出し、コマンドCMD14を発行する(302)。CMD14はデータ転送モードにあるカードのみが受信するブロードキャスト型のコマンドで、レスポンスは持たない。また、CMD14を受信したカードは、受信した前と同じRCAを保持したままスタンバイ状態に遷移し、CMD14の直後に送信されるCMD0を無視するものと定義する。既にデータ転送モードにあるカードは、CMD14を受信するのでスタンバイ状態に遷移する。第1カード11−1はコマンドCMD14を受信すると、受信した前と同じRCAを保持したままの状態でスタンバイ状態に遷移する(305)。第2カード11−2はデータ転送モードではないのでコマンドCMD14を受信しない。   The host system 10 detects that a card 11-2 is newly inserted into a certain port, and issues a command CMD14 (302). The CMD 14 is a broadcast type command received only by a card in the data transfer mode, and has no response. Further, it is defined that the card that has received CMD14 transitions to a standby state while retaining the same RCA as that received before, and ignores CMD0 transmitted immediately after CMD14. Since the card already in the data transfer mode receives CMD14, it transitions to the standby state. When the first card 11-1 receives the command CMD14, the first card 11-1 transitions to a standby state while retaining the same RCA as that before the reception (305). Since the second card 11-2 is not in the data transfer mode, the command CMD14 is not received.

ホストシステム10は、コマンドCMD14の発行に引き続き、コマンドCMD0を発行する(304)。第2カード11−2は、コマンドCMD0を受信するとアイドル状態に遷移する(305)。第1カード11−1はコマンドCMD14を受信しているため、その直後に発行されたコマンドCMD0は受信しない。   Following the issuance of the command CMD14, the host system 10 issues the command CMD0 (304). When receiving the command CMD0, the second card 11-2 transitions to the idle state (305). Since the first card 11-1 has received the command CMD14, the command CMD0 issued immediately thereafter is not received.

ホストシステム10は、コマンドCMD1を発行し(306)、カードにOCRを問い合わせる。第2カード11−2はコマンドCMD1を受信すると、自身のOCRをホストシステム10に返す。また、カードのパワーアップ過程が完了していればレディ状態に遷移する(307)。尚、カード11−1はスタンバイ状態なのでコマンドCMD1を受信しない。ホストシステム10は、カードから受信したOCRにより、全カードのパワーアップ過程が完了したか否かを調べる(308)。終了していなければ、ホストシステム10はコマンドCMD1の発行とそのレスポンスを調べることを繰り返し、全カードのパワーアップ過程の終了を待つ。   The host system 10 issues a command CMD1 (306) and inquires the card for OCR. When the second card 11-2 receives the command CMD 1, it returns its own OCR to the host system 10. Also, if the card power-up process is completed, a transition is made to the ready state (307). Since the card 11-1 is in the standby state, it does not receive the command CMD1. The host system 10 checks whether or not the power-up process of all cards is completed based on the OCR received from the card (308). If not completed, the host system 10 repeatedly issues the command CMD1 and examines its response, and waits for the end of the power-up process for all cards.

ホストシステム10はコマンドCMD2を発行し、カードにCIDを問い合わせる。カード11−2はコマンドCMD2を受信すると、自身のCIDをホストシステム10に返す。第1カード11−1はスタンバイ状態なのでコマンドCMD2を受信しない。ホストシステム10は、CIDを受信した第2カード11−2にコマンドCMD3を発行し、RCAを割り当てる。ただし、割り当てるRCAは、既にスタンバイ状態にあるカード11−1も含め、他のカードと互いに異なる値とする。ここでは、カード11−1のRCAを“1”であり、カード11−2には“2”が割り当てられたものとする。尚、カード11−1のRCAはカード11−1接続時、ホストシステム10が割り当てたものなので、カード11−2に互いに異なるRCAをホストシステム10は割り当てることができる。   The host system 10 issues a command CMD2 and inquires the card about the CID. Upon receiving the command CMD2, the card 11-2 returns its CID to the host system 10. Since the first card 11-1 is in the standby state, it does not receive the command CMD2. The host system 10 issues a command CMD3 to the second card 11-2 that has received the CID, and assigns an RCA. However, the RCA to be assigned is different from those of other cards including the card 11-1 already in the standby state. Here, the RCA of the card 11-1 is “1”, and “2” is assigned to the card 11-2. Since the RCA of the card 11-1 is assigned by the host system 10 when the card 11-1 is connected, the host system 10 can assign different RCAs to the card 11-2.

第2カード11−2は、コマンドCMD3を受信すると、スタンバイ状態へ遷移する(312)。また、尚、カード11−1はスタンバイ状態なのでコマンドCMD3を受信しない。以上の操作により、第1カード11−1のスタンバイ状態を維持しつつ、カード11−2をデータ転送モードであるスタンバイ状態に遷移することが可能となる。例えば、ホストシステム10と第2カード11−2がデータ転送をする場合、以下のステップ313〜317の手順で可能となる。   When receiving the command CMD3, the second card 11-2 transitions to the standby state (312). Further, since the card 11-1 is in the standby state, the command CMD3 is not received. By the above operation, the card 11-2 can be shifted to the standby state that is the data transfer mode while maintaining the standby state of the first card 11-1. For example, when the host system 10 and the second card 11-2 transfer data, the following steps 313 to 317 are possible.

ホストシステム10は、RCAに“2”(=カード11−2のRCA)を設定し、コマンドCMD7を発行する(313)。第2カード11−2は、コマンドCMD7を受信すると、トランスファー状態に遷移する(315)。第1カード11−1は、自身のRCAと異なるのでコマンドCMD7を受信せずスタンバイ状態に留まる。ホストシステム10は、リード又はライトコマンドを発行する(316)。このリード又はライトコマンドはトランスファー状態のカードのみが受信する。第2カード11−2は、リード又はライトコマンドを受信し、リードであればホストシステム10へデータを送信し、ライトであればホストシステム10からデータを受信する(317)。このとき、第1カード11−1は、スタンバイ状態なので、リードやライトコマンドを受信しない。   The host system 10 sets “2” (= RCA of the card 11-2) in the RCA, and issues a command CMD7 (313). When receiving the command CMD7, the second card 11-2 transitions to the transfer state (315). Since the first card 11-1 is different from its own RCA, it does not receive the command CMD7 and remains in the standby state. The host system 10 issues a read or write command (316). This read or write command is received only by the transferred card. The second card 11-2 receives a read or write command, transmits data to the host system 10 if it is a read, and receives data from the host system 10 if it is a write (317). At this time, since the first card 11-1 is in a standby state, it does not receive a read or write command.

上記例によれば、以下の作用効果を得ることができる。   According to the above example, the following operational effects can be obtained.

(1)既にデータ転送モードにあるカードを持つホストシステム10が、新規にカードが接続されたことを認識すると、コマンドCMD14を発行する。コマンドCMD14を受信した第1カード11−1はコマンドCMD0を受信しない。新規に接続された第2カード11−2のみがCMD0を受信し、“アイドル状態”に遷移する。以降、新規に接続された第2カードのみがCMD1受信→“レディ状態”→CMD2受信→“アイデンティファイ状態”→CMD3受信→“スタンバイ状態”の状態遷移をする。一方、第1カード11−1は“スタンバイ状態”なので、上記のコマンドを受信せず、状態遷移過程は省略される。   (1) When the host system 10 having a card already in the data transfer mode recognizes that a new card has been connected, it issues a command CMD14. The first card 11-1 that has received the command CMD14 does not receive the command CMD0. Only the newly connected second card 11-2 receives CMD0 and transitions to the “idle state”. Thereafter, only the newly connected second card changes the state of CMD1 reception → “ready state” → CMD2 reception → “identify state” → CMD3 reception → “standby state”. On the other hand, since the first card 11-1 is in the “standby state”, the above command is not received and the state transition process is omitted.

(2)上記(1)の作用効果により、カードへのアクセス開始時間を短縮することができるため、システムのパフォーマンスの向上を図ることができる。   (2) Since the access start time to the card can be shortened by the effect of the above (1), the performance of the system can be improved.

(3)上記(1)の作用効果により、ホストシステム10とカード11との間で無駄なコマンドやレスポンスを省略することができるので、省電力化を図ることができる。   (3) Due to the effect of (1) above, useless commands and responses between the host system 10 and the card 11 can be omitted, so that power saving can be achieved.

以上本発明者によってなされた発明を具体的に説明したが、本発明はそれに限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。   Although the invention made by the present inventor has been specifically described above, the present invention is not limited thereto, and it goes without saying that various changes can be made without departing from the scope of the invention.

例えば、既存のコマンドで実現することが可能である。それは、新規にカードが検出された後、CMD14の代わりにCMD0のアーギュメントに0以外の値(以後、これをCMD0'とする)を設定して発行する方法である。MMC規格ではCMD0のアーギュメントは0と定義されている。CMD0'は通常のCMD0の機能に加え、既にデータ転送モードにあるカードが受信すると、カードは“スタンバイ状態”に遷移させる機能を持つものと定義することが可能となる。図4には、その場合の流れが示される。   For example, it can be realized by an existing command. In this method, after a new card is detected, a value other than 0 (hereinafter referred to as CMD0 ′) is set in the argument of CMD0 instead of CMD14. In the MMC standard, the argument of CMD0 is defined as 0. In addition to the normal CMD0 function, CMD0 ′ can be defined as having a function of transitioning to a “standby state” when a card already in the data transfer mode receives. FIG. 4 shows the flow in that case.

ホストシステム10は、あるポートに新たにカード2が挿入されたことを検出し、CMD0'を発行する(402)。第1カード11−1は、データ転送モードにあるので、CMD0'を受信すると、スタンバイ状態に遷移する(403)。第2カード2は、データ転送モードではないので、CMD0'を受信すると、アイドル状態に遷移する(404)。ホストシステム10は、CMD1を発行し、カードにOCRを問い合わせる(405)。以降、図3の場合と同様の初期化過程となる。   The host system 10 detects that the card 2 is newly inserted into a certain port, and issues CMD0 ′ (402). Since the first card 11-1 is in the data transfer mode, when it receives CMD0 ', it transitions to the standby state (403). Since the second card 2 is not in the data transfer mode, when it receives CMD0 ′, it transitions to the idle state (404). The host system 10 issues CMD1 and inquires the card for OCR (405). Thereafter, the initialization process is the same as in the case of FIG.

図4に示される処理によれば、CMD14の発行が省略されるため、初期化過程のさらなる時間短縮、及び省電力化が得られる。また、新規コマンド(CMD14)の追加も必要ないので、規格の更新やそれに対応したホストシステム10やカードの開発も容易となる。   According to the process shown in FIG. 4, since the issue of CMD14 is omitted, further time reduction and power saving of the initialization process can be obtained. In addition, since it is not necessary to add a new command (CMD14), it becomes easy to update the standard and develop the host system 10 and the card corresponding thereto.

また、コマンドにより特定のカードのみを初期化することができる。   Further, only a specific card can be initialized by a command.

すなわち、上記コマンドCMD14をさらに詳細に定義することにより、特定のカードのみを初期化することが可能である。特に、あるカードにエラーが起こり初期化する必要が生じたときや、上位アプリケーションとの関連により特定のカードのRCAを再設定する必要が生じたときに有効となる。   That is, it is possible to initialize only a specific card by defining the command CMD14 in more detail. This is particularly effective when an error occurs in a certain card and it is necessary to initialize the card, or when it is necessary to reset the RCA of a specific card in relation to a higher-level application.

図5には、あるカード11−αにエラーが起こり初期化する必要が生じたときの例が示される。カード11−αにエラーが発生した場合に、コマンドCMD14が発行されることにより、カード11−αのみが初期化される。   FIG. 5 shows an example when an error occurs in a certain card 11-α and it is necessary to initialize it. When an error occurs in the card 11-α, the command CMD14 is issued, whereby only the card 11-α is initialized.

図6には上位アプリケーションとの関連により特定のカードのRCAを再設定する必要が生じた場合の例が示される。USB接続のカードリーダアプリケーションなどで適用される例で、アプリケーションがRCAとドライブ番号を関連付けて管理している。図6においてカード11−γが必ずドライブEに割り当てられるべきカードだとする。既にカード11−βがドライブEに割り当てられているので、カード11−γを新規に接続するとき、カード11−βとカード11−γを初期化し、RCAの再割り当てをする必要がある。   FIG. 6 shows an example in the case where it is necessary to reset the RCA of a specific card due to the relationship with the upper application. In an example applied to a card reader application connected via USB, the application manages the RCA and the drive number in association with each other. In FIG. 6, it is assumed that the card 11-γ is a card that must be assigned to the drive E. Since the card 11-β has already been assigned to the drive E, when the card 11-γ is newly connected, it is necessary to initialize the card 11-β and the card 11-γ and reassign the RCA.

特定のカードのみの初期化は、コマンドCMD14のアーギュメントにRCAとカードを関連付ける情報をビットマップ形式で設定する。尚、MMC規格により接続可能なカードの最大値は30個であるので、30ビットで管理できる。   To initialize only a specific card, information that associates the RCA and the card is set in the bitmap format in the argument of the command CMD14. Since the maximum number of cards that can be connected according to the MMC standard is 30, it can be managed with 30 bits.

図7には、コマンドCMD14のフォーマット例が示される。   FIG. 7 shows a format example of the command CMD14.

コマンドCMD14を受信し、アーギュメントのRCAに対応するビットと自身のRCAが一致したカードは、受信した前と同じRCAを保持したままスタンバイ状態に遷移し、コマンドCMD14の直後に送信されるコマンドCMD0を無視するものと定義する。また、RCAが一致しないカードはコマンドCMD14が有効でなく、次のコマンドCMD0を受信しアイドル状態に遷移するものと定義する。以上のコマンドCMD14の定義により特定のカードの初期化が可能となる。   The card having received the command CMD14 and having the bit corresponding to the RCA of the argument and its own RCA match, changes to the standby state while holding the same RCA as that received, and receives the command CMD0 transmitted immediately after the command CMD14. Define to ignore. Further, it is defined that a card whose RCA does not match is that the command CMD14 is not valid, and the next command CMD0 is received and transitions to the idle state. A specific card can be initialized by the definition of the command CMD14.

さらに、既存のコマンドを拡張して特定のカードを初期化するようにしても良い。   Further, an existing command may be extended to initialize a specific card.

例えば、MMC規格におけるコマンドCMD0を拡張することで特定のカードのみを初期化することが可能である。拡張されたコマンドをCMD0''と定義する。図8には、上記コマンドCMD0''のフォーマットが示される。このコマンドCMD0''は、コマンドCMD0とアーギュメントのみが異なり、コマンドCMD14の場合と同様にRCAとカードを関連付ける情報をビットマップ形式で持つ。コマンドCMD0''を受信し、アーギュメントのRCAに対応するビットと自身のRCAが一致したカードは、受信した前と同じRCAを保持したままスタンバイ状態に遷移するものと定義する。また、RCAが一致しないカードはアイドル状態に遷移するものと定義する。また、アーギュメントが“0”の場合は、全てのカードがアイドル状態に遷移することになるので従来のコマンドCMD0と互換性持つ。以上のコマンドCMD0''の定義により特定のカードの初期化が可能となる。   For example, it is possible to initialize only a specific card by extending the command CMD0 in the MMC standard. Define the extended command as CMD0 ″. FIG. 8 shows the format of the command CMD0 ″. This command CMD0 ″ differs from the command CMD0 only in arguments, and has the information for associating the RCA and the card in the bit map format as in the case of the command CMD14. A card that receives the command CMD0 ″ and whose bit corresponding to the RCA of the argument matches its own RCA is defined as transitioning to a standby state while retaining the same RCA as that received. A card whose RCA does not match is defined to transition to an idle state. When the argument is “0”, all the cards transition to the idle state, so that the command is compatible with the conventional command CMD0. A specific card can be initialized by the definition of the command CMD0 ″.

以上の説明では主として本発明者によってなされた発明をその背景となった利用分野であるマルチメディアカードシステムについて説明したが、本発明はそれに限定されるものではなく、例えば一つのホストシステムが複数のデバイスを制御する形態を有するデバイスシステムに広く適用することができる。   In the above description, the multimedia card system, which is a field of use based on the invention made by the inventor, has been described. However, the present invention is not limited to this, and for example, one host system includes a plurality of host systems. The present invention can be widely applied to a device system having a form for controlling a device.

本発明は、複数のデバイスが結合されることを条件に適用することができる。   The present invention can be applied on condition that a plurality of devices are combined.

本発明にかかるデバイスカードシステムの一例であるマルチメディアカードシステムの全体的な構成例ブロック図である。1 is a block diagram illustrating an example of the overall configuration of a multimedia card system which is an example of a device card system according to the present invention. 図1に示されるマルチメディアカードシステムの比較対象とされるシステムにおけるカードの初期化過程の説明図である。It is explanatory drawing of the initialization process of the card | curd in the system used as the comparison object of the multimedia card system shown by FIG. 図1に示されるマルチメディアカードシステムにおけるカードの初期化過程の説明図である。It is explanatory drawing of the initialization process of the card | curd in the multimedia card system shown by FIG. 上記マルチメディアカードシステムにおけるカードの別の初期化過程の説明図である。It is explanatory drawing of another initialization process of the card | curd in the said multimedia card system. カードにエラーが起こり初期化が必要とされる場合の説明図である。It is explanatory drawing in case an error occurs in a card | curd and initialization is required. 上位アプリケーションとの関連により特定のカードのRCAの再設定が必要とされる場合の説明図である。It is explanatory drawing in case the resetting of RCA of a specific card | curd is required by the relationship with a high-order application. 上記マルチメディアカードシステムで取り扱われるコマンドのフォーマット説明図である。It is format explanatory drawing of the command handled by the said multimedia card system. 上記マルチメディアカードシステムで取り扱われる別のコマンドの別のフォーマット説明図である。It is another format explanatory drawing of another command handled with the said multimedia card system.

符号の説明Explanation of symbols

10 ホストシステム
11 カード
11−1 第1カード
11−2 第2カード
101 カードコントローラ
102 ドライバ
103 ファイルシステム
104 アプリケーション
10 Host System 11 Card 11-1 First Card 11-2 Second Card 101 Card Controller 102 Driver 103 File System 104 Application

Claims (4)

ホストシステムとそれに着脱自在に結合可能な複数のデバイスとを含むデバイスシステムであって、
上記ホストシステムは、現在結合されている第1デバイスがデータ転送モードとされた状態で、上記第1デバイスとは別の第2デバイスが結合されたとき、上記第1デバイスをスタンバイ状態に遷移させた後に、上記第2デバイスをアイドル状態に遷移可能なコントローラを含んで成るデバイスシステム。
A device system including a host system and a plurality of devices removably connectable thereto,
The host system transitions the first device to a standby state when a second device different from the first device is coupled while the first device coupled to the current device is in a data transfer mode. And a device system including a controller capable of transitioning the second device to an idle state.
上記コントローラは、現在結合されている第1デバイスがデータ転送モードとされた状態で、上記第1デバイスとは別の第2デバイスが結合されたとき、データ転送モードのデバイスのみが受信可能な第1コマンドを発行することによって上記第1デバイスをスタンバイ状態に遷移させた後に、第2デバイスをアイドル状態に遷移させるための第2コマンドを発行する請求項1記載のデバイスシステム。 When the first device that is currently coupled is in the data transfer mode and a second device that is different from the first device is coupled, the controller can receive only the device that is in the data transfer mode. 2. The device system according to claim 1, wherein after issuing the 1 command to transition the first device to the standby state, the device system issues a second command for causing the second device to transition to the idle state. 上記第1コマンドは、データ転送モードにあるデバイスのみが受信可能なブロードキャスト型コマンドとされ、このブロードキャストコマンドを受信したデバイスは、上記第2コマンドの取り込みを行わないように定義された請求項2記載のデバイスシステム。 3. The first command is defined as a broadcast type command that can be received only by a device in a data transfer mode, and the device that has received the broadcast command is defined not to capture the second command. Device system. 上記デバイスをマルチメディアカードとした請求項1乃至3の何れか1項記載のデバイスシステム。
The device system according to claim 1, wherein the device is a multimedia card.
JP2004083991A 2004-03-23 2004-03-23 Device system Withdrawn JP2005275501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004083991A JP2005275501A (en) 2004-03-23 2004-03-23 Device system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004083991A JP2005275501A (en) 2004-03-23 2004-03-23 Device system

Publications (1)

Publication Number Publication Date
JP2005275501A true JP2005275501A (en) 2005-10-06

Family

ID=35175151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004083991A Withdrawn JP2005275501A (en) 2004-03-23 2004-03-23 Device system

Country Status (1)

Country Link
JP (1) JP2005275501A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012212454A (en) * 2006-01-17 2012-11-01 Nokia Corp Method for booting host device from mmc/sd device, host device bootable from mmc/sd device and mmc/sd device for booting host device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012212454A (en) * 2006-01-17 2012-11-01 Nokia Corp Method for booting host device from mmc/sd device, host device bootable from mmc/sd device and mmc/sd device for booting host device
JP2014220011A (en) * 2006-01-17 2014-11-20 メモリー テクノロジーズ リミティド ライアビリティ カンパニー Method for booting host device from mmc/sd device, host device bootable from mmc/sd device and mmc/sd device for booting host device

Similar Documents

Publication Publication Date Title
US20230418363A1 (en) Card and host apparatus
JP4724573B2 (en) Transfer system switching circuit in interface circuit
US20040059846A1 (en) Double interface SD flash memory card
JP2007011788A (en) Memory card and its host equipment
US7051144B2 (en) Portable computer system and control method for reducing power consumption therein
US8850086B2 (en) SD switch box in a cellular handset
US7409477B2 (en) Memory card having a processor coupled between host interface and second interface wherein internal storage code provides a generic interface between host interface and processor
US20060041689A1 (en) Data transfer control system, electronic apparatus and program
US20040054827A1 (en) Large volume storage device with a memory card adapting interface
GB2405714A (en) Memory card with a modular component
JP3655597B2 (en) Electronic device, electronic card, and card identification method
JP2005275501A (en) Device system
US20050173529A1 (en) Multi-card data transfer device
US20080162479A1 (en) Memory card system and method for transmitting background information thereof
US20050252969A1 (en) Card reader for electronic device
JP2004208245A (en) Device for enhancing function of wireless modem
KR100882207B1 (en) Memory card including connector for other memory card independently interfacing host using MMC protocol
JP2004185584A (en) Card adaptor control device, usb controller and card adaptor
US20080282014A1 (en) Card reading apparatus for multi-directional data transmission
JP7111756B2 (en) INTEGRATED ELECTRONIC DEVICE AND METHOD WITH DATA ACCESS, TRANSMISSION AND POWER MANAGEMENT
JP2008287578A (en) Memory controller, information processor, and electronic equipment
KR20030031527A (en) method for operating control of portable data storage device having an advertising function and performing the same
KR200394660Y1 (en) Usb connector with card detector
KR200374156Y1 (en) Interface converter for storing data
KR200323739Y1 (en) Data storage device of memory card

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070605