JP2013128214A - Usb host system - Google Patents

Usb host system Download PDF

Info

Publication number
JP2013128214A
JP2013128214A JP2011277036A JP2011277036A JP2013128214A JP 2013128214 A JP2013128214 A JP 2013128214A JP 2011277036 A JP2011277036 A JP 2011277036A JP 2011277036 A JP2011277036 A JP 2011277036A JP 2013128214 A JP2013128214 A JP 2013128214A
Authority
JP
Japan
Prior art keywords
usb
battery
usb host
remaining amount
peripheral device
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
JP2011277036A
Other languages
Japanese (ja)
Inventor
Megumi Naka
めぐみ 仲
Tomoyuki Hino
知幸 日野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2011277036A priority Critical patent/JP2013128214A/en
Publication of JP2013128214A publication Critical patent/JP2013128214A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To suppress current consumption by reducing a transfer throughput of packet data communication when a residual battery amount in a USB host system becomes small.SOLUTION: The USB host system includes: a USB host device (12) operated by a battery as a power source and executable of USB communication between with a USB peripheral device (12); and a residual battery amount monitoring circuit (113) for monitoring the residual amount of the battery. The USB host device includes a throughput adjustment unit (114) for adjusting each packet output interval to the USB peripheral device, on the basis of the monitoring result by the residual battery amount monitoring circuit. The throughput adjustment unit determines the packet output interval to the USB peripheral device, using a start-of-frame interruption formed at a predetermined time interval. When the residual battery amount becomes small, the packet output interval is adjusted to suppress current consumption.

Description

本発明は、USB(Universal Serial Bus)ホストポートを備えたUSBホストシステムの制御技術、さらには電池を電源として動作するUSBホストシステムにおいて電池残量が少なくなってきた場合の制御技術に関する。   The present invention relates to a control technique for a USB host system provided with a USB (Universal Serial Bus) host port, and further to a control technique for a case where the remaining battery level is low in a USB host system operating with a battery as a power source.

