TWI821056B - Electronic device and reporting method of battery capacity - Google Patents

Electronic device and reporting method of battery capacity Download PDF

Info

Publication number
TWI821056B
TWI821056B TW111146041A TW111146041A TWI821056B TW I821056 B TWI821056 B TW I821056B TW 111146041 A TW111146041 A TW 111146041A TW 111146041 A TW111146041 A TW 111146041A TW I821056 B TWI821056 B TW I821056B
Authority
TW
Taiwan
Prior art keywords
capacity
battery
system circuit
remaining
voltage
Prior art date
Application number
TW111146041A
Other languages
Chinese (zh)
Inventor
袁振國
鄭人豪
Original Assignee
神基科技股份有限公司
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 神基科技股份有限公司 filed Critical 神基科技股份有限公司
Priority to TW111146041A priority Critical patent/TWI821056B/en
Application granted granted Critical
Publication of TWI821056B publication Critical patent/TWI821056B/en

Links

Images

Landscapes

  • Tests Of Electric Status Of Batteries (AREA)
  • Stand-By Power Supply Arrangements (AREA)

Abstract

An electronic device includes a battery, a battery gauge, and a processor. The battery is configured to power the electronic device. The battery gauge is configured to gauge the battery to generate a plurality of remaining capacities, a battery temperature, and a battery voltage. The processor is configured to read the plurality of remaining capacities in sequence. When it is read that the remaining capacity is equal to a cut-off capacity and a previous remaining capacity is greater than a preset capacity, the processor determines whether a predetermined condition is met according to the battery temperature and the battery voltage. When it is determined that the predetermined condition is met, the processor performs a capacity correction process. The capacity correction process includes using the previous remaining capacity as a correction capacity, and reporting the correction capacity to a system circuit.

Description

電子裝置及電池容量回報方法Electronic device and battery capacity reporting method

本發明是關於電池容量回報,特別是一種適用於低溫環境下的電子裝置及電池容量回報方法。 The present invention relates to battery capacity reporting, in particular to an electronic device and battery capacity reporting method suitable for low temperature environments.

一般而言,電池的剩餘容量是由電池計來計量。由於溫度會影響到剩餘容量的計量,故電池計通常會依據一電池演算法來補償溫度對剩餘容量的影響。 Generally speaking, the remaining capacity of the battery is measured by a battery meter. Since temperature will affect the measurement of remaining capacity, battery meters usually compensate for the impact of temperature on remaining capacity based on a battery algorithm.

針對電池使用在低溫下之情況,目前電池製作商在製造電池時是根據單一低溫溫度(例如,設定低溫溫度為攝氏-21度)與固定負載來設置電池演算法的參數。然而,在真實使用情況下,低溫溫度是多變的,例如變成攝氏-35度,此時電池演算法將不敷使用,而致使電池的剩餘容量發生異常跳趴(%),例如剩餘容量從50%直接跳至0%。如此一來,會導致電池的供電時間大幅縮短,甚至導致運用此電池的電子裝置瞬間斷電而無法開機使用。 For batteries used at low temperatures, battery manufacturers currently set battery algorithm parameters based on a single low temperature temperature (for example, setting the low temperature temperature to -21 degrees Celsius) and a fixed load when manufacturing batteries. However, in actual use, the low temperature is variable, for example, it becomes -35 degrees Celsius. At this time, the battery algorithm will not be used enough, causing the remaining capacity of the battery to jump abnormally (%). For example, the remaining capacity changes from 50% jumps directly to 0%. As a result, the power supply time of the battery will be greatly shortened, and even the electronic device using the battery will be powered off momentarily and cannot be turned on.

在一實施例中,本發明提供一種電子裝置。電子裝置包含電池、電池計與處理器。電池用以供電給該電子裝置。電池計用以計量電池以產生電池的複數剩餘容量、電池溫度與電池電壓。處理器用以依序讀取 複數剩餘容量。於讀取到剩餘容量等於截止容量且前一筆的剩餘容量大於預設容量時,處理器根據電池溫度與電池電壓確認是否滿足預設條件。當確認滿足預設條件時,處理器執行容量修正程序。容量修正程序包含以前一筆的剩餘容量作為修正容量,以及回報修正容量給系統電路。 In one embodiment, the present invention provides an electronic device. Electronic devices include batteries, battery meters and processors. The battery is used to power the electronic device. The battery meter is used to measure the battery to produce the battery's remaining capacity, battery temperature and battery voltage. The processor is used to read sequentially Plural remaining capacity. When it reads that the remaining capacity is equal to the cut-off capacity and the previous remaining capacity is greater than the preset capacity, the processor confirms whether the preset conditions are met based on the battery temperature and battery voltage. When it is confirmed that the preset conditions are met, the processor executes the capacity correction procedure. The capacity correction program includes the remaining capacity of the previous transaction as the correction capacity, and reporting the correction capacity to the system circuit.

在一實施例中,本發明提供一種電池容量回報方法。電池容量回報方法包含:依序讀取電池計計量電池所產生的複數剩餘容量;於讀取到剩餘容量等於截止容量且前一筆的剩餘容量大於預設容量時,根據電池的電池溫度與電池電壓確認是否滿足一預設條件;以及當確認滿足預設條件時,執行容量修正程序。容量修正程序包含以前一筆的剩餘容量作為修正容量,以及回報修正容量給系統電路。 In one embodiment, the present invention provides a battery capacity reporting method. The battery capacity reporting method includes: sequentially reading the remaining capacity generated by the battery meter to measure the battery; when the remaining capacity is read to be equal to the cut-off capacity and the previous remaining capacity is greater than the preset capacity, based on the battery temperature and battery voltage of the battery Confirm whether a preset condition is met; and when it is confirmed that the preset condition is met, execute a capacity correction procedure. The capacity correction program includes the remaining capacity of the previous transaction as the correction capacity, and reporting the correction capacity to the system circuit.

綜上所述,任一實施例之電子裝置及電池容量回報方法,其在電池演算法因於低溫下不敷使用而致使電池的容量的顯示(或回報)發生異常跳趴時,透過執行容量修正程序來產生並回報修正容量給系統電路,以致電子裝置的供電時間得以維持正常而不會因異常跳趴而縮短。此外,根據任一實施例之電池容量回報方法所實現的電子裝置可根據修正容量來顯示電池的容量給使用者,故使用者將不會看到電池的容量亂跳,進而可提升使用者體驗。 To sum up, the electronic device and battery capacity reporting method of any embodiment, when the battery algorithm is insufficient for use at low temperatures and causes the battery capacity display (or report) to abnormally jump, by executing the capacity The correction program generates and reports the correction capacity to the system circuit, so that the power supply time of the electronic device can be maintained normally and will not be shortened due to abnormal jumps. In addition, the electronic device implemented according to the battery capacity reporting method of any embodiment can display the battery capacity to the user according to the corrected capacity, so the user will not see the battery capacity jumping randomly, thereby improving the user experience. .

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者瞭解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。 The detailed features and advantages of the present invention are described in detail below in the implementation mode. The content is sufficient to enable anyone skilled in the relevant art to understand the technical content of the present invention and implement it according to the content disclosed in this specification, the patent scope and the drawings. , anyone familiar with the relevant art can easily understand the relevant objectives and advantages of the present invention.

100:電子裝置 100: Electronic devices

110:電池 110:Battery

120:電池計 120:Battery meter

130:處理器 130: Processor

140:系統電路 140:System circuit

150:儲存單元 150:Storage unit

160:電源連接埠 160:Power port

AC:電源輸入 AC: power input

C1-CX:剩餘容量 C1-CX: remaining capacity

FC:電池容量 FC: battery capacity

NC:修正容量 NC: corrected capacity

R1-RN:剩餘容量 R1-RN: remaining capacity

TB:電池溫度 TB: battery temperature

VB:電池電壓 VB: battery voltage

S10~S60:步驟 S10~S60: steps

S501~S519:步驟 S501~S519: steps

圖1為電子裝置之一實施例的方塊示意圖。 FIG. 1 is a block diagram of an embodiment of an electronic device.

圖2為電池容量回報方法之一實施例的流程示意圖。 Figure 2 is a schematic flowchart of one embodiment of a battery capacity reporting method.

圖3為容量修正程序之一實施例的流程示意圖。 Figure 3 is a schematic flowchart of one embodiment of a capacity correction procedure.

圖4為容量修正程序之一實施例的流程示意圖。 Figure 4 is a schematic flowchart of one embodiment of a capacity correction procedure.

圖5為部份的容量修正程序之一實施例的流程示意圖。 FIG. 5 is a schematic flowchart of part of an embodiment of the capacity correction process.

圖6為部份的容量修正程序之一實施例的流程示意圖。 FIG. 6 is a schematic flowchart of an embodiment of part of the capacity correction procedure.

圖7為部份的容量修正程序之一實施例的流程示意圖。 FIG. 7 is a schematic flowchart of an embodiment of part of the capacity correction procedure.

