201142832 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種電源管理方法,且特別是有關於 一種應用在外接儲存裝置之電源管理方法。 【先前技術】 目前市面上的多媒體視訊播放盒及數位電視機上盒, 皆可支援USB外接硬碟或内建SATA硬碟以進行錄影或是 播放多媒體檔案。但是這些產品皆沒有對硬碟此耗電甚多 的元件加入省電的機制,所以當多媒體視訊播放盒或數位 電視機上盒沒有在存取硬碟,例如:在看電視或是在閒置 狀態時,此時硬碟馬達仍會持續運轉,此種非必要性之運 轉仍持續消耗電力而造成莫大的浪費,且此種非必要性之 運轉不僅會折損硬碟的壽命,更是一種噪音的來源。 為了避免硬碟此種不必要之運轉,因此急需一種可根 據硬碟使用狀況,進行電源管理之方法。 【發明内容】 本發明之主要目的即是在提供一種電源管理方法,能 即時移除未進行運作外接儲存裝置之電源,藉以降低電力 之損耗。 本發明之一態樣在提供一種應用在一連接主機之第一 外接儲存裝置中之電源管理方法,該方法至少包括:設定 一特定待機時間;當於該待機時間中,均未對該第一外接 201142832 儲存裝置進行存取時,設定 電模式;儲存該第一外接儲存儲存裝置進入一省 -資訊至該主機之記憶體内;;檔=表以及 使用者可劉覽儲在ϋ士 1存裳置之電源移除後,-表。㈣儲存在該主機記憶體内之該至少—檔案列 -a/— 刖 之 置 在一實施例中,於移除該第— 更包括控㈣第_外接贿之電源 f實施例中’當該使用者點 -第一檔案時,重新提供該 ^祜案列表内 以及回復該第二外接儲存"、、·,口一第二外接儲存裝 名一… 存裝置之工作狀態。 在-實施例中’其中當該第 態被回復後,更包括判斷 卜接儲存裝置之工作狀 第一外接儲存裳置。並中:該7冑存裝置是否即為該 —外接館存裝置時,執行二二存裝置即為該第 置内容。 時°貝取該第二外接儲存裝 第-外接儲存裝置,第::接儲存裝置是否即為該 之該第一外接储存裝置之存在該域記憶體内 裝置中。 貝〜否存在於該第二外接儲存 紅合上述所言,本發 接硬碟經過1.料 料,會設定在外 :減少不必要的功率消耗二::進入“省電模 接硬碟内的料列表會暫存省電模式,,時,該外 子在主機的記憶體内,因此,使 201142832 用者仍可透過此暫存資訊,瀏覽該外接硬碟内儲存之檔 案,而不需重新喚醒該外接硬碟。因此可達到節能與不影 響使用者方便性之雙臝結果β 【實施方式】 目前市售外接儲存裝置例如外接硬碟分為IDE、序列 ATA (Serial Advanced Technology Attachment)介面,當與201142832 VI. Description of the Invention: [Technical Field] The present invention relates to a power management method, and more particularly to a power management method applied to an external storage device. [Prior Art] Currently, the multimedia video playback box and the digital TV set-top box on the market can support USB external hard disk or built-in SATA hard disk for recording or playing multimedia files. However, these products do not have a power saving mechanism for the hard disk, which consumes a lot of power, so when the multimedia video player box or the digital TV box is not accessing the hard disk, for example, watching TV or being idle. At this time, the hard disk motor will continue to operate at this time. This non-essential operation continues to consume power and cause great waste, and this non-essential operation will not only damage the life of the hard disk, but also be a kind of noise. source. In order to avoid such unnecessary operation of the hard disk, there is an urgent need for a method of power management according to the state of use of the hard disk. SUMMARY OF THE INVENTION The main object of the present invention is to provide a power management method capable of immediately removing a power source that does not operate an external storage device, thereby reducing power loss. An aspect of the present invention provides a power management method for use in a first external storage device connected to a host, the method comprising: at least setting a specific standby time; and not in the standby time When the external access device 201142832 is accessed, the electrical mode is set; the first external storage storage device is stored into a province-information to the memory of the host; the file=table and the user can be stored in the gentleman 1 After the power supply of the skirt is removed, - the table. (d) storing at least the file-a/- in the memory of the host in an embodiment, in the embodiment of removing the first-and more-controlling (four) When the user clicks on the first file, the working status of the storage device is re-provided in the list of the file and the second external storage is stored, ",,, and the second external storage device is stored. In the embodiment, wherein the first state is restored, the method further comprises determining the working condition of the first storage device. In the meantime, whether the 7-storage device is the external storage device, the second and second storage devices are the first content. When the second external storage device is connected to the external storage device, the first: the storage device is the presence of the first external storage device in the domain memory device. Bei ~ No exists in the second external storage red combined with the above said, the hair extension of the hard disk passes 1. The material will be set outside: reduce unnecessary power consumption 2:: enter the "power saving molded hard disk The material list will temporarily store the power saving mode. When the foreign object is in the memory of the host, the 201142832 user can still browse the file stored in the external hard disk through the temporary storage information without re-re- Awakening the external hard disk, so that the double-naked result of energy saving and user convenience is not obtained. [Embodiment] Currently, an external storage device such as an external hard disk is divided into an IDE and a serial ATA (Serial Advanced Technology Attachment) interface. When and
一多媒體視訊播放盒或數位電視機上盒耦接時,可經二二 橋接晶片將儲存之資料格式轉換成USB、IEEE1394或 eSΑΤΑ格式進行傳送。 g而本發明在進行外接硬碟之卸载或裝載之流程中,g 疋,透過多媒體視訊播放盒或數位電視機上各 控制指令’並透過橋接晶片來對外接硬“, 晶片進打控制。在-實施例中,例如,設定在外接硬碟乡 過-特㈣間未被存取時則進人“省賴式,,,亦即控制夕 接硬碟驅動馬達停止運轉,藉以減少不必要的 當進入“省電模式,,時,本制之餘會先射卜接硬磾㈣ ,要資訊’例如檔㈣表(filetable)以及硬碟資訊暫和 夕媒體視訊播放盒或數位電視機上盒的記憶體内。換, 接硬碟已進入“省電模式”,此時,使用者仍: nr貝訊’嶋接硬碟内错存之槽案,除細· 存取,否則不需重新喚醒外接硬碟。 影響使用者方便性之雙赢結果。4因此可達到㈣與习 “少ί二所示為根據本發明一實施例之-外接硬碟進/ ^電模式之控制流程圖。在—實施例中,&流程例如 201142832 係執行於-數位電視機上盒中,且—硬碟外接於此數 視機上盒。首先於步驟10卜一使用者利用此數位電視: 上盒接收影錢號進行收視,換言之,此使用者並未存’ 此外接硬碟。當-特定待機時間經過後,例如15分鐘 流程會執行步驟102 ’控制此外接硬碟進人“省電模式”, 值得注意的是’上述之特定時間可由使用者自訂。“ 當外接硬碟進入“省電模式,,後,於步驟1021,外接 硬碟内的必要資訊’例如檔案列表(file table)以及硬碟資 •=,會被暫存在數位電視機上盒的記憶體内,其中該硬碟 責訊為可用以辨識該外接硬碟之資訊。暫存硬碟資訊,是 為避免使用者於“省電模式,’中抽換外接硬碟,造成在喚^ 外接硬碟後,使用者欲存取之檔案實際上並未存在被喚醒 之外接硬碟中,因此,藉由比較暫存之硬碟資訊,來判斷 被喚醒之外接硬碟是否即為進入“省電模式,,之外接硬 =。接著於步驟1022,當必要資訊被暫存在數位電視機上 盒=記憶體後,控制硬碟進入中斷模式(Suspend Mode), • 接者於步驟1023,關閉外接硬碟運轉所需電力,由於外接 ,碟電力直接被關閉,因此可節省相當大的耗電量。然值 得注意的是,雖然供應外接硬碟之電力已被移除,然而使 用者仍可透過儲存在數位電視機上盒記憶體内之暫存資 訊劉覽外接硬碟内儲存之槽案,而不需重新喚醒外接硬 碟。 第2圖所示為根據本發明一實施例之喚醒一處在“省 電模式’’下之外接硬碟之控制流程圖。首先於步驟201,一 使用者欲存取外接硬碟内之資料,例如,在外接硬碟進入 201142832 省電模式”後,使用者觀看暫存在數位電視機上I 體内之檔案列表時’當發現欲執行之㈣時,其^記憶 案進行點選,而進八存取外接硬碟之流程。接著,]該檔 202 ’本流程會將外换硬碟移除之電源重新提供給該夕^步驟 碟,亦即對該外接硬碟進行供電。並於步驟2〇3,Λ η,硬 接硬碟之工作狀態。接著,為避免使用者於“省電^復外 中抽換外接硬碟,造成使用者欲存取之檔案實際上、、莫式, 在被喚醒之外接硬硪中,因此,於步驟2〇4,^行f未存 步驟來判斷被喚醒之外接硬碟與進入“省電模一判斷 接硬碟是否為同一硬碟《其判斷方法,例如,^ 2之外 外接硬碟進入“省電模式”前暫存之硬碟資訊^ :匕較 於被喚醒之外接硬碟中。若是,代表被喚醒之外=存 之前進入“省電模式,,中之外接硬碟為同一硬碟,碟與 碟與之刖進人“省電模式,,中之外接硬碟非同1 接硬 γ驟206 ,重新讀取該硬碟資訊,例如:重新載入被嗌 硬碟之檔案列表。 皮奐醒 綜合上述所言,本發明應用在外接儲存裝置之電源总 理方法,會設定在外接硬碟經過一特定時間未被存取’時二 進入“省電模式”,藉以減少不必要的功率消耗。且當進入 “省電模式,,時,本發明之流程更會先將外接硬碟内二檔案 列表暫存在連接主機的記憶體内,因此,即使外接硬已 進入“省電模式”,使用者仍可透過此暫存資訊,瀏覽外接 硬碟内儲存之檔案,而不需重新喚醒外接硬碟。因此可達 到節能與不影響使用者方便性之雙贏結果。 201142832 雖然本發明已以實施方式揭露如上,然其並非用以限 定本發明,任何熟習此技藝者,在不脫離本發明之精神和 範圍内,當可作各種之更動與潤飾,因此本發明之保護範 圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 為讓本發明之上述和其他目的、特徵、優點與實施例 能更明顯易懂,所附圖式之說明如下: • 第1圖所示為根據本發明一實施例之一外接硬碟進入 “省電模式”之控制流程圖。 第2圖所示為根據本發明一實施例之喚醒一處在“省 電模式”下之外接硬碟之控制流程圖。 【主要元件符號說明】 101-1023 步驟 201〜206步驟When a multimedia video playback box or a digital television set-top box is coupled, the stored data format can be converted into a USB, IEEE1394 or eS format for transmission via a two-two bridge chip. g. In the process of unloading or loading an external hard disk, the present invention passes through various control commands on the multimedia video playback box or the digital television and connects the chip to the external hard disk. - In the embodiment, for example, when the external hard disk township has not been accessed, the user enters the "remaining mode", that is, the control hard disk drive motor is stopped, thereby reducing unnecessary When entering the "power saving mode, when the system is in place, it will first be hard-wired (4), information, such as file (four) table (filetable) and hard disk information, temporary media video playback box or digital TV box In the memory, change, the hard disk has entered the "power saving mode", at this time, the user still: nr Beixun '嶋 错 错 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬 硬Wake up the external hard disk. A win-win result that affects the user's convenience. 4 Therefore, it can be achieved that the control flow chart of the external hard disk input/electric mode according to an embodiment of the present invention is shown in FIG. In the embodiment, the & process, e.g., 201142832, is executed in a digital television set-top box, and the hard disk is externally attached to the digital set-top box. First, in step 10, a user uses the digital television: the upper box receives the shadow money number for viewing, in other words, the user does not save the external hard disk. When the specific standby time elapses, for example, the 15-minute flow performs step 102' to control the external hard disk into the "power saving mode", it is worth noting that the above specific time can be customized by the user. “When the external hard disk enters the “power saving mode, then, in step 1021, the necessary information in the external hard disk”, such as the file table and hard disk storage, will be temporarily stored in the digital TV box. In the memory, the hard disk is blamed for identifying the information of the external hard disk. The temporary storage of the hard disk information is to prevent the user from swapping the external hard disk in the "power saving mode," which causes the file to be accessed by the user to be accessed without actually being woken up after the external hard disk is called. On the hard disk, therefore, by comparing the temporarily stored hard disk information, it is judged whether the external hard disk that is woken up is in the "power saving mode, and the external hard =. Then, in step 1022, when the necessary information is temporarily stored in the digital TV box=memory, the hard disk is controlled to enter the interrupt mode (Suspend Mode), and the terminal is turned off in step 1023 to turn off the power required for the external hard disk operation, due to the external connection. The disc power is turned off directly, thus saving considerable power consumption. It is worth noting that although the power to supply the external hard drive has been removed, the user can still store the slot in the external hard disk through the temporary storage information stored in the memory of the digital TV. There is no need to wake up the external hard drive again. FIG. 2 is a flow chart showing the control of waking up an external hard disk in the "power saving mode" according to an embodiment of the present invention. First, in step 201, a user wants to access data in the external hard disk. For example, after the external hard disk enters the 201142832 power saving mode, when the user views the file list temporarily stored in the I body on the digital TV set, 'when it is found to be executed (4), the ^ memory case is selected, and Eight processes for accessing an external hard drive. Then, the file 202 ’ this process will re-supplied the power of the external hard disk to the step, that is, power the external hard disk. And in step 2〇3, Λ η, hard-wire the working state of the hard disk. Then, in order to prevent the user from replacing the external hard disk in the "power saving", the file that the user wants to access is actually, and the mode is connected to the hard disk. Therefore, in step 2〇 4, ^ line f has no steps to judge the wake-up external hard disk and enter the "power saving mode to determine whether the hard disk is the same hard disk" its judgment method, for example, ^ 2 external hard disk into the "power saving The hard disk information temporarily stored in the mode ": 匕 is compared to the external hard disk being woken up. If yes, the representative is awakened before entering the "power saving mode, the external hard disk is the same hard disk, the disk and the disk are in the power saving mode, and the external hard disk is not the same. Hard gamma step 206, re-read the hard disk information, for example: reload the file list of the hard disk. In view of the above, the present invention is applied to the power supply prime method of the external storage device, and is set to enter the "power saving mode" when the external hard disk is not accessed for a certain period of time, thereby reducing unnecessary power. Consumption. And when entering the "power saving mode, the process of the present invention first temporarily stores the second file list in the external hard disk in the memory of the connected host, so even if the external hard has entered the "power saving mode", the user Through this temporary storage information, the files stored in the external hard disk can still be browsed without re-waking up the external hard disk. Therefore, the win-win result can be achieved with energy saving and no user convenience. 201142832 Although the present invention has been disclosed in an embodiment As above, it is not intended to limit the invention, and any person skilled in the art can make various modifications and retouchings without departing from the spirit and scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood. A control flow chart of an external hard disk entering a "power saving mode" according to an embodiment of the present invention. FIG. 2 is a view showing a "awake" in accordance with an embodiment of the present invention. Mode "under control flowchart of the external drive. The main reference numerals DESCRIPTION step 201~206 step 101-1023