特許文献1には、二つの光無線伝送装置間で双方向のデータ伝送を行う光無線伝送システムが記載されている。それによれば、バッテリの現在の残量及びバッテリ駆動か否かの情報からなるバッテリ情報に基づいて、省電力の必要な程度に応じて定められる重要度(Level)を決定し、この重要度(Level)に基づいたリンク要求パケットの送信間隔を決定し、タイマを設定(TM_SET)するようにしている。   Patent Document 1 describes an optical wireless transmission system that performs bidirectional data transmission between two optical wireless transmission devices. According to this, on the basis of the battery information including the current remaining amount of the battery and information on whether or not the battery is driven, the importance (Level) determined according to the necessary degree of power saving is determined, and this importance ( The transmission interval of the link request packet based on (Level) is determined, and a timer is set (TM_SET).

特許文献2には、通信トラヒックの観点から、バッテリの駆動時間をできる限り延長させる無線通信装置が記載されている。それによれば、バッテリ状態に応じて、データ時間間隔を制御するようにしている。   Patent Document 2 describes a wireless communication device that extends the battery driving time as much as possible from the viewpoint of communication traffic. According to this, the data time interval is controlled according to the battery state.

特許文献3には、電池の残量が少ないときは、データ転送装置における電力消費を低減しながらデータ転送を行うことのできるデータ転送装置が記載されている。   Patent Document 3 describes a data transfer apparatus that can perform data transfer while reducing power consumption in the data transfer apparatus when the remaining battery level is low.

特開2004−242209号公報JP 2004-242209 A 特開2007−295052号公報JP 2007-295052 A 特開2005−078475号公報Japanese Patent Laying-Open No. 2005-077845

USBホストシステムについて本願発明者が検討したところ、以下の課題を見いだした。   The inventors of the present invention examined the USB host system and found the following problems.

電池を電源として動作するUSBホストシステムにおいて、電池残量が少なくなってきた場合、転送スループットを落としてでも電池による動作を長く維持したい場合がある。しかし、上記従来技術では、それを満足することができない。   In a USB host system that operates using a battery as a power source, when the remaining battery level is low, there is a case where it is desired to maintain the battery operation for a long time even if the transfer throughput is reduced. However, the above prior art cannot satisfy this.

本発明の目的は、USBホストシステムの電池残量が少なくなってきた場合、パケットデータ通信の転送スループットを落とすことで消費電流を抑えるための技術を提供することにある。   An object of the present invention is to provide a technique for suppressing current consumption by reducing the transfer throughput of packet data communication when the remaining battery capacity of a USB host system is low.

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

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

すなわち、電池を電源として動作し、USBペリフェラルデバイスとの間でUSB通信を実行可能なUSBホストデバイスと、上記電池の残量を監視する電池残量監視回路とを含んでUSBホストシステムを形成する。上記USBホストデバイスは、上記電池残量監視回路での監視結果に基づいて、上記USBペリフェラルデバイスに対するパケット出力間隔を調整するためのスループット調整部を含む。上記スループット調整部は、所定の時間間隔で形成されるスタートオブフレーム割り込みを用いて上記USBペリフェラルデバイスに対するパケット出力間隔を決定する。   That is, a USB host system is formed including a USB host device that operates using a battery as a power source and can perform USB communication with a USB peripheral device, and a battery remaining amount monitoring circuit that monitors the remaining amount of the battery. . The USB host device includes a throughput adjustment unit for adjusting a packet output interval for the USB peripheral device based on a monitoring result from the battery remaining amount monitoring circuit. The throughput adjusting unit determines a packet output interval for the USB peripheral device using a start-of-frame interrupt formed at a predetermined time interval.

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

すなわち、USBホストシステムの電池残量が少なくなってきた場合、パケットデータ通信の転送スループットを落とすことで消費電流を抑えることができる。   That is, when the battery level of the USB host system is decreasing, the current consumption can be suppressed by reducing the transfer throughput of packet data communication.

本発明にかかるUSBホストシステムを含む情報処理装置の構成例ブロック図である。1 is a block diagram illustrating a configuration example of an information processing apparatus including a USB host system according to the present invention. 図1に示されるUSBホストシステムにおける主要処理のフローチャートである。It is a flowchart of the main processes in the USB host system shown by FIG. 図1に示されるUSBホストシステムにおける主要処理のフローチャートである。It is a flowchart of the main processes in the USB host system shown by FIG. 図1に示されるUSBホストシステムにおける主要処理のフローチャートである。It is a flowchart of the main processes in the USB host system shown by FIG.

1.実施の形態の概要
先ず、本願において開示される発明の代表的な実施の形態について概要を説明する。代表的な実施の形態についての概要説明で括弧を付して参照する図面中の参照符号はそれが付された構成要素の概念に含まれるものを例示するに過ぎない。
1. First, an outline of a typical embodiment of the invention disclosed in the present application will be described. Reference numerals in the drawings referred to in parentheses in the outline description of the representative embodiments merely exemplify what are included in the concept of the components to which the reference numerals are attached.

〔1〕本発明の代表的な実施の形態に係るUSBホストシステム(11)は、電池を電源として動作し、USBペリフェラルデバイス(12)との間でUSB通信を実行可能なUSBホストデバイス(111)と、上記電池の残量を監視する電池残量監視回路(113)とを設ける。このとき、上記USBホストデバイスは、上記電池残量監視回路での監視結果に基づいて、上記USBペリフェラルデバイスに対するパケット出力間隔を調整するためのスループット調整部(114)を含み、上記スループット調整部は、所定の時間間隔で形成されるスタートオブフレーム割り込みを用いて上記USBペリフェラルデバイスに対するパケット出力間隔を決定する。   [1] A USB host system (11) according to a typical embodiment of the present invention operates with a battery as a power source and can execute USB communication with a USB peripheral device (12) (111). And a battery remaining amount monitoring circuit (113) for monitoring the remaining amount of the battery. At this time, the USB host device includes a throughput adjustment unit (114) for adjusting a packet output interval to the USB peripheral device based on a monitoring result in the battery remaining amount monitoring circuit, and the throughput adjustment unit includes: A packet output interval for the USB peripheral device is determined using a start-of-frame interrupt formed at a predetermined time interval.

上記構成によれば、上記電池残量監視回路での監視結果に基づいて、所定の時間間隔で形成されるスタートオブフレーム割り込みを用いて上記USBペリフェラルデバイスに対するパケット出力間隔を決定されることにより、上記USBペリフェラルデバイスに対するパケット出力間隔が調整される。これにより、上記電池の残量が少なくなった場合に、パケットの出力間隔が調整され、それによって電池による動作時間を長くすることができる。   According to the above configuration, the packet output interval for the USB peripheral device is determined using the start-of-frame interrupt formed at a predetermined time interval based on the monitoring result in the battery remaining amount monitoring circuit. The packet output interval for the USB peripheral device is adjusted. Thereby, when the remaining amount of the battery decreases, the output interval of the packet is adjusted, and thereby the operation time by the battery can be lengthened.

〔2〕上記〔1〕において、上記スループット調整部は、上記電池残量監視回路での監視結果に基づいて、USB規格上のサスペンド状態に遷移するまでの時間内で、上記USBペリフェラルデバイスに対するフレームパケットの出力停止期間を設けることができる。これにより、USBホストデバイスでの消費電力を更に低減することができる。   [2] In the above [1], the throughput adjustment unit determines the frame for the USB peripheral device within the time until the transition to the suspend state based on the USB standard based on the monitoring result of the battery remaining amount monitoring circuit. A packet output stop period can be provided. Thereby, the power consumption in the USB host device can be further reduced.

〔3〕本発明の代表的な実施の形態に係るUSBホストシステム(11)は、電池を電源として動作し、USBペリフェラルデバイスとの間でUSB通信を実行可能なUSBホストデバイスと、上記電池の残量を監視する電池残量監視回路とを含む。このとき、上記USBホストデバイスは、上記電池残量監視回路での監視結果に基づいて、上記USBペリフェラルデバイスに対するパケット出力間隔を調整するためのスループット調整部を含み、上記スループット調整部は、パケット出力調整用タイマの割り込みを用いて上記USBペリフェラルデバイスに対するパケット出力間隔を決定する。   [3] A USB host system (11) according to a representative embodiment of the present invention operates with a battery as a power source and can perform USB communication with a USB peripheral device, and the battery And a battery remaining amount monitoring circuit for monitoring the remaining amount. At this time, the USB host device includes a throughput adjustment unit for adjusting a packet output interval for the USB peripheral device based on a monitoring result of the battery remaining amount monitoring circuit, and the throughput adjustment unit includes a packet output unit. A packet output interval for the USB peripheral device is determined using an interrupt of the adjustment timer.

このような構成においても、上記電池残量監視回路での監視結果に基づいて、所定の時間間隔で形成されるスタートオブフレーム割り込みを用いて上記USBペリフェラルデバイスに対するパケット出力間隔を決定されることにより、上記USBペリフェラルデバイスに対するパケット出力間隔が調整される。これにより、上記電池の残量が少なくなった場合に、パケットの出力間隔が調整され、それによって電池による動作時間を長くすることができる。   Even in such a configuration, a packet output interval for the USB peripheral device is determined using a start-of-frame interrupt formed at a predetermined time interval based on the monitoring result of the battery remaining amount monitoring circuit. The packet output interval for the USB peripheral device is adjusted. Thereby, when the remaining amount of the battery decreases, the output interval of the packet is adjusted, and thereby the operation time by the battery can be lengthened.

〔4〕上記〔3〕において、上記スループット調整部は、上記電池残量監視回路での監視結果に基づいて、USB規格上のサスペンド状態に遷移するまでの時間内で、上記USBペリフェラルデバイスに対するスタートオブフレームパケットの出力停止期間を設けることができ、それによってUSBホストデバイスでの消費電力を更に低減することができる。   [4] In the above [3], the throughput adjustment unit starts the USB peripheral device within the time until the transition to the suspend state based on the USB standard based on the monitoring result of the battery remaining amount monitoring circuit. An out-of-frame packet output stop period can be provided, thereby further reducing power consumption in the USB host device.

2.実施の形態の詳細
実施の形態について更に詳述する。
2. Details of Embodiments Embodiments will be further described in detail.

《実施の形態1》
図1には、本発明にかかる情報処理装置の構成例が示される。
Embodiment 1
FIG. 1 shows a configuration example of an information processing apparatus according to the present invention.

図1に示される情報処理装置10は、USBホストシステム11と、それに着脱可能なUSBペリフェラルデバイス12とを含む。USBホストシステム11は、特に制限されないが、携帯通信端末や、デジタルカメラなど、USBホストポートを搭載した組み込み系機器とされ、USBホストデバイス111と、電池112と、電池残量監視回路113とを含む。USBホストシステム11は、電池112を電源として動作し、USBペリフェラルデバイス12との間で信号のやり取りが可能とされる。USBホストデバイス111は、USBホスト機能を備えたマイクロコンピュータとされる。USBペリフェラルデバイス12は、特に制限されないが、キーボード、マウス、プリンタ、外付けメモリなどとされる。電池残量監視回路113は、電池112の残量を監視する機能を有し、電池残量が所定の基準値以下になった場合に、USBホストシステム111に対して電池残量監視信号をアサートする。USBホストシステム111は、スループット調整部114を含み、このスループット調整部114は、電池残量監視回路113からの電池残量監視信号によって電池残量が所定の基準値以下になったことを認識し、上記USBペリフェラルデバイス12に対するパケットの出力間隔を調整することで、USBホストデバイスでの消費電力を低減させる。スループット調整部114は、マイクロコンピュータによって実行されるソフトウェアによって実現しても良いし、ハードウェアによって実現しても良い。   An information processing apparatus 10 shown in FIG. 1 includes a USB host system 11 and a USB peripheral device 12 that can be attached to and detached from the USB host system 11. The USB host system 11 is not particularly limited, but is an embedded device equipped with a USB host port, such as a mobile communication terminal or a digital camera, and includes a USB host device 111, a battery 112, and a battery remaining amount monitoring circuit 113. Including. The USB host system 11 operates using the battery 112 as a power source, and can exchange signals with the USB peripheral device 12. The USB host device 111 is a microcomputer having a USB host function. The USB peripheral device 12 is not particularly limited, and may be a keyboard, a mouse, a printer, an external memory, or the like. The battery remaining amount monitoring circuit 113 has a function of monitoring the remaining amount of the battery 112, and asserts a battery remaining amount monitoring signal to the USB host system 111 when the remaining amount of the battery falls below a predetermined reference value. To do. The USB host system 111 includes a throughput adjustment unit 114, which recognizes that the remaining battery level has become equal to or less than a predetermined reference value based on the remaining battery level monitoring signal from the remaining battery level monitoring circuit 113. By adjusting the packet output interval to the USB peripheral device 12, the power consumption of the USB host device is reduced. The throughput adjustment unit 114 may be realized by software executed by a microcomputer, or may be realized by hardware.

図2には、スループット調整部114での処理の流れが示される。   FIG. 2 shows the flow of processing in the throughput adjustment unit 114.

本例でUSBホストデバイス111とされるマイクロコンピュータは、SOF(Start Of Frame;スタートオブフレーム)のマーカ機能を有し、SOFパケットが破損した場合でも1msに1回の割合で、SOF割込みを発生するようになっている。SOF割込みは、本来、USBペリフェラルモードで使用するUSBオーディオ応用などで、音切れなくデータ転送したいケースに使用することが主目的とされるが、USBホストモードではほとんど使用されない。本例では、このSOF割込みを用いてUSBペリフェラルデバイスに対するパケットの出力間隔を決定するようにしている。   The microcomputer, which is the USB host device 111 in this example, has an SOF (Start Of Frame) marker function, and generates an SOF interrupt once every 1 ms even if the SOF packet is damaged. It is supposed to be. The SOF interrupt is primarily intended for use in a case where it is desired to transfer data without interruption in a USB audio application used in the USB peripheral mode, but is rarely used in the USB host mode. In this example, the SOF interrupt is used to determine the packet output interval for the USB peripheral device.

図2に示される処理では、USBホストシステム11とUSBペリフェラルデバイス12とのUSB通信中、電池112の残量が基準以下となった場合、フレーム単位で発行していたトークンパケットを100msに変更されるようになっている。つまり、図2の(A)に示されるように、USBホストデバイス111において、1msに1回の割合でSOF割込みが発生されることから、SOF割込みが発生されるごとに、スループット調整部114においてそれをカウントする。尚、SOF割り込み機能は、電池112の残量が基準以下と判断されたタイミングで起動されるものとする。図2の(B)に示されるパケット出力調整処理は、スループット調整部114で実行される。先ず、電池残量監視回路113からの電池残量監視信号に基づいて電池112の残量が基準値以下か否かの判別を行う(201)。この判別において、電池112の残量が基準値以下である(Yes)と判断した場合には、1msに1回の割合で発生されるSOF割り込みのカウントを開始し、100msが経過したか否かの判別を行う(202)。この判別において、100msが経過した(Yes)と判断した場合、SOF割り込みのカウント状態をクリアし(203)、パケット出力を許可する(204)。また、上記ステップ201の判別において、電池112の残量が基準値以下ではない(No)と判断した場合には、パケット出力の調整は不要であるため、上記ステップ202の判別は行わない。さらに、上記ステップ202の判別において、100msが経過していない(No)と判断した場合には、パケット出力が禁止される(205)。このような処理によれば、電池112の残量が基準値以下になった場合に、パケットの出力間隔が長くなるように調整される。   In the processing shown in FIG. 2, when the remaining amount of the battery 112 is below the standard during USB communication between the USB host system 11 and the USB peripheral device 12, the token packet issued in units of frames is changed to 100 ms. It has become so. That is, as shown in FIG. 2A, since the SOF interrupt is generated at a rate of once per 1 ms in the USB host device 111, each time the SOF interrupt is generated, the throughput adjustment unit 114 Count it. It is assumed that the SOF interrupt function is activated at a timing when the remaining amount of the battery 112 is determined to be below the reference. The packet output adjustment process shown in FIG. 2B is executed by the throughput adjustment unit 114. First, based on the battery remaining amount monitoring signal from the battery remaining amount monitoring circuit 113, it is determined whether or not the remaining amount of the battery 112 is below a reference value (201). In this determination, when it is determined that the remaining amount of the battery 112 is equal to or less than the reference value (Yes), the counting of the SOF interrupt generated once per 1 ms is started, and whether or not 100 ms has elapsed. Is discriminated (202). In this determination, if it is determined that 100 ms has elapsed (Yes), the count state of the SOF interrupt is cleared (203), and packet output is permitted (204). If it is determined in step 201 that the remaining amount of the battery 112 is not less than or equal to the reference value (No), no adjustment of the packet output is necessary, and therefore the determination in step 202 is not performed. Further, if it is determined in step 202 that 100 ms has not elapsed (No), packet output is prohibited (205). According to such a process, when the remaining amount of the battery 112 becomes equal to or less than the reference value, the packet output interval is adjusted to be longer.

実施の形態1によれば、以下の作用効果を得ることができる。   According to the first embodiment, the following operational effects can be obtained.

(1)SOF割込みを利用することにより、電池112の残量が基準値以下になった場合に、パケットの出力間隔が長くなるように調整される。   (1) By using the SOF interrupt, when the remaining amount of the battery 112 becomes equal to or less than the reference value, the packet output interval is adjusted to be longer.

(2)上記(1)の作用効果により、USBホストデバイス111での電力消費を抑えることができる。   (2) The power consumption of the USB host device 111 can be suppressed by the effect (1).

(3)上記ステップ202でのSOF割り込みのカウント数を変更することで、パケットの出力間隔を任意の時間に調整することができる。パケットの出力間隔が長いほど、電力消費の低減効果が大きくなり、その分、電池112による動作時間を長くすることができる。   (3) By changing the SOF interrupt count in step 202, the packet output interval can be adjusted to an arbitrary time. The longer the packet output interval, the greater the effect of reducing power consumption, and the operating time of the battery 112 can be extended accordingly.

《実施の形態2》
図3には、スループット調整部114での処理の流れが示される。
<< Embodiment 2 >>
FIG. 3 shows the flow of processing in the throughput adjustment unit 114.

図3に示される処理が、図2に示されるのと大きく相違するのは、マイクロコンピュータにおける汎用タイマをパケット出力調整用タイマとして用いて上記USBペリフェラルデバイス12に対するパケットの出力間隔を調整する点である。この調整は、USBホストデバイス111において、SOF割り込みがサポートされていない場合でも実施することができる。   The processing shown in FIG. 3 is greatly different from that shown in FIG. 2 in that a general-purpose timer in the microcomputer is used as a packet output adjustment timer to adjust the packet output interval to the USB peripheral device 12. is there. This adjustment can be performed even when the USB host device 111 does not support the SOF interrupt.

マイクロコンピュータにおける汎用タイマを用いる場合には、図3の(A)に示されるように、パケット出力調整用タイマ割り込みがカウントされる。図3の(B)に示されるパケット出力調整処理は、スループット調整部114で実行される。先ず、電池残量監視回路113からの電池残量監視信号に基づいて電池112の残量が基準値以下か否かの判別を行う(301)。この判別において、電池112の残量が基準値以下である(Yes)と判断した場合には、パケット出力調整用タイマでのカウントを開始し、100msが経過したか否かの判別を行う(302)。この判別において、100msが経過した(Yes)と判断した場合、パケット出力調整用タイマの割り込みカウント状態をクリアし(303)、パケット出力を許可する(304)。また、上記ステップ301の判別において、電池112の残量が基準値以下ではない(No)と判断した場合には、パケット出力の調整は不要であるため、上記ステップ302の判別は行わない。さらに、上記ステップ302の判別において、100msが経過していない(No)と判断した場合には、パケット出力が禁止される(305)。このような処理によれば、電池112の残量が基準値以下になった場合に、パケットの出力間隔が長くなるように調整される。   When a general-purpose timer in the microcomputer is used, packet output adjustment timer interrupts are counted as shown in FIG. The packet output adjustment process shown in FIG. 3B is executed by the throughput adjustment unit 114. First, based on the battery remaining amount monitoring signal from the battery remaining amount monitoring circuit 113, it is determined whether or not the remaining amount of the battery 112 is equal to or less than a reference value (301). In this determination, when it is determined that the remaining amount of the battery 112 is equal to or less than the reference value (Yes), counting by the packet output adjustment timer is started, and it is determined whether or not 100 ms has elapsed (302). ). If it is determined that 100 ms has elapsed (Yes) in this determination, the interrupt count state of the packet output adjustment timer is cleared (303), and packet output is permitted (304). If it is determined in step 301 that the remaining amount of the battery 112 is not less than or equal to the reference value (No), no adjustment of the packet output is necessary, and therefore the determination in step 302 is not performed. Further, if it is determined in step 302 that 100 ms has not elapsed (No), packet output is prohibited (305). According to such a process, when the remaining amount of the battery 112 becomes equal to or less than the reference value, the packet output interval is adjusted to be longer.

