WO2006038260A1 - Usb storage system and usb storage device - Google Patents

Usb storage system and usb storage device Download PDF

Info

Publication number
WO2006038260A1
WO2006038260A1 PCT/JP2004/014357 JP2004014357W WO2006038260A1 WO 2006038260 A1 WO2006038260 A1 WO 2006038260A1 JP 2004014357 W JP2004014357 W JP 2004014357W WO 2006038260 A1 WO2006038260 A1 WO 2006038260A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
function
hosts
host
storage system
Prior art date
Application number
PCT/JP2004/014357
Other languages
French (fr)
Japanese (ja)
Inventor
Shinichi Suzuki
Atsuyuki Ikeya
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 PCT/JP2004/014357 priority Critical patent/WO2006038260A1/en
Priority to JP2006539091A priority patent/JPWO2006038260A1/en
Publication of WO2006038260A1 publication Critical patent/WO2006038260A1/en

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/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • 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/0629Configuration or reconfiguration of storage systems
    • G06F3/0637Permissions
    • 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 USB (Universal Serial Bus) storage system and a USB storage device, and more particularly to a technology effective when applied to a USB storage system and a USB storage device that are connected to a plurality of hosts. is there.
  • USB Universal Serial Bus
  • USB storage system According to a study by the present inventor, the following technologies can be considered for the USB storage system.
  • USB storage devices that handle external media such as memory cards and floppy disks (registered trademark) as removable disks due to their ease of use with plug-and-play functions and improved data transfer speed according to the USB 2.0 standard
  • USB reader / writers There are many (hereinafter referred to as USB reader / writers).
  • FIG. 10 is a schematic diagram showing an example of the configuration of the USB storage system of the technology studied as the premise of the present invention, and (a) to (c) show different configuration examples.
  • FIG. 10 (&) 113 1 I cable 102 Nyo; 38 USB writer 101a which is connected to the host 1 3 Ji 100, one such as an SD (Secure Digital) memory card or floppy disk External media can be inserted.
  • Fig. 10 (b) a plurality of different types such as USB reader / writer 101b force CF (CompactFlash (registered trademark)) card, SD memory card and Memory Stick (registered trademark) connected in the same way as in Fig. 10 (a).
  • External media [1], [2], ..., [N] can be inserted.
  • the USB reader / writer 101c connected in the same way as in Fig. 10 (a) is connected to multiple external media [1], [2] of the same type that have MMC (MultiMediaCard (registered trademark)) card power. , ..., [N] can be inserted.
  • MMC MultiMediaCard (registered trademark)
  • USB host PC the correspondence between the USB host PC and the external media is one-to-one or one-to-many. Therefore, for example, when an external medium having a user power using a plurality of PCs is used on a plurality of PCs (USB host PCs), for example, an operation as shown in FIG.
  • FIG. 11 is a diagram for explaining the work contents when a specific external medium is used by a plurality of USB host PCs in the USB storage system of the technology studied as the premise of the present invention.
  • the work is performed after using external media on the USB host PC [l] 110a, connect to the USB host PC [1] 110a !, disconnect the USB cable 112 (S110), and connect the USB cable to the USB host PC [2] 112 Is connected (S111), the work is performed.
  • an object of the present invention is to provide a USB storage system and a USB storage device capable of improving time efficiency when used by a plurality of hosts.
  • Another object of the present invention is to provide a USB storage system and a USB storage device that can save power when used by a plurality of hosts.
  • a USB storage system includes a plurality of USB hosts and a USB function including a function as an external storage medium, and data transfer based on the USB protocol between the USB function and the plurality of USB hosts. Is to do.
  • the USB function has a function that enables a plurality of USB hosts to perform shared access to the USB function external storage medium in a state where a plurality of USB hosts are connected to the USB function. It becomes something.
  • USB function as an external storage medium when used by multiple USB hosts, work and processing such as reconnection of the USB cable and initialization associated therewith are not required, and time efficiency is improved. It is possible to improve the power consumption.
  • the function that enables the shared access is performed, for example, by one USB host among a plurality of USB hosts executing a process of writing to the external storage medium of the USB function. While there are multiple USB hosts, it includes a function to reject write requests from other USB hosts.
  • the plurality of USB hosts include a first USB host and a second USB host, and the function of enabling the shared access is a USB function generated by the first USB host. If a second write request for the external storage medium is generated from the second USB host during the processing of the first write request for the external storage medium, the second USB host It includes a function that notifies the rejection of the write request and continues the processing of the first write request! / Speak.
  • the function of the USB function as an external storage medium is realized by, for example, a memory card. As a result, it is possible to reduce the memory card initialization process, which has been required every time the USB cable is reconnected, improving the time efficiency and saving power.
  • the USB storage system includes a plurality of USB hosts and a USB function including a function as an external storage medium.
  • the function of rejecting the write request is realized by a program process by a computer provided in the USB function, and the program process is a write request to the external storage medium from the one USB host.
  • a step of notifying the other USB host of rejection of the generated write request when the request is generated that is, by adding a function for rejecting the write request to the software, it becomes possible to easily realize sharing of an external storage medium by a plurality of USB hosts.
  • the step of notifying the rejection of the write request can be performed using data of a request sense command, for example.
  • the USB storage device of the present invention includes a plurality of USB connector terminals connected to a plurality of USB hosts, and a media connector terminal connected to an external storage medium, and the plurality of the plurality of USB connector terminals based on a USB protocol. Data transfer to and from a USB host is possible, and a plurality of USB hosts are connected to the plurality of USB connector terminals and an external storage medium is connected to the media connector terminal.
  • the US B host has a function that enables shared access to external storage media.
  • examples of the external storage medium include a memory card.
  • the USB storage device includes a plurality of media connector terminals, and a plurality of the same type or different types of memory cards are connected to the plurality of media connector terminals. You may make it.
  • the USB storage device can be provided with a bridge function that can arbitrarily set the connection between the plurality of USB connector terminals and the plurality of media connector terminals.
  • USB function having a function as an external storage medium
  • a function for enabling shared access of the external storage medium by a plurality of USB hosts is provided.
  • the time efficiency when using the external storage medium by the B host can be improved, and power saving can be achieved.
  • FIG. 1 is a schematic view showing an example of the system configuration of a USB storage system according to an embodiment of the present invention.
  • FIG. 2 is a diagram showing an example of a logical configuration of a USB host in the USB storage system of FIG.
  • FIG. 3 is a diagram showing an example of a logical configuration of a USB reader / writer in the USB storage system of FIG. 1.
  • FIG. 4 is a perspective view showing an example of the external shape of a USB reader / writer in the USB storage system of FIG.
  • FIG. 5 is an explanatory diagram showing an example of the operation outline of the USB reader / writer of FIG. 3.
  • FIG. 6 is a processing flowchart showing an example of interface software processing in the USB reader / writer of FIG. 3.
  • FIG. 7 is a process flow diagram for explaining an example of the operation in the system configuration of FIG.
  • FIG. 8 is a schematic diagram showing an example of a system configuration obtained by extending FIG. 1 in the USB storage system according to the embodiment of the present invention.
  • FIG. 9 is a schematic diagram illustrating an example of a configuration in which a plurality of external media can be shared by a plurality of USB hosts in a USB storage system according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram showing an example of the configuration of the USB storage system of the technology studied as a premise of the present invention, and (a) to (c) show different configuration examples.
  • FIG. 11 is a diagram for explaining work contents when a specific external medium is used by a plurality of USB host PCs in the USB storage system of the technology studied as a premise of the present invention.
  • FIG. 1 is a schematic diagram showing an example of the system configuration of a USB storage system according to an embodiment of the present invention.
  • the USB storage system shown in Fig. 1 is connected to multiple USB hosts consisting of, for example, USB host [1] 10a and USB host [2] 10b, and multiple USB hosts via USB cables 12a and 12b respectively. It consists of USB reader / writer 11 Typical examples of USB hosts include personal computers.
  • the USB reader / writer 11 is a USB storage device having a function as an external storage medium.
  • an external medium (external storage media) 13 such as a memory card or a floppy disk can be connected. It has become. Note that in Fig. 1, it is possible to apply 3 or more USB hosts. For simplicity, the following explanation assumes that there are 2 USB hosts.
  • FIG. 2 is a diagram showing an example of the logical configuration of the USB host in the USB storage system of FIG.
  • the USB host shown in Fig. 2 has an application layer, a system software layer, and a hardware layer from the upper layer to the lower layer.
  • the application layer includes application software 20.
  • Typical examples of the application software 20 include an explorer having a function for operating folders and files, and an audio play having a music data playback function. Yer.
  • the application layer sends and receives data to and from the system software layer.
  • the system software layer manages the hardware layer, and performs conversion based on the USB protocol on the transmission / reception data between the application layer and the hardware layer.
  • the system software layer includes a USB mass storage class driver 21a and a USB bus driver 21b.
  • the USB mass storage class driver 21a performs management of a command transport, a data transport, a status transport, and the like defined by a standard called a USB mass storage class.
  • the USB bus driver 21b performs processing common to each USB class, such as transaction management.
  • the hardware layer includes a USB host controller 22! /.
  • the USB host controller 22 is electrically connected to the USB reader / writer via the USB cable 23, and is a hardware that processes the USB host's electrical signals such as detecting the connection of the USB reader / writer and sending / receiving packets to / from the USB reader / writer. Wear.
  • the USB reader / writer 11 has a configuration as shown in FIG. 3 and FIG.
  • FIG. 3 is a diagram showing an example of the logical configuration of the USB reader / writer in the USB storage system of FIG.
  • FIG. 4 is a perspective view showing an example of the outer shape of the USB reader / writer in the USB storage system of FIG.
  • the USB reader / writer shown in FIG. 3 includes, for example, a USB function module [1] (hereinafter, USB module [1]) 30 and a USB function module [2] (hereinafter, USB module [2]) 31. Includes 2 USB function modules, external media module 32, interface software (hereinafter referred to as interface software) 33, etc.
  • the USB module [1] 30 includes a USB mass storage class firmware [1] 30a that is software and a USB function controller [1] 30b that is hardware, and a USB host [1 ] Etc.
  • the USB module [2] 31 includes a USB mass storage class firmware [2] 31a and a USB function controller [2] 3 lb, and is connected to a USB host [2], etc. via a USB cable 12b.
  • the external media module 32 includes an external media firmware 32 a that is software and an external media host controller 32 b that is hardware, and is connected to the external media 13.
  • the application layer includes interface software 33.
  • the interface software 33 is software that controls data transfer between the USB modules [1] 30, [2] 31 and the external media module 32.
  • the interface software 33 further has a function of performing a response process when a write request is generated from the other USB module during a response process of a write request from one USB module to the external medium 13.
  • the interface software 33 is stored in, for example, a ROM or the like provided in the USB reader / writer, and the interface software 33 is executed by, for example, a microcomputer and a RAM provided in the USB reader / writer. The same applies to various software in the system software layer described later.
  • the system software layer includes USB mass storage class firmware [1] 30a, [2] 31a and external media firmware 32a.
  • USB mass storage class firmware [1] 30a (or [2] 31a) controls the USB function controller [1] 30b (or [2] 31b) and performs processing specific to the USB mass storage class.
  • the external media firmware 32a performs transaction management of the external media 13 and control of the external media host controller 32b.
  • the hardware layer includes a USB function controller [1] 30b, [2] 31b and an external media host controller 32b.
  • USB function controller [1] 30b, [2] 3 lb processes USB function electrical signals such as packet transmission and reception.
  • the external media host controller 32b performs electrical signal processing such as command transmission to the external medium 13, reception of a response from the external medium 13, and data transmission / reception with the external medium 13.
  • Such a USB reader / writer has an outer shape as shown in FIG. 4, for example.
  • a housing 40 is provided with two USB connectors [l] 41a, [2] 41b and an external media connector (external media slot) 42.
  • the USB connectors [l] 41a and [2] 41b are USB function connectors, and are connected to the USB hosts [1] and [2] by USB cables 12a and 12b, respectively.
  • External media such as a memory card or floppy disk is inserted and connected to the external media connector 42.
  • the present invention is characterized in that the USB host [1] and the USB host
  • a USB reader / writer is provided with a plurality of USB modules, and the interface software is used to arbitrate when processing requests are simultaneously generated from a plurality of USB modules.
  • the function is realized. The details of the arbitration function of this interface software will be described below.
  • the request from the USB host to the USB reader / writer includes a request to write data to the external media memory (hereinafter referred to as a write request), a request to read data from the external media memory (hereinafter referred to as a read request), and a USB There is a request to acquire the status and information of the reader / writer (hereinafter referred to as status acquisition request).
  • the request from the USB host and the corresponding processing of the USB reader / writer in response to the request do not overlap in time, or the memory contents of the external media are not changed even if they overlap
  • the data stored in the external media can be stored by using exclusive control such that the USB reader / writer's interface software does not overlap with each other's requests and external media.
  • the problem occurs when two USB hosts are used when a write request is issued from another USB host during processing of a write request from a USB host that has USB reader / writer capabilities. Therefore, for example, this problem is avoided by the following operation.
  • the USB reader / writer receives a write request from another USB host (USB host [1]) during the processing of a write request from a USB host (USB host [2]). If the request is received, the request from the USB host [1] is rejected and the write request from the USB host [2] is rejected. Continue handling. In other words, the operation outline is as shown in FIG.
  • FIG. 5 is an explanatory diagram showing an example of the operation outline of the USB reader / writer of FIG.
  • the interface software 33 in the USB reader / writer receives a write request [2] from the USB module [2] 31, it returns an acceptance response to the USB module [2] 31 and writes to the external media module 32. Send data corresponding to request [2].
  • the interface software 33 virtually transmits to the USB module [1] 30. Notify that the external media 13 is in operation and reject the request from the USB host [1].
  • FIG. 6 is a process flow diagram showing an example of interface software processing in the USB reader / writer of FIG.
  • the interface software 33 is activated after the external medium 13 is connected or after the USB cable 12a (or 12b) is connected (S601), and enters an event waiting state.
  • the events received by interface software 33 include USB module (US B module [1] 30 or USB module [2] 31) powerful read requests and write requests, and read completion notifications from external media module 32 (interface software Read completion notification corresponding to 33 read requests) and write completion notification (write completion notification corresponding to interface software 33 write request).
  • the USB module [1] 30 (or [2] 31) has a read request while waiting for an event (S602)
  • the content of the read request is analyzed and lead identification information is created (S603).
  • the lead identification information is used to identify read requests when multiple read requests overlap.
  • the lead identification information includes a read request ID, a USB module number for identifying the requested USB module, a read address, and a read size force.
  • a read request is made to the external media module 32 (S604). Next, it shifts to the event waiting state.
  • the operation status flag is a flag indicating that writing to the external media 13 is in progress. This is used for exclusive control so that the writing process to the external medium 13 does not overlap, and the initial value is OFF.
  • the operation status flag is ON, an operation status notification is created and sent to the corresponding USB module [1] 30 (or [2] 31) to reject the write request (S607). On the other hand, if the operation status flag is OFF, the operation status flag is turned ON (S608). Thereafter, a write request is made to the external media module 32 (S609). Next, it shifts to an event waiting state.
  • the state of the external medium 13 is checked (S615), and if the external medium 13 is removed, the process is terminated. If it has not been removed, the event waiting state is continued.
  • USB reader / writer that supports plug-and-play and other features such as USB and memory cards can be realized.
  • Re-initializing external media such as SD memory cards can be omitted. As a result, the time efficiency can be improved and the power can be saved.
  • FIG. 2 is a process flow diagram for explaining an example of the operation in the system configuration of 1.
  • FIG. 2 The following describes an example of processing when the USB host [1] 10a transmits a data write request to the USB reader / writer 11 while the USB host [2] 10b in FIG. 1 is writing data.
  • data transfer conforming to the generally known USB mass storage standard shall be performed.
  • description will be made in association with the processing numbers in FIG.
  • USB reader / writer 11 When the USB reader / writer 11 receives the write [2] request CBW, it analyzes the number of data in the write address. Also, write [2] request CBW is converted to the command format specific to external media 13. That is, protocol conversion is performed.
  • the USB reader / writer 11 issues a write [2] command converted into the specific command format to the external medium 13.
  • USB host [2] 10b transmits the write [2] data to the USB reader / writer 11 in the format defined by the USB mass storage class.
  • the USB reader / writer 11 Upon receiving the write [2] data, the USB reader / writer 11 converts the write [2] data into a data format specific to the external media 13. That is, protocol conversion is performed.
  • the USB reader / writer 11 writes the converted write to the external medium 13.
  • the USB host [l] 10a issues a write defined by the USB mass storage class [1] CBW to the USB reader / writer 11 to write data to the memory of the external media 13 To do.
  • the USB reader / writer 11 is able to receive the write [1] request CBW.
  • Host [2] 10 b write [2] The request is being processed, so the USB host [1] 10a
  • write [1] rejects the request. That is, an operation state notification for notifying that the external media 13 is virtually in an operation state is created by the processing of the interface software 33 described above.
  • the ASC Additional Sense Code
  • H and ASCQ Additional Sequence Code Qualifier
  • the request sense command data is data returned to the host when the USB host generates a request sense command to the USB reader / writer.
  • the USB reader / writer 11 After the completion of the operation status notification, the USB reader / writer 11 transmits the operation status notification (request sense command data in this case) to the USB host [l] 10a.
  • USB host [l] 10a When the USB host [l] 10a receives the operation state notification, the USB host [1] 10a recognizes that data cannot be written to the memory of the external medium 13 and notifies the host application or the like.
  • the external medium 13 notifies the USB reader / writer 11 of the completion of the writing of the converted write [2] when the data writing is completed.
  • CSW is a bucket that is defined in the USB mass storage class and used when the USB host acquires the execution results for the CBW with the USB function.
  • USB reader / writer 11 writes to USB host [2] 10b [2] Complete CS
  • USB host [2] 10b receives the write [2] completion CSW, recognizes that the write operation has ended, and completes the write operation.
  • FIG. 8 is a schematic diagram showing an example of a system configuration in which FIG. 1 is expanded in the USB storage system according to the embodiment of the present invention.
  • USB reader / writer
  • N USB hosts are connected to the USB reader / writer 82, N different external media such as CF cards, SD memory cards, and memory sticks can be shared by the N USB hosts. .
  • N external media of the same type. This makes it possible to increase the efficiency of connection work and initial setting operation by N times compared to a normal UBS storage system.
  • FIG. 9 is a schematic diagram illustrating an example of a configuration in which a plurality of external media can be shared by a plurality of USB hosts in the USB storage system according to the embodiment of the present invention.
  • the bridge function 92 includes a dip switch for each of the plurality of USB connectors [1] 90a— [N] 90 ⁇ and the plurality of external media connectors [1] 91a— [N] 9 In.
  • it can be realized by adding a selection function to the interface software 33 on the USB reader / writer.
  • the bridge function 92 By using such a configuration, it is possible to arbitrarily select the connection between the USB host and the external medium, such as 1 to 1, 1 to N, N to 1, or N to N. Become.
  • the USB cable reconnection work required in the past can be replaced with the ONZOFF work of the dip switch. It becomes possible.
  • the USB storage system of the present invention is particularly useful when applied to a system in which the USB function is a USB reader / writer compatible with various memory cards such as an SD memory card and a memory stick. This is not limited to this, but can be widely applied to systems equipped with a USB reader / writer that supports floppy disks and hard disks.

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 Transfer Systems (AREA)