為使本發明之實施例之上述目的、特徵和優點能更明顯易懂,下文配合所附圖式,作詳細說明如下。 In order to make the above objects, features and advantages of the embodiments of the present invention more obvious and understandable, detailed descriptions are given below with reference to the accompanying drawings.

必須了解的是,使用於本說明書中的「包含」一詞,是用以表示存在特定的技術特徵、數值、方法步驟、作業處理、元件以及/或組件,但並不排除可加上更多的技術特徵、數值、方法步驟、作業處理、元件、組件,或以上的任意組合。 It must be understood that the word "comprising" used in this specification is used to indicate the presence of specific technical features, values, method steps, processes, components and/or components, but does not exclude the possibility of adding more technical characteristics, numerical values, method steps, work processes, components, components, or any combination of the above.

圖1為電子裝置之一實施例的方塊示意圖。請參閱圖1。電子裝置100包含電池110、電池計120以及處理器130。其中,電池計120耦接於電池110內的電池芯,且處理器130耦接於電池計120。此外,電子裝置100更包含系統電路140與儲存單元150,且處理器130耦接於系統電路140與儲存單元150。 FIG. 1 is a block diagram of an embodiment of an electronic device. See Figure 1. The electronic device 100 includes a battery 110, a battery meter 120, and a processor 130. The battery meter 120 is coupled to the battery cell in the battery 110 , and the processor 130 is coupled to the battery meter 120 . In addition, the electronic device 100 further includes a system circuit 140 and a storage unit 150, and the processor 130 is coupled to the system circuit 140 and the storage unit 150.

電池110藉由其電池芯儲存電力,並且用以將所儲之電力提供給電子裝置100使用。在一些實施態樣中,電池110可為鋰離子電池、磷 酸鋰電池、鋰聚合物電池、鎳鎘電池、鉛酸電池或其他合適進行二次充供電之任何類型的電池。 The battery 110 stores electric power through its battery cells, and is used to provide the stored electric power to the electronic device 100 for use. In some implementations, the battery 110 may be a lithium-ion battery, a phosphorus Lithium-acid batteries, lithium polymer batteries, nickel-cadmium batteries, lead-acid batteries or any other type of battery suitable for secondary charging.

電池計120可用以計量電池110的電池特性,例如剩餘容量R1-RN、電池溫度TB、電池電壓VB等,並且將計量結果輸出給處理器130。於此,電池計120可以一計量頻率反覆對電池110進行計量,以依序產生電池芯的複數剩餘容量R1-RN、電池溫度TB以及電池電壓VB。其中,N為大於1之正整數。 The battery meter 120 can be used to measure battery characteristics of the battery 110, such as remaining capacity R1-RN, battery temperature TB, battery voltage VB, etc., and output the measurement results to the processor 130. Here, the battery meter 120 can repeatedly measure the battery 110 at a measurement frequency to sequentially generate a plurality of remaining capacities R1-RN of the battery cells, the battery temperature TB, and the battery voltage VB. Among them, N is a positive integer greater than 1.

在一些實施例中,電池計120可與電池芯設置於電池110之殼體(圖未示)中,且電池計120可藉由感測電池110之殼體中的內部環境溫度來取得電池溫度TB(如藉由溫度偵測單元感測並產生對應的溫度)。但本發明不以此為限,電池計120亦可藉由電性連接至電池110的電池芯來取得電池溫度TB。此外,電池計120可利用開路電壓法或庫倫計量法來取得電池110的剩餘容量R1-RN,且剩餘容量R1-RN可以相對容量(relative state of capacity,RSOC)的表示方式來表示電池110的當前所儲存有的電力的量。在一些實施態樣中,電池計120可利用計量積體電路(gauge IC)來實施,但本發明並非僅限於此。 In some embodiments, the battery meter 120 can be disposed with the battery cell in a case (not shown) of the battery 110 , and the battery meter 120 can obtain the battery temperature by sensing the internal ambient temperature in the case of the battery 110 TB (such as sensing and generating the corresponding temperature through the temperature detection unit). However, the present invention is not limited thereto. The battery meter 120 can also obtain the battery temperature TB by electrically connecting to the battery core of the battery 110 . In addition, the battery meter 120 can use the open circuit voltage method or the coulomb measurement method to obtain the remaining capacity R1 - RN of the battery 110 , and the remaining capacity R1 - RN can represent the relative state of capacity (RSOC) of the battery 110 . The amount of electricity currently stored. In some implementations, the battery gauge 120 may be implemented using a gauge IC, but the invention is not limited thereto.

處理器130用以依序讀取電池計120所產生的複數剩餘容量R1-RN,並分別根據剩餘容量R1-RN回報相應的電池容量FC給系統電路140。在一些實施例中,系統電路140可用以根據處理器130所回報的電池容量FC執行相應的作業。例如,致使電子裝置100在其顯示屏(圖未示)上顯示出處理器130所回報的電池容量FC給使用者看。 The processor 130 is used to sequentially read the plurality of remaining capacities R1-RN generated by the battery meter 120, and report corresponding battery capacities FC to the system circuit 140 according to the remaining capacities R1-RN. In some embodiments, the system circuit 140 may be configured to perform corresponding operations according to the battery capacity FC reported by the processor 130 . For example, the electronic device 100 is caused to display the battery capacity FC reported by the processor 130 on its display screen (not shown) for the user to see.

在一些實施態樣中,處理器130可利用嵌入式控制器(Embed Controller,EC)、系統單晶片(SoC)、中央處理器(CPU)、微控制器(MCU)、特殊應用積體電路(ASIC)、應用處理器(Application Processor,AP)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化邏輯裝置(PLD)或其他任何合適的電子組件來實現。系統電路140可至少包含作業系統(operating system,OS)。此外,儲存單元150可由一個或多個儲存元件實現,並且各儲存元件可為但不限於非揮發性記憶體,例如唯讀記憶體(ROM)或快閃記憶體(Flash memory)等或揮發性記憶體,例如隨機存取記憶體(RAM)。 In some implementations, the processor 130 may utilize an embedded controller (EC), system on chip (SoC), central processing unit (CPU), microcontroller (MCU), special application integrated circuit ( ASIC), application processor (Application Processor, AP), digital signal processor (Digital Signal Processor, DSP), programmable logic device (PLD) or any other suitable electronic components. The system circuit 140 may include at least an operating system (OS). In addition, the storage unit 150 can be implemented by one or more storage elements, and each storage element can be, but is not limited to, non-volatile memory, such as read-only memory (ROM) or flash memory (Flash memory), or volatile memory. Memory, such as random access memory (RAM).

值得注意的是,為了清楚闡述本發明,圖1為一簡化的方塊圖,其中僅顯示出與本發明相關之元件。對於本發明技術領域中具有通常知識者而言,應理解電子裝置100亦可能包含用以提供其他特定功能(例如,顯示、音效等等)的其他元件。 It is worth noting that, in order to clearly illustrate the present invention, FIG. 1 is a simplified block diagram in which only components related to the present invention are shown. For those with ordinary skill in the technical field of the present invention, it should be understood that the electronic device 100 may also include other components for providing other specific functions (eg, display, sound effects, etc.).

在一些實施例中,電子裝置100可利用處理器130執行任一實施例的電池容量回報方法,使得電子裝置100在低溫環境下使用時,電池110的容量顯示(或回報)(即代表當前電池110的所有電池芯所儲存的電力的總量的顯示數值或回報數值)可不因電池演算法的不敷使用而發生異常跳趴(%)(即顯示或回報的電池容量非遞減而是從一數值驟然跳至另一數值)。如此一來,在低溫環境下使用電子裝置100時,電池110供電給電子裝置100的供電時間得以維持正常而不會因異常跳趴而縮短。此外,由於電子裝置100可根據任一實施例之電池容量回報方法所產生的修 正容量來顯示電池110的容量給使用者,使用者將不會看到電池110的容量亂跳,進而可提升使用者體驗。 In some embodiments, the electronic device 100 can use the processor 130 to execute the battery capacity reporting method of any embodiment, so that when the electronic device 100 is used in a low temperature environment, the capacity of the battery 110 is displayed (or reported) (that is, represents the current battery capacity). The displayed value or reported value of the total amount of electricity stored in all battery cells of 110 will not cause abnormal jump (%) due to insufficient use of the battery algorithm (that is, the displayed or reported battery capacity does not decrease but starts from a certain level). The value suddenly jumps to another value). In this way, when the electronic device 100 is used in a low-temperature environment, the power supply time provided by the battery 110 to the electronic device 100 can be maintained normally and will not be shortened due to abnormal jumps. In addition, since the electronic device 100 can be modified according to the battery capacity reporting method of any embodiment, Display the capacity of the battery 110 to the user by displaying the positive capacity, so that the user will not see the capacity of the battery 110 jumping randomly, thereby improving the user experience.