実施の形態2によれば、電池112の残量が基準値以下になった場合に、パケットの出力間隔が長くなるように調整されるので、実施の形態1の場合と同様の効果を得ることができる。また、実施の形態2によれば、マイクロコンピュータにおける汎用タイマを用いるので、USBホストデバイス111において、SOF割り込みがサポートされていない場合でも、パケットの出力間隔を調整する実施することができる。   According to the second embodiment, when the remaining amount of the battery 112 becomes equal to or less than the reference value, the packet output interval is adjusted to be longer, so the same effect as in the first embodiment can be obtained. Can do. Further, according to the second embodiment, since the general-purpose timer in the microcomputer is used, the packet output interval can be adjusted even when the USB host device 111 does not support the SOF interrupt.

《実施の形態3》
実施の形態1,2のパケット出力調整では、電池112の残量が基準値以下になった場合に、パケットの出力間隔が調整されるが、USBにおけるSOFパケットは出力されている。USB規格上、バスのアイドル状態が所定時間(例えば3ms)に達すると、サスペンド状態に遷移されてしまうため、SOFパケットの出力を長時間停止するとUSB通信を行うことができなくなる。しかし、サスペンド状態に遷移されるまでの時間の範囲内(つまり、3ms未満)であれば、USBホストデバイス111からUSBペリフェラルデバイス12へのSOFパケット出力を停止することができ、それによってUSBホストデバイス111での消費電力を更に低減することができる。
<< Embodiment 3 >>
In the packet output adjustment of the first and second embodiments, when the remaining amount of the battery 112 becomes equal to or less than the reference value, the packet output interval is adjusted, but the SOF packet in USB is output. According to the USB standard, when the idle state of the bus reaches a predetermined time (for example, 3 ms), the state transits to the suspend state. However, the SOF packet output from the USB host device 111 to the USB peripheral device 12 can be stopped within the time range until the transition to the suspend state (that is, less than 3 ms), whereby the USB host device The power consumption at 111 can be further reduced.

図4には、スループット調整部114において、上記USBペリフェラルデバイス12に対するSOFパケットの出力停止期間の設定処理の流れが示される。   FIG. 4 shows a flow of setting processing of the output stop period of the SOF packet for the USB peripheral device 12 in the throughput adjusting unit 114.

スループット調整部114では、図5の(A)に示されるように、SOFパケットの停止処理が行われる。すなわち、電池112の残量が基準値以下になったと判断した場合(401)、SOFパケット停止用タイマによるカウント動作を開始させ(402)、SOFパケットの出力を停止する(403)。尚、SOFパケット停止用タイマは、SOFパケットの出力が3ms以上停止しないよう設定される。つまり、SOFパケット出力停止から3ms経過前にSOFパケット停止用タイマ割り込みが発生されるようにする。そして、図4の(B)に示されるように、SOFパケット出力停止から3ms経過前にSOFパケット停止用タイマ割り込みが発生され(404)、それによってSOFパケット停止用タイマの動作が停止され(405)、SOFパケットの出力が再開される(406)。このような処理により、サスペンド状態に遷移されるまでの時間の範囲内でSOFパケットの出力を停止することができるので、実施の形態1,2のパケット出力調整に加えて、実施の形態3のSOFパケットの出力停止処理を実行することにより、USBホストデバイス111での消費電力を更に低減することができる。   In the throughput adjustment unit 114, as shown in FIG. 5A, the SOF packet stop process is performed. That is, when it is determined that the remaining amount of the battery 112 is equal to or less than the reference value (401), the count operation by the SOF packet stop timer is started (402), and the output of the SOF packet is stopped (403). The SOF packet stop timer is set so that the output of the SOF packet does not stop for 3 ms or longer. That is, the SOF packet stop timer interrupt is generated 3 ms before the SOF packet output stop. Then, as shown in FIG. 4B, an SOF packet stop timer interrupt is generated (404) 3 ms before the SOF packet output stop (404), thereby stopping the operation of the SOF packet stop timer (405). ), The output of the SOF packet is resumed (406). By such processing, since the output of the SOF packet can be stopped within the time range until the transition to the suspend state, in addition to the packet output adjustment of the first and second embodiments, the third embodiment By executing the SOF packet output stop process, the power consumption of the USB host device 111 can be further reduced.