Abstract

There are included, for example, a plurality of USB hosts comprising a USB host [1] (10a) and a USB host [2] (10b); and a USB reader/writer (11) that is connected to an external medium (13), such as a memory card or the like, and that can also be connected to the plurality of USB hosts via respective USB cables (12a,12b). The software or the like in the USB reader/writer (11) includes a function or the like for rejecting a write request from one of the USB hosts during writing into the external medium (13) from the other. In this way, a shared access of the external medium (13) by the plurality of USB hosts can be realized.

Description

明 細 書  Specification
USBストレージシステムおよび USBストレージデバイス  USB storage system and USB storage device
技術分野  Technical field
[0001] 本発明は、 USB (Universal Serial Bus)ストレージシステムおよび USBストレー ジデバイスに関し、特に、複数のホストに接続して用いられる USBストレージシステム および USBストレージデバイスに適用して有効な技術に関するものである。  [0001] The present invention relates to a USB (Universal Serial Bus) storage system and a USB storage device, and more particularly to a technology effective when applied to a USB storage system and a USB storage device that are connected to a plurality of hosts. is there.
背景技術  Background art
[0002] 本発明者が検討したところによれば、 USBストレージシステムの技術に関しては、 以下のような技術が考えられる。  According to a study by the present inventor, the following technologies can be considered for the USB storage system.
[0003] 近年、プラグアンドプレイ機能などによる使用の容易さや USB2. 0規格によるデー タ転送速度の向上により、メモリカード、フロッピーディスク (登録商標)などの外部メ ディアをリムーバブルディスクとして扱う USBストレージデバイス(以下、 USBリーダラ イタと呼ぶ)が数多く存在して 、る。 [0003] In recent years, USB storage devices that handle external media such as memory cards and floppy disks (registered trademark) as removable disks due to their ease of use with plug-and-play functions and improved data transfer speed according to the USB 2.0 standard There are many (hereinafter referred to as USB reader / writers).
発明の開示  Disclosure of the invention
発明が解決しょうとする課題  Problems to be solved by the invention
[0004] ところで、前記のような USBストレージシステムの技術につ!、て、本発明者が検討し た結果、以下のようなことが明ら力となった。  [0004] By the way, as a result of studies by the present inventor regarding the technology of the USB storage system as described above, the following has become clear.
[0005] 近年の PC (Personal Computer)の低価格化にともない、複数の PCを使用する ユーザーが増えている。このような中、 USBストレージシステムの構成としては、通常 、図 10に示すようなものが挙げられる。図 10は、本発明の前提として検討した技術の USBストレージシステムにおいて、その構成の一例を示す概略図であり、 (a) - (c) は、それぞれ異なる構成例を示すものである。  [0005] With the recent price reduction of PCs (Personal Computers), the number of users who use multiple PCs is increasing. Under such circumstances, the configuration of the USB storage system usually has a configuration as shown in FIG. FIG. 10 is a schematic diagram showing an example of the configuration of the USB storage system of the technology studied as the premise of the present invention, and (a) to (c) show different configuration examples.
[0006] まず、図10 (&)では、113 ケーブル102にょって1;38ホスト13じ100に接続された USBリーダライタ 101aが、 SD (Secure Digital)メモリカードまたはフロッピーディ スクといった 1個の外部メディアを挿入可能となっている。図 10 (b)では、図 10 (a)と 同様に接続された USBリーダライタ 101b力 CF (CompactFlash (登録商標) )カー ド、 SDメモリカードおよびメモリースティック(登録商標)といった種類の異なる複数個 の外部メディア [1], [2], · ··, [N]を挿入可能となっている。図 10 (c)では、図 10 (a)と 同様に接続された USBリーダライタ 101cが、 MMC (MultiMediaCard (登録商標) )カード等力もなる同種の複数個の外部メディア [1], [2], · ··, [N]を挿入可能となって いる。 [0006] First, in FIG. 10 (&), 113 1 I cable 102 Nyo; 38 USB writer 101a which is connected to the host 1 3 Ji 100, one such as an SD (Secure Digital) memory card or floppy disk External media can be inserted. In Fig. 10 (b), a plurality of different types such as USB reader / writer 101b force CF (CompactFlash (registered trademark)) card, SD memory card and Memory Stick (registered trademark) connected in the same way as in Fig. 10 (a). External media [1], [2], ..., [N] can be inserted. In Fig. 10 (c), the USB reader / writer 101c connected in the same way as in Fig. 10 (a) is connected to multiple external media [1], [2] of the same type that have MMC (MultiMediaCard (registered trademark)) card power. , ..., [N] can be inserted.
[0007] ただし、いずれの構成においても、 USBホスト PCと外部メディアの対応関係は、 1 対 1または 1対多となっている。したがって、例えば、複数の PCを使用するユーザー 力 ある外部メディアを複数の PC (USBホスト PC)で使用する場合には、例えば、図 11に示すような作業が行われる。  [0007] However, in any configuration, the correspondence between the USB host PC and the external media is one-to-one or one-to-many. Therefore, for example, when an external medium having a user power using a plurality of PCs is used on a plurality of PCs (USB host PCs), for example, an operation as shown in FIG.
[0008] 図 11は、本発明の前提として検討した技術の USBストレージシステムにおいて、特 定の外部メディアを複数の USBホスト PCで使用する場合の作業内容を説明するた めの図である。すなわち、 USBホスト PC[l]110aで外部メディアを使用後、 USBホス ト PC[1]110aに接続されて!、る USBケーブル 112を抜き(S110)、 USBホスト PC[2 ]に USBケーブル 112を接続する(S 111)と 、う作業が行われる。  FIG. 11 is a diagram for explaining the work contents when a specific external medium is used by a plurality of USB host PCs in the USB storage system of the technology studied as the premise of the present invention. In other words, after using external media on the USB host PC [l] 110a, connect to the USB host PC [1] 110a !, disconnect the USB cable 112 (S110), and connect the USB cable to the USB host PC [2] 112 Is connected (S111), the work is performed.
[0009] このように、複数の PCで特定の外部メディアを使用する際には、ユーザーが USB ケーブルの再接続といった面倒な作業を行う必要がある。そして、 USBケーブルを 再接続する度に、プラグアンドプレイによる USBネットワークの再構成とメモリカード 等の外部メディアの初期化が必要となり、時間や電力が無駄に消費される。  [0009] As described above, when a specific external medium is used on a plurality of PCs, the user needs to perform troublesome work such as reconnecting the USB cable. Each time the USB cable is reconnected, the USB network must be reconfigured by plug-and-play and external media such as memory cards must be initialized, which wastes time and power.
[0010] そこで、本発明の目的は、複数のホストによって使用される際に、時間的な効率を 向上されることが可能な USBストレージシステムおよび USBストレージデバイスを提 供することにある。  [0010] Therefore, an object of the present invention is to provide a USB storage system and a USB storage device capable of improving time efficiency when used by a plurality of hosts.
[0011] また、本発明の他の目的は、複数のホストによって使用される際に、省電力化を図 ることが可能な USBストレージシステムおよび USBストレージデバイスを提供すること にある。  [0011] Another object of the present invention is to provide a USB storage system and a USB storage device that can save power when used by a plurality of hosts.
[0012] 本発明の前記ならびにその他の目的と新規な特徴は、本明細書の記述および添 付図面から明らかになるであろう。  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.
課題を解決するための手段  Means for solving the problem
[0013] 本願において開示される発明のうち、代表的なものの概要を簡単に説明すれば、 次のとおりである。 [0014] 本発明による USBストレージシステムは、複数の USBホストと、外部記憶媒体として の機能を含んだ USBファンクションとを有し、 USBファンクションと複数の USBホスト との間で USBプロトコルに基づくデータ転送を行うものである。そして、前記 USBファ ンクシヨンは、複数の USBホストが USBファンクションに接続された状態で、複数の U SBホストが USBファンクションの外部記憶媒体に対して共有アクセスを行うことを可 能にする機能を有するものとなって 、る。 [0013] Among the inventions disclosed in the present application, the outline of typical ones will be briefly described as follows. [0014] A USB storage system according to the present invention includes a plurality of USB hosts and a USB function including a function as an external storage medium, and data transfer based on the USB protocol between the USB function and the plurality of USB hosts. Is to do. The USB function has a function that enables a plurality of USB hosts to perform shared access to the USB function external storage medium in a state where a plurality of USB hosts are connected to the USB function. It becomes something.
[0015] これによつて、外部記憶媒体としての USBファンクションを複数の USBホストで使 用する際に、 USBケーブルの再接続やそれに伴う初期化といった作業および処理 が不要となり、時間的な効率が向上し、また、省電力化を図ることも可能となる。  [0015] As a result, when the USB function as an external storage medium is used by multiple USB hosts, work and processing such as reconnection of the USB cable and initialization associated therewith are not required, and time efficiency is improved. It is possible to improve the power consumption.
[0016] ここで、前記共有アクセスを行うことを可能にする機能は、例えば、複数の USBホス トの中の一つの USBホストが USBファンクションの外部記憶媒体に対して書き込み の処理を実行している間は、複数の USBホストの中の他の USBホストから発生した 書き込み要求を拒否する機能を含むものとなっている。  [0016] Here, the function that enables the shared access is performed, for example, by one USB host among a plurality of USB hosts executing a process of writing to the external storage medium of the USB function. While there are multiple USB hosts, it includes a function to reject write requests from other USB hosts.
[0017] これによつて、外部記憶媒体としての USBファンクションに記憶されたデータ力 複 数の USBホストからの書き込みによって破壊することなどを防止することが可能にな る。  [0017] With this, it becomes possible to prevent the data power stored in the USB function as the external storage medium from being destroyed by writing from multiple USB hosts.
[0018] また、前記複数の USBホストは、第 1の USBホストと第 2の USBホストを含み、前記 共有アクセスを行うことを可能にする機能は、第 1の USBホストが発生した USBファ ンクシヨンの外部記憶媒体に対する第 1の書き込み要求の対応処理中に、第 2の US Bホストから当該外部記憶媒体に対する第 2の書き込み要求が発生した場合に、第 2 の USBホストに対して第 2の書き込み要求の拒否を通知し、第 1の書き込み要求の 対応処理を継続する機能を含むものとなって!/ヽる。  [0018] Further, the plurality of USB hosts include a first USB host and a second USB host, and the function of enabling the shared access is a USB function generated by the first USB host. If a second write request for the external storage medium is generated from the second USB host during the processing of the first write request for the external storage medium, the second USB host It includes a function that notifies the rejection of the write request and continues the processing of the first write request! / Speak.
[0019] なお、 USBファンクションの外部記憶媒体としての機能は、例えばメモリカードなど によって実現されるものである。これによつて、従来、 USBケーブルを再接続する毎 に必要となっていたメモリカードの初期化処理などが削減でき、時間的な効率が向上 し、省電力化を図ることが可能になる。  [0019] The function of the USB function as an external storage medium is realized by, for example, a memory card. As a result, it is possible to reduce the memory card initialization process, which has been required every time the USB cable is reconnected, improving the time efficiency and saving power.
[0020] また、本発明による USBストレージシステムは、複数の USBホストと、外部記憶媒 体としての機能を含んだ USBファンクションとを有し、前記 USBファンクションは、複 数の USBホストが接続される複数の USBコネクタ端子と、複数の USBホストとの間で USBプロトコルに基づくデータ転送を行う機能と、 USBファンクションの外部記憶媒 体との間で所定のプロトコルに基づくデータ転送を行う機能と、 USBプロトコルと前記 所定のプロトコルとを相互に変換する機能とを備え、さらに、複数の USBホストの中 の一つの USBホストが USBファンクションの外部記憶媒体に対して書き込みの処理 を実行しいている間は、他の USBホストから発生した書き込み要求を拒否する機能 を備えるものとなって 、る。 [0020] The USB storage system according to the present invention includes a plurality of USB hosts and a USB function including a function as an external storage medium. Multiple USB connector terminals to which multiple USB hosts are connected, a function for transferring data based on the USB protocol between multiple USB hosts, and a USB function external storage medium based on a predetermined protocol It has a function to transfer data, a function to convert the USB protocol and the predetermined protocol to each other, and one USB host among a plurality of USB hosts can write to the external storage medium of the USB function. While processing is in progress, it has a function to reject write requests generated from other USB hosts.
[0021] ここで、前記書き込み要求を拒否する機能は、 USBファンクションが備えたコンビュ ータによるプログラム処理によって実現され、このプログラム処理は、前記一つの US Bホストからの前記外部記憶媒体に対する書き込み要求を受け付けた際にオペレー シヨンフラグを設定するステップと、この受け付けた書き込み要求の処理を終了した 際にオペレーションフラグを解除するステップと、オペレーションフラグが設定されて いる間に前記他の USBホストからの書き込み要求が発生した際に、この発生した書 き込み要求の拒否を前記他の USBホストに対して通知するステップとを含むものとな つている。すなわち、ソフトウェアに前記書き込み要求を拒否する機能を追加すること で、複数の USBホストによる外部記憶媒体の共有を容易に実現することが可能にな る。なお、前記書き込み要求の拒否を通知するステップは、例えば、リクエストセンス コマンドのデータを用いて行うことができる。  Here, the function of rejecting the write request is realized by a program process by a computer provided in the USB function, and the program process is a write request to the external storage medium from the one USB host. A step of setting an operation flag when accepting the operation, a step of releasing the operation flag when processing of the accepted write request is completed, and a write from the other USB host while the operation flag is set. And a step of notifying the other USB host of rejection of the generated write request when the request is generated. That is, by adding a function for rejecting the write request to the software, it becomes possible to easily realize sharing of an external storage medium by a plurality of USB hosts. Note that the step of notifying the rejection of the write request can be performed using data of a request sense command, for example.
[0022] また、本発明の USBストレージデバイスは、複数の USBホストに接続される複数の USBコネクタ端子と、外部記憶メディアに接続されるメディアコネクタ端子とを備え、 USBプロトコルに基づいて前記複数の USBホストとの間のデータ転送が可能なもの であり、そして、前記複数の USBコネクタ端子に複数の USBホストが接続され、なお かつ前記メディアコネクタ端子に外部記憶メディアが接続された状態で、複数の US Bホストが外部記憶メディアに対して共有アクセスを行うことを可能にする機能を有す るものとなっている。  [0022] The USB storage device of the present invention includes a plurality of USB connector terminals connected to a plurality of USB hosts, and a media connector terminal connected to an external storage medium, and the plurality of the plurality of USB connector terminals based on a USB protocol. Data transfer to and from a USB host is possible, and a plurality of USB hosts are connected to the plurality of USB connector terminals and an external storage medium is connected to the media connector terminal. The US B host has a function that enables shared access to external storage media.
[0023] なお、前記外部記憶メディアとしては、例えばメモリカードが挙げられる。また、前記 USBストレージデバイスは、前記メディアコネクタ端子を複数備え、この複数のメディ ァコネクタ端子に対して、同種類または異種類の複数のメモリカードが接続される構 成にしてもよい。また、前記 USBストレージデバイスに、前記複数の USBコネクタ端 子と前記複数のメディアコネクタ端子との間の接続を任意に設定可能にするブリッジ 機能を備えることも可能である。 [0023] Note that examples of the external storage medium include a memory card. The USB storage device includes a plurality of media connector terminals, and a plurality of the same type or different types of memory cards are connected to the plurality of media connector terminals. You may make it. In addition, the USB storage device can be provided with a bridge function that can arbitrarily set the connection between the plurality of USB connector terminals and the plurality of media connector terminals.
発明の効果  The invention's effect
[0024] 本願において開示される発明のうち、代表的なものによって得られる効果を簡単に 説明すれば以下のとおりである。  [0024] The effects obtained by typical ones of the inventions disclosed in the present application will be briefly described as follows.
[0025] 外部記憶媒体としての機能を備えた USBファンクション内に、複数の USBホストに よる前記外部記憶媒体の共有アクセスを可能にする機能を設けることで、複数の US[0025] In a USB function having a function as an external storage medium, a function for enabling shared access of the external storage medium by a plurality of USB hosts is provided.
Bホストによって前記外部記憶媒体を使用する際の時間的な効率を向上されることが 可能になり、また、省電力化を図ることが可能になる。 The time efficiency when using the external storage medium by the B host can be improved, and power saving can be achieved.
図面の簡単な説明  Brief Description of Drawings
[0026] [図 1]本発明の一実施の形態による USBストレージシステムにおいて、そのシステム 構成の一例を示す概略図である。  FIG. 1 is a schematic view showing an example of the system configuration of a USB storage system according to an embodiment of the present invention.
[図 2]図 1の USBストレージシステムにおいて、 USBホストの論理構成の一例を示す 図である。  2 is a diagram showing an example of a logical configuration of a USB host in the USB storage system of FIG.
[図 3]図 1の USBストレージシステムにおいて、 USBリーダライタの論理構成の一例を 示す図である。  FIG. 3 is a diagram showing an example of a logical configuration of a USB reader / writer in the USB storage system of FIG. 1.
[図 4]図 1の USBストレージシステムにおいて、 USBリーダライタの外形の一例を示す 斜視図である。  4 is a perspective view showing an example of the external shape of a USB reader / writer in the USB storage system of FIG.
[図 5]図 3の USBリーダライタにおいて、その動作概要の一例を示す説明図である。  FIG. 5 is an explanatory diagram showing an example of the operation outline of the USB reader / writer of FIG. 3.
[図 6]図 3の USBリーダライタにおいて、インタフェースソフトの処理の一例を示す処 理フロー図である。  FIG. 6 is a processing flowchart showing an example of interface software processing in the USB reader / writer of FIG. 3.
[図 7]図 1のシステム構成において、その動作の一例を説明する処理フロー図である  7 is a process flow diagram for explaining an example of the operation in the system configuration of FIG.
[図 8]本発明の一実施の形態による USBストレージシステムにおいて、図 1を拡張し たシステム構成の一例を示す概略図である。 FIG. 8 is a schematic diagram showing an example of a system configuration obtained by extending FIG. 1 in the USB storage system according to the embodiment of the present invention.
[図 9]本発明の一実施の形態による USBストレージシステムにおいて、複数の外部メ ディアを複数の USBホストで共有可能にする構成の一例を示す概略図である。 [図 10]本発明の前提として検討した技術の USBストレージシステムにおいて、その構 成の一例を示す概略図であり、(a)—(c)は、それぞれ異なる構成例を示すものであ る。 FIG. 9 is a schematic diagram illustrating an example of a configuration in which a plurality of external media can be shared by a plurality of USB hosts in a USB storage system according to an embodiment of the present invention. FIG. 10 is a schematic diagram showing an example of the configuration of the USB storage system of the technology studied as a premise of the present invention, and (a) to (c) show different configuration examples.
[図 11]本発明の前提として検討した技術の USBストレージシステムにおいて、特定の 外部メディアを複数の USBホスト PCで使用する場合の作業内容を説明するための 図である。  FIG. 11 is a diagram for explaining work contents when a specific external medium is used by a plurality of USB host PCs in the USB storage system of the technology studied as a premise of the present invention.
発明を実施するための最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
[0027] 以下、本発明の実施の形態を図面に基づいて詳細に説明する。なお、実施の形態 を説明するための全図において、同一の部材には原則として同一の符号を付し、そ の繰り返しの説明は省略する。  Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that components having the same function are denoted by the same reference symbols throughout the drawings for describing the embodiment, and the repetitive description thereof will be omitted.
[0028] 図 1は、本発明の一実施の形態による USBストレージシステムにおいて、そのシス テム構成の一例を示す概略図である。図 1に示す USBストレージシステムは、例えば USBホスト [1] 10aおよび USBホスト [2] 10bからなる複数の USBホストと、複数の U SBホストにそれぞれ USBケーブル 12a, 12bで接続され、 USBファンクションとなる USBリーダライタ 11から構成される。 USBホストは、その代表的なものにパーソナル コンピュータなどが挙げられる。  FIG. 1 is a schematic diagram showing an example of the system configuration of a USB storage system according to an embodiment of the present invention. The USB storage system shown in Fig. 1 is connected to multiple USB hosts consisting of, for example, USB host [1] 10a and USB host [2] 10b, and multiple USB hosts via USB cables 12a and 12b respectively. It consists of USB reader / writer 11 Typical examples of USB hosts include personal computers.
[0029] USBリーダライタ 11は、外部記憶媒体としての機能を備えた USBストレージデバイ スであり、例えば、メモリカードやフロッピーディスクなどの外部メディア(外部記憶メデ ィァ) 13を接続することが可能となっている。なお、図 1において、 USBホストは 3台以 上でも適用可能である力 簡略化のため以降では、 USBホストは 2台であるとして説 明する。  [0029] The USB reader / writer 11 is a USB storage device having a function as an external storage medium. For example, an external medium (external storage media) 13 such as a memory card or a floppy disk can be connected. It has become. Note that in Fig. 1, it is possible to apply 3 or more USB hosts. For simplicity, the following explanation assumes that there are 2 USB hosts.
[0030] 113 ホスト[1] 10&と1;38ホスト[2] 101)は、それぞれ、図 2に示すような構成となつ ている。図 2は、図 1の USBストレージシステムにおいて、 USBホストの論理構成の一 例を示す図である。図 2に示す USBホストは、上位階層から下位階層に向けてアプリ ケーシヨン層と、システムソフトウェア層と、ハードウェア層が設けられている。  [0030] 113 hosts [1] 10 & and 1; 38 hosts [2] 101) are configured as shown in FIG. FIG. 2 is a diagram showing an example of the logical configuration of the USB host in the USB storage system of FIG. The USB host shown in Fig. 2 has an application layer, a system software layer, and a hardware layer from the upper layer to the lower layer.
[0031] アプリケーション層は、アプリケーションソフトウェア 20を含んでいる。アプリケーショ ンソフトウェア 20の一般的な例としては、例えばフォルダやファイルの操作を行う機 能を備えたエクスプローラや、音楽データの再生機能等を備えたオーディオプレー ヤーなどが挙げられる。 USB転送を行う際、アプリケーション層は、システムソフトゥェ ァ層との間でデータの送受信を行う。 [0031] The application layer includes application software 20. Typical examples of the application software 20 include an explorer having a function for operating folders and files, and an audio play having a music data playback function. Yer. When performing USB transfer, the application layer sends and receives data to and from the system software layer.
[0032] システムソフトウェア層は、ハードウェア層を管理し、アプリケーション層又はハード ウェア層との間の送受信データに対して、 USBプロトコルに基づく変換などを行う。 そして、このような処理を行うソフトウェアとして、システムソフトウェア層は、 USBマス ストレージクラスドライバ 21aと、 USBバスドライバ 21bとを含んでいる。  [0032] The system software layer manages the hardware layer, and performs conversion based on the USB protocol on the transmission / reception data between the application layer and the hardware layer. As software for performing such processing, the system software layer includes a USB mass storage class driver 21a and a USB bus driver 21b.
[0033] USBマスストレージクラスドライバ 21aは、 USBマスストレージクラスという規格で定 義されたコマンドトランスポート、データトランスポート、ステータストランスポートの管 理などを行う。 USBバスドライバ 21bは、トランザクションの管理など USBの各クラス に共通な処理を行う。  [0033] The USB mass storage class driver 21a performs management of a command transport, a data transport, a status transport, and the like defined by a standard called a USB mass storage class. The USB bus driver 21b performs processing common to each USB class, such as transaction management.
[0034] ハードウェア層は、 USBホストコントローラ 22を含んで!/、る。 USBホストコントローラ 22は、 USBケーブル 23を介して USBリーダライタと電気的に接続され、 USBリーダ ライタの接続検出や USBリーダライタとの間のパケット送受信といった USBホストの 電気的信号の処理を行うハードウェアである。  [0034] The hardware layer includes a USB host controller 22! /. The USB host controller 22 is electrically connected to the USB reader / writer via the USB cable 23, and is a hardware that processes the USB host's electrical signals such as detecting the connection of the USB reader / writer and sending / receiving packets to / from the USB reader / writer. Wear.
[0035] 一方、 USBリーダライタ 11は、図 3および図 4に示すような構成となっている。図 3は 、図 1の USBストレージシステムにおいて、 USBリーダライタの論理構成の一例を示 す図である。図 4は、図 1の USBストレージシステムにおいて、 USBリーダライタの外 形の一例を示す斜視図である。  On the other hand, the USB reader / writer 11 has a configuration as shown in FIG. 3 and FIG. FIG. 3 is a diagram showing an example of the logical configuration of the USB reader / writer in the USB storage system of FIG. FIG. 4 is a perspective view showing an example of the outer shape of the USB reader / writer in the USB storage system of FIG.
[0036] 図 3に示す USBリーダライタは、例えば、 USBファンクションモジュール [1] (以下、 USBモジュール [1]) 30および USBファンクションモジュール [2] (以下、 USBモジ ユール [2]) 31からなる 2個の USBファンクションモジュールと、外部メディアモジユー ル 32と、インタフェースソフトウェア(以下、インタフェースソフト) 33などを含んでいる  [0036] The USB reader / writer shown in FIG. 3 includes, for example, a USB function module [1] (hereinafter, USB module [1]) 30 and a USB function module [2] (hereinafter, USB module [2]) 31. Includes 2 USB function modules, external media module 32, interface software (hereinafter referred to as interface software) 33, etc.
[0037] USBモジュール [1] 30は、ソフトウェアである USBマスストレージクラスファームゥ エア [1] 30aと、ハードウェアである USBファンクションコントローラ [1] 30bを含み、 U SBケーブル 12aによって USBホスト [1]などに接続される。 USBモジュール [2] 31も 同様に、 USBマスストレージクラスファームウェア [2] 31aと USBファンクションコント ローラ [2] 3 lbを含み、 USBケーブル 12bによって USBホスト [2]などに接続される。 外部メディアモジュール 32は、ソフトウェアである外部メディアファームウェア 32aと、 ハードウェアである外部メディアホストコントローラ 32bを含み、外部メディア 13に接 続される。 [0037] The USB module [1] 30 includes a USB mass storage class firmware [1] 30a that is software and a USB function controller [1] 30b that is hardware, and a USB host [1 ] Etc. Similarly, the USB module [2] 31 includes a USB mass storage class firmware [2] 31a and a USB function controller [2] 3 lb, and is connected to a USB host [2], etc. via a USB cable 12b. The external media module 32 includes an external media firmware 32 a that is software and an external media host controller 32 b that is hardware, and is connected to the external media 13.
[0038] また、これらの構成は、 USBホストの論理構成と同様に、アプリケーション層と、シス テムソフトウェア層と、ハードウェア層に分けることができる。このような論理構成で分 類すると、アプリケーション層には、インタフェースソフト 33が含まれる。インタフェース ソフト 33は、 USBモジュール [1] 30, [2] 31と外部メディアモジュール 32との間のデ ータ転送の制御などを担うソフトウェアである。  [0038] Similar to the USB host logical configuration, these configurations can be divided into an application layer, a system software layer, and a hardware layer. When classified by such a logical configuration, the application layer includes interface software 33. The interface software 33 is software that controls data transfer between the USB modules [1] 30, [2] 31 and the external media module 32.
[0039] そして、インタフェースソフト 33は、更に、一方の USBモジュールから外部メディア 1 3への書き込み要求の対応処理中に、他方の USBモジュールから書き込み要求が 発生した場合の対応処理などを行う機能を備えている。なお、インタフェースソフト 33 は、例えば、 USBリーダライタが備えた ROM等に格納され、インタフェースソフト 33 の実行は、例えば、 USBリーダライタが備えたマイクロコンピュータおよび RAM等に よって行われる。また、後述するシステムソフトウェア層の各種ソフトウェアもこれと同 様である。  [0039] The interface software 33 further has a function of performing a response process when a write request is generated from the other USB module during a response process of a write request from one USB module to the external medium 13. I have. The interface software 33 is stored in, for example, a ROM or the like provided in the USB reader / writer, and the interface software 33 is executed by, for example, a microcomputer and a RAM provided in the USB reader / writer. The same applies to various software in the system software layer described later.
[0040] システムソフトウェア層には、 USBマスストレージクラスファームウェア [1] 30a, [2] 31aと、外部メディアファームウェア 32aとが含まれる。 USBマスストレージクラスファ ームウェア [1] 30a (または [2] 31a)は、 USBファンクションコントローラ [1] 30b (また は [2] 31b)の制御や、 USBマスストレージクラスに固有の処理などを行う。外部メデ ィァファームウェア 32aは、外部メディア 13のトランザクション管理や外部メディアホス トコントローラ 32bの制御などを行う。  [0040] The system software layer includes USB mass storage class firmware [1] 30a, [2] 31a and external media firmware 32a. USB mass storage class firmware [1] 30a (or [2] 31a) controls the USB function controller [1] 30b (or [2] 31b) and performs processing specific to the USB mass storage class. The external media firmware 32a performs transaction management of the external media 13 and control of the external media host controller 32b.
[0041] ハードウェア層には、 USBファンクションコントローラ [1] 30b, [2] 31bと、外部メデ ィァホストコントローラ 32bとが含まれる。 USBファンクションコントローラ [1] 30b, [2] 3 lbは、パケット送受信など USBファンクションの電気的信号の処理を行う。外部メデ ィァホストコントローラ 32bは、外部メディア 13へのコマンド送信、外部メディア 13から のレスポンス受信、外部メディア 13とのデータ送受信などと 、つた電気的信号の処理 を行う。  [0041] The hardware layer includes a USB function controller [1] 30b, [2] 31b and an external media host controller 32b. USB function controller [1] 30b, [2] 3 lb processes USB function electrical signals such as packet transmission and reception. The external media host controller 32b performs electrical signal processing such as command transmission to the external medium 13, reception of a response from the external medium 13, and data transmission / reception with the external medium 13.
[0042] そして、このような USBリーダライタは、例えば図 4に示すような外形を備えている。 図 4に示す USBリーダライタは、例えば、筐体 40に、 2つの USBコネクタ [l]41a, [2] 41bと、外部メディアコネクタ(外部メディアスロット) 42が設けられている。 USBコネク タ [l]41a, [2]41bは、 USBファンクション用のコネクタ形状であり、それぞれ、 USB ケーブル 12a, 12bによって USBホスト [1], [2]に接続される。また、外部メディアコネ クタ 42には、メモリカードまたはフロッピーディスクといった外部メディアが挿入および 接続される。 [0042] Such a USB reader / writer has an outer shape as shown in FIG. 4, for example. In the USB reader / writer shown in FIG. 4, for example, a housing 40 is provided with two USB connectors [l] 41a, [2] 41b and an external media connector (external media slot) 42. The USB connectors [l] 41a and [2] 41b are USB function connectors, and are connected to the USB hosts [1] and [2] by USB cables 12a and 12b, respectively. External media such as a memory card or floppy disk is inserted and connected to the external media connector 42.
[0043] 以上のようなシステム構成において、本発明の特徴は、 USBホスト [1]と USBホスト  [0043] In the system configuration as described above, the present invention is characterized in that the USB host [1] and the USB host
[2]による外部メディアの共有アクセスを実現することである。そして、この実現のため に、図 3で述べたように、 USBリーダライタに複数の USBモジュールを設け、更に、ィ ンタフェースソフトを用いて、複数の USBモジュールから同時に処理要求が発生した 場合の調停機能を実現させている。以下、このインタフェースソフトの調停機能の詳 細について説明する。  It is to realize shared access of external media by [2]. In order to realize this, as described in Fig. 3, a USB reader / writer is provided with a plurality of USB modules, and the interface software is used to arbitrate when processing requests are simultaneously generated from a plurality of USB modules. The function is realized. The details of the arbitration function of this interface software will be described below.
[0044] USBホストから USBリーダライタに向けた要求には、外部メディアのメモリにデータ を書き込む要求(以下、書き込み要求)、外部メディアのメモリからデータを読み出す 要求 (以下、読み出し要求)、及び USBリーダライタの状態や情報を取得する要求( 以下、状態取得要求)がある。  [0044] The request from the USB host to the USB reader / writer includes a request to write data to the external media memory (hereinafter referred to as a write request), a request to read data from the external media memory (hereinafter referred to as a read request), and a USB There is a request to acquire the status and information of the reader / writer (hereinafter referred to as status acquisition request).
[0045] USBホストが 2台になっても、 USBホストの要求、及び要求に対する USBリーダラ イタの対応処理が時間的に重ならな 、場合や、重なっても外部メディアのメモリ内容 を変更しない場合は特に問題は発生しない。つまり、読み出し要求と状態取得要求 では、 USBリーダライタのインタフェースソフトで互!、の要求や外部メディア力 読み 出したデータが重ならな 、ような排他制御をすればよぐ外部メディアの記憶データ が破壊されるなどの重大な問題は発生しない。 USBホストが 2台となり問題が発生す るのは、 USBリーダライタ力 ある USBホストからの書き込み要求処理中に、他の US Bホストから書き込み要求が発生した場合である。そこで、例えば、次のような動作に よりこの問題を回避する。  [0045] Even when there are two USB hosts, the request from the USB host and the corresponding processing of the USB reader / writer in response to the request do not overlap in time, or the memory contents of the external media are not changed even if they overlap There is no particular problem. In other words, in the read request and status acquisition request, the data stored in the external media can be stored by using exclusive control such that the USB reader / writer's interface software does not overlap with each other's requests and external media. There is no serious problem such as destruction. The problem occurs when two USB hosts are used when a write request is issued from another USB host during processing of a write request from a USB host that has USB reader / writer capabilities. Therefore, for example, this problem is avoided by the following operation.
[0046] USBリーダライタは、ある USBホスト(USBホスト [2]とする)からの書き込み要求の 対応処理中に、他の USBホスト(USBホスト [1]とする)力も書き込み要求が送られて きた場合は、 USBホスト [1]の要求を拒否し、 USBホスト [2]からの書き込み要求の 対応処理を継続する。つまり、図 5に示すような動作概要となる。 [0046] The USB reader / writer receives a write request from another USB host (USB host [1]) during the processing of a write request from a USB host (USB host [2]). If the request is received, the request from the USB host [1] is rejected and the write request from the USB host [2] is rejected. Continue handling. In other words, the operation outline is as shown in FIG.
[0047] 図 5は、図 3の USBリーダライタにおいて、その動作概要の一例を示す説明図であ る。図 5において、 USBリーダライタ内のインタフェースソフト 33は、 USBモジュール [ 2] 31から書き込み要求 [2]を受信すると、受付応答を USBモジュール [2] 31に返 すとともに、外部メディアモジュール 32に書き込み要求 [2]に対応するデータを送る 。そして、この USBモジュール [2] 31からの書き込み要求対応処理中に、 USBモジ ユール [1] 30から書き込み要求を受信すると、インタフェースソフト 33は、 USBモジ ユール [ 1 ] 30に対し、仮想的に外部メディア 13がオペレーション状態であることを伝 達し、 USBホスト [1]からの要求を拒否する。 FIG. 5 is an explanatory diagram showing an example of the operation outline of the USB reader / writer of FIG. In Figure 5, when the interface software 33 in the USB reader / writer receives a write request [2] from the USB module [2] 31, it returns an acceptance response to the USB module [2] 31 and writes to the external media module 32. Send data corresponding to request [2]. When the write request is received from the USB module [1] 30 during the processing for handling the write request from the USB module [2] 31, the interface software 33 virtually transmits to the USB module [1] 30. Notify that the external media 13 is in operation and reject the request from the USB host [1].
[0048] この動作概要は、より具体的には、例えば図 6に示すような処理フローによって実現 される。図 6は、図 3の USBリーダライタにおいて、インタフェースソフトの処理の一例 を示す処理フロー図である。まず、インタフェースソフト 33は、外部メディア 13の接続 後、あるいは USBケーブル 12a (または 12b)の接続後に起動し(S601)、イベント待 ち状態となる。インタフェースソフト 33が受信するイベントには、 USBモジュール (US Bモジュール [1] 30または USBモジュール [2] 31)力ものリード要求とライト要求、及 び外部メディアモジュール 32からのリード完了通知(インタフェースソフト 33のリード 要求に対応したリード完了通知)とライト完了通知 (インタフェースソフト 33のライト要 求に対応したライト完了通知)がある。 [0048] More specifically, this operation outline is realized by a processing flow as shown in FIG. 6, for example. FIG. 6 is a process flow diagram showing an example of interface software processing in the USB reader / writer of FIG. First, the interface software 33 is activated after the external medium 13 is connected or after the USB cable 12a (or 12b) is connected (S601), and enters an event waiting state. The events received by interface software 33 include USB module (US B module [1] 30 or USB module [2] 31) powerful read requests and write requests, and read completion notifications from external media module 32 (interface software Read completion notification corresponding to 33 read requests) and write completion notification (write completion notification corresponding to interface software 33 write request).
[0049] イベント待ち状態で、 USBモジュール [1]30 (または [2]31)力もリード要求があると( S602)、そのリード要求の内容を解析しリード識別情報を作成する(S603)。リード 識別情報は、複数のリード要求が重なったとき、それらのリード要求を識別するのに 使用する。リード識別情報は、リード要求 ID、要求先の USBモジュールを識別する U SBモジュール番号、リードアドレス、リードサイズ力ら構成される。リード識別情報作 成後、外部メディアモジュール 32にリード要求を行う(S604)。次いで、イベント待ち 状態に移行する。 [0049] When the USB module [1] 30 (or [2] 31) has a read request while waiting for an event (S602), the content of the read request is analyzed and lead identification information is created (S603). The lead identification information is used to identify read requests when multiple read requests overlap. The lead identification information includes a read request ID, a USB module number for identifying the requested USB module, a read address, and a read size force. After creating the read identification information, a read request is made to the external media module 32 (S604). Next, it shifts to the event waiting state.
[0050] イベント待ち状態で、 USBモジュール [1]30 (または [2]31)力もライト要求があると( S605)、オペレーション状態フラグが ONであるか否かを判定する(S606)。ォペレ ーシヨン状態フラグは、外部メディア 13への書き込み処理中であることを示すフラグ で、外部メディア 13への書き込み処理が重ならな 、ように排他制御するのに使用し、 初期値は OFFである。 [0050] When the USB module [1] 30 (or [2] 31) power is requested to be written in the event waiting state (S605), it is determined whether or not the operation state flag is ON (S606). The operation status flag is a flag indicating that writing to the external media 13 is in progress. This is used for exclusive control so that the writing process to the external medium 13 does not overlap, and the initial value is OFF.
[0051] オペレーション状態フラグが ONであると、オペレーション状態通知を作成し、対応 する USBモジュール [1]30 (または [2]31)に送信することで、書き込み要求を拒否す る(S607)。一方、オペレーション状態フラグが OFFであると、オペレーション状態フ ラグを ONにする(S608)。その後、外部メディアモジュール 32にライト要求を行う(S 609)。次いで、イベント待ち状態に移行する。  [0051] If the operation status flag is ON, an operation status notification is created and sent to the corresponding USB module [1] 30 (or [2] 31) to reject the write request (S607). On the other hand, if the operation status flag is OFF, the operation status flag is turned ON (S608). Thereafter, a write request is made to the external media module 32 (S609). Next, it shifts to an event waiting state.
[0052] イベント待ち状態で、外部メディアモジュール 32からリード完了通知があると(S610 )、その IDとリード識別情報を解析し (S611)、対応する USBモジュール [1]30 (また は [2]31)に、対応するリードデータを送信する(S612)。次いで、イベント待ち状態 に移行する。  [0052] When a read completion notification is received from the external media module 32 while waiting for an event (S610), the ID and read identification information are analyzed (S611), and the corresponding USB module [1] 30 (or [2] 31), the corresponding read data is transmitted (S612). Next, it shifts to the event waiting state.
[0053] イベント待ち状態で、外部メディアモジュール 32からライト完了通知があると(S613 If there is a write completion notification from the external media module 32 while waiting for an event (S613
)、オペレーション状態フラグを OFFにし、書き込み処理中であることを解除する(S6), Set the operation status flag to OFF, and cancel that writing is in progress (S6
14)。次いで、イベント待ち状態に移行する。 14). Next, it shifts to an event waiting state.
[0054] イベント待ち状態で、外部メディア 13の状態をチェックし (S615)、外部メディア 13 が取り外されていれば処理を終了する。また、取り外されていなければ、イベント待ち 状態を継続する。 In the event waiting state, the state of the external medium 13 is checked (S615), and if the external medium 13 is removed, the process is terminated. If it has not been removed, the event waiting state is continued.
[0055] 以上、これまでに述べたようなシステム構成およびその動作等によって、複数の US [0055] As described above, depending on the system configuration and its operation, etc.
Bホストで外部メディアを共有して使用することが可能となる。そして、これによつて、 例えば下記(1) , (2)のような効果を得ることができる。 It is possible to share and use external media on the B host. Thus, for example, the following effects (1) and (2) can be obtained.
[0056] (1)特定の外部メディアを複数の USBホストで使用する際に、ユーザーが USBケ 一ブルを逐次接続するといつた面倒な作業をする必要がなくなる。また、複数の US[0056] (1) When a specific external medium is used by a plurality of USB hosts, it is not necessary to perform troublesome work when the user sequentially connects the USB cables. Also multiple US
Bホストを接続しても、 USBやメモリカードなどのプラグアンドプレイと ヽぅ特徴に対応 した USBリーダライタを実現できる。 Even if a B host is connected, a USB reader / writer that supports plug-and-play and other features such as USB and memory cards can be realized.
[0057] (2) USBケーブルを逐次接続する必要がなくなり、 USBのネットワークの再構成と[0057] (2) No need to connect USB cables sequentially,
SDメモリカードなどの外部メディアの再度の初期化が省略できる。その結果、時間的 な効率が向上し、また、省電力化を図ることも可能となる。 Re-initializing external media such as SD memory cards can be omitted. As a result, the time efficiency can be improved and the power can be saved.
[0058] 次に、図 1のシステム全体としての動作の一例を図 7を用いて説明する。図 7は、図 1のシステム構成において、その動作の一例を説明する処理フロー図である。図 7に お!、ては、図 1の USBホスト [2] 10bがデータ書き込み中に、 USBホスト [1] 10aが データ書き込み要求を USBリーダライタ 11に送信した場合の処理を例として説明す る。また、ここでは、一般的に知られている USBマスストレージ規格に準じたデータ転 送を行うものとする。なお、以下においては、図 7内の処理番号に対応させて説明を 行う。 Next, an example of the operation of the entire system in FIG. 1 will be described with reference to FIG. Figure 7 FIG. 2 is a process flow diagram for explaining an example of the operation in the system configuration of 1. In Figure 7! The following describes an example of processing when the USB host [1] 10a transmits a data write request to the USB reader / writer 11 while the USB host [2] 10b in FIG. 1 is writing data. Here, data transfer conforming to the generally known USB mass storage standard shall be performed. In the following, description will be made in association with the processing numbers in FIG.
[0059] (1) 113 ホスト[2] 101)は、 USBマスストレージクラスで定義されたライト [2]要求 C BW (Command Block Wrapper)を USBリーダライタ 11に発行する。なお、 CB Wとは、 USBマスストレージクラスで定義され、 USBホストが USBファンクションに要 求するコマンドやそれに関連した内容を格納するパケットである。  [0059] (1) 113 Host [2] 101) issues a write [2] request C BW (Command Block Wrapper) defined in the USB mass storage class to the USB reader / writer 11. CBW is a packet that is defined in the USB mass storage class and stores commands that the USB host requests the USB function and related contents.
[0060] (2) USBリーダライタ 11は、ライト [2]要求 CBWを受信すると、ライトアドレスゃデー タ数を解析する。また、ライト [2]要求 CBWを外部メディア 13固有の命令形式に変換 する。すなわち、プロトコル変換を行う。  [0060] (2) When the USB reader / writer 11 receives the write [2] request CBW, it analyzes the number of data in the write address. Also, write [2] request CBW is converted to the command format specific to external media 13. That is, protocol conversion is performed.
[0061] (3)変換完了後、 USBリーダライタ 11は、外部メディア 13に、前記固有の命令形 式に変換されたライト [2]コマンドを発行する。 (3) After the conversion is completed, the USB reader / writer 11 issues a write [2] command converted into the specific command format to the external medium 13.
[0062] (4)外部メディア 13は、ライト [2]コマンドを受信すると、ライトアドレスやデータ数を 解析する。 [0062] (4) When the external medium 13 receives the write [2] command, it analyzes the write address and the number of data.
[0063] (5) USBホスト [2] 10bは、 USBマスストレージクラスで定義された形式でライト [2] データを、 USBリーダライタ 11に送信する。  [0063] (5) USB host [2] 10b transmits the write [2] data to the USB reader / writer 11 in the format defined by the USB mass storage class.
[0064] (6) USBリーダライタ 11は、ライト [2]データを受信すると、ライト [2]データを外部メ ディア 13固有のデータ形式に変換する。すなわち、プロトコル変換を行う。 [0064] (6) Upon receiving the write [2] data, the USB reader / writer 11 converts the write [2] data into a data format specific to the external media 13. That is, protocol conversion is performed.
[0065] (7)変換完了後、 USBリーダライタ 11は、外部メディア 13に対し、変換されたライト (7) After the conversion is completed, the USB reader / writer 11 writes the converted write to the external medium 13.
[2]データを送信する。  [2] Send data.
[0066] (8)外部メディア 13は、変換されたライト [2]データを受信するとそれを自身のメモリ に書き込む。  [0066] (8) When the external medium 13 receives the converted write [2] data, it writes it in its own memory.
[0067] (1,)ここで、 USBホスト [l] 10aは、外部メディア 13のメモリにデータを書き込むた め、 USBマスストレージクラスで定義されたライト [ 1 ] CBWを USBリーダライタ 11に 発行する。 [0068] (2,)USBリーダライタ 11は、ライト [1]要求 CBWを受信する力 113 ホスト[2] 10 bのライト [2]要求の対応処理中のため、 USBホスト [1] 10aに対してライト [1]要求 の拒否を行う。すなわち、前述したインタフェースソフト 33の処理によって、外部メディ ァ 13が仮想的にオペレーション状態であることを通知するオペレーション状態通知を 作成する。 [0067] (1,) Here, the USB host [l] 10a issues a write defined by the USB mass storage class [1] CBW to the USB reader / writer 11 to write data to the memory of the external media 13 To do. [0068] (2,) The USB reader / writer 11 is able to receive the write [1] request CBW. 113 Host [2] 10 b write [2] The request is being processed, so the USB host [1] 10a On the other hand, write [1] rejects the request. That is, an operation state notification for notifying that the external media 13 is virtually in an operation state is created by the processing of the interface software 33 described above.
[0069] ここでは、オペレーション状態通知の作成方法の一例として、 USBマスストレージク ラスの SCSIコマンドで定義されたリクエストセンス (Request Sense)コマンドのデー タの中で、 ASC (Additional Sense Code)に 04, hを、 ASCQ (Additional Se nse Code Qualifier)に 07, hを設定する。なお、リクエストセンスコマンドのデータ とは、 USBホストが USBリーダライタに対してリクエストセンスコマンドを発生した際に 、ホストに向けて返信されるデータである。  [0069] Here, as an example of how to create an operation status notification, the ASC (Additional Sense Code) in the data of the request sense (Request Sense) command defined by the SCSI command of the USB mass storage class is set to 04. , H and ASCQ (Additional Sequence Code Qualifier) are set to 07, h. The request sense command data is data returned to the host when the USB host generates a request sense command to the USB reader / writer.
[0070] (3 ' )オペレーション状態通知作成完了後、 USBリーダライタ 11は、当該オペレー シヨン状態通知(ここではリクエストセンスコマンドのデータ)を USBホスト [l] 10aに対 して送信する。  [0070] (3 ') After the completion of the operation status notification, the USB reader / writer 11 transmits the operation status notification (request sense command data in this case) to the USB host [l] 10a.
[0071] (4' ) USBホスト [l] 10aは、オペレーション状態通知を受信すると、外部メディア 1 3のメモリにはデータを書き込めない状態であることを認識し、上位のアプリケーション 等に通知する。  [0071] (4 ') When the USB host [l] 10a receives the operation state notification, the USB host [1] 10a recognizes that data cannot be written to the memory of the external medium 13 and notifies the host application or the like.
[0072] (9)外部メディア 13は、変換されたライト [2]データの書き込みが全て完了すると、 完了したことを USBリーダライタ 11に通知する。  (9) The external medium 13 notifies the USB reader / writer 11 of the completion of the writing of the converted write [2] when the data writing is completed.
[0073] (10) USBリーダライタ 11は、完了通知を受信すると、それをライト [2]完了 CSW([0073] (10) When the USB reader / writer 11 receives the completion notification, it writes it. [2] Completion CSW (
Command Status Wrapper)に変換する。なお、 CSWとは、 USBマスストレージ クラスで定義され、 USBホストが USBファンクション力も CBWに対する実行結果を取 得する際に使用するバケツトである。 Command Status Wrapper) CSW is a bucket that is defined in the USB mass storage class and used when the USB host acquires the execution results for the CBW with the USB function.
[0074] (11)変換完了後、 USBリーダライタ 11は、 USBホスト [2] 10bにライト [2]完了 CS[0074] (11) After conversion is complete, USB reader / writer 11 writes to USB host [2] 10b [2] Complete CS
Wを送信する。 Send W.
[0075] (12) USBホスト [2] 10bは、ライト [2]完了 CSWを受信すると、ライト動作が終了し たことを認識し、ライト動作が完了する。  [0075] (12) USB host [2] 10b receives the write [2] completion CSW, recognizes that the write operation has ended, and completes the write operation.
[0076] 以上のようなシステム構成および動作によって、 USBマスストレージ規格に準じた データ転送により、外部メディアを複数のホストによって共有することが可能になる。 [0076] By the system configuration and operation as described above, conforming to the USB mass storage standard Data transfer allows external media to be shared by multiple hosts.
[0077] ところで、これまでの説明においては、 1つの外部メディアを複数の USBホストで共 有する場合を例としたが、これに限らず、図 8に示すように複数の外部メディアを複数 の USBホストで共有することも可能である。 By the way, in the description so far, a case where one external medium is shared by a plurality of USB hosts is taken as an example. However, the present invention is not limited to this, and as shown in FIG. It is also possible to share with the host.
[0078] 図 8は、本発明の一実施の形態による USBストレージシステムにおいて、図 1を拡 張したシステム構成の一例を示す概略図である。図 8においては、 USBリーダライタFIG. 8 is a schematic diagram showing an example of a system configuration in which FIG. 1 is expanded in the USB storage system according to the embodiment of the present invention. In Figure 8, USB reader / writer
82に N台の USBホスト [l] 80a, [2] 80b, · ··, [Ν] 80η力 ^接続され、更に、 USBリー ダライタ 82には、 N個の外部メディア [1] 83a, [2] 83b, · ··, [N] 83nが揷入されて いる。 82 USB hosts [l] 80a, [2] 80b, ···, [Ν] 80η force ^ connected, and USB reader / writer 82 has N external media [1] 83a, [ 2] 83b, ···, [N] 83n is purchased.
[0079] 通常の UBSストレージシステムにおいては、図 10で述べたように 1台の USBホスト 力も異種または同種の N個の外部メディアにアクセスすることが可能となっている。し たがって、 USBリーダライタ 82に対して N台の USBホストを接続すると、 CFカード、 SDメモリカードおよびメモリースティックといった異種の N個の外部メディアを N台の USBホストで共有することが可能になる。また、勿論、同種の N個の外部メディアでも 同様である。これによつて、通常の UBSストレージシステムと比較して、接続作業およ び初期設定動作などの効率を N倍ィ匕することが可能になる。  [0079] In a normal UBS storage system, as described in Fig. 10, it is possible for a single USB host to access N different types or types of external media. Therefore, when N USB hosts are connected to the USB reader / writer 82, N different external media such as CF cards, SD memory cards, and memory sticks can be shared by the N USB hosts. . Of course, the same applies to N external media of the same type. This makes it possible to increase the efficiency of connection work and initial setting operation by N times compared to a normal UBS storage system.
[0080] また、図 9に示すように、 USBリーダライタ内にブリッジ機能をカ卩えることによって、 複数の外部メディアを複数の USBホストで共有することも可能である。図 9は、本発 明の一実施の形態による USBストレージシステムにおいて、複数の外部メディアを複 数の USBホストで共有可能にする構成の一例を示す概略図である。図 9に示す US Bリーダライタは、 f列えば、複数の USBコネクタ [1] 90a, [2] 90b, · ··, [N] 90nと、 複数の外部メディアコネクタ [1] 91a, [2] 91b, · ··, [Ν] 91ηとを備え、更にこれら複 数の USBコネクタ [1] 90a— [N] 90ηと複数の外部メディアコネクタ [1] 9 la— [N] 9 Inとの間の接続を任意に設定可能にするブリッジ機能 92を有するものとなっている。  [0080] As shown in FIG. 9, a plurality of external media can be shared by a plurality of USB hosts by providing a bridge function in the USB reader / writer. FIG. 9 is a schematic diagram illustrating an example of a configuration in which a plurality of external media can be shared by a plurality of USB hosts in the USB storage system according to the embodiment of the present invention. The US B reader / writer shown in Fig. 9 has multiple USB connectors [1] 90a, [2] 90b, ..., [N] 90n and multiple external media connectors [1] 91a, [2 ] 91b, ···, [Ν] 91η, and these USB connectors [1] 90a— [N] 90η and multiple external media connectors [1] 9 la— [N] 9 In It has a bridge function 92 that can arbitrarily set the connection between them.
[0081] このブリッジ機能 92は、例えば、複数の USBコネクタ [1] 90a— [N] 90ηと複数の 外部メディアコネクタ [1] 91a— [N] 9 Inのそれぞれに対してディップスィッチを設け たり、または、 USBリーダライタ上のインタフェースソフト 33に選択機能を付加するこ となどで実現可能となる。 [0082] このような構成を用いることで、 USBホストと外部メディアとの接続を、 1対 1、 1対 N 、 N対 1、または N対 N等のように任意に選択することが可能になる。また、別の観点と して、例えば、 1つの外部メディアを複数の USBホストで共有する際に、従来におい て必要であった USBケーブルの再接続作業をディップスィッチの ONZOFF作業に 置換することが可能となる。 [0081] For example, the bridge function 92 includes a dip switch for each of the plurality of USB connectors [1] 90a— [N] 90η and the plurality of external media connectors [1] 91a— [N] 9 In. Alternatively, it can be realized by adding a selection function to the interface software 33 on the USB reader / writer. [0082] By using such a configuration, it is possible to arbitrarily select the connection between the USB host and the external medium, such as 1 to 1, 1 to N, N to 1, or N to N. Become. As another viewpoint, for example, when one external medium is shared by multiple USB hosts, the USB cable reconnection work required in the past can be replaced with the ONZOFF work of the dip switch. It becomes possible.
[0083] 以上、本発明者によってなされた発明を実施の形態に基づき具体的に説明したが 、本発明は前記実施の形態に限定されるものではなぐその要旨を逸脱しない範囲 で種々変更可能であることは 、うまでもな!/、。  [0083] While the invention made by the present inventor has been specifically described based on the embodiments, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention. There's nothing wrong!
産業上の利用可能性  Industrial applicability
[0084] 本発明の USBストレージシステムは、 USBファンクションが、 SDメモリカードおよび メモリスティック等の各種メモリカードに対応した USBリーダライタである場合のシステ ムに適用して特に有益なものであり、さら〖こ、これに限らずフロッピーディスクやハード ディスクに対応した USBリーダライタを備えたシステムに広く適用可能である。 [0084] The USB storage system of the present invention is particularly useful when applied to a system in which the USB function is a USB reader / writer compatible with various memory cards such as an SD memory card and a memory stick. This is not limited to this, but can be widely applied to systems equipped with a USB reader / writer that supports floppy disks and hard disks.

