[go: up one dir, main page]

TW200407700A - 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
TW200407700A
TW200407700A TW091133230A TW91133230A TW200407700A TW 200407700 A TW200407700 A TW 200407700A TW 091133230 A TW091133230 A TW 091133230A TW 91133230 A TW91133230 A TW 91133230A TW 200407700 A TW200407700 A TW 200407700A
Authority
TW
Taiwan
Prior art keywords
battery
operating system
portable computer
time
reading
Prior art date
Application number
TW091133230A
Other languages
English (en)
Other versions
TWI235298B (en
Inventor
you-zhi Tong
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

200407700 五、發明說明(1) 【發明所屬之技術領域】 本發明是關於一種讀取電池狀態之方法,特別是指一 種可攜式電腦之作業系統讀取電池狀態之方法,藉以節省 該可攜式電腦中央處理器之系統資源。 【先前技術】 在目前廣泛使用之視窗作業系統中(例如Wind〇ws XP、Windows 2000 ),已普遍在其作業系統中整合了先進 架構電源介面標準ACPI(Advanced Configuration and Power lnterface)之電源管理功能,藉由該“^介面標準 可控制所有硬體的電源管理操作,從筆記型電腦到桌上型 和伺服器均包含在此規格内。 該先進架構電源介面標準ACPI (Advanced
Configuration and Power Interface)是由電 同制定開發的電力管理系統介面,其目的是為 統和硬體之間有一個共同的電源管理介面,以 腦系統在電源管理上由各別的廠商所制定的不 透過該電力管理系統使得作業系統(〇s)能夠依 式管理週邊設備的用電情形,例如使硬碟或營 超過一段特定時間沒有使用時進入省電模式, 作’直到使用者再度使用。 、工 可攜式電腦(例如筆記型電腦)是針對消費 的需求而研發的。而可攜式電腦和桌上型電腦 點在於前者有時完全仰賴電池運作。因此,^ 源管理功能,也就成為可攜式電腦電池技術中
腦業界所共 了在作業系 改進以往電 統一介面。 照一定的方 幕在使用者 或者停止運 者攜帶方便 之最大不同 池本身的電 最重要的一
200407700 五、發明說明(2) 項功能。 典型的可攜式電腦系統包括有一中央處理單元、基本 輸出入系統(System Basic Input Output System , SYS - BIOS)與鍵盤控制器(Keyboard Controller,KBC), 其中該鍵盤控制器中包括有一鍵盤内建微處理器 (Embedded Microcontroller)、一鍵盤基本輸出入系統 (Keyboard Basic Input Output System , KB-BIOS)、記 憶體及其它特殊功能之介面電路。該可攜式電腦之工作電 》’了、疋W电>*〇所供應’且該電池之電池狀態會由鍵盤控制 之電池狀態偵測介面予以偵測。該可攜式電腦1操作於 A C PI模式作業系統之下時’其作業系統(〇 p e r a七丨n g
System)會定時透過ACPI Machine Language(簡稱AML)讀 取鍵盤控制器中的電池狀態資料。 【發明内容】 當該可攜式電腦系統使用電池作為工作電源時,作業 系統在定時讀取電池狀態之時會連續讀取電池狀態2〜3 次。然而’由於鍵盤控制器之執行速度係屬較慢遠的裝 置,因此當中央處理單元處於較忙碌時(例如在播放Wi η DVD)時’又遇到作業系統定時讀取鍵盤控制器中之電池狀f 態時’就可能發生因中央處理單元太忙碌而導致晝面停頓 的現象。 鑑於前述習用技術中電腦裝置之作業系統在定時讀取 電池狀態時所在讀取電池狀態時,所可能造成整個電腦系
第5頁 200407700 五、發明說明(3) 統執行效能降低之問題,本發明之主要目的即是提供一種 以電池作為電力源之電腦設備之作業系統讀取電池狀態之 方法’以使該電腦設備在讀取電池狀態時不致影響到電腦 系統之執行效能。 本發明之另一目的即是提供一種可攜式電腦之作業系 統讀取電池狀態之方法,透過本發明之電池讀取方法、以 及配合電池容量之電量變化特性,除了可以有效節省中央 處理單元資源之外’亦仍能維持該可攜式電腦對電池狀態 之監測及電池電源之管理。 #叮ί ΐ 3 ί解決f知技術之問題所採用之技術手段係在 該可攜式電腦透過鍵盤控制器定時讀取電池之電池 料時先< 由作業系統讀取電腦系统的現在系統時間,缺後 ;;較;^系統時間與上次作業系統讀取電池狀態的; Ιΐί該讀取時間差距值與一預定讀取時間基準值。 差距值大於或等於該預定讀取時間基準值 :記=:統巧電池之電池狀態資料,並將之存值到 之作聿^@ ^,的電池狀態資料回值給可攜式電腦 該:差距值小於該預定讀取時間 狀態資料直接回值給作』系^將存放在該記憶體中的電池 備在手段,除了可以使該電腦設 效節省中央處理單元資诉電腦糸統之執行效能’有 池狀態之監測及電池;:之=維持該可攜式電腦對電 200407700
五、發明說明(4) 本發明之其它目的及其設計,將藉由以下之較佳 例及附呈圖式作進一步之說明。 貝她 【實施方式】 /參閱第一圖所示,其係顯示配合本發明控制流程之相 關系統連接示意圖,其顯示了 一可攜式電腦丨中之中央處目 理單元11、基本輸出入系統^以”咄⑺幻與鍵盤控制、^ 間之連接關係示意圖。其中該鍵盤控制器2中包括有一° 盤内建微處理器21、一鍵盤基本輸出入系統 22(0-BIOS)、一記憶體23、以及一電池狀態偵 24 。 , w — 、該可攜式電腦1連結有各項硬體裝置(例如包括有軟式 磁碟機、硬碟、光碟機、PCMCIA埠、顯示器等)。而連結^ =該鍵盤控制器2之硬體裝置例如包括有電池、溫度感^ 器、鍵盤、滑鼠等裝置。該鍵盤控制器2與可攜式電腦1之 中央處理單元11間藉由匯流排13(例如IDE匯流排)作連 結。典型的鍵盤控制器2與電腦系統之中央處理單元丨丨間 的傳輸埠預定位址為60H/64H&62H/66H,其中6〇11/6411傳 輸埠係作為電腦系統與鍵盤控制器間之資料傳輸埠,而 62H/66H傳輸埠係作為電腦系統與鍵盤控制器間之信號溝 通用。 、遠可攜式電腦1之工作電源是由電池3所供應,且該電 池3之電池狀態會由鍵盤控制器2之電池狀態偵測介面24予 以偵測。該可攜式電腦!操作於ACpi模式作業系統之下
200407700 五、發明說明(5) 時’其作業系統(Operating System)會定時透過ACPI機器 語言讀取鍵盤控制器2中的電池狀態資料,目前的一般定 時讀取時間大都設定在例如2秒。 第二圖所示係顯示本發明可攜式電腦讀取電池狀態時 之控制流程圖。茲同時參閱第一圖所示之電腦系統連接示 意圖,對本發明之流程作一說明。本發明之控制流程中, 其讀取方法首先係在步驟1 〇 1中,由可攜式電腦之作業系 統頃取電腦系統的現在系統時間(System Time)T1。
在讀取到可攜式電腦之現在系統時間T1之後,即將該 現在系統時間Τ1與上次作業系統讀取電池狀態的時間Τ2做 比較(步驟1 0 2 ),並依據兩者之差值而得到一讀取時間差 距值Τ0 = Τ1-Τ2(步驟 103)。 士然後在步驟104中,再將該讀取時間差距值丁〇與_ 定讀取時間基準值Tr作一比較。當該讀取時間差距值冗 於或等於該預定讀取時間基準值&時,則該可攜式電 之作業系統會從鍵盤控制器2讀取電池3之電池狀態 (:驟105),並將之存值到該鍵盤控制器2之‘ 3二 步驟該作業系統亦會健存現在系統時間τ3; =二作為下次的時間比較之依據。最後將讀= 狀態回值給可攜式電腦】之作業系統(步驟1〇8)。 電池 而在步驟104中,若判斷出該讀取時 該預定讀取時間基準值Tr時, 值T0小於 、、先即直接將存放在該鍵盤控制器2之記憶體23 2系 態資料直接回值給作業系統(步 々,池狀 、V鄉1 u y),而無需浪費時間 200407700 五、發明說明(6) 由鍵盤控制器; 資源。 由於電池 2mA/h),故當 在首次的讀取 到記憶體,之 體回值,而無 透過本發明之 資源。 藉由上述 作業系統讀取 作業系統在讀 效能降低之問 及配合電池容 處理單元資源 之監測及電池 利用價值。 惟以上之 明,凡習於此 而作其它種種 所作的種種改 定之專利範圍 丨讀取電池狀態,以節省中央處理器之系統 容量於二秒内之電量變化不多(差距大約為 作業系統於二秒内連續讀取電池狀態時’則 時,真正從鍵盤控制器讀取電池狀態並存值 後二秒内的作業系統讀取動作則直接由記憶 需浪費時間從鍵盤控制器讀取電池狀態,故 上述控制方法,確可藉以節省中央處理單元 之說明可知,本發明所提供之可攜式電腦之, 電池狀態之方法,確能有效解決電腦裝置之 取電池狀態時所可能造成整個電腦系統執行 題。再者’透過本發明之電池讀取方法、以 量之電量變化特性,除了可以有效節省中央 之外,部仍能維持該可攜式電腦對電池狀態 電源之管理。因此,本發明確具高度之產業 項技術者當可依據本發明之丄述;二:;: ί及變化,當仍屬於本發明之發明二
200407700
圖式簡單說明 【圖式簡單説明】 第一圖顯示配合本發明控制流程之相關系统诖技_立 ϋ %接不意圖, 其顯示一可攜式電腦之中央處理單元、基本輸出 系統與鍵盤控制器間之連接關係示意圖; 、 第二圖係顯示本發明可攜式電腦讀取電池狀態時之控制流 程圖。 【圖 1 11 12 13 21 22 23 24 3 式各元件符號之說明】
可攜式電腦 中央處理單元 基本輸出入系統 匯流排 鍵盤控制器 鍵盤内建微處理器 鍵盤基本輸出入系統 記憶體 電池狀態偵測介面 電池
第10頁

Claims (1)

  1. 200407700 六、申請專利範圍 1 · 一種可攜式電腦之作t系統讀取電 系由:電池供應所需之工作電;之=該= 該電池之電池狀態資料,該方法包括取 a· g y攜式電腦之作f系統讀取電腦系統的現在系統時 b.=該ίΐ!統時間與上次作業系統讀取電池狀態的 寺間,並依據兩者之差值而得到一讀取時間差距值; C.比較該讀取時間差距值與預定讀取時間基準值., d. ί ί讀取時間差距值大於或等於該預定讀取時間基準 -料’::攜$電腦之作業系統讀取電池之電池狀態 粗 存值到一記憶體中,再將讀到的電池狀 悲貝料回值給可攜式電腦之作業系統; e· 時間差距值小於該預定讀取時間基準值時, 該可攜式電腦之作業系統即直接將存放在該記憶體中 的電池狀態資料直接回值給作業系統。 ^ 2. 第1Λ所述可攜式電腦之作業系統讀取 ^狀也之方法,其中步驟4中,該可攜式電腦之作業 Ϊ = 於該可攜式電腦之鍵盤控制器讀取電池 之電池狀悲資料,而該記憶體係連接於該鍵盤控制器。 3 · ΐ m利範圍第1項所述可攜式電腦之作業系統讀取 電池狀態之方法,其中步驟d中,該可攜式電腦之作業
    第11頁 200407700 六、申請專利範圍 系統更包括將現在系統時間予以儲存,以作為下次的時 間比較之依據。 !!
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 true TW200407700A (en) 2004-05-16
TWI235298B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8762757B2 (en) 2011-05-17 2014-06-24 Wistron Corporation Power management method and device thereof

Families Citing this family (5)

* 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 レノボ・シンガポール・プライベート・リミテッド 電子機器、そのバッテリ使用可能時間の表示方法、およびコンピュータが実行可能なプログラム
US10367237B2 (en) 2015-02-06 2019-07-30 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8762757B2 (en) 2011-05-17 2014-06-24 Wistron Corporation Power management method and device thereof

Also Published As

Publication number Publication date
TWI235298B (en) 2005-07-01
US6892146B2 (en) 2005-05-10
JP2004164530A (ja) 2004-06-10
US20040093176A1 (en) 2004-05-13

Similar Documents

Publication Publication Date Title
US7437575B2 (en) Low power mode for device power management
TWI472914B (zh) 具有可移除式非揮發性半導體記憶體模組之硬碟驅動器、硬碟總成、膝上型電腦和用於非揮發性半導體記憶體模組移除檢測之硬碟控制器積體電路
CN103959234B (zh) 计算系统的快速平台休眠与恢复
CN104850435B (zh) 电源管理控制器与方法
CN103116402B (zh) 具有语音控制功能的计算机系统以及语音控制方法
TW591374B (en) Power conservation techniques for a digital computer
TWI497289B (zh) 用於改善平臺之回復時間的方法與系統及電腦可讀取媒體
US20110078475A1 (en) Transitioning a Computing Platform to a Low Power System State
CN101634884B (zh) 电源管理控制器与方法
CN110488673B (zh) 一种低功耗模式的数据处理模块及数据处理方法
US20100106994A1 (en) Method, apparatus, and system for adapting power consumption
CN106852175A (zh) 可配置易失性存储器数据保存触发器
US9021143B2 (en) Polling of I/O devices on host initiated communication transports
US7107487B2 (en) Fault tolerant sleep mode of operation
TW200407700A (en) Method to read the battery status by the operating system of portable computer
CN102681650B (zh) 一种电源控制节能方法及其对应的存储系统
US12001329B2 (en) System and method for storage class memory tiering
CN1746815A (zh) 用于使电脑于工作状态以及待机状态间转换的电脑系统与方法
CN112148365B (zh) 一种控制模块、方法及微控制器芯片
CN117093422A (zh) 固态硬盘恢复方法、系统、计算机设备及可读存储介质
US6918045B2 (en) System, method and computer program product for selecting a power management mode in an information handling system
US7142995B2 (en) Method for reading battery status by operation system of portable computer
CN206339932U (zh) 一种低功耗的微控制器soc
CN101477468B (zh) 电脑系统的自动开机方法
US20140122799A1 (en) Storage device and power saving method thereof

Legal Events

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