以上本発明者によってなされた発明を実施形態に基づいて具体的に説明したが、本発明はそれに限定されるものではなく、その要旨を逸脱しない範囲において種々変更可能であることは言うまでもない。   Although the invention made by the present inventor has been specifically described based on the embodiments, it is needless to say that the present invention is not limited thereto and can be variously modified without departing from the gist thereof.

10 情報処理装置
11 USBホストシステム
12 USBペリフェラルデバイス
111 USBホストデバイス
112 電池
113 電池残量監視回路
114 スループット調整部
DESCRIPTION OF SYMBOLS 10 Information processing apparatus 11 USB host system 12 USB peripheral device 111 USB host device 112 Battery 113 Battery remaining amount monitoring circuit 114 Throughput adjustment part

Claims (4)

電池を電源として動作し、USBペリフェラルデバイスとの間でUSB通信を実行可能なUSBホストデバイスと、
上記電池の残量を監視する電池残量監視回路と、を含むUSBホストシステムであって、
上記USBホストデバイスは、上記電池残量監視回路での監視結果に基づいて、上記USBペリフェラルデバイスに対するパケット出力間隔を調整するためのスループット調整部を含み、
上記スループット調整部は、所定の時間間隔で形成されるスタートオブフレーム割り込みを用いて上記USBペリフェラルデバイスに対するパケット出力間隔を決定することを特徴とするUSBホストシステム。
A USB host device that operates using a battery as a power source and can perform USB communication with a USB peripheral device;
A USB host system including a battery remaining amount monitoring circuit for monitoring the remaining amount of the battery,
The USB host device includes a throughput adjustment unit for adjusting a packet output interval for the USB peripheral device based on a monitoring result in the battery remaining amount monitoring circuit,
The USB host system, wherein the throughput adjustment unit determines a packet output interval for the USB peripheral device using a start-of-frame interrupt formed at a predetermined time interval.
上記スループット調整部は、上記電池残量監視回路での監視結果に基づいて、USB規格上のサスペンド状態に遷移するまでの時間内で、上記USBペリフェラルデバイスに対するフレームパケットの出力停止期間を設ける請求項1記載のUSBホストシステム。   The throughput adjustment unit provides a frame packet output stop period for the USB peripheral device within a time period until a transition to a suspend state based on the USB standard is made based on a monitoring result of the battery remaining amount monitoring circuit. The USB host system according to 1. 電池を電源として動作し、USBペリフェラルデバイスとの間でUSB通信を実行可能なUSBホストデバイスと、
上記電池の残量を監視する電池残量監視回路と、を含むUSBホストシステムであって、
上記USBホストデバイスは、上記電池残量監視回路での監視結果に基づいて、上記USBペリフェラルデバイスに対するパケット出力間隔を調整するためのスループット調整部を含み、
上記スループット調整部は、パケット出力調整用タイマの割り込みを用いて上記USBペリフェラルデバイスに対するパケット出力間隔を決定することを特徴とするUSBホストシステム。
A USB host device that operates using a battery as a power source and can perform USB communication with a USB peripheral device;
A USB host system including a battery remaining amount monitoring circuit for monitoring the remaining amount of the battery,
The USB host device includes a throughput adjustment unit for adjusting a packet output interval for the USB peripheral device based on a monitoring result in the battery remaining amount monitoring circuit,
The USB host system, wherein the throughput adjustment unit determines a packet output interval for the USB peripheral device using an interrupt of a packet output adjustment timer.
上記スループット調整部は、上記電池残量監視回路での監視結果に基づいて、USB規格上のサスペンド状態に遷移するまでの時間内で、上記USBペリフェラルデバイスに対するスタートオブフレームパケットの出力停止期間を設ける請求項3記載のUSBホストシステム。   The throughput adjustment unit provides an output stop period of a start-of-frame packet for the USB peripheral device within a time period until a transition to the USB standard suspend state is made based on a monitoring result of the battery remaining amount monitoring circuit. The USB host system according to claim 3.
JP2011277036A 2011-12-19 2011-12-19 Usb host system Pending JP2013128214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011277036A JP2013128214A (en) 2011-12-19 2011-12-19 Usb host system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011277036A JP2013128214A (en) 2011-12-19 2011-12-19 Usb host system