Claims

請求の範囲 The scope of the claims
[1] 複数の USBホストと、外部記憶媒体としての機能を含んだ USBファンクションとを 有し、前記複数の USBホストと前記 USBファンクションとの間で USBプロトコルに基 づくデータ転送を行う USBストレージシステムであって、  [1] A USB storage system having a plurality of USB hosts and a USB function including a function as an external storage medium, and transferring data based on the USB protocol between the plurality of USB hosts and the USB function Because
前記 USBファンクションは、前記複数の USBホストが前記 USBファンクションに接 続された状態で、前記複数の USBホストが前記 USBファンクションの前記外部記憶 媒体に対して共有アクセスを行うことを可能にする機能を有することを特徴とする US Bストレージシステム。  The USB function has a function that allows the plurality of USB hosts to perform shared access to the external storage medium of the USB function in a state where the plurality of USB hosts are connected to the USB function. US B storage system characterized by having.
[2] 請求項 1記載の USBストレージシステムにおいて、 [2] In the USB storage system according to claim 1,
前記共有アクセスを行うことを可能にする機能は、前記複数の USBホストの中の一 つの USBホストが前記外部記憶媒体に対して書き込みの処理を実行している間は、 前記複数の USBホストの中の他の USBホストから発生した書き込み要求を拒否する 機能を含むことを特徴とする USBストレージシステム。  The function that enables the shared access is performed while one USB host of the plurality of USB hosts is executing a write process on the external storage medium. A USB storage system that includes a function to reject write requests from other USB hosts.
[3] 請求項 1記載の USBストレージシステムにおいて、 [3] In the USB storage system according to claim 1,
前記複数の USBホストは、第 1の USBホストと第 2の USBホストを含み、 前記共有アクセスを行うことを可能にする機能は、前記第 1の USBホストが発生した 前記外部記憶媒体に対する第 1の書き込み要求の対応処理中に、前記第 2の USB ホストから前記外部記憶媒体に対する第 2の書き込み要求が発生した場合に、前記 第 2の USBホストに対して前記第 2の書き込み要求の拒否を通知し、前記第 1の書き 込み要求の対応処理を継続する機能を含むことを特徴とする USBストレージシステ ム。  The plurality of USB hosts include a first USB host and a second USB host, and the function enabling the shared access is a first for the external storage medium generated by the first USB host. When a second write request from the second USB host to the external storage medium occurs during the processing of the write request, the second USB host is denied the second write request. A USB storage system comprising a function of notifying and continuing processing of the first write request.
[4] 請求項 1一 3のいずれ力 1項に記載の USBストレージシステムにおいて、  [4] In the USB storage system according to any one of claims 1 to 3,
前記外部記憶媒体としての機能は、メモリカードによって実現されることを特徴とす る USBストレージシステム。  The USB storage system characterized in that the function as the external storage medium is realized by a memory card.
[5] 複数の USBホストと、外部記憶媒体としての機能を含んだ USBファンクションとを 有する USBストレージシステムであって、 [5] A USB storage system having a plurality of USB hosts and a USB function including a function as an external storage medium,
前記 USBファンクションは、  The USB function is
前記複数の USBホストが接続される複数の USBコネクタ端子と、 前記複数の USBホストとの間で USBプロトコルに基づくデータ転送を行う機能と、 前記外部記憶媒体との間で所定のプロトコルに基づくデータ転送を行う機能と、 前記 USBプロトコルと前記所定のプロトコルとを相互に変換する機能とを有し、 さらに、前記複数の USBホストの中の一つの USBホストが前記外部記憶媒体に対 して書き込みの処理を実行しいている間は、前記複数の USBホストの中の他の USB ホストから発生した書き込み要求を拒否する機能を備えることを特徴とする USBスト レージシステム。 A plurality of USB connector terminals to which the plurality of USB hosts are connected; A function of performing data transfer based on a USB protocol with the plurality of USB hosts; a function of performing data transfer based on a predetermined protocol with the external storage medium; and the USB protocol and the predetermined protocol. Furthermore, while one USB host of the plurality of USB hosts is executing a write process on the external storage medium, the plurality of USB hosts A USB storage system that has a function to reject write requests from other USB hosts.
[6] 請求項 5記載の USBストレージシステムにおいて、 [6] The USB storage system according to claim 5,
前記書き込み要求を拒否する機能は、前記 USBファンクションが備えたコンビユー タによるプログラム処理によって実現され、  The function of rejecting the write request is realized by program processing by a computer provided in the USB function,
前記プログラム処理は、  The program processing is
前記一つの USBホストからの前記外部記憶媒体に対する書き込み要求を受け付 けた際にオペレーションフラグを設定するステップと、  Setting an operation flag when receiving a write request to the external storage medium from the one USB host;
前記受け付けた書き込み要求の処理を終了した際に前記オペレーションフラグを 解除するステップと、  Releasing the operation flag when processing of the accepted write request is completed;
前記オペレーションフラグが設定されている間に前記他の USBホストからの書き込 み要求が発生した際に、前記発生した書き込み要求の拒否を前記他の USBホスト に対して通知するステップとを含むことを特徴とする USBストレージシステム。  A step of notifying the other USB host of rejection of the generated write request when a write request from the other USB host is generated while the operation flag is set. USB storage system characterized by
[7] 請求項 6記載の USBストレージシステムにおいて、 [7] In the USB storage system according to claim 6,
前記書き込み要求の拒否を通知するステップは、リクエストセンスコマンドのデータ を用いて行われることを特徴とする USBストレージシステム。  The USB storage system, wherein the step of notifying the rejection of the write request is performed using data of a request sense command.
[8] 複数の USBホストに接続される複数の USBコネクタ端子と、外部記憶メディアに接 続されるメディアコネクタ端子とを備え、 USBプロトコルに基づ 、て前記複数の USB ホストとの間のデータ転送が可能な USBストレージデバイスであって、 [8] Provided with a plurality of USB connector terminals connected to a plurality of USB hosts and a media connector terminal connected to an external storage medium, and data between the plurality of USB hosts based on the USB protocol. A USB storage device that can be transferred,
前記複数の USBコネクタ端子に前記複数の USBホストが接続され、なおかつ前記 メディアコネクタ端子に前記外部記憶メディアが接続された状態で、前記複数の US In the state where the plurality of USB hosts are connected to the plurality of USB connector terminals and the external storage medium is connected to the media connector terminal, the plurality of US
Bホストが前記外部記憶メディアに対して共有アクセスを行うことを可能にする機能を 有することを特徴とする USBストレージデバイス。 A USB storage device comprising a function that enables a B host to perform shared access to the external storage medium.
[9] 請求項 8記載の USBストレージデバイスにお!、て、 [9] The USB storage device according to claim 8!
前記外部記憶メディアは、メモリカードであることを特徴とする USBストレージデバイ ス。  The USB storage device is characterized in that the external storage medium is a memory card.
[10] 請求項 8記載の USBストレージデバイスにおいて、  [10] The USB storage device according to claim 8,
前記メディアコネクタ端子を複数備え、  A plurality of media connector terminals;
前記複数のメディアコネクタ端子には、同種類または異種類の複数のメモリカード が接続されることを特徴とする USBストレージデバイス。  A USB storage device, wherein a plurality of memory cards of the same type or different types are connected to the plurality of media connector terminals.
[11] 請求項 10記載の USBストレージデバイスにおいて、 [11] The USB storage device according to claim 10,
前記複数の USBコネクタ端子と前記複数のメディアコネクタ端子との間の接続を任 意に設定可能にするブリッジ機能を有することを特徴とする USBストレージデバイス  A USB storage device having a bridge function that allows arbitrary setting of connections between the plurality of USB connector terminals and the plurality of media connector terminals
PCT/JP2004/014357 2004-09-30 2004-09-30 Usb storage system and usb storage device WO2006038260A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2004/014357 WO2006038260A1 (en) 2004-09-30 2004-09-30 Usb storage system and usb storage device
JP2006539091A JPWO2006038260A1 (en) 2004-09-30 2004-09-30 USB storage system and USB storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2004/014357 WO2006038260A1 (en) 2004-09-30 2004-09-30 Usb storage system and usb storage device

Publications (1)

Publication Number Publication Date
WO2006038260A1 true WO2006038260A1 (en) 2006-04-13

Family

ID=36142351

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2004/014357 WO2006038260A1 (en) 2004-09-30 2004-09-30 Usb storage system and usb storage device

Country Status (2)

Country Link
JP (1) JPWO2006038260A1 (en)
WO (1) WO2006038260A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013232053A (en) * 2012-04-27 2013-11-14 Buffalo Memory Co Ltd External storage device
US9179014B2 (en) 2009-06-24 2015-11-03 Canon Kabushiki Kaisha Information processing apparatus, and method for controlling the same

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05210642A (en) * 1992-01-31 1993-08-20 Sharp Corp Data processing system for utilizing shared file
JPH086890A (en) * 1994-06-23 1996-01-12 Fujitsu Ltd Input/output control system
JPH1131099A (en) * 1997-07-10 1999-02-02 Oki Business:Kk Data management method of database
JP2000194649A (en) * 1998-12-28 2000-07-14 Toshiba Corp Method and apparatus for electronic device connection
JP2004295407A (en) * 2003-03-26 2004-10-21 Olympus Corp Usb hub system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3880431B2 (en) * 2002-04-09 2007-02-14 キヤノン株式会社 Composite device and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05210642A (en) * 1992-01-31 1993-08-20 Sharp Corp Data processing system for utilizing shared file
JPH086890A (en) * 1994-06-23 1996-01-12 Fujitsu Ltd Input/output control system
JPH1131099A (en) * 1997-07-10 1999-02-02 Oki Business:Kk Data management method of database
JP2000194649A (en) * 1998-12-28 2000-07-14 Toshiba Corp Method and apparatus for electronic device connection
JP2004295407A (en) * 2003-03-26 2004-10-21 Olympus Corp Usb hub system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9179014B2 (en) 2009-06-24 2015-11-03 Canon Kabushiki Kaisha Information processing apparatus, and method for controlling the same
JP2013232053A (en) * 2012-04-27 2013-11-14 Buffalo Memory Co Ltd External storage device

