[go: up one dir, main page]

TWI235298B - Method to read the battery status by the operating system of portable computer - Google Patents

Method to read the battery status by the operating system of portable computer Download PDF

Info

Publication number
TWI235298B
TWI235298B TW091133230A TW91133230A TWI235298B TW I235298 B TWI235298 B TW I235298B TW 091133230 A TW091133230 A TW 091133230A TW 91133230 A TW91133230 A TW 91133230A TW I235298 B TWI235298 B TW I235298B
Authority
TW
Taiwan
Prior art keywords
battery
operating system
reading
computer
time
Prior art date
Application number
TW091133230A
Other languages
English (en)
Other versions
TW200407700A (en
Inventor
You-Jr Tung
Original Assignee
Mitac Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitac Technology Corp filed Critical Mitac Technology Corp
Priority to TW091133230A priority Critical patent/TWI235298B/zh
Priority to JP2002371761A priority patent/JP2004164530A/ja
Priority to US10/390,003 priority patent/US6892146B2/en
Publication of TW200407700A publication Critical patent/TW200407700A/zh
Application granted granted Critical
Publication of TWI235298B publication Critical patent/TWI235298B/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3096Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents wherein the means or processing minimize the use of computing system or of computing system component resources, e.g. non-intrusive monitoring which minimizes the probe effect: sniffing, intercepting, indirectly deriving the monitored data from other directly available data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Description

1235298 五、發明說明(1) 【發明所屬之技術領域】 本發明是關於一種讀取電池狀態之方法,特別是指一 種可攜式電腦之作業系統讀取電池狀態之方法,藉以節省 該可攜式電腦中央處理器之系統資源。 【先前技術】 在目前廣泛使用之視窗作業系統中(例如Wind〇ws XP 'Windows 2000),已普遍在其作業系統中整合了先進 架構電源介面標準ACPI(Advanced C〇nfigUratiQn and Pcwer Interface)之電源管理功能,藉由該鴕”介面桿準 可控制所有硬體的電源管理操作,從筆記型電腦到桌上型 和词服器均包含在此規格内6 該先進架構電源介面標準ACPI (Advaneed
Configuration and Power Interface)是由電 同制定開發的電力管理系統介面,其目的是 統和硬體之間有一個共同的電源管理介面疋二 腦系統在電源管理上由各別的廠商所制 ,,該電力管理系統使得作業系統(0幻能 j官理週邊設備的用電情形,例如使硬碟 超過一段特定時間沒有使用時進入 极—螢 作,直到使用者再度使用。 軍模式’ 可攜式電腦(例如筆記型電腦) 的需求而研發的。而可攜式電腦和費 點在於前者有時完全仰賴電池運作:=電腦
源管理功能’也就成為可攜式電腦電池技術J 腦業界所共 了在作業系 改進以往電 統一介面。 照一定的方 幕在使用者 或者停止運 者攜帶方便 之最大不同 池本身的電 最重要的一
1235298 五、發明說明(2) " 項功能。 、 典型的可攜式電腦系統包括有一中央處理單元、基本 輸出入系統(System Basic Input Output System , SYS - BIOS)與鍵盤控制器(Keyboard Controller,KBC), 其中該鍵盤控制器中包括有一鍵盤内建微處理器 (Embedded Microcontroller)、一鍵盤基本輸出入系統 (Keyboard Basic Input Output System , KB-BI0S)、記 憶體及其它特殊功能之介面電路。該可攜式電腦之工作電 源是由電池所供應,月該電池之電池狀態會由鍵盤控制器 之電池狀態偵測介面予以偵測。該可搆式電腽1操作於 痛 ACPI模式作業系統之下時,其作業系綠(Gperat;ing
System)會疋時透過ACPI Machine LanguageC 簡稱AML)讀 取鍵盤控制器中的電池狀態資料。 【發明内容】 當該可攜式電腦系統使用電池作為工作電源時,作業 系統在疋時讀取電池狀態之時會連績讀取電池狀態2〜3 次。然而,由於鍵盤控制器之執行速度係屬較慢遠的裝 置,因此當中央處理單元處於較忙碌時(例如在播放Wi η DVD)時,又遇到作業系統定時讀取鍵盤控制器中之電池狀· 態時’就可能發生因中央處理單元太忙碌而導致畫面停頓 的現象。 鑑於前述習用技術中電腦裝置之作業系統在定時讀取 電池狀態時所在讀取電池狀態時,所可能造成整個電腦系
第5頁 1235298 的即是提供一 法,透過本發 量變化特性, 亦仍能維持該 管理。 知技術之問題 盤控制器定時 讀取電腦系統 與上次作業系 間差距值與一 大於或等於該 電池之電池狀 到的電池狀態 讀取時間差距 統即直接將存 作業系統。 用之技術手段 不致影響到電 資源,且仍能 電源之管理。 題’本發明之主要目的即是提供一種 電腦"又備之作業系統讀取電池狀態之 備在讀取電池狀態時不致影響到電腦 所採用之技術 讀取電池之電 的現在系統時 統讀取電池狀 預定讀取時間 預定讀取時間 態資料,並將 資料回值給可 值小於該預定 放在該記憶體 五、發明說明(3) 統執行效能降低之問 以電池作為電力源之 方法,以使該電腦設 糸統之執行效能。 本發明之另一目 統讀取電池狀態之方 及配合電池容量之電 處理單元資源之外, 之監測及電池電源之 本發明為解決習 該可攜式電腦透過鍵 料時,先由作業系統 比較該現在系統時間 間,再比較該讀取時 當該讀取時間差距值 時’作業系統即讀取 一記憶體中,再將讀 之作業系統,而當該 基準值時^該作業系 狀態資料直接回值給 經由本發明所採 備在讀取電池狀態時 效節省中央處理單元 池狀態之監測及電池 種可攜式電腦之作業系 明之電池讀取方法、以 除了可以有效節省中央 可攜式電腦對電池狀態 手段係在 池狀態資 間,然後 態的時 基準值。 基準值 之存值到 攜式電腦 讀取時間 中的電池 ,除了可以使該電腦設 腦系統之執行效能,有 維持該可攜式電腦對電
1235298 五、發明說明(4) ’ 本發明之其它目的及其設計,將藉由以下之較佳實施 , 例及附呈圖式作進一步之說明。 【實施方式】 參閱第一圖所示,其係顯示配合本發明控制流程之相 關系統連接示意圖,其顯示了 一可攜式電腦1中之中央處 理單元11、基本輸出入系統12(3丫51105)與鍵盤控制器2 間之連接關係示意圖。其中該鍵盤控制器2中包括有一鍵 盤内建微篇理器21、一鍵盤基本輸出入系統 22(KB-Bi OS)、一記憶體23、以及一電池狀態偵測介面 _ 讓可攜式電腦1連結有各項硬體裝置(例如包括有軟式 磁碟機、硬碟、光碟機、PCMCIΑ埠、顯示器等)。而連結 於該鍵盤控制器2之硬體裝置例如包括有電池、溫度感測 器、鍵盤、滑鼠等裝置。該鍵盤控制器2與可攜式電腦1之 中央處理單元11間藉由匯流排1 3 (例如IDE匯流排)作連 結。典型的鍵盤控制器2與電腦系統之中央處理單元丨丨間 的傳輸埠預定位址為60H/64H及62H/66H,其中60H/64H傳 輸槔係作為電腦系統與鍵盤控制器間之資料傳輸埠,而 62H/66Η傳輸埠係作為電腦系統與鍵盤控制器間之信號溝 _ 通用。 該可攜式電腦1之工作電源是由電池3所供應,且該電 池3之電池狀態會由鍵盤控制器2之電池狀態偵測介面24予 以偵測。該可攜式電腦1操作於ACP I模式作業系統之下
第7頁 1235298 五、發明說明(5) 時’其作業系統(Operating System)會定時透過ACPI機器 語言讀取鍵盤控制器2中的電池狀態資料,目前的一般定 時讀取時間大都設定在例如2秒。 第二圖所示係顯示本發明可攜式電腦讀取電池狀態時 之控制流程圖。茲同時參閱第一圖所示之電腦系統連接示 意圖,對本發明之流程作一說明。本發明之控制流程中, 其讀取方法首先係在步驟丨〇1中,由可攜式電腦之作業系 統讀取電腦系統的現在系統時間(Systein Time)Tl。 在讀取到可攜式電腦之現在系統時間T!之後,即將該 現在系統時間T1與上攻作業系統讀取電池狀態的時間τ 2做 比較(步驟1 〇 2 ),並依據兩者之差值而得到一讀取時間差 距值Τ0 = Τ1-Τ2(步驟103)。 然後在步驟1 04中,再將該讀取時間差距值το與一預 定讀取時間基準值Tr作一比較。當該讀取時間差距值τ〇大 於或等於該預定讀取時間基準值Tr時,則該可攜式電腦j 之作業系統會從鍵盤控制器2讀取電池3之電池狀態資料 (步驟1 0 5)’並將之存值到該鍵盤控制器2之記憶體2 3中 (步驟1 0 6)。該作業系統亦會儲存現在系統時間τ 1 (步驟 1 07),以作為下次的時間比較之依據。最後將讀到的電池 狀態回值給可攜式電腦!之作業系統(步驟1〇8)。 而在步驟104中,若判斷出該讀取時間差距值丁〇小於 該預定讀取時間基準值Tr時,則該可攜式電腦】之作業系 統即直接將存放在該鍵盤控制器2之記憶體23中的電池狀 態資料直接回值給作業系統(步驟1〇9),而無需浪費時間
1235298 由鍵盤控制器2讀取電池狀態,以節省中央處理器之系統 資源。 由於電池容量於二秒内之電量變化不多(差距大約為 2mA/h),if §作業系統於二秒内連續讀取電池狀態時,則 在首次的讀取時,真正從鍵盤控制器讀取電池狀態並存值 到記憶體,之後二秒内的作業系統讀取動作則直接由記憶 體回值,而無需浪費時間從鍵盤控制器讀取電池狀態,故 透過本發明之上述控制方法,確可藉以節省中央處理單元 資源。 藉由上述之說明可知,本發明所提供之可攜式電腦之 作業系統讀取電池狀態之方法,確能有效解決電腦裝置之 作業系統在讀取電池狀態時所可能造成整個電腦系統執行 效能降低之問題。再者,透過本發明之電池讀取方法、以 及配合電池容量之電量變化特性,除了可以有效節省中央 處理單元資源之外,卻仍能維持該可攜式電腦對電池狀態 之監測及電池電源之管理。因此,本發明確具高度之產 利用價值。 惟以上之實施例說明, 明,凡習於此項技術者當可 而作其它種種之改良及變化 所作的種種改良及變化,當 定之專利範圍内。 僅為本發明之較佳實施例說 依據本發明之上述實施例說明 。然而這些依據本發明實施例 仍屬於本發明之發明精神及界 1235298 圖式簡單說明 【圖式簡單說明】 第一圖顯示配合本發明控制流程之相關系統連接示意圖, 其顯示一可攜式電腦之中央處理單元、基本輸出入 系統與鍵盤控制器間之連接關係示意圖; 第二圖係顯示本發明可攜式電腦讀取電池狀態時之控制流 程圖。 【圖式各元件符號之說明】 1 可 攜 式 電 腦 11 中 央 處 理 單 元 12 基本輸 出 入 系 統 13 匯 流 排 2 鍵 盤 控 制 器 21 鍵 盤 内 建 微 處 理 器 22 鍵 盤 基 本輸 出 入 系統 23 記 憶 體 24 電 池 狀 態 偵 測 介 面 3 電 池 m
第10頁

Claims (1)

1235298 申請專利範圍 一種可攜式 攜式電腦係 式電腦之作 該電池之電 a•由可攜式 間; b·比較該現 時間,並 c ·比較該讀 d. 當該讀取 值時,該 資料,並 態資料回 e. 當該讀取 該可攜式 的電池狀 電腦之作業系統讀取電池狀態之方法,該可 由一電池供應所需之工作電源,並由該^ 業系統依據一預定讀取時間基準值定時讀取 池狀態資料,該方法包括下列步驟: 電腦之作業系統讀取電腦系統的現在系統時 在系統時間 依據兩者之 取時間差距 時間差距值 可攜式電腦 將之存值到 值給可攜式 時間差距值 電腦之作業 態資料直接 與上次作 差值而得 值與預定 大於或等 之作業系 一記憶體 電腦之作 小於該預 系統即直 回值給作 業系統讀取電池狀態的 到一讀取時間差距值; 讀取時間基準值; 於該預定讀取時間基準 統請取電池之電池狀態 中’再將讀到的電池狀 業系統; 定讀取時間基準值時, 接將存放在該記憶體中 業系統。 2·如申請專利範圍第1項所述可攜式電腦之作業系統讀取 電池狀態之方法,其中步驟d中,該可攜式電腦之作業 系統係透過連結於該可攜式電腦之鍵盤控制器讀取電池 之電池狀態資料,而該記憶體係連接於該鍵盤控制器。 如申請專利範圍第1項所述可攜式電腦之作業系統讀取 電池狀態之方法,其中步驟d中,該可攜式電腦之作業 1235298 六、申請專利範圍 系統更包括將現在系統時間予以儲存,以作為下次的時 間比較之依據。 BBI 第12頁
TW091133230A 2002-11-13 2002-11-13 Method to read the battery status by the operating system of portable computer TWI235298B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
TW091133230A TWI235298B (en) 2002-11-13 2002-11-13 Method to read the battery status by the operating system of portable computer
JP2002371761A JP2004164530A (ja) 2002-11-13 2002-12-24 ポータブルコンピュータのオペレーションシステムによる電池状態読み取り方法
US10/390,003 US6892146B2 (en) 2002-11-13 2003-03-18 Method for reading battery status by operation system of portable computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW091133230A TWI235298B (en) 2002-11-13 2002-11-13 Method to read the battery status by the operating system of portable computer

