WO2006006388A1 - ホスト機器、記憶装置、及び記憶装置へのアクセス方法 - Google Patents

ホスト機器、記憶装置、及び記憶装置へのアクセス方法 Download PDF

Info

Publication number
WO2006006388A1
WO2006006388A1 PCT/JP2005/011800 JP2005011800W WO2006006388A1 WO 2006006388 A1 WO2006006388 A1 WO 2006006388A1 JP 2005011800 W JP2005011800 W JP 2005011800W WO 2006006388 A1 WO2006006388 A1 WO 2006006388A1
Authority
WO
WIPO (PCT)
Prior art keywords
command
storage device
host
response
host device
Prior art date
Application number
PCT/JP2005/011800
Other languages
English (en)
French (fr)
Inventor
Masayuki Toyama
Takuji Maeda
Tomoaki Izumi
Shouichi Tsujita
Masahiro Nakanishi
Shinji Inoue
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 EP05765359A priority Critical patent/EP1785827A4/en
Priority to US11/571,597 priority patent/US7921229B2/en
Priority to JP2006528688A priority patent/JPWO2006006388A1/ja
Publication of WO2006006388A1 publication Critical patent/WO2006006388A1/ja

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0623Securing storage systems in relation to content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Definitions

  • the present invention relates to a host device, a storage device, and an access method for the storage device, in which a storage device and a host device are connected via a bus, and the storage device is initialized and data is transmitted / received using a command.
  • a memory card equipped with a non-volatile memory is used as a storage device that holds digital information. is there.
  • a mechanism for accessing host device memory cards has been standardized. As the capacity of the memory card increases, the standard version will be upgraded.
  • a method for enabling a host device having a different version to access a memory card there has been proposed a method of accessing each host by showing different storage capacities using a plurality of capacity representation methods (for example, Patent Document 1). reference).
  • Patent Document 1 Japanese Patent Laid-Open No. 2004-86505
  • the present invention provides a host device, a storage device, and a host device that can prevent data destruction by an old version of the host device by simple control of the host device and the storage device. It is another object of the present invention to provide a method for accessing a storage device.
  • a host device of the present invention is a host device connected to a storage device via a bus and writing and reading data in the storage device, and the host device is connected to the storage device.
  • a command transmission unit that transmits a command including function information
  • a response reception unit that receives a response from the storage device after transmitting a command from the command transmission unit, and after sending each command from the command transmission unit
  • An access permission determination unit that determines that access is possible if normal reception is determined by the response reception unit; otherwise, it determines that access is impossible.
  • a storage device of the present invention is a storage device that is connected to a host device via a bus and stores and reads data based on a command from the host device.
  • a memory that holds data given from the memory, a memory control unit that controls writing and reading of data to and from the memory, and a command receiving unit that receives commands issued from the host device and performs processing according to each command
  • an access determination unit that accepts access in a case where the function indicated by the host function information added to the command received by the command reception unit is supported, and the access determination unit determines acceptance of access.
  • a response transmission unit that returns a normal response.
  • a method for accessing a storage device is a method for accessing a storage device of a host device that is connected to the storage device via a bus and writes and reads data in the storage device. If a command including host function information is transmitted to the storage device, a response is received from the storage device after the command is transmitted, and a response received after sending the command is determined to be a normal response. It is judged that access is possible, and it is judged that access is impossible at other times.
  • the host device becomes inaccessible to the storage device, so that data destruction can be prevented.
  • the host device and storage device can be realized with a simple configuration, and simple control is possible. It is possible to provide a host device, a storage device, and a method for accessing the storage device that can prevent data destruction by an old version host device.
  • FIG. 1 is a block diagram showing a configuration of a host device and a storage device according to an embodiment of the present invention.
  • FIG. 2 is a flowchart showing a method for a host device to access a storage device.
  • FIG. 3 is a diagram showing a command format issued by the host device.
  • FIG. 4 is a flowchart showing how the storage device processes a command.
  • FIG. 5 is a diagram showing a command response format of the storage device.
  • FIG. 6 is a diagram showing another example of a command transmitted by the host device and another example of a response from the storage device.
  • FIG. 1 is a block diagram showing a configuration of a storage system according to an embodiment of the present invention.
  • the storage system according to the embodiment of the present invention has a host device 1 and a storage device 2, and the host device 1 and the storage device 2 are connected by a bus 3.
  • the host device 1 has a CPU 101, a ROM 102 for storing a program of the CPU 101, a RAM 103 serving as a work area of the CPU, and an interface 104.
  • the interface 104 transmits commands, data, and addresses to the storage device 2 and receives responses.
  • the ROM 102 stores an access program executed by the CPU 101.
  • the CPU 101 achieves the functions of a command transmission unit 101a, a response reception unit 101b, and an access determination unit 101c.
  • the command transmission unit 101a transmits a command including host function information via the interface 104.
  • the host function information indicates functions that can be executed by the host device 1.
  • the response receiving unit 101b receives a response after transmitting a command from the command transmitting unit, and determines whether or not there is an error.
  • the access determination unit 101c determines whether access is possible after each command is transmitted. That is, it is determined that access is possible when a normal response is determined by the response receiving unit 101b, and access is determined otherwise.
  • the storage device 2 includes an interface 201, a control unit 202, a memory control unit 203, and a memory 204.
  • the interface 201 receives a command or data from the host device 1 and transmits a response.
  • the control unit 202 includes a command reception unit 202a, a response transmission unit 202b, and an access determination unit 202c.
  • the command receiving unit 202a receives a command issued by the host device, and performs processing according to each command.
  • the access determination unit 202c determines whether or not the function attached to the command received by the command reception unit is supported, and performs the process of accepting access when supporting it! .
  • the response transmission unit 202b responds based on the determination result of the access determination unit 202c.
  • the memory control unit 203 controls writing and reading of data to and from the memory 204, and the memory 204 holds data given from the host device.
  • the storage device 2 supports the function attached to the command transmitted from the host device 1, it determines that the access from the host device 1 can be accepted.
  • FIG. 2 is a flowchart of command transmission processing performed by the host device 1.
  • the host device 1 transmits a command with host function information added thereto to the storage device 2 (S201), and waits for a response from the storage device 2 (S202). If there is a response from the storage device 2, the content of the response is checked to see if there is an error (S203). If there is no error, it is determined that the storage device 2 can be accessed. Send and receive data if necessary. On the other hand, if there is no response from the storage device 2 in S202, or if an error is included in the response in S203, it is determined that access to the storage device 2 is impossible.
  • Host function information indicating a function of the host device 1 is added to the command to be transmitted.
  • the host function information may be, for example, a standard version number that the host device 1 supports, a flag indicating that a predetermined function is provided, or a unique bit pattern.
  • the host function information includes file system types such as FAT16, FAT32, and UDF, addressing mode, and additional functions such as presence / absence of cache function, presence / absence of interrupt, and support for high-speed interface. is there.
  • FIG. 3 shows an example of a command format transmitted by the host device 1.
  • the command consists of a start flag S, a command identifier COM, a command argument ARG, a CRC (Cyclic Redundancy Code) for detecting an error contained in the COM and ARG, and an end flag E.
  • the host function information HI indicating the functions of the host device 1 can be added using all or part of the identifier COM as shown by hatching in Fig. 3 (a). As shown in Fig. 3, it is added by using part or all of the argument ARG, or by using both the identifier COM and the argument ARG as shown in Fig. 3 (c).
  • Fig. 3 shows an example of a command format transmitted by the host device 1.
  • the command consists of a start flag S, a command identifier COM, a command argument ARG, a CRC (Cyclic Redundancy Code) for detecting an error contained in the COM and ARG, and an end flag E.
  • 3 (d) shows an example of a command for notifying host function information HI to the storage device using a plurality of bits of the argument ARG.
  • bO and bl are file systems
  • b2 is an interrupt function
  • b3 is a cache function
  • b4 is a high-speed interface.
  • the host function information HI is added to the command for a host device that conforms to the new version of the standard, and the host function information is added to the command, which indicates the host device that conforms to the old and version standards. It is also possible.
  • FIG. 4 is a flowchart of command reception processing by the storage device 2.
  • the storage device 2 receives the command transmitted from the host device 1 (S401)
  • the storage device 2 executes the command, and extracts the host function information attached to the command identifier and / or the argument (S402). Then, it is determined whether or not the host function is capable of processing (S403).
  • a normal response is returned to the host device (S404). In this embodiment, a normal response is made only when all the functions shown are supported. On the other hand, if it is determined in S403 that at least some of the functions cannot be processed, a response including error information is returned (S405). Alternatively, instead of returning a response, a timeout may occur.
  • the storage device information may be, for example, a version number of a standard to which the storage device 2 corresponds, or may be a flag indicating that a predetermined function is provided or a unique bit pattern.
  • FIG. 5 shows a format when the storage device 2 responds to the command of the host device 1 with the storage device information.
  • the response includes the start flag S, transfer flag T, identifier of the command sent by the host device 1, COM, CRC for detecting errors contained in the responses RES, COM and RES, and end.
  • An example of the format of the response composed of flag E is shown.
  • the storage device information DI is included in a part of the response RES as indicated by hatching.
  • FIG. 5B it may be configured such that there is no identifier COM of the command transmitted by the host device 1. Error information indicating whether the command sent by the host device 1 can be processed may be added to the response RES.
  • storage device information DI is added to the response to the command when the storage device is compatible with the new version of the standard, and the storage device information is added to the response to the command! It is also possible to represent a storage device that complies with these standards.
  • FIG. 6 (a) is a diagram showing another example of commands issued from the host device 1, and FIG. It is a figure which shows the example of the response by the memory
  • the host device power command and its response are in the same format.
  • the argument area is divided into three fields Fl, F2, and F3.
  • the first field F1 is a field indicating host function information, and includes information on the host function, for example, the file system, the interrupt function, the addressing mode, etc., as described above. In this case, it is possible to set bits according to the support functions such as the file system, interrupt function, and addressing mode.
  • the second field F2 is an expansion field and is an area for future expansion function addition.
  • the third field F3 is a field in which a check pattern for checking communication quality is inserted.
  • the response of the storage device is also configured in the same format.
  • the first field F1 corresponding to the host function information is storage device information, the contents corresponding to the host function information are checked, and the supported function is returned as the storage device information.
  • the bit corresponding to the function supported by the host function information of the command of the host device power is set, the same bit is set when the response of the storage device supports this, and 0 when not supported And so on.
  • the second field F2 is an area held for expansion, all “1” or “0” are returned from the storage device.
  • the third field F3 is a field for confirming the communication quality.
  • This response may be a check pattern issued from the host device 1 as it is, or it may be reversed or an appropriate output exclusive OR (EXOR) will be sent to the host device from the storage device. It may be a thing.
  • EXOR output exclusive OR
  • the response receiving unit 101b shown in Fig. 1 only needs to read the storage device information held in the first field F1. It is necessary to include a function that determines whether the check pattern matches the result of the same or necessary processing as the transmitted check pattern. Further, the response transmission unit 202b needs to process the check pattern received by the host device as it is, or perform a predetermined operation to make a check pattern to be returned to the third field. In this way, the host function information can be transmitted to the storage device side as well as future expansion is possible, and the communication quality can be recognized on the storage device side and the host side. Industrial applicability
  • the storage device determines the function included in the transmission command of the host device, and determines that the access of the host device can be accepted only when the function is supported, so the access control is performed with a simple structure 'control. It is useful for host devices, storage devices, and storage device access methods that use commands to initialize storage devices and send and receive data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Storage Device Security (AREA)

