CN101650591A - Power supply management method - Google Patents
Power supply management method Download PDFInfo
- Publication number
- CN101650591A CN101650591A CN200810147030A CN200810147030A CN101650591A CN 101650591 A CN101650591 A CN 101650591A CN 200810147030 A CN200810147030 A CN 200810147030A CN 200810147030 A CN200810147030 A CN 200810147030A CN 101650591 A CN101650591 A CN 101650591A
- Authority
- CN
- China
- Prior art keywords
- power
- management method
- time
- power management
- threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Power Sources (AREA)
Abstract
Description
技术领域 technical field
本发明有关于电源管理,且特别有关于整合串行总线接口的装置的一种自动电源管理方法。The present invention relates to power management, and in particular to an automatic power management method for devices integrating serial bus interfaces.
背景技术 Background technique
在特定操作模式下运行时,串行高级技术附件(Serial Advanced TechnologyAttachment,SATA)总线,或者串行小型计算机系统接口(Serial Attached SmallComputer System Interface,SAS)总线为一种串行总线,用来取代存储装置的并行接口,其主要被设计用于两个串行高级技术附件/串行小型计算机系统接口兼容装置间的数据传送,譬如:主机(例如:计算机)与存储装置(例如:光驱)。相对于并行高级技术附件(parallel Advanced Technology Attachment,parallelATA)总线,串行高级技术附件总线具有以下三方面的优势,即速度、排线尺寸、以及热插拔能力。串行高级技术附件总线包括一对信号线,其耦接于一个差动传送器(differential transmitter),且被配置用来传送某一方向的信号,更包括另一对信号线,其耦接于另一个差动传送器,且被配置用来传送相反方向的信号。The Serial Advanced Technology Attachment (SATA) bus, or the Serial Attached Small Computer System Interface (SAS) bus, is a serial bus that replaces the storage The device's parallel interface is designed primarily for data transfer between two SATA/SSI compliant devices, such as a host (eg, a computer) and a storage device (eg, an optical drive). Compared with the parallel Advanced Technology Attachment (parallel ATA) bus, the serial Advanced Technology Attachment bus has the following three advantages, namely, speed, cable size, and hot-swap capability. The serial advanced technology accessory bus includes a pair of signal lines, which are coupled to a differential transmitter (differential transmitter), and are configured to transmit signals in a certain direction, and further include another pair of signal lines, which are coupled to Another differential transmitter configured to transmit signals in opposite directions.
串行高级技术附件接口标准中定义有物理层、链路层及传输层。物理层,执行高比特率串行数据的传送及接收。上述数据被物理层接收后,被解串行化,接着被传送至链路层。物理层也接收来自链路层的数据,串行化上述数据,然后将其输出至差动线对(differential line pair)。链路层可向物理层提供请求,以输出信号,以及将来自物理层的数据提供至传输层。依据串行高级技术附件的标准,传输层执行操作所需的数据转换。There are physical layer, link layer and transport layer defined in the serial advanced technology attachment interface standard. The physical layer performs the transmission and reception of high bit rate serial data. After the above data is received by the physical layer, it is deserialized and then sent to the link layer. The physical layer also receives data from the link layer, serializes the data, and outputs it to a differential line pair. The link layer can provide requests to the physical layer to output signals, and provide data from the physical layer to the transport layer. The transport layer performs the data conversion required for the operation according to the standard of the Serial Advanced Technology Attachment.
串行高级技术附件规格应用于硬盘驱动器或光驱的传输接口,用来取代以前长期使用的并行高级技术附件/高级技术附加数据包接口(AdvancedTechnology Attachment Packet Interface,ATAPI)。串行高级技术附件接口的规格具体规定了两对差动信号线,以替代原本并列连接的40条或80条信号线。串行化原始数据能够减少信号线数量及降低电压,并提升速度。上述规格也采用了一些新功能,例如:流程控制(flow control)及错误重新传送(error resending),以用一种简单方式控制数据流。The Serial Advanced Technology Attachment specification is applied to the transmission interface of a hard disk drive or an optical drive to replace the long-term parallel Advanced Technology Attachment/Advanced Technology Attachment Packet Interface (ATAPI). The SATIA specification specifies two pairs of differential signal lines to replace the original 40 or 80 signal lines connected in parallel. Serializing raw data can reduce the number of signal lines and voltage, and improve speed. The above specification also adopts some new functions, such as: flow control (flow control) and error retransmission (error resending), to control the data flow in a simple way.
图13是串行高级技术附件规格中通信层的示意图。如图13所示,串行高级技术附件接口连接主机11与装置13。装置13可以是光存储装置、硬盘驱动器或其它具备串行高级技术附件接口的装置。在串行高级技术附件的规格中,通信层包括四层,分别为:第一层(物理层)、第二层(链路层)、第三层(传输层)及第四层(应用层)。物理层负责转换数字与模拟信号。即,物理层接收由链路层传送的数字信号,并将其转换成模拟信号,再将模拟信号传送至另一端点。物理层也接收来自另一端点的模拟信号,并将其转换为数字信号,再将数字信号输出至链路层。链路层编码与解码数字信号。即,链路层编码来自传输层的数据,并将已编码数据输出至物理层。另一方面,链路层解码来自物理层的数据,并将已解码数据输出至传输层。除此之外,链路层也支持电源切断管理。传输层建构(construct)与解构(deconstruct)帧信息结构(FrameInformation Structure,FIS)。帧信息结构详细定义于串行高级技术附件的规格中。应用层负责管理缓存(buffer memory)与直接存储器存取(Direct Memory Access,DMA)引擎。Figure 13 is a schematic diagram of the communication layers in the Serial Advanced Technology Annex specification. As shown in FIG. 13 , the SATIA interface connects the host 11 and the device 13 . Device 13 may be an optical storage device, hard drive, or other device with a Serial Advanced Technology Attachment Interface. In the specification of the serial advanced technology attachment, the communication layer includes four layers, namely: the first layer (physical layer), the second layer (link layer), the third layer (transport layer) and the fourth layer (application layer). ). The physical layer is responsible for converting digital and analog signals. That is, the physical layer receives the digital signal transmitted by the link layer, converts it into an analog signal, and transmits the analog signal to another endpoint. The physical layer also receives an analog signal from another endpoint, converts it to a digital signal, and outputs the digital signal to the link layer. The link layer encodes and decodes digital signals. That is, the link layer encodes data from the transport layer and outputs the encoded data to the physical layer. On the other hand, the link layer decodes data from the physical layer and outputs the decoded data to the transport layer. In addition, the link layer also supports power cut management. The transport layer constructs and deconstructs the Frame Information Structure (FIS). The frame information structure is defined in detail in the specification of the Serial Advanced Technology Annex. The application layer is responsible for managing the buffer memory and the Direct Memory Access (DMA) engine.
串行高级技术附件接口标准支持物理准备完成(PhyReady)模式、局部(Partial)模式及休眠(Slumber)模式。PhyReady模式(闲置状态)是表示串行高级技术附件接口准备好传送及接收数据的状态。因此,用来实现物理层操作的物理(physical,PHY)逻辑电路及用来同步两个串行高级技术附件兼容装置的主要锁相环(Phase-Locked Loop,PLL)电路均处于电源供给与主动状态。Partial模式与Slumber模式为省电模式,用来消除或减少物理逻辑电路及/或主要锁相环电路的电能消耗。Slumber模式比Partial模式更省电,但两者的返回延迟时间不同。Partial模式的返回延迟时间通常不超过10微秒(microsecond),而Slumber模式的返回延迟时间通常不会超过10毫秒(millisecond)。The serial advanced technology accessory interface standard supports physical preparation (PhyReady) mode, partial (Partial) mode and sleep (Slumber) mode. PhyReady mode (idle state) is a state that indicates that the SATIA interface is ready to transmit and receive data. Therefore, the physical (physical, PHY) logic circuit used to implement the physical layer operation and the main phase-locked loop (Phase-Locked Loop, PLL) circuit used to synchronize two serial advanced technology accessory compatible devices are both in the power supply and active state. The Partial mode and the Slumber mode are power saving modes, which are used to eliminate or reduce the power consumption of the physical logic circuit and/or the main PLL circuit. Slumber mode is more power-efficient than Partial mode, but the return delay time of the two is different. The return delay time of the Partial mode usually does not exceed 10 microseconds (microsecond), while the return delay time of the Slumber mode generally does not exceed 10 milliseconds (millisecond).
图14是串行高级技术附件接口的电源管理标准的示意图。通过多个串行高级技术附件兼容装置其中之一,将原始指令“局部模式请求”(Partial Request:PMREQ_P)或“休眠模式请求”(Slumber Request:PMREQ_S)传送至串行高级技术附件总线,使与其相连接的串行高级技术附件接口分别进入Partial模式或Slumber模式。为了从Partial模式或Slumber模式返回至PhyReady模式,主机或存储装置其中之一将带外(Out OfBand,OOB)信号COMWAKE传送至串行总线,然后,主机或存储装置响应COMWAKE,并切换至PhyReady模式。Figure 14 is a schematic diagram of the power management standard for the Serial Advanced Technology Accessory Interface. Transmit the original command "Partial Mode Request" (Partial Request: PMREQ_P) or "Slumber Request" (Slumber Request: PMREQ_S) to the serial advanced technology accessory bus through one of the multiple serial advanced technology accessory compatible devices, so that The serial advanced technology accessory interface connected with it enters Partial mode or Slumber mode respectively. In order to return to PhyReady mode from Partial mode or Slumber mode, one of the host or storage device transmits the out-of-band (Out OfBand, OOB) signal COMWAKE to the serial bus, and then the host or storage device responds to COMWAKE and switches to PhyReady mode .
一般来说,串行高级技术附件兼容装置将在所有未完成的命令完成后,立即请求电源模式转换。这将允许链路在命令完成后立即进入低耗电状态。但是,命令尚未完成之前,链路上会存在一些闲置状态,例如:在命令完成前,等待传送或者接收数据或状态信息。在闲置状态期间,串行高级技术附件兼容装置仅接收或传送同步信号。In general, a SATAT-compliant device will request a power mode transition as soon as all outstanding commands have completed. This will allow the link to enter a low power state as soon as the command completes. However, before the command is completed, there will be some idle states on the link, for example, waiting to transmit or receive data or status information before the command is completed. During the idle state, the SATTA compatible device only receives or transmits synchronization signals.
发明内容 Contents of the invention
为了节省电子装置及电子系统的电能消耗,特提供以下技术方案:In order to save the power consumption of electronic devices and electronic systems, the following technical solutions are provided:
本发明提供一种电源管理方法,应用于具有串行总线接口的电子装置以节省其电能消耗,其中,串行总线接口具有内部队列,用来存储未完成的命令,上述电源管理方法包括:确认内部队列是否为空;以及若内部队列为空,将电子装置切换至省电模式。The present invention provides a power management method, which is applied to an electronic device with a serial bus interface to save its power consumption. The serial bus interface has an internal queue for storing unfinished commands. The above power management method includes: confirmation Whether the internal queue is empty; and if the internal queue is empty, switching the electronic device to a power saving mode.
本发明另提供一种电源管理方法,应用于具有串行总线接口的电子装置以节省其电能消耗,上述电源管理方法包括:确认串行总线接口是否接收或传送同步信号;以及若串行总线接口接收或传送同步信号,将电子装置切换至省电模式。The present invention also provides a power management method, which is applied to an electronic device with a serial bus interface to save its power consumption. The power management method includes: confirming whether the serial bus interface receives or transmits a synchronization signal; and if the serial bus interface Receive or transmit synchronous signal, switch the electronic device to power saving mode.
本发明另提供一种电源管理方法,应用于具有串行总线接口的电子装置以节省其电能消耗,其中,串行总线接口包括链路层部分,上述电源管理方法包括:确认链路层部分是否为闲置状态;以及若链路层部分为闲置状态,将串行总线接口切换至省电模式。The present invention also provides a power management method, which is applied to an electronic device with a serial bus interface to save its power consumption, wherein the serial bus interface includes a link layer part, and the above power management method includes: confirming whether the link layer part is is in an idle state; and if the link layer part is in an idle state, switching the serial bus interface to a power saving mode.
本发明又提供一种电源管理方法,应用于可操作在非省电模式及省电模式下的电子系统以节省其电能消耗,上述电源管理方法包括:在非省电模式下,当电子系统为闲置状态时,计算闲置状态时间;若闲置状态时间大于或等于第一阈值,将电子系统切换至省电模式;当电子系统处于省电模式期间,计算电源切断时间;以及依据电源切断时间,修改第一阈值。The present invention further provides a power management method, which is applied to an electronic system operable in a non-power-saving mode and a power-saving mode to save its power consumption. The power management method includes: in the non-power-saving mode, when the electronic system is When in the idle state, calculate the idle state time; if the idle state time is greater than or equal to the first threshold, switch the electronic system to the power saving mode; when the electronic system is in the power saving mode, calculate the power cut time; and according to the power cut time, modify first threshold.
上述电源管理方法可通过各种不同途径确认是否应当进入省电模式,并在符合条件时将电子装置切换至省电模式,从而节省上述电子装置及电子系统的电能消耗。The above-mentioned power management method can confirm whether to enter the power-saving mode through various ways, and switch the electronic device to the power-saving mode when conditions are met, so as to save the power consumption of the above-mentioned electronic device and electronic system.
附图说明 Description of drawings
图1是依本发明实施例的系统的方块图。FIG. 1 is a block diagram of a system according to an embodiment of the present invention.
图2a及2b是应用于图1所示系统的两种自动电源管理方法的流程图。2a and 2b are flowcharts of two automatic power management methods applied to the system shown in FIG. 1 .
图3是依本发明实施例的另一系统的方块图。FIG. 3 is a block diagram of another system according to an embodiment of the present invention.
图4a及4b是应用于图3所示系统的两种自动电源管理方法的流程图。4a and 4b are flowcharts of two automatic power management methods applied to the system shown in FIG. 3 .
图5是依本发明实施例的串行高级技术附件兼容装置的一种自动电源管理方法的流程图。FIG. 5 is a flowchart of an automatic power management method for a SATAT compatible device according to an embodiment of the present invention.
图6-12是用来说明图5中步骤512的范例。6-12 are examples for illustrating
图13是串行高级技术附件规格中通信层的示意图。Figure 13 is a schematic diagram of the communication layers in the Serial Advanced Technology Annex specification.
图14是串行高级技术附件接口的电源管理标准的示意图。Figure 14 is a schematic diagram of the power management standard for the Serial Advanced Technology Accessory Interface.
具体实施方式 Detailed ways
在说明书及权利要求书当中使用了某些词汇来指称特定的元件。所属技术领域的技术人员应可理解,硬件制造商可能会用不同的名词来称呼同一个元件。本说明书及权利要求书并不以名称的差异作为区分元件的方式,而是以元件在功能上的差异作为区分的准则。在通篇说明书及权利要求项中所提及的「包括」为一开放式的用语,故应解释成「包括但不限定于」。此外,「耦接」一词在此包括任何直接及间接的电气连接手段。因此,若文中描述第一装置耦接于第二装置,则代表第一装置可直接电气连接于第二装置,或透过其它装置或连接手段间接地电气连接至第二装置。Certain terms are used in the description and claims to refer to particular elements. Those skilled in the art should understand that hardware manufacturers may use different terms to refer to the same component. The specification and claims do not use the difference in name as a way to distinguish components, but use the difference in function of components as a criterion for distinguishing. "Include" mentioned throughout the description and claims is an open-ended term, so it should be interpreted as "including but not limited to". In addition, the term "coupled" herein includes any direct and indirect means of electrical connection. Therefore, if it is described that the first device is coupled to the second device, it means that the first device may be directly electrically connected to the second device, or indirectly electrically connected to the second device through other devices or connection means.
图1是依本发明实施例的系统的方块图,上述系统具有主机(例如:个人计算机)以及存储装置(例如:光驱),两者通过串行高级技术附件总线通信。主机与光驱都是串行高级技术附件兼容装置。如图1所示,主机10包括:主要主机单元14、串行高级技术附件接口16、用来传送信息的传送器模块Tx及用来接收信息的接收器模块Rx;存储装置12包括:主要光驱单元20、串行高级技术附件接口18、用来传送信息的传送器模块Tx及用来接收信息的接收器模块Rx。串行高级技术附件接口16和18都通过配置于两者之间的串行高级技术附件总线22互相传送数据。每一个串行高级技术附件接口(16或18)均包括内部队列(24或26),用来于其中动态地重新安排或重新记录命令,以使串行高级技术附件接口16或18均支持本机命令队列指令集(Native Command Queuing,NCQ)或本机高级技术附加数据包接口命令,其中,本机命令队列指令集是一种命令协议,用来允许串行高级技术附件在单一光驱内执行多重未完成命令,本机高级技术附加数据包接口是一种串行高级技术附件命令协议,用来允许单一串行高级技术附件的帧信息结构中未完成的封包命令。FIG. 1 is a block diagram of a system according to an embodiment of the present invention. The above-mentioned system has a host computer (such as a personal computer) and a storage device (such as an optical drive), and the two communicate through a serial advanced technology accessory bus. Both the host computer and the optical drive are Serial Advanced Technology Accessory Compatible Devices. As shown in Figure 1, the
图2a与2b是依本发明实施例的两种自动电源管理的流程图,应用于图1中的串行高级技术附件兼容装置主机10与存储装置12。如图所示,若其内部队列为空,串行高级技术附件接口被确认为闲置状态。串行高级技术附件的主机10或者串行高级技术附件兼容存储装置12均可各自确认串行高级技术附件接口是否为闲置状态。虽然整合串行高级技术附件接口16的主机10同样可用来说明图2a与2b的操作步骤,但为了简化说明,下文仅以图1中整合串行高级技术附件接口18的存储装置12为例进行说明。在图2a的步骤200中,确认内部队列26是否为空。若是,则串行高级技术附件接口18被认定为闲置状态。接着,如图2a的步骤202所示,存储装置12被切换至操作于省电模式下。上述模式改变可通过将“局部模式请求”或“休眠模式请求”传送至串行高级技术附件总线22来实现。2a and 2b are flowcharts of two types of automatic power management according to an embodiment of the present invention, applied to the
备选地,如图2b所示,可以延迟进入省电模式,直到闲置状态持续一段预设时间。与图2a的步骤200相似,图2b的步骤204用来确认内部队列26是否为空。若是,在步骤206中,初始化计时器,以在内部队列26持续为空时计算闲置状态时间。步骤208与210形成一个循环,以连续地确认串行高级技术附件接口18的闲置状态时间是否达到模式进入时间。若结果为否,在步骤210中选取“否”路径,上述循环返回至步骤208。若闲置状态时间大于或等于模式进入时间,则在步骤210中选取“是”路径,如图2b中步骤212所示,存储装置12进入省电模式。Alternatively, as shown in Figure 2b, entry into the power saving mode may be delayed until the idle state lasts for a preset period of time. Similar to step 200 of FIG. 2a, step 204 of FIG. 2b is used to confirm whether the
将串行高级技术附件兼容装置切换至省电模式可包括:通过将“局部模式请求”或“休眠模式请求”传送至串行高级技术附件总线22而将串行高级技术附件兼容装置的串行高级技术附件接口16或18切换至省电模式。备选地,也可以包括:将串行高级技术附件兼容装置的主要主机单元14或主要光驱单元20切换至省电模式,例如:降低存储装置12的转动速度或其它类似方法。更进一步,也可以包括:关闭接收器模块,并在操作于省电模式期间,周期性地启动接收器模块,以检查串行高级技术附件兼容装置是否要求返回主动模式。或者,将串行高级技术附件兼容装置切换至省电模式的方法可包括上述方法的任意组合。Switching a SATTA-compatible device to a power save mode may include switching the SATTA-compatible device's serial The advanced
图3是依本发明另一实施例的系统的方块图。上述系统具有主机30与光驱32,两者通过串行高级技术附件总线22通信。对于具有相同功能的类似元件,图3使用与图1相同的符号。不同于图1的是,串行高级技术附件接口34具有链路层部分38与物理层部分40,串行高级技术附件接口36具有链路层部分44与物理层部分42。物理层部分40耦接于串行高级技术附件总线22,以传送数据至物理层部分42或从物理层部分42接收数据。当执行物理层部分40与链路层部分38的通信时,物理层部分40经由串行高级技术附件总线22执行数据传送或接收。若没有数据传送或接收,物理层部分40处于闲置状态,则传送一个同步信号至串行高级技术附件接口36的物理层部分42,并从物理层部分42接收另一个同步信号。FIG. 3 is a block diagram of a system according to another embodiment of the present invention. The system described above has a
若传输层部分与链路层部分38之间没有通信,物理层部分42也处于闲置状态。处于闲置状态的链路层部分与物理层部分或传输层部分之间没有通信,这表明串行高级技术附件接口34或36也处于闲置状态。备选地,当该串行高级技术附件接口34或36接收或传送同步信号时,串行高级技术附件接口也处于闲置状态。If there is no communication between the transport layer part and the
图4a与4b是依本发明的两种自动电源管理实施例的流程图,应用于图3中串行高级技术附件兼容装置主机30或光驱32。如图4a与4b所示,若物理层部分40或42处于闲置状态,则串行高级技术附件接口34或36被确认为闲置状态。虽然整合串行高级技术附件接口34的主机30同样可用来说明图4a与4b的操作步骤,但为了简化说明,下文仅以图3中整合串行高级技术附件接口36的光驱32为例进行说明。若链路层部分44为闲置状态,或串行高级技术附件接口36接收或传送同步信号,则串行高级技术附件接口36被视为处于闲置状态(步骤300)。随后,如图4a中步骤302所示,光驱32被切换至操作于省电模式下。上述模式改变,可通过将“局部模式请求”或“休眠模式请求”传送至串行高级技术附件总线22来实现。4a and 4b are flowcharts of two automatic power management embodiments according to the present invention, applied to the
备选地,如图4b所示,可以延迟进入省电模式,直到闲置状态持续一段预设时间。与图2b类似,图4b中除了确认步骤304、308与图2b中步骤204、208不同外,其它步骤都执行类似的操作。因此,为简化说明,此处不另赘述。如图4b所示,当串行高级技术附件接口的闲置状态时间达到模式进入时间时,串行高级技术附件兼容装置将被切换至操作于省电模式下。Alternatively, as shown in Figure 4b, entry into the power saving mode may be delayed until the idle state lasts for a preset period of time. Similar to FIG. 2b, except that the confirming
将串行高级技术附件兼容装置切换至省电模式可包括:通过将“局部模式请求”或“休眠模式请求”传送至串行高级技术附件总线22而将串行高级技术附件兼容装置的串行高级技术附件接口34或36切换至省电模式。备选地,也可以包括:将串行高级技术附件兼容装置的主要主机单元14或主要光驱单元20切换至省电模式,例如:降低存储装置32的转动速度或其它类似方式。更进一步,也可以包括:关闭接收器模块,并在操作于省电模式期间,周期性地启动接收器模块,以检查串行高级技术附件兼容装置是否要求返回主动模式。或者,将串行高级技术附件兼容装置切换至省电模式的方法可包括上述方法的任意组合。Switching a SATTA-compatible device to a power save mode may include switching the SATTA-compatible device's serial The advanced
图2b或4b所引入的模式进入时间可以是常数或变量,这取决于串行高级技术附件总线的具体环境。串行高级技术附件兼容装置由非省电模式改变至省电模式时,表明串行高级技术附件兼容装置进入省电模式,反之,串行高级技术附件兼容装置将进入主动模式。因此,模式进入时间是从串行高级技术附件接口被确认为闲置状态,至串行高级技术附件兼容装置进入省电模式的一段时间。电源切断时间,定义为从串行高级技术附件兼容装置进入省电模式,直到返回主动模式的一段时间。当串行高级技术附件兼容装置的电源切断时间相对较短时,串行高级技术附件兼容装置可维持主动模式,以避免由于从省电模式快速返回所造成的频繁返回延迟,因此,可适度增加模式进入时间。相反地,若串行高级技术附件兼容装置的电源切断时间相对较长时,则提早进入省电模式可节省更多电能,因此,应减少模式进入时间。所以,电源切断时间可作为用来修改模式进入时间的一个指标。The mode entry time introduced by Figure 2b or 4b can be constant or variable, depending on the specific circumstances of the Serial Advanced Technology Accessory bus. When the SATAC device changes from the non-power saving mode to the power saving mode, it indicates that the SATAC device enters the power saving mode, otherwise, the SATAC device will enter the active mode. Thus, the mode entry time is the period of time from when the SATIA interface is identified as idle until the SATTA compatible device enters the power saving mode. Power down time, defined as the period of time from when a Serial Advanced Technology Accessory compliant device enters power saving mode until it returns to active mode. When the power-off time of the SATAT-compliant device is relatively short, the SATAT-compliant device can maintain the active mode to avoid frequent return delays due to the rapid return from power-saving mode, so a modest increase in Mode entry time. Conversely, if the power-off time of the SATAT-compliant device is relatively long, entering the power saving mode earlier can save more power, so the mode entry time should be reduced. Therefore, the power-off time can be used as an index for modifying the mode-entry time.
图5是依本发明实施例的串行高级技术附件兼容装置的一种自动电源管理方法的流程图。如步骤500所示,在非省电模式下,确认串行高级技术附件接口是否为闲置状态。若是,在步骤502中启动计时器以计算闲置状态时间。随后,执行步骤504以确认闲置状态时间是否达到模式进入时间。当串行高级技术附件接口返回至数据传送或接收状态,即,在闲置状态时间达到模式进入时间之前返回至主动模式,则停止闲置状态时间的计算并重置计时器,然后返回步骤500(步骤504的“否”路径)。若闲置状态时间超过或等于模式进入时间,则执行步骤506,以将串行高级技术附件兼容装置切换至操作于省电模式,并在步骤508中,启动电源切断时间的计算。随后,在步骤510中,确认串行高级技术附件接口是否为主动模式。当串行高级技术附件接口返回至主动模式,执行步骤512以停止电源切断时间的计算,并确认模式进入时间是否需要修改。在步骤514中,确认电源切断时间是否适当。若是,则模式进入时间不会被修改,且流程返回至步骤500。否则,在步骤516中,修改模式进入时间,然后流程返回至步骤500。FIG. 5 is a flowchart of an automatic power management method for a SATAT compatible device according to an embodiment of the present invention. As shown in
图6是用来说明图5中步骤512的范例。在步骤602中,确认电源切断时间是否小于预设的第二阈值。若是(步骤602的“是”路径),如步骤604所示,增加模式进入时间,例如:增加一个预设数值。若电源切断时间大于或等于预设的第二阈值(步骤602的“否”路径),则模式进入时间维持不变。FIG. 6 is an example for illustrating
模式进入时间可以被限制,以避免因为模式进入时间的持续增加所导致的非预期影响。相应地,图7是图6的修改版本。在步骤604之后,执行步骤706,以确认模式进入时间是否到达上限。若否,则模式进入时间维持不变。否则,在步骤708中,减少模式进入时间,可随意地减少或减少一个预设数值。因此,可维持模式进入时间小于上限,并且可以避免超过上限的闲置状态时间。The mode entry time can be limited to avoid unintended effects caused by the continuous increase of the mode entry time. Accordingly, FIG. 7 is a modified version of FIG. 6 . After
图8也是用来说明图5的步骤512,其中,电源切断时间若小于第二阈值,则被确认为太短。图6与7是说明因电源切断时间太短而触发模式进入时间的增加,与上述两图不同,图8中,模式进入时间可增加或减少,以使模式进入时间保持在上限与下限之间。当修正时,利用倾向变量来指示模式进入时间增加或减少。因此,在步骤802中,确认电源切断时间是否太短,即,电源切断时间是否小于第二阈值。执行步骤804,以确认模式进入时间具有变高或变低的倾向。若模式进入时间具有变高的倾向,在步骤804后执行步骤806,使模式进入时间增加。若模式进入时间具有变低的倾向,在步骤804后执行步骤808,使模式进入时间减少。执行步骤810,以确认改变后的模式进入时间是否达到上限或下限。若是,则对模式进入时间执行反向操作,反转其倾向,以使模式进入时间维持在上限与下限之间。FIG. 8 is also used to illustrate
图9是用来说明图5中步骤512的另一范例,其中,模式进入时间仅可以是一个较高值或一个较低值。若电源切断时间被确认为太短,则模式进入时间将由一个数值被切换至另一数值。在图9的步骤902中,确认电源切断时间是否小于第二阈值。若否,模式进入时间保持不变。否则,执行步骤904,以确认模式进入时间是否为较高值或较低值。随后,在步骤906中,模式进入时间由较高值被切换至较低值,或者,在步骤908中,模式进入时间由较低值被切换至较高值。FIG. 9 is another example for illustrating
图10是用来说明图5中步骤512的另一例范例。在步骤1002中,确认电源切断时间是否小于第二阈值。若否,模式进入时间维持不变。否则,在步骤1004中,将模式进入时间随机地指定为介于上限与下限间的数值。FIG. 10 is another example for illustrating
图11与图6不同之处在于额外的步骤1102,即步骤602中确认为“否”结果后的路径。在步骤1102中,当电源切断时间不小于第二阈值时,减小模式进入时间,这使得串行高级技术附件兼容装置可以被更早切换至省电模式,以节省更多电能。The difference between FIG. 11 and FIG. 6 lies in the
由于不适当的电源切断时间会因偶然事件而单独发生,因此,当电源切断时间被确认为太短或太长时,不能够每次都修改模式进入时间。所以,如图12所示,采用最近收集的电源切断时间的统计结果来作为模式进入时间修改方法的佐证。在步骤1202中,计算最近收集的电源切断时间的统计结果。若统计结果符合第一标准(步骤1204的“是”路径),将在步骤1208中增加模式进入时间。否则,执行步骤1206。若统计结果符合第二标准(步骤1206的“是”路径),将在步骤1210中减少模式进入时间。否则,模式进入时间维持不变。Since an inappropriate power-off time occurs solely by accident, it is not possible to modify the mode-entry time every time when the power-off time is confirmed to be too short or too long. Therefore, as shown in FIG. 12 , the most recently collected statistical results of power cut-off time are used as evidence for the mode entry time modification method. In
图12的统计结果,可以是一定数目的最近收集的电源切断时间中,不适当电源切断时间的百分比。或者,也可以是在某一期间内,不适当电源切断时间的数目。例如:若在每20笔最新收集的电源切断时间中,超过80%者被确认为太短,则表明模式进入时间应增加。又例如:若在一个小时内,超过10笔的电源切断时间被确认为太短,也可以表明模式进入时间应增加。其它条件也可能作为模式进入时间应增加的佐证,例如:在一天时间内,所有电源切断时间被确认为太短,或者,在一段预设时间内,超过连续8笔电源切断时间被确认为太短等等。用来证明模式进入时间需要减少的标准可相似或不相似于用来证明模式进入时间需要增加的标准。例如:上述两种标准都可以依据不适当电源切断时间的百分比,或者,一种依据百分比,而另一种则依据不适当电源切断时间的数目。The statistical result in FIG. 12 may be the percentage of inappropriate power-off time among a certain number of recently collected power-off times. Alternatively, it may be the number of inappropriate power-off times within a certain period. Example: If more than 80% of every 20 latest collected power cut times are found to be too short, it indicates that the mode entry time should be increased. Another example: if within one hour, the power cut-off time of more than 10 pens is confirmed to be too short, it may also indicate that the mode entry time should be increased. Other conditions may also be used as evidence that the mode entry time should be increased, for example: all power cut times are determined to be too short within a day, or more than 8 consecutive power cut times are determined to be too short within a predetermined period of time. short wait. The criteria used to justify a required decrease in mode entry time may or may not be similar to the criteria used to justify a required increase in mode entry time. For example: both of the above criteria can be based on the percentage of inappropriate power off time, or one can be based on a percentage and the other can be based on the number of inappropriate power off time.
本发明的实施例是以串行高级技术附件接口为例说明,但并非仅限于此。本发明也可以在使用串行小型计算机系统接口总线的串行小型计算机系统接口上实现。例如:可利用图2a、2b及图5-12所揭露的电源管理方法其中之一,以串行小型计算机系统接口总线及对应的串行小型计算机系统接口取代图1中的串行高级技术附件总线22及串行高级技术附件接口16与18。而图3中的串行高级技术附件总线22与串行高级技术附件接口34与32,可使用串行小型计算机系统接口总线与对应的串行小型计算机系统接口来取代,其可以利用揭露于图4a、4b及图5-12的电源管理方法其中之一。Embodiments of the present invention are illustrated using the Serial Advanced Technology Accessory Interface as an example, but not limited thereto. The present invention can also be implemented on a Serial Small Computer System Interface using the Serial Small Computer System Interface bus. For example: one of the power management methods disclosed in Figures 2a, 2b and Figures 5-12 can be used to replace the serial advanced technology attachment in Figure 1 with the serial small computer system interface bus and the corresponding serial small computer
以上所述仅为本发明的较佳实施例,凡依本发明权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810147030A CN101650591A (en) | 2008-08-12 | 2008-08-12 | Power supply management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810147030A CN101650591A (en) | 2008-08-12 | 2008-08-12 | Power supply management method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101650591A true CN101650591A (en) | 2010-02-17 |
Family
ID=41672841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810147030A Pending CN101650591A (en) | 2008-08-12 | 2008-08-12 | Power supply management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101650591A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102218947A (en) * | 2010-03-25 | 2011-10-19 | 佳能株式会社 | Information processing apparatus and control method of information processing apparatus |
-
2008
- 2008-08-12 CN CN200810147030A patent/CN101650591A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102218947A (en) * | 2010-03-25 | 2011-10-19 | 佳能株式会社 | Information processing apparatus and control method of information processing apparatus |
US8595530B2 (en) | 2010-03-25 | 2013-11-26 | Canon Kabushiki Kaisha | Information processing apparatus and control method of information processing apparatus |
CN102218947B (en) * | 2010-03-25 | 2014-03-19 | 佳能株式会社 | Information processing apparatus and control method of information processing apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20090187779A1 (en) | Automatic power management method | |
US10552352B2 (en) | Methods and apparatus for synchronizing uplink and downlink transactions on an inter-device communication link | |
US8839015B2 (en) | Systems and methods for reducing power consumption of a communication device | |
US8208467B2 (en) | Method and apparatus for modulating the width of a high-speed link | |
US7225350B2 (en) | Active state link power management | |
EP1396959B1 (en) | System and method for optimizing power consumption in a mobile environment | |
TWI408557B (en) | High speed input/output system and power-saved control method thereof | |
CN100373299C (en) | Method and dual processor device for controlling data communication between two processors | |
US20100332866A1 (en) | Method and system for optimizing power consumption in a mobile environment | |
CN108713197A (en) | Adaptive Fast Peripheral Component Interconnect Link Substate Initiation for Optimal Performance and Power Savings | |
US20170212579A1 (en) | Storage Device With Power Management Throttling | |
KR20080001660A (en) | Supply control of data from feed buffer | |
WO2013063972A1 (en) | Communication method, communication apparatus and electronic device | |
CN116414212A (en) | Core particle and control method for core particle | |
WO2015018003A1 (en) | Ltr/obff design scheme for ethernet adapter application | |
US10551905B1 (en) | Data-transmission-format conversion circuit and control method for data-transmission-format conversions between different high-speed data transmission interfaces | |
US20050223141A1 (en) | Data flow control in a data storage system | |
CN101650591A (en) | Power supply management method | |
CN118760351A (en) | Data transmission method, microcontroller, communication system and readable storage medium | |
CN116880658B (en) | Low-power consumption PCIe (peripheral component interconnect express) repeater chip and design method thereof | |
CN111813179A (en) | Analog-to-digital converter control method and control chip | |
WO2012167520A1 (en) | Automatic control method and system for power consumption | |
CN102023946B (en) | Interface method of USB 1.1 bus and high-speed intelligent unified bus | |
CN119697738A (en) | Chip and control method thereof, and electronic device | |
CN118012255A (en) | Power consumption control method of IO device, IO device and computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CI01 | Publication of corrected invention patent application |
Correction item: Priority Correct: [32] 20080118[33] US[31] 12/016272 Number: 07 Volume: 26 |
|
CI02 | Correction of invention patent application |
Correction item: Priority Correct: [32] 20080118[33] US[31] 12/016272 Number: 07 Page: The title page Volume: 26 |
|
ERR | Gazette correction |
Free format text: CORRECT: PRIORITY; FROM: NONE TO: 2 0080118; 3 S; 1 2/016,272 |
|
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20100217 |