WO2005116845A1 - Usb device - Google Patents

Usb device Download PDF

Info

Publication number
WO2005116845A1
WO2005116845A1 PCT/JP2005/009360 JP2005009360W WO2005116845A1 WO 2005116845 A1 WO2005116845 A1 WO 2005116845A1 JP 2005009360 W JP2005009360 W JP 2005009360W WO 2005116845 A1 WO2005116845 A1 WO 2005116845A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
driver
electronic device
main function
class
Prior art date
Application number
PCT/JP2005/009360
Other languages
French (fr)
Japanese (ja)
Inventor
Shinichi Egashira
Ryo Sakai
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.
Publication of WO2005116845A1 publication Critical patent/WO2005116845A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Definitions

  • the present invention relates to a USB (Universal) connected to an electronic device such as a computer and a digital home appliance.
  • USB Universal
  • a device connected to a computer includes, in addition to the device, an external storage device such as a CD-ROM or a floppy disk (registered trademark) drive for installing a device driver in the computer.
  • an external storage device such as a CD-ROM or a floppy disk (registered trademark) drive for installing a device driver in the computer.
  • USB devices which are currently dominant in the peripheral field of the computer field.
  • the device driver is attached to the media 3 such as a floppy disk or CD-ROM as shown in Fig. 7, and you can use it to install the device driver. Become.
  • the computer 1 determines the USB device by referring to the descriptor information A unique to the USB device.
  • the descriptor information A of the USB device 2 includes a vendor ID, a product ID, and a revision ID (al), a class code, a subclass code, and a protocol (a2).
  • an INF file B which is a driver information file stored in the storage device of the computer 1, includes a vendor ID, a product ID, and a revision ID (bl), a class code, and a subclass code. And protocol (b2).
  • the computer 1 compares the vendor ID, product ID, and revision ID (al) obtained from the descriptor information A of the USB device 2 with the vendor ID, product ID, and revision ID (bl) of the INF file. Compare and if they match, incorporate the device driver (cl) specified in the INF file.
  • the class code and subclass The protocol and protocol (a2) are compared with the class code, subclass code and protocol (b2) of the INF file B. If they match, the device driver (c2) specified in the INF file B is changed to ⁇ a.
  • the device driver corresponding to the USB device 2 is saved in the storage device of the computer 1, and the device driver is not installed. In this case, install a device driver for external recording media such as CD-ROM or floppy disk.
  • Patent Document 1 Japanese Patent Application Laid-Open No. 2003-114859 (Pages 2-3, Figure 1-2)
  • Patent Document 1 is a technology that attempts to solve this problem by storing a device driver for a computer in a USB device.
  • a resident program is used to determine whether the device driver is built into the computer or not. However, when the number of USB devices increases, the number of resident applications is required, which is not practical. If the USB host is a digital home appliance, it may not have much memory, so the number of resident applications that can be executed is further limited.
  • the present invention takes the following means in order to solve the above problems.
  • USB device according to the present invention
  • An input / output unit for transmitting and receiving data to and from an electronic device
  • a main function unit that constitutes a main function of the USB device
  • a driver storage memory for storing a device driver
  • the USB mass storage class is a standard for operating a storage device such as a CD-ROM or a DVD-ROM by USB.
  • This USB mass storage class Having the descriptor information allows the electronic device to recognize the USB device as a USB mass storage device and enables the installation of a device driver for the USB main function.
  • the USB control unit transmits descriptor information for the USB mass storage class in response to a request from the electronic device.
  • the electronic device first determines whether or not a device driver for the main function exists in the electronic device based on the descriptor information for the USB mass storage class. When present, the electronic device incorporates device drivers for its primary function. If not present, the electronic device incorporates a device driver for the standard USB mass storage class. USB devices behave as USB mass storage class devices. This allows the electronic device to treat the USB device in the same way as a floppy disk drive or CD-ROM drive. That is, the electronic device can freely access the driver storage memory of the USB device. Then, the device driver for the main function is read from the driver storage memory and installed in the electronic device.
  • a preferable configuration further includes a built-in determination register that indicates whether or not the device driver is built in the electronic device.
  • the built-in determination register is set to a non-built-in state when the electronic device is connected to the electronic device, and the USB control unit controls the electronic device based on the USB mass storage class descriptor information.
  • the built-in determination register is updated to the built-in state.
  • the USB control unit reads the device driver from the driver storage memory when the electronic device determines that the electronic device is in a non-incorporated state based on the descriptor information for the USB mass storage class. And installing the device driver in the electronic device, and updating the installed status determination register to the installed status after the electronic device has installed the device driver.
  • the USB control unit updates the installed state determination register to the installed state based on the reception of a unique vendor request from the electronic device.
  • the USB control unit switches between the USB mass storage function and the main function based on the reception of a bus reset or a mass storage reset from the electronic device.
  • a USB device for example, a DVD drive
  • the present invention may be developed as follows.
  • USB device According to the present invention
  • An input / output unit for transmitting and receiving data to and from an electronic device
  • a main function unit constituting a function belonging to the mass storage class as a main function of the USB device, a driver storage memory for storing a device driver,
  • class information has descriptor information indicating a USB mass storage class
  • the electronic device determines that the device driver has been installed based on the descriptor information,!
  • a USB control unit that reads the driver and installs it on the electronic device
  • the USB control unit switches from the USB mass storage function to the main function based on the reception of the vendor request of the electronic device.
  • the USB control unit determines whether or not the device driver is built in the electronic device by a unique vendor request, and when the device driver is built in, controls by the main function described above. Then, when the device driver is controlled as a USB mass storage device, the device driver is read from the driver storage memory and installed in the electronic device, and then the control is switched to the main function.
  • the USB device when the device driver of the USB device is installed on the electronic device side, the USB device is operated by the main function, and when the device driver is not yet installed, the USB device is operated as a USB mass storage device.
  • Device drivers can be installed automatically.
  • connection may be disconnected and then reconnected.
  • the connection may be switched to another electronic device.
  • the following configuration responds to this.
  • USB device According to the present invention
  • An input / output unit for transmitting and receiving data to and from an electronic device;
  • a main function unit that constitutes a main function of the USB device;
  • a driver storage memory for storing a device driver
  • a descriptor information holding flag for holding which of the two types of descriptor information is active is active
  • a reset switch for resetting the descriptor information holding flag is provided.
  • the device driver is installed in the electronic device.
  • the descriptor information holding flag is set. Therefore, in the second connection, the procedure of using the descriptor information for the USB mass storage class can be omitted, and the time can be reduced.
  • the reset switch When switching connection to an electronic device with a different OS (operating system), the reset switch is operated to reset the descriptor information holding flag. Make use possible.
  • the installation program can be collectively managed.
  • FIG. 1 A block diagram showing a configuration of a USB device according to Embodiment 1 of the present invention.
  • FIG. 2 is an operation sequence diagram of a USB device and a computer according to Embodiment 1 of the present invention.
  • FIG. 3 is an operation sequence diagram of a USB device and a computer according to Embodiment 1 of the present invention.
  • FIG. 4 is a block diagram showing a configuration of a USB device according to a second embodiment of the present invention.
  • FIG. 5 is an operation sequence diagram of a USB device and a computer according to Embodiment 2 of the present invention.
  • FIG. 6 is a block diagram showing a configuration of a USB device according to Embodiment 3 of the present invention.
  • FIG. 7 is an explanatory diagram of a mode of installing a device driver of a USB device in a computer according to the related art
  • USB device Accordingly, embodiments of a USB device according to the present invention will be described in detail with reference to the drawings. Note that a description will be given using a computer as an example of an electronic device.
  • FIG. 1 is a block diagram showing a configuration of a USB device according to Embodiment 1 of the present invention.
  • the USB device 2 includes an input / output unit 11 for transmitting and receiving data to and from the computer 1, a USB control unit 12 for controlling the USB device 2, and a main function unit for storing the original functions of the USB device 2. 13, a driver storage memory 14 for storing a device driver, and a built-in determination register 15.
  • the built-in determination register 15 is for determining whether or not the device driver of the USB device 2 is installed in the computer 1.
  • the USB control unit 12 has two types of descriptor information Al and A2.
  • the descriptor information Al, A2 is used by the computer 1 to obtain product information (device type and manufacturer information).
  • Descriptor information A2 for the main function is dedicated to device driver installation, and describes the contents of the main function (class) that the USB device 2 originally has.
  • the descriptor information A1 for the mass storage class describes the contents regarding the USB mass storage class for the purpose of installing the device driver.
  • the USB mass storage class is a standard for operating storage devices such as CD-ROM and DVD-ROM by USB.
  • the USB control unit 12 further has control software for operating the USB mass storage class.
  • the USB device 2 operates as a main function when the device driver of the USB device 2 is installed in the computer 1, and operates as a USB mass storage class device when the device driver is not installed. In the latter case, the device driver of the driver storage memory 14 is read out and installed in the computer 1 by the operation of the USB mass storage class.
  • the computer 1 When the connection of the USB device 2 to the computer 1 is confirmed, the computer 1 starts an erasure process and acquires information necessary for using the USB device 2. That is, the computer 1 requests the descriptor information A of the USB device 2.
  • the descriptor information A1 for the USB mass storage class includes a vendor ID, a product ID, and a revision ID, a class code, a subclass code, and a protocol.
  • the vendor ID, product ID, and revision ID are the same as the descriptor information A2 for the main function.
  • the class code, subclass code and protocol are exclusive to the USB mass storage class. However, this applies only when the revision ID is set.
  • the computer 1 compares the vendor ID, product ID, and revision ID obtained from the descriptor information A1 with the vendor ID, product ID, and revision ID of the INF file B stored in the computer 1. .
  • the device driver incorporated in the computer 1 issues a bus reset to the USB device 2.
  • the computer 1 starts the emanation processing of the USB device 2 again.
  • the computer 1 is used for the USB device 2 incorporated by specifying the INF file B.
  • the USB device 2 can be used by using the device driver.
  • the USB control unit 12 of the USB device 2 activates the main function unit 13 to enable the main function of the USB device 2 to operate.
  • the computer 1 stores the class code, subclass code, and protocol obtained from the descriptor information A1 for the USB mass storage class with the class code, subclass code, and protocol of the INF file B. Compare.
  • the descriptor information A1 describes that the USB device 2 is a device of the USB mass storage class.
  • device drivers for USB mass storage class are included as standard equipment in Windows OS after WindowsME / 2000.
  • the computer 1 incorporates a device driver for the USB mass storage class specified by the INF file B.
  • the device driver for USB mass storage class in computer 1 does not issue the above-mentioned vendor-unique device request.
  • the USB control unit 12 of the USB device 2 determines that the device driver for the USB mass storage class is installed in the computer 1.
  • the USB control unit 12 activates control software for operating the USB mass storage class on the driver storage memory 14, and accesses the driver storage memory 14 by using the control software. In this case, the USB device 2 behaves as a USB mass storage class device.
  • the USB device 2 can be treated by the computer 1 as equivalent to a storage device such as a floppy disk drive or a CD-ROM drive.
  • the computer 1 uses the driver storage memory 14 of the USB device 2 as a storage medium such as a CD-ROM medium. Can be recognized. As a result, the computer 1 can freely access the driver storage memory 14.
  • the main function unit 13 becomes irrelevant.
  • the device storage memory 14 of the USB device 2 stores a device driver for the main function of the USB device 2.
  • the computer 1 can install a device driver for the main function of the USB device 2 by accessing the device driver. That is, the device driver for the main function of the USB device 2 can be installed in the computer 1 without using a medium such as a floppy disk or a CD-ROM.
  • a bus reset is used to switch between operation in the USB mass storage class and operation in the main function. As a result, the user does not need to be aware of the switching of the operation state. In addition, adverse effects on the computer 1 (Windows OS) can be prevented.
  • USB device In the above configuration, the following USB device is also effective.
  • the configuration is such that a driver installation program is stored in the driver storage memory 14.
  • the USB control unit 12 starts the installation program, reads out the device driver for the main meeting from the driver storage memory 14, and installs it in the computer 1.
  • Vendor ID, product ID, etc. match, and the main function of USB device 2 becomes available.
  • Embodiment 2 of the present invention is directed to a USB device whose main function operates in the USB mass storage class.
  • a typical example of such a USB device is a DVD drive.
  • the USB device 2 includes an input / output unit 11, a USB control unit 12, a main function unit 13, and a driver storage memory 14 similar to those in the first embodiment. There is no built-in determination register 15 in the first embodiment.
  • the USB control unit 12 that controls the USB device 2 has one type of descriptor information, and is a descriptor for the USB mass storage class. Information Al only. Descriptor information dedicated to the installation of the device driver for the main function of USB device 2.
  • the computer 1 incorporates the device driver for the standard USB mass storage class specified by the INF file B.
  • the main function of the USB device 2 operates in the USB mass storage class.
  • USB device 2 To switch the operation mode of the USB device 2 to the main function after the device driver is installed, a device request unique to the vendor is transmitted. A bus reset is not necessary for re-emulation as in the first embodiment.
  • the present embodiment is useful when additionally installing a device driver for enhancing functions on a USB mass storage class device that is provided as standard equipment in the computer 1.
  • USB device is equipped with a USB mass storage class device driver as standard equipment, and a computer and a device driver corresponding to the driver storage memory are stored. If you connect to a computer with a different installation mechanism, you will not be able to use USB devices.
  • a configuration corresponding to this is the configuration of the third embodiment of the present invention.
  • the USB device 2 includes an input / output unit 11, a USB control unit 12, a main function unit 13, a driver storage memory 14, and a built-in determination unit similar to those in the first embodiment.
  • Register 15 has descriptor information holding flag (hereinafter referred to as flag) 16 that holds which descriptor information Al or A2 is active, and reset switch 17 for flag 16 I have.
  • the flag 16 is set to, for example, “0” in the initial state so as to use the descriptor information A1 for the mass storage class.
  • the USB control unit 12 refers to the built-in determination register 15. Since the built-in determination register 15 is “0”, the device driver for the main function of the USB device 2 is built into the computer 1 through the same processing as in the first embodiment.
  • the descriptor information A1 for the mass storage class is transmitted to the computer 1 in the above process.
  • the flag 16 is set to "1" and the descriptor information A2 for the main function is used.
  • the flag 16 can be set in a nonvolatile memory in the USB device 2.
  • the reset switch 17 is for returning the flag 16 to the initial state.
  • the device driver of the USB device 2 has already been incorporated in the computer 1.
  • the flag 16 is already set to ".” Therefore, after that, when the USB device 2 is connected to the computer 1, the USB control unit 12 sees the flag 16. "1" is set Therefore, the device driver of USB device 2 can be recognized as already installed in computer 1 without using the built-in determination register 15, and only the descriptor information A2 for the main function should be used. become.
  • the USB control unit 12 When the computer 1 issues the firmware processing, the USB control unit 12 does not perform the processing using the descriptor information A1 for the mass storage class. It performs the same operation as a normal USB device 2 that uses only the descriptor information A2 for the main function.
  • the procedure using the disk storage unit information A1 for the mass storage class at the beginning of the connection in the case of the first embodiment is omitted. Therefore, the time from when the USB device 2 is connected to when it can be used can be reduced.
  • USB device to a Windows PC and a computer having a different device driver installation mechanism.
  • the driver can be installed according to the procedure of the above-described method, and the USB device can be used.
  • the device connection is recognized as mass storage class.
  • the main function 13 of the USB device 2 can be used.
  • the flag 16 in the nonvolatile memory is also set to "1". Thereafter, the flag 16 allows the main function 13 of the USB device 2 to be used at any time.
  • the present invention is useful as a technology for efficiently installing a device driver of a USB device in a computer.
  • a computer is the only USB host that can be used.
  • Digital home appliances that have the function of a USB host are also widely applicable.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

[MEANS FOR SOLVING PROBLEMS] A USB device (2) comprising an input/output unit (11) for communicating data with a computer (1), a main function unit (13) constituting a main function of the USB device (2), a driver storage memory (14) storing a device driver, a USB control unit (12) having descriptor information A1 including product information which are the same as one another and class information representing the USB mass storage class and descriptor information A2 including class information representing the class to which the main function belongs, and an incorporation judging register (15) representing whether or not the device driver is incorporated in the computer (1).

Description

明 細 書  Specification
USB機器  USB device
技術分野  Technical field
[0001] 本発明は、コンピュータ、デジタル家電等の電子機器に接続される USB (Universal  The present invention relates to a USB (Universal) connected to an electronic device such as a computer and a digital home appliance.
Serial Bus)機器にかかわり、特には、 USB機器をコンピュータに接続する際に、専 用のデバイスドライバをインストールする技術に関する。  In particular, it relates to technology for installing a dedicated device driver when connecting a USB device to a computer.
背景技術  Background art
[0002] コンピュータに接続する機器は、一般的に、その機器の他に、コンピュータにデバイ スドライバをインストールするための、 CD— ROMやフロッピーディスク(登録商標)ド ライブといったような外部記憶デバイスが必要となる。  [0002] In general, a device connected to a computer includes, in addition to the device, an external storage device such as a CD-ROM or a floppy disk (registered trademark) drive for installing a device driver in the computer. Required.
[0003] 現在、コンピュータの分野の周辺機器で多くを占めている USB機器についても同 様である。機器を購入したときに、ほとんどの場合、図 7のようにデバイスドライバがフ ロッピーディスクや CD—ROM等のメディア 3に添付されており、それを用 、てデバイ スドライノ をインスト一ノレするようになって 、る。 [0003] The same applies to USB devices, which are currently dominant in the peripheral field of the computer field. When you purchase the device, in most cases, the device driver is attached to the media 3 such as a floppy disk or CD-ROM as shown in Fig. 7, and you can use it to install the device driver. Become.
[0004] コンピュータ 1は、 USB機器 2のデバイスドライバをインストールする際には、 USB 機器固有のディスクリプタ情報 Aを参照することで、 USB機器を判別する。 [0004] When installing the device driver of the USB device 2, the computer 1 determines the USB device by referring to the descriptor information A unique to the USB device.
[0005] USB機器 2のディスクリプタ情報 Aは、図 8に示すように、ベンダ ID、プロダクト IDお よびリビジョン ID (al)と、クラスコード、サブクラスコードおよびプロトコル(a2)を含ん でいる。 [0005] As shown in FIG. 8, the descriptor information A of the USB device 2 includes a vendor ID, a product ID, and a revision ID (al), a class code, a subclass code, and a protocol (a2).
[0006] 一方、コンピュータ 1の記憶装置に保存されているドライバ情報ファイルである INF ファイル Bは、図 9に示すように、ベンダ ID、プロダクト IDおよびリビジョン ID (bl)と、 クラスコード、サブクラスコードおよびプロトコル (b2)を含んでいる。  [0006] On the other hand, as shown in FIG. 9, an INF file B, which is a driver information file stored in the storage device of the computer 1, includes a vendor ID, a product ID, and a revision ID (bl), a class code, and a subclass code. And protocol (b2).
[0007] まず、コンピュータ 1は、 USB機器 2のディスクリプタ情報 Aから得られるベンダ ID、 プロダクト IDおよびリビジョン ID (al)と、 INFファイルのベンダ ID、プロダクト IDおよ びリビジョン ID (bl)とを比較し、一致した場合には、 INFファイルで指定されるデバイ スドライバ(cl)を組み込む。  [0007] First, the computer 1 compares the vendor ID, product ID, and revision ID (al) obtained from the descriptor information A of the USB device 2 with the vendor ID, product ID, and revision ID (bl) of the INF file. Compare and if they match, incorporate the device driver (cl) specified in the INF file.
[0008] 一致するものがない場合、次に、ディスクリプタ情報 Aのクラスコード、サブクラスコ ードおよびプロトコル(a2)と、 INFファイル Bのクラスコード、サブクラスコードおよびプ ロトコル (b2)とを比較し、一致した場合には、 INFファイル Bで指定されるデバイスド ライバ (c2)を^ aみ込む。 [0008] If there is no match, then the class code and subclass The protocol and protocol (a2) are compared with the class code, subclass code and protocol (b2) of the INF file B. If they match, the device driver (c2) specified in the INF file B is changed to ^ a.
[0009] それでも一致しない場合には、その USB機器 2に対応するデバイスドライバはコン ピュータ 1の記憶装置には保存されて 、な 、と判断し、デバイスドライバは組み込ま れない。この場合、 CD— ROMやフロッピーディスク等の外部記録メディア力 デバ イスドライバをインストールする。  If they still do not match, it is determined that the device driver corresponding to the USB device 2 is saved in the storage device of the computer 1, and the device driver is not installed. In this case, install a device driver for external recording media such as CD-ROM or floppy disk.
[0010] さらに近年、 USB機器としての機能を持つデジタル家電が急増しており、それらの 機能を使 ヽこなすために専用のデバイスドライバが用意されることも少なくな ヽ。また 、デジタル家電の中には USBホストとしての機能を持つ製品や、さらに Windows (登 録商標)を組み込んだ製品も存在して 、る。  [0010] Furthermore, in recent years, digital home appliances having functions as USB devices have been rapidly increasing, and dedicated device drivers are rarely prepared to use those functions. In addition, some digital home appliances have a function as a USB host, and some products incorporate Windows (registered trademark).
特許文献 1 :特開 2003— 114859号公報 (第 2— 3頁、第 1—2図)  Patent Document 1: Japanese Patent Application Laid-Open No. 2003-114859 (Pages 2-3, Figure 1-2)
発明の開示  Disclosure of the invention
発明が解決しょうとする課題  Problems to be solved by the invention
[0011] USB機器のデバイスドライバを CD— ROMやフロッピーディスク等の外部記録メデ ィァ 3からインストールする場合、そのメディアカゝらデバイスドライバ等の情報を読み出 すためのフロッピーディスクドライブや CD— ROMドライブなどの装置が必要となる。 し力し、最近ではフロッピーディスクドライブや CD— ROMドライブを持たな!、コンビュ ータもノートコンピュータを中心に一般ィ匕している。 [0011] When installing a device driver for a USB device from an external recording medium 3 such as a CD-ROM or a floppy disk, a floppy disk drive or a CD-ROM for reading information such as a device driver from the media card. A device such as a ROM drive is required. Recently, there is no floppy disk drive or CD-ROM drive! Computers are also generally used mainly for notebook computers.
[0012] また、 USB機器としての機能を持つデジタル家電にぉ 、て、デバイスドライバをイン ストールする際にも、コンピュータと同様に外部記憶メディアや、その代替となる手段 が必要になってくる。しかしながら、このようなデジタル家電に常に外部記憶メディア が接続可能力といえば、そうではない。 [0012] In addition, when a device driver is installed in a digital home appliance having a function as a USB device, an external storage medium or an alternative means is required similarly to a computer. However, the ability to connect external storage media to such digital home appliances is not always the case.
[0013] このように、コンピュータだけでなぐデジタル家電の分野においても、広く USBに 関する課題が存在する。 [0013] As described above, in the field of digital home appliances that are not limited to computers, there are widespread issues related to USB.
[0014] さらに、フロッピーディスクドライブや CD—ROMドライブ等の外部記録メディアや、 その代替となる手段がある場合でも、デバイスドライバの保存されて ヽる記録メディア を紛失した場合には、デバイスを使用することができなくなる。 [0015] 従来の先行技術文献の中で、 USB機器に関してもこの問題を解決しょうとしたもの は多い。例えば、上記の特許文献 1は、 USB機器にコンピュータ用のデバイスドライ バを格納することで、この問題を解決しょうとした技術である。 [0014] Further, even if there is an external recording medium such as a floppy disk drive or a CD-ROM drive or an alternative means, if the recording medium storing the device driver is lost, the device is used. You can't do that. [0015] Many prior art documents have attempted to solve this problem also for USB devices. For example, Patent Document 1 mentioned above is a technology that attempts to solve this problem by storing a device driver for a computer in a USB device.
[0016] しかし、この先行技術文献には下記に示すいくつかの課題が隠されており、コンビ ユータのシステム側の安定性を含めたトータルな解決には至って 、な 、。  [0016] However, some problems described below are hidden in this prior art document, and a total solution including the stability of the system of the computer has been reached.
[0017] 1. USBマスストレージ機能と主機能を切り替えるときに、コンピュータ側に通知が 行かないため、急にデバイスが切断されたと判断され、コンピュータ側の動作が不安 定になる。例えば、コンピュータに搭載している USBホストドライバの処理に異常をき たし、 USB機器がコンピュータに正常に認識されなくなることがある。  [0017] 1. When switching between the USB mass storage function and the main function, no notification is sent to the computer side, so it is determined that the device is suddenly disconnected, and the operation on the computer side becomes unstable. For example, an error may occur in the processing of the USB host driver installed in the computer, and the USB device may not be recognized correctly by the computer.
[0018] 2.デバイスドライバがコンピュータに組み込まれている力否かの判断に常駐プログ ラムを用いている。しかし、 USB機器が増えてしまった場合には、その数だけ常駐ァ プリが必要となり、現実的でない。また、 USBホストがデジタル家電であった場合には 、多くのメモリを搭載していないこともあるため、実行できる常駐アプリの数にさらに制 限がでてくる。  [0018] 2. A resident program is used to determine whether the device driver is built into the computer or not. However, when the number of USB devices increases, the number of resident applications is required, which is not practical. If the USB host is a digital home appliance, it may not have much memory, so the number of resident applications that can be executed is further limited.
[0019] 3.デバイスドライバが既にインストールされているときには、 USB機器側でドライブ 機能から主機能に切り替える手段が明記されていない。  [0019] 3. When the device driver is already installed, the means for switching from the drive function to the main function on the USB device side is not specified.
課題を解決するための手段  Means for solving the problem
[0020] 本発明は、上記の課題を解決するために次のような手段を講じる。 [0020] The present invention takes the following means in order to solve the above problems.
[0021] 本発明による USB機器は、 [0021] The USB device according to the present invention
電子機器との間でデータを送受信する入出力部と、  An input / output unit for transmitting and receiving data to and from an electronic device;
USB機器の主機能を構成する主機能部と、  A main function unit that constitutes a main function of the USB device;
デバイスドライバを格納するドライバ格納メモリと、  A driver storage memory for storing a device driver,
製品情報が互いに同一で、クラス情報が USBマスストレージクラスを示すディスクリ プタ情報とクラス情報が主機能の属するクラスを示すディスクリプタ情報とを有する U SB制御部と  A USB control unit in which the product information is the same as each other, and the class information includes descriptor information indicating the USB mass storage class and the class information indicating the class to which the main function belongs.
を備えた構成とされている。  Is provided.
[0022] 上記において、 USBマスストレージクラスは、 USBで CD— ROMや DVD— ROM 等の記憶装置を動作させるための規格である。この USBマスストレージクラスとしての ディスクリプタ情報を有することにより、電子機器に USB機器を USBマスストレージ機 器として認識させ、 USB主機能用のデバイスドライバのインストールを可能とする。 In the above, the USB mass storage class is a standard for operating a storage device such as a CD-ROM or a DVD-ROM by USB. This USB mass storage class Having the descriptor information allows the electronic device to recognize the USB device as a USB mass storage device and enables the installation of a device driver for the USB main function.
[0023] USB機器を電子機器に接続すると、電子機器力ゝらの要求により USB制御部は US Bマスストレージクラス用のディスクリプタ情報を送信する。電子機器は、 USBマススト レージクラス用のディスクリプタ情報に基づいて、まず電子機器に主機能用のデバイ スドライバが存在する否かを判断する。存在するときは、電子機器はその主機能用の デバイスドライバを組み込む。存在しないときは、電子機器は標準搭載の USBマスス トレージクラス用のデバイスドライバを組み込む。 USB機器は、 USBマスストレージク ラスの機器として振舞う。これにより、電子機器は、 USB機器をフロッピィディスクドラ イブや CD— ROMドライブなどと同様に扱うことができる。すなわち、電子機器は US B機器のドライバ格納メモリに自由にアクセスすることができる。そして、ドライバ格納メ モリから主機能用のデバイスドライバを読み出して電子機器にインストールする。  When the USB device is connected to the electronic device, the USB control unit transmits descriptor information for the USB mass storage class in response to a request from the electronic device. The electronic device first determines whether or not a device driver for the main function exists in the electronic device based on the descriptor information for the USB mass storage class. When present, the electronic device incorporates device drivers for its primary function. If not present, the electronic device incorporates a device driver for the standard USB mass storage class. USB devices behave as USB mass storage class devices. This allows the electronic device to treat the USB device in the same way as a floppy disk drive or CD-ROM drive. That is, the electronic device can freely access the driver storage memory of the USB device. Then, the device driver for the main function is read from the driver storage memory and installed in the electronic device.
[0024] 上記構成において、好ましい構成は、さら〖こ、前記デバイスドライバが前記電子機 器に組み込まれているカゝ否かを示す組込済み判定用レジスタを備えることである。  In the above configuration, a preferable configuration further includes a built-in determination register that indicates whether or not the device driver is built in the electronic device.
[0025] 前記組込済み判定用レジスタは前記電子機器との接続時に未組込状態に設定さ れており、前記 USB制御部は、前記電子機器が前記 USBマスストレージクラス用の ディスクリプタ情報に基づいて組込済み状態と判定したときに前記組込済み判定用 レジスタを組込済み状態に更新する。  [0025] The built-in determination register is set to a non-built-in state when the electronic device is connected to the electronic device, and the USB control unit controls the electronic device based on the USB mass storage class descriptor information. When it is determined that the state is the built-in state, the built-in determination register is updated to the built-in state.
[0026] 前記 USB制御部は、前記電子機器が前記 USBマスストレージクラス用のディスクリ プタ情報に基づ 1ヽて未組込状態と判定したときに、前記ドライバ格納メモリから前記 デバイスドライバを読み出して前記電子機器にインストールし、前記電子機器で前記 デバイスドライバの組み込み終了後に前記組込済み判定用レジスタを組込済み状態 に更新する。  [0026] The USB control unit reads the device driver from the driver storage memory when the electronic device determines that the electronic device is in a non-incorporated state based on the descriptor information for the USB mass storage class. And installing the device driver in the electronic device, and updating the installed status determination register to the installed status after the electronic device has installed the device driver.
[0027] 前記 USB制御部は、前記組込済み判定用レジスタの組込済み状態への更新を、 前記電子機器からのユニークなベンダリクエストの受信に基づいて行う。  [0027] The USB control unit updates the installed state determination register to the installed state based on the reception of a unique vendor request from the electronic device.
[0028] 前記 USB制御部は、前記デバイスドライバのインストール後、前記電子機器からの バスリセットまたはマスストレージリセットの受信に基づいて USBマスストレージ機能と 前記主機能とを切り替える。 [0029] ところで、主機能が USBマスストレージクラスで動作する USB機器 (例えば、 DVD ドライブ)の場合には、本発明を次のように展開するとよい。 [0028] After installing the device driver, the USB control unit switches between the USB mass storage function and the main function based on the reception of a bus reset or a mass storage reset from the electronic device. By the way, in the case of a USB device (for example, a DVD drive) whose main function operates in the USB mass storage class, the present invention may be developed as follows.
[0030] すなわち、本発明による USB機器は、 That is, the USB device according to the present invention
電子機器との間でデータを送受信する入出力部と、  An input / output unit for transmitting and receiving data to and from an electronic device;
USB機器の主機能としてマスストレージクラスに属する機能を構成する主機能部と デバイスドライバを格納するドライバ格納メモリと、  A main function unit constituting a function belonging to the mass storage class as a main function of the USB device, a driver storage memory for storing a device driver,
クラス情報が USBマスストレージクラスを示すディスクリプタ情報を有し、前記電子 機器によって前記ディスクリプタ情報に基づいて前記デバイスドライバが組み込まれ て!、な 、と判定されたときは、前記ドライバ格納メモリから前記デバイスドライバを読 み出して前記電子機器にインストールする USB制御部と  If the class information has descriptor information indicating a USB mass storage class, and the electronic device determines that the device driver has been installed based on the descriptor information,! A USB control unit that reads the driver and installs it on the electronic device
を備えた構成とされている。  Is provided.
[0031] 上記において、前記 USB制御部は、前記電子機器力 のベンダリクエストの受信 に基づ!/ヽて、前記 USBマスストレージ機能から前記主機能へ切り替える。  [0031] In the above, the USB control unit switches from the USB mass storage function to the main function based on the reception of the vendor request of the electronic device.
[0032] また、前記 USB制御部は、前記デバイスドライバが前記電子機器に組み込まれて いる力否かをユニークなベンダリクエストによって判断し、組み込まれているときは前 記主機能で制御し、組み込まれて 、な 、ときは USBマスストレージ機器として制御す ることで前記ドライバ格納メモリから前記デバイスドライバを読み出して前記電子機器 にインストールし、その後、制御を前記主機能に切り替える。  [0032] Further, the USB control unit determines whether or not the device driver is built in the electronic device by a unique vendor request, and when the device driver is built in, controls by the main function described above. Then, when the device driver is controlled as a USB mass storage device, the device driver is read from the driver storage memory and installed in the electronic device, and then the control is switched to the main function.
[0033] この場合、 USB機器のデバイスドライバが電子機器側で組み込まれるときは主機 能で USB機器を動作させ、まだ組み込まれていないときは、 USB機器を USBマスス トレージ機器として動作させることにより、デバイスドライバを自動的にインストールさ せることができる。  In this case, when the device driver of the USB device is installed on the electronic device side, the USB device is operated by the main function, and when the device driver is not yet installed, the USB device is operated as a USB mass storage device. Device drivers can be installed automatically.
[0034] ところで、 USB機器を電子機器に接続して使用可能にした後、接続を切り離し、再 び接続することもある。また、別の電子機器に接続切り替えすることもある。これに対 応するのが、次の構成である。  By the way, after a USB device is connected to an electronic device to make it usable, the connection may be disconnected and then reconnected. The connection may be switched to another electronic device. The following configuration responds to this.
[0035] すなわち、本発明による USB機器は、  That is, the USB device according to the present invention
電子機器との間でデータを送受信する入出力部と、 USB機器の主機能を構成する主機能部と、 An input / output unit for transmitting and receiving data to and from an electronic device; A main function unit that constitutes a main function of the USB device;
デバイスドライバを格納するドライバ格納メモリと、  A driver storage memory for storing a device driver,
製品情報が互いに同一で、クラス情報が USBマスストレージクラスを示すディスクリ プタ情報とクラス情報が主機能の属するクラスを示すディスクリプタ情報とを有する U SB制御部と、  A USB control unit in which the product information is identical to each other, and the class information includes descriptor information indicating the USB mass storage class and the class information indicating the class to which the main function belongs;
前記 2種類のディスクリプタ情報のいずれがアクティブかを保持するディスクリプタ情 報保持フラグと、  A descriptor information holding flag for holding which of the two types of descriptor information is active,
を備えた構成とされている。  Is provided.
[0036] さらに、前記ディスクリプタ情報保持フラグをリセットするリセットスィッチを備える。 [0036] Further, a reset switch for resetting the descriptor information holding flag is provided.
[0037] 一度、 USB機器を電子機器に接続し、デバイスドライバを電子機器に組み込んで[0037] Once the USB device is connected to the electronic device, the device driver is installed in the electronic device.
USB機器を使える状態にしたときは、ディスクリプタ情報保持フラグがセットされる。し たがって、二度目の接続に際しては、 USBマスストレージクラス用のディスクリプタ情 報を用いる手順を省略することができ、時間短縮を図ることができる。 When the USB device can be used, the descriptor information holding flag is set. Therefore, in the second connection, the procedure of using the descriptor information for the USB mass storage class can be omitted, and the time can be reduced.
[0038] また、 OS (operating system)が異なる電子機器に接続切り替えするときは、リセット スィッチを操作してディスクリプタ情報保持フラグをリセットすることにより、別 OSの電 子機器でも USB機器の主機能の使用を可能にする。 When switching connection to an electronic device with a different OS (operating system), the reset switch is operated to reset the descriptor information holding flag. Make use possible.
発明の効果  The invention's effect
[0039] 本発明を使用することで、 USB機器のデバイスドライバのインストール時にフロッピ 一ディスクドライブや CD— ROMドライブ等の外部記憶装置を使用する必要がなくな る。つまり、フロッピーディスクドライブや CD— ROMドライブを持たない電子機器でも 、機器の増設等の煩雑な手順を踏むこと無ぐ USB機器を使用できるようになる。  By using the present invention, it is not necessary to use an external storage device such as a floppy disk drive or a CD-ROM drive when installing a device driver of a USB device. In other words, even an electronic device that does not have a floppy disk drive or a CD-ROM drive can use a USB device without going through complicated procedures such as adding devices.
[0040] また、 USB機器とデバイスドライノく、インストールプログラムの一括管理が可能となり 、従来のような記録メディア紛失の問題は無関係となる。  [0040] In addition, since the USB device and the device driver can be collectively managed, the installation program can be collectively managed.
[0041] また、 USB機器の機能の切り替えにバスリセット等を使用すれば、強制的切り替え に起因する悪影響は防止することができる。  Further, if a bus reset or the like is used to switch the function of the USB device, it is possible to prevent the adverse effects caused by the forced switching.
図面の簡単な説明  Brief Description of Drawings
[0042] [図 1]本発明の実施の形態 1における USB機器の構成を示すブロック図 [FIG. 1] A block diagram showing a configuration of a USB device according to Embodiment 1 of the present invention.
[図 2]本発明の実施の形態 1における USB機器とコンピュータの動作シーケンス図 [図 3]本発明の実施の形態 1における USB機器とコンピュータの動作シーケンス図FIG. 2 is an operation sequence diagram of a USB device and a computer according to Embodiment 1 of the present invention. FIG. 3 is an operation sequence diagram of a USB device and a computer according to Embodiment 1 of the present invention.
[図 4]本発明の実施の形態 2における USB機器の構成を示すブロック図 FIG. 4 is a block diagram showing a configuration of a USB device according to a second embodiment of the present invention.
[図 5]本発明の実施の形態 2における USB機器とコンピュータの動作シーケンス図 FIG. 5 is an operation sequence diagram of a USB device and a computer according to Embodiment 2 of the present invention.
[図 6]本発明の実施の形態 3における USB機器の構成を示すブロック図 FIG. 6 is a block diagram showing a configuration of a USB device according to Embodiment 3 of the present invention.
[図 7]従来の技術における USB機器のデバイスドライバをコンピュータへインストール する形態の説明図  FIG. 7 is an explanatory diagram of a mode of installing a device driver of a USB device in a computer according to the related art
[図 8]USB機器のディスクリプタ情報の説明図  [Figure 8] Illustration of descriptor information of USB device
[図 9]INFファイルのデバイスドライバ情報の説明図  [Figure 9] Illustration of device driver information of INF file
符号の説明  Explanation of symbols
[0043] 1 コンピュータ [0043] 1 computer
2 USB機器  2 USB devices
3 デバイスドライバインストールディスク  3 Device driver installation disk
11 入出力部  11 Input / output section
12 USB制御部  12 USB controller
13 主機能部  13 Main function section
14 ドライバ格納メモリ  14 Driver storage memory
15 組込済み判定用レジスタ  15 Built-in judgment register
16 ディスクリプタ情報保持フラグ  16 Descriptor information holding flag
17 リセットスィッチ  17 Reset switch
A USB機器のディスクリプタ情報  A Descriptor information of USB device
Al USBマスストレージクラス用のディスクリプタ情報  Descriptor information for Al USB mass storage class
A2 主機能用のディスクリプタ情報  A2 Descriptor information for main function
B INFファイル  B INF file
発明を実施するための最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
[0044] 以下、本発明にかかわる USB機器の実施の形態を図面に基づいて詳細に説明す る。なお、電子機器の例としてコンピュータを用いて説明を行う。 Hereinafter, embodiments of a USB device according to the present invention will be described in detail with reference to the drawings. Note that a description will be given using a computer as an example of an electronic device.
[0045] (実施の形態 1) (Embodiment 1)
図 1は本発明の実施の形態 1における USB機器の構成を示すブロック図である。 [0046] USB機器 2は、コンピュータ 1との間でデータの送受信を行う入出力部 11、 USB機 器 2の制御を行う USB制御部 12、 USB機器 2の本来の機能を格納した主機能部 13 、デバイスドライバを格納するドライバ格納メモリ 14、組込済み判定用レジスタ 15を備 えている。組込済み判定用レジスタ 15は、コンピュータ 1に USB機器 2のデバイスドラ ィバが組み込まれているか否かを判定するためのものである。 USB制御部 12は、 2 種類のディスクリプタ情報 Al, A2を有している。ディスクリプタ情報 Al, A2は、コン ピュータ 1が製品情報 (機器の種類やメーカー情報)を取得するために使用するもの である。 FIG. 1 is a block diagram showing a configuration of a USB device according to Embodiment 1 of the present invention. The USB device 2 includes an input / output unit 11 for transmitting and receiving data to and from the computer 1, a USB control unit 12 for controlling the USB device 2, and a main function unit for storing the original functions of the USB device 2. 13, a driver storage memory 14 for storing a device driver, and a built-in determination register 15. The built-in determination register 15 is for determining whether or not the device driver of the USB device 2 is installed in the computer 1. The USB control unit 12 has two types of descriptor information Al and A2. The descriptor information Al, A2 is used by the computer 1 to obtain product information (device type and manufacturer information).
[0047] 主機能用のディスクリプタ情報 A2はデバイスドライバインストール専用のもので、 U SB機器 2が本来有している主機能 (クラス)に関する内容が記述されている。また、マ スストレージクラス用のディスクリプタ情報 A1には、デバイスドライバのインストールを 目的とした USBマスストレージクラスに関する内容が記述されている。 USBマスストレ ージクラスとは、 USBで CD— ROMや DVD— ROM等の記憶装置を動作させるた めの規格である。 USB制御部 12は、さらに、 USBマスストレージクラスを動作させる ための制御ソフトウェアを有して 、る。  [0047] Descriptor information A2 for the main function is dedicated to device driver installation, and describes the contents of the main function (class) that the USB device 2 originally has. In addition, the descriptor information A1 for the mass storage class describes the contents regarding the USB mass storage class for the purpose of installing the device driver. The USB mass storage class is a standard for operating storage devices such as CD-ROM and DVD-ROM by USB. The USB control unit 12 further has control software for operating the USB mass storage class.
[0048] USB機器 2は、コンピュータ 1に USB機器 2のデバイスドライバがインストールされ ている場合は、主機能で動作し、組み込まれていない場合には、 USBマスストレージ クラスの機器として動作する。後者の場合には、 USBマスストレージクラスの動作によ り、ドライバ格納メモリ 14のデバイスドライバを読み出してコンピュータ 1にインストール する。  [0048] The USB device 2 operates as a main function when the device driver of the USB device 2 is installed in the computer 1, and operates as a USB mass storage class device when the device driver is not installed. In the latter case, the device driver of the driver storage memory 14 is read out and installed in the computer 1 by the operation of the USB mass storage class.
[0049] 次に、以上のように構成された本実施の形態のシステムの動作を図 2の動作シーケ ンスに従って説明する。  Next, the operation of the system configured as above according to the present embodiment will be described with reference to the operation sequence of FIG.
[0050] あらカゝじめ、 USB機器 2は、コンピュータ 1に接続される前に、その組込済み判定用 レジスタ 15が未組込状態に設定されて!ヽる(HR = 0)。  Before the USB device 2 is connected to the computer 1, its built-in determination register 15 is set to a non-built-in state (HR = 0).
[0051] コンピュータ 1に対する USB機器 2の接続が確認されると、コンピュータ 1はェ-ュメ レーシヨン処理を開始し、 USB機器 2の使用にとって必要な情報を取得する。つまり 、コンピュータ 1は USB機器 2のディスクリプタ情報 Aを要求する。  When the connection of the USB device 2 to the computer 1 is confirmed, the computer 1 starts an erasure process and acquires information necessary for using the USB device 2. That is, the computer 1 requests the descriptor information A of the USB device 2.
[0052] ディスクリプタ情報 Aを要求された USB機器 2の USB制御部 12は、組込済み判定 用レジスタ 15を確認する。ここでは、状態が未組込状態 (HR=0)となっているため、 ディスクリプタ情報 Aとして、 USBマスストレージクラス用のディスクリプタ情報 A1を送 信する。 [0052] The USB control unit 12 of the USB device 2 requested for the descriptor information A Check register 15 for Here, since the state is the non-embedded state (HR = 0), the descriptor information A1 for the USB mass storage class is transmitted as the descriptor information A.
[0053] ここで USBマスストレージクラス用のディスクリプタ情報 A1は、ベンダ ID、プロダクト IDおよびリビジョン IDと、クラスコード、サブクラスコードおよびプロトコルを含んでいる 。ベンダ ID、プロダクト IDおよびリビジョン IDについては、主機能用のディスクリプタ 情報 A2と同じである。クラスコード、サブクラスコードおよびプロトコルについては、 U SBマスストレージクラス専用である。ただし、リビジョン IDについては、設定されてい る場合のみ該当する。  Here, the descriptor information A1 for the USB mass storage class includes a vendor ID, a product ID, and a revision ID, a class code, a subclass code, and a protocol. The vendor ID, product ID, and revision ID are the same as the descriptor information A2 for the main function. The class code, subclass code and protocol are exclusive to the USB mass storage class. However, this applies only when the revision ID is set.
[0054] 次!、で、コンピュータ 1は、ディスクリプタ情報 A1から得られるベンダ ID、プロダクト I Dおよびリビジョン IDを、コンピュータ 1に保存されている INFファイル Bのベンダ ID、 プロダクト IDおよびリビジョン IDと比較する。  Next, the computer 1 compares the vendor ID, product ID, and revision ID obtained from the descriptor information A1 with the vendor ID, product ID, and revision ID of the INF file B stored in the computer 1. .
[0055] (l) USBマスストレージクラス用のディスクリプタ情報 A1での比較結果 =一致の場 比較の結果、一致する場合には、コンピュータ 1は INFファイル Bで指定される US B機器 2用のデバイスドライバを組み込み、 USB機器 2を使用可能な状態にする。そ のコンピュータ 1に組み込まれたデバイスドライバは、初期化時にデバイスリクエストを 発行する。このデバイスリクエストは、ベンダユニークなものとしてあら力じめ設計され ている。  [0055] (l) Descriptor information for USB mass storage class A1 comparison result = field of match If the comparison results in a match, computer 1 is a device for USB device 2 specified in INF file B Install the driver and make the USB device 2 usable. The device driver incorporated in the computer 1 issues a device request at initialization. This device request is designed to be vendor specific.
[0056] ベンダユニークなデバイスリクエストを受信した USB機器 2の USB制御部 12は、組 込済み判定用レジスタ 15を組込済み状態に設定する (HR= 1)。  The USB control unit 12 of the USB device 2 that has received the device request unique to the vendor sets the built-in determination register 15 to the built-in state (HR = 1).
[0057] 次 、で、コンピュータ 1に組み込まれたデバイスドライバは、 USB機器 2に対してバ スリセットを発行する。  Next, the device driver incorporated in the computer 1 issues a bus reset to the USB device 2.
[0058] 次いで、コンピュータ 1は再度 USB機器 2のェ-ュメレーシヨン処理を開始する。  Next, the computer 1 starts the emanation processing of the USB device 2 again.
[0059] 次いで、 USB機器 2の USB制御部 12は、組込済み判定用レジスタ 15を確認し、 状態が組込済み状態 (HR= 1)になっているため、コンピュータ 1に対して主機能用 のディスクリプタ情報 A2を送信する。 Next, the USB control unit 12 of the USB device 2 checks the built-in determination register 15, and since the state is the built-in state (HR = 1), the main function of the computer 1 is Send the descriptor information A2 for use.
[0060] 以上により、コンピュータ 1は、 INFファイル Bの指定で組み込まれた USB機器 2用 のデバイスドライバを用いて、 USB機器 2を使用することができるようになる。 USB機 器 2の USB制御部 12は、主機能部 13を起動して、 USB機器 2の主機能を動作可能 とする。 [0060] As described above, the computer 1 is used for the USB device 2 incorporated by specifying the INF file B. The USB device 2 can be used by using the device driver. The USB control unit 12 of the USB device 2 activates the main function unit 13 to enable the main function of the USB device 2 to operate.
[0061] (2) USBマスストレージクラス用のディスクリプタ情報 A1での比較結果 =不一致の ¾口  [0061] (2) Comparison result of descriptor information A1 for USB mass storage class = mismatch
一方、前述の、ディスクリプタ情報 A1のベンダ ID、プロダクト ID等と INFファイル B のベンダ ID、プロダクト ID等との比較の結果、不一致となる場合の動作は次のとおり である。これを図 3の動作シーケンスで説明する。  On the other hand, when the above-described comparison between the vendor ID and product ID of the descriptor information A1 and the vendor ID and product ID of the INF file B results in a mismatch, the operation is as follows. This will be described with reference to the operation sequence of FIG.
[0062] コンピュータ 1は、別のデバイスドライバ検索の手段として、 USBマスストレージクラ ス用のディスクリプタ情報 A1から得られるクラスコード、サブクラスコードおよびプロト コルを INFファイル Bのクラスコード、サブクラスコードおよびプロトコルと比較する。  [0062] As another means for searching for a device driver, the computer 1 stores the class code, subclass code, and protocol obtained from the descriptor information A1 for the USB mass storage class with the class code, subclass code, and protocol of the INF file B. Compare.
[0063] ディスクリプタ情報 A1には、 USB機器 2が USBマスストレージクラスの機器であると 記述されている。一方、 WindowsME/2000以降の WindowsOSには、 USBマス ストレージクラス用のデバイスドライバが標準搭載されている。  [0063] The descriptor information A1 describes that the USB device 2 is a device of the USB mass storage class. On the other hand, device drivers for USB mass storage class are included as standard equipment in Windows OS after WindowsME / 2000.
[0064] したがって、コンピュータ 1が上記に該当する Windowsであれば、上記の比較の結 果は一致と判定される。この場合、コンピュータ 1は、 INFファイル Bで指定される US Bマスストレージクラス用のデバイスドライバを組み込む。コンピュータ 1における USB マスストレージクラス用のデバイスドライバは、前述のベンダユニークなデバイスリクェ ストは発行しない。  Therefore, if the computer 1 is a Windows corresponding to the above, the result of the above comparison is determined to be a match. In this case, the computer 1 incorporates a device driver for the USB mass storage class specified by the INF file B. The device driver for USB mass storage class in computer 1 does not issue the above-mentioned vendor-unique device request.
[0065] USB機器 2の USB制御部 12は、ベンダユニークなデバイスリクエストの発行がない ことを確認すると、コンピュータ 1に USBマスストレージクラス用のデバイスドライバが 組み込まれていると判断する。 USB制御部 12は、ドライバ格納メモリ 14を対象として USBマスストレージクラスを動作させるための制御ソフトウェアを起動するとともに、そ の制御ソフトウェアによってドライバ格納メモリ 14にアクセスする。この場合、 USB機 器 2は、 USBマスストレージクラスの機器として振舞うことになる。  When the USB control unit 12 of the USB device 2 confirms that there is no issuance of a device request unique to the vendor, the USB control unit 12 determines that the device driver for the USB mass storage class is installed in the computer 1. The USB control unit 12 activates control software for operating the USB mass storage class on the driver storage memory 14, and accesses the driver storage memory 14 by using the control software. In this case, the USB device 2 behaves as a USB mass storage class device.
[0066] すなわち、 USB機器 2は、コンピュータ 1にとつては、フロッピーディスクドライブや C D— ROMドライブなどの記憶装置と同等に扱うことができる。コンピュータ 1は、 USB 機器 2におけるドライバ格納メモリ 14を CD— ROMメディアのような記憶メディアとし て認識できる。その結果、コンピュータ 1からドライバ格納メモリ 14を自由にリードァク セスできる。主機能部 13は無関係となる。 In other words, the USB device 2 can be treated by the computer 1 as equivalent to a storage device such as a floppy disk drive or a CD-ROM drive. The computer 1 uses the driver storage memory 14 of the USB device 2 as a storage medium such as a CD-ROM medium. Can be recognized. As a result, the computer 1 can freely access the driver storage memory 14. The main function unit 13 becomes irrelevant.
[0067] USB機器 2のドライバ格納メモリ 14には、 USB機器 2の主機能用のデバイスドライ バが保存されている。コンピュータ 1は、このデバイスドライバにアクセスすることにより 、 USB機器 2の主機能用のデバイスドライバをインストールすることができる。すなわ ち、フロッピーディスクや CD— ROM等のメディアを使用することなしに、 USB機器 2 の主機能用のデバイスドライバをコンピュータ 1にインストールすることが可能となる。  The device storage memory 14 of the USB device 2 stores a device driver for the main function of the USB device 2. The computer 1 can install a device driver for the main function of the USB device 2 by accessing the device driver. That is, the device driver for the main function of the USB device 2 can be installed in the computer 1 without using a medium such as a floppy disk or a CD-ROM.
[0068] USBマスストレージクラスでの動作と主機能での動作との切り替えにバスリセットを 使用する。このことにより、ユーザーに動作状態の切り替わりを意識させないですむ。 また、コンピュータ 1 (WindowsOS)への悪影響も防止できる。  [0068] A bus reset is used to switch between operation in the USB mass storage class and operation in the main function. As a result, the user does not need to be aware of the switching of the operation state. In addition, adverse effects on the computer 1 (Windows OS) can be prevented.
[0069] 上記構成において、さらに次の態様の USB機器も有効である。それは、ドライバ格 納メモリ 14に、ドライバインストール用のプログラムを格納した構成である。  In the above configuration, the following USB device is also effective. The configuration is such that a driver installation program is stored in the driver storage memory 14.
[0070] USB制御部 12は、インストール用プログラムを起動して、ドライバ格納メモリ 14から 主機會用のデバイスドライバを読み出し、コンピュータ 1にインスト一ノレする。インスト ールが終了すると、組込済み判定用レジスタ 15に組込済み状態をセットする(HR= D o次いで、バスリセットを発行し、コンピュータ 1に再びェ-ュメレーシヨン処理を行 わせる。この場合、ベンダ ID、プロダクト ID等の比較が一致し、 USB機器 2の主機能 が使用可能となる。  [0070] The USB control unit 12 starts the installation program, reads out the device driver for the main meeting from the driver storage memory 14, and installs it in the computer 1. When the installation is completed, the built-in state is set in the built-in determination register 15 (HR = Do, then a bus reset is issued, and the computer 1 performs the enumeration process again. In this case, , Vendor ID, product ID, etc., match, and the main function of USB device 2 becomes available.
[0071] 上記の処理を自動化すると、 USB機器 2の主機能用のデバイスドライバがコンビュ ータ 1にあた力も自動的に組み込まれたように、ユーザーには見える。ユーザーには 、負担を与えないで済む。  When the above processing is automated, it appears to the user that the device driver for the main function of the USB device 2 automatically incorporates the power to the computer 1 as well. No burden is imposed on the user.
[0072] (実施の形態 2)  (Embodiment 2)
本発明の実施の形態 2は、主機能が USBマスストレージクラスで動作する USB機 器を対象とするものである。そのような USB機器の代表例に DVDドライブがある。  Embodiment 2 of the present invention is directed to a USB device whose main function operates in the USB mass storage class. A typical example of such a USB device is a DVD drive.
[0073] 図 4に示すように、 USB機器 2は、実施の形態 1の場合と同様の入出力部 11、 US B制御部 12、主機能部 13、ドライバ格納メモリ 14を備えている。実施の形態 1の場合 の組込済み判定用レジスタ 15はない。 USB機器 2の制御を行う USB制御部 12が有 するディスクリプタ情報は 1種類であり、 USBマスストレージクラス用のディスクリプタ 情報 Alのみである。 USB機器 2の主機能用のデバイスドライバのインストール専用 のディスクリプタ情報はな 、。 As shown in FIG. 4, the USB device 2 includes an input / output unit 11, a USB control unit 12, a main function unit 13, and a driver storage memory 14 similar to those in the first embodiment. There is no built-in determination register 15 in the first embodiment. The USB control unit 12 that controls the USB device 2 has one type of descriptor information, and is a descriptor for the USB mass storage class. Information Al only. Descriptor information dedicated to the installation of the device driver for the main function of USB device 2.
[0074] 次に、上記構成の本実施の形態のシステムの動作を図 5の動作シーケンスに従つ て説明する。 Next, the operation of the system of the present embodiment having the above configuration will be described according to the operation sequence of FIG.
[0075] 主機能用のデバイスドライバがコンピュータ 1に組み込まれて 、な 、場合、ベンダ I D、プロダクト ID等の比較の結果が不一致となる。さらに、クラスコード、サブクラスコ ード等の比較は一致となる。その結果、前述同様に、コンピュータ 1には INFファイル Bで指定される標準搭載の USBマスストレージクラス用のデバイスドライバが組み込 まれる。この場合、 USB機器 2は、その主機能が USBマスストレージクラスで動作す る。  In the case where the device driver for the main function is installed in the computer 1, the results of the comparison of the vendor ID, the product ID, and the like do not match. Furthermore, the comparison of the class code, subclass code, etc. is consistent. As a result, as described above, the computer 1 incorporates the device driver for the standard USB mass storage class specified by the INF file B. In this case, the main function of the USB device 2 operates in the USB mass storage class.
[0076] デバイスドライバの組み込み後に USB機器 2の動作モードを主機能のものに切り替 えるには、ベンダユニークなデバイスリクエストを送信する。実施の形態 1の場合のよ うな再ェ-ュメレーシヨンのためにバスリセットは必要でな 、。  To switch the operation mode of the USB device 2 to the main function after the device driver is installed, a device request unique to the vendor is transmitted. A bus reset is not necessary for re-emulation as in the first embodiment.
[0077] 本実施の形態は、コンピュータ 1に標準搭載の USBマスストレージクラスの機器に ぉ ヽて、機能強化用のデバイスドライバを追加インストールする場合に有用である。  The present embodiment is useful when additionally installing a device driver for enhancing functions on a USB mass storage class device that is provided as standard equipment in the computer 1.
[0078] (実施の形態 3)  (Embodiment 3)
実施の形態 1、 2においては、 USB機器を同じコンピュータに何度も接続する場合 の 2度目の使用以降で、 USB機器をコンピュータに接続してからコンピュータ上で U SB機器が使用可能になるまでに、通常の USB機器よりも時間がかかる。また、 USB 機器を、 USBマスストレージクラスのデバイスドライバを標準搭載して ヽな 、コンビュ ータや、ドライバ格納メモリに対応するデバイスドライバの格納されて 、な 、コンビュ ータ、 WindowsPCとデバイスドライバのインストールの仕組みが違うコンピュータに 接続した場合は、 USB機器を使用することができなくなってしまう。  In the first and second embodiments, after the second use when the USB device is connected to the same computer many times, from when the USB device is connected to the computer until the USB device becomes usable on the computer It takes longer than usual USB devices. In addition, a USB device is equipped with a USB mass storage class device driver as standard equipment, and a computer and a device driver corresponding to the driver storage memory are stored. If you connect to a computer with a different installation mechanism, you will not be able to use USB devices.
[0079] これに対応するのが、本発明の実施の形態 3の構成である。  A configuration corresponding to this is the configuration of the third embodiment of the present invention.
[0080] 図 6に示すように、 USB機器 2は、実施の形態 1の場合と同様の入出力部 11、 US B制御部 12、主機能部 13、ドライバ格納メモリ 14、組込済み判定用レジスタ 15のほ 力 ディスクリプタ情報 Al, A2のいずれがアクティブかを保持するディスクリプタ情報 保持フラグ (以下、フラグと称する) 16およびフラグ 16に対するリセットスィッチ 17を備 えている。 As shown in FIG. 6, the USB device 2 includes an input / output unit 11, a USB control unit 12, a main function unit 13, a driver storage memory 14, and a built-in determination unit similar to those in the first embodiment. Register 15 has descriptor information holding flag (hereinafter referred to as flag) 16 that holds which descriptor information Al or A2 is active, and reset switch 17 for flag 16 I have.
[0081] フラグ 16は、初期状態で、マスストレージクラス用のディスクリプタ情報 A1を使用す るように例えば" 0"が設定される。フラグ 16に" 0"が設定されているときは、 USB機器 2がコンピュータ 1に接続されたときに、 USB制御部 12は組込済み判定用レジスタ 1 5を参照する。組込済み判定用レジスタ 15が" 0"であるので、実施の形態 1の場合と 同様の処理を経て、コンピュータ 1に USB機器 2の主機能用のデバイスドライバが組 み込まれることになる。  The flag 16 is set to, for example, “0” in the initial state so as to use the descriptor information A1 for the mass storage class. When “0” is set in the flag 16, when the USB device 2 is connected to the computer 1, the USB control unit 12 refers to the built-in determination register 15. Since the built-in determination register 15 is “0”, the device driver for the main function of the USB device 2 is built into the computer 1 through the same processing as in the first embodiment.
[0082] そして、上記の過程でマスストレージクラス用のディスクリプタ情報 A1がコンビユー タ 1に送信される。このように一度マスストレージクラス用のディスクリプタ情報 A1を送 信した後は、フラグ 16は" 1"に設定され、主機能用のディスクリプタ情報 A2を使用す るようにする。フラグ 16は、 USB機器 2内の不揮発性メモリに設定することができる。リ セットスィッチ 17は、フラグ 16を初期状態に戻すためのものである。  Then, the descriptor information A1 for the mass storage class is transmitted to the computer 1 in the above process. After once transmitting the descriptor information A1 for the mass storage class, the flag 16 is set to "1" and the descriptor information A2 for the main function is used. The flag 16 can be set in a nonvolatile memory in the USB device 2. The reset switch 17 is for returning the flag 16 to the initial state.
[0083] 次に、以上のように構成された本実施の形態のシステムの動作を説明する。  Next, the operation of the system of the present embodiment configured as described above will be described.
[0084] 実施の形態 1と同様にして、 USB機器 2のデバイスドライバがコンピュータ 1にすで に組み込まれているものとする。その場合には、フラグ 16はすでに" に設定されて いる。したがって、その後、コンピュータ 1に USB機器 2を接続すると、 USB制御部 1 2はフラグ 16を見る。 "1"が設定されていることから、組込済み判定用レジスタ 15を参 照することはせず、コンピュータ 1にはすでに USB機器 2のデバイスドライバが組み込 み済みと認識でき、主機能用のディスクリプタ情報 A2のみを使用することになる。  As in the first embodiment, it is assumed that the device driver of the USB device 2 has already been incorporated in the computer 1. In this case, the flag 16 is already set to "." Therefore, after that, when the USB device 2 is connected to the computer 1, the USB control unit 12 sees the flag 16. "1" is set Therefore, the device driver of USB device 2 can be recognized as already installed in computer 1 without using the built-in determination register 15, and only the descriptor information A2 for the main function should be used. become.
[0085] コンピュータ 1からェ-ュメレーシヨン処理が発行されると、 USB制御部 12は、マス ストレージクラス用のディスクリプタ情報 A1を使用しての処理は行わな ヽ。主機能用 のディスクリプタ情報 A2のみを使用する通常の USB機器 2と同等の動作をする。  When the computer 1 issues the firmware processing, the USB control unit 12 does not perform the processing using the descriptor information A1 for the mass storage class. It performs the same operation as a normal USB device 2 that uses only the descriptor information A2 for the main function.
[0086] すなわち、実施の形態 1の場合の接続初期のマスストレージクラス用のディスクリブ タ情報 A1を用いた手順が省略される。したがって、 USB機器 2を接続してから使用 可能になるまでの時間を短縮することができる。  That is, the procedure using the disk storage unit information A1 for the mass storage class at the beginning of the connection in the case of the first embodiment is omitted. Therefore, the time from when the USB device 2 is connected to when it can be used can be reduced.
[0087] 上記のようにしてコンピュータ 1に USB機器 2を接続した結果、フラグ 16力 ' 1"に設 定されているとする。この場合に、接続を外し、別のコンピュータ 1に接続し直したとす る。ここで、新しい接続対象のコンピュータ 1にはデバイスドライバが組み込まれてい ないとする。このような場合には、フラグ 16力 1"のままであると、 USB機器 2が使え ない。そこで、リセットスィッチ 17を操作して、フラグ 16をリセットし、 "0"に戻す。こうす ると、実施の形態 1の場合と同様の処理が行われ、 USB機器 2の主機能用のデバィ スドライバをコンピュータ 1にインストールすることができる。 As a result of connecting USB device 2 to computer 1 as described above, it is assumed that flag 16 is set to “1.” In this case, disconnect the connection and reconnect to another computer 1. Here, the new connection target computer 1 has the device driver installed. No. In such a case, the USB device 2 cannot be used unless the flag 16 is set to 1 ". Therefore, the reset switch 17 is operated to reset the flag 16 to" 0 ". Then, the same processing as in the first embodiment is performed, and the device driver for the main function of the USB device 2 can be installed in the computer 1.
[0088] さらには、 WindowsPCとデバイスドライバのインストールの仕組みが違うコンビユー タに本 USB機器を接続することも考えられる。  [0088] Further, it is conceivable to connect the USB device to a Windows PC and a computer having a different device driver installation mechanism.
[0089] この場合にも、上記した方式の手順にてドライバをインストールし、本 USB機器を使 用することができる。コンピュータにドライバ力 Sインストールされていないときの機器接 続では、マスストレージクラスとして認識され、ドライバをインストール後、 USB機器 2 の主機能 13を使用できるようになる。また、このとき不揮発性メモリ上にあるフラグ 16 も" 1"にセットされる。それ以降は、フラグ 16により、いつでも USB機器 2の主機能 13 を使用できるようになる。  [0089] Also in this case, the driver can be installed according to the procedure of the above-described method, and the USB device can be used. When the device connection is not installed on the computer, the device connection is recognized as mass storage class. After the driver is installed, the main function 13 of the USB device 2 can be used. At this time, the flag 16 in the nonvolatile memory is also set to "1". Thereafter, the flag 16 allows the main function 13 of the USB device 2 to be used at any time.
[0090] ただし、このままの状態では今まで USB機器 2を接続したことがないコンピュータを 接続した場合でも、 USB機器 2の主機能 13の方が動作してしまうので、事前にリセッ トスイッチ 17にてフラグ 16をクリアし、マスストレージクラスとして認識されるようにして おく。これにより、ドライバのインストールも可能となる。  However, in this state, even if a computer to which the USB device 2 has not been connected before is connected, the main function 13 of the USB device 2 will operate. Clear flag 16 so that it is recognized as a mass storage class. As a result, the driver can be installed.
産業上の利用可能性  Industrial applicability
[0091] 本発明は、 USB機器のデバイスドライバをコンピュータにインストールする作業を効 率化する技術として有用である。なお、 USBホストとしてはコンピュータだけが該当す るのではなぐ USBホストの機能を有するデジタル家電にも広く該当する。 [0091] The present invention is useful as a technology for efficiently installing a device driver of a USB device in a computer. In addition, a computer is the only USB host that can be used. Digital home appliances that have the function of a USB host are also widely applicable.

Claims

請求の範囲 The scope of the claims
[1] 電子機器との間でデータを送受信する入出力部と、  [1] an input / output unit for transmitting and receiving data to and from an electronic device;
USB機器の主機能を構成する主機能部と、  A main function unit that constitutes a main function of the USB device;
デバイスドライバを格納するドライバ格納メモリと、  A driver storage memory for storing a device driver,
製品情報が互いに同一で、クラス情報が USBマスストレージクラスを示すディスクリ プタ情報とクラス情報が主機能の属するクラスを示すディスクリプタ情報とを有する U SB制御部と  A USB control unit in which the product information is the same as each other, and the class information includes descriptor information indicating the USB mass storage class and the class information indicating the class to which the main function belongs.
を備える USB機器。  USB device equipped with.
[2] 前記 USB制御部は、前記電子機器との接続後、前記電子機器からの最初のディ スクリプタ情報要求時に前記 USBマスストレージクラス用のディスクリプタ情報を前記 電子機器に送信することを特徴とする請求項 1に記載の USB機器。  [2] The USB control unit transmits the USB mass storage class descriptor information to the electronic device at the time of the first request for the descriptor information from the electronic device after connection with the electronic device. The USB device according to claim 1.
[3] 前記デバイスドライバが前記電子機器に組み込まれて ヽるか否かを示す組込済み 判定用レジスタをさらに備えることを特徴とする請求項 2に記載の USB機器。  3. The USB device according to claim 2, further comprising a built-in determination register indicating whether the device driver is built into the electronic device.
[4] 前記組込済み判定用レジスタは前記電子機器との接続時に未組込状態に設定さ れており、前記 USB制御部は、前記電子機器が前記 USBマスストレージクラス用の ディスクリプタ情報に基づいて組込済み状態と判定したときに前記組込済み判定用 レジスタを組込済み状態に更新することを特徴とする請求項 3に記載の USB機器。  [4] The built-in determination register is set to a non-built-in state when the electronic device is connected to the electronic device, and the USB control unit controls the electronic device based on the USB mass storage class descriptor information. 4. The USB device according to claim 3, wherein the built-in determination register is updated to the built-in state when the status is determined to be a built-in state.
[5] 前記 USB制御部は、前記電子機器が前記 USBマスストレージクラス用のディスクリ
Figure imgf000017_0001
ヽて未組込状態と判定したときに、前記ドライバ格納メモリから前記 デバイスドライバを読み出して前記電子機器にインストールし、前記電子機器で前記 デバイスドライバの組み込み終了後に前記組込済み判定用レジスタを組込済み状態 に更新することを特徴とする請求項 4に記載の USB機器。
[5] The USB control unit is configured to allow the electronic device to execute the USB mass storage class disk drive.
Figure imgf000017_0001
When it is determined that the device driver has not been installed, the device driver is read out from the driver storage memory and installed in the electronic device. After the device driver has been installed in the electronic device, the installed status determination register is set. 5. The USB device according to claim 4, wherein the USB device is updated to a loaded state.
[6] 前記 USB制御部は、前記組込済み判定用レジスタの組込済み状態への更新を、 前記電子機器からのユニークなベンダリクエストの受信に基づいて行うことを特徴と する請求項 5に記載の USB機器。  6. The USB control unit according to claim 5, wherein the USB control unit updates the built-in determination register to the built-in state based on reception of a unique vendor request from the electronic device. USB device as described.
[7] 前記 USB制御部は、前記デバイスドライバのインストール後、前記電子機器からの バスリセットまたはマスストレージリセットの受信に基づいて USBマスストレージ機能と 前記主機能とを切り替えることを特徴とする請求項 5または請求項 6に記載の USB機 器。 [7] The USB control unit, after the device driver is installed, switches between a USB mass storage function and the main function based on a bus reset or a mass storage reset received from the electronic device. USB device according to (5) or (6) vessel.
[8] 前記 USB制御部は、前記デバイスドライバが前記電子機器に組み込まれているか 否かをユニークなベンダリクエストによって判断し、組み込まれているときは前記主機 能で制御し、組み込まれて 、な 、ときは USBマスストレージ機器として制御すること で前記ドライバ格納メモリから前記デバイスドライバを読み出して前記電子機器にィ ンストールし、その後、制御を前記主機能に切り替えることを特徴とする請求項 1に記 載の USB機器。  [8] The USB control unit determines whether or not the device driver is incorporated in the electronic device based on a unique vendor request, and when the device driver is incorporated, controls with the main function, and incorporates the device driver. 2. The method according to claim 1, wherein the device driver is read from the driver storage memory and installed in the electronic device by controlling the device as a USB mass storage device, and then control is switched to the main function. On-board USB device.
[9] 電子機器との間でデータを送受信する入出力部と、 [9] an input / output unit for transmitting / receiving data to / from an electronic device;
USB機器の主機能としてマスストレージクラスに属する機能を構成する主機能部と  The main function part that constitutes the function belonging to the mass storage class as the main function of the USB device
デバイスドライバを格納するドライバ格納メモリと、 A driver storage memory for storing a device driver,
クラス情報が USBマスストレージクラスを示すディスクリプタ情報を有し、前記電子 機器によって前記ディスクリプタ情報に基づいて前記デバイスドライバが組み込まれ て!、な 、と判定されたときは、前記ドライバ格納メモリから前記デバイスドライバを読 み出して前記電子機器にインストールする USB制御部と  If the class information has descriptor information indicating a USB mass storage class, and the electronic device determines that the device driver has been installed based on the descriptor information,! A USB control unit that reads the driver and installs it on the electronic device
を備える USB機器。  USB device equipped with.
[10] 前記 USB制御部は、前記電子機器からのベンダリクエストの受信に基づいて、前 記 USBマスストレージ機能力 前記主機能へ切り替えることを特徴とする請求項 9に 記載の USB機器。  10. The USB device according to claim 9, wherein the USB control unit switches to the main function based on the reception of a vendor request from the electronic device.
[11] 前記 USB制御部は、前記デバイスドライバが前記電子機器に組み込まれているか 否かをユニークなベンダリクエストによって判断し、組み込まれているときは前記主機 能で制御し、組み込まれて 、な 、ときは USBマスストレージ機器として制御すること で前記ドライバ格納メモリから前記デバイスドライバを読み出して前記電子機器にィ ンストールし、その後、制御を前記主機能に切り替えることを特徴とする請求項 9に記 載の USB機器。  [11] The USB control unit determines whether or not the device driver is incorporated in the electronic device based on a unique vendor request, and when the device driver is incorporated, controls the main function and incorporates the device driver. The device according to claim 9, wherein the device driver is read from the driver storage memory and installed in the electronic device by controlling the device as a USB mass storage device, and then control is switched to the main function. On-board USB device.
[12] 電子機器との間でデータを送受信する入出力部と、 [12] an input / output unit for transmitting / receiving data to / from an electronic device,
USB機器の主機能を構成する主機能部と、  A main function unit that constitutes a main function of the USB device;
デバイスドライバを格納するドライバ格納メモリと、 製品情報が互いに同一で、クラス情報が USBマスストレージクラスを示すディスクリ プタ情報とクラス情報が主機能の属するクラスを示すディスクリプタ情報とを有する U SB制御部と、 A driver storage memory for storing a device driver, A USB control unit in which the product information is identical to each other, and the class information includes descriptor information indicating the USB mass storage class and the class information indicating the class to which the main function belongs
前記 2種類のディスクリプタ情報のいずれがアクティブかを保持するディスクリプタ情 報保持フラグと、  A descriptor information holding flag for holding which of the two types of descriptor information is active,
を備える USB機器。 USB device equipped with.
前記ディスクリプタ情報保持フラグをリセットするリセットスィッチをさらに備える請求 項 12に記載の USB機器。  13. The USB device according to claim 12, further comprising a reset switch for resetting the descriptor information holding flag.
PCT/JP2005/009360 2004-05-26 2005-05-23 Usb device WO2005116845A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004155638 2004-05-26
JP2004-155638 2004-05-26

Publications (1)

Publication Number Publication Date
WO2005116845A1 true WO2005116845A1 (en) 2005-12-08

Family

ID=35451053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2005/009360 WO2005116845A1 (en) 2004-05-26 2005-05-23 Usb device

Country Status (1)

Country Link
WO (1) WO2005116845A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010526388A (en) * 2007-05-07 2010-07-29 ソニー エリクソン モバイル コミュニケーションズ, エービー Method, apparatus and storage medium for automatically providing an alternative USB configuration for a USB enabled peripheral device for exposure to a host computer
JP2012069166A (en) * 2004-07-27 2012-04-05 Fujitsu Component Ltd Control method for information processing system
US8171502B2 (en) 2006-11-29 2012-05-01 Sony Ericsson Mobile Communications Ab Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
CN102567268A (en) * 2010-12-31 2012-07-11 重庆重邮信科通信技术有限公司 Detection method for USB to virtual serial port/MODEM
CN112306914A (en) * 2019-07-30 2021-02-02 株式会社和冠 Information input device, method and storage medium
JP2022158860A (en) * 2021-03-31 2022-10-17 瑞▲いー▼半導體股▲ふん▼有限公司 Audio control circuit, host apparatus, and related control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001202325A (en) * 2000-01-24 2001-07-27 Fuji Photo Film Co Ltd Jsb connecting equipment
JP2001282508A (en) * 2000-03-28 2001-10-12 Asahi Optical Co Ltd Image data input device
JP2003150285A (en) * 2001-11-13 2003-05-23 Nec Access Technica Ltd Usb peripheral equipment setup device
JP2004029885A (en) * 2002-06-21 2004-01-29 Sharp Corp Connecting device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001202325A (en) * 2000-01-24 2001-07-27 Fuji Photo Film Co Ltd Jsb connecting equipment
JP2001282508A (en) * 2000-03-28 2001-10-12 Asahi Optical Co Ltd Image data input device
JP2003150285A (en) * 2001-11-13 2003-05-23 Nec Access Technica Ltd Usb peripheral equipment setup device
JP2004029885A (en) * 2002-06-21 2004-01-29 Sharp Corp Connecting device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012069166A (en) * 2004-07-27 2012-04-05 Fujitsu Component Ltd Control method for information processing system
US8171502B2 (en) 2006-11-29 2012-05-01 Sony Ericsson Mobile Communications Ab Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
JP2010526388A (en) * 2007-05-07 2010-07-29 ソニー エリクソン モバイル コミュニケーションズ, エービー Method, apparatus and storage medium for automatically providing an alternative USB configuration for a USB enabled peripheral device for exposure to a host computer
CN102567268A (en) * 2010-12-31 2012-07-11 重庆重邮信科通信技术有限公司 Detection method for USB to virtual serial port/MODEM
CN112306914A (en) * 2019-07-30 2021-02-02 株式会社和冠 Information input device, method and storage medium
JP2021022309A (en) * 2019-07-30 2021-02-18 株式会社ワコム Information input device, method, and program
US11704273B2 (en) 2019-07-30 2023-07-18 Wacom Co., Ltd. Information input device, method, and computer-readable medium for operating a controller in different modes corresponding to different device drivers
JP7386012B2 (en) 2019-07-30 2023-11-24 株式会社ワコム Information input device, method, and program
JP2022158860A (en) * 2021-03-31 2022-10-17 瑞▲いー▼半導體股▲ふん▼有限公司 Audio control circuit, host apparatus, and related control method
JP7300493B2 (en) 2021-03-31 2023-06-29 瑞▲いー▼半導體股▲ふん▼有限公司 Voice control circuit, host device and related control method
US11861260B2 (en) 2021-03-31 2024-01-02 Realtek Semiconductor Corp. Audio control circuit, host device and associated control method

Similar Documents

Publication Publication Date Title
US10282313B2 (en) Universal serial bus smart hub
US10445258B1 (en) Method for creation of device drivers and device objects for peripheral devices
US7739487B2 (en) Method for booting a host device from an MMC/SD device, a host device bootable from an MMC/SD device and an MMC/SD device method a host device may booted from
JP4346853B2 (en) Electronic device and control method thereof
TWI305319B (en) Computer having proctected data stores and switchable components providing isolated computing for vital and haker immunity
CN107885679B (en) Integrated circuit storage device or method capable of realizing automatic operation
JP4545378B2 (en) Pre-boot authentication system
JP4579547B2 (en) Embedded processor with direct connection of security device for superior security
KR100781926B1 (en) Computer system and control method of the same
US20080126628A1 (en) Methods, devices and computer program products for automatically providing an alternate usb configuration of a usb compliant peripheral device for exposure to a host computer
US20090193152A1 (en) External device with a driver auto-run installation and method thereof
WO2005116845A1 (en) Usb device
US9569375B2 (en) Unifying class device interface with one host interface by using embedded controller
WO2012100498A1 (en) Method and system for switching port of usb device
WO2008054619A2 (en) System and method for sharing atrusted platform module
KR20180086129A (en) Information processing apparatus, control method of the same, and storage medium
EP1394682B1 (en) Data transfer control device, program and method of fabricating an electronic instrument
JP2006178704A (en) Device having a plurality of functions and host device allowed to be connected to the device
US10061733B2 (en) Peripheral interface chip and data transmission method thereof
JP2008033388A (en) Method for executing security operation of magnetic disk device, method for cancelling password on magnetic disk device, and computer
US8074102B2 (en) Method for reactivating at least one media transfer protocol-compatible device when an unrecoverable error occurs, and associated host
JP2009003733A (en) Function expansion method and function expansion device

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): BW GH 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
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP