TWI633422B - Extendable host device and power management method thereof - Google Patents
Extendable host device and power management method thereof Download PDFInfo
- Publication number
- TWI633422B TWI633422B TW106114199A TW106114199A TWI633422B TW I633422 B TWI633422 B TW I633422B TW 106114199 A TW106114199 A TW 106114199A TW 106114199 A TW106114199 A TW 106114199A TW I633422 B TWI633422 B TW I633422B
- Authority
- TW
- Taiwan
- Prior art keywords
- expansion
- host
- connection
- power
- connection interface
- Prior art date
Links
- 238000007726 management method Methods 0.000 title claims abstract description 43
- 238000001514 detection method Methods 0.000 claims description 19
- 230000003190 augmentative effect Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 230000002093 peripheral effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Landscapes
- Power Sources (AREA)
Abstract
一種擴充式主機與其電源管理方法。所述電源管理方法包括:經由所述擴充式主機的至少一連接介面偵測至少一擴充裝置的連接狀況;根據所述連接狀況設定電源門檻值;以及若所述擴充式主機的電源消耗值超過所述電源門檻值,執行系統保護操作,以降低所述擴充式主機的系統負載。An extended host and its power management method. The power management method includes: detecting, by using at least one connection interface of the extended host, a connection status of the at least one expansion device; setting a power threshold according to the connection status; and if the power consumption value of the expansion host exceeds The power threshold value performs a system protection operation to reduce the system load of the expansion host.
Description
本發明是有關於一種電源管理技術,且特別是有關於一種擴充式主機與其電源管理方法。The present invention relates to a power management technique, and more particularly to an expansion host and a power management method thereof.
在桌上型電腦等需要由外接電源供電的電子裝置出廠前,電子裝置的系統中會設置有一個電源安全上限值。此電源安全上限值是用來確保未來電子裝置在接收外接電源而運行時,其整體功率消耗不會超過預先決定的一個電源安全上限。一旦電子裝置的整體功率消耗超過這個電源安全上限,電子裝置就有很高的機率發生當機甚至電路燒毀等問題。Before the electronic device that needs to be powered by an external power source such as a desktop computer is shipped from the factory, a power supply safety upper limit value is set in the system of the electronic device. This power supply upper limit is used to ensure that the future power consumption of the electronic device will not exceed a predetermined power supply upper limit when it is operating with external power. Once the overall power consumption of the electronic device exceeds the upper limit of the power supply safety, the electronic device has a high probability of occurrence of problems such as crashing or even burning of the circuit.
一般來說,這個電源安全上限值是系統工程師根據估計的系統負載而預先設定的一個固定值。然而,對某些具有擴充性而可能導致系統負載發生大幅度變動的電子裝置來說,固定的電源安全上限值不太符合實際使用需求。In general, this power supply upper limit is a fixed value that the system engineer presets based on the estimated system load. However, for some electronic devices that are scalable and can cause large changes in system load, the fixed power supply safety upper limit does not meet the actual use requirements.
有鑑於此,本發明提供一種擴充式主機與其電源管理方法,可動態調整用來觸發系統保護操作的電源門檻值。In view of this, the present invention provides an extended host and a power management method thereof, which can dynamically adjust a power threshold for triggering system protection operations.
本發明的一實施例提供一種電源管理方法,其用於擴充式主機,其中所述擴充式主機包括至少一連接介面以連接至少一擴充裝置,所述電源管理方法包括:經由所述至少一連接介面偵測所述至少一擴充裝置的連接狀況;根據所述連接狀況設定電源門檻值;以及若所述擴充式主機的電源消耗值超過所述電源門檻值,執行系統保護操作,以降低所述擴充式主機的系統負載。An embodiment of the present invention provides a power management method for an expansion host, wherein the expansion host includes at least one connection interface to connect at least one expansion device, and the power management method includes: connecting via the at least one connection The interface detects a connection status of the at least one expansion device; sets a power threshold according to the connection status; and if a power consumption value of the expansion host exceeds the power threshold, performs a system protection operation to reduce the The system load of the augmented host.
本發明的一實施例提供一種擴充式主機,其包括至少一連接介面與電源管理電路。所述至少一連接介面用以連接至少一擴充裝置。所述電源管理電路連接所述至少一連接介面。所述電源管理電路經由所述至少一連接介面偵測所述至少一擴充裝置的連接狀況,並根據所述連接狀況設定電源門檻值,以及若所述擴充式主機的電源消耗值超過所述電源門檻值,所述電源管理電路指示執行系統保護操作,以降低所述擴充式主機的系統負載。An embodiment of the invention provides an expansion host that includes at least one connection interface and a power management circuit. The at least one connection interface is configured to connect at least one expansion device. The power management circuit is coupled to the at least one connection interface. The power management circuit detects a connection status of the at least one expansion device via the at least one connection interface, and sets a power threshold according to the connection status, and if the power consumption value of the expansion host exceeds the power source A threshold value, the power management circuit instructing to perform a system protection operation to reduce the system load of the augmented host.
基於上述,本發明的擴充式主機與其電源管理方法,可根據擴充裝置的連接狀況動態決定電源門檻值。一旦擴充式主機的電源消耗值超過所述電源門檻值,即執行系統保護操作,以避免發生危害。相對於傳統使用一個固定值作為電源安全上限值,動態決定的電源門檻值可更符合當前系統的擴充狀態,兼顧省電與安全性。Based on the above, the extended host of the present invention and its power management method can dynamically determine the power threshold based on the connection status of the expansion device. Once the power consumption value of the expansion host exceeds the power threshold, the system protection operation is performed to avoid a hazard. Compared with the traditional use of a fixed value as the power supply upper limit, the dynamically determined power threshold can be more in line with the current system expansion state, taking into account power saving and security.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.
圖1是根據本發明的一實施例所繪示的擴充式主機、擴充裝置及外接式電源的示意圖。請參照圖1,擴充式主機10為可獨立運作並可進行資料輸入、運算及輸出的電腦主機,例如桌上型電腦或筆記型電腦等。在本實施例中,擴充式主機10至少具有中央處理器(CPU)、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、各式輸入/輸出(I/O)介面等用以組成電腦主機的基本構件。此外,在一實施例中,擴充式主機10還可具有顯示晶片及/或有線/無線通訊晶片等進階訊號處理元件。1 is a schematic diagram of an expansion host, an expansion device, and an external power supply according to an embodiment of the invention. Referring to FIG. 1, the expansion host 10 is a computer host that can operate independently and can input, calculate, and output data, such as a desktop computer or a notebook computer. In this embodiment, the expansion host 10 has at least a central processing unit (CPU), a random access memory (RAM), a read only memory (ROM), various input/output (I/O) interfaces, and the like. The basic building blocks that make up the computer. In addition, in an embodiment, the expansion host 10 can also have advanced signal processing components such as display chips and/or wired/wireless communication chips.
在本實施例中,擴充式主機10還具有連接介面101(亦稱為第一連接介面)與連接介面102(亦稱為第二連接介面)。連接介面101與102可相容於序列先進附件(Serial Advanced Technology Attachment, SATA)標準、並列先進附件(Parallel Advanced Technology Attachment, PATA)標準、電氣和電子工程師協會(Institute of Electrical and Electronic Engineers, IEEE)1394標準、高速周邊零件連接介面(Peripheral Component Interconnect Express, PCI Express)標準、通用序列匯流排(Universal Serial Bus, USB)標準、超高速一代(Ultra High Speed-I, UHS-I)介面標準、超高速二代(Ultra High Speed-II, UHS-II)介面標準、記憶棒(Memory Stick, MS)介面標準、通用快閃記憶體(Universal Flash Storage, UFS)介面標準、整合式驅動電子介面(Integrated Device Electronics, IDE)標準或其他適合的標準。此外,連接介面101與102採用的連接介面標準可以相同或不同,本發明不加以限制。In this embodiment, the expansion host 10 further has a connection interface 101 (also referred to as a first connection interface) and a connection interface 102 (also referred to as a second connection interface). The connection interfaces 101 and 102 are compatible with the Serial Advanced Technology Attachment (SATA) standard, the Parallel Advanced Technology Attachment (PATA) standard, and the Institute of Electrical and Electronic Engineers (IEEE). 1394 standard, Peripheral Component Interconnect Express (PCI Express) standard, Universal Serial Bus (USB) standard, Ultra High Speed-I (UHS-I) interface standard, Super High-speed second-generation (UHS-II) interface standard, Memory Stick (MS) interface standard, Universal Flash Storage (UFS) interface standard, integrated drive electronic interface (Integrated) Device Electronics, IDE) standards or other suitable standards. In addition, the connection interface standards used by the connection interfaces 101 and 102 may be the same or different, and the invention is not limited.
擴充式主機10可經由連接介面101連接至擴充裝置11(亦稱為第一擴充裝置)及/或經由連接介面102連接至擴充裝置12(亦稱為第二擴充裝置)。在本實施例中,擴充裝置11可以包括視訊圖形陣列(VGA)顯示晶片(亦稱為VGA顯示卡)等各式顯示晶片,而儲存裝置可包括光碟機、硬碟(HDD)、固態硬碟(SSD)或固態混合硬碟(SSHD)等各式儲存裝置。藉此,當擴充式主機10經由連接介面101連接至擴充裝置11之後,擴充裝置11中的顯示晶片可作為擴充式主機10的主要或次要顯示晶片並提供額外的視訊(圖像)運算功能及/或作為視訊訊號傳輸介面。或者,當擴充式主機10經由連接介面102連接至擴充裝置12之後,擴充裝置12中的儲存裝置可提供額外的儲存空間供擴充式主機10使用。此外,在一實施例中,擴充裝置11與12的至少其中一者還可包括其他類型的周邊/外接裝置,例如,有線/無線網路介面卡等,只要符合相應的連接介面(即,連接介面101或102)之規格且所提供之功能相容於擴充式主機10即可。The expansion unit 10 can be connected to the expansion device 11 (also referred to as a first expansion device) via the connection interface 101 and/or to the expansion device 12 (also referred to as a second expansion device) via the connection interface 102. In this embodiment, the expansion device 11 may include various display chips such as a video graphics array (VGA) display chip (also referred to as a VGA display card), and the storage device may include a CD player, a hard disk (HDD), and a solid state drive. Various storage devices such as (SSD) or solid state hybrid hard disk (SSHD). Thereby, after the expansion host 10 is connected to the expansion device 11 via the connection interface 101, the display wafer in the expansion device 11 can serve as a primary or secondary display chip of the expansion host 10 and provide additional video (image) computing functions. And/or as a video signal transmission interface. Alternatively, after the expansion host 10 is connected to the expansion device 12 via the connection interface 102, the storage device in the expansion device 12 can provide additional storage space for use by the expansion host 10. In addition, in an embodiment, at least one of the expansion devices 11 and 12 may further include other types of peripheral/external devices, such as a wired/wireless network interface card, etc., as long as the corresponding connection interface (ie, connection) is met. The specifications of the interface 101 or 102) and the functions provided are compatible with the expansion host 10.
另一方面,擴充式主機10會連接至外接式電源13以從外接式電源13接收運作所需的電源PW。例如,外接式電源13可包括一或多個電源適配器(adaptor)。在連接至擴充裝置11與12的至少其中一之後,電源PW也會同時供應給所連接的擴充裝置及所連接的其餘周邊裝置。On the other hand, the expansion main unit 10 is connected to the external power supply 13 to receive the power supply PW required for operation from the external power supply 13. For example, the external power source 13 can include one or more power adapters. After being connected to at least one of the expansion devices 11 and 12, the power source PW is also supplied to the connected expansion device and the remaining peripheral devices connected.
圖2是根據本發明的一實施例所繪示的擴充式主機的示意圖。請參照圖1與圖2,擴充式主機10還具有電源管理電路21,其連接至連接介面101或102。電源管理電路21會經由連接介面101與102偵測擴充裝置11與12的連接狀況,並根據所測得的連接狀況設定一個電源門檻值。此電源門檻值是用以作為擴充式主機10之整體系統負載的一個電源安全上限值。在擴充式主機10的運作過程中,電源管理電路21會持續監測擴充式主機10的系統負載並計算一個電源消耗值。例如,擴充式主機10的系統負載包括擴充式主機10本身的電源負載、所連接的擴充裝置(例如,擴充裝置11及/或12)的電源負載以及其餘根據電源PW來運作的周邊裝置的電源負載。換言之,此電源消耗值可用於表示當前擴充式主機10的(整體)系統負載。FIG. 2 is a schematic diagram of an extended host according to an embodiment of the invention. Referring to FIG. 1 and FIG. 2, the expansion host 10 further has a power management circuit 21 connected to the connection interface 101 or 102. The power management circuit 21 detects the connection status of the expansion devices 11 and 12 via the connection interfaces 101 and 102, and sets a power threshold based on the measured connection conditions. This power threshold is a power safety upper limit used as the overall system load of the augmented host 10. During operation of the augmented host 10, the power management circuit 21 continuously monitors the system load of the augmented host 10 and calculates a power consumption value. For example, the system load of the expansion host 10 includes the power load of the expansion host 10 itself, the power load of the connected expansion devices (for example, the expansion devices 11 and/or 12), and the power supply of the remaining peripheral devices operating according to the power supply PW. load. In other words, this power consumption value can be used to represent the (overall) system load of the current augmented host 10.
若此電源消耗值超過所述電源門檻值,電源管理電路21會發出一個通知以指示擴充式主機10執行系統保護操作,以降低擴充式主機10的系統負載。例如,在一實施例中,根據此通知,擴充式主機10的中央處理器可主動執行降頻,以降低其工作頻率。或者,在一實施例中,此通知亦可被傳送至擴充式主機10的基本輸入輸出系統(BIOS),而由基本輸入輸出系統指示中央處理器執行降頻。此外,在一實施例中,根據此通知,擴充式主機10則會關閉擴充式主機10中至少一電子元件的供應電源,甚至使擴充式主機10關機,從而快速降低擴充式主機10的系統負載。須注意的是,在其他未提及的實施例中,所述系統保護操作還可以包括其他可用於降低擴充式主機10的系統負載的操作,而非限於上述。此外,若當前電源消耗值未超過所述電源門檻值,則電源管理電路21不發出上述通知。If the power consumption value exceeds the power threshold, the power management circuit 21 issues a notification to instruct the expansion host 10 to perform a system protection operation to reduce the system load of the expansion host 10. For example, in an embodiment, in accordance with this notification, the central processor of the augmented host 10 can actively perform down-conversion to reduce its operating frequency. Alternatively, in an embodiment, this notification may also be communicated to the Basic Input Output System (BIOS) of the augmented host 10, while the basic input output system instructs the central processor to perform a down frequency. In addition, in an embodiment, according to the notification, the expansion host 10 turns off the power supply of at least one electronic component in the expansion host 10, and even shuts down the expansion host 10, thereby rapidly reducing the system load of the expansion host 10. . It should be noted that in other embodiments not mentioned, the system protection operation may also include other operations that may be used to reduce the system load of the augmented host 10, and are not limited to the above. Further, if the current power consumption value does not exceed the power threshold value, the power management circuit 21 does not issue the above notification.
在一實施例中,擴充式主機10還包括偵測腳位201(亦稱為第一偵測腳位)與偵測腳位202(亦稱為第二偵測腳位)。偵測腳位201連接至連接介面101與電源管理電路21。偵測腳位202連接至連接介面102與電源管理電路21。電源管理電路21可偵測偵測腳位201與202的電壓狀態以決定擴充裝置11與12的連接狀況。例如,若未連接擴充裝置11與12,則偵測腳位201與202可能皆處於高電位(pull high);若已連接擴充裝置11但未連接擴充裝置12,則偵測腳位201可能處於低電位(pull low)且偵測腳位202可能處於高電位;若已連接擴充裝置12但未連接擴充裝置11,則偵測腳位202可能處於低電位且偵測腳位201可能處於高電位;若已連接擴充裝置11與12,則偵測腳位201與202可能皆處於低電位。因此,根據偵測腳位201與202的電壓狀態,電源管理電路21可獲得擴充裝置11與12的連接狀況。In an embodiment, the expansion host 10 further includes a detection pin 201 (also referred to as a first detection pin) and a detection pin 202 (also referred to as a second detection pin). The detection pin 201 is connected to the connection interface 101 and the power management circuit 21. The detection pin 202 is connected to the connection interface 102 and the power management circuit 21. The power management circuit 21 can detect the voltage states of the detection pins 201 and 202 to determine the connection status of the expansion devices 11 and 12. For example, if the expansion devices 11 and 12 are not connected, the detection pins 201 and 202 may both be at a high level; if the expansion device 11 is connected but the expansion device 12 is not connected, the detection pin 201 may be at The low potential (pull low) and the detection pin 202 may be at a high potential; if the expansion device 12 is connected but the expansion device 11 is not connected, the detection pin 202 may be at a low potential and the detection pin 201 may be at a high potential. If the expansion devices 11 and 12 are connected, the detection pins 201 and 202 may both be at a low potential. Therefore, according to the voltage states of the detection pins 201 and 202, the power management circuit 21 can obtain the connection status of the expansion devices 11 and 12.
在一實施例中,電源管理電路21可根據擴充裝置11與12的連接狀況從多個門檻值(亦稱為候選門檻值)中選擇其中之一作為當前使用的電源門檻值。例如,所述電源門檻值可能與所連接的擴充裝置的總數、類型及/或耗電量有關。例如,在一實施例中,所述電源門檻值正相關於所連接的擴充裝置的總數。例如,若在時間點A所連接的擴充裝置的總數多於在時間點B所連接的擴充裝置的總數,則對應於時間點A所決定的電源門檻值可能會高於對應於時間點B所決定的電源門檻值。或者,在一實施例中,所述電源門檻值亦可能正相關於所連接的擴充裝置的耗電量。例如,若擴充裝置11的耗電量高於擴充裝置12的耗電量,則(僅)連接擴充裝置11時所使用的電源門檻值可能會高於(僅)連接擴充裝置12時所使用的電源門檻值。此外,在一實施例中,當前使用的電源門檻值亦可以是根據一演算法而動態計算而得。例如,可將當前連接的擴充裝置的總數代入此演算法,而此演算法的輸出即可作為當前使用的電源門檻值。In an embodiment, the power management circuit 21 may select one of a plurality of threshold values (also referred to as candidate threshold values) as the currently used power threshold based on the connection status of the expansion devices 11 and 12. For example, the power threshold may be related to the total number, type, and/or power consumption of the connected expansion devices. For example, in one embodiment, the power threshold is positively related to the total number of connected expansion devices. For example, if the total number of expansion devices connected at time point A is greater than the total number of expansion devices connected at time point B, the power threshold value determined corresponding to time point A may be higher than corresponding to time point B. Determine the power threshold. Alternatively, in an embodiment, the power threshold may also be positively related to the power consumption of the connected expansion device. For example, if the power consumption of the expansion device 11 is higher than the power consumption of the expansion device 12, the power threshold used when the expansion device 11 is connected may be higher than (only) used when the expansion device 12 is connected. Power threshold value. Moreover, in an embodiment, the currently used power threshold may also be dynamically calculated according to an algorithm. For example, the total number of currently connected expansion devices can be substituted into this algorithm, and the output of this algorithm can be used as the power threshold for the current use.
在一實施例中,電源管理電路21包括嵌入式控制器211、邏輯電路212及比較電路213。嵌入式控制器211可偵測偵測腳位201與202的電壓狀態並產生訊號GPO。訊號GPO會對應於偵測腳位201與202的不同電壓狀態而呈現不同的訊號狀態(例如,電壓狀態)。根據訊號GPO,邏輯電路212可經由查表或動態計算等方式產生電源門檻值PTV。比較電路213可比較電源消耗值PCV與電源門檻值PTV並將比較結果回傳給嵌入式控制器211。其中,電源消耗值PCV對應於擴充式主機10當前的(整體)系統負載。例如,電源消耗值PCV可正相關於當前擴充式主機10的系統負載。亦即,若擴充式主機10的系統負載越高,則電源消耗值PCV會越大。若比較結果呈現電源消耗值PCV超過電源門檻值PTV,嵌入式控制器211會發出上述用以指示執行系統保護操作的通知。反之,若比較結果呈現電源消耗值PCV未超過電源門檻值PTV,則嵌入式控制器211不會發出上述通知。In an embodiment, the power management circuit 21 includes an embedded controller 211, a logic circuit 212, and a comparison circuit 213. The embedded controller 211 can detect the voltage states of the detection pins 201 and 202 and generate a signal GPO. The signal GPO will present different signal states (eg, voltage states) corresponding to different voltage states of the detection pins 201 and 202. According to the signal GPO, the logic circuit 212 can generate the power threshold value PTV via a look-up table or dynamic calculation or the like. The comparison circuit 213 can compare the power consumption value PCV with the power threshold value PTV and pass back the comparison result to the embedded controller 211. The power consumption value PCV corresponds to the current (overall) system load of the expansion host 10. For example, the power consumption value PCV can be positively related to the system load of the current augmented host 10. That is, if the system load of the expansion host 10 is higher, the power consumption value PCV will be larger. If the comparison result shows that the power consumption value PCV exceeds the power threshold value PTV, the embedded controller 211 issues the above notification to instruct the execution of the system protection operation. On the other hand, if the comparison result shows that the power consumption value PCV does not exceed the power threshold PTV, the embedded controller 211 does not issue the above notification.
圖3至圖6是根據本發明的多個實施例所繪示的設置電源門檻值示意圖。請參照圖3,在一實施例中,擴充式主機10中儲存有一表格(亦稱為電源門檻值表格)31。表格31記載了多個門檻值(即,候選門檻值)V1~V4,其分別對應於連接狀況1~4。例如,在圖3的實施例中,假設擴充式主機10未連接至任何擴充裝置且連接狀況1對應於此連接狀況,則此時對應於連接狀況1的門檻值V1會被選擇作為電源門檻值。亦即,在擴充式主機10未連接至任何擴充裝置之期間,門檻值V1會被與擴充式主機10當前的電源消耗值進行比較,以決定是否執行上述系統保護操作。3 to 6 are schematic diagrams of setting a power threshold value according to various embodiments of the present invention. Referring to FIG. 3, in an embodiment, the extended host 10 stores a table (also referred to as a power threshold value table) 31. Table 31 describes a plurality of threshold values (i.e., candidate threshold values) V1 to V4, which correspond to connection conditions 1 to 4, respectively. For example, in the embodiment of FIG. 3, assuming that the expansion host 10 is not connected to any expansion device and the connection status 1 corresponds to the connection status, then the threshold value V1 corresponding to the connection status 1 is selected as the power threshold value. . That is, during the period when the expansion host 10 is not connected to any expansion device, the threshold value V1 is compared with the current power consumption value of the expansion host 10 to determine whether to perform the above system protection operation.
請參照圖4,假設擴充式主機10(僅)連接至擴充裝置11且連接狀況2對應於此連接狀況,則此時對應於連接狀況2的門檻值V2會被選擇作為電源門檻值。亦即,在擴充式主機10(僅)連接至擴充裝置11之期間,門檻值V2會被與擴充式主機10當前的電源消耗值進行比較,以決定是否執行上述系統保護操作。Referring to FIG. 4, assuming that the expansion host 10 is (only) connected to the expansion device 11 and the connection status 2 corresponds to the connection status, then the threshold value V2 corresponding to the connection status 2 is selected as the power threshold value. That is, during the expansion of the expansion host 10 (only) to the expansion device 11, the threshold value V2 is compared with the current power consumption value of the expansion host 10 to determine whether to perform the above system protection operation.
請參照圖5,假設擴充式主機10(僅)連接至擴充裝置12且連接狀況3對應於此連接狀況,則此時對應於連接狀況3的門檻值V3會被選擇作為電源門檻值。亦即,在擴充式主機10(僅)連接至擴充裝置12之期間,門檻值V3會被與擴充式主機10當前的電源消耗值進行比較,以決定是否執行上述系統保護操作。Referring to FIG. 5, assuming that the expansion host 10 is (only) connected to the expansion device 12 and the connection status 3 corresponds to the connection status, then the threshold value V3 corresponding to the connection status 3 is selected as the power threshold value. That is, during the expansion of the expansion host 10 (only) to the expansion device 12, the threshold value V3 is compared with the current power consumption value of the expansion host 10 to determine whether to perform the above system protection operation.
請參照圖6,假設擴充式主機10同時連接至擴充裝置11與12且連接狀況4對應於此連接狀況,則此時對應於連接狀況4的門檻值V4會被選擇作為電源門檻值。亦即,在擴充式主機10同時連接至擴充裝置11與12之期間,門檻值V4會被與擴充式主機10當前的電源消耗值進行比較,以決定是否執行上述系統保護操作。Referring to FIG. 6, it is assumed that the expansion host 10 is simultaneously connected to the expansion devices 11 and 12 and the connection status 4 corresponds to the connection status. At this time, the threshold value V4 corresponding to the connection status 4 is selected as the power threshold value. That is, while the expansion host 10 is simultaneously connected to the expansion devices 11 and 12, the threshold value V4 is compared with the current power consumption value of the expansion host 10 to determine whether to perform the above system protection operation.
在圖3至圖6的一實施例中,門檻值V1小於門檻值V2,門檻值V2等於門檻值V3,且門檻值V3小於門檻值V4。例如,門檻值V1可為65瓦(W),門檻值V2與V3可為90瓦,並且門檻值V4則可為135瓦。然而,須注意的是,在另一實施例中,門檻值V2亦可能不等於門檻值V3,本發明不加以限制。In an embodiment of FIGS. 3-6, the threshold value V1 is less than the threshold value V2, the threshold value V2 is equal to the threshold value V3, and the threshold value V3 is less than the threshold value V4. For example, the threshold value V1 can be 65 watts (W), the threshold values V2 and V3 can be 90 watts, and the threshold value V4 can be 135 watts. However, it should be noted that in another embodiment, the threshold value V2 may not be equal to the threshold value V3, which is not limited by the present invention.
圖7是根據本發明的一實施例所繪示的擴充式主機與擴充裝置的外觀示意圖。請參照圖1與圖7,擴充式主機70、擴充裝置71及擴充裝置72分別相同或相似於擴充式主機10、擴充裝置11及擴充裝置12。在本實施例中,擴充式主機70可經由連接介面101於擴充式主機70的表面701連接擴充裝置71,並且擴充式主機70可經由連接介面102於擴充式主機70的表面702連接擴充裝置72。更具體來看,表面701即為擴充式主機70的側面,而表面702即為擴充式主機70的底面。從另一角度來看,在連接擴充裝置71之後,擴充裝置71是連接在擴充式主機70的側面;而在連接擴充裝置72之後,擴充裝置72是連接在擴充式主機70(與擴充裝置71)的底面。在一實施例中,擴充裝置72的底面(或頂面)面積(約)等於擴充式主機70的底面面積與擴充裝置71的底面面積之總和。在一實施例中,亦可視為連接介面101是設置於擴充式主機70的表面701(或側面),並且視為連接介面102是設置於擴充式主機70的表面702(或底面)。FIG. 7 is a schematic diagram of the appearance of an extended host and an expansion device according to an embodiment of the invention. Referring to FIG. 1 and FIG. 7 , the expansion host 70 , the expansion device 71 , and the expansion device 72 are the same or similar to the expansion host 10 , the expansion device 11 , and the expansion device 12 . In the present embodiment, the expansion host 70 can connect the expansion device 71 to the surface 701 of the expansion host 70 via the connection interface 101, and the expansion host 70 can connect the expansion device 72 to the surface 702 of the expansion host 70 via the connection interface 102. . More specifically, the surface 701 is the side of the expansion unit 70, and the surface 702 is the bottom surface of the expansion unit 70. From another point of view, after connecting the expansion device 71, the expansion device 71 is connected to the side of the expansion host 70; and after the expansion device 72 is connected, the expansion device 72 is connected to the expansion host 70 (with the expansion device 71) The bottom surface of the ). In one embodiment, the area of the bottom surface (or top surface) of the expansion device 72 is approximately equal to the sum of the area of the bottom surface of the expansion unit 70 and the area of the bottom surface of the expansion device 71. In an embodiment, the connection interface 101 is also considered to be disposed on the surface 701 (or side) of the expansion unit 70, and the connection interface 102 is considered to be disposed on the surface 702 (or the bottom surface) of the expansion unit 70.
須注意的是,雖然圖2繪示了本發明之一實施例中電源管理電路21的示意圖,但是,在另一實施例中,電源管理電路21中的部分電子元件亦可以是以其他類型的電子元件取代,只要可提供相同或相似功能即可。或者,更多的電子元件亦可加入至電源管理電路21中,以提供額外的功能,視實務上的需求而定。此外,圖1至圖7的實施例皆是以兩個擴充裝置作為擴充式主機之擴充裝置的範例。然而,在另一實施例中,可連接至擴充式主機並與擴充式主機協同運作的擴充裝置的總數還可以是更多,並且可選用的電源門檻值(或候選門檻值)的總數也可以是更多或更少,本發明不加以限制。再者,圖7的實施例中關於擴充式主機與擴充裝置的外觀也僅為範圍。在其他未提及的實施例中,擴充式主機與擴充裝置皆可以具有其他不同的外觀、形狀及尺寸,本發明不加以限制。It should be noted that although FIG. 2 illustrates a schematic diagram of the power management circuit 21 in one embodiment of the present invention, in another embodiment, some of the electronic components in the power management circuit 21 may be of other types. Electronic components are replaced as long as the same or similar functions are available. Alternatively, more electronic components can be added to the power management circuitry 21 to provide additional functionality, depending on the actual needs. In addition, the embodiments of FIGS. 1 to 7 are examples in which two expansion devices are used as expansion devices of the expansion host. However, in another embodiment, the total number of expansion devices that can be connected to the augmented host and operate in conjunction with the augmented host can be more, and the total number of available power thresholds (or candidate thresholds) can also be More or less, the invention is not limited. Moreover, the appearance of the expansion type host and the expansion device in the embodiment of FIG. 7 is also only a range. In other embodiments not mentioned, the expansion host and the expansion device may have other different appearances, shapes and sizes, and the invention is not limited thereto.
圖8是根據本發明的一實施例所繪示的電源管理方法的流程圖。請參照圖8,在步驟S801中,經由擴充式主機的連接介面偵測擴充裝置的連接狀況。在步驟S802中,根據所述連接狀況設定電源門檻值。在步驟S803中,判斷擴充式主機的電源消耗值是否超過所述電源門檻值。若是,在步驟S804中,執行系統保護操作,以降低擴充式主機的電源消耗(或系統負載)。若否,則回到步驟S801。FIG. 8 is a flowchart of a power management method according to an embodiment of the invention. Referring to FIG. 8, in step S801, the connection status of the expansion device is detected via the connection interface of the expansion host. In step S802, a power threshold value is set according to the connection status. In step S803, it is determined whether the power consumption value of the expansion host exceeds the power threshold. If so, in step S804, a system protection operation is performed to reduce the power consumption (or system load) of the expansion host. If no, the process returns to step S801.
然而,圖8中各步驟已詳細說明如上,在此便不再贅述。值得注意的是,圖8中各步驟可以實作為多個程式碼或是電路,本發明不加以限制。此外,圖8的方法可以搭配以上範例實施例使用,也可以單獨使用,本發明不加以限制。However, the steps in FIG. 8 have been described in detail above, and will not be described again here. It should be noted that the steps in FIG. 8 can be implemented as multiple codes or circuits, and the present invention is not limited. In addition, the method of FIG. 8 may be used in combination with the above exemplary embodiments, or may be used alone, and the present invention is not limited thereto.
綜上所述,本發明的擴充式主機與其電源管理方法,可根據擴充裝置的連接狀況動態決定電源門檻值。一旦擴充式主機的電源消耗值超過所述電源門檻值,即執行系統保護操作,以降低擴充式主機的整體系統負載而避免發生危害。相對於傳統使用一個固定值作為電源安全上限值,動態決定的電源門檻值可更符合當前系統的擴充狀態,兼顧省電與安全性。In summary, the expansion host of the present invention and its power management method can dynamically determine the power threshold based on the connection status of the expansion device. Once the power consumption value of the expansion host exceeds the power threshold, system protection operations are performed to reduce the overall system load of the expansion host to avoid hazards. Compared with the traditional use of a fixed value as the power supply upper limit, the dynamically determined power threshold can be more in line with the current system expansion state, taking into account power saving and security.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.
10、70‧‧‧擴充式主機
11、12、71、72‧‧‧擴充裝置
13‧‧‧外接式電源
101、102‧‧‧連接介面
21‧‧‧電源管理電路
211‧‧‧嵌入式控制器
212‧‧‧邏輯電路
213‧‧‧比較電路
201、202‧‧‧偵測腳位
31‧‧‧表格
701、702‧‧‧表面
S801~S804‧‧‧步驟10, 70‧‧‧Extended host
11, 12, 71, 72‧‧‧ expansion devices
13‧‧‧External power supply
101, 102‧‧‧ connection interface
21‧‧‧Power Management Circuit
211‧‧‧ embedded controller
212‧‧‧Logical Circuit
213‧‧‧Comparative circuit
201, 202‧‧‧Detection
31‧‧‧Form
701, 702‧‧‧ surface
S801~S804‧‧‧Steps
圖1是根據本發明的一實施例所繪示的擴充式主機、擴充裝置及外接式電源的示意圖。 圖2是根據本發明的一實施例所繪示的擴充式主機的示意圖。 圖3至圖6是根據本發明的多個實施例所繪示的設置電源門檻值示意圖。 圖7是根據本發明的一實施例所繪示的擴充式主機與擴充裝置的外觀示意圖。 圖8是根據本發明的一實施例所繪示的電源管理方法的流程圖。1 is a schematic diagram of an expansion host, an expansion device, and an external power supply according to an embodiment of the invention. FIG. 2 is a schematic diagram of an extended host according to an embodiment of the invention. 3 to 6 are schematic diagrams of setting a power threshold value according to various embodiments of the present invention. FIG. 7 is a schematic diagram of the appearance of an extended host and an expansion device according to an embodiment of the invention. FIG. 8 is a flowchart of a power management method according to an embodiment of the invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106114199A TWI633422B (en) | 2017-04-28 | 2017-04-28 | Extendable host device and power management method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106114199A TWI633422B (en) | 2017-04-28 | 2017-04-28 | Extendable host device and power management method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI633422B true TWI633422B (en) | 2018-08-21 |
| TW201839546A TW201839546A (en) | 2018-11-01 |
Family
ID=63960054
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW106114199A TWI633422B (en) | 2017-04-28 | 2017-04-28 | Extendable host device and power management method thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI633422B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI872386B (en) * | 2022-10-28 | 2025-02-11 | 華碩電腦股份有限公司 | Electronic device and power consumption threshold value setting method thereof |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI475390B (en) * | 2012-06-05 | 2015-03-01 | Htc Corp | Portable device and peripheral extension dock |
| TW201541231A (en) * | 2014-04-25 | 2015-11-01 | Acer Inc | Hub device |
| US20150378409A1 (en) * | 2014-06-27 | 2015-12-31 | Robert Dunstan | USB Power Delivery Controller Sharing |
| TWI571734B (en) * | 2013-02-05 | 2017-02-21 | 新唐科技股份有限公司 | Power management circuit and method thereof and computer system |
-
2017
- 2017-04-28 TW TW106114199A patent/TWI633422B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI475390B (en) * | 2012-06-05 | 2015-03-01 | Htc Corp | Portable device and peripheral extension dock |
| TWI571734B (en) * | 2013-02-05 | 2017-02-21 | 新唐科技股份有限公司 | Power management circuit and method thereof and computer system |
| TW201541231A (en) * | 2014-04-25 | 2015-11-01 | Acer Inc | Hub device |
| US20150378409A1 (en) * | 2014-06-27 | 2015-12-31 | Robert Dunstan | USB Power Delivery Controller Sharing |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201839546A (en) | 2018-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI721027B (en) | Methods and apparatuses to provide power in idle states | |
| CN103970248B (en) | power management circuit and method and computer system | |
| TW201331744A (en) | USB hub for supplying power and method thereof | |
| US20130332639A1 (en) | Electronic apparatuses and related controlling methods using the same | |
| WO2023029375A1 (en) | Power source consumption management apparatus for four-way server | |
| CN102193583A (en) | Portable computer | |
| CN106464824A (en) | Pin control method and device | |
| US7986159B1 (en) | Method and apparatus for detecting a cable in a redriver | |
| TWI633422B (en) | Extendable host device and power management method thereof | |
| TWI515551B (en) | Computer stick expansion system and its power management method | |
| TWI676886B (en) | System loading detecting device and method | |
| US20140157012A1 (en) | Information processing apparatus and power supplying method | |
| TWI403889B (en) | Portable electronic device and system performance adjustment method thereof | |
| CN102831920A (en) | Power supply circuit and power supply method | |
| CN102780207A (en) | Voltage protection system and voltage protection method | |
| US12072768B2 (en) | Flashing apparatus, booting and recovery apparatus, and electronic device | |
| CN102510275A (en) | Reset circuit and power management unit | |
| TWI579698B (en) | Temperature control method and i/o apparatus using the same | |
| CN102478934A (en) | Heat dissipation device and heat dissipation method thereof | |
| US20190228387A1 (en) | Testing power reuse system, power reuse circuit and testing power reuse method | |
| CN103901959B (en) | Mainboard and power management method thereof | |
| TW201535100A (en) | Electronic device and power management method | |
| TWI703432B (en) | Component power mode switch circuit and motherboard having the same | |
| TW201329691A (en) | Electronic system with power saving function | |
| TW201643597A (en) | Setting processor performance states |