圖2為電池容量回報方法之一實施例的流程示意圖。請參閱圖1與圖2。在電池容量回報方法之一實施例中,電子裝置100可藉由處理器130依序讀取電池計120所輸出的剩餘容量R1-RN(步驟S10)。 Figure 2 is a schematic flowchart of one embodiment of a battery capacity reporting method. See Figure 1 and Figure 2. In one embodiment of the battery capacity reporting method, the electronic device 100 can sequentially read the remaining capacity R1-RN output by the battery meter 120 through the processor 130 (step S10).

在步驟S10之一實施例中,處理器130可以一讀取頻率接收電池計120所產生的複數剩餘容量R1-RN。接續,處理器130可先對剩餘容量R1-RN進行資料過濾,並將濾除掉髒資料後的剩餘容量C1-CX暫存於儲存單元150中。其中,X為大於1且小於或等於N之正整數。並且,各剩餘容量C1-CX為剩餘容量R1-RN中之一者。之後,處理器130再自儲存單元150中依序讀取剩餘容量C1-CX,並分別根據剩餘容量C1-CX以一回報頻率回報電池的電池容量FC給系統電路140。在一些實施態樣中,所述回報頻率小於所述讀取頻率。其中,讀取頻率可例如但不限於為1秒1次。 In one embodiment of step S10, the processor 130 may receive the complex remaining capacity R1-RN generated by the battery meter 120 at a reading frequency. Next, the processor 130 may first perform data filtering on the remaining capacity R1-RN, and temporarily store the remaining capacity C1-CX after filtering out dirty data in the storage unit 150. Among them, X is a positive integer greater than 1 and less than or equal to N. Furthermore, each remaining capacity C1-CX is one of the remaining capacities R1-RN. After that, the processor 130 sequentially reads the remaining capacities C1-CX from the storage unit 150, and reports the battery capacity FC of the battery to the system circuit 140 at a reporting frequency according to the remaining capacities C1-CX. In some implementations, the reporting frequency is less than the reading frequency. The reading frequency may be, for example but not limited to, once per second.

在處理器130於步驟S10中自儲存單元150讀取一剩餘容量後,處理器130會先判斷當筆的剩餘容量是否等於一截止容量(步驟S20)。在一些實施態樣中,所述截止容量可例如但不限於為0%。 After the processor 130 reads a remaining capacity from the storage unit 150 in step S10, the processor 130 first determines whether the remaining capacity of the current pen is equal to a cut-off capacity (step S20). In some implementations, the cutoff capacity may be, for example, but not limited to, 0%.

當處理器130判定當筆的剩餘容量(以剩餘容量C1為例)不等於截止容量時,處理器130會將當筆的剩餘容量C1直接回報給系統電路140(步驟S60),並且返回步驟S10,以自儲存單元150讀取下一筆的剩餘容量(以剩餘容量C2為例)並接續進行下一筆剩餘容量C2的判斷。 When the processor 130 determines that the remaining capacity of the current pen (taking the remaining capacity C1 as an example) is not equal to the cut-off capacity, the processor 130 will directly report the remaining capacity C1 of the current pen to the system circuit 140 (step S60), and return to step S10. , the remaining capacity of the next transaction (taking the remaining capacity C2 as an example) is read from the storage unit 150 and the judgment of the remaining capacity C2 of the next transaction is continued.

依此類推,直到在對某一剩餘容量,例如剩餘容量C8的判斷中,若處理器130判定剩餘容量C8等於截止容量時,處理器130則會進 一步確認前一筆的剩餘容量,即剩餘容量C7是否大於一預設容量(步驟S30),以藉此判斷電池110之電池芯是否出現跳趴的情況。在一些實施態樣中,所述預設容量可為但不限於1%。 And so on, until in the judgment of a certain remaining capacity, such as the remaining capacity C8, if the processor 130 determines that the remaining capacity C8 is equal to the cut-off capacity, the processor 130 will proceed. One step is to confirm whether the previous remaining capacity, that is, whether the remaining capacity C7 is greater than a preset capacity (step S30), is used to determine whether the battery cell of the battery 110 has jumped. In some implementations, the preset capacity may be, but is not limited to, 1%.

當處理器130於步驟S30之確認結果為剩餘容量C7小於或等於預設容量(例如剩餘容量C7為1%而等於預設容量)時,表示電池110是正常放電至截止容量而並未出現跳趴的情況。此時,處理器130會執行步驟S60以將當筆的剩餘容量C8回報給系統電路140。 When the confirmation result of the processor 130 in step S30 is that the remaining capacity C7 is less than or equal to the preset capacity (for example, the remaining capacity C7 is 1% and equal to the preset capacity), it means that the battery 110 is normally discharged to the cut-off capacity without jumping. Lying down situation. At this time, the processor 130 will execute step S60 to report the remaining capacity C8 of the current pen to the system circuit 140 .

而當處理器130於步驟S30之確認結果為剩餘容量C7大於預設容量(例如剩餘容量C7為50%而大於預設容量)時,表示電池110的容量出現了跳趴的情況,此時處理器130會進一步根據電池溫度TB與電池電壓VB確認一預設條件是否已滿足(步驟S40)。在一些實施例中,預設條件為電池溫度TB低於一溫度閾值且電池電壓VB高於一電壓閾值。在一些實施態樣中,溫度閾值可為攝氏0度或其他適用於表示低溫的溫度,且電壓閾值可為3.1伏特或其他適用於表示電池110沒電時的電壓值。 When the confirmation result of the processor 130 in step S30 is that the remaining capacity C7 is greater than the preset capacity (for example, the remaining capacity C7 is 50% and is greater than the preset capacity), it means that the capacity of the battery 110 has jumped. At this time, the process The controller 130 will further confirm whether a preset condition is met based on the battery temperature TB and the battery voltage VB (step S40). In some embodiments, the preset condition is that the battery temperature TB is lower than a temperature threshold and the battery voltage VB is higher than a voltage threshold. In some implementations, the temperature threshold may be 0 degrees Celsius or other suitable temperature to indicate a low temperature, and the voltage threshold may be 3.1 volts or other suitable voltage value to indicate when the battery 110 is discharged.

當處理器130於步驟S40之確認結果為不滿足預設條件時,例如當處理器130於步驟S40中判定電池溫度TB大於溫度閾值(即表示電池110非處於低溫之下)及/或電池電壓VB小於或等於電壓閾值(表示電池110確實沒電了)時,處理器130會執行步驟S60而將當筆的剩餘容量C8回報給系統電路140。 When the confirmation result of the processor 130 in step S40 is that the preset condition is not met, for example, when the processor 130 determines in step S40 that the battery temperature TB is greater than the temperature threshold (that is, indicating that the battery 110 is not at a low temperature) and/or the battery voltage When VB is less than or equal to the voltage threshold (indicating that the battery 110 is indeed out of power), the processor 130 will execute step S60 to report the remaining capacity C8 of the current pen to the system circuit 140 .

而當處理器130於步驟S40之確認結果為滿足預設條件時,表示發生跳趴情況的電池110是在低溫環境之下且電池110中其實仍有剩餘的電力。為了使電池110可將其所儲之電力完整地提供出來給電子裝置 100使用,此時處理器130不會回報當筆的剩餘容量C8給系統電路140,並且會執行一容量修正程序(步驟S50)。 When the confirmation result of the processor 130 in step S40 is that the preset condition is met, it means that the battery 110 in which the jump occurs is in a low temperature environment and there is actually still remaining power in the battery 110 . In order to enable the battery 110 to fully provide the stored power to the electronic device 100 is used. At this time, the processor 130 will not report the remaining capacity C8 of the current pen to the system circuit 140, and will execute a capacity correction program (step S50).

圖3為容量修正程序之一實施例的流程示意圖。請參閱圖1與圖3。在容量修正程序之一實施例中,處理器130會以前一筆的剩餘容量C7,例如50%作為一修正容量NC(步驟S501),並回報修正容量NC給系統電路140(步驟S502)。於回報修正容量NC給系統電路140後,處理器130會開始計數一計數值(步驟S503),並判斷計數值是否達到一修正條件(步驟S504)。於判定計數值達到修正條件時,處理器130會以當前的修正容量NC扣除一固定容量後來作為一新的修正容量NC(步驟S505),並返回執行步驟S502,以將更新後的修正容量NC回報給系統電路140。 Figure 3 is a schematic flowchart of one embodiment of a capacity correction procedure. See Figure 1 and Figure 3. In one embodiment of the capacity correction program, the processor 130 uses the previous remaining capacity C7, for example 50%, as a correction capacity NC (step S501), and reports the correction capacity NC to the system circuit 140 (step S502). After reporting the correction capacity NC to the system circuit 140, the processor 130 starts counting a count value (step S503), and determines whether the count value reaches a correction condition (step S504). When it is determined that the count value reaches the correction condition, the processor 130 deducts a fixed capacity from the current correction capacity NC as a new correction capacity NC (step S505), and returns to step S502 to update the updated correction capacity NC. reported back to system circuit 140.

在一些實施例中,所述的修正條件可視電池110的最大容量而定。在一些實施態樣中,當電池110的最大容量大於8000毫安培小時(mAh)時,修正條件可例如但不限於為計數值等於40的整數倍。而當電池110的最大容量小於或等於8000毫安培小時(mAh),修正條件可例如但不限於為計數值等於20的整數倍。此外,固定容量可例如但不限於為1%。 In some embodiments, the correction condition may depend on the maximum capacity of the battery 110 . In some implementations, when the maximum capacity of the battery 110 is greater than 8000 milliampere hours (mAh), the correction condition may be, for example but not limited to, a count value equal to an integer multiple of 40. When the maximum capacity of the battery 110 is less than or equal to 8000 milliampere hours (mAh), the correction condition may be, for example but not limited to, the count value being an integer multiple of 20. In addition, the fixed capacity may be, for example, but not limited to, 1%.

在一些實施例中,於執行步驟S505之後並返回依序執行步驟S502、步驟S503時,計數值可不歸零而繼續累加。但本發明不以此為限。在另一些實施例中,於執行步驟S505之後,計數值便會歸零。因此,在後續返回依序執行步驟S502、步驟S503時,計數值是從零開始累加。 In some embodiments, after executing step S505 and returning to sequentially executing steps S502 and S503, the count value may not return to zero but continue to accumulate. However, the present invention is not limited to this. In other embodiments, after performing step S505, the count value will be reset to zero. Therefore, when subsequently returning to step S502 and step S503 in order, the count value starts to accumulate from zero.

於此,以電池110的最大容量大於8000毫安培小時為例來說明步驟S501至步驟S505。在以50%作為修正容量NC並回報此修正容量NC給系統電路140後,處理器130從零開始計數。於計數值到40時,處理器130便將50%的修正容量NC扣除1%的固定容量並回報49%的修正容量NC(即,新的修正容量NC)給系統電路140。然後,接續計數(假設計數值不歸零)直至計數值到80時,處理器130再將49%的修正容量NC扣除1%的固定容量並回報48%的修正容量NC(即,新的修正容量NC)給系統電路140。後續可以此流程繼續下去,故不再贅述。 Here, steps S501 to S505 will be described by taking the maximum capacity of the battery 110 being greater than 8000 milliamp hours as an example. After using 50% as the corrected capacity NC and reporting the corrected capacity NC to the system circuit 140, the processor 130 starts counting from zero. When the count value reaches 40, the processor 130 deducts 1% of the fixed capacity from the 50% correction capacity NC and returns 49% of the correction capacity NC (ie, the new correction capacity NC) to the system circuit 140 . Then, counting continues (assuming that the design value does not return to zero) until the count value reaches 80, the processor 130 then deducts 1% of the fixed capacity from the 49% correction capacity NC and returns 48% of the correction capacity NC (ie, the new correction capacity NC). capacity NC) to the system circuit 140. This process can be continued later, so I won’t go into details again.

圖4為容量修正程序之一實施例的流程示意圖。請參閱圖1與圖4。在容量修正程序之一實施例中,於步驟S505得到新的修正容量NC後,處理器130可先讀取來自電池計120的電池電壓並判斷電池電壓VB是否高於電壓閾值(步驟S506),以確認電池110是否還有剩餘的電力。在一些實施態樣中,所述的電壓閾值可為3.1伏特或其他適用於表示電池110沒電時的電壓值。 Figure 4 is a schematic flowchart of one embodiment of a capacity correction procedure. See Figure 1 and Figure 4. In one embodiment of the capacity correction program, after obtaining the new corrected capacity NC in step S505, the processor 130 may first read the battery voltage from the battery meter 120 and determine whether the battery voltage VB is higher than the voltage threshold (step S506). To confirm whether the battery 110 still has remaining power. In some implementations, the voltage threshold may be 3.1 volts or other voltage values suitable for indicating when the battery 110 is out of power.

於判定電池電壓VB非高於電壓閾值(即,小於或等於電壓閾值)時,表示電池110已無電力可提供給電子裝置100使用,故處理器130會以一截止容量回報給系統電路140(步驟S507)。 When it is determined that the battery voltage VB is not higher than the voltage threshold (ie, less than or equal to the voltage threshold), it means that the battery 110 has no power to provide for the electronic device 100 to use, so the processor 130 will report a cut-off capacity to the system circuit 140 ( Step S507).

在一些實施例中,處理器130是在連續記錄到電池電壓VB非高於電壓閾值的次數達到一預定次數後才執行步驟S507。而於電池電壓VB非高於電壓閾值的次數尚未達到預定次數時,處理器130可返回執行步驟S506,以重新確認電池電壓VB是否非高於電壓閾值。在一些實施態 樣中,所述截止容量可例如但不限於為0%。此外,所述的預定次數可為但不限於10次。 In some embodiments, the processor 130 performs step S507 after the number of times that the battery voltage VB is continuously recorded to be not higher than the voltage threshold reaches a predetermined number of times. When the number of times that the battery voltage VB is not higher than the voltage threshold has not reached the predetermined number of times, the processor 130 may return to step S506 to re-confirm whether the battery voltage VB is not higher than the voltage threshold. In some implementations In this case, the cut-off capacity may be, for example, but not limited to, 0%. In addition, the predetermined number of times may be but is not limited to 10 times.

在一些實施例中,於執行步驟S507而以截止容量回報給系統電路140後,處理器130可結束(跳出)容量修正程序。此外,系統電路140於收到處理器130所回報的截止容量後可執行關機作業,以確保電子裝置100是正常關機。 In some embodiments, after executing step S507 and reporting the cut-off capacity to the system circuit 140, the processor 130 may end (jump out) the capacity correction process. In addition, the system circuit 140 can perform a shutdown operation after receiving the cut-off capacity reported by the processor 130 to ensure that the electronic device 100 is shut down normally.

於步驟S506中判定電池電壓VB高於電壓閾值時,處理器130則接續判斷新的修正容量NC是否低於一容量閾值(步驟S508)。在一些實施態樣中,所述的容量閾值可為但不限於1%或3%。當判定新的修正容量NC非低於容量閾值時,處理器130會執行步驟S502,以回報此修正容量NC給系統電路140。而當判定新的修正容量NC低於容量閾值時,處理器130會改以一預設容量來回報給系統電路140,以致電子裝置100可維持運作而不關機(步驟S509)。在一些實施態樣中,所述的預設容量可為1%、3%或其他任何適於使電子裝置100維持運作而不關機的最小容量。 When it is determined in step S506 that the battery voltage VB is higher than the voltage threshold, the processor 130 then determines whether the new corrected capacity NC is lower than a capacity threshold (step S508). In some implementations, the capacity threshold may be, but is not limited to, 1% or 3%. When it is determined that the new corrected capacity NC is not lower than the capacity threshold, the processor 130 will execute step S502 to report the corrected capacity NC to the system circuit 140 . When it is determined that the new corrected capacity NC is lower than the capacity threshold, the processor 130 will change a preset capacity to report to the system circuit 140 so that the electronic device 100 can maintain operation without shutting down (step S509). In some implementations, the preset capacity may be 1%, 3%, or any other minimum capacity suitable for allowing the electronic device 100 to maintain operation without shutting down.

圖5為部份的容量修正程序之一實施例的流程示意圖。請參閱圖1至圖5。在容量修正程序之一實施例中,處理器130更可自儲存單元150中依序讀取剩餘容量C1-CX(步驟S510)。在步驟S510之一實施例中,處理器130是接續步驟S10之讀取順序來讀取下一個剩餘容量,例如剩餘容量C9。於步驟S510中自儲存單元150讀取到一剩餘容量後,處理器130會判斷當筆的剩餘容量是否等於一截止容量(步驟S511)。在一些實施態樣中,所述截止容量可例如但不限於為0%。 FIG. 5 is a schematic flowchart of part of an embodiment of the capacity correction process. See Figure 1 to Figure 5. In one embodiment of the capacity modification procedure, the processor 130 may further sequentially read the remaining capacities C1-CX from the storage unit 150 (step S510). In one embodiment of step S510, the processor 130 continues the reading sequence of step S10 to read the next remaining capacity, such as the remaining capacity C9. After reading a remaining capacity from the storage unit 150 in step S510, the processor 130 determines whether the remaining capacity of the current pen is equal to a cut-off capacity (step S511). In some implementations, the cutoff capacity may be, for example, but not limited to, 0%.

當處理器130在步驟S511中判定當筆的剩餘容量不等於截止容量時,處理器130會返回執行步驟S510以讀取下一個剩餘容量。而當處理器130在步驟S511中判定當筆的剩餘容量,例如剩餘容量C20等於截止容量時,處理器130則會進一步確認前一筆的剩餘容量,即剩餘容量C19,是否為一虛容量(步驟S512)。在一些實施例中,虛容量是處理器130在偵測到電池計120突然未輸出剩餘容量時(例如,因使用者更換電池110)所自行產生並記錄到儲存單元150的一容量值。在一些實施態樣中,虛容量可例如為100%,但本發明並非以為限,虛容量可為任何用以避免電子裝置100瞬間斷電的容量數值。 When the processor 130 determines in step S511 that the remaining capacity of the pen is not equal to the cut-off capacity, the processor 130 returns to step S510 to read the next remaining capacity. When the processor 130 determines in step S511 that the remaining capacity of the pen, for example, the remaining capacity C20 is equal to the cut-off capacity, the processor 130 will further confirm whether the remaining capacity of the previous pen, that is, the remaining capacity C19, is a virtual capacity (step S511 ). S512). In some embodiments, the virtual capacity is a capacity value generated by the processor 130 and recorded in the storage unit 150 when it detects that the battery meter 120 suddenly fails to output the remaining capacity (for example, because the user replaces the battery 110). In some implementations, the virtual capacity may be, for example, 100%, but the present invention is not limited thereto. The virtual capacity may be any capacity value used to prevent the electronic device 100 from instantaneously powering off.

當處理器130在步驟S512中判定前一筆的剩餘容量C19不為虛容量時,處理器130可返回執行步驟S510以讀取下一個剩餘容量。而當處理器130在步驟S512中判定前一筆的剩餘容量C19為虛容量時,表示電池110已發生過跳趴之情況且已更換成另一個電池,此時處理器130會讀取電池計120當前輸出的電池電壓VB,以確認電池電壓VB是否高於電壓閾值(步驟S513)。 When the processor 130 determines in step S512 that the previous remaining capacity C19 is not a virtual capacity, the processor 130 may return to step S510 to read the next remaining capacity. When the processor 130 determines that the previous remaining capacity C19 is a virtual capacity in step S512, it means that the battery 110 has experienced a jump and has been replaced with another battery. At this time, the processor 130 will read the battery meter 120. The currently output battery voltage VB is used to confirm whether the battery voltage VB is higher than the voltage threshold (step S513).

當處理器130於步驟S513中判定電池電壓VB非高於電壓閾值時,表示新換的電池110確實無電力可提供給電子裝置100使用(即,使用者更換到了一個沒電的電池110),因此處理器130會以一截止容量回報給系統電路140(步驟S514)。 When the processor 130 determines in step S513 that the battery voltage VB is not higher than the voltage threshold, it means that the newly replaced battery 110 indeed has no power to provide the electronic device 100 (that is, the user has replaced a dead battery 110). Therefore, the processor 130 will report a cut-off capacity to the system circuit 140 (step S514).

而當處理器130於步驟S513中判定電池電壓VB高於電壓閾值時,表示新換的電池110中仍有剩餘的電力,因此處理器130會以一預設容量回報給系統電路140,以致電子裝置100可維持運作而不關機(步驟 S515)。在一些實施態樣中,所述的預設容量可為1%、3%或其他任何適於使電子裝置100維持運作而不關機的最小容量。 When the processor 130 determines that the battery voltage VB is higher than the voltage threshold in step S513, it means that there is still remaining power in the newly replaced battery 110, so the processor 130 will report a preset capacity to the system circuit 140, so that the electronic The device 100 can remain operational without shutting down (step S515). In some implementations, the preset capacity may be 1%, 3%, or any other minimum capacity suitable for allowing the electronic device 100 to maintain operation without shutting down.

在一些實施例中,於執行步驟S515後,處理器130會返回執行步驟S513,以再次確認當前的電池電壓VB是否仍高於電壓閾值。直至處理器130在步驟S513中判定電池電壓VB非高於電壓閾值時,表示新換之電池110所剩餘的電力已用盡,此時處理器130便會執行步驟S514而改以截止容量回報給系統電路140。 In some embodiments, after performing step S515, the processor 130 will return to step S513 to confirm again whether the current battery voltage VB is still higher than the voltage threshold. Until the processor 130 determines in step S513 that the battery voltage VB is not higher than the voltage threshold, it means that the remaining power of the newly replaced battery 110 has been exhausted. At this time, the processor 130 will execute step S514 and report the cut-off capacity to System circuit 140.

在一些實施例中,處理器130是在連續記錄到電池電壓VB非高於電壓閾值的次數達到一預定次數後才執行步驟S514。而於電池電壓VB非高於電壓閾值的次數尚未達到預定次數時,處理器130可返回執行步驟S513,以重複確認電池電壓VB是否非高於電壓閾值。在一些實施態樣中,所述截止容量可例如但不限於為0%。此外,所述的預定次數可為但不限於10次。 In some embodiments, the processor 130 performs step S514 after the number of times that the battery voltage VB is continuously recorded to be not higher than the voltage threshold reaches a predetermined number of times. When the number of times that the battery voltage VB is not higher than the voltage threshold has not reached the predetermined number of times, the processor 130 can return to step S513 to repeatedly confirm whether the battery voltage VB is not higher than the voltage threshold. In some implementations, the cutoff capacity may be, for example, but not limited to, 0%. In addition, the predetermined number of times may be but is not limited to 10 times.

在一些實施例中,於執行步驟S514而以截止容量回報給系統電路140後,處理器130可結束(跳出)容量修正程序。此外,系統電路140於收到處理器130所回報的截止容量後可執行關機作業,以確保電子裝置100是正常關機。 In some embodiments, after performing step S514 and reporting the cut-off capacity to the system circuit 140, the processor 130 may end (jump out) the capacity correction process. In addition, the system circuit 140 can perform a shutdown operation after receiving the cut-off capacity reported by the processor 130 to ensure that the electronic device 100 is shut down normally.

在一些實施例中,於進入步驟S513之判斷時,處理器130便不會再執行回報修正容量NC給系統電路140的相關步驟(即,步驟S501~S509)。 In some embodiments, when entering the judgment of step S513, the processor 130 will no longer perform the related steps of reporting the correction capacity NC to the system circuit 140 (ie, steps S501 to S509).

在一些實施例中,如圖1所示,電子裝置100更包含一電源連接埠160,且電源連接埠160耦接於電池110與處理器130。電源連接埠 160用以和相應的電源接頭相接,以透過電源接頭接收一電源輸入AC。於此,所述的電源接頭可透過插拔之方式與電源連接埠160相接或分離。在一些實施態樣中,所述的電源輸入AC可為市電。 In some embodiments, as shown in FIG. 1 , the electronic device 100 further includes a power connection port 160 , and the power connection port 160 is coupled to the battery 110 and the processor 130 . power port 160 is used to connect with the corresponding power connector to receive a power input AC through the power connector. Here, the power connector can be connected to or separated from the power connection port 160 by plugging or unplugging. In some implementations, the power input AC may be commercial power.

圖6為部份的容量修正程序之一實施例的流程示意圖。請參閱圖1至圖6。在容量修正程序之一實施例中,處理器130可更偵測電源連接埠160是否接收到電源輸入AC(步驟S516)。當偵測到電源連接埠160接收到電源輸入AC時,表示電子裝置100此時可直接運用電源輸入AC來運作而不需要耗費到電池110之電力,因此,處理器130會停止計數(即,中斷步驟S503之執行),並維持當前回報的修正容量之數值以及步驟S503之計數值(步驟S517)。需注意的是,電池110於此並不會運用電源輸入AC來進行充電(因電池溫度TB低於溫度閾值)。 FIG. 6 is a schematic flowchart of an embodiment of part of the capacity correction procedure. See Figure 1 to Figure 6. In one embodiment of the capacity modification process, the processor 130 may further detect whether the power connection port 160 receives the power input AC (step S516). When it is detected that the power connection port 160 receives the power input AC, it means that the electronic device 100 can directly use the power input AC to operate without consuming power from the battery 110. Therefore, the processor 130 will stop counting (i.e., Interrupt the execution of step S503), and maintain the value of the currently reported correction capacity and the count value of step S503 (step S517). It should be noted that the battery 110 does not use the power input AC for charging (because the battery temperature TB is lower than the temperature threshold).

於停止計數後,處理器130可返回執行步驟S516,以再次確認電源連接埠160是否仍接收到電源輸入AC。當處理器130是在執行步驟S517而停止計數之後偵測到電源連接埠160已無接收到電源輸入AC時,處理器130會返回執行步驟S503以接續先前的計數值開始計數。 After stopping counting, the processor 130 can return to step S516 to confirm again whether the power connection port 160 still receives the power input AC. When the processor 130 detects that the power connection port 160 has not received the power input AC after stopping counting in step S517, the processor 130 will return to step S503 to continue counting from the previous count value.

在一些實施例中,電子裝置100的電池110的數量可不只一個,並且電池計120之數量可對應於電池110的數量。而本案任一實施例之電池容量回報方法亦可適用於電池110之數量不為一個的電子裝置100(即,多電池架構的電子裝置100)。在多電池架構中,電子裝置100的處理器130會針對各電池110分別執行本案任一實施例之電池容量回報方法。圖7為部份的容量修正程序之一實施例的流程示意圖。請參閱圖1至圖7。 In some embodiments, the electronic device 100 may have more than one battery 110 , and the number of battery meters 120 may correspond to the number of batteries 110 . The battery capacity reporting method of any embodiment of this case can also be applied to an electronic device 100 with more than one battery 110 (that is, an electronic device 100 with a multi-battery architecture). In a multi-battery architecture, the processor 130 of the electronic device 100 will separately execute the battery capacity reporting method of any embodiment of the present application for each battery 110 . FIG. 7 is a schematic flowchart of an embodiment of part of the capacity correction procedure. See Figure 1 to Figure 7.

在多電池架構中,電子裝置100會是由當前之剩餘容量較高的電池110來進行供電而其餘電池110不供電。因此,在適用於多電池架構之電子裝置100的電池容量回報方法之一實施例中,處理器130在容量修正程序中更會對各電池110進行偵測,以分別確認各電池是否正在供電(放電)給電子裝置100(步驟S518)。在各電池110之偵測中,若偵測到電池110不供電給電子裝置100時(表示此電池110之當前的剩餘容量並非為最高的),處理器130會停止針對此電池110的計數(即,中斷對於此電池110所執行的步驟S503),並維持針對此電池110之當前回報的修正容量NC之數值以及步驟S503之計數值(步驟S519)。直至偵測到此電池110恢復供電給電子裝置100時(表示此電池110之當前的剩餘容量為最高的),處理器130才恢復針對此電池110的步驟S503之執行,以接續先前的計數值來開始計數。 In a multi-battery architecture, the electronic device 100 will be powered by the battery 110 with a higher current remaining capacity, while the other batteries 110 will not provide power. Therefore, in one embodiment of the battery capacity reporting method suitable for the electronic device 100 with a multi-battery architecture, the processor 130 further detects each battery 110 during the capacity correction procedure to separately confirm whether each battery is supplying power ( discharge) to the electronic device 100 (step S518). During the detection of each battery 110, if it is detected that the battery 110 does not provide power to the electronic device 100 (indicating that the current remaining capacity of the battery 110 is not the highest), the processor 130 will stop counting the battery 110 ( That is, step S503) executed for the battery 110 is interrupted, and the value of the currently reported corrected capacity NC and the count value of step S503 for the battery 110 are maintained (step S519). Until it is detected that the battery 110 resumes power supply to the electronic device 100 (indicating that the current remaining capacity of the battery 110 is the highest), the processor 130 resumes the execution of step S503 for the battery 110 to continue the previous count value. to start counting.

以下,以具有二電池110(以下分別稱之為第一電池與第二電池)的電子裝置100為例來進行說明。假設第一電池的當前修正容量NC為80%且第二電池的當前修正容量NC為60%時,會先由第一電池進行供電,且第二電池不供電。此時,針對第一電池,處理器130會計數一第一計數值,並於第一計數值符合第一修正條件(例如,第一計數值等於40的整數倍)時,將當前為80%的修正容量NC扣除固定容量(例如,1%)後再回報新的修正容量NC,即79%給系統電路140。而針對第二電池,處理器130則停止計數,並維持回報當前的修正容量NC,即60%給系統電路140。直至第一電池的當前修正容量NC變成,例如59%而低於第二電池的當前修正容量NC時,則改由第二電池進行供電,且第一電池不供電。此 時,針對第一電池,處理器130會停止計數第一計數值(停止之前的第一計數值不清除),並維持回報當前的修正容量NC,即59%給系統電路140。而針對第二電池,處理器130則會計數一第二計數值,並於第二計數值符合第二修正條件(例如,第二計數值等於40的整數倍)時,將當前為60%的修正容量NC扣除固定容量(例如,1%)後再回報新的修正容量NC,即59%給系統電路140。後續流程可以此類推,故不再贅述。 Hereinafter, the electronic device 100 having two batteries 110 (hereinafter referred to as the first battery and the second battery respectively) will be described as an example. Assume that the current corrected capacity NC of the first battery is 80% and the current corrected capacity NC of the second battery is 60%, the first battery will provide power first, and the second battery will not provide power. At this time, for the first battery, the processor 130 will count a first count value, and when the first count value meets the first correction condition (for example, the first count value is equal to an integer multiple of 40), the current value is 80%. After deducting the fixed capacity (for example, 1%) from the corrected capacity NC, a new corrected capacity NC is returned to the system circuit 140, that is, 79%. For the second battery, the processor 130 stops counting and keeps reporting the current corrected capacity NC, that is, 60%, to the system circuit 140 . Until the current corrected capacity NC of the first battery becomes, for example, 59%, which is lower than the current corrected capacity NC of the second battery, the second battery supplies power instead, and the first battery does not provide power. this When , for the first battery, the processor 130 will stop counting the first count value (the first count value before stopping is not cleared), and keep reporting the current corrected capacity NC, that is, 59%, to the system circuit 140 . For the second battery, the processor 130 will count a second count value, and when the second count value meets the second correction condition (for example, the second count value is equal to an integer multiple of 40), the current value is 60%. The corrected capacity NC deducts the fixed capacity (for example, 1%) and then returns the new corrected capacity NC, that is, 59% to the system circuit 140 . The subsequent process can be deduced in this way, so no details will be given.

在一些實施例中,於容量修正程序中,處理器130可定時(或持續)讀取電池110的電池溫度TB。並且,只要處理器130讀取到電池溫度TB大於溫度閾值時,處理器130便會結束掉容量修正程序,而恢復依據電池計120所產生之剩餘容量R1-RN來回報給系統電路140。 In some embodiments, during the capacity correction procedure, the processor 130 may periodically (or continuously) read the battery temperature TB of the battery 110 . Moreover, as long as the processor 130 reads that the battery temperature TB is greater than the temperature threshold, the processor 130 will end the capacity correction process and restore the remaining capacity R1-RN generated by the battery meter 120 to report to the system circuit 140.

在一些實施例中,本發明任一實施例的電池容量回報方法可由一可讀記錄媒體裝置來實現。此可讀記錄媒體裝置儲存有複數程式碼,以當電子裝置100之處理器130載入並執行複數程式碼後,這些程式碼能致使電子裝置100之處理器130執行本發明任一實施例的電池容量回報方法。在一實施例中,此可讀記錄媒體裝置可為電子裝置100內部的儲存單元150,並且此儲存單元150可更用以儲存進行電池容量回報方法所需的任何數據,例如固定容量、預設容量等。在另一實施例中,此可讀記錄媒體裝置可為遠端儲存元件,並經由有線或無線的方式與電子裝置100之處理器130進行通訊。在又一實施例中,此可讀記錄媒體裝置可為電子裝置100外部的儲存元件,並經由電子裝置100的讀取器或連接器連接並存取此儲存元件的程式碼。 In some embodiments, the battery capacity reporting method of any embodiment of the present invention can be implemented by a readable recording media device. This readable recording media device stores a plurality of program codes, so that when the processor 130 of the electronic device 100 loads and executes the plurality of program codes, these program codes can cause the processor 130 of the electronic device 100 to execute any embodiment of the present invention. Battery capacity reporting method. In one embodiment, the readable recording media device can be the storage unit 150 inside the electronic device 100, and the storage unit 150 can be further used to store any data required for performing the battery capacity reporting method, such as fixed capacity, default Capacity etc. In another embodiment, the readable recording medium device can be a remote storage device and communicates with the processor 130 of the electronic device 100 through wired or wireless means. In another embodiment, the readable recording medium device may be a storage device external to the electronic device 100, and the program code of the storage device is connected and accessed through a reader or connector of the electronic device 100.

綜上所述,任一實施例之電子裝置100及電池容量回報方法,其在電池演算法因於低溫下不敷使用而致使電池110的容量的顯示(或回報)發生異常跳趴時,透過執行容量修正程序來產生並回報修正容量NC給系統電路140,以致電子裝置100的供電時間得以維持正常而不會因異常跳趴而縮短。此外,根據任一實施例之電池容量回報方法所實現的電子裝置100可根據修正容量NC來顯示電池110的容量給使用者,故使用者將不會看到電池110的容量亂跳,進而可提升使用者體驗。 In summary, the electronic device 100 and the battery capacity reporting method of any embodiment, when the battery algorithm is insufficient for use at low temperatures and causes the display (or reporting) of the capacity of the battery 110 to jump abnormally, through The capacity correction program is executed to generate and report the corrected capacity NC to the system circuit 140 so that the power supply time of the electronic device 100 can be maintained normally and will not be shortened due to abnormal jumps. In addition, the electronic device 100 implemented according to the battery capacity reporting method of any embodiment can display the capacity of the battery 110 to the user according to the corrected capacity NC, so the user will not see the capacity of the battery 110 jumping randomly, and can further Improve user experience.

雖然本發明的技術內容已經以較佳實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神所作些許之更動與潤飾,皆應涵蓋於本發明的範疇內,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the technical content of the present invention has been disclosed above in the form of preferred embodiments, it is not intended to limit the present invention. Any slight changes and modifications made by anyone skilled in the art without departing from the spirit of the present invention should be covered by the present invention. Within the scope of the present invention, the protection scope of the present invention shall be subject to the scope of the appended patent application.

S10~S60:步驟 S10~S60: steps

Claims (16)

一種電子裝置,包含:一電池,用以供電給該電子裝置;一電池計,用以計量該電池,以產生該電池的複數剩餘容量、一電池溫度與一電池電壓;及一處理器,用以依序讀取該些剩餘容量,於讀取到該剩餘容量等於一截止容量且前一筆的該剩餘容量大於一預設容量時,該處理器根據該電池溫度與該電池電壓確認是否滿足一預設條件,其中該預設條件為該電池溫度低於一溫度閾值且該電池電壓高於一電壓閾值,當確認滿足該預設條件時,該處理器執行一容量修正程序;其中,該容量修正程序包含:以該前一筆的該剩餘容量作為一修正容量;以及回報該修正容量給一系統電路。 An electronic device includes: a battery for powering the electronic device; a battery meter for measuring the battery to generate a plurality of remaining capacities of the battery, a battery temperature and a battery voltage; and a processor for The remaining capacities are read sequentially. When it is read that the remaining capacity is equal to a cut-off capacity and the remaining capacity of the previous item is greater than a preset capacity, the processor confirms whether a certain requirement is met based on the battery temperature and the battery voltage. Preset conditions, wherein the preset condition is that the battery temperature is lower than a temperature threshold and the battery voltage is higher than a voltage threshold. When it is confirmed that the preset condition is met, the processor executes a capacity correction program; wherein, the capacity The correction procedure includes: using the remaining capacity of the previous transaction as a correction capacity; and reporting the correction capacity to a system circuit. 如請求項1所述的電子裝置,其中於確認不滿足該預設條件時、於讀取到該剩餘容量不等於該截止容量時或於讀取到該剩餘容量等於該截止容量且該前一筆的該剩餘容量小於或等於該預設容量時,該處理器回報當筆的該剩餘容量給該系統電路。 The electronic device as described in claim 1, wherein when it is confirmed that the preset condition is not met, when it is read that the remaining capacity is not equal to the cut-off capacity, or when it is read that the remaining capacity is equal to the cut-off capacity and the previous When the remaining capacity is less than or equal to the preset capacity, the processor reports the remaining capacity of the pen to the system circuit. 如請求項1所述的電子裝置,其中該容量修正程序更包含:於回報該修正容量給該系統電路之步驟後,開始計數一計數值;及於該計數值達到一修正條件時,以該修正容量扣除一固定容量後作為新的該修正容量,並返回執行回報該修正容量給該系統電路之步驟。 The electronic device as described in claim 1, wherein the capacity correction procedure further includes: after reporting the corrected capacity to the system circuit, starting to count a count value; and when the count value reaches a correction condition, The corrected capacity is deducted from a fixed capacity as the new corrected capacity, and the step of reporting the corrected capacity to the system circuit is returned to the execution. 如請求項3所述的電子裝置,其中該容量修正程序更包含:於得到該新的該修正容量後判斷該電池電壓是否高於該電壓閾值;於判定該電池電壓高於該電壓閾值時,判斷該新的該修正容量是否低於一容量閾值;於判定該新的該修正容量非低於該容量閾值時,執行回報該修正容量給該系統電路之步驟;於判定該新的該修正容量低於該容量閾值時,以該預設容量回報給該系統電路;及於判定該電池電壓非高於該電壓閾值時,以該截止容量回報給該系統電路。 The electronic device as claimed in claim 3, wherein the capacity correction program further includes: after obtaining the new corrected capacity, determining whether the battery voltage is higher than the voltage threshold; when determining that the battery voltage is higher than the voltage threshold, Determine whether the new corrected capacity is lower than a capacity threshold; when it is judged that the new corrected capacity is not lower than the capacity threshold, perform the step of reporting the corrected capacity to the system circuit; when determining the new corrected capacity When it is lower than the capacity threshold, the preset capacity is used to report to the system circuit; and when it is determined that the battery voltage is not higher than the voltage threshold, the cut-off capacity is reported to the system circuit. 如請求項1所述的電子裝置,其中該容量修正程序更包含:依序讀取該些剩餘容量;於讀取到該剩餘容量為該截止容量且前一筆的該剩餘容量為一虛容量時,判斷該電池電壓是否高於該電壓閾值;於判定該電池電壓非高於該電壓閾值時,以該截止容量回報給該系統電路;及於判定該電池電壓高於該電壓閾值時,以該預設容量回報給該系統電路,並返回判斷該電池電壓是否高於該電壓閾值之步驟。 The electronic device as described in claim 1, wherein the capacity correction program further includes: sequentially reading the remaining capacities; when it is read that the remaining capacity is the cut-off capacity and the previous remaining capacity is a virtual capacity. , determine whether the battery voltage is higher than the voltage threshold; when it is determined that the battery voltage is not higher than the voltage threshold, the cut-off capacity is reported to the system circuit; and when it is determined that the battery voltage is higher than the voltage threshold, the The preset capacity is reported to the system circuit, and the step of determining whether the battery voltage is higher than the voltage threshold is returned. 如請求項4或5所述的電子裝置,其中以該截止容量回報給該系統電路之步驟係於連續記錄到該電池電壓非高於該電壓閾值之次數達到一預定次數後執行。 The electronic device as claimed in claim 4 or 5, wherein the step of reporting the cut-off capacity to the system circuit is executed after the number of times that the battery voltage is continuously recorded to be not higher than the voltage threshold reaches a predetermined number of times. 如請求項3所述的電子裝置,更包含:一電源連接埠,耦接於該電池,並用以接收一電源輸入;其中,該處理器更用以偵測該電源連接埠是否接收到該電源輸入;及其中,該容量修正程序更包含:於偵測到該電源連接埠接收到該電源輸入時,停止計數;及於停止計數後偵測到該電源連接埠未接收到該電源輸入時,開始接續計數。 The electronic device as claimed in claim 3, further comprising: a power connection port coupled to the battery and used to receive a power input; wherein the processor is further used to detect whether the power connection port receives the power input; and wherein, the capacity correction procedure further includes: stopping counting when it is detected that the power connection port receives the power input; and when it is detected that the power connection port does not receive the power input after stopping counting, Start counting. 如請求項3所述的電子裝置,其中該容量修正程序更包含:於偵測到該電池不供電給該電子裝置時,停止計數,並維持回報給該系統電路的該修正容量;及於偵測到該電池恢復供電給該電子裝置時,開始接續計數。 The electronic device as described in claim 3, wherein the capacity correction procedure further includes: when detecting that the battery is not supplying power to the electronic device, stopping counting and maintaining the corrected capacity reported to the system circuit; and When it is detected that the battery resumes power supply to the electronic device, the counting starts. 一種電池容量回報方法,包含:依序讀取一電池計計量一電池所產生的複數剩餘容量;於讀取到該剩餘容量等於一截止容量且前一筆的該剩餘容量大於一預設容量時,根據該電池的一電池溫度與一電池電壓確認是否滿足一預設條件,其中該預設條件為該電池溫度低於一溫度閾值且該電池電壓高於一電壓閾值;及當確認滿足該預設條件時,執行一容量修正程序; 其中,該容量修正程序包含:以該前一筆的該剩餘容量作為一修正容量;以及回報該修正容量給一系統電路。 A battery capacity reporting method includes: sequentially reading a battery meter to measure a plurality of remaining capacities generated by a battery; when reading that the remaining capacity is equal to a cut-off capacity and the previous remaining capacity is greater than a preset capacity, Confirm whether a preset condition is met based on a battery temperature and a battery voltage of the battery, wherein the preset condition is that the battery temperature is lower than a temperature threshold and the battery voltage is higher than a voltage threshold; and when it is confirmed that the preset condition is met When conditions are met, execute a capacity correction procedure; Wherein, the capacity correction procedure includes: using the remaining capacity of the previous transaction as a correction capacity; and reporting the correction capacity to a system circuit. 如請求項9所述的電池容量回報方法,更包含:於確認不滿足該預設條件時、於讀取到該剩餘容量不等於該截止容量時或於讀取到該剩餘容量等於該截止容量且該前一筆的該剩餘容量小於或等於該預設容量時,回報當筆的該剩餘容量給該系統電路。 The battery capacity reporting method as described in claim 9 further includes: when it is confirmed that the preset condition is not met, when it is read that the remaining capacity is not equal to the cut-off capacity, or when it is read that the remaining capacity is equal to the cut-off capacity. And when the remaining capacity of the previous pen is less than or equal to the preset capacity, the remaining capacity of the current pen is reported to the system circuit. 如請求項9所述的電池容量回報方法,其中該容量修正程序更包含:於回報該修正容量給該系統電路之步驟後,開始計數一計數值;及於該計數值達到一修正條件時,以該修正容量扣除一固定容量後作為新的該修正容量,並返回執行回報該修正容量給該系統電路之步驟。 The battery capacity reporting method as described in claim 9, wherein the capacity correction procedure further includes: after reporting the corrected capacity to the system circuit, starting to count a count value; and when the count value reaches a correction condition , deduct a fixed capacity from the corrected capacity as the new corrected capacity, and return to the step of reporting the corrected capacity to the system circuit. 如請求項11所述的電池容量回報方法,其中該容量修正程序更包含:於得到該新的該修正容量後判斷該電池電壓是否高於該電壓閾值;於判定該電池電壓高於該電壓閾值時,判斷該新的該修正容量是否低於一容量閾值;於判定該新的該修正容量非低於該容量閾值時,執行回報該修正容量給該系統電路之步驟;於判定該新的該修正容量低於該容量閾值時,以該預設容量回報給該系統電路;及 於判定該電池電壓非高於該電壓閾值時,以該截止容量回報給該系統電路。 The battery capacity reporting method as described in claim 11, wherein the capacity correction procedure further includes: determining whether the battery voltage is higher than the voltage threshold after obtaining the new corrected capacity; determining whether the battery voltage is higher than the voltage threshold. When determining whether the new corrected capacity is lower than a capacity threshold; when determining whether the new corrected capacity is not lower than the capacity threshold, perform the step of reporting the corrected capacity to the system circuit; when determining whether the new corrected capacity is not lower than the capacity threshold; When the corrected capacity is lower than the capacity threshold, the default capacity is reported to the system circuit; and When it is determined that the battery voltage is not higher than the voltage threshold, the cut-off capacity is reported to the system circuit. 如請求項9所述的電池容量回報方法,其中該容量修正程序更包含:依序讀取該些剩餘容量;於讀取到該剩餘容量為該截止容量且前一筆的該剩餘容量為一虛容量時,判斷該電池電壓是否高於該電壓閾值;於判定該電池電壓非高於該電壓閾值時,以該截止容量回報給該系統電路;及於判定該電池電壓高於該電壓閾值時,以該預設容量回報給該系統電路,並返回判斷該電池電壓是否高於該電壓閾值之步驟。 The battery capacity reporting method as described in claim 9, wherein the capacity correction procedure further includes: sequentially reading the remaining capacities; after reading that the remaining capacity is the cut-off capacity and the previous remaining capacity is a virtual capacity, determine whether the battery voltage is higher than the voltage threshold; when determining that the battery voltage is not higher than the voltage threshold, report the cut-off capacity to the system circuit; and when determining that the battery voltage is higher than the voltage threshold, The preset capacity is reported to the system circuit, and the step of determining whether the battery voltage is higher than the voltage threshold is returned. 如請求項12或13所述的電池容量回報方法,其中以該截止容量回報給該系統電路之步驟係於連續記錄到該電池電壓非高於該電壓閾值之次數達到一預定次數後執行。 The battery capacity reporting method as described in claim 12 or 13, wherein the step of reporting the cut-off capacity to the system circuit is executed after the number of times that the battery voltage is continuously recorded to be not higher than the voltage threshold reaches a predetermined number of times. 如請求項11所述的電池容量回報方法,其中該容量修正程序更包含:偵測一電源連接埠是否接收到一電源輸入;於偵測到該電源連接埠接收到該電源輸入時,停止計數;及於停止計數後偵測到該電源連接埠未接收到該電源輸入時,開始接續計數。 The battery capacity reporting method as described in claim 11, wherein the capacity correction procedure further includes: detecting whether a power connection port receives a power input; and stopping counting when detecting that the power connection port receives the power input. ; And after stopping counting and detecting that the power connection port does not receive the power input, start counting again. 如請求項11所述的電池容量回報方法,其中該容量修正程序更包含: 於偵測到該電池不供電時,停止計數,並維持回報給該系統電路的該修正容量;及於偵測到該電池恢復供電時,開始接續計數。 The battery capacity reporting method as described in claim 11, wherein the capacity correction procedure further includes: When it is detected that the battery is not supplying power, the counting is stopped and the correction capacity reported to the system circuit is maintained; and when it is detected that the battery is restoring power, counting is started.
TW111146041A 2022-11-30 2022-11-30 Electronic device and reporting method of battery capacity TWI821056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111146041A TWI821056B (en) 2022-11-30 2022-11-30 Electronic device and reporting method of battery capacity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111146041A TWI821056B (en) 2022-11-30 2022-11-30 Electronic device and reporting method of battery capacity

Publications (1)

Publication Number Publication Date
TWI821056B true TWI821056B (en) 2023-11-01

Family

ID=89722460

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111146041A TWI821056B (en) 2022-11-30 2022-11-30 Electronic device and reporting method of battery capacity

Country Status (1)

Country Link
TW (1) TWI821056B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW297098B (en) * 1994-06-28 1997-02-01 Ind Tech Res Inst Method of detecting battery residual electricity and device thereof
CN109061497A (en) * 2018-08-10 2018-12-21 深圳芯智汇科技有限公司 A kind of battery dump energy metering system and method
CN112924866A (en) * 2021-01-25 2021-06-08 广州橙行智动汽车科技有限公司 Capacity conservation rate detection method, capacity conservation rate detection device, vehicle and storage medium
CN113359044A (en) * 2020-03-03 2021-09-07 鹤壁天海电子信息系统有限公司 Method, device and equipment for measuring residual capacity of battery
US20220131392A1 (en) * 2019-02-25 2022-04-28 Semiconductor Energy Laboratory Co., Ltd. Protection circuit for secondary battery and abnormality detection system of secondary battery
CN114545266A (en) * 2022-03-07 2022-05-27 西安恩狄集成电路有限公司 Lithium battery residual electric quantity measuring method and system based on improved model predictive control and electric quantity meter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW297098B (en) * 1994-06-28 1997-02-01 Ind Tech Res Inst Method of detecting battery residual electricity and device thereof
CN109061497A (en) * 2018-08-10 2018-12-21 深圳芯智汇科技有限公司 A kind of battery dump energy metering system and method
US20220131392A1 (en) * 2019-02-25 2022-04-28 Semiconductor Energy Laboratory Co., Ltd. Protection circuit for secondary battery and abnormality detection system of secondary battery
CN113359044A (en) * 2020-03-03 2021-09-07 鹤壁天海电子信息系统有限公司 Method, device and equipment for measuring residual capacity of battery
CN112924866A (en) * 2021-01-25 2021-06-08 广州橙行智动汽车科技有限公司 Capacity conservation rate detection method, capacity conservation rate detection device, vehicle and storage medium
CN114545266A (en) * 2022-03-07 2022-05-27 西安恩狄集成电路有限公司 Lithium battery residual electric quantity measuring method and system based on improved model predictive control and electric quantity meter

Similar Documents

Publication Publication Date Title
JP6141678B2 (en) Electric equipment
JP5368038B2 (en) Battery state detection device and battery pack incorporating the same
US7856328B2 (en) Systems, methods and circuits for determining potential battery failure based on a rate of change of internal impedance
JP2008309796A (en) Diagnostic device and diagnostic method for battery
JP4846829B2 (en) Information processing apparatus and battery deterioration detection method
EP2939320A1 (en) System and method for monitoring a battery in an uninterruptible power supply
CN103901347A (en) Method for display of battery level and terminal
JP4372470B2 (en) Battery diagnostic device and diagnostic method
EP2887085B1 (en) Method and apparatus for indicating a low battery level
KR101692627B1 (en) Battery cell characteristic identification
JP2009064682A (en) Battery deterioration judging device, and lithium ion battery pack equipped with the same
CN111521945B (en) Battery health state detection method and device, electronic equipment and storage medium
US9933488B2 (en) Open circuit voltage checking for a battery system
JP5031231B2 (en) Discharge time calculation device and discharge time calculation method
TWI821056B (en) Electronic device and reporting method of battery capacity
JP2012135165A (en) Lifetime detection device for battery, and lifetime detection method for battery
CN111273181A (en) Battery backup unit monitoring method and device, server and readable storage medium
EP4379406A1 (en) Electronic device and battery capacity reporting method
JP6483752B2 (en) Equipment for electric equipment
US20220285957A1 (en) Cell Fault Detection in Batteries with Parallel Cells
JP2003151645A (en) Battery residual power detecting method and electric apparatus
CN110875610A (en) Electronic equipment power supply method and device, electronic equipment and storage medium
CN112946562B (en) Power failure protection method and device for double-core intelligent electric meter and double-core intelligent electric meter
TW202145673A (en) Smart battery device
JP3993720B2 (en) Rechargeable battery or rechargeable battery pack