JP7009866B2 - Electronic devices, communication processing methods and programs - Google Patents

Electronic devices, communication processing methods and programs Download PDF

Info

Publication number
JP7009866B2
JP7009866B2 JP2017181069A JP2017181069A JP7009866B2 JP 7009866 B2 JP7009866 B2 JP 7009866B2 JP 2017181069 A JP2017181069 A JP 2017181069A JP 2017181069 A JP2017181069 A JP 2017181069A JP 7009866 B2 JP7009866 B2 JP 7009866B2
Authority
JP
Japan
Prior art keywords
power saving
saving transition
state
satisfied
communication bus
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.)
Active
Application number
JP2017181069A
Other languages
Japanese (ja)
Other versions
JP2019057132A (en
Inventor
智也 田川
進哉 坂下
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2017181069A priority Critical patent/JP7009866B2/en
Publication of JP2019057132A publication Critical patent/JP2019057132A/en
Application granted granted Critical
Publication of JP7009866B2 publication Critical patent/JP7009866B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Direct Current Feeding And Distribution (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Power Sources (AREA)
  • Information Transfer Systems (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、電子機器、通信処理方法及びプログラム等に関する。 The present invention relates to electronic devices, communication processing methods, programs, and the like.

ホスト機器とペリフェラルデバイスとの間でシリアルの通信バスを介して高速に通信を行うための規格としてUSB(Universal Serial Bus)が知られている。例えばUSB3.0では、従来のUSB2.0のHS(High Speed)モードに加えて、5Gbpsでの高速通信が可能なSS(Super Speed)モードが用意されている。このようなUSB3.0のSSモードの通信を実現するペリフェラルデバイスの従来技術としては特許文献1に開示される技術がある。特許文献1では、USB3.0のSSのプロトコル回路等を有するSS処理部と、USB2.0のプロトコル回路等を有するNon-SS処理部を、ペリフェラルデバイスに設けている。そしてペリフェラルデバイスのSS処理部とNon-SS処理部が低電力状態になるようにホスト機器が制御する処理について開示されている。具体的には、SS処理部については、USB3.0の規格で定められるU1、U2又はU3の低電力状態になるように制御する。Non-SS処理部については、USB2.0の規格で定められるL1(スリープ)又はL2(サスペンド)の低電力状態になるように制御する。 USB (Universal Serial Bus) is known as a standard for high-speed communication between a host device and a peripheral device via a serial communication bus. For example, in USB3.0, in addition to the conventional HS (High Speed) mode of USB2.0, an SS (Super Speed) mode capable of high-speed communication at 5 Gbps is prepared. As a conventional technique of a peripheral device that realizes such communication in SS mode of USB3.0, there is a technique disclosed in Patent Document 1. In Patent Document 1, an SS processing unit having a USB3.0 SS protocol circuit and the like and a Non-SS processing unit having a USB2.0 protocol circuit and the like are provided in the peripheral device. Then, the processing in which the host device controls the SS processing unit and the Non-SS processing unit of the peripheral device so as to be in a low power state is disclosed. Specifically, the SS processing unit is controlled so as to be in a low power state of U1, U2 or U3 defined by the USB3.0 standard. The Non-SS processing unit is controlled so as to be in a low power state of L1 (sleep) or L2 (suspend) defined by the USB 2.0 standard.

特開2014-21821号公報Japanese Unexamined Patent Publication No. 2014-21821

USBの通信バスを省電力状態にすると、USBの通信の際に、まず初めに、省電力状態を非省電力状態に復帰させる必要がある。このため、この復帰期間がタイムロスとなって、USBの通信の開始が遅れてしまうという問題が生じる。またホスト機器によってはコマンドを発行する毎に省電移行要求を行う場合があり、省電力移行要求に対して処理を行う電子機器の処理負荷が過大になってしまうという問題もある。一方、USBを用いた通信システムでは、省電力化についても実現する必要がある。 When the USB communication bus is set to the power saving state, it is first necessary to restore the power saving state to the non-power saving state at the time of USB communication. Therefore, there is a problem that the return period becomes a time loss and the start of USB communication is delayed. Further, depending on the host device, a power saving transition request may be made every time a command is issued, and there is also a problem that the processing load of the electronic device that processes the power saving transition request becomes excessive. On the other hand, in a communication system using USB, it is necessary to realize power saving.

本発明の幾つかの態様によれば、USBの通信やジョブ実行の高速化を実現しつつ、省電力化についても実現できる電子機器、通信処理方法及びプログラム等を提供できる。 According to some aspects of the present invention, it is possible to provide an electronic device, a communication processing method, a program, and the like that can realize power saving while realizing high speed of USB communication and job execution.

本発明の一態様は、USBの通信バスを介して通信を行う通信部と、前記通信部の制御を行う処理部と、を含み、前記処理部は、前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させない電子機器に関係する。 One aspect of the present invention includes a communication unit that communicates via a USB communication bus and a processing unit that controls the communication unit, and the processing unit is from a host device connected to the communication bus. If the power saving transition condition is satisfied when the power saving transition request is received, the power saving transition request is permitted, the communication bus is shifted to the power saving state, and the power saving transition condition is satisfied. If not, it relates to an electronic device that rejects the power saving transition request and does not shift the communication bus to the power saving state.

本発明の一態様によれば、省電力移行条件が成立している場合には、ホスト機器からの省電力移行要求が許可されて、省電力状態に移行するため、省電力化を実現できる。一方、省電力移行条件が成立していない場合には、ホスト機器からの省電力移行要求が拒否されるようになるため、復帰時間がタイムロスとなってコマンドの実行が遅れてしまうのを防止できるようになる。従って、USBの通信やジョブ実行の高速化と省電力化とを両立して実現できる電子機器等の提供が可能になる。 According to one aspect of the present invention, when the power saving transition condition is satisfied, the power saving transition request from the host device is permitted and the power saving state is entered, so that the power saving can be realized. On the other hand, if the power saving transition condition is not satisfied, the power saving transition request from the host device is rejected, so that it is possible to prevent the recovery time from becoming a time loss and delaying the command execution. Will be. Therefore, it is possible to provide an electronic device or the like that can realize both high-speed USB communication and job execution and power saving.

また本発明の一態様では、前記処理部は、電子機器の状態が第1の状態である場合は、前記省電力移行条件が成立していると判定し、電子機器の状態が第2の状態である場合は、前記省電力移行条件が成立していないと判定してもよい。 Further, in one aspect of the present invention, when the state of the electronic device is the first state, the processing unit determines that the power saving transition condition is satisfied, and the state of the electronic device is the second state. If is, it may be determined that the power saving transition condition is not satisfied.

このようにすれば、電子機器の状態に応じて、省電力移行条件の成立の可否を判定して、ホスト機器からの省電力移行要求を許可したり、拒否したりすることが可能になる。 By doing so, it is possible to determine whether or not the power saving transition condition is satisfied according to the state of the electronic device, and to allow or reject the power saving transition request from the host device.

また本発明の一態様では、前記第1の状態は、前記第2の状態よりも電子機器が低消費電力となる状態であってもよい。 Further, in one aspect of the present invention, the first state may be a state in which the power consumption of the electronic device is lower than that of the second state.

このようにすれば、電子機器が、第2の状態よりも消費電力が小さい第1の状態である場合には、省電力移行要求が許可され、第1の状態よりも消費電力が大きい第2の状態である場合には、省電力移行要求が拒否されるようになる。 In this way, when the electronic device is in the first state where the power consumption is smaller than the second state, the power saving transition request is permitted, and the second state where the power consumption is larger than the first state. In this state, the power saving transition request will be rejected.

また本発明の一態様では、前記処理部は、前記省電力移行要求が、前記通信バスを第1の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していると判定し、前記省電力移行要求が、前記通信バスを第2の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していないと判定してもよい。 Further, in one aspect of the present invention, the processing unit states that the power saving transition condition is satisfied when the power saving transition request is a request for shifting the communication bus to the first power saving state. If the power saving transition request is a request to shift the communication bus to the second power saving state, it may be determined that the power saving transition condition is not satisfied.

このようにすれれば、第1の省電力状態への省電力移行要求である場合は、省電力移行要求が許可されて、第1の省電力状態に移行するようになり、第2の省電力状態への省電力移行要求である場合には、省電力移行要求が拒否されて、第2の省電力状態には移行しないようになる。 In this way, in the case of the power saving transition request to the first power saving state, the power saving transition request is permitted, and the transition to the first power saving state is started, and the second power saving is performed. In the case of a power saving transition request to the power state, the power saving transition request is rejected and the second power saving state is not shifted.

また本発明の一態様では、前記第2の省電力状態は、前記第1の省電力状態よりも、消費電力が小さい及び通常状態への復帰時間が長いの少なくとも一方となる省電力状態であってもよい。 Further, in one aspect of the present invention, the second power saving state is a power saving state in which the power consumption is smaller and the return time to the normal state is longer than the first power saving state. You may.

例えば第2の省電力状態は、第1の省電力状態よりも、消費電力が小さく且つ復帰時間が長い省電力状態である。或いは、第2の省電力状態は、第1の省電力状態よりも、消費電力が小さいか、又は、復帰時間が長い省電力状態であってもよい。 For example, the second power saving state is a power saving state in which the power consumption is smaller and the recovery time is longer than the first power saving state. Alternatively, the second power saving state may be a power saving state in which the power consumption is smaller or the recovery time is longer than the first power saving state.

また本発明の一態様では、前記処理部は、前記通信バスを介して発行されたコマンドが第1のコマンドである場合は、前記省電力移行条件が成立していると判定し、前記コマンドが第2のコマンドである場合は、前記省電力移行条件が成立していないと判定してもよい。 Further, in one aspect of the present invention, when the command issued via the communication bus is the first command, the processing unit determines that the power saving transition condition is satisfied, and the command is used. In the case of the second command, it may be determined that the power saving transition condition is not satisfied.

このようにすれば、通信バスを介して発行されたコマンドの種類や内容に応じて、省電力移行条件の成立の可否を判定して、ホスト機器からの省電力移行要求を許可したり、拒否したりすることが可能になる。 By doing so, it is determined whether or not the power saving transition condition is satisfied according to the type and content of the command issued via the communication bus, and the power saving transition request from the host device is permitted or rejected. It becomes possible to do.

また本発明の一態様では、前記処理部は、前記通信バスを介して発行されたコマンドが、コマンドに続いて送るべき情報がないコマンドである場合は、前記省電力移行条件が成立していると判定し、コマンドに続いて送るべき情報があるコマンドである場合は、前記省電力移行条件が成立していないと判定してもよい。 Further, in one aspect of the present invention, the processing unit satisfies the power saving transition condition when the command issued via the communication bus is a command for which there is no information to be sent following the command. If the command has information to be sent following the command, it may be determined that the power saving transition condition is not satisfied.

このようにすれば、コマンドに続いて送るべき情報があるコマンドの場合には、ホスト機器からの省電力移行要求を拒否することで、高速化を図れるようになる。一方、コマンドに続いて送るべき情報がないコマンドの場合には、省電力移行要求を許可することで、省電力化を図れるようになる。 In this way, in the case of a command that has information to be sent following the command, the speed can be increased by rejecting the power saving transition request from the host device. On the other hand, in the case of a command for which there is no information to be sent following the command, power saving can be achieved by permitting the power saving transition request.

また本発明の一態様では、前記処理部は、前記通信部が前記ホスト機器から一連のデータを受信する場合に、前記一連のデータの転送中は、前記省電力移行条件が成立していないと判定し、前記一連のデータの転送終了後は、前記省電力移行条件が成立していると判定してもよい。 Further, in one aspect of the present invention, when the communication unit receives a series of data from the host device, the processing unit does not satisfy the power saving transition condition during the transfer of the series of data. After the determination is completed and the transfer of the series of data is completed, it may be determined that the power saving transition condition is satisfied.

このようにすれば、一連のデータの転送中には、省電力移行要求が拒否されるため、省電力状態に移行してしまう事態を防止できるようになる。そして、一連のデータの転送終了後は、省電力移行要求が許可されるため、一連のデータの転送終了後に省電力状態に移行して、省電力化を図れるようになる。 By doing so, since the power saving transition request is rejected during the transfer of a series of data, it is possible to prevent the situation of shifting to the power saving state. Then, after the transfer of a series of data is completed, the power saving transition request is permitted, so that the power saving state can be shifted to after the transfer of the series of data is completed, and the power saving can be achieved.

また本発明の一態様では、前記一連のデータは印刷データであり、前記処理部は、印刷開始コマンドの受信後であり、且つ、印刷終了コマンドの受信前は、前記省電力移行条件が成立していないと判定し、前記印刷終了コマンドの受信後は、前記省電力移行条件が成立していると判定してもよい。 Further, in one aspect of the present invention, the series of data is print data, and the processing unit satisfies the power saving transition condition after receiving the print start command and before receiving the print end command. After receiving the print end command, it may be determined that the power saving transition condition is satisfied.

このようにすれば、一連の印刷データの受信中は、省電力状態に移行しないようになり、印刷データの高速転送が可能になる。そして、印刷終了コマンドを受信した後は、省電力移行要求を許可することで、省電力状態に移行するようになり、省電力化を図れる。 By doing so, during the reception of a series of print data, the power saving state is prevented from shifting, and the print data can be transferred at high speed. Then, after receiving the print end command, by permitting the power saving transition request, the power saving state can be shifted and the power saving can be achieved.

また本発明の一態様では、前記USBの通信バスは、USB3.0又はUSB3.1の規格に準拠した通信バスであってもよい。 Further, in one aspect of the present invention, the USB communication bus may be a communication bus compliant with the USB3.0 or USB3.1 standard.

但し、本発明の通信バスは、これに限定されず、USB3.0又はUSB3.1を発展させた規格に準拠した通信バスであってもよい。 However, the communication bus of the present invention is not limited to this, and may be a communication bus compliant with a standard developed from USB3.0 or USB3.1.

また本発明の他の態様は、USBの通信バスを用いた通信処理方法であって、前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記ホスト機器から前記省電力移行要求を受信したときに、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させない通信処理方法に関係する。 Another aspect of the present invention is a communication processing method using a USB communication bus, in which a power saving transition condition is satisfied when a power saving transition request is received from a host device connected to the communication bus. If so, the power saving transition condition is satisfied when the power saving transition request is permitted, the communication bus is shifted to the power saving state, and the power saving transition request is received from the host device. If not, it relates to a communication processing method that rejects the power saving transition request and does not shift the communication bus to the power saving state.

また本発明の他の態様は、USBの通信バスを介して通信を行う通信部と、前記通信部の制御を行う処理部として、コンピューターを機能させ、前記処理部は、前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させないプログラムに関係する。 In another aspect of the present invention, a computer functions as a communication unit that communicates via a USB communication bus and a processing unit that controls the communication unit, and the processing unit is connected to the communication bus. If the power saving transition condition is satisfied when the power saving transition request is received from the host device, the power saving transition request is permitted, the communication bus is shifted to the power saving state, and the power saving transition state is performed. If the transition condition is not satisfied, the present invention relates to a program that rejects the power saving transition request and does not shift the communication bus to the power saving state.

本実施形態の電子機器の構成例。Configuration example of the electronic device of this embodiment. PC(ホスト機器)とプリンター(電子機器)のUSB接続の説明図。An explanatory diagram of a USB connection between a PC (host device) and a printer (electronic device). USBの通信処理についての説明図。Explanatory drawing about USB communication processing. 移行可能な省電力状態についての説明図。Explanatory drawing about the power saving state which can be migrated. 従来の問題点を説明する通信シーケンス図。A communication sequence diagram illustrating conventional problems. 本実施形態の手法を説明する通信シーケンス図。The communication sequence diagram explaining the method of this embodiment. 本実施形態の手法の第1の適用例を説明する通信シーケンス図。The communication sequence diagram explaining the 1st application example of the method of this embodiment. 本実施形態の手法の第2の適用例を説明する通信シーケンス図。The communication sequence diagram explaining the 2nd application example of the method of this embodiment. 省電力状態U1、U2の説明図。Explanatory drawing of power saving state U1 and U2. 本実施形態の手法の第3の適用例を説明する通信シーケンス図。The communication sequence diagram explaining the 3rd application example of the method of this embodiment. 通常状態U0から省電力状態U1への移行許可の通信シーケンス図。The communication sequence diagram of the transition permission from the normal state U0 to the power saving state U1. 通常状態U0から省電力状態U1への移行拒否の通信シーケンス図。The communication sequence diagram of the transition refusal from the normal state U0 to the power saving state U1. 省電力状態U1から通常状態U0への復帰の通信シーケンス図。The communication sequence diagram of the return from the power saving state U1 to the normal state U0. 通常状態U0から省電力状態U2への移行許可の通信シーケンス図。The communication sequence diagram of the transition permission from the normal state U0 to the power saving state U2. 通常状態U0から省電力状態U2への移行拒否の通信シーケンス図。The communication sequence diagram of the transition refusal from the normal state U0 to the power saving state U2. 省電力状態U2から通常状態U0への復帰の通信シーケンス図。The communication sequence diagram of the return from the power saving state U2 to the normal state U0. 通常状態L0から省電力状態L1への移行許可の通信シーケンス図。The communication sequence diagram of the transition permission from the normal state L0 to the power saving state L1. 通常状態L0から省電力状態L1への移行拒否の通信シーケンス図。The communication sequence diagram of the transition refusal from the normal state L0 to the power saving state L1. 省電力状態L1から通常状態L0への復帰の通信シーケンス図。The communication sequence diagram of the return from the power saving state L1 to the normal state L0. U0、U1、U2のステート遷移図。State transition diagram of U0, U1, U2. 省電力状態U1からU2へのタイムアウトによる移行を説明する通信シーケンス図。The communication sequence diagram explaining the transition by the time-out from the power saving state U1 to U2. タイムアウト時間の経過前に強制的に通常状態U0に復帰させる手法の通信シーケンス図。The communication sequence diagram of the method of forcibly returning to the normal state U0 before the time-out time elapses.

以下、本発明の好適な実施の形態について詳細に説明する。なお以下に説明する本実施形態は特許請求の範囲に記載された本発明の内容を不当に限定するものではなく、本実施形態で説明される構成の全てが本発明の解決手段として必須であるとは限らない。 Hereinafter, preferred embodiments of the present invention will be described in detail. It should be noted that the present embodiment described below does not unreasonably limit the content of the present invention described in the claims, and all of the configurations described in the present embodiment are indispensable as the means for solving the present invention. Not necessarily.

1.電子機器
図1に本実施形態の電子機器10の構成例を示す。電子機器10は、処理部20、通信部30を含む。また電子機器10は、記憶部50、操作部60、表示部70、印刷部80を更に含むことができる。これらの処理部20、通信部30、記憶部50、操作部60、表示部70、印刷部80は、電子機器10の内部バス等の信号配線を介して電気的に接続されている。
1. 1. Electronic device FIG. 1 shows a configuration example of the electronic device 10 of the present embodiment. The electronic device 10 includes a processing unit 20 and a communication unit 30. Further, the electronic device 10 can further include a storage unit 50, an operation unit 60, a display unit 70, and a printing unit 80. The processing unit 20, the communication unit 30, the storage unit 50, the operation unit 60, the display unit 70, and the printing unit 80 are electrically connected via signal wiring such as an internal bus of the electronic device 10.

なお電子機器10は図1の構成に限定されず、これらの一部の構成要素(例えば操作部、表示部又は印刷部等)を省略したり、他の構成要素を追加するなどの種々の変形実施が可能である。また電子機器10は、例えばプリンター(印刷装置)である。或いは電子機器10は、スキャナー、ファクシミリ装置又はコピー機であってもよい。電子機器10は、複数の機能を有する複合機(MFP:Multifunction Peripheral)であってもよく、印刷機能を有する複合機もプリンターの一例である。或いは電子機器10は、プロジェクター、頭部装着型表示装置、ウェアラブル機器(リスト型ウェアラブル機器等)、生体情報測定機器(脈拍計、歩数計又は活動量計等)、ロボット、映像機器(カメラ等)、携帯情報端末(スマートフォン、携帯ゲーム機等)又は物理量計測機器等であってもよい。 The electronic device 10 is not limited to the configuration shown in FIG. 1, and various modifications such as omitting some of these components (for example, an operation unit, a display unit, a printing unit, etc.) or adding other components are added. It is possible to carry out. Further, the electronic device 10 is, for example, a printer (printing device). Alternatively, the electronic device 10 may be a scanner, a facsimile machine or a copier. The electronic device 10 may be a multifunction device (MFP: Multifunction Peripheral) having a plurality of functions, and a multifunction device having a printing function is also an example of a printer. Alternatively, the electronic device 10 includes a projector, a head-mounted display device, a wearable device (wrist-type wearable device, etc.), a biometric information measuring device (pulse meter, pedometer, activity meter, etc.), a robot, a video device (camera, etc.). , A portable information terminal (smartphone, portable game machine, etc.), a physical quantity measuring device, or the like.

処理部20(プロセッサー、コントローラー)は、電子機器10の各部(通信部、記憶部、印刷部等)の制御を行ったり、本実施形態の各種の処理を行う。例えば処理部20は、メインCPU21、サブCPU22などの複数のCPU(MPU、マイコン)を含むことができる。メインCPU21(メイン制御基板)は、電子機器10の各部の制御や全体的な制御を行う。サブCPU22は、例えば電子機器10がプリンターである場合には、印刷についての各種の処理を行う。或いは通信処理のためのCPUを更に設けてもよい。 The processing unit 20 (processor, controller) controls each unit (communication unit, storage unit, printing unit, etc.) of the electronic device 10, and performs various processes of the present embodiment. For example, the processing unit 20 can include a plurality of CPUs (MPU, microcomputer) such as a main CPU 21 and a sub CPU 22. The main CPU 21 (main control board) controls each part of the electronic device 10 and controls the whole. For example, when the electronic device 10 is a printer, the sub CPU 22 performs various processes related to printing. Alternatively, a CPU for communication processing may be further provided.

処理部20が行う本実施形態の各処理(各機能)は、プロセッサー(ハードウェアを含むプロセッサー)により実現できる。例えば本実施形態の各処理は、プログラム等の情報に基づき動作するプロセッサーと、プログラム等の情報を記憶するメモリー(記憶装置)により実現できる。ここでのプロセッサーは、例えば各部の機能が個別のハードウェアで実現されてもよいし、或いは各部の機能が一体のハードウェアで実現されてもよい。例えば、プロセッサーはハードウェアを含み、そのハードウェアは、デジタル信号を処理する回路及びアナログ信号を処理する回路の少なくとも一方を含むことができる。例えば、プロセッサーは、回路基板に実装された1又は複数の回路装置(例えばIC等)や、1又は複数の回路素子(例えば抵抗、キャパシター等)で構成することができる。プロセッサーは、例えばCPUであってもよい。ただし、プロセッサーはCPUに限定されるものではなく、GPU(Graphics Processing Unit)、或いはDSP(Digital Signal Processor)等、各種のプロセッサーを用いることが可能である。またプロセッサーはASICによるハードウェア回路でもよい。 Each process (each function) of the present embodiment performed by the processing unit 20 can be realized by a processor (a processor including hardware). For example, each process of the present embodiment can be realized by a processor that operates based on information such as a program and a memory (storage device) that stores information such as a program. In the processor here, for example, the functions of each part may be realized by individual hardware, or the functions of each part may be realized by integrated hardware. For example, the processor includes hardware, which hardware can include at least one of a circuit that processes a digital signal and a circuit that processes an analog signal. For example, a processor can be composed of one or more circuit devices (eg, ICs, etc.) mounted on a circuit board, or one or more circuit elements (eg, resistors, capacitors, etc.). The processor may be, for example, a CPU. However, the processor is not limited to the CPU, and various processors such as a GPU (Graphics Processing Unit) or a DSP (Digital Signal Processor) can be used. Further, the processor may be a hardware circuit by ASIC.

通信部30(通信インターフェース)は、少なくとも1つの通信デバイス(通信IC、インターフェースIC)により実現できる。通信部30は例えばUSBの通信処理を行う。例えば通信部30は、USBの通信バスBSを介してホスト機器(外部機器)との間で高速シリアル通信のインターフェース処理を行う。この場合には通信部30は、USBのデバイスコントローラーのIC等により実現される。或いは通信部30が、ブルートゥース(Bluetoothは登録商標)やWi-Fi(登録商標)の規格に準拠した無線通信処理を行ってもよい。 The communication unit 30 (communication interface) can be realized by at least one communication device (communication IC, interface IC). The communication unit 30 performs USB communication processing, for example. For example, the communication unit 30 performs interface processing for high-speed serial communication with a host device (external device) via the USB communication bus BS. In this case, the communication unit 30 is realized by an IC or the like of a USB device controller. Alternatively, the communication unit 30 may perform wireless communication processing conforming to the standards of Bluetooth (Bluetooth is a registered trademark) and Wi-Fi (registered trademark).

記憶部50(記憶装置、メモリー)は、データやプログラムなどの各種の情報を記憶する。処理部20や通信部30は例えば記憶部50をワーク領域として動作する。記憶部50は、SRAM、DRAMなどの半導体メモリーであってもよいし、レジスターであってもよいし、ハードディスク装置(HDD)などの磁気記憶装置であってもよいし、光学ディスク装置等の光学式記憶装置であってもよい。例えば、記憶部50はコンピューターにより読み取り可能な命令を格納しており、当該命令が処理部20(プロセッサー)により実行されることで、電子機器10の各部(通信部、処理部)の機能が実現されることになる。ここでの命令は、プログラムを構成する命令セットの命令でもよいし、処理部20(プロセッサー)のハードウェア回路に対して動作を指示する命令であってもよい。 The storage unit 50 (storage device, memory) stores various information such as data and programs. The processing unit 20 and the communication unit 30 operate, for example, using the storage unit 50 as a work area. The storage unit 50 may be a semiconductor memory such as SRAM or DRAM, a register, a magnetic storage device such as a hard disk device (HDD), or an optical disk device or the like. It may be an expression storage device. For example, the storage unit 50 stores instructions that can be read by a computer, and when the instructions are executed by the processing unit 20 (processor), the functions of each unit (communication unit, processing unit) of the electronic device 10 are realized. Will be done. The instruction here may be an instruction of an instruction set constituting the program, or may be an instruction instructing the hardware circuit of the processing unit 20 (processor) to operate.

操作部60(操作パネル)は、ユーザーが入力操作を行うためのものであり、操作ボタン、キー又はタッチセンサーなどにより実現できる。表示部70(ディスプレイ)は、各種の情報を表示するものであり、液晶や有機ELなどのディスプレイにより実現できる。なお操作部60及び表示部70は、例えばタッチパネルにより一体的に構成してもよい。 The operation unit 60 (operation panel) is for the user to perform an input operation, and can be realized by an operation button, a key, a touch sensor, or the like. The display unit 70 (display) displays various types of information, and can be realized by a display such as a liquid crystal display or an organic EL. The operation unit 60 and the display unit 70 may be integrally configured by, for example, a touch panel.

印刷部80は印刷エンジンにより実現される。印刷エンジンとは、印刷媒体への画像の印刷を実行する機械的構成である。印刷エンジンは、例えば搬送機構やインクジェット方式の吐出ヘッド、当該吐出ヘッドを含むキャリッジの駆動機構等を含む。印刷エンジンは、搬送機構により搬送される印刷媒体(紙や布)に対して、吐出ヘッドからインクを吐出することで、印刷媒体に画像を印刷する。なお、印刷エンジンの具体的構成はここで例示したものに限られず、レーザー方式でトナーにより印刷するものでもよい。また印刷部80は、印刷エンジンの稼働状態に関わる各種の物理量を検出するセンサーや、検出結果をカウントするカウンター等を含んでもよい。センサーやカウンターを用いることで、例えば搬送機構の駆動量(モーターの回転量)や、吐出ヘッドの往復回数、インクの消費量等の情報を取得できる。 The printing unit 80 is realized by a printing engine. A print engine is a mechanical configuration that prints an image on a print medium. The printing engine includes, for example, a transport mechanism, an inkjet discharge head, a drive mechanism of a carriage including the discharge head, and the like. The printing engine prints an image on the printing medium by ejecting ink from the ejection head onto the printing medium (paper or cloth) conveyed by the conveying mechanism. The specific configuration of the printing engine is not limited to the one illustrated here, and may be one that prints with toner by a laser method. Further, the printing unit 80 may include a sensor that detects various physical quantities related to the operating state of the printing engine, a counter that counts the detection result, and the like. By using a sensor or a counter, it is possible to acquire information such as the driving amount of the transport mechanism (rotation amount of the motor), the number of reciprocations of the ejection head, and the consumption amount of ink.

例えば図1の処理部20、通信部30は、プログラムに基づいて本実施形態の各処理を行うことができる。このプログラムは、例えばコンピューターにより読み取り可能な媒体である情報記憶媒体に格納できる。情報記憶媒体は、例えば光ディスク、メモリーカード、HDD、或いは半導体メモリー(ROM)などにより実現できる。処理部20、通信部30は、情報記憶媒体に格納されるプログラム(データ)に基づいて本実施形態の種々の処理を行う。即ち情報記憶媒体には、本実施形態の各部としてコンピューター(入力装置、処理部、記憶部、出力部を備える装置)を機能させるためのプログラム(各部の処理をコンピューターに実行させるためのプログラム)が記憶される。 For example, the processing unit 20 and the communication unit 30 in FIG. 1 can perform each processing of the present embodiment based on the program. This program can be stored in an information storage medium, which is a medium that can be read by a computer, for example. The information storage medium can be realized by, for example, an optical disk, a memory card, an HDD, a semiconductor memory (ROM), or the like. The processing unit 20 and the communication unit 30 perform various processes of the present embodiment based on the program (data) stored in the information storage medium. That is, the information storage medium has a program (a program for causing the computer to execute the processing of each part) for functioning a computer (a device including an input device, a processing unit, a storage unit, and an output unit) as each part of the present embodiment. It will be remembered.

図2は、電子機器10の一例であるプリンター210と、ホスト機器90の一例であるPC220(パーソナルコンピューター)とが、USBの通信バスBSを有するUSBケーブル230により接続されている。そしてプリンター210は、PC220からUSBケーブル230(通信バスBS)を介して印刷データを受信する。またプリンター210の各種のステータス情報はプリンター210からUSBケーブル230を介してPC220に送信される。またプリンター210が例えばスキャナーの機能も有する複合機である場合には、プリンター210のスキャナーにより読み取ったデータが、プリンター210からUSBケーブル230を介してPC220に送信される。 In FIG. 2, a printer 210, which is an example of an electronic device 10, and a PC 220 (personal computer), which is an example of a host device 90, are connected by a USB cable 230 having a USB communication bus BS. Then, the printer 210 receives print data from the PC 220 via the USB cable 230 (communication bus BS). Further, various status information of the printer 210 is transmitted from the printer 210 to the PC 220 via the USB cable 230. When the printer 210 is, for example, a multifunction device having a scanner function, the data read by the scanner of the printer 210 is transmitted from the printer 210 to the PC 220 via the USB cable 230.

次にUSB3.0の通信処理について図3を用いて説明する。なお、以下では、通信バスBSがUSB3.0の規格に準拠したバスである場合を主に例にとり説明するが、本実施形態における通信バスBSは、USB3.1などのUSB3.0を発展させた規格に準拠したバスであってもよい。USB3.1ではUSB3.0よりもデータ転送速度が高速化されており、USB3.0の5Gbpsのデータ転送モード(Super Speed(Gen1))に加えて、更に高速な10Gbpsのデータ転送モード(Super Speed Plus(Gen2))が追加されている。 Next, the communication process of USB3.0 will be described with reference to FIG. In the following, the case where the communication bus BS is a bus compliant with the USB3.0 standard will be mainly described as an example, but the communication bus BS in the present embodiment is an extension of USB3.0 such as USB3.1. The bus may be compliant with the standard. USB3.1 has a higher data transfer speed than USB3.0, and in addition to USB3.0's 5 Gbps data transfer mode (Super Speed (Gen1)), it has a higher speed of 10 Gbps data transfer mode (Super Speed). Plus (Gen2)) has been added.

図3に示すように電子機器10の通信部30は、例えばUSBデバイスコントローラー(IC)により実現され、SS処理部34とNon-SS処理部36を有する。SS処理部34は、例えばUSB3.0(又はUSB3.1。以下、同様)に準拠したSS(Super Speed)モードの物理層やリンク層やプロトコル層の処理などを行う。Non-SS処理部36は、例えばUSB2.0のHS(High Speed)モード、FS(Full Speed )モード、LS(Low Speed)モードの物理層やリンク層やプロトコル層の処理などを行う。 As shown in FIG. 3, the communication unit 30 of the electronic device 10 is realized by, for example, a USB device controller (IC), and has an SS processing unit 34 and a Non-SS processing unit 36. The SS processing unit 34 processes, for example, a physical layer, a link layer, and a protocol layer in SS (Super Speed) mode compliant with USB3.0 (or USB3.1; the same applies hereinafter). The Non-SS processing unit 36 processes, for example, the physical layer, the link layer, and the protocol layer of the HS (High Speed) mode, the FS (Full Speed) mode, and the LS (Low Speed) mode of USB 2.0.

ホスト機器90の通信部92は、例えばUSBホストコントローラー(IC)により実現され、SS処理部94とNon-SS処理部96を有する。SS処理部94は、例えばUSB3.0に準拠したSSモードの物理層やリンク層やプロトコル層の処理などを行う。Non-SS処理部96は、例えばUSB2.0のHSモード、LSモード、FSモードの物理層やリンク層やプロトコル層の処理などを行う。 The communication unit 92 of the host device 90 is realized by, for example, a USB host controller (IC), and has an SS processing unit 94 and a Non-SS processing unit 96. The SS processing unit 94 processes, for example, the physical layer, the link layer, and the protocol layer of the SS mode compliant with USB3.0. The Non-SS processing unit 96 processes, for example, the physical layer, link layer, and protocol layer of USB 2.0 in HS mode, LS mode, and FS mode.

USBの通信バスBSを有するUSBケーブル230は、電子機器10のUSBコネクター232(ダウンストリームポート)とホスト機器90のUSBコネクター234(アップストリームポート)に接続される。 The USB cable 230 having the USB communication bus BS is connected to the USB connector 232 (downstream port) of the electronic device 10 and the USB connector 234 (upstream port) of the host device 90.

USB3.0では、USB2.0のHSモードに加えて、SSモードが導入されている。HSモードでは、同じ通信線を送信と受信で切り替えて通信する半二重通信が行われるが、SSモードでは、送信と受信の各々に専用の通信線を持つ全二重通信が行われる。このため図3に示すように、USBケーブル230の通信バスBSは、SS用の通信線(送信用通信線、受信用通信線)と、HSなどのNon-SS用の通信線(送受信兼用の通信線)を有している。このようにSSモードでは、全二重通信を行うことで、HSモードの10倍程度である5Gbpsの高速転送を実現している。そしてUSB3.0では、USB2.0との下位互換を維持しながら、大きく変更された物理層の差を吸収するために、リンク層に種々の役割を持たせている。具体的には、リンク層は、リンク・トレーニング、パワーマネージメント、フレーミング、フロー・コントロールとバッファーのマネージメントを行う。 In USB3.0, SS mode is introduced in addition to HS mode of USB2.0. In the HS mode, half-duplex communication is performed in which the same communication line is switched between transmission and reception, and in SS mode, full-duplex communication in which a communication line dedicated to each of transmission and reception is performed is performed. Therefore, as shown in FIG. 3, the communication bus BS of the USB cable 230 has a communication line for SS (communication line for transmission and communication line for reception) and a communication line for Non-SS such as HS (for both transmission and reception). It has a communication line). As described above, in the SS mode, high-speed transfer of 5 Gbps, which is about 10 times that of the HS mode, is realized by performing full-duplex communication. In USB3.0, the link layer has various roles in order to absorb the greatly changed difference in the physical layer while maintaining backward compatibility with USB2.0. Specifically, the link layer manages link training, power management, framing, flow control and buffers.

USB3.0では、対向側の接続状態を知る手段として、PCI Expressと同様に、レシーバー検出と呼ばれる処理が行われる。レシーバー検出は、対向側が接続状態にあるか否かを電気的且つ周期的に判断するものである。そしてレシーバー検出により、対向側の存在を把握できた場合に、リンク・トレーニングのシーケンスを実施して、物理的及び論理的に接続状態を確認する。即ちリンク先のデバイスとの同期が取られ、リンクが確立される。 In USB3.0, as a means for knowing the connection state on the opposite side, a process called receiver detection is performed as in the case of PCI Express. The receiver detection electrically and periodically determines whether or not the opposite side is in the connected state. Then, when the presence of the opposite side can be grasped by the receiver detection, a link training sequence is performed to physically and logically confirm the connection state. That is, synchronization is achieved with the linked device, and the link is established.

具体的にはUSB3.0では、LTSSM(Link Training Status State Machine)によりシリアル通信バスのリンク・ステートが管理される。このLTSSMによりリンクのパワーマネージメントが行われる。例えばUSB3.0の全二重通信では、リンクがアクティブになると、アイドル状態であってもアイドル信号を使用して通信が継続される。このため、電力消費量が多くなり、LTSSMによるパワーマネージメントにより、必要のないデバイスは通信を止めて省電力状態に移行できるようにしている。 Specifically, in USB3.0, the link state of the serial communication bus is managed by the LTSSM (Link Training Status State Machine). Link power management is performed by this LTSSM. For example, in USB3.0 full-duplex communication, when a link becomes active, communication is continued using an idle signal even in an idle state. For this reason, power consumption increases, and power management by LTSSM enables unnecessary devices to stop communication and shift to a power saving state.

具体的にはLTSSMによるパワーマネージメントのステートとして、U0、U1、U2、U3のステートが規定されている。U0は、通常状態であり、リンク先とのパケット転送が行われるステートである。U1は、省電力状態であり、リンク先とのパケット転送は行われず、例えば送信/受信回路が停止する。即ちU1では、パケットの転送が停止し、リンクの両側が省電力状態に移行する。但し低周波バースト信号であるLFPS(Low Frequency Periodic Signaling)の送信が可能な程度にシステムの稼働状態を維持しておくことが要求される。U2は、U1よりも低電力の省電力状態であるが、U1よりも復帰時間(latency)がかかるステートであり、例えばクロック生成回路の停止などが行われる。U1からU2へは、例えばタイマーによるタイムアウトがトリガーとなって遷移する。このタイマーは、LFPS.Pingを受信するごとにリセット/リスタートされる。つまり、リンクの両側がどちらもU1に移行し、定期的にLFPS.Pingを送り続けている限り、U1のステートが維持される。U3は、サスペンド状態に移行させるステートであり、最も低消費電力のステートである。 Specifically, the states of U0, U1, U2, and U3 are defined as the states of power management by LTSSM. U0 is a normal state, and is a state in which packet transfer with the link destination is performed. U1 is in a power saving state, packet transfer with the link destination is not performed, and for example, the transmission / reception circuit is stopped. That is, in U1, the packet transfer is stopped, and both sides of the link shift to the power saving state. However, it is required to maintain the operating state of the system to the extent that LFPS (Low Frequency Periodic Signaling), which is a low frequency burst signal, can be transmitted. U2 is in a power saving state with lower power than U1, but is in a state in which a recovery time (latency) is longer than that in U1. For example, the clock generation circuit is stopped. The transition from U1 to U2 is triggered by, for example, a timeout by a timer. This timer is LFPS. It is reset / restarted every time a ping is received. That is, both sides of the link migrate to U1 and periodically LFPS. As long as you keep sending Ping, the state of U1 is maintained. U3 is a state that shifts to the suspend state, and is the state with the lowest power consumption.

リンク層では、パワーマネージメント用のリンク・コマンドとして、LGO_UX(U1、U2、U3への移行要求)、LAU(移行要求の許可)、LXU(移行要求の拒否)、LPMA(LAUの受信通知)が用意されている。これらのリンク・コマンドを用いることで、リンク層によりパワーマネージメントを行えるようになるため、プロトコル層やアプリケーション層の処理負荷を軽減できる。 In the link layer, LGO_UX (transition request to U1, U2, U3), LAU (permission of migration request), LXU (rejection of migration request), LPMA (reception notification of LAU) are used as link commands for power management. It is prepared. By using these link commands, power management can be performed by the link layer, so that the processing load of the protocol layer and the application layer can be reduced.

2.本実施形態の手法
図4に示すように、ホスト機器90がUSB3.0に非対応である場合には、USBの通信速度はHSになり、省電力状態L1への移行が可能になる。例えばUSB2.0においても、LPM(Link Power Management)のステートとして、L1(スリープ)、L2(サスペンド)などのステートが追加で定義されている。一方、ホスト機器90がUSB3.0に対応している場合には、USBの通信速度はSSになり、例えば省電力状態U1、U2への移行が可能になる。これらのL1、U1、U2は、ホスト側からの移行要求に対してデバイス側が拒否可能な省電力状態である。例えばL2、U3などは、ホスト側から移行要求に対して拒否できないステートである。
2. 2. Method of the present embodiment As shown in FIG. 4, when the host device 90 does not support USB3.0, the communication speed of USB becomes HS, and it becomes possible to shift to the power saving state L1. For example, even in USB 2.0, states such as L1 (sleep) and L2 (suspend) are additionally defined as LPM (Link Power Management) states. On the other hand, when the host device 90 is compatible with USB3.0, the communication speed of USB becomes SS, and for example, it is possible to shift to the power saving states U1 and U2. These L1, U1 and U2 are in a power saving state in which the device side can reject the migration request from the host side. For example, L2, U3, etc. are states that cannot be rejected from the host side in response to the migration request.

そして、USBの通信バスBSが省電力状態になると、USBの通信の際に、まず初めに、省電力状態から復帰する必要がある。このため、この復帰時間がタイムロスとなって、USBの通信の開始が遅れてしまうという問題が発生する。 Then, when the USB communication bus BS is in the power saving state, it is necessary to first recover from the power saving state at the time of USB communication. Therefore, there arises a problem that the recovery time becomes a time loss and the start of USB communication is delayed.

例えば図5に示すように、ホスト機器90(USBホスト)が電子機器10(USBデバイス)に対して省電力移行要求(省電力状態への移行要求)を行い、電子機器10が移行要求を許可すると、USBの通信バスBSは省電力状態になる。このように省電力状態になったときに、ホスト機器90がコマンドを送信したい場合には、省電力復帰要求(省電力状態への復帰要求)を行い、電子機器10が、この復帰要求を許可する必要がある。そして復帰要求の許可により、通信バスBSが通常状態に復帰し、その後にホスト機器90がコマンドを送信する必要がある。このためホスト機器90は、直ぐにはコマンドを送信できず、復帰時間のタイムラグ分だけ、コマンドの送信が遅れてしまう。例えば電子機器10がプリンターであり、コマンドが印刷コマンドである場合には、印刷の開始が遅れてしまい、ユーザーを待たせてしまうという問題が発生する。 For example, as shown in FIG. 5, the host device 90 (USB host) makes a power saving transition request (transition request to the power saving state) to the electronic device 10 (USB device), and the electronic device 10 permits the migration request. Then, the USB communication bus BS is in a power saving state. If the host device 90 wants to send a command when the power saving state is reached in this way, a power saving return request (return request to the power saving state) is made, and the electronic device 10 permits this return request. There is a need to. Then, with the permission of the return request, the communication bus BS needs to return to the normal state, and then the host device 90 needs to send a command. Therefore, the host device 90 cannot immediately transmit the command, and the transmission of the command is delayed by the time lag of the return time. For example, when the electronic device 10 is a printer and the command is a print command, there arises a problem that the start of printing is delayed and the user is kept waiting.

そこで本実施形態では、省電力移行要求を強制的に拒否させることで、USBの通信の高速化を図る手法を採用する。即ち図6に示すように、ホスト機器90からの省電力移行要求に対して、電子機器10が拒否できるようする。例えば省電力移行条件が成立している場合は、省電力移行要求を許可し、省電力移行条件が成立していない場合は、省電力移行要求を拒否できるようにする。これにより、図5のように通信バスBSが省電力状態に移行してしまうのが防止され、図6に示すように通信バスBS(リンク層のステート)が通常状態に維持される。従って、ホスト機器90は、直ぐにコマンドを送信できるようになり、USBの通信の高速化を実現できる。プリンターを例にとれば、印刷コマンドを直ぐに送信できるようになり、ユーザーの印刷の待ち時間を短縮できるようになる。 Therefore, in the present embodiment, a method for speeding up USB communication is adopted by forcibly rejecting the power saving transition request. That is, as shown in FIG. 6, the electronic device 10 can reject the power saving transition request from the host device 90. For example, if the power saving transition condition is satisfied, the power saving transition request is permitted, and if the power saving transition condition is not satisfied, the power saving transition request can be rejected. As a result, it is prevented that the communication bus BS shifts to the power saving state as shown in FIG. 5, and the communication bus BS (link layer state) is maintained in the normal state as shown in FIG. Therefore, the host device 90 can immediately send a command, and can realize high-speed USB communication. Taking a printer as an example, print commands can be sent immediately, reducing the user's waiting time for printing.

具体的には図1に示すように本実施形態の電子機器10は、USBの通信バスBSを介して通信を行う通信部30と、通信部30の制御を行う処理部20を含む。例えば本実施形態のプログラムは、USBの通信バスBSを介して通信を行う通信部30と、通信部30の制御を行う処理部20として、コンピューター(電子機器)を機能させる。そして処理部20は、通信バスBSに接続されるホスト機器90から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、省電力移行要求を許可して、通信バスBS(リンク・ステート)を省電力状態(例えばU1、U2)に移行させる。一方、処理部20は、省電力移行条件が成立していない場合は、省電力移行要求を拒否して、通信バスBS(リンク・ステート)を省電力状態に移行させないようにする。即ち図6に示すようにホスト機器90からの省電力移行要求を拒否して、通信バスBSを通常状態(例えばU0)に維持する。このようにUSBの通信バスBSを用いた本実施形態の通信処理方法では、ホスト機器90から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、省電力移行要求を許可して、通信バスBSを省電力状態に移行させ、省電力移行条件が成立していない場合は、省電力移行要求を拒否して、通信バスBSを省電力状態に移行させないようにする。 Specifically, as shown in FIG. 1, the electronic device 10 of the present embodiment includes a communication unit 30 that communicates via a USB communication bus BS and a processing unit 20 that controls the communication unit 30. For example, the program of this embodiment causes a computer (electronic device) to function as a communication unit 30 that communicates via a USB communication bus BS and a processing unit 20 that controls the communication unit 30. Then, when the processing unit 20 receives the power saving transition request from the host device 90 connected to the communication bus BS, if the power saving transition condition is satisfied, the processing unit 20 permits the power saving transition request and the communication bus. The BS (link state) is shifted to a power saving state (for example, U1, U2). On the other hand, if the power saving transition condition is not satisfied, the processing unit 20 rejects the power saving transition request and prevents the communication bus BS (link state) from shifting to the power saving state. That is, as shown in FIG. 6, the power saving transition request from the host device 90 is rejected, and the communication bus BS is maintained in the normal state (for example, U0). As described above, in the communication processing method of the present embodiment using the USB communication bus BS, when the power saving transition request is received from the host device 90, if the power saving transition condition is satisfied, the power saving transition request is made. Allows the communication bus BS to shift to the power saving state, and if the power saving transition condition is not satisfied, rejects the power saving transition request and prevents the communication bus BS from shifting to the power saving state. ..

このようにすれば、省電力移行条件が成立している場合には、ホスト機器90からの省電力移行要求が許可されて、省電力状態に移行するため、省電力化を実現できる。一方、省電力移行条件が成立していない場合には、ホスト機器90からの省電力移行要求が拒否されるため、復帰時間がタイムロスとなってコマンドの実行が遅れてしまうのを防止でき、USBの通信やジョブ実行の高速化を図れるようになる。電子機器10がプリンターである場合には、例えば印刷の待ち時間の短縮化などを実現できる。従って、USBの通信やジョブ実行の高速化と省電力化とを両立して実現することが可能になる。 By doing so, when the power saving transition condition is satisfied, the power saving transition request from the host device 90 is permitted, and the power saving state is entered, so that the power saving can be realized. On the other hand, if the power saving transition condition is not satisfied, the power saving transition request from the host device 90 is rejected, so that it is possible to prevent the recovery time from being lost and the command execution from being delayed, and the USB. Communication and job execution can be speeded up. When the electronic device 10 is a printer, for example, the waiting time for printing can be shortened. Therefore, it is possible to realize both high-speed USB communication and job execution and power saving.

例えばホスト機器90によっては、コマンドを発行する毎に省電力移行要求を行う場合がある。このようなホスト機器90に通信バスBSを介して接続される電子機器10は、この省電力移行要求を拒否できないと、コマンドが発行される毎に省電力状態に移行してしまうようになり、USBの通信やジョブ実行の高速化が妨げられたり、省電力移行要求に対応するための電子機器10の処理負荷が過大になってしまうという問題が生じる。この点、本実施形態では、省電力移行条件が成立していない場合には、ホスト機器90からの省電力移行要求が拒否されるため、このような問題の発生を防止できる。 For example, depending on the host device 90, a power saving transition request may be made every time a command is issued. If the electronic device 10 connected to the host device 90 via the communication bus BS cannot reject the power saving transition request, the electronic device 10 shifts to the power saving state every time a command is issued. There is a problem that the speed of USB communication and job execution is hindered, and the processing load of the electronic device 10 for responding to the power saving transition request becomes excessive. In this respect, in the present embodiment, if the power saving transition condition is not satisfied, the power saving transition request from the host device 90 is rejected, so that the occurrence of such a problem can be prevented.

なお省電力移行条件は、例えば省電力状態への移行を許可又は拒否するかを判断するための基準となる条件である。省電力移行条件は、例えば電子機器10の状態(通常状態、省電力状態等)、省電力移行要求の対象となる省電力状態の内容や種類、或いは発行されたコマンドの内容や種類などに基づいて設定される。また後述するように、省電力移行要求は、例えばLGO_U1、LGO_U2又はLPMなどである。省電力移行要求の許可は、例えばLAU、ACKなどである。省電力移行要求の拒否は、例えばLXU、NAKなどである。 The power saving transition condition is, for example, a condition that serves as a standard for determining whether to permit or reject the transition to the power saving state. The power saving transition conditions are based on, for example, the state of the electronic device 10 (normal state, power saving state, etc.), the content and type of the power saving state subject to the power saving transition request, the content and type of the issued command, and the like. Is set. Further, as will be described later, the power saving transition request is, for example, LGO_U1, LGO_U2, LPM, or the like. The permission of the power saving transition request is, for example, LAU, ACK, or the like. The refusal of the power saving transition request is, for example, LXU, NAK, or the like.

図7は本実施形態の手法の第1の適用例を説明する図である。図7では、USBデバイスである電子機器10が複数の状態を持つ場合に、その状態に応じて省電力移行要求への応答を切り替えて、USBの通信等の高速化と低消費電力とを両立して実現する。 FIG. 7 is a diagram illustrating a first application example of the method of the present embodiment. In FIG. 7, when the electronic device 10 as a USB device has a plurality of states, the response to the power saving transition request is switched according to the states to achieve both high speed and low power consumption of USB communication and the like. To be realized.

例えば図7に示すように、電子機器10が通常状態(広義には第2の状態)である場合は、ホスト機器90からの省電力移行要求を拒否するようにする。即ち、電子機器10が、スリープ状態等の省電力状態ではなく、通常状態(アイドル状態)である場合には、省電力移行条件が成立していないと判断して、省電力移行要求を拒否する。一方、電子機器10が省電力状態(広義には第1の状態)である場合は、ホスト機器90からの省電力移行要求を許可するようにする。即ち、電子機器10が、スリープ状態、クロックダウン状態又はディープスリープ状態等の省電力状態である場合には、省電力移行条件が成立していると判断して、省電力移行要求を許可する。 For example, as shown in FIG. 7, when the electronic device 10 is in the normal state (broadly defined as the second state), the power saving transition request from the host device 90 is rejected. That is, when the electronic device 10 is in a normal state (idle state) instead of a power saving state such as a sleep state, it is determined that the power saving transition condition is not satisfied, and the power saving transition request is rejected. .. On the other hand, when the electronic device 10 is in the power saving state (in a broad sense, the first state), the power saving transition request from the host device 90 is permitted. That is, when the electronic device 10 is in a power saving state such as a sleep state, a clock down state, or a deep sleep state, it is determined that the power saving transition condition is satisfied, and the power saving transition request is permitted.

このように本実施形態では、処理部20は、電子機器10の状態が第1の状態である場合は、省電力移行条件が成立していると判定し、電子機器10の状態が第2の状態である場合は、省電力移行条件が成立していないと判定する。即ち、電子機器10が省電力状態等の第1の状態である場合は、省電力移行条件が成立していると判定し、ホスト機器90からの省電力移行要求を許可して、USBの通信バスBSを省電力状態に移行させる。一方、電子機器10が通常状態等の第2の状態である場合は、省電力移行条件が成立していないと判定し、ホスト機器90からの省電力移行要求を拒否して、USBの通信バスBSを省電力状態に移行させないようにする。ここで例えば第1の状態は、第2の状態よりも電子機器10が低消費電力となる状態である。即ち、第1の状態(例えばスリープ状態)での電子機器10の消費電力は、第2の状態(例えば通常状態)での電子機器10の消費電力よりも小さい。 As described above, in the present embodiment, when the state of the electronic device 10 is the first state, the processing unit 20 determines that the power saving transition condition is satisfied, and the state of the electronic device 10 is the second state. If it is in the state, it is determined that the power saving transition condition is not satisfied. That is, when the electronic device 10 is in the first state such as the power saving state, it is determined that the power saving transition condition is satisfied, the power saving transition request from the host device 90 is permitted, and the USB communication is performed. Move the bus BS to a power saving state. On the other hand, when the electronic device 10 is in the second state such as the normal state, it is determined that the power saving transition condition is not satisfied, the power saving transition request from the host device 90 is rejected, and the USB communication bus is used. Prevent the BS from shifting to a power saving state. Here, for example, the first state is a state in which the power consumption of the electronic device 10 is lower than that in the second state. That is, the power consumption of the electronic device 10 in the first state (for example, the sleep state) is smaller than the power consumption of the electronic device 10 in the second state (for example, the normal state).

このようにすれば、電子機器10の状態に応じて、省電力移行条件の成立の可否を判定して、ホスト機器90からの省電力移行要求を許可したり、拒否することが可能になる。従って、電子機器10の状態を反映させた省電力移行条件の成立の可否判定が可能になり、適正な省電力移行制御を実現できる。例えば電子機器10が、通常状態である場合には、ホスト機器90がコマンドの発行後に送って来る省電力移行要求を拒否して、通信バスBSを通常状態に維持できる。従って、図6に示すように、次にホスト機器90がコマンドを発行した場合に、当該コマンドを直ぐに実行できるようになる。電子機器10がプリンターである場合を例にとれば、ホスト機器90が印刷コマンドを送る毎に通信バスBSが省電力状態に移行してしまう事態を回避でき、ホスト機器90が送って来る印刷コマンドを次々に処理できるようになる。一方、電子機器10が省電力状態である場合には、ホスト機器90からの省電力移行要求を許可して、電子機器10のみならず、USBの通信バスBSについても省電力状態に移行するようになる。従って、電子機器10や電子機器10及びホスト機器90を含むシステムの更なる省電力化を図れるようになる。 By doing so, it is possible to determine whether or not the power saving transition condition is satisfied according to the state of the electronic device 10, and to allow or reject the power saving transition request from the host device 90. Therefore, it is possible to determine whether or not the power saving transition condition that reflects the state of the electronic device 10 is satisfied, and it is possible to realize appropriate power saving transition control. For example, when the electronic device 10 is in the normal state, the communication bus BS can be maintained in the normal state by rejecting the power saving transition request sent by the host device 90 after issuing the command. Therefore, as shown in FIG. 6, the next time the host device 90 issues a command, the command can be executed immediately. Taking the case where the electronic device 10 is a printer as an example, it is possible to avoid the situation where the communication bus BS shifts to the power saving state every time the host device 90 sends a print command, and the print command sent by the host device 90 can be avoided. Can be processed one after another. On the other hand, when the electronic device 10 is in the power saving state, the power saving transition request from the host device 90 is permitted so that not only the electronic device 10 but also the USB communication bus BS shifts to the power saving state. become. Therefore, it becomes possible to further reduce the power consumption of the system including the electronic device 10, the electronic device 10, and the host device 90.

例えば電子機器10がプリンターである場合に、電子機器10の通常状態は、アイドル状態である。このアイドル状態は、プリンターからの印刷指示(印刷コマンド)を受けて、直ぐに印刷処理を実行可能な待機状態である。また電子機器10の省電力状態は、スリープ状態、クロックダウン状態又はディープスリープ状態などである。スリープ状態は、例えばプリンターの一部のユニットが省電力状態に設定される状態である。例えば図1の印刷部80である印刷エンジンや、操作部60や表示部70である操作パネルが省電力状態に設定される。具体的には印刷エンジンの一部の機能が停止したり、操作パネルのディスプレイのバックライトが消灯する。クロックダウン状態では、スリープ状態に加えて、例えば図1のメインCPU21などの動作クロックの周波数を低下させる。ディープスリープ状態では、プリンターの一部のユニットが電源オフ状態に設定され、メインCPU21も電源オフ状態に設定される。例えば記憶部50も電源オフ状態に設定される。通信部30は例えば省電力状態に設定される。 For example, when the electronic device 10 is a printer, the normal state of the electronic device 10 is an idle state. This idle state is a standby state in which the print process can be immediately executed in response to a print instruction (print command) from the printer. The power saving state of the electronic device 10 is a sleep state, a clock down state, a deep sleep state, or the like. The sleep state is, for example, a state in which some units of the printer are set to the power saving state. For example, the print engine which is the printing unit 80 of FIG. 1 and the operation panel which is the operation unit 60 and the display unit 70 are set to the power saving state. Specifically, some functions of the printing engine are stopped, or the backlight of the display on the operation panel is turned off. In the clock down state, in addition to the sleep state, the frequency of the operating clock of, for example, the main CPU 21 in FIG. 1 is lowered. In the deep sleep state, some units of the printer are set to the power off state, and the main CPU 21 is also set to the power off state. For example, the storage unit 50 is also set to the power off state. The communication unit 30 is set to, for example, a power saving state.

なお、省電力移行条件が成立していると判定される電子機器10の第1の状態や、省電力移行条件が成立していないと判定される電子機器10の第2の状態としては、種々の状態を想定できる。例えば第1の状態が電子機器10の省電力状態であり、第2の状態が電子機器10の通常状態(アイドル状態)であってもよい。或いは、第1の状態が電子機器10のクロックダウン状態であり、第2の状態がスリープ状態であったり、第1の状態がディープスリープ状態であり、第2の状態がクロックダウン状態であってもよい。このように、第2の状態より消費電力が小さい第1の状態において、省電力移行条件が成立していると判定することで、電子機器10や電子機器10及びホスト機器90を含むシステムの更なる省電力化を図れる。また、第1の状態より消費電力が大きい第2の状態において、省電力移行条件が成立していないと判定することで、USBの通信やジョブ実行の高速化を図れるようになる。 The first state of the electronic device 10 determined to satisfy the power saving transition condition and the second state of the electronic device 10 determined not to satisfy the power saving transition condition are various. Can be assumed. For example, the first state may be the power saving state of the electronic device 10, and the second state may be the normal state (idle state) of the electronic device 10. Alternatively, the first state is the clock down state of the electronic device 10, the second state is the sleep state, or the first state is the deep sleep state and the second state is the clock down state. May be good. In this way, by determining that the power saving transition condition is satisfied in the first state where the power consumption is smaller than that in the second state, the system including the electronic device 10, the electronic device 10, and the host device 90 can be upgraded. It is possible to save power. Further, in the second state where the power consumption is larger than that in the first state, it is possible to speed up the USB communication and job execution by determining that the power saving transition condition is not satisfied.

図8は本実施形態の手法の第2の適用例を説明する図である。図8では、省電力移行要求の対象となる省電力状態に応じて、省電力移行要求への応答を切り替えて、USBの通信等の高速化と低消費電力を両立して実現する。 FIG. 8 is a diagram illustrating a second application example of the method of the present embodiment. In FIG. 8, the response to the power saving transition request is switched according to the power saving state that is the target of the power saving transition request, and both high speed and low power consumption of USB communication and the like are realized.

例えば図8に示すように、ホスト機器90からの省電力移行要求が、省電力状態U2(広義には第2の省電力状態)への移行要求である場合には、この省電力移行要求を拒否するようにする。即ち、省電力移行条件が成立していないと判断して、省電力移行要求を拒否できるようにする。一方、ホスト機器90から来た移行要求が、省電力状態U1(広義には第1の省電力状態)への移行要求である場合には、ホスト機器90からの省電力移行要求を許可する。即ち、省電力移行条件が成立していると判断して、省電力移行要求を許可する。 For example, as shown in FIG. 8, when the power saving transition request from the host device 90 is a transition request to the power saving state U2 (broadly speaking, the second power saving state), this power saving transition request is made. Try to refuse. That is, it is determined that the power saving transition condition is not satisfied, and the power saving transition request can be rejected. On the other hand, when the transition request coming from the host device 90 is a transition request to the power saving state U1 (broadly speaking, the first power saving state), the power saving transition request from the host device 90 is permitted. That is, it is determined that the power saving transition condition is satisfied, and the power saving transition request is permitted.

このように本実施形態では、処理部20は、省電力移行要求が、通信バスBSを第1の省電力状態に移行させる要求である場合は、省電力移行条件が成立していると判定し、省電力移行要求が、通信バスBSを第2の省電力状態に移行させる要求である場合は、省電力移行条件が成立していないと判定する。即ち第1の省電力状態への移行要求である場合には、省電力移行条件が成立していると判定し、ホスト機器90からの省電力移行要求を許可して、USBの通信バスBSを省電力状態に移行させる。一方、第2の省電力状態への移行要求である場合には、省電力移行条件が成立していないと判定し、ホスト機器90からの省電力移行要求を拒否して、通信バスBSを省電力状態に移行させないようにする。 As described above, in the present embodiment, the processing unit 20 determines that the power saving transition condition is satisfied when the power saving transition request is a request for shifting the communication bus BS to the first power saving state. If the power saving transition request is a request to shift the communication bus BS to the second power saving state, it is determined that the power saving transition condition is not satisfied. That is, in the case of the first power saving transition request, it is determined that the power saving transition condition is satisfied, the power saving transition request from the host device 90 is permitted, and the USB communication bus BS is used. Move to a power saving state. On the other hand, in the case of the second power saving transition request, it is determined that the power saving transition condition is not satisfied, the power saving transition request from the host device 90 is rejected, and the communication bus BS is saved. Do not shift to the power state.

ここで例えば第2の省電力状態は、第1の省電力状態よりも、消費電力が小さい及び通常状態への復帰時間が長いの少なくとも一方となる省電力状態である。例えば第2の省電力状態は、第1の省電力状態よりも、消費電力が小さく且つ復帰時間が長い省電力状態である。或いは、第2の省電力状態は、第1の省電力状態よりも、消費電力が小さいか、又は、復帰時間が長い省電力状態であってもよい。具体的には、図9に示すように、第1の省電力状態の一例である省電力状態U1は、消費電力は大きいが、省電力状態からの復帰時間が短い。一方、第2の省電力状態の一例である省電力状態U2は、消費電力は小さいが、省電力状態からの復帰時間が長い。 Here, for example, the second power saving state is a power saving state in which the power consumption is smaller and the return time to the normal state is longer than that of the first power saving state. For example, the second power saving state is a power saving state in which the power consumption is smaller and the recovery time is longer than the first power saving state. Alternatively, the second power saving state may be a power saving state in which the power consumption is smaller or the recovery time is longer than the first power saving state. Specifically, as shown in FIG. 9, the power saving state U1, which is an example of the first power saving state, consumes a large amount of power but has a short recovery time from the power saving state. On the other hand, in the power saving state U2, which is an example of the second power saving state, the power consumption is small, but the recovery time from the power saving state is long.

このように省電力状態U2は、省電力状態からの復帰時間が長いため、この復帰時間がタイムロスとなって、USBの通信の開始が遅れてしまう。例えば図5のように、省電力状態U2の長い復帰時間の間、次のコマンドを送信できなくなるため、USBの通信やジョブ実行の高速化を妨げてしまう。省電力状態U2の復帰時間(latency)は例えばmsのオーダー(low ms range)であるため、このような長い復帰時間を待つことは、高速化の大きな妨げとなってしまう。 As described above, in the power saving state U2, the recovery time from the power saving state is long, so that the recovery time becomes a time loss and the start of USB communication is delayed. For example, as shown in FIG. 5, during the long recovery time of the power saving state U2, the next command cannot be transmitted, which hinders the speeding up of USB communication and job execution. Since the latency of the power saving state U2 is, for example, on the order of ms (low ms range), waiting for such a long recovery time is a major obstacle to speeding up.

この点、本実施形態では、図8に示すように、ホスト機器90からの省電力状態U2への移行要求を、電子機器10が拒否する。即ち処理部20は、省電力状態U2への移行要求である場合には、省電力移行条件が成立していないと判定して、移行要求を拒否する。従って、msのオーダーとなる復帰時間を待たなくても済むようになり、USBの通信やジョブ実行の高速化を図れる。 In this regard, in the present embodiment, as shown in FIG. 8, the electronic device 10 rejects the request for transition from the host device 90 to the power saving state U2. That is, in the case of a request for transition to the power saving state U2, the processing unit 20 determines that the power saving transition condition is not satisfied, and rejects the transition request. Therefore, it is not necessary to wait for the return time, which is on the order of ms, and the speed of USB communication and job execution can be increased.

一方、省電力状態U1は、U2に比べて消費電力は大きいものの、省電力状態からの復帰時間が短く、例えばμsのオーダーの復帰時間である。従って、省電力状態U1への移行要求を図8に示すように許可しても、省電力状態U2を許可する場合に比べて、それほど高速化の妨げにはならない。そして省電力状態U1への移行要求を許可することで、省電力化を図れる。即ち、省電力状態U1への移行要求は許可する一方で、省電力状態U2への移行要求を拒否することで、USBの通信やジョブ実行の高速化と省電力化とを両立して実現することが可能になる。 On the other hand, the power saving state U1 consumes more power than U2, but the recovery time from the power saving state is short, for example, the recovery time on the order of μs. Therefore, even if the request for transition to the power saving state U1 is permitted as shown in FIG. 8, it does not hinder the speeding up so much as compared with the case where the power saving state U2 is permitted. Then, by permitting the request for transition to the power saving state U1, the power saving can be achieved. That is, by permitting the request for transition to the power saving state U1 and rejecting the request for transitioning to the power saving state U2, both speeding up of USB communication and job execution and power saving are realized at the same time. Will be possible.

例えばホスト機器90によっては、コマンドを発行する毎に省電力移行要求を行う場合がある。そしてコマンドを発行する毎に行われる省電力移行要求がU1である場合には、移行要求を許可しても、復帰時間が短いため、それほど高速化の妨げとならない。そしてU1への移行要求を許可することで、省電力化を実現できる。即ち、高速化の方をある程度犠牲にして、省電力化の方を優先する。一方、U2への移行要求である場合には、これを許可すると、msのオーダーの復帰時間の間、待たなくなってしまうため、U2への移行要求については拒否して、通信やジョブ実行の高速化を図る。即ち、省電力化の方をある程度犠牲にして、高速化の方を優先する。なお以上では、第1の省電力状態がU1であり、第2の省電力状態がU2である場合を主に例にとり説明したが、本実施形態はこれに限定されず、第1、第2の省電力状態はU1、U2以外の省電力状態であってもよい。 For example, depending on the host device 90, a power saving transition request may be made every time a command is issued. When the power saving transition request made every time a command is issued is U1, even if the transition request is permitted, the recovery time is short, so that the speedup is not so hindered. Then, by permitting the transition request to U1, power saving can be realized. That is, power saving is prioritized at the expense of speeding up to some extent. On the other hand, in the case of a U2 migration request, if this is permitted, it will not be possible to wait for the return time of the ms order. Therefore, the U2 migration request is rejected and communication and job execution are performed at high speed. Aim for conversion. That is, at the expense of power saving to some extent, priority is given to speeding up. In the above, the case where the first power saving state is U1 and the second power saving state is U2 has been mainly described as an example, but the present embodiment is not limited to this, and the first and second power saving states are not limited to this. The power saving state of may be a power saving state other than U1 and U2.

図10は本実施形態の手法の第3の適用例を説明する図である。図10では、ホスト機器90から電子機器10が受信したコマンドに応じて、省電力移行要求への応答を切り替えて、USBの通信等の高速化と低消費電力を両立して実現する。 FIG. 10 is a diagram illustrating a third application example of the method of the present embodiment. In FIG. 10, the response to the power saving transition request is switched according to the command received from the host device 90 by the electronic device 10, to realize both high speed and low power consumption of USB communication and the like.

例えば図10は電子機器10がプリンターである場合の通信シーケンスの例であり、ホスト機器90が電子機器10に印刷開始コマンドを送信している。そしてこのようにホスト機器90から受信したコマンドが印刷開始コマンドである場合には、図10に示すようにホスト機器90からの省電力移行要求を拒否する。具体的には印刷終了コマンドを受信するまで、ホスト機器90からの省電力移行要求を拒否する。そしてホスト機器90から印刷終了コマンドを受信した場合には、ホスト機器90からの省電力移行要求を許可する。このように第3の適用例では、ホスト機器90から受信したコマンド(印刷開始コマンド、印刷終了コマンド)に応じて、省電力移行要求への応答(拒否、許可)を切り替えている。 For example, FIG. 10 shows an example of a communication sequence when the electronic device 10 is a printer, and the host device 90 sends a print start command to the electronic device 10. When the command received from the host device 90 is the print start command in this way, the power saving transition request from the host device 90 is rejected as shown in FIG. Specifically, the power saving transition request from the host device 90 is rejected until the print end command is received. When the print end command is received from the host device 90, the power saving transition request from the host device 90 is permitted. As described above, in the third application example, the response (rejection, permission) to the power saving transition request is switched according to the command (print start command, print end command) received from the host device 90.

このように本実施形態では処理部20は、通信バスBSを介して発行されたコマンドが第1のコマンドである場合は、省電力移行条件が成立していると判定し、コマンドが第2のコマンドである場合は、省電力移行条件が成立していないと判定する。即ちホスト機器90から受信したコマンドが第1のコマンド(例えば印刷終了コマンド)である場合には、省電力移行条件が成立していると判定し、ホスト機器90からの省電力移行要求を許可して、USBの通信バスBSを省電力状態に移行させる。一方、処理部20は、ホスト機器90から受信したコマンドが第2のコマンド(例えば印刷開始コマンド)である場合には、省電力移行条件が成立していないと判定し、ホスト機器90からの省電力移行要求を拒否して、通信バスBSを省電力状態に移行させないようにする。 As described above, in the present embodiment, when the command issued via the communication bus BS is the first command, the processing unit 20 determines that the power saving transition condition is satisfied, and the command is the second command. If it is a command, it is determined that the power saving transition condition is not satisfied. That is, when the command received from the host device 90 is the first command (for example, the print end command), it is determined that the power saving transition condition is satisfied, and the power saving transition request from the host device 90 is permitted. Then, the USB communication bus BS is shifted to the power saving state. On the other hand, when the command received from the host device 90 is the second command (for example, the print start command), the processing unit 20 determines that the power saving transition condition is not satisfied, and saves the power from the host device 90. Reject the power transfer request to prevent the communication bus BS from shifting to the power saving state.

このようにすれば、通信バスBSを介して発行されたコマンドの種類や内容に応じて、省電力移行条件の成立の可否を判定して、ホスト機器90からの省電力移行要求を許可したり、拒否することが可能になる。従って、コマンドの種類や内容を反映させた省電力移行条件の成立の可否判定が可能になり、適正な省電力移行制御を実現できる。 In this way, depending on the type and content of the command issued via the communication bus BS, it is determined whether or not the power saving transition condition is satisfied, and the power saving transition request from the host device 90 is permitted. , It will be possible to refuse. Therefore, it is possible to determine whether or not the power saving transition condition is satisfied that reflects the type and content of the command, and it is possible to realize appropriate power saving transition control.

例えば図10に示すように、ホスト機器90から受信したコマンドが印刷開始コマンドである場合には、印刷開始コマンドの受信後に、通信バスBSを介した印刷データの受信が行われる。そして、このような印刷データの受信期間において、ホスト機器90からの省電力移行要求を許可してしまうと、一連の印刷データの転送が停止してしまい、省電力状態からの復帰時間の間、ユーザーを待たせてしまう事態が生じてしまう。 For example, as shown in FIG. 10, when the command received from the host device 90 is the print start command, the print data is received via the communication bus BS after the print start command is received. If the power saving transition request from the host device 90 is permitted during such a print data reception period, the transfer of a series of print data is stopped, and during the recovery time from the power saving state, the transfer is stopped. There will be a situation that makes the user wait.

この点、本実施形態では、ホスト機器90から受信したコマンドが印刷開始コマンドである場合には、その後のホスト機器90からの省電力移行要求を拒否して、一連の印刷データの転送が停止しないようにする。これにより、省電力状態からの復帰時間の間、ユーザーを待たせてしまう事態の発生を防止できる。そして、ホスト機器90から印刷終了コマンドを受信した場合には、その後のホスト機器90からの省電力移行要求を許可して、省電力化を実現する。このようにすることで、USBの通信やジョブ実行の高速化と低消費電力とを両立して実現できるようになる。 In this respect, in the present embodiment, when the command received from the host device 90 is the print start command, the subsequent power saving transition request from the host device 90 is rejected, and the transfer of a series of print data is not stopped. To do so. As a result, it is possible to prevent the occurrence of a situation in which the user is kept waiting during the recovery time from the power saving state. Then, when the print end command is received from the host device 90, the subsequent power saving transition request from the host device 90 is permitted to realize the power saving. By doing so, it becomes possible to realize both high-speed USB communication and job execution and low power consumption.

例えば本実施形態では、処理部20は、通信バスBSを介して発行されたコマンドが、コマンドに続いて送るべき情報がないコマンドである場合は、省電力移行条件が成立していると判定する。一方、処理部20は、コマンドに続いて送るべき情報があるコマンドである場合は、省電力移行条件が成立していないと判定する。即ち、コマンドに続いて送るべき情報がないコマンド(例えば印刷終了コマンド)を受信した場合には、省電力移行条件が成立していると判定して、その後のホスト機器90からの省電力移行要求を許可して、省電力化を実現する。一方、コマンドに続いて送るべき情報があるコマンド(例えば印刷開始コマンド)を受信した場合には、省電力移行条件が成立していないと判定して、その後のホスト機器90からの省電力移行要求を拒否して、高速化を実現する。 For example, in the present embodiment, the processing unit 20 determines that the power saving transition condition is satisfied when the command issued via the communication bus BS is a command for which there is no information to be sent following the command. .. On the other hand, if the command has information to be sent following the command, the processing unit 20 determines that the power saving transition condition is not satisfied. That is, when a command (for example, a print end command) for which there is no information to be sent is received following the command, it is determined that the power saving transition condition is satisfied, and the subsequent power saving transition request from the host device 90 is performed. To realize power saving. On the other hand, when a command (for example, a print start command) having information to be sent is received following the command, it is determined that the power saving transition condition is not satisfied, and the subsequent power saving transition request from the host device 90 is performed. Is rejected to achieve higher speed.

例えば印刷開始コマンドのように、コマンドに続いて送るべき情報(印刷データ)があるコマンドの場合に、ホスト機器90からの省電力移行要求を許可してしまうと、当該情報の転送が停止してしまい、ユーザーを待たせてしまう問題が発生する。 For example, in the case of a command that has information (print data) to be sent following the command, such as the print start command, if the power saving transition request from the host device 90 is permitted, the transfer of the information will stop. This causes a problem that keeps the user waiting.

この点、本実施形態では、このようなコマンドを受信した場合には、ホスト機器90からの省電力移行要求を拒否するため、ユーザーを待たせてしまうなどの問題の発生を防止できる。一方、印刷終了コマンドのように、コマンドに続いて送るべき情報がないコマンドの場合には、ホスト機器90からの省電力移行要求を許可しても、上記のような問題は発生しない。そして、省電力移行要求を許可することで、省電力化を図れるようになる。 In this respect, in the present embodiment, when such a command is received, the power saving transition request from the host device 90 is rejected, so that it is possible to prevent the occurrence of problems such as making the user wait. On the other hand, in the case of a command such as a print end command in which there is no information to be sent following the command, the above problem does not occur even if the power saving transition request from the host device 90 is permitted. Then, by permitting the power saving transition request, the power saving can be achieved.

なお、コマンドに続いて送るべき情報があるコマンドとしては、例えば、印刷開始コマンド等のジョブの実行開始指示コマンドや、電子機器10のステータス情報(例えばインク残量、印刷回数情報、エラー情報)の取得コマンドなどの種々のコマンドを想定できる。例えば電子機器10がスキャナーであったり、スキャナー機能を有する複合機である場合には、スキャナーの読み取りデータの転送をホスト機器90が要求するコマンドも、コマンドに続いて送るべき情報があるコマンドになる。またコマンドに続いて送るべき情報がないコマンドとしては、例えば印刷終了コマンドなどのジョブの終了指示コマンドや、電子機器10に対して動作設定を行うためのコマンドなどの種々のコマンドを想定できる。例えばホスト機器90からジョブの終了指示コマンドを受信した場合には、その後、しばらくの間は、電子機器10はジョブを実行しなくても済むと考えられる。従って、この場合には、ホスト機器90からの省電力移行要求を許可して、省電力化を実現する。またホスト機器90から、電子機器10の動作モード等を設定するコマンドを受信した場合には、その後にホスト機器90からジョブの実行開始コマンドを受信するまでの間は、ホスト機器90からの省電力移行要求を許可することで、省電力化を図れるようになる。 The commands that have information to be sent following the command include, for example, a job execution start instruction command such as a print start command, and status information of the electronic device 10 (for example, ink remaining amount, print count information, error information). Various commands such as acquisition commands can be assumed. For example, when the electronic device 10 is a scanner or a multifunction device having a scanner function, the command requested by the host device 90 to transfer the read data of the scanner is also a command having information to be sent following the command. .. Further, as a command for which there is no information to be sent following the command, various commands such as a job end instruction command such as a print end command and a command for setting an operation for the electronic device 10 can be assumed. For example, when a job end instruction command is received from the host device 90, it is considered that the electronic device 10 does not have to execute the job for a while after that. Therefore, in this case, the power saving transition request from the host device 90 is permitted, and the power saving is realized. When a command for setting the operation mode of the electronic device 10 is received from the host device 90, power saving from the host device 90 is performed until a job execution start command is subsequently received from the host device 90. By allowing the migration request, it will be possible to save power.

また本実施形態では処理部20は、通信部30がホスト機器90から一連のデータを受信する場合に、一連のデータの転送中は省電力移行条件が成立していないと判定し、一連のデータの転送終了後は、省電力移行条件が成立していると判定する。例えば、一連のデータの転送中は省電力移行条件が成立していないと判定して、ホスト機器90からの省電力移行要求を拒否する。そして一連のデータの転送終了後は、省電力移行条件が成立していると判定して、ホスト機器90からの省電力移行要求を許可する。 Further, in the present embodiment, when the communication unit 30 receives a series of data from the host device 90, the processing unit 20 determines that the power saving transition condition is not satisfied during the transfer of the series of data, and determines that the power saving transition condition is not satisfied, and the series of data. After the transfer is completed, it is determined that the power saving transition condition is satisfied. For example, it is determined that the power saving transition condition is not satisfied during the transfer of a series of data, and the power saving transition request from the host device 90 is rejected. After the transfer of a series of data is completed, it is determined that the power saving transition condition is satisfied, and the power saving transition request from the host device 90 is permitted.

このようにすれば、一連のデータの転送中には、省電力移行要求が拒否されるため、省電力状態に移行しないようになり、一連のデータを高速に転送できるようになる。一方、一連のデータの転送終了後は、省電力移行要求が許可されるため、転送終了後に省電力状態に移行して、省電力化を図れるようになる。 By doing so, since the power saving transition request is rejected during the transfer of a series of data, the transition to the power saving state is prevented and the series of data can be transferred at high speed. On the other hand, after the transfer of a series of data is completed, the power saving transition request is permitted, so that the power saving state can be shifted to after the transfer is completed, and the power saving can be achieved.

具体的には図10に示すように、一連のデータは印刷データである。そして処理部20は、印刷開始コマンドの受信後であり、且つ、印刷終了コマンドの受信前は、省電力移行条件が成立していないと判定し、印刷終了コマンドの受信後は、省電力移行条件が成立していると判定する。即ち、印刷開始コマンドの受信後、且つ、印刷終了コマンドの受信前は、ホスト機器90からの省電力移行要求を拒否し、印刷終了コマンドの受信後は、ホスト機器90からの省電力移行要求を許可する。 Specifically, as shown in FIG. 10, the series of data is print data. Then, the processing unit 20 determines that the power saving transition condition is not satisfied after receiving the print start command and before receiving the print end command, and after receiving the print end command, the power saving transition condition. Is determined to hold. That is, after receiving the print start command and before receiving the print end command, the power saving transition request from the host device 90 is rejected, and after receiving the print end command, the power saving transition request from the host device 90 is made. to approve.

このようにすることで、一連の印刷データの受信中は、省電力状態に移行しないようになり、印刷データの高速転送が可能になる。そして、印刷終了コマンドを受信した後は、省電力移行要求を許可することで、省電力状態に移行するようになり、省電力化を図れる。 By doing so, during the reception of a series of print data, the power saving state is prevented from shifting, and the print data can be transferred at high speed. Then, after receiving the print end command, by permitting the power saving transition request, the power saving state can be shifted and the power saving can be achieved.

例えばホスト機器90のアプリケーションプログラムが、所定データ量の印刷データの印刷を指示した場合に、ホスト機器90の通信部92(図3)が、この所定データ量の印刷データを複数のデータブロックに分割して送信する場合がある。このときホスト機器90によっては、1つのデータブロックを送信する毎に、省電力移行要求を行う場合がある。例えばハードウェア回路である通信部92は、アプリケーションプログラムが指示した所定データ量の印刷データを、自動的に複数のデータブロックに分割する。そして省電力化を図るために、各データブロックの送信毎に、省電力移行要求を行う。そして、このようなデータブロック毎の省電力移行要求を許可してしまうと、所定データ量の印刷データ(一連の印刷データ)の転送終了までに、長い時間がかかってしまう問題が生じる。 For example, when the application program of the host device 90 instructs to print the print data of the predetermined data amount, the communication unit 92 (FIG. 3) of the host device 90 divides the print data of the predetermined data amount into a plurality of data blocks. May be sent. At this time, depending on the host device 90, a power saving transition request may be made every time one data block is transmitted. For example, the communication unit 92, which is a hardware circuit, automatically divides the print data of a predetermined amount of data instructed by the application program into a plurality of data blocks. Then, in order to save power, a power saving transition request is made for each transmission of each data block. If such a power saving transition request for each data block is permitted, there arises a problem that it takes a long time to complete the transfer of print data (a series of print data) of a predetermined data amount.

この点、本実施形態によれば、ホスト機器90が1つのデータブロックを送信した後に、省電力移行要求を行った場合にも、この省電力移行要求が拒否される。例えば、所定データ量の印刷データ(一連の印刷データ)の印刷開始コマンドを受信した後、この所定データ量の印刷データの印刷終了コマンドを受信するまでの間、ホスト機器90からの省電力移行要求が拒否される。そして印刷終了コマンドを受信した後に、ホスト機器90からの省電力移行要求が許可される。このようにすれば、アプリケーションプログラムにより指示された所定データ量の印刷データの転送が完了するまでの間は、省電力状態に移行しないようになるため、所定データ量の印刷データをUSBの通信バスBSを介して高速に転送できるようになる。そして、所定データ量の印刷データの転送後に、省電力移行要求を許可することで、省電力化を図れるようになる。 In this regard, according to the present embodiment, even if the host device 90 makes a power saving transition request after transmitting one data block, the power saving transition request is rejected. For example, after receiving a print start command for a predetermined amount of print data (a series of print data), a power saving transition request from the host device 90 until the print end command for the print data of the predetermined data amount is received. Is rejected. Then, after receiving the print end command, the power saving transition request from the host device 90 is permitted. By doing so, the print data of the predetermined data amount will not be transferred to the power saving state until the transfer of the print data of the predetermined data amount instructed by the application program is completed. Therefore, the print data of the predetermined data amount is transferred to the USB communication bus. It will be possible to transfer at high speed via BS. Then, by permitting the power saving transition request after the transfer of the print data of the predetermined data amount, the power saving can be achieved.

3.省電力移行、省電力復帰の詳細
次に省電力移行や省電力復帰の通信シーケンスの詳細例について説明する。図11、図12、図13は、通常状態U0から省電力状態U1への移行許可、移行拒否、復帰の通信シーケンス図である。なお以下では、ホスト機器90をUSBホストと記載し、電子機器10をUSBデバイスと記載して説明を行う。
3. 3. Details of power saving transition and power saving recovery Next, a detailed example of the communication sequence of power saving transition and power saving recovery will be described. 11, 12, and 13 are communication sequence diagrams for transition permission, transition refusal, and return from the normal state U0 to the power saving state U1. In the following, the host device 90 will be described as a USB host, and the electronic device 10 will be described as a USB device.

通常状態U0から省電力状態U1に移行するためには、LGO_U1を使用する。このLGO_U1はUSBホストとUSBデバイスの両方が送信できる。受信側は、LGO_U1を受信した場合に、LAU(許可)又はLXU(拒否)で応答し、U1への移行の可否を通知する必要がある。そして図11では、LGO_U1に対してLAU(許可)が返答されており、省電力状態U1への移行要求が許可されている。この場合にはUSBホストがLPMAを送信して、省電力状態U1に移行する。このLPMAは、これから省電力状態になることを示すハンドシェイクのためのコマンドである。一方、図12では、LGO_U1に対してLXU(拒否)が返答されており、省電力状態U1への移行要求が拒否されており、通常状態U0が維持される。 LGO_U1 is used to shift from the normal state U0 to the power saving state U1. This LGO_U1 can be transmitted by both a USB host and a USB device. When the receiving side receives LGO_U1, it needs to respond with LAU (permission) or LXU (rejection) and notify whether or not the transition to U1 is possible. Then, in FIG. 11, LAU (permission) is returned to LGO_U1, and the request for transition to the power saving state U1 is permitted. In this case, the USB host transmits LPMA and shifts to the power saving state U1. This LPMA is a command for a handshake indicating that the power saving state is about to be reached. On the other hand, in FIG. 12, LXU (rejection) is returned to LGO_U1, the request for transition to the power saving state U1 is rejected, and the normal state U0 is maintained.

図13に示すように、省電力状態U1から通常状態に復帰する場合、USBホスト又はUSBデバイスが、LFPS Handshake(U1exit)を送信する。受信側は、これを受信すると、LFPS Handshake(U1exit)で応答し、USBホスト及びUSBデバイスは、U0の復帰中状態であるRecovery状態になる。Recovery状態では、Link Trainingと呼ばれる同期通信が行われ、同期が完了したところで、USBホスト及びUSBデバイスは通常状態U0に復帰する。 As shown in FIG. 13, when returning from the power saving state U1 to the normal state, the USB host or the USB device transmits the LFPS Handshake (U1exit). When the receiving side receives this, it responds with the LFPS Handshake (U1exit), and the USB host and the USB device are in the Recovery state in which U0 is being restored. In the Recovery state, synchronous communication called Link Training is performed, and when the synchronization is completed, the USB host and the USB device return to the normal state U0.

図14、図15、図16は、通常状態U0から省電力状態U2への移行許可、移行拒否、復帰の通信シーケンス図である。U2への移行シーケンスはU1への移行シーケンスと酷似しており、U1への移行の際に使用したLGO_U1の代わりに、図14に示すようにLGO_U2を使用する。このLGO_U2は、LGO_U1と同様に、USBホストとUSBデバイスの両方が送信できる。受信側はLGO_U2を受信した場合に、LAU(許可)又はLXU(拒否)で応答し、U2への移行の可否を通知する必要がある。そして図14に示すように、LGO_U2に対してLAU(許可)が返答された場合に、送信側はLPMAを送信して省電力状態U2に移行する。一方、図15に示すように、LGO_U2に対してLXU(拒否)が返答された場合は、通常状態U0が維持される。 14, 15, and 16 are communication sequence diagrams for transition permission, transition refusal, and return from the normal state U0 to the power saving state U2. The transition sequence to U2 is very similar to the transition sequence to U1, and instead of LGO_U1 used in the transition to U1, LGO_U2 is used as shown in FIG. Like LGO_U1, this LGO_U2 can be transmitted by both the USB host and the USB device. When the receiving side receives LGO_U2, it needs to respond with LAU (permission) or LXU (rejection) and notify whether or not the transition to U2 is possible. Then, as shown in FIG. 14, when LAU (permission) is returned to LGO_U2, the transmitting side transmits LPMA and shifts to the power saving state U2. On the other hand, as shown in FIG. 15, when LXU (rejection) is returned to LGO_U2, the normal state U0 is maintained.

図15に示すように、省電力状態U2への復帰シーケンスは省電力状態U1への復帰シーケンスに酷似しているが、前述の図9で説明したようにU2はU1よりも復帰にかかる時間が長い。そしてU2からU0に復帰する場合に、USBホスト又はUSBデバイスがLFPS Handshake(U2exit)を送信する。受信側は、これを受信すると、LFPS Handshake(U2exit)で応答し、USBホスト及びUSBデバイスはU0への復帰中状態であるRecovery状態になる。Recovery状態では、Link Trainingと呼ばれる同期通信が行われ、同期が完了したところでUSBホスト及びUSBデバイスは通常状態U0に復帰する。 As shown in FIG. 15, the return sequence to the power saving state U2 is very similar to the return sequence to the power saving state U1, but as described in FIG. 9 above, U2 takes longer to return than U1. long. Then, when returning from U2 to U0, the USB host or USB device transmits an LFPS Handshake (U2exit). When the receiving side receives this, it responds with the LFPS Handshake (U2exit), and the USB host and the USB device are in the Recovery state in which the USB host and the USB device are returning to U0. In the Recovery state, synchronous communication called Link Training is performed, and when the synchronization is completed, the USB host and the USB device return to the normal state U0.

図17、図18、図19は、通常状態L0から省電力状態L1への移行許可、移行拒否、復帰の通信シーケンス図である。図17に示すように、通常状態L0から省電力状態L1へ移行するためには、LPMを使用する。これはLGO_U1、LGO_U2とは異なり、USBホストのみが送信できる。LPMに対して、USBデバイスはACK(許可)又はNAK(拒否)で応答し、省電力状態L1への移行の可否を通知する。図17に示すように、LPMに対してUSBデバイスがACKの応答をした場合に、省電力状態L1への移行要求が許可されて、省電力状態L1に移行する。一方、図18に示すように、LPMに対してUSBデバイスがNAKの応答をした場合に、省電力状態L1への移行要求が拒否されて、通常状態L0が維持される。また図19に示すように、省電力状態L1から通常状態L0に復帰する際は、ResumeによってL1からL0に復帰することになる。 17, FIG. 18 and FIG. 19 are communication sequence diagrams for transition permission, transition refusal, and return from the normal state L0 to the power saving state L1. As shown in FIG. 17, LPM is used to shift from the normal state L0 to the power saving state L1. This is different from LGO_U1 and LGO_U2, and only the USB host can transmit. The USB device responds to the LPM with ACK (permit) or NAK (deny), and notifies whether or not the transition to the power saving state L1 is possible. As shown in FIG. 17, when the USB device responds to LPM by ACK, the request for transition to the power saving state L1 is permitted, and the USB device shifts to the power saving state L1. On the other hand, as shown in FIG. 18, when the USB device responds to LPM by NAK, the request for transition to the power saving state L1 is rejected, and the normal state L0 is maintained. Further, as shown in FIG. 19, when returning from the power saving state L1 to the normal state L0, the process returns from L1 to L0.

図20は通常状態U0、省電力状態U1、U2のステート遷移図である。前述したように通常状態U0から省電力状態U1、U2への移行は、各々、LGO_U1、LGO_U2により行われる。これらのLGO_U1、LGO_U2は拒否可能である。一方、省電力状態U1からU2への移行は、タイマーによるタイムアウトにより遷移する。タイマーの設定は、通信の接続時にUSBホストにより行われる。タイマーは例えば256μs~65.024msの範囲で設定可能である。そして図21に示すように省電力状態U1からU2へはタイムアウトにより自動的に遷移して移行する。このため省電力状態U2への移行要求を拒否した意味がなくなるように見えるが、少なくともU2への即時の移行だけは防ぐことができるので、U2の移行要求を拒否する意味はある。 FIG. 20 is a state transition diagram of the normal state U0 and the power saving states U1 and U2. As described above, the transition from the normal state U0 to the power saving states U1 and U2 is performed by LGO_U1 and LGO_U2, respectively. These LGO_U1 and LGO_U2 can be rejected. On the other hand, the transition from the power saving state U1 to U2 is caused by a timeout by the timer. The timer is set by the USB host when the communication is connected. The timer can be set, for example, in the range of 256 μs to 65.024 ms. Then, as shown in FIG. 21, the power saving state U1 to U2 automatically transitions to U2 due to a timeout. Therefore, it seems that there is no point in rejecting the request for transition to the power saving state U2, but at least the immediate transition to U2 can be prevented, so it is meaningful to reject the request for transition to U2.

なお、省電力状態U1からU2への移行を防ぐ手法もある。それは図22に示すように、省電力状態U1に移行してから、タイマーによるタイムアウト時間が経過する前に、強制的に通常状態U0に復帰させる手法である。通常状態U0への復帰要求はUSBデバイスが主導して出すことができる。他の手法としては、例えばタイムアウトを無効にする設定も可能である。その場合には、省電力状態U1からU2への移行はできなくなり、通常状態U0を経由しなければならなくなる。 There is also a method for preventing the transition from the power saving state U1 to U2. As shown in FIG. 22, it is a method of forcibly returning to the normal state U0 after shifting to the power saving state U1 and before the timeout time by the timer elapses. The USB device can take the initiative in issuing a request to return to the normal state U0. As another method, for example, it is possible to set to disable the timeout. In that case, the transition from the power saving state U1 to the U2 cannot be performed, and the normal state U0 must be passed.

なお、上記のように本実施形態について詳細に説明したが、本発明の新規事項および効果から実体的に逸脱しない多くの変形が可能であることは当業者には容易に理解できるであろう。従って、このような変形例はすべて本発明の範囲に含まれるものとする。例えば、明細書又は図面において、少なくとも一度、より広義または同義な異なる用語(第1の状態、第2の状態、第1の省電力状態、第2の省電力状態等)と共に記載された用語(省電力状態、通常状態、省電力状態U1、省電力状態U2等)、は、明細書又は図面のいかなる箇所においても、その異なる用語に置き換えることができる。また、電子機器の構成や通信処理等も、本実施形態で説明したものに限定されず、種々の変形実施が可能である。 Although the present embodiment has been described in detail as described above, those skilled in the art will easily understand that many modifications that do not substantially deviate from the novel matters and effects of the present invention are possible. Therefore, all such modifications are included in the scope of the present invention. For example, terms described at least once in the specification or drawings with different terms (first state, second state, first power saving state, second power saving state, etc.). Power saving state, normal state, power saving state U1, power saving state U2, etc.) can be replaced with different terms anywhere in the specification or drawings. Further, the configuration of the electronic device, communication processing, and the like are not limited to those described in the present embodiment, and various modifications can be made.

BS…通信バス、L0…通常状態、L1…省電力状態、
U0…通常状態、U1、U2…省電力状態、
10…電子機器、20…処理部、21…メインCPU、22…サブCPU、
30…通信部、34…SS処理部、36…Non-SS処理部、50…記憶部、
60…操作部、70…表示部、80…印刷部、90…ホスト機器、92…通信部、
94…SS処理部、96…Non-SS処理部、
210…プリンター、220…PC、230…USBケーブル、
232、234…USBコネクター
BS ... communication bus, L0 ... normal state, L1 ... power saving state,
U0 ... normal state, U1, U2 ... power saving state,
10 ... Electronic device, 20 ... Processing unit, 21 ... Main CPU, 22 ... Sub CPU,
30 ... Communication unit, 34 ... SS processing unit, 36 ... Non-SS processing unit, 50 ... Storage unit,
60 ... operation unit, 70 ... display unit, 80 ... printing unit, 90 ... host device, 92 ... communication unit,
94 ... SS processing unit, 96 ... Non-SS processing unit,
210 ... printer, 220 ... PC, 230 ... USB cable,
232, 234 ... USB connector

Claims (15)

USBの通信バスを介して通信を行う通信部と、
前記通信部の制御を行う処理部と、
を含み、
前記処理部は、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記処理部は、
前記省電力移行要求が、前記通信バスを第1の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していると判定し、前記省電力移行要求が、前記通信バスを第2の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していないと判定することを特徴とする電子機器。
With the communication unit that communicates via the USB communication bus,
A processing unit that controls the communication unit and
Including
The processing unit
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. If the transition is performed and the power saving transition condition is not satisfied, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
The processing unit
When the power saving transition request is a request for shifting the communication bus to the first power saving state, it is determined that the power saving transition condition is satisfied, and the power saving transition request is the communication bus. When it is a request to shift to the second power saving state, the electronic device is characterized in that it is determined that the power saving transition condition is not satisfied.
請求項1において、
前記第2の省電力状態は、前記第1の省電力状態よりも、消費電力が小さい及び通常状態への復帰時間が長いの少なくとも一方となる省電力状態であることを特徴とする電子機器。
In claim 1,
The second power saving state is an electronic device characterized in that it is a power saving state in which the power consumption is smaller and the return time to the normal state is longer than that of the first power saving state.
USBの通信バスを介して通信を行う通信部と、
前記通信部の制御を行う処理部と、
を含み、
前記処理部は、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記処理部は、
前記通信バスを介して発行されたコマンドが、コマンドに続いて送るべき情報がないコマンドである場合は、前記省電力移行条件が成立していると判定し、コマンドに続いて送るべき情報があるコマンドである場合は、前記省電力移行条件が成立していないと判定することを特徴とする電子機器。
With the communication unit that communicates via the USB communication bus,
A processing unit that controls the communication unit and
Including
The processing unit
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. If the transition is performed and the power saving transition condition is not satisfied, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
The processing unit
If the command issued via the communication bus is a command for which there is no information to be sent following the command, it is determined that the power saving transition condition is satisfied, and there is information to be sent following the command. When it is a command, it is an electronic device characterized in that it is determined that the power saving transition condition is not satisfied.
USBの通信バスを介して通信を行う通信部と、
前記通信部の制御を行う処理部と、
を含み、
前記処理部は、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記処理部は、
前記省電力移行要求が省電力状態U1への移行要求である場合は、前記省電力移行条件が成立していると判定し、前記省電力移行要求が省電力状態U2への移行要求である場合は、前記省電力移行条件が成立していないと判定することを特徴とする電子機器。
With the communication unit that communicates via the USB communication bus,
A processing unit that controls the communication unit and
Including
The processing unit
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. If the transition is performed and the power saving transition condition is not satisfied, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
The processing unit
When the power saving transition request is a transition request to the power saving state U1, it is determined that the power saving transition condition is satisfied, and when the power saving transition request is a transition request to the power saving state U2. Is an electronic device characterized in that it is determined that the power saving transition condition is not satisfied.
請求項1乃至4のいずれかにおいて、
前記処理部は、
電子機器の状態が第1の状態である場合は、前記省電力移行条件が成立していると判定し、電子機器の状態が第2の状態である場合は、前記省電力移行条件が成立していないと判定することを特徴とする電子機器。
In any of claims 1 to 4,
The processing unit
When the state of the electronic device is the first state, it is determined that the power saving transition condition is satisfied, and when the state of the electronic device is the second state, the power saving transition condition is satisfied. An electronic device characterized in that it is determined not to be present.
請求項5において、
前記第1の状態は、前記第2の状態よりも電子機器が低消費電力となる状態であることを特徴とする電子機器。
In claim 5,
The first state is an electronic device characterized in that the power consumption of the electronic device is lower than that of the second state.
請求項1乃至6のいずれかにおいて、
前記処理部は、
前記通信部が前記ホスト機器から一連のデータを受信する場合に、前記一連のデータの転送中は、前記省電力移行条件が成立していないと判定し、前記一連のデータの転送終了後は、前記省電力移行条件が成立していると判定することを特徴とする電子機器。
In any of claims 1 to 6,
The processing unit
When the communication unit receives a series of data from the host device, it is determined that the power saving transition condition is not satisfied during the transfer of the series of data, and after the transfer of the series of data is completed, the communication unit determines that the power saving transition condition is not satisfied. An electronic device characterized in that it is determined that the power saving transition condition is satisfied.
請求項7において、
前記一連のデータは印刷データであり、
前記処理部は、
印刷開始コマンドの受信後であり、且つ、印刷終了コマンドの受信前は、前記省電力移行条件が成立していないと判定し、前記印刷終了コマンドの受信後は、前記省電力移行条件が成立していると判定することを特徴とする電子機器。
In claim 7,
The series of data is print data and is
The processing unit
After receiving the print start command and before receiving the print end command, it is determined that the power saving transition condition is not satisfied, and after receiving the print end command, the power saving transition condition is satisfied. An electronic device characterized in that it is determined to be.
請求項1乃至8のいずれかにおいて、
前記USBの通信バスは、USB3.0又はUSB3.1の規格に準拠した通信バスであることを特徴とする電子機器。
In any one of claims 1 to 8,
The USB communication bus is an electronic device characterized by being a communication bus compliant with the USB3.0 or USB3.1 standard.
USBの通信バスを用いた通信処理方法であって、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、
前記ホスト機器から前記省電力移行要求を受信したときに、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記省電力移行要求が、前記通信バスを第1の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していると判定し、前記省電力移行要求が、前記通信バスを第2の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していないと判定することを特徴とする通信処理方法。
It is a communication processing method using a USB communication bus.
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. Migrate,
If the power saving transition condition is not satisfied when the power saving transition request is received from the host device, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
When the power saving transition request is a request for shifting the communication bus to the first power saving state, it is determined that the power saving transition condition is satisfied, and the power saving transition request is the communication bus. When it is a request to shift to the second power saving state, the communication processing method is characterized in that it is determined that the power saving transition condition is not satisfied.
USBの通信バスを用いた通信処理方法であって、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、
前記ホスト機器から前記省電力移行要求を受信したときに、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記通信バスを介して発行されたコマンドが、コマンドに続いて送るべき情報がないコマンドである場合は、前記省電力移行条件が成立していると判定し、コマンドに続いて送るべき情報があるコマンドである場合は、前記省電力移行条件が成立していないと判定することを特徴とする通信処理方法。
It is a communication processing method using a USB communication bus.
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. Migrate,
If the power saving transition condition is not satisfied when the power saving transition request is received from the host device, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
If the command issued via the communication bus is a command for which there is no information to be sent following the command, it is determined that the power saving transition condition is satisfied, and there is information to be sent following the command. When it is a command, it is a communication processing method characterized in that it is determined that the power saving transition condition is not satisfied.
USBの通信バスを用いた通信処理方法であって、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、
前記ホスト機器から前記省電力移行要求を受信したときに、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記省電力移行要求が省電力状態U1への移行要求である場合は、前記省電力移行条件が成立していると判定し、前記省電力移行要求が省電力状態U2への移行要求である場合は、前記省電力移行条件が成立していないと判定することを特徴とする通信処理方法。
It is a communication processing method using a USB communication bus.
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. Migrate,
If the power saving transition condition is not satisfied when the power saving transition request is received from the host device, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
When the power saving transition request is a transition request to the power saving state U1, it is determined that the power saving transition condition is satisfied, and when the power saving transition request is a transition request to the power saving state U2. Is a communication processing method characterized in that it is determined that the power saving transition condition is not satisfied.
USBの通信バスを介して通信を行う通信部と、
前記通信部の制御を行う処理部として、
コンピューターを機能させ、
前記処理部は、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記処理部は、
前記省電力移行要求が、前記通信バスを第1の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していると判定し、前記省電力移行要求が、前記通信バスを第2の省電力状態に移行させる要求である場合は、前記省電力移行条件が成立していないと判定することを特徴とするプログラム。
With the communication unit that communicates via the USB communication bus,
As a processing unit that controls the communication unit,
Make your computer work
The processing unit
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. If the transition is performed and the power saving transition condition is not satisfied, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
The processing unit
When the power saving transition request is a request for shifting the communication bus to the first power saving state, it is determined that the power saving transition condition is satisfied, and the power saving transition request is the communication bus. Is a request to shift to the second power saving state, the program is characterized in that it is determined that the power saving transition condition is not satisfied.
USBの通信バスを介して通信を行う通信部と、
前記通信部の制御を行う処理部として、
コンピューターを機能させ、
前記処理部は、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移
行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記処理部は、
前記通信バスを介して発行されたコマンドが、コマンドに続いて送るべき情報がないコマンドである場合は、前記省電力移行条件が成立していると判定し、コマンドに続いて送るべき情報があるコマンドである場合は、前記省電力移行条件が成立していないと判定することを特徴とするプログラム。
With the communication unit that communicates via the USB communication bus,
As a processing unit that controls the communication unit,
Make your computer work
The processing unit
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. If the transition is performed and the power saving transition condition is not satisfied, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
The processing unit
If the command issued via the communication bus is a command for which there is no information to be sent following the command, it is determined that the power saving transition condition is satisfied, and there is information to be sent following the command. If it is a command, it is a program characterized in that it is determined that the power saving transition condition is not satisfied.
USBの通信バスを介して通信を行う通信部と、
前記通信部の制御を行う処理部として、
コンピューターを機能させ、
前記処理部は、
前記通信バスに接続されるホスト機器から省電力移行要求を受信したときに、省電力移行条件が成立している場合は、前記省電力移行要求を許可して、前記通信バスを省電力状態に移行させ、前記省電力移行条件が成立していない場合は、前記省電力移行要求を拒否して、前記通信バスを省電力状態に移行させず、
前記処理部は、
前記省電力移行要求が省電力状態U1への移行要求である場合は、前記省電力移行条件が成立していると判定し、前記省電力移行要求が省電力状態U2への移行要求である場合は、前記省電力移行条件が成立していないと判定することを特徴とするプログラム。
With the communication unit that communicates via the USB communication bus,
As a processing unit that controls the communication unit,
Make your computer work
The processing unit
If the power saving transition condition is satisfied when the power saving transition request is received from the host device connected to the communication bus, the power saving transition request is permitted and the communication bus is put into the power saving state. If the transition is performed and the power saving transition condition is not satisfied, the power saving transition request is rejected and the communication bus is not shifted to the power saving state.
The processing unit
When the power saving transition request is a transition request to the power saving state U1, it is determined that the power saving transition condition is satisfied, and when the power saving transition request is a transition request to the power saving state U2. Is a program characterized in that it is determined that the power saving transition condition is not satisfied.
JP2017181069A 2017-09-21 2017-09-21 Electronic devices, communication processing methods and programs Active JP7009866B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017181069A JP7009866B2 (en) 2017-09-21 2017-09-21 Electronic devices, communication processing methods and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017181069A JP7009866B2 (en) 2017-09-21 2017-09-21 Electronic devices, communication processing methods and programs

Publications (2)

Publication Number Publication Date
JP2019057132A JP2019057132A (en) 2019-04-11
JP7009866B2 true JP7009866B2 (en) 2022-01-26

Family

ID=66107542

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017181069A Active JP7009866B2 (en) 2017-09-21 2017-09-21 Electronic devices, communication processing methods and programs

Country Status (1)

Country Link
JP (1) JP7009866B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021038822A1 (en) * 2019-08-30 2021-03-04 株式会社ユニテックス Interface conversion device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007133564A (en) 2005-11-09 2007-05-31 Canon Inc Information processor
JP2010094942A (en) 2008-10-20 2010-04-30 Canon Inc Inkjet recording system and inkjet recording device
JP2011215855A (en) 2010-03-31 2011-10-27 Renesas Electronics Corp Usb device control circuit and control method of usb device
JP2012129586A (en) 2010-12-13 2012-07-05 Canon Inc Data processing device, data processing device control method, and program
JP2015222505A (en) 2014-05-23 2015-12-10 京セラドキュメントソリューションズ株式会社 Electronic apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007133564A (en) 2005-11-09 2007-05-31 Canon Inc Information processor
JP2010094942A (en) 2008-10-20 2010-04-30 Canon Inc Inkjet recording system and inkjet recording device
JP2011215855A (en) 2010-03-31 2011-10-27 Renesas Electronics Corp Usb device control circuit and control method of usb device
JP2012129586A (en) 2010-12-13 2012-07-05 Canon Inc Data processing device, data processing device control method, and program
JP2015222505A (en) 2014-05-23 2015-12-10 京セラドキュメントソリューションズ株式会社 Electronic apparatus

Also Published As

Publication number Publication date
JP2019057132A (en) 2019-04-11

Similar Documents

Publication Publication Date Title
JP5182513B2 (en) Image processing apparatus and power saving control method thereof
US10409356B2 (en) Printing device handling wake up event received immediately before shifted to a low power mode
JP7163002B2 (en) Information processing apparatus and processor power saving method for determining power saving level of processor according to recovery time notified from device connected to processor
US10564700B2 (en) Image forming apparatus and power control method for image forming apparatus
US9813576B2 (en) Communication apparatus, control method, and program
JP6261156B2 (en) Image forming apparatus
JP2012139902A (en) Image forming apparatus
US9552050B2 (en) Information processing device, printing device, and control method
US9134785B2 (en) Information processing apparatus with power saving mode, and control method and communication apparatus therefor
JP7009866B2 (en) Electronic devices, communication processing methods and programs
US20090083559A1 (en) Electronic device and method of controlling power thereof
US10379597B2 (en) Processor, host device, power saving method of USB device, and computer program
JP5741245B2 (en) Image processing apparatus, image processing control method, and image processing control program
JP2010005911A (en) Printer
US7925799B2 (en) Serial ATA interface control circuit and power management method wherein start and completion of data transfer is monitored during DMA operations using memory control unit
US9019540B2 (en) Changing speed of network connection depending upon sleep state of network controller
US11036668B2 (en) Electronic apparatus including device configured to be shifted to power saving state and connected to PCI device, and control method thereof
JP6398666B2 (en) Function control apparatus, information processing apparatus, image processing apparatus, and communication establishment method
JP6460905B2 (en) Communication device, control method, program
JP2010218170A (en) Data transfer device, information processor, arbitration method, and image formation system
JP2007280211A (en) Print system, printer, printer control method and program
JP4685547B2 (en) Data transfer apparatus and image forming apparatus
US20200264687A1 (en) Information processing apparatus and control method therefor
JP2024002146A (en) Communication apparatus, usb device, communication method, and program
JP2010069801A (en) Controller, image formation device, and printing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200904

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210714

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210914

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211111

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211227

R150 Certificate of patent or registration of utility model

Ref document number: 7009866

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150