Also Published As

Publication number Publication date
JPWO2006038260A1 (en) 2008-07-31

Similar Documents

Publication Publication Date Title
JP4898056B2 (en) Method of communication between smart card and host station
US6941405B2 (en) System and method capable of offloading converter/controller-specific tasks to a system microprocessor
US7739449B2 (en) Memory card authentication system, capacity switching-type memory card host device, capacity switching-type memory card, storage capacity setting method, and storage capacity setting program
US7412553B2 (en) Enhanced protocol conversion system capable of providing offloaded protocol instruction processing
US7568053B2 (en) USB composite device, USB communication system, and USB communication method
US6763402B2 (en) Data storage subsystem
US20060004935A1 (en) Multi-protocol bridge
US20070094472A1 (en) Method for persistent mapping of disk drive identifiers to server connection slots
US20030233501A1 (en) Device for transferring from a memory card interface to a universal serial bus interface
US11055499B2 (en) Card device, host device, and communication method
WO2006035738A1 (en) Host controller
JP2002541554A5 (en)
US6973516B1 (en) Method and apparatus for a controller capable of supporting multiple protocols
US20040148446A1 (en) Communication protocol for serial peripheral devices
JP2000222337A (en) Interface device
CN112380152A (en) NVMe-oF heterogeneous storage access controller and access method
WO2006038260A1 (en) Usb storage system and usb storage device
US6625676B1 (en) Small computer system with interface control and method of operating same
JP3092737U (en) Integrated multifunctional storage means
US8307145B2 (en) Method and system for connecting multiple IDE devices to a USB apparatus using a single USB-to-IDE adapter
EP1617593A2 (en) A log-in inducement executed by the target
JPH10303948A (en) Communication device and its method
US20090234991A1 (en) Enhanced throughput communication with a peripheral device
TW407232B (en) Data transferring/separating controller
JP2004192301A (en) Storage device with multiple input/output interface, method for recognizing device, and read/write control method

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 KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL 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 IT 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

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

Ref document number: 2006539091

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase