JP2018032056A - USB communication method - Google Patents

USB communication method Download PDF

Info

Publication number
JP2018032056A
JP2018032056A JP2016161618A JP2016161618A JP2018032056A JP 2018032056 A JP2018032056 A JP 2018032056A JP 2016161618 A JP2016161618 A JP 2016161618A JP 2016161618 A JP2016161618 A JP 2016161618A JP 2018032056 A JP2018032056 A JP 2018032056A
Authority
JP
Japan
Prior art keywords
usb
host
storage unit
communication
cable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016161618A
Other languages
Japanese (ja)
Inventor
邦浩 菖蒲
Kunihiro Shobu
邦浩 菖蒲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2016161618A priority Critical patent/JP2018032056A/en
Publication of JP2018032056A publication Critical patent/JP2018032056A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)
  • Stored Programmes (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a USB communication method capable of starting communication without causing delay in USB communication.SOLUTION: In a USB communication method between a USB host device 1 and a USB device 2 connected by a USB cable 3, connection between the USB host device 1 and the USB device 2 is established with the USB cable 3, configuration information necessary for USB communication between the USB host device 1 and the USB device 2 and address information of the USB device 2 are stored respectively in the USB host device 1 and the USB device 2, and when the USB host device 1 and the USB device 2 are restarted, the USB host device 1 and the USB device 2 conducts USB communication by using the stored configuration information and the address information of the USB device 2.SELECTED DRAWING: Figure 1

Description

この発明は、USB(Universal Serial Busの略称であり、以下、USBと示す)ホスト装置と、USBデバイス装置間で行う通信を高速化できるUSB通信方式に関するものである。   The present invention relates to a USB communication system capable of speeding up communication between a USB (abbreviation of Universal Serial Bus, hereinafter referred to as USB) host apparatus and a USB device apparatus.

従来のUSBホスト装置とUSBデバイス装置との間では、通信を行う前にエニュメレーションと呼ばれるデバイスを認識して、デバイスのアドレス情報および構成を設定する処理を実施した後に、通信が開始される。本方法では、例えば、USBケーブルに接続されたデバイスを抜いて違う種類のデバイスを接続した場合、新しくデバイスを追加した場合、接続されるデバイスを減らした場合などの、USBケーブルに接続されるデバイスの構成が変化した場合、自動的にデバイスの認識および構成の変更に伴い、USBコントローラの初期化を自動的に行う。   Communication between a conventional USB host device and a USB device device starts after recognizing a device called enumeration before performing communication and performing processing for setting device address information and configuration. . In this method, for example, when a device connected to the USB cable is disconnected and a different type of device is connected, when a new device is added, or when the number of connected devices is reduced, the device connected to the USB cable When the device configuration changes, the USB controller is automatically initialized in accordance with device recognition and configuration change.

従来のUSB通信方式は、デバイスの認識に伴い、デバイスの構成に応じたUSBコントローラの設定を行う、エニュメレーションと呼ばれるデバイスの自動認識、構成設定の仕組みがある。例えば、USBデバイス装置の電源をOFFした後にONする場合や、USBホスト装置の電源をOFFした後にONする場合など、デバイスの構成が変化しない場合でも、エニュメレーションを再度行わなければならず、高速に通信を再開することができないという問題点があった。   The conventional USB communication system has a mechanism for automatic device recognition and configuration setting called enumeration, in which the USB controller is set according to the device configuration in accordance with device recognition. For example, even when the device configuration does not change, such as when turning on after turning off the power of the USB device device or turning on after turning off the power of the USB host device, enumeration must be performed again. There was a problem that communication could not be resumed at high speed.

そのため、例えば特許文献1では、エニュメレーション処理中にUSBデバイス装置に要求を発行して取得するデバイスディスクリプタを記憶部に記憶する。そして、ディスクリプタ取得要求を発行させないことでUSB通信におけるエニュメレーションを高速化し、USB通信の初期化を高速化する。   Therefore, for example, in Patent Document 1, a device descriptor that is acquired by issuing a request to the USB device device during the enumeration process is stored in the storage unit. Then, by not issuing a descriptor acquisition request, enumeration in USB communication is speeded up, and initialization of USB communication is speeded up.

特開2013−196575号公報JP 2013-196575 A

従来のUSB通信方式では、USBホスト装置とUSBデバイス装置とのUSB通信に必要となる全ての情報が記憶されておらず、本来のUSB通信が開始されるまでの間に遅延が発生するという問題点があった。   In the conventional USB communication method, all information necessary for USB communication between the USB host device and the USB device device is not stored, and a delay occurs until the original USB communication is started. There was a point.

この発明は上記のような課題を解決するためになされたものであり、USB通信において、遅延が発生することなく通信を開始することができるUSB通信方式を提供することを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a USB communication method capable of starting communication without causing a delay in USB communication.

この発明のUSB通信方式は、
USBケーブルで接続されるUSBホスト装置およびUSBデバイス装置間のUSB通信方式において、
前記USBホスト装置と前記USBデバイス装置との間が前記USBケーブルでの接続が確立し、前記USBホスト装置と前記USBデバイス装置との間のUSB通信に必要となるコンフィギュレーション情報および前記USBデバイス装置のアドレス情報を前記USBホスト装置および前記USBデバイス装置にそれぞれ記憶させ、
前記USBホスト装置および前記USBデバイス装置が再度起動した時に、前記USBホスト装置および前記USBデバイス装置は記憶した前記コンフィギュレーション情報および前記USBデバイス装置の前記アドレス情報を利用して前記USB通信を行う。
この発明のUSB通信方式は、
USBケーブルで接続されるUSBホスト装置およびUSBデバイス装置間のUSB通信方式において、
前記USBホスト装置と前記USBデバイス装置との間が前記USBケーブルでの接続が確立し、前記USBホスト装置と前記USBデバイス装置との間のUSB通信に必要となるコンフィギュレーション情報および前記USBデバイス装置のアドレス情報を前記USBケーブルのホスト用記憶部およびデバイス用記憶部にそれぞれ記憶させ、
前記USBホスト装置および前記USBデバイス装置が再度起動した時に、前記USBケーブルの前記ホスト用記憶部に記憶した前記コンフィギュレーション情報および前記USBデバイス装置の前記アドレス情報を前記USBホスト装置が、また、前記USBケーブルの前記デバイス用記憶部に記憶した前記コンフィギュレーション情報および前記USBデバイス装置の前記アドレス情報を前記USBデバイス装置がそれぞれ利用して前記USB通信を行う。
The USB communication system of the present invention is
In the USB communication method between a USB host device and a USB device connected by a USB cable,
Configuration information necessary for USB communication between the USB host device and the USB device device, and connection between the USB host device and the USB device device established by the USB cable, and the USB device device Address information is stored in the USB host device and the USB device device,
When the USB host device and the USB device device are restarted, the USB host device and the USB device device perform the USB communication using the stored configuration information and the address information of the USB device device.
The USB communication system of the present invention is
In the USB communication method between a USB host device and a USB device connected by a USB cable,
Configuration information necessary for USB communication between the USB host device and the USB device device, and connection between the USB host device and the USB device device established by the USB cable, and the USB device device Address information is stored in the host storage unit and device storage unit of the USB cable,
When the USB host device and the USB device device are restarted, the USB host device also stores the configuration information stored in the host storage unit of the USB cable and the address information of the USB device device. The USB device apparatus performs the USB communication by using the configuration information stored in the device storage unit of the USB cable and the address information of the USB device apparatus, respectively.

この発明のUSB通信方式によれば、
一旦確立されたコンフィギュレーション情報およびUSBデバイス装置のアドレス情報を再度起動時に利用できるため、遅延の発生なくUSB通信ができる。
According to the USB communication system of the present invention,
Since once established configuration information and USB device device address information can be used again at the time of startup, USB communication can be performed without delay.

この発明の実施の形態1におけるUSB通信方式を説明するためのUSB装置の構成を示すブロック図である。It is a block diagram which shows the structure of the USB apparatus for demonstrating the USB communication system in Embodiment 1 of this invention. この発明の実施の形態2におけるUSB通信方式を説明するためのUSB装置の構成を示すブロック図である。It is a block diagram which shows the structure of the USB apparatus for demonstrating the USB communication system in Embodiment 2 of this invention. この発明の実施の形態3におけるUSB通信方式を説明するためのUSB装置の構成を示すブロック図である。It is a block diagram which shows the structure of the USB apparatus for demonstrating the USB communication system in Embodiment 3 of this invention.

実施の形態1.
以下、本発明の実施の形態について説明する。図1はこの発明の実施の形態1におけるUSB通信方式を説明するための装置の構成を示すブロック図である。図において、USBホスト装置1とUSBデバイス装置2とは、USBケーブル3を用いて接続されている。そして、USBホスト装置1とUSBデバイス装置2とは、USBケーブル3を介してUSB通信を行う。USBホスト装置1は、USB用のホストコントローラ11にてUSBケーブル3に接続される。
Embodiment 1 FIG.
Embodiments of the present invention will be described below. FIG. 1 is a block diagram showing a configuration of an apparatus for explaining a USB communication system in Embodiment 1 of the present invention. In the figure, a USB host device 1 and a USB device device 2 are connected using a USB cable 3. The USB host device 1 and the USB device device 2 perform USB communication via the USB cable 3. The USB host device 1 is connected to the USB cable 3 by a USB host controller 11.

ホストコントローラ11はホスト内部バス14にてホストマイクロコントローラ12とホスト記憶部13とに接続される。ホストマイクロコントローラ12はホストコントローラ11を制御する。ホスト記憶部13はホストコントローラ11のレジスタ設定情報を記憶する。ホスト記憶部13は不揮発性のメモリにて形成される。ホスト消去ボタン15はホストマイクロコントローラ12に接続される。ホスト消去ボタン15はホストマイクロコントローラ12を介してホスト記憶部13のレジスタ情報を消去する。   The host controller 11 is connected to the host microcontroller 12 and the host storage unit 13 via the host internal bus 14. The host microcontroller 12 controls the host controller 11. The host storage unit 13 stores register setting information of the host controller 11. The host storage unit 13 is formed by a nonvolatile memory. The host erase button 15 is connected to the host microcontroller 12. The host erase button 15 erases the register information in the host storage unit 13 via the host microcontroller 12.

USBデバイス装置2は、USB用のデバイスコントローラ21にてUSBケーブル3に接続される。デバイスコントローラ21はデバイス内部バス24にてデバイスマイクロコントローラ22とデバイス記憶部23とに接続される。デバイスマイクロコントローラ22はデバイスコントローラ21を制御する。デバイス記憶部23はデバイスコントローラ21のレジスタ設定情報を記憶する。デバイス記憶部23は不揮発性のメモリにて形成される。デバイス消去ボタン25はデバイスマイクロコントローラ22に接続される。
デバイス消去ボタン25はデバイスマイクロコントローラ22を介してデバイス記憶部23のレジスタ情報を消去する。
The USB device device 2 is connected to the USB cable 3 by a USB device controller 21. The device controller 21 is connected to the device microcontroller 22 and the device storage unit 23 via the device internal bus 24. The device microcontroller 22 controls the device controller 21. The device storage unit 23 stores register setting information of the device controller 21. The device storage unit 23 is formed by a nonvolatile memory. The device erase button 25 is connected to the device microcontroller 22.
The device erase button 25 erases the register information in the device storage unit 23 via the device microcontroller 22.

次に上記のように構成された実施の形態1のUSB装置のUSB通信方式について説明する。まず、USBホスト装置1およびUSBデバイス装置2はUSBケーブル3にてホストコントローラ11およびデバイスコントローラ21同士が接続される。そして、USBホスト装置1およびUSBデバイス装置2の電源が投入される。次に、USBホスト装置1のホストマイクロコントローラ12は、ホスト内部バス14を介してホスト記憶部13の内容を確認する。   Next, the USB communication system of the USB device of the first embodiment configured as described above will be described. First, the host controller 11 and the device controller 21 are connected to each other with the USB cable 3 in the USB host device 1 and the USB device device 2. Then, the USB host device 1 and the USB device device 2 are turned on. Next, the host microcontroller 12 of the USB host device 1 confirms the contents of the host storage unit 13 via the host internal bus 14.

そして、ホスト記憶部13にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在しないため、USBホスト装置1はエニュメレーションを実施し、USBデバイス装置2のアドレス情報の設定およびコンフィギュレーション情報の設定をホストコントローラ11に行う。   Since the host storage unit 13 does not have the configuration information necessary for USB communication and the address information of the USB device device 2, the USB host device 1 performs enumeration and sets the address information of the USB device device 2. The configuration information is set in the host controller 11.

また同様に、USBデバイス装置2のデバイスマイクロコントローラ22は、デバイス内部バス24を介してデバイス記憶部23の内容を確認する。そして、デバイス記憶部23にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在しないため、USBデバイス装置2のデバイスコントローラ21は、USBホスト装置1からのエニュメレーション通信に応じて、USBデバイス装置2のアドレス情報の割り付け、コンフィギュレーション情報の設定を実施する。   Similarly, the device microcontroller 22 of the USB device device 2 confirms the contents of the device storage unit 23 via the device internal bus 24. Since the device storage unit 23 does not have configuration information necessary for USB communication and address information of the USB device device 2, the device controller 21 of the USB device device 2 performs enumeration communication from the USB host device 1. Accordingly, the address information of the USB device device 2 is assigned and the configuration information is set.

次に、エニュメレーションが完了し、本来のUSB通信が可能となった状態で、USBホスト装置1のホストマイクロコントローラ12は、ホストコントローラ11のレジスタ設定、すなわち、USB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報の全てを読み返し、ホスト記憶部13に記憶する。   Next, in the state where enumeration is completed and the original USB communication is possible, the host microcontroller 12 of the USB host device 1 sets the register of the host controller 11, that is, the configuration required for USB communication. All of the information and the address information of the USB device device 2 are read back and stored in the host storage unit 13.

また同様に、USBデバイス装置2のデバイスマイクロコントローラ22はデバイスコントローラ21のレジスタ設定、すなわち、USB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報の全てを読み返し、デバイス記憶部23に記憶する。   Similarly, the device microcontroller 22 of the USB device apparatus 2 reads back all the register settings of the device controller 21, that is, the configuration information necessary for USB communication and the address information of the USB device apparatus 2, and stores them in the device storage unit 23. Remember.

その後、USBホスト装置1、および、USBデバイス装置2ともに電源をOFFする。次に、USBホスト装置1およびUSBデバイス装置2の電源をONして再度起動する。すると、USBホスト装置1のホストマイクロコントローラ12は、ホスト内部バス14を介しホスト記憶部13の内容を確認する。そして、USBケーブル3のホスト用記憶部33にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在するので、これらの全てのレジスタ情報を、ホスト内部バス14を介してホストコントローラ11へロードする。   Thereafter, both the USB host device 1 and the USB device device 2 are turned off. Next, the USB host device 1 and the USB device device 2 are turned on and restarted. Then, the host microcontroller 12 of the USB host device 1 confirms the contents of the host storage unit 13 via the host internal bus 14. Since the configuration information necessary for USB communication and the address information of the USB device device 2 exist in the host storage unit 33 of the USB cable 3, all these register information is transferred to the host via the host internal bus 14. Load to the controller 11.

また同様に、USBデバイス装置2のデバイスマイクロコントローラ22は、デバイス内部バス24を介してデバイス記憶部23の内容を確認する。そして、デバイス記憶部23にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在するので、これらの全てのレジスタ情報を、デバイス内部バス24を介してデバイスコントローラ21へロードする。このように設定を復元してUSB通信を再開する。   Similarly, the device microcontroller 22 of the USB device device 2 confirms the contents of the device storage unit 23 via the device internal bus 24. Since the configuration information necessary for USB communication and the address information of the USB device device 2 exist in the device storage unit 23, all these register information is loaded into the device controller 21 via the device internal bus 24. . In this way, the settings are restored and the USB communication is resumed.

このように一旦記憶されたUSBホスト装置1およびUSBデバイス装置2のレジスタ情報、すなわち、USB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報は、不揮発性のホスト記憶部13、およびデバイス記憶部23にそれぞれ記憶されている。よって、USBホスト装置1およびUSBデバイス装置2に対して何回電源のOFF、ONを実施して再度起動しても、レジスタ情報をそれぞれのホストコントローラ11、デバイスコントローラ21にロードするだけで、常に一定の時間で高速にUSB通信を開始できる。   The register information of the USB host device 1 and the USB device device 2 once stored in this way, that is, the configuration information necessary for USB communication and the address information of the USB device device 2 are stored in the nonvolatile host storage unit 13 and Each of them is stored in the device storage unit 23. Therefore, no matter how many times the USB host device 1 and the USB device device 2 are turned off and on and restarted, the register information is always loaded into the respective host controller 11 and device controller 21. USB communication can be started at high speed in a certain time.

また、USBホスト装置1からUSBデバイス装置2をとりはずし、別のUSBデバイス装置を接続する場合には、それぞれUSBホスト装置1からUSBデバイス装置2の電源がON状態で、ホスト消去ボタン15およびデバイス消去ボタン25をそれぞれ押す。そして、ホストマイクロコントローラ12およびデバイスマイクロコントローラ22の制御によりホスト記憶部13およびデバイス記憶部23のそれぞれのレジスタ情報を消去する。そして、別のUSBデバイス装置、また、別のUSBホスト装置に対して上記に示した場合と同様の動作を行いUSB通信を行う。   Further, when the USB device device 2 is removed from the USB host device 1 and another USB device device is connected, the host erase button 15 and the device erase are turned on when the USB host device 1 to the USB device device 2 are powered on. Each button 25 is pressed. Then, the register information of the host storage unit 13 and the device storage unit 23 is erased under the control of the host microcontroller 12 and the device microcontroller 22. Then, another USB device device and another USB host device perform the same operation as described above to perform USB communication.

上記のように行われた実施の形態1のUSB通信方式によれば、一旦、USB接続が確立されたコンフィギュレーション情報およびUSBデバイス装置のアドレス情報を再度起動時に利用できるため、USBホスト装置およびUSBデバイス装置の電源がOFFされ、再度電源がONされて再度起動した時には、USBデバイス装置を認識して、USBデバイス装置のアドレス割り当てというコンフィギュレーションの一連のエニュメレーションを行う必要がなく、再度起動時からは全レジスタ情報をUSBコントローラに書き戻すことで、USB通信の開始を高速に実現できる。   According to the USB communication system of the first embodiment performed as described above, the configuration information once established with the USB connection and the address information of the USB device device can be used again at the time of startup. When the device device is turned off and then turned on again and started again, it is not necessary to recognize the USB device device and perform a series of configuration enumerations such as address assignment of the USB device device. From time to time, writing all register information back to the USB controller makes it possible to start USB communication at high speed.

実施の形態2.
図2はこの発明の実施の形態1におけるUSB通信方式を説明するための装置の構成を示すブロック図である。図において、上記実施の形態1と同様の部分は同一符号を付して説明を省略する。本実施の形態2は、ホスト記憶部およびデバイス記憶部を複数備えるものである。USBホスト装置1は、上記実施の形態1のホスト記憶部13に変えて、ホストA記憶部131、ホストB記憶部132、ホストC記憶部133の複数のホスト記憶部を備える。また、複数のホストA記憶部131、ホストB記憶部132、ホストC記憶部133のいずれを使用可能とするかを選択するためのホスト選択スイッチ16を備える。
Embodiment 2. FIG.
FIG. 2 is a block diagram showing the configuration of the apparatus for explaining the USB communication system in the first embodiment of the present invention. In the figure, the same parts as those in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted. The second embodiment includes a plurality of host storage units and device storage units. The USB host device 1 includes a plurality of host storage units including a host A storage unit 131, a host B storage unit 132, and a host C storage unit 133 in place of the host storage unit 13 of the first embodiment. Further, a host selection switch 16 is provided for selecting which of the plurality of host A storage units 131, host B storage units 132, and host C storage units 133 can be used.

USBデバイス装置2は、上記実施の形態1のデバイス記憶部23に変えて、デバイスA記憶部231、デバイスB記憶部232、デバイスC記憶部233の複数のホスト記憶部を備える。また、複数のデバイスA記憶部231、デバイスB記憶部232、デバイスC記憶部233のいずれを使用可能とするかを選択するためのデバイス選択スイッチ26を備える。ホスト選択スイッチ16およびデバイス選択スイッチ26は、ホストA記憶部131、ホストB記憶部132、ホストC記憶部133およびデバイスA記憶部231、デバイスB記憶部232、デバイスC記憶部233に対応する例えば、A、B、Cの各スイッチが存在し、現在いずれの記憶部が選択されているかが理解できるようなスイッチ構成が考えられる。   The USB device device 2 includes a plurality of host storage units including a device A storage unit 231, a device B storage unit 232, and a device C storage unit 233 instead of the device storage unit 23 of the first embodiment. In addition, a device selection switch 26 is provided for selecting which of the plurality of device A storage units 231, device B storage unit 232, and device C storage unit 233 can be used. The host selection switch 16 and the device selection switch 26 correspond to the host A storage unit 131, the host B storage unit 132, the host C storage unit 133, the device A storage unit 231, the device B storage unit 232, and the device C storage unit 233, for example. , A, B, and C switches exist, and a switch configuration that can understand which storage unit is currently selected is conceivable.

次に上記のように構成された実施の形態2のUSB装置のUSB通信方式について説明する。まず、ホスト選択スイッチ16にてホストA記憶部131が選択され、また、デバイス選択スイッチ26にてデバイスA記憶部231が選択された状態とする。そして、上記実施の形態1と同様に、USBホスト装置1およびUSBデバイス装置2はホストA記憶部131およびデバイスA記憶部231を用いて、USB通信を行う。   Next, the USB communication system of the USB device of the second embodiment configured as described above will be described. First, the host A storage unit 131 is selected by the host selection switch 16, and the device A storage unit 231 is selected by the device selection switch 26. As in the first embodiment, the USB host device 1 and the USB device device 2 use the host A storage unit 131 and the device A storage unit 231 to perform USB communication.

そして、USBホスト装置1が上記に示したUSBデバイス装置2とは別のUSBデバイス装置2と接続する場合、ホスト選択スイッチ16にてホストB記憶部132が選択され、また、別のUSBデバイス装置2では、デバイス選択スイッチ26にてデバイスA記憶部231が選択された状態とする。そして、上記実施の形態1と同様に、USBホスト装置1および別のUSBデバイス装置2はホストB記憶部132およびデバイスA記憶部231を用いて、USB通信を行う。   When the USB host device 1 is connected to a USB device device 2 different from the USB device device 2 shown above, the host B storage unit 132 is selected by the host selection switch 16, and another USB device device is selected. 2, the device A storage unit 231 is selected by the device selection switch 26. As in the first embodiment, the USB host device 1 and another USB device device 2 perform USB communication using the host B storage unit 132 and the device A storage unit 231.

そして、再びUSBホスト装置1に先のUSBデバイス装置2に接続する場合、ホスト選択スイッチ16にてホストA記憶部131に戻すことにより、USB通信を行う。このように、各記憶部131、132、133、231、232、233を適宜組み合わせることにより、複数の異なるUSBホスト装置または複数の異なるUSBデバイス装置間のUSB通信に対応することが可能となる。尚、各記憶部131、132、133、231、232、233のそれぞれのレジスタ情報の消去については、上記実施の形態1と同様であるためその説明は適宜省略する。   When the USB host device 1 is connected again to the previous USB device device 2, the USB communication is performed by returning the host selection switch 16 to the host A storage unit 131. Thus, by appropriately combining the storage units 131, 132, 133, 231, 232, and 233, it is possible to support USB communication between a plurality of different USB host devices or a plurality of different USB device devices. Note that the erasure of the register information in each of the storage units 131, 132, 133, 231, 232, and 233 is the same as that in the first embodiment, and thus the description thereof is omitted as appropriate.

上記のように行われた実施の形態2のUSB通信方式によれば、上記実施の形態1と同様の効果を奏するのはもちろんのこと、複数の異なるUSBホスト装置または複数の異なるUSBデバイス装置の接続においても、記憶部を切り替えることにより、USB通信を高速に開始することができる。   According to the USB communication system of the second embodiment performed as described above, the same effects as those of the first embodiment can be obtained, as well as a plurality of different USB host devices or a plurality of different USB device devices. In connection, USB communication can be started at high speed by switching the storage unit.

実施の形態3.
図3はこの発明の実施の形態3におけるUSB通信方式を説明するための装置の構成を示すブロック図である。図において、上記各実施の形態と同様の部分は同一符号を付して説明を省略する。本実施の形態3は、USBケーブル3にホスト用記憶部33およびデバイス用記憶部34を備える。USBケーブル3は、ホストコネクタ31、およびデバイスコネクタ32を有する。ホストコネクタ31はホストコントローラ11と接続するものである。デバイスコネクタ32はデバイスコントローラ21と接続するものである。ホストコネクタ31には、ホスト用記憶部33およびホスト消去ボタン41を備える。
Embodiment 3 FIG.
FIG. 3 is a block diagram showing the configuration of an apparatus for explaining the USB communication system in Embodiment 3 of the present invention. In the figure, the same parts as those in the above embodiments are denoted by the same reference numerals, and description thereof is omitted. In the third embodiment, the USB cable 3 includes a host storage unit 33 and a device storage unit 34. The USB cable 3 has a host connector 31 and a device connector 32. The host connector 31 is connected to the host controller 11. The device connector 32 is connected to the device controller 21. The host connector 31 includes a host storage unit 33 and a host delete button 41.

デバイスコネクタ32には、デバイス用記憶部34およびデバイス消去ボタン42を備える。ホスト用記憶部33は、高速通信可能なホスト追加バス17を介してホストマイクロコントローラ12と接続される。デバイス用記憶部34は、高速通信可能なデバイス追加バス27を介してデバイスマイクロコントローラ22と接続される。ホスト消去ボタン41は、ホスト用記憶部33のレジスタ情報を消去するものである。デバイス消去ボタン42は、デバイス用記憶部34のレジスタ情報を消去するものである。   The device connector 32 includes a device storage unit 34 and a device deletion button 42. The host storage unit 33 is connected to the host microcontroller 12 via the host addition bus 17 capable of high-speed communication. The device storage unit 34 is connected to the device microcontroller 22 via a device addition bus 27 capable of high-speed communication. The host erase button 41 is for erasing the register information in the host storage unit 33. The device deletion button 42 is used to delete the register information in the device storage unit 34.

次に上記のように構成された実施の形態3のUSB装置のUSB通信方式について説明する。まず、USBホスト装置1およびUSBデバイス装置2はUSBケーブル3のホストコネクタ31およびデバイスコネクタ32にてホストコントローラ11およびデバイスコントローラ21同士が接続される。そして、USBホスト装置1およびUSBデバイス装置2の電源が投入される。次に、USBホスト装置1のホストマイクロコントローラ12は、ホスト追加バス17を介してUSBケーブル3のホスト用記憶部33の内容を確認する。   Next, the USB communication system of the USB device according to the third embodiment configured as described above will be described. First, the USB host device 1 and the USB device device 2 are connected to each other by the host connector 31 and the device connector 32 of the USB cable 3. Then, the USB host device 1 and the USB device device 2 are turned on. Next, the host microcontroller 12 of the USB host device 1 confirms the contents of the host storage unit 33 of the USB cable 3 via the host addition bus 17.

そして、USBケーブル3のホスト用記憶部33にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在しないため、USBホスト装置1はエニュメレーションを実施し、USBデバイス装置2のアドレス情報の設定およびコンフィギュレーション情報の設定をホストコントローラ11に行う。   Since the host storage unit 33 of the USB cable 3 does not include configuration information necessary for USB communication and address information of the USB device device 2, the USB host device 1 performs enumeration and the USB device device 2. Address information and configuration information are set in the host controller 11.

また同様に、USBデバイス装置2のデバイスマイクロコントローラ22は、デバイス追加バス27を介してUSBケーブル3のデバイス用記憶部34の内容を確認する。そして、USBケーブル3のデバイス用記憶部34にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在しないため、USBデバイス装置2のデバイスコントローラ21は、USBホスト装置1からのエニュメレーション通信に応じて、USBデバイス装置2のアドレス情報の割り付け、コンフィギュレーション情報の設定を実施する。   Similarly, the device microcontroller 22 of the USB device device 2 confirms the contents of the device storage unit 34 of the USB cable 3 via the device addition bus 27. Since the device storage unit 34 of the USB cable 3 does not include configuration information necessary for USB communication and address information of the USB device device 2, the device controller 21 of the USB device device 2 receives information from the USB host device 1. According to the enumeration communication, the address information of the USB device device 2 is assigned and the configuration information is set.

次に、エニュメレーションが完了し、本来のUSB通信が可能となった状態で、USBホスト装置1のホストマイクロコントローラ12は、ホストコントローラ11のレジスタ設定、すなわち、USB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報の全てを読み返し、ホスト追加バス17を介して、USBケーブル3のホスト用記憶部33に記憶する。   Next, in the state where enumeration is completed and the original USB communication is possible, the host microcontroller 12 of the USB host device 1 sets the register of the host controller 11, that is, the configuration required for USB communication. All of the information and the address information of the USB device device 2 are read back and stored in the host storage unit 33 of the USB cable 3 via the host addition bus 17.

また同様に、USBデバイス装置2のデバイスマイクロコントローラ22はデバイスコントローラ21のレジスタ設定、すなわち、USB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報の全てを読み返し、デバイス追加バス27を介して、USBケーブル3のデバイス用記憶部34に記憶する。   Similarly, the device microcontroller 22 of the USB device apparatus 2 reads back all the register settings of the device controller 21, that is, the configuration information necessary for USB communication and the address information of the USB device apparatus 2. Through the device storage unit 34 of the USB cable 3.

その後、USBホスト装置1、および、USBデバイス装置2ともに電源をOFFする。次に、USBホスト装置1およびUSBデバイス装置2の電源をONして再度起動する。すると、USBホスト装置1のホストマイクロコントローラ12は、ホスト追加バス17を介してUSBケーブル3のホスト用記憶部33の内容を確認する。   Thereafter, both the USB host device 1 and the USB device device 2 are turned off. Next, the USB host device 1 and the USB device device 2 are turned on and restarted. Then, the host microcontroller 12 of the USB host device 1 confirms the contents of the host storage unit 33 of the USB cable 3 via the host addition bus 17.

そして、USBケーブル3のホスト用記憶部33にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在するので、これらの全てのレジスタ情報を、ホスト追加バス17を介してホストコントローラ11へロードする。   Since the configuration information necessary for USB communication and the address information of the USB device device 2 exist in the host storage unit 33 of the USB cable 3, all these register information is transferred to the host via the host addition bus 17. Load to the controller 11.

また同様に、USBデバイス装置2のデバイスマイクロコントローラ22は、デバイス追加バス27を介してUSBケーブル3のデバイス用記憶部34の内容を確認する。そして、USBケーブル3のデバイス用記憶部34にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が存在するので、これらの全てのレジスタ情報を、デバイス追加バス27を介してデバイスコントローラ21へロードする。このように設定を復元してUSB通信を再開する。   Similarly, the device microcontroller 22 of the USB device device 2 confirms the contents of the device storage unit 34 of the USB cable 3 via the device addition bus 27. Since the device storage unit 34 of the USB cable 3 has configuration information necessary for USB communication and address information of the USB device device 2, all these register information is transferred to the device via the device addition bus 27. Load to the controller 21. In this way, the settings are restored and the USB communication is resumed.

よって、いったん記憶されたUSBホスト装置1およびUSBデバイス装置2のレジスタ情報、すなわち、USB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報は、不揮発性のホスト用記憶部33、およびデバイス用記憶部34にそれぞれ記憶されている。よって、USBホスト装置1およびUSBデバイス装置2に対して何回電源のOFF、ONを実施して再度起動しても、レジスタ情報をそれぞれのホストコントローラ11、デバイスコントローラ21にロードするだけで、常に一定の時間で高速にUSB通信を開始できる。   Therefore, once stored, the register information of the USB host device 1 and the USB device device 2, that is, the configuration information necessary for USB communication and the address information of the USB device device 2, are stored in the nonvolatile host storage unit 33, and Each of them is stored in the device storage unit 34. Therefore, no matter how many times the USB host device 1 and the USB device device 2 are turned off and on and restarted, the register information is always loaded into the respective host controller 11 and device controller 21. USB communication can be started at high speed in a certain time.

また、USBホスト装置1およびUSBデバイス装置2が故障し、メンテナンス後に再度同一のUSBホスト装置1およびUSBデバイス装置2を、当該USBケーブル3を用いて接続する場合、USBケーブル3のホスト用記憶部33およびデバイス用記憶部34には、USB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報が記憶されているため、上記に示した場合と同様にこれらを利用してUSB通信を開始できる。   Further, when the USB host device 1 and the USB device device 2 fail and the same USB host device 1 and USB device device 2 are connected again using the USB cable 3 after maintenance, the storage unit for the host of the USB cable 3 is used. 33 and the device storage unit 34 store configuration information necessary for USB communication and address information of the USB device device 2, so that USB communication is performed using these as in the case described above. You can start.

また、複数のUSBホスト装置1または複数のUSBデバイス装置2の接続構成に対して、それぞれ対応するUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置2のアドレス情報がホスト用記憶部33およびデバイス用記憶部34に記憶させたUSBケーブル3をそれぞれ準備する。そして、接続されるUSBホスト装置1およびUSBデバイス装置2の接続構成に応じたUSBケーブル3を接続すれば、上記に示した場合と同様にこれらを利用してUSB通信を開始できる。   Further, for connection configurations of a plurality of USB host devices 1 or a plurality of USB device devices 2, configuration information and address information of the USB device device 2 corresponding to the corresponding USB communication are respectively stored in the host storage unit 33 and the device. USB cables 3 stored in the storage unit 34 are prepared. If the USB cable 3 corresponding to the connection configuration of the USB host device 1 and the USB device device 2 to be connected is connected, USB communication can be started using these as in the case described above.

また、USBケーブル3をUSBホスト装置1及びUSBデバイス装置2からとりはずし、別のUSBホスト装置およびUSBデバイス装置に接続する場合には、USBケーブル3のホスト消去ボタン41およびデバイス消去ボタン42をそれぞれ押す。そして、ホスト用記憶部33およびデバイス用記憶部34のそれぞれのレジスタ情報を消去する。そして、別のUSBデバイス装置、また、別のUSBホスト装置に対して上記に示した場合と同様の動作を行いUSB通信を行う。   When the USB cable 3 is disconnected from the USB host device 1 and the USB device device 2 and connected to another USB host device and USB device device, the host erase button 41 and the device erase button 42 of the USB cable 3 are respectively pressed. . Then, the respective register information of the host storage unit 33 and the device storage unit 34 is deleted. Then, another USB device device and another USB host device perform the same operation as described above to perform USB communication.

上記のように行われた実施の形態3のUSB通信方式によれば、上記各実施の形態と同様に、一旦、USB接続が確立されたコンフィギュレーション情報およびUSBデバイス装置のアドレス情報を再度起動時に利用できるため、USBホスト装置およびUSBデバイス装置の電源がOFFされ、再度電源がONされて再度起動した時には、USBデバイス装置を認識して、USBデバイス装置のアドレス割り当てというコンフィギュレーションの一連のエニュメレーションを行う必要がなく、再度起動時からは全レジスタ情報をUSBコントローラに書き戻すことで、USB通信の開始を高速に実現できる。   According to the USB communication system of the third embodiment performed as described above, the configuration information once established for the USB connection and the address information of the USB device device are once again activated at the time of activation, as in the above embodiments. When the USB host device and USB device device are turned off and then turned on again and restarted, the USB device device is recognized and a series of enumerations of configurations for address assignment of the USB device device are available. The USB communication can be started at a high speed by writing all the register information back to the USB controller from the start-up again.

また、USBホスト装置およびUSBデバイス装置の接続構成に応じて、それ毎にUSB通信に必要となるコンフィギュレーション情報およびUSBデバイス装置のアドレス情報を記憶したUSBケーブルをそれぞれ備えれば、USBホスト装置およびUSBデバイス装置の接続構成に応じたUSBケーブルを接続することで、直ちにUSB通信が可能となる。   Further, according to the connection configuration of the USB host device and the USB device device, if the USB cable storing the configuration information necessary for USB communication and the address information of the USB device device is provided, the USB host device and By connecting a USB cable according to the connection configuration of the USB device device, USB communication can be immediately performed.

尚、本発明は、その発明の範囲内において、各実施の形態を自由に組み合わせたり、各実施の形態を適宜、変形、省略することが可能である。   It should be noted that the present invention can be freely combined with each other within the scope of the invention, and each embodiment can be appropriately modified or omitted.

1 USBホスト装置、2 USBデバイス装置、3 USBバス、
11 ホストコントローラ、12 ホストマイクロコントローラ、13 ホスト記憶部、14 ホスト内部バス、15 ホスト消去ボタン、16 ホスト選択スイッチ、
17 ホスト追加バス、21 デバイスコントローラ、
22 デバイスマイクロコントローラ、23 デバイス記憶部、
24 デバイス内部バス、25 デバイス消去ボタン、26 デバイス選択スイッチ、
27 デバイス追加バス、31 ホストコネクタ、32 デバイスコネクタ、
33 ホスト用記憶部、34 デバイス用記憶部、41 ホスト消去ボタン、
42 デバイス消去ボタン、131 ホストA記憶部、132 ホストB記憶部、
133 ホストC記憶部、231 デバイスA記憶部、232 デバイスB記憶部、
233 デバイスC記憶部。
1 USB host device, 2 USB device device, 3 USB bus,
11 Host controller, 12 Host microcontroller, 13 Host storage unit, 14 Host internal bus, 15 Host delete button, 16 Host selection switch,
17 Host additional bus, 21 Device controller,
22 device microcontroller, 23 device storage,
24 device internal bus, 25 device erase button, 26 device selection switch,
27 Device addition bus, 31 Host connector, 32 Device connector,
33 Host storage unit, 34 Device storage unit, 41 Host delete button,
42 Device delete button, 131 Host A storage unit, 132 Host B storage unit,
133 Host C storage unit, 231 Device A storage unit, 232 Device B storage unit,
233 Device C storage unit.

Claims (3)

USBケーブルで接続されるUSBホスト装置およびUSBデバイス装置間のUSB通信方式において、
前記USBホスト装置と前記USBデバイス装置との間が前記USBケーブルでの接続が確立し、前記USBホスト装置と前記USBデバイス装置との間のUSB通信に必要となるコンフィギュレーション情報および前記USBデバイス装置のアドレス情報を前記USBホスト装置および前記USBデバイス装置にそれぞれ記憶させ、
前記USBホスト装置および前記USBデバイス装置が再度起動した時に、前記USBホスト装置および前記USBデバイス装置は記憶した前記コンフィギュレーション情報および前記USBデバイス装置の前記アドレス情報を利用して前記USB通信を行うUSB通信方式。
In the USB communication method between a USB host device and a USB device connected by a USB cable,
Configuration information necessary for USB communication between the USB host device and the USB device device, and connection between the USB host device and the USB device device established by the USB cable, and the USB device device Address information is stored in the USB host device and the USB device device,
When the USB host device and the USB device device are restarted, the USB host device and the USB device device perform the USB communication using the stored configuration information and the address information of the USB device device. Communication method.
前記USBケーブルで接続される前記USBホスト装置および前記USBデバイス装置が、前記USBホスト装置とは別のUSBホスト装置または前記USBデバイス装置とは別のUSBデバイス装置と接続する場合のUSB通信方式において、
前記USBホスト装置および前記USBデバイス装置は、前記アドレス情報および前記コンフィギュレーション情報を記憶する不揮発性のメモリ領域を複数有し、別の前記USBホスト装置または別の前記USBデバイス装置に応じて前記メモリ領域を切り替える請求項1に記載のUSB通信方式。
In the USB communication method in which the USB host device and the USB device connected by the USB cable are connected to a USB host device different from the USB host device or a USB device device different from the USB device device. ,
The USB host device and the USB device device have a plurality of non-volatile memory areas for storing the address information and the configuration information, and the memory according to another USB host device or another USB device device. The USB communication system according to claim 1, wherein the areas are switched.
USBケーブルで接続されるUSBホスト装置およびUSBデバイス装置間のUSB通信方式において、
前記USBホスト装置と前記USBデバイス装置との間が前記USBケーブルでの接続が確立し、前記USBホスト装置と前記USBデバイス装置との間のUSB通信に必要となるコンフィギュレーション情報および前記USBデバイス装置のアドレス情報を前記USBケーブルのホスト用記憶部およびデバイス用記憶部にそれぞれ記憶させ、
前記USBホスト装置および前記USBデバイス装置が再度起動した時に、前記USBケーブルの前記ホスト用記憶部に記憶した前記コンフィギュレーション情報および前記USBデバイス装置の前記アドレス情報を前記USBホスト装置が、また、前記USBケーブルの前記デバイス用記憶部に記憶した前記コンフィギュレーション情報および前記USBデバイス装置の前記アドレス情報を前記USBデバイス装置がそれぞれ利用して前記USB通信を行うUSB通信方式。
In the USB communication method between a USB host device and a USB device connected by a USB cable,
Configuration information necessary for USB communication between the USB host device and the USB device device, and connection between the USB host device and the USB device device established by the USB cable, and the USB device device Address information is stored in the host storage unit and device storage unit of the USB cable,
When the USB host device and the USB device device are restarted, the USB host device also stores the configuration information stored in the host storage unit of the USB cable and the address information of the USB device device. A USB communication method in which the USB device device performs the USB communication by using the configuration information stored in the device storage unit of the USB cable and the address information of the USB device device, respectively.
JP2016161618A 2016-08-22 2016-08-22 USB communication method Pending JP2018032056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016161618A JP2018032056A (en) 2016-08-22 2016-08-22 USB communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016161618A JP2018032056A (en) 2016-08-22 2016-08-22 USB communication method

Publications (1)

Publication Number Publication Date
JP2018032056A true JP2018032056A (en) 2018-03-01

Family

ID=61303539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016161618A Pending JP2018032056A (en) 2016-08-22 2016-08-22 USB communication method

Country Status (1)

Country Link
JP (1) JP2018032056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022158860A (en) * 2021-03-31 2022-10-17 瑞▲いー▼半導體股▲ふん▼有限公司 Audio control circuit, host apparatus, and related control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
JP5220747B2 (en) Nonvolatile storage device and nonvolatile storage system
US8688896B2 (en) High speed writing mode in memory controller, nonvolatile storage device, accessing device, nonvolatile storage system, and method and program for writing data
US10241807B2 (en) Vehicle control device, reprogramming system
CN102819442B (en) A kind of method and system of embedded device program burn writing
JP6070360B2 (en) Information processing apparatus and processing method thereof
CN104679540A (en) Computer system and computer system starting method
CN101923473A (en) Embedded electronic device and method for updating firmware thereof
CN109905770A (en) Terminal starting up method, apparatus and terminal
JP4843222B2 (en) Semiconductor memory device control method, memory card, and host device
US20090307427A1 (en) Memory card and method of writing data
JP6404708B2 (en) Information processing apparatus, BIOS setting information changing method, and computer program
KR20080078977A (en) Method and system for interfacing a plurality of memory devices using mmc or sd protocol
JP2013156929A (en) Storage device and control method thereof
JP2018032056A (en) USB communication method
US20100153622A1 (en) Data Access Controller and Data Accessing Method
TWI431530B (en) Embedded system and program updating method of the same
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN102402447A (en) Equipment booting method and equipment
JP5545432B2 (en) BIOS update method, BIOS update device, and BIOS update program
EP2846259B1 (en) Method and apparatus for controlling memory startup
US20110016265A1 (en) Storage device and data process method
US20140089356A1 (en) Data storage device and operating method thereof
CN111045962B (en) SD card data confidentiality method, system, equipment and computer medium
US20120030765A1 (en) Operation method of an anti-virus storage device having a storage disk and a read-only memory
JP2007179093A (en) Usb device, and control method for usb device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181029

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190820

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200310