Publications (1)

Publication Number Publication Date
JP2013128214A true JP2013128214A (en) 2013-06-27

Family

ID=48778504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011277036A Pending JP2013128214A (en) 2011-12-19 2011-12-19 Usb host system

Country Status (1)

Country Link
JP (1) JP2013128214A (en)

Similar Documents

Publication Publication Date Title
KR101553201B1 (en) Dynamic adjustment of an interrupt latency threshold and a resource supporting a processor in a portable computing device
US9176572B2 (en) System and method for controlling central processing unit power with guaranteed transient deadlines
KR101740338B1 (en) Apparatus and method for adaptive frequency scaling in digital system
US20100316065A1 (en) Method and apparatus for modulating the width of a high-speed link
EP3117319A1 (en) System and method for providing dynamic clock and voltage scaling (dcvs) aware interprocessor communication
US8281171B2 (en) Adjustment of power-saving strategy depending on working state of CPU
KR20130048786A (en) Coordinating device and application break events for platform power saving
WO2014123587A1 (en) System and method for controlling central processing unit power with guaranteed transient deadlines
US8190924B2 (en) Computer system, processor device, and method for controlling computer system
WO2015021892A1 (en) Power consumption reduction method, wi-fi master controller, and wi-fi gateway
US8650427B2 (en) Activity alignment algorithm by masking traffic flows
KR20180138351A (en) Apparatus and method for controlling power of cpu
US20120047390A1 (en) Apparatus and method of controlling a processor clock frequency
KR101578336B1 (en) System and method for controlling central processing unit power with guaranteed transient deadlines
TWI603187B (en) Periodic activity alignment
JP2013128214A (en) Usb host system
TWI386019B (en) Reciprocal wake-up system for handheld devices with insert type wireless communication module and a method therefore
US8539132B2 (en) Method and system for dynamically managing a bus of a portable computing device
US11487605B2 (en) Preemptive signal integrity control
TW200521648A (en) Method and apparatus for tuning over lock and tuning method for sub-stable state with high performance
JP6771823B2 (en) Mobile terminal
CN114003362B (en) Multi-dimensional dynamic interrupt aggregation method, system, equipment and storage medium
JP2005519393A5 (en)
US20230350484A1 (en) Device and method for efficient transitioning to and from reduced power state
JP2008084230A (en) Suspend control method of usb device, usb device, and suspend control program