Abstract

 ホスト機器1はコマンドにホスト機器1の備える機能を示すホスト機能情報を付加して記憶装置2へ送信する。記憶装置2は、ホスト機器1から送信されたコマンドを受信し、ホスト機能情報の示す機能を処理可能かどうかを判断する。処理可能な場合にコマンドに応答して処理を行い、処理不能の場合には、何も応答しないか、エラー情報を返す。これにより簡単な制御で古いバージョンのホスト機器によるデータの破壊を防ぐことができる。

Description

明 細 書
ホスト機器、記憶装置、及び記憶装置へのアクセス方法
技術分野
[0001] 本発明は、記憶装置とホスト機器がバスで接続され、コマンドを用いて記憶装置の 初期化およびデータの送受信を行うホスト機器、記憶装置、及び記憶装置へのァク セス方法に関する。
背景技術
[0002] デジタルカメラ、ムービー、携帯型音楽プレーヤなどのデジタル情報を制御する機 器 (以下、ホスト機器という)において、デジタル情報を保持する記憶装置として、不揮 発性メモリを搭載したメモリカードがある。複数のメーカの製造したメモリカードおよび ホスト機器間の互換性を実現するため、ホスト機器カ^モリカードにアクセスするため の仕組みが規格ィ匕されて 、る。そしてメモリカードの記憶容量の大容量ィ匕ゃ機能の 追カ卩に伴い、規格のバージョンアップが行なわれる。バージョンの異なるホスト機器が メモリカードにアクセス可能とする方法として、複数の容量表現の方式を用いて各ホ ストに対して異なる記憶容量を見せてアクセスさせる方法が提案されている(例えば 特許文献 1参照)。
特許文献 1:特開 2004— 86505号公報
発明の開示
発明が解決しょうとする課題
[0003] し力しながら、上記の従来技術には以下のような問題点がある。すなわち、異なるバ 一ジョンのホスト機器が同一の記憶領域へアクセスすることができるため、古いバー ジョンのホスト機器が新し ヽバージョンのホスト機器の書 、たデータを破壊することが あるという問題がある。また、メモリカード内に複数の領域を設けてホスト機器に応じた アクセス制御を行うため、メモリカード内部の構造や制御が複雑になるという問題があ る。
[0004] 上記問題点に鑑み、本発明は、ホスト機器および記憶装置の簡単な制御で古いバ 一ジョンのホスト機器によるデータの破壊を防ぐことができるホスト機器、記憶装置、 及び記憶装置へのアクセス方法を提供することを目的とする。
課題を解決するための手段
[0005] この課題を解決するために、本発明のホスト機器は、記憶装置とバスで接続され、 前記記憶装置のデータの書き込み及び読み出しを行うホスト機器であって、前記記 憶装置に対しホスト機能情報を含むコマンドを送信するコマンド送信部と、前記コマ ンド送信部よりコマンドを送信した後に、前記記憶装置からの応答を受け付ける応答 受信部と、前記コマンド送信部からの各コマンドの送出後に前記応答受信部より正常 受信が判別されればアクセスが可能と判断し、それ以外のときにアクセスが不可と判 断するアクセス可否判断部と、を具備するものである。
[0006] この課題を解決するために、本発明の記憶装置は、ホスト機器とバスで接続され、 前記ホスト機器からのコマンドに基づいてデータを記憶し、及び読み出す記憶装置 であって、ホスト機器から与えられるデータを保持するメモリと、前記メモリへのデータ の書き込み及び読み出しを制御するメモリ制御部と、前記ホスト機器から発行される コマンドを受信し、各コマンドに応じた処理を行うコマンド受信部と、前記コマンド受信 部によって受信されたコマンドに付加されたホスト機能情報の示す機能をサポートし て 、る場合にアクセスを受け付けるアクセス判定部と、前記アクセス判定部がアクセス の受付けを決定したときに正常応答を返す応答送信部と、を具備するものである。
[0007] この課題を解決するために、本発明の記憶装置へのアクセス方法は、記憶装置と バスで接続され、前記記憶装置のデータの書き込み及び読み出しを行うホスト機器 の記憶装置へのアクセス方法であって、前記記憶装置に対しホスト機能情報を含む コマンドを送信し、コマンドを送信した後に、前記記憶装置からの応答を受け付け、コ マンドの送出後に受信した応答が正常応答と判別されればアクセスが可能と判断し、 それ以外のときにアクセス不可と判断するものである。
発明の効果
[0008] 以上のように、本発明によると、ホスト機器と記憶装置とで対応する規格のバージョ ンが異なる場合は、ホスト機器は記憶装置にアクセスできなくなるためデータの破壊 を防ぐことができる。また、アクセス可否の判定をコマンドの送受信処理のみで行える ため、ホスト機器および記憶装置を簡単な構成で実現することができ、簡単な制御で 古 ヽバージョンのホスト機器によるデータの破壊を防ぐことができるホスト機器、記憶 装置、及び記憶装置へのアクセス方法を提供することができる。
図面の簡単な説明
[0009] [図 1]図 1は本発明の実施の形態に係るホスト機器及び記憶装置の構成を示すブロッ ク図である。
[図 2]図 2はホスト機器が記憶装置へアクセスする方法を示すフローチャートである。
[図 3]図 3はホスト機器が発行するコマンドフォーマットを示す図である。
[図 4]図 4は記憶装置がコマンドを処理する方法を示すフローチャートである。
[図 5]図 5は記憶装置のコマンド応答のフォーマットを示す図である。
[図 6]図 6はホスト機器力 の送信するコマンドの他の例及び記憶装置からの応答の 他の例を示す図である。
符号の説明
[0010] 1 ホスト機器
101 CPU
102 ROM
103 RAM
104 インターフェース
101a コマンド送信部
101b 応答受信部
101c アクセス判定部
2 記憶装置
201 インターフェース
202 制御部
203 メモリ制御部
204 メモリ
202a コマンド受信部
202b 応答送信部
202c アクセス半 IJ定咅 3 バス
発明を実施するための最良の形態
[0011] 図 1は本発明の実施の形態に係る記憶システムの構成を示すブロック図である。図 1に示すように、本発明の実施の形態に係る記憶システムは、ホスト機器 1と、記憶装 置 2を有し、バス 3によってホスト機器 1と記憶装置 2とを接続する。ホスト機器 1は、 C PU101、 CPU101のプログラムを格納する ROM102、 CPUのワーク領域となる RA M103及びインターフェース 104を有して!/、る。インターフェース 104は記憶装置 2へ のコマンドやデータ、アドレスの送信、応答の受信をするものである。ここで ROM10 2は CPU101が実行するアクセスプログラムを記憶している。又 CPU101はコマンド 送信部 101a,応答受信部 101b及びアクセス判定部 101cの機能を達成している。コ マンド送信部 101aはホスト機能情報を含むコマンドをインターフェース 104を介して 送信する。ホスト機能情報とはこのホスト機器 1が実行できる機能を示すものである。 応答受信部 101bはコマンド送信部よりコマンドの送信後に応答を受け付け、エラー の有無を判別するものである。アクセス判定部 101cは各コマンドの送信後にアクセス 可否を判定するものである。即ち応答受信部 101bより正常な応答が判別されたとき にアクセス可能と判断し、それ以外のときにアクセスを不可と判断する。
[0012] 記憶装置 2は、インターフェース 201、制御部 202、メモリ制御部 203及びメモリ 20 4を有している。インターフェース 201はホスト機器 1からのコマンドやデータを受信し 応答を送信するものである。又制御部 202はコマンド受信部 202a,応答送信部 202 b,アクセス判定部 202cを有している。コマンド受信部 202aはホスト機器力も発行さ れるコマンドを受信して各コマンドに応じた処理を行うものである。アクセス判定部 20 2cはコマンド受信部よつて受信されたコマンドに付されている機能をサポートしてい るかどうかを判定し、サポートして!/、る場合にアクセスを受け付ける処理を行うもので ある。応答送信部 202bはアクセス判定部 202cの判定結果に基づ 、て応答するもの である。又メモリ制御部 203はメモリ 204へのデータの書き込み及び読み出しを制御 するものであり、メモリ 204はホスト機器から与えられるデータを保持するものである。 記憶装置 2はホスト機器 1から送信されたコマンドに付された機能をサポートする場合 にホスト機器 1からのアクセスを受付可能と判定する。 [0013] 図 2はホスト機器 1の行うコマンド送信処理のフローチャートである。ホスト機器 1は 記憶装置 2に対し後述するようにホスト機能情報を付加したコマンドを送信し (S201) 、記憶装置 2からの応答を待つ(S202)。記憶装置 2から応答がある場合、応答の内 容をチェックしエラーがないかどうかを確認する(S203)。エラーがない場合は、記憶 装置 2へのアクセス可能と判定する。必要な場合にはデータの送受信を行う。一方 S 202にお 、て記憶装置 2からの応答がな 、場合、または S203にお 、て応答にエラ 一が含まれる場合は、記憶装置 2へのアクセス不可と判定する。
[0014] 送信するコマンドにはホスト機器 1の備える機能を示すホスト機能情報を付加する。
ホスト機能情報としては、例えばホスト機器 1が対応する規格のバージョン番号でもよ いし、所定の機能を備えることを示すフラグや固有のビットパターンでもよい。例えば ホスト機能情報とは、 FAT16, FAT32, UDF等のファイルシステムの種類や、アド レッシングモードであり、更には付加機能としてキャッシュ機能の有無、割り込みの有 無、高速インターフェースをサポートするかどうか等がある。
[0015] 図 3はホスト機器 1が送信するコマンドフォーマットの一例である。コマンドは、開始 フラグ S、コマンド識別子 COM、コマンド引数 ARG、 COMおよび ARGに含まれる誤 りを検出するための CRC (Cyclic Redundancy Code)及び終了フラグ Eで構成され る。ホスト機器 1の備える機能を示すホスト機能情報 HIは、図 3 (a)にハツチングで示 すように識別子 COMの全部または一部を使用して付加したり、図 3 (b)にノ、ツチング で示すように引数 ARGの一部または全部を使用して付加したり、あるいは図 3 (c)の ように識別子 COMと引数 ARGの両方を用いて付加する。図 3 (d)はホスト機能情報 HIを引数 ARGの複数のビットを用いて記憶装置に通知するコマンドの例を示してい る。例えば bO, blはファイルシステム、 b2は割り込み機能の有無、 b3はキャッシュ機 能、 b4は高速インターフェースの有無等とする。なお、コマンドにホスト機能情報 HI を付加するのは新しいバージョンの規格に対応したホスト機器とし、コマンドにホスト 機能情報が付加されて 、な 、ことで古 、バージョンの規格に対応したホスト機器を表 すことも可能である。また後述するように、記憶装置 2がコマンドに対する応答に記憶 装置 2の備える機能を示す記憶装置情報を付加する場合は、ホスト機器 1は記憶装 置情報に基づいて送信するコマンドの種類、フォーマットを変えることも可能である。 [0016] 記憶装置 2はホスト機器 1からのコマンドを受信すると、コマンドに含まれるホスト機 能情報の示す機能を処理できる力判定する。図 4は記憶装置 2によるコマンド受信処 理のフローチャートである。記憶装置 2はホスト機器 1の送信するコマンドを受信する と(S401)そのコマンドを実行し、コマンド識別子または引数、あるいはその両方に付 カロされたホスト機能情報を取り出す (S402)。そしてホストの機能が処理可能力どうか を判定する(S403)。コマンドで示された機能を処理可能な場合、ホスト機器に対し て正常な応答を返す (S404)。本実施の形態では示された機能の全てをサポートす る場合にのみ、正常応答する。一方 S403で少なくとも一部の機能が処理不可能で あると判定した場合は、エラー情報を含む応答を返す (S405)。又これに代えて応答 を返さずタイムアウトを発生させてもょ 、。
[0017] 前述した実施の形態では示された全ての機能をサポートする場合にのみ正常応答 としたが、一部の機能のみをサポートする場合も正常応答を返し、且つ記憶装置の 備える機能を示す記憶装置情報を応答に付加してもよ!ヽ。記憶装置情報は例えば 記憶装置 2が対応する規格のバージョン番号でもよ 、し、所定の機能を備えることを 示すフラグや固有のビットパターンでもよ 、。
[0018] 図 5はホスト機器 1のコマンドに対して記憶装置 2が記憶装置情報を付して応答する 場合のフォーマットである。応答は、図 5 (a)のように開始フラグ S、転送フラグ T、ホス ト機器 1が送信したコマンドの識別子 COM、応答 RES、 COMおよび RESに含まれ る誤りを検出するための CRCおよび終了フラグ Eで構成する応答のフォーマットの例 を示す。ここでは応答 RESの一部にハッチングで示すように記憶装置情報 DIを含む 例を示している。又図 5 (b)のようにホスト機器 1が送信したコマンドの識別子 COMが ないように構成してもよい。応答 RESには、ホスト機器 1が送信したコマンドを処理可 能かどうかを示すエラー情報を付加してもよい。また、応答 RESに記憶装置情報を付 カロしなくてもよい。なお、コマンドへの応答に記憶装置情報 DIを付加するのは新しい バージョンの規格に対応した記憶装置とし、コマンドへの応答に記憶装置情報が付 加されて!、な ヽことで古!ヽバージョンの規格に対応した記憶装置を表すことも可能で ある。
[0019] 図 6 (a)はホスト機器 1から発行するコマンドの他の例を示す図であり、図 6 (b)はこ れに対応する記憶装置側の応答の例を示す図である。この例ではホスト機器力 の コマンドとその応答を同一のフォーマットとする。コマンド識別子(コマンド番号)にカロ えて、引数領域が 3つのフィールド Fl, F2, F3に分力、れている。第 1のフィールド F1 はホスト機能情報を示すフィールドであり、前述したものと同様に、ホストの機能、例え ばファイルシステムや割り込み機能、アドレッシングモード等の情報が含まれる。この 場合にはファイルシステムや割り込み機能、アドレッシングモード等のサポート機能に 応じたビットを立てるようにすることが考えられる。第 2のフィールド F2は拡張用フィー ルドであり、将来の拡張機能追加のための領域である。第 3のフィールド F3は通信品 質をチェックするためのチェックパターンが挿入されたフィールドとする。
[0020] 又図 6 (b)に示すように記憶装置の応答もこれと同一のフォーマットによって構成さ れる。この場合にはホスト機能情報に対応する第 1のフィールド F1は記憶装置情報 であり、ホスト機能情報に対応した内容をチェックし、サポートしている機能を記憶装 置情報として応答する。ホスト機器力 のコマンドのホスト機能情報がサポートする機 能に応じたビットが立てられていた場合には、記憶装置の応答もこれをサポートする 場合に同一のビットを立て、サポートしない場合は 0する等の応答が考えられる。又 第 2のフィールド F2は拡張用として保持されている領域であるため、記憶装置より全 て" 1"又は" 0"を返す。又第 3のフィールド F3は通信品質を確認するためのフィール ドである。この応答はホスト機器 1から発行されたチェックパターンをそのまま返送する ものであってもよぐ又反転したり適当な出力の排他的論理和 (EXOR)をとつて記憶 装置よりホスト機器側に応答するものとしてもよい。
[0021] 図 6 (a) , (b)に示すフォーマットを用いる場合には、図 1に示す応答受信部 101b は、第 1のフィールド F1に保持されている記憶装置情報を読み出すだけでなぐチェ ックパターンが送信したチェックパターンと同一又は必要な処理を行った結果に一致 するかどうかを判別する機能を含むことが必要となる。又応答送信部 202bは、ホスト 機器力も受け取ったチェックパターンをそのまま送信するか又は所定の操作をして第 3のフィールドに返送するチェックパターンとする処理が必要となる。こうすればホスト 機能情報を記憶装置側に伝えることができるだけでなぐ将来の拡張も可能であり、 通信品質を記憶装置側及びホスト側で認識することができる。 産業上の利用可能性
本発明よると、ホスト機器の送信コマンドに含まれる機能を記憶装置が判定し、その 機能をサポートする場合のみホスト機器のアクセスを受付可能と判定するため、簡単 な構造'制御でアクセス制御を行うことができ、コマンドを用いて記憶装置の初期化お よびデータの送受信を行うホスト機器、記憶装置、及び記憶装置へのアクセス方法に 有用である。

Claims

請求の範囲
[1] 記憶装置とバスで接続され、前記記憶装置のデータの書き込み及び読み出しを行 うホスト機器であって、
前記記憶装置に対しホスト機能情報を含むコマンドを送信するコマンド送信部と、 前記コマンド送信部よりコマンドを送信した後に、前記記憶装置からの応答を受け 付ける応答受信部と、
前記コマンド送信部からの各コマンドの送出後に前記応答受信部より正常受信が 判別されればアクセスが可能と判断し、それ以外のときにアクセスが不可と判断する アクセス可否判断部と、を具備するホスト機器。
[2] コマンド送信部は、コマンド識別子で表されるホスト機能情報を送信する請求項 1記 載のホスト機器。
[3] コマンド送信部は、コマンドの引数に付加されるホスト機能情報を送信する請求項 1 記載のホスト機器。
[4] コマンド送信部は、コマンド識別子及びコマンドの引数で表されるホスト機能情報を 送信する請求項 1記載のホスト機器。
[5] 前記コマンド送信部より送信するコマンドは、
ホスト機器の用いるホスト機能情報を保持する第 1のフィールドと、
拡張用の領域として用いる第 2のフィールドと、
通信品質をチェックするためのチェックパターンを保持する第 3のフィールドと、を含 む引数領域を有する請求項 1記載のホスト機器。
[6] 前記応答受信部は、前記記憶装置より受信した応答の第 3のフィールドのチェック パターンに基づいて通信品質を判別する機能を有する請求項 5記載のホスト機器。
[7] ホスト機器とバスで接続され、前記ホスト機器からのコマンドに基づいてデータを記 憶し、及び読み出す記憶装置であって、
ホスト機器から与えられるデータを保持するメモリと、
前記メモリへのデータの書き込み及び読み出しを制御するメモリ制御部と、 前記ホスト機器力 発行されるコマンドを受信し、各コマンドに応じた処理を行うコマ ンド受信部と、 前記コマンド受信部によって受信されたコマンドに付加されたホスト機能情報の示 す機能をサポートしている場合にアクセスを受け付けるアクセス判定部と、
前記アクセス判定部がアクセスの受付けを決定したときに正常応答を返す応答送 信部と、を具備する記憶装置。
[8] 前記応答送信部は、ホスト機能情報の付加されたコマンドへの応答に前記記憶装 置の備える機能を示す記憶装置情報を付加することを特徴とする請求項 7記載の記 憶装置。
[9] 前記応答送信部は、前記ホスト機能情報の示す機能を処理できな!ヽ場合、前記ホ スト機器にエラー情報を返すことを特徴とする請求項 7記載の記憶装置。
[10] 前記応答送信部は、前記ホスト機能情報の示す機能を処理できる場合にのみ、前 記ホスト機器に対して応答する請求項 7記載の記憶装置。
[11] 前記応答送信部からの応答は、
前記ホスト機器力ゝらのコマンドの機器情報に対応して記憶装置が備える機能を示 す記憶装置情報とを保持する第 1のフィールドと、
全て特定の値とする第 2のフィールドと、
チェックパターンを示す第 3のフィールドとを有する請求項 7記載の記憶装置。
[12] 前記応答送信部は、ホスト機器力ものコマンドにチェックパターンが含まれている場 合に所定の操作をして操作後のチェックパターンとして応答の第 3フィールドに加え る請求項 11記載の記憶装置。
[13] 前記記憶装置は、半導体メモリカードである請求項 7記載の記憶装置。
[14] 記憶装置とバスで接続され、前記記憶装置のデータの書き込み及び読み出しを行 うホスト機器の記憶装置へのアクセス方法であって、
前記記憶装置に対しホスト機能情報を含むコマンドを送信し、
コマンドを送信した後に、前記記憶装置力もの応答を受け付け、
コマンドの送出後に受信した応答が正常応答と判別されればアクセスが可能と判断 し、それ以外のときにアクセス不可と判断する記憶装置へのアクセス方法。
[15] 前記コマンドを送信する際にコマンド識別子で表されるホスト機能情報を送信する 請求項 14記載の記憶装置へのアクセス方法。 前記コマンドを送信する際にコマンドの引数に付加されるホスト機能情報を送信す る請求項 14記載の記憶装置へのアクセス方法。
前記コマンドを送信する際にコマンド識別子及びコマンドの引数で表されるホスト機 能情報を送信する請求項 14記載の記憶装置へのアクセス方法。
PCT/JP2005/011800 2004-07-08 2005-06-28 ホスト機器、記憶装置、及び記憶装置へのアクセス方法 WO2006006388A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP05765359A EP1785827A4 (en) 2004-07-08 2005-06-28 HOST DEVICE, STORAGE DEVICE, AND METHOD FOR ACCESSING THE STORAGE DEVICE
US11/571,597 US7921229B2 (en) 2004-07-08 2005-06-28 Host device, storage device, and method for accessing a storage device
JP2006528688A JPWO2006006388A1 (ja) 2004-07-08 2005-06-28 ホスト機器、記憶装置、及び記憶装置へのアクセス方法

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004-201509 2004-07-08
JP2004201509 2004-07-08

Publications (1)

Publication Number Publication Date
WO2006006388A1 true WO2006006388A1 (ja) 2006-01-19

Family

ID=35783733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2005/011800 WO2006006388A1 (ja) 2004-07-08 2005-06-28 ホスト機器、記憶装置、及び記憶装置へのアクセス方法

Country Status (6)

Country Link
US (1) US7921229B2 (ja)
EP (1) EP1785827A4 (ja)
JP (1) JPWO2006006388A1 (ja)
CN (1) CN100454226C (ja)
TW (1) TWI394040B (ja)
WO (1) WO2006006388A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010001602A1 (ja) * 2008-07-01 2010-01-07 パナソニック株式会社 メモリコントローラ、不揮発性記憶装置、データ処理装置、不揮発性記憶装置システム及び方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2006006387A1 (ja) * 2004-07-08 2008-04-24 松下電器産業株式会社 ホスト機器、記憶装置、及び記憶装置へのアクセス方法
JPWO2007049455A1 (ja) * 2005-10-28 2009-04-30 パナソニック株式会社 半導体メモリカード
KR101083508B1 (ko) * 2009-10-12 2011-11-17 엘지이노텍 주식회사 스핀들 모터

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0228741A (ja) * 1988-07-18 1990-01-30 Nippon Telegr & Teleph Corp <Ntt> 入出力デバイスの状態制御方式
JPH0660235A (ja) * 1992-08-13 1994-03-04 Matsushita Electric Ind Co Ltd Icカード
JP2003223623A (ja) * 2001-11-05 2003-08-08 Matsushita Electric Ind Co Ltd 半導体メモリカード、その制御方法及び半導体メモリカード用インターフェース装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69320900T3 (de) * 1992-08-13 2007-04-26 Matsushita Electric Industrial Co., Ltd., Kadoma IC-Karte mit hierarchischer Dateienstruktur
AU6769994A (en) * 1993-05-07 1994-12-12 Apple Computer, Inc. Data streaming for non-dma digital computing devices
JP3480746B2 (ja) * 1993-11-11 2003-12-22 株式会社東芝 携帯可能電子装置
US6279114B1 (en) * 1998-11-04 2001-08-21 Sandisk Corporation Voltage negotiation in a single host multiple cards system
US6609167B1 (en) * 1999-03-17 2003-08-19 Adaptec, Inc. Host and device serial communication protocols and communication packet formats
JP3975245B2 (ja) * 1999-12-16 2007-09-12 株式会社ルネサステクノロジ 記録再生装置および半導体メモリ
JP2001249802A (ja) 2000-03-07 2001-09-14 Sony Corp 伝送方法、伝送システム、伝送制御装置及び入力装置
ATE463916T1 (de) * 2001-01-26 2010-04-15 Microsoft Corp Verfahren und vorrichtung zur automatischen bestimmung eines geeigneten übertragungsverfahrens in einem netzwerk
US6842395B2 (en) * 2001-11-05 2005-01-11 Matsushira Electric Industrial Co., Ltd. Semiconductor memory card, method of controlling the same and interface apparatus for semiconductor memory card
JP3806077B2 (ja) * 2002-08-26 2006-08-09 株式会社東芝 メモリカード認識システム、容量切り替え型メモリカード・ホスト機器、容量切り替え型メモリカード、記憶容量設定方法及び記憶容量設定プログラム
JP2004139503A (ja) * 2002-10-21 2004-05-13 Matsushita Electric Ind Co Ltd 記憶装置及びその制御方法
EP1416665A2 (en) * 2002-10-31 2004-05-06 Matsushita Electric Industrial Co., Ltd. Communication device, communication system, and cryptographic algorithm selection method
WO2004110021A2 (en) * 2003-06-02 2004-12-16 Qualcomm Incorporated Generating and implementing a signal protocol and interface for higher data rates
US20050053091A1 (en) * 2003-09-04 2005-03-10 Hewlett-Packard Development Company, Lp Method and infrastructure for minimizing compatibility issues among interacting components of different dialect versions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0228741A (ja) * 1988-07-18 1990-01-30 Nippon Telegr & Teleph Corp <Ntt> 入出力デバイスの状態制御方式
JPH0660235A (ja) * 1992-08-13 1994-03-04 Matsushita Electric Ind Co Ltd Icカード
JP2003223623A (ja) * 2001-11-05 2003-08-08 Matsushita Electric Ind Co Ltd 半導体メモリカード、その制御方法及び半導体メモリカード用インターフェース装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP1785827A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010001602A1 (ja) * 2008-07-01 2010-01-07 パナソニック株式会社 メモリコントローラ、不揮発性記憶装置、データ処理装置、不揮発性記憶装置システム及び方法

Also Published As

Publication number Publication date
EP1785827A1 (en) 2007-05-16
US7921229B2 (en) 2011-04-05
JPWO2006006388A1 (ja) 2008-04-24
US20080046606A1 (en) 2008-02-21
TWI394040B (zh) 2013-04-21
EP1785827A4 (en) 2009-05-06
CN1981260A (zh) 2007-06-13
CN100454226C (zh) 2009-01-21
TW200604804A (en) 2006-02-01

Similar Documents

Publication Publication Date Title
USRE47543E1 (en) Card and host device
US8078788B2 (en) Media card command pass through methods
US8135871B2 (en) Computer system and control method of the same
JP4626582B2 (ja) カード型周辺機器およびカード通信システム
US20070245055A1 (en) USB composite device, USB communication system, and USB communication method
JP2004157966A (ja) エンドポイント・メモリ制御方法、エンドポイント・メモリ制御装置、usb装置および記憶媒体
US6779052B2 (en) Electronic apparatus, system and method for controlling communication among devices coupled through different interfaces
CN102422256A (zh) 用于访问具有附加模块的便携式存储数据载体的方法和便携式存储数据载体
CN101405700A (zh) 错误管理拓扑结构
WO2006006388A1 (ja) ホスト機器、記憶装置、及び記憶装置へのアクセス方法
US20070022222A1 (en) Memory device and associated method
JP4291068B2 (ja) Icカード及びicカードシステム
US7900007B2 (en) Host device, storage device, and method for accessing storage device
JP5077397B2 (ja) カード型周辺機器のアクセス方法、ホスト機器、およびカード通信方法
JPH1074243A (ja) Icカード
US7761635B1 (en) Bridge device access system
CN112346922A (zh) 服务器装置及其通讯协议方法
CN117708004A (zh) 不同规格之转接卡信息的读取方法及基板管理控制模块
CN115878549A (zh) 核间通信***
CN113364564A (zh) 数据传输方法、微处理器、数据传输设备及存储介质

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KM KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NG NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DPEN Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed from 20040101)
WWE Wipo information: entry into national phase

Ref document number: 2006528688

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2005765359

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 200580023057.2

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

WWE Wipo information: entry into national phase

Ref document number: 11571597

Country of ref document: US

WWP Wipo information: published in national office

Ref document number: 2005765359

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 11571597

Country of ref document: US