Publications (2)

Publication Number Publication Date
TW200407700A TW200407700A (en) 2004-05-16
TWI235298B true TWI235298B (en) 2005-07-01

Family

ID=32228204

Family Applications (1)

Application Number Title Priority Date Filing Date
TW091133230A TWI235298B (en) 2002-11-13 2002-11-13 Method to read the battery status by the operating system of portable computer

Country Status (3)

Country Link
US (1) US6892146B2 (zh)
JP (1) JP2004164530A (zh)
TW (1) TWI235298B (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7142995B2 (en) * 2003-03-18 2006-11-28 Mitac Technology Corp. Method for reading battery status by operation system of portable computer
US20060095797A1 (en) * 2004-10-30 2006-05-04 Tsung-Yung Hung Switching device for selective delivery of electrical power
TW200638188A (en) * 2005-04-18 2006-11-01 Wistron Corp Power saving method for notebook computer
JP4963715B2 (ja) * 2009-06-10 2012-06-27 レノボ・シンガポール・プライベート・リミテッド 電子機器、そのバッテリ使用可能時間の表示方法、およびコンピュータが実行可能なプログラム
TWI438615B (zh) * 2011-05-17 2014-05-21 Wistron Corp 電源管理方法及相關裝置
WO2016126268A1 (en) 2015-02-06 2016-08-11 Hewlett-Packard Development Company, L.P. Battery calibration

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5349668A (en) * 1992-04-15 1994-09-20 International Business Machines Battery operated computer having improved battery monitor and cell reversal protection circuit
KR0142370B1 (ko) * 1995-01-20 1998-07-01 김광호 휴대용 컴퓨터에서 하드웨어 커서를 이용한 피엠에스 레벨표시 장치 및 그 방법
US5691742A (en) * 1995-05-24 1997-11-25 Dell U.S.A., L.P. Software battery gauge for portable computers
US5996082A (en) * 1995-10-16 1999-11-30 Packard Bell Nec System and method for delaying a wake-up signal
US20030159076A1 (en) * 1996-07-19 2003-08-21 Compaq Information Technologies Group, L.P. Keyboard controller providing power management for a portable computer system
US5854915A (en) * 1996-11-22 1998-12-29 Vlsi Technology, Inc. Keyboard controller with integrated real time clock functionality and method therefor
US6105142A (en) * 1997-02-11 2000-08-15 Vlsi Technology, Inc. Intelligent power management interface for computer system hardware
US6006285A (en) * 1997-04-30 1999-12-21 Compaq Computer Corporation Computer system capable of playing audio CDs in a CD-ROM drive independent of an operating system
US6073187A (en) * 1997-06-20 2000-06-06 Compaq Computer Corporation Controls and indicators available to a user for a secondary operational mode of a portable computer which is open or closed state of the computer case
US6131131A (en) * 1998-01-22 2000-10-10 Dell U.S.A., L.P. Computer system including an enhanced communication interface for an ACPI-compliant controller
US6691049B1 (en) * 2000-03-29 2004-02-10 Hewlett-Packard Development Company, L.P. Method and apparatus to detect that the battery gauge is out of calibration
TW468052B (en) * 2000-09-08 2001-12-11 Inventec Corp Method and device for displaying battery capacities using LED of the notebook system
US20020129288A1 (en) * 2001-03-08 2002-09-12 Loh Weng Wah Computing device having a low power secondary processor coupled to a keyboard controller
US7089339B2 (en) * 2001-03-16 2006-08-08 National Semiconductor Corporation Sharing of functions between an embedded controller and a host processor
US6931481B2 (en) * 2001-12-27 2005-08-16 Dell Products L.P. Battery firmware customer/field update method
US6961859B2 (en) * 2002-01-30 2005-11-01 Hewlett Packard Development Company, L.P Computing device having programmable state transitions
TWI259367B (en) * 2002-03-20 2006-08-01 Via Tech Inc Embedded control unit
US6996734B2 (en) * 2002-05-22 2006-02-07 Dell Products L.P. System and method for using a legacy battery in an information handling system using a table having actual and translated remaining capacity values
US6893153B2 (en) * 2002-06-28 2005-05-17 Hewlett-Packard Development Company, L.P. Temperature-indicating power adapter and electronic device that operates therewith
US20040070371A1 (en) * 2002-10-11 2004-04-15 Compaq Information Technologies Group, L.P. Power management of a battery operated computer system based on battery status
TW575803B (en) * 2002-10-17 2004-02-11 Uniwill Comp Corp The method of managing portable computer power cord

Also Published As

Publication number Publication date
JP2004164530A (ja) 2004-06-10
US6892146B2 (en) 2005-05-10
US20040093176A1 (en) 2004-05-13
TW200407700A (en) 2004-05-16

Similar Documents

Publication Publication Date Title
US7483228B2 (en) Hard disk drive with reduced power consumption, related data processing apparatus, and I/O method
CN101356508B (zh) 用于优化动态存储器大小调整的等待时间的方法和系统
US7783905B2 (en) Method for reducing power consumption of a computer system in the working state
US7254732B2 (en) Method and apparatus of automatic power management control for serial ATA device directly attached to SAS/SATA host controller
JP6788420B2 (ja) 電力消費を制御するシステム及びその方法
TWI718169B (zh) 用於使記憶體裝置進入低功率狀態的技術
US7010711B2 (en) Method and apparatus of automatic power management control for native command queuing Serial ATA device
TWI224728B (en) Method and related apparatus for maintaining stored data of a dynamic random access memory
US7529955B2 (en) Dynamic bus parking
US7330989B2 (en) Method and apparatus of automatic power management control for Serial ATA interface utilizing a combination of IOP control and specialized hardware control
TWI235298B (en) Method to read the battery status by the operating system of portable computer
US20050198542A1 (en) Method and apparatus for a variable memory enable deassertion wait time
CN105684083A (zh) 数据存储设备的电力管理
CN111522587B (zh) 电子装置及装置唤醒方法
CN206331414U (zh) 一种固态硬盘
CN105260146A (zh) 一种磁盘节能的设置方法及装置
TWI559227B (zh) 具有內建雙可隨機關閉開啟電源作業裝置的電腦系統
EP1570335B1 (en) An apparatus and method for address bus power control
US7142995B2 (en) Method for reading battery status by operation system of portable computer
CN112148365B (zh) 一种控制模块、方法及微控制器芯片
US20100299310A1 (en) Method for accessing data storage unit
TW201537453A (zh) 電子裝置及基於其儲存裝置吞吐量調整緩衝區大小的方法
CN1503102A (zh) 可携式电脑的作业系统读取电池状态的方法
CN1432890A (zh) 通过内存节流节省计算机电能的方法
CN101901039A (zh) 储存元件存取方法

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees