1312470 九、發明說明: 【發明所屬之技術領域】 尤指 種適 本發明係關於一種減少功率消耗的方 用於減少可攜式裝置之功率消耗的方法/ 【先前技術】 分強1 =技之進步’傳統可攜輕置所提供之功能已十 Γί值 使用者對特色功能之基本或完整需求。缺 ίο 15 而在傳統可攜式裝置之系統開發 …、 作業系統及單-特定功能,相關的應用== 進行相關之開發,再由+央處 ==廠商 μ / Λ 益〈LPU)或特定應用晶 PP lcatl- Spec.fic Integrated Circuit > ASIC) Γ統置fASIC之系統又稱之為嵌入w⑽ 行動電1 ^供更豐富的功能,傳統可攜式裝置(例如: -IS手機、或個人行動助理)皆麵入式 先以執仃各式各樣的應用程式。 業及ΓίΓ1式裝置所執行的應用程式可區分成前景作 文*作業’别景作業之應用程式包括··無線通話服務、 理、爪哇(Java)遊戲等,當執行前景作業之應用 式=彳攜^裝置之系統係為—般狀態以提供此應用程 :期tl之系冼貝源’月景作業之應用程式包括:鬧鈐提示、 :期性位址更新(perlQdlel。⑽1Gnupdate)、時間同步更 1測輸入訊號、營幕更新等,當未執行背景作業之應 用程式時,傳統可攜式袭置之系統係處於待機狀態以節省 20 1312470 2資源,並等待—段觸發時間後,中央處理器接 ^求並使傳統可攜式裝置之㈣從待機狀態㈣至一般狀 ::::二應用程式。如圖1所示,假設傳統可攜式裝置所 執订的h作業之應用程式包括:週期性位 5 10 15 1)、時間同步更新(工作2)、及榮幕更新(工(,= =性位址更新之卫作週期為每45秒執行_次’時間同步 二之工作週期為每2G秒執行—次;螢幕更新之工作· ::=、執行一次’為了能確保上述背景作業之應用程式 此有效執行,傳統可攜式裝置係設定所有工作週 時間(5秒),於等待一個時槽時間後,傳統 可攜式$置之祕從待機狀態切換至—般狀態並檢查 需執行背景作業之應用程式所對應之工作,如果成立則執 灯之’如果不成立則由—般狀態切換至待機狀態, 另一個時槽時間後,重複執行上述動作。 、雖然執行前景作業之應用程式將消耗較多之系統資 源^旦是其執行的機率及次數相對較少,因而消耗少量= 統資源;執行背景作業之應用程式將消耗較少之系統資 源,但是由於工作週期係為固定且反覆執行之,其所累加 之系統資源消耗反而較多。因此,如果能減少執行背景作 業之應用程式所消耗之系統資源,則可直接/間接延長傳統 可攜式裂置之工作時間。因此,有許多文件揭露可降低功 率消耗之方法’例如:美國專利編號5,487,181,專利名稱 rLOW POWER ARCHITECTURE FOR PORTABLE AND MOBILE TWO-WAY RADI0S」,此文獻揭露傳統可攜式 20 1312470 裝置可切換於二種工作模式中,分別為主 mode )及軟體待命樓★广 、式(active 私體待 P 模式(SQftware standby m 到降低功率消耗之目的。另外 写之糸始加诚士 t 仅采砰揭4雙微處理 5 “構’亦可達到降低傳統可攜式1置之功率:肖耗 目的ϋ上述方衫但將造成 造成本增加,其實現方★、介j揭式裝置之製 式裝置於功率消耗上之缺失。 效解决傳統可攜 【發明内容】 10 為克服習知可攜式裝置於功率消 :露-種減少,式裝置之功率消耗的方法,該 15 並業之應用程式所對應之觸發時二 a ’㈠_觸發時間而取得系統 之’·以及(C)於系統週期中,當觸 人3己錄 觸發時間所對應之背景作業之應用程^ 則執行 為克服習知可攜式裝置於功率消耗上之缺失發 揭硌一種減少可攜式裝置之 表月 括:(A)取猎千月耗的方法,該方法包 並^ 景作f之應用程式所對應之卫作週期, 如所對ί之背時則執行工作週期 電話、智慧型手機::動::可攜式裳置可為行動 不影置之功率消耗的方法,可在 系統架構下,達到;省二==變可播式裝置之 ‘式裝置之功率消耗之目的。 25 1312470 【實施方式】 為能讓貴審查委貢 ,較佳具體實施例說明:下:、魯明之技術内容’特舉 第—實施例: 5 10 15 在此實施例中’本發明減少可 方法係藉由一;* $ ρ + 卜 同I 、置之功率消耗的 9 馬用矛王式,於备—旦 執行前,取得每—工作 厅、'、之應用程式真實 有工作所需之系統週 工取侍執仃所 再將觸發時間及争统週期之最小公倍數), 中。々一『 存至傳統可攜式裝置之記憶體 ,. 錢_ #,#觸發時㈣合時才發ii{中斷β 求以執行適當之工作,由 …出中斷凊 統可攜式裝置之功率、-肖耗' w之次數減少而降低傳 背景作举之廊^ ,以達到本發明之目的。以上述 斤、作業之應用程式為例,工 -次,工作2之^、_^ 之工作週期為母45秒執行 之工作週期為每2〇秒 週期為每30秒執行一次,因士 ^ 工作3之工作 ^ Ή . 因此,糸統週期為180秒。在一個 ::週期中’於 2〇、40、6〇、8。、1〇〇、12〇、 及180秒時將執行工作 秒時脾^ & 〇'90、12〇、150、及⑽ 私時將執行工作3 ;於45 卜 1M、及180秒時將執行工作 圖2所不’甚觸發時間正 斷請求以執行適當之工作…卜 即發出中斷q,#、, 非母隔一段習知時槽時間後 月’ 以4、统可攜式裝置可有效地減少待機 Ί、、:至般狀態之次數。依據本發明減少可攜式裝置 之功。’肖耗的方法’可在不影響背景作業之應用程式的執 20 1312470 第93131834號’ 98年5月修正頁 達到節省傳統 行及不改變傳統可攜式裝置之系統架構下 可攜式裝置之功率消耗之目的。 置之功率消耗的方 用程式所對應之觸 如圖3所示,本發明減少可攜式妒 法係包括下列步驟: ~ 5 10 15 步驟S20 :系統初始化。 步驟S22 .取得每一背景作業之應 發時間,並記錄之。 “ 步驟S26 ··於一個系統週期中期,並記錄之。 :行此觸發時間所對應之背景作業之; 、用=間 所^期中並每個工作可在其觸發時間時被傳統可攜式袭置 所執仃,並於-個系統週期結束後,將時間㈣零, 下一個系統週期中,重覆執行步驟S26。 、、’ 步驟S28 :結朿。 第一實施例: 發明第二實施例與本發明第一實施例類似,故僅對 之作說明。如圖4所示’本發明減少可攜式裝置之 力率涓耗的方法包括: 步驟S30:系統初始化。 心^驟如:取得每—背景作業之應用程式所對應之工 作週期,並記錄之。 ^ k S34 .當工作週期吻合時則執行此工作週斯所對 景作業之應用程式。在此實施例中,本發明減少可 間"袭置之功率消耗的方法僅儲存每-背景作業之應用程 20 B12470 式所對應之工作週Λ 工作週期開始或結束時週期之計算。於每一 行此工作週期所對應之背景作業之應 =斷請求’以執 步驟S36 :結束。 主張之二::::堇:為1方便說明而舉例而已,本發明所 於上=圍自應以申請專利範圍所述為準,而非僅限 【圖式簡單說明】 10 圖1係時槽時間與工作之示意圖。 圖2係觸發時間與工作之示意圖。 圖3係本發明第一實施例可減少可攜式裝置之功率消 耗方法之流程圖。 圖4係本發明第二實施例可減少可攜式裝置之功率消 15耗方法之流程圖。 【主要元件符號說明】 步驟S22 步驟S26 步驟S30 步驟S34 步驟S20 步驟S24 步驟S28 步驟S32 步驟S361312470 IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a method for reducing power consumption for reducing power consumption of a portable device. [Prior Art] Derivative 1 = Technical Progressive 'Traditional portable and lightweight features have been provided by the user for the basic or complete needs of the featured features. Lack of ίο 15 in the development of traditional portable device systems..., operating systems and single-specific functions, related applications == related development, and then by + central == vendor μ / 〈 benefits (LPU) or specific Application of crystal PP lcatl- Spec.fic Integrated Circuit > ASIC) The system of the fASIC system is also called embedding w(10) mobile power 1 ^ for richer functions, traditional portable devices (eg: -IS mobile phones, or individuals) Mobile Assistants are all versed in a variety of applications. The application executed by the industry and the Γ1Γ device can be divided into foreground essays*. The job of the job is: ······························································ ^ The system of the device is in the general state to provide this application: the application of the period tl 冼 源 source 'month view operation includes: noisy tips, : period address update (perlQdlel. (10) 1Gnupdate), time synchronization and more Input signal, screen update, etc. When the background job application is not executed, the traditional portable system is in standby mode to save 20 1312470 2 resources, and wait for the segment trigger time, the central processor is connected ^ And make the traditional portable device (4) from the standby state (four) to the general:::: two applications. As shown in FIG. 1, it is assumed that the application of the h job that the conventional portable device has set includes: periodic bit 5 10 15 1), time synchronization update (work 2), and honor screen update (work =, = The security address of the address update is executed every 45 seconds _ times 'time synchronization two work cycle is executed every 2G seconds - screen update work :: ::, execute once 'in order to ensure the application of the above background work The program is executed effectively. The traditional portable device sets all the working week time (5 seconds). After waiting for a time slot time, the traditional portable device switches from the standby state to the normal state and checks the background to be executed. If the work corresponding to the application of the job is completed, if it is not established, the process will be switched from the normal state to the standby state, and after another time slot time, the above operation will be repeated. Although the application executing the foreground job will consume More system resources are relatively less likely to execute and therefore consume a small amount of resources; applications that perform background operations will consume less system resources, but The cycle is fixed and repeated, and the accumulated system resources are consumed more. Therefore, if the system resources consumed by the application executing the background job can be reduced, the traditional portable split can be directly/indirectly extended. Working hours. Therefore, there are a number of documents that disclose ways to reduce power consumption, for example, US Patent No. 5,487,181, patent name rLOW POWER ARCHITECTURE FOR PORTABLE AND MOBILE TWO-WAY RADI0S, which discloses the traditional portable 20 1312470 The device can be switched between the two modes of operation, respectively as the main mode) and the software standby building ★ wide, the type (active private P mode (SQftware standby m to reduce the power consumption. Also write the beginning of the credit Only the 4 pairs of micro-processing 5 "construction" can also reduce the power of the traditional portable 1 set: the consumption of the above-mentioned square shirts will be caused by the consumption of the above-mentioned square shirts, but the implementation will be realized. The lack of power consumption of the system device. Effectively solve the traditional portable [invention] 10 To overcome the conventional portable device in the power consumption: dew-type reduction The method of power consumption of the device, the triggering time corresponding to the application of the 15 concurrent application is a '(a)_trigger time to obtain the system'· and (C) in the system cycle, when the touch person 3 has recorded the trigger The application of the background work corresponding to the time is executed to overcome the lack of power consumption of the conventional portable device. A method for reducing the portable device is: (A) the method of hunting for thousands of months The method includes the workflow cycle corresponding to the application of the scene, and the work cycle telephone and the smart phone are executed when the back of the method is used:: mobile: portable portable can be used for action The method of power consumption can be achieved under the system architecture; the purpose of saving the power consumption of the device of the device can be reduced. 25 1312470 [Embodiment] In order to enable your review, the preferred embodiment is described as follows: Bottom: Technical contents of Luming 'Special Excerpt - Embodiment: 5 10 15 In this embodiment, 'the invention reduces the method By using one; * $ ρ + 卜 I, and the power consumption of the 9 horses, the system is used to prepare the system for each work room, ', and the application. The weekly work of the servant will trigger the time and the least common multiple of the competition cycle. 々“Save to the memory of a traditional portable device. When the money _ #,# triggers (4), the ii{interruption β is requested to perform the appropriate work, and the power of the portable device is interrupted by... - The number of times of 'Wo' is reduced and the background of the background is reduced to achieve the purpose of the present invention. Take the above-mentioned jin and operation application as an example, the work-time, work 2, _^ work cycle is 45 seconds, and the work cycle is executed every 30 seconds every 2 sec. 3 work ^ Ή . Therefore, the cycle time is 180 seconds. In a :: cycle ' at 2〇, 40, 6〇, 8. , 1〇〇, 12〇, and 180 seconds will be executed when the work seconds spleen ^ & 〇 '90, 12 〇, 150, and (10) will perform work 3 privately; will be executed at 45 pm 1M, and 180 seconds Figure 2 does not trigger the time to interrupt the request to perform the appropriate work... Bu is issued interrupt q, #,, non-mother interval, a known time slot time, after the month, 4, the portable device can effectively Reduce the number of standby Ί, , : the general state. The work of the portable device is reduced in accordance with the present invention. The method of 'Shaw consumption' can be implemented in the system without affecting the background work. 13 1312470 No. 93131834 'May 98 revision page to achieve the traditional architecture and the system architecture without changing the traditional portable device The purpose of power consumption. The touch corresponding to the method of power consumption is shown in Fig. 3. The invention reduces the portable method by the following steps: ~ 5 10 15 Step S20: System initialization. Step S22. Acquire the time of each background job and record it. “Step S26 ······························································································· After the end of the system cycle, the time (4) is zero, and in the next system cycle, step S26 is repeatedly executed., ''Step S28: Crust. First Embodiment: Second Embodiment of the Invention It is similar to the first embodiment of the present invention, so it will only be described. As shown in FIG. 4, the method for reducing the power rate loss of the portable device of the present invention includes: Step S30: System initialization. The work cycle corresponding to the application of each background job is recorded and recorded. ^ k S34 . When the work cycle is matched, the application of the work scene is executed. In this embodiment, the invention is reduced. The method of power consumption is to store only the work week of each application of the background work. The work cycle corresponding to the work cycle 开始 The start or end cycle of the work cycle. The background work corresponding to each work cycle of each line Should = break request 'to take step S36: end. Claim 2:::: 堇: For the sake of convenience of description, the invention is based on the scope of the patent application, not just Figure 1 is a schematic diagram of time slot and operation. Figure 2 is a schematic diagram of trigger time and operation. Figure 3 is a flow chart of a method for reducing power consumption of a portable device according to a first embodiment of the present invention. Figure 4 is a flow chart of a method for reducing power consumption of a portable device according to a second embodiment of the present invention. [Description of Main Components] Step S22 Step S26 Step S30 Step S34 Step S20 Step S24 Step S28 Step S32 Step S36