1262382 九、發明說明: 【發明所屬之技術領域】 本發明是有關於-種電池模擬裝置,特別是指—種智 慧型電池(Smart Battery)模擬裝置。 曰 【先前技術】 對於筆記型電腦等行動裝置而言,由於其具有可p ::專源的情況下,整台行動裝置就靠其所安裝 +用電池來提供電力,所以維持電池電源持續且穩定的 電力供應對整個行動裝置的運作而言非常重要。 、 以筆記型電腦為例’其所使用的電池為智慧型電池。 2用智慧型電池的優點是其可提供電池目前的剩餘電量資 :^透過電腦主機與電池間的匯流排傳給電腦主機中的 系統處理I元(System CPU),藉以告訴電腦主機目 餘的電量。如此,系統處理單 刖。、/剩 電詈資料忠^ &早7^就可以根據所得到的剩餘 貝科束執行電源管理的工作,並根據電池的剩餘電旦 電力運作做最有效率的調控。例如,如 來對電腦主機;:=讀=其它電腦周邊輸出/輪入元件 單元合依= ]經過一段時間之後’系統處理 它電=:Γ統預先的設定而關閉顯示器、硬碟或其 :;r:的運作以節省電力。或者,當電池的剩餘電量 面的党度,以減少電力的損耗,並且提供馨广:旦 使用者电池需要充電。甚至在 可將資料儲在世、 电里嚴Ϊ不足時 子到更碟裡,並強制關閉整個系統。 5 1262382 在筆記型電腦等行動褒置中,讀取智慧型電池的電量 資料的工作是由-嵌人式控制單元(Embedded c贈^, EC)來負責。嵌入式控制單元會讀取當時智慧型電池的剩餘 電量資料。筆記型電腦在運作時,作業系統會定期地控制 糸統處理單元啤叫嵌入式控制單元。在收到系統處理單元 的指令之後,嵌入式控制單元便會去讀取當時智慧型電池 2剩餘電量資料,、再將之提供Μ統處理單元。系統處理 早元在收到甘入入式控制單元所饋入的剩餘電量資料之後 =根據當時智慧型電池的剩餘電量的多寡來執行電源管 埋的工作。 因此’有必要對行動裝置之嵌入式控制單 功^則試,以驗證行動裝置之嵌入式控制單元之功能是否 否二一種用來測試行動裝置之後入式控制單元之功1262382 IX. Description of the Invention: [Technical Field of the Invention] The present invention relates to a battery simulation device, and more particularly to a smart battery simulation device.曰[Prior Art] For a mobile device such as a notebook computer, since it has a p::special source, the entire mobile device is powered by the battery installed and used, so the battery power is maintained continuously. A stable power supply is very important to the operation of the entire mobile device. Take a notebook computer as an example. The battery used is a smart battery. 2 The advantage of using smart battery is that it can provide the current remaining power of the battery: ^ Through the bus between the host computer and the battery to the system in the computer to process the I (System CPU), in order to tell the computer host Electricity. In this way, the system processes the unit. / / Remaining power information ^ & early 7 ^ can be based on the remaining Beca bundle to perform power management work, and according to the battery's remaining power of the power operation to do the most efficient regulation. For example, if it comes to the computer host;:=Read=Other computer peripheral output/wheeling component unit y == After a period of time 'the system handles it == Γ system pre-set to turn off the display, hard disk or its: r: operates to save power. Or, when the battery's remaining power is in the party's degree, to reduce the power loss, and provide Xinguang: once the user's battery needs to be charged. Even when the data can be stored in the world, the electricity is severely inadequate, and the system is forced to shut down the entire system. 5 1262382 In the action device such as a notebook computer, the work of reading the power data of the smart battery is handled by the embedded control unit (Embedded c, ^ EC). The embedded control unit reads the remaining battery data of the smart battery at that time. When the notebook is in operation, the operating system periodically controls the processing unit to call the embedded control unit. After receiving the instruction of the system processing unit, the embedded control unit will read the remaining battery data of the smart battery 2 at that time, and then provide it to the processing unit. System processing After receiving the remaining power data fed by the input control unit, the system performs the power pipe burying according to the amount of remaining power of the smart battery at that time. Therefore, it is necessary to test the embedded control of the mobile device to verify whether the function of the embedded control unit of the mobile device is used to test the function of the incoming control unit after the mobile device.
Cl::之方式為,直接利用真實智慧型電池來測試: 勤衣置之嵌入式控制I - 丁 間過具η 早70,然而由於真實電池的充放電時 4匕長’因此此種測士、4* Θ > 守 方法具有測試時間過長之缺點。戶斤 以,有必要尋求解決之道。 所 【發明内容】 因此,本發明之 裝置,^田、^ 的,即在提供一種智慧型電池模播 "〇以改變行動裝置之充放電電流,且可缩短、 及偵錯時間。 迅飢 1了縮紐測試 於是,本發明知輕 嵌入式控制單元之:二型電池模擬裝置電連接至-包括- 部電源,且用以模;:$置及一用以提供充放電電流之外 、擬—真實智慧型電池,並驗證該行動裝 6 1262382 置之嵌入式控制單元之功能是否 模擬裝置包含__ n卢ί¥ „ ,、中該冬慧型電池 ^ 早元、一按鍵輪入單元,及-負載/ 黾源切換電路。g | σσ _ 、 式"… 以處理早-電連接至該行動襄置之嵌入 Λ控制早兀。該按鍵輸入 平兀是運接至该微處理單元,且 源士 ^一电池特性模擬資料至該微處理單元。該負載/電 :、刀、電路電連接至該微處理單元及該行動裝置之嵌入式 ^切μ 電與充電模式間自動切換。當該負載/ 山換電路切換為放電模式時’一放電電流自該行動裝 式控制單元流向該負載/電源切換電路,藉以模擬 ::貫智慧型電池之放電模式。當該負載/電源切換電路切 、為充電模式時,-由該外部電源所提供之充電電流流經 則載/電源切換電路而至該行動裝置之嵌人式控制單元, 藉以模擬該真實智慧型電池之充電模式。 【實施方式】 有關本發明之前述及其他技術内容、特點與功效,在 以下配合參考圖式之—個較佳實施例的詳細說明中,將可 清楚的呈現。 參閱圖1及圖2,本發明智慧型電池模擬裝置2之一較 佳實施例電連接至一包括一嵌入式控制單元u之行動裝置 1及一用以提供充放電電流之外部電源4,其中該行動裝置 1例如可為筆記型電腦、行動電話,或個人數位助理 (Personal Digital Assistant,PDA)。該智慧型電池模擬裝置 2可用以模擬一真實智慧型電池(圖未示)、用以改變行動裝 置1之嵌入式控制單元11之充放電電流,及縮短測試與偵 1262382 Π:。該智慧型電池模擬裝置2藉由與行動裝置1之欲 ===:即可_錯嵌入式控制單…否 口異只冬慧型電池產品之規範。 ϋ亥行動叙置1之嵌入式控制單 F w θ 飞孜制早兀11與智慧型電池模擬 "2間疋以一訊號傳輸介面來進 值趴 ^ ^ _ 个%仃冤連接與電池訊號的 傅輸,其中該訊號傳輸介面例 f 1為糸統官理匯流排 (购讀随卿邮⑽’则叫,但不限於此。 一「主控電腦3與該智慧型電池模擬裝置2之間是以另 成號傳輸介面來進行雷逵接| 同〜 订電連接與一電池特性模擬資料22(見 圖2)的傳輸,其中該另一訊於傳於 札疏得輸;丨面例如可為RS232介 面,但不限於此。至於, 雷汽亡中 m池特性模擬資料22包括電池 電£、充電控制資訊,及溫度控制資訊。 3與智慧型電池模擬裝置2之功用在於,主 工電私3可產生該電池特性模擬資料22並經由rs攻介面 傳送至該智慧型電池模擬岁: “ 果擬破置2,猎以使該智慧型電池模擬 裝置2能模擬一直實智藝 电池褀擬 驗證該行时置經㈣統管理匯流排 動4置1之肷人式控制單元η之功能是否正常。 “本發明智慧型電池模擬裝置2具有兩種操作模式:主 控模式及自動模式。主控模式進行時,是由主 所需模擬之雷池牯^ ^騎 藝型m 經由㈣32介面傳送到智 慧型电池松擬裝置2,透過智慧型電池模擬裝置〇 路的作用模擬出行動裝置1之嵌人式控制單元u所需的: 此主控模式下,主"ΓΛ:」 是否正常。在 控電細3可任意設定一般真實智慧型電 8 1262382 池所不容易達成之條件來反覆進行測試。 、'自動模式則為,當該主控電腦3將該電池特性模擬資 料傳送至該智慧型電池模擬裝置2後,使用者能藉由操 作心丁動裝置i而驗證該嵌人式控制單元u之功能是否正 常。 該=慧型電池模擬裝置2包含一微處理單元2〇、一# 鍵輸入單(21、一負載’電源切換電路Μ、一顯示單元L RS232介面輸入單元25、輸入選擇切換單元%、充電 電流里測單元27,及一計數器28。Cl:: The way is to use the real smart battery to test directly: Diligently placed embedded control I - Ding has η early 70, but due to the charge and discharge of the real battery 4 匕 long 'so this kind of judge , 4* Θ > The method of keeping has the disadvantage of too long test time. It is necessary to seek a solution. SUMMARY OF THE INVENTION Therefore, the apparatus of the present invention, which provides a smart battery mode broadcast, can change the charge and discharge current of the mobile device, and can shorten and debug time. The hunger has been tested by the sinus. Therefore, the sleek embedded control unit of the present invention is electrically connected to the -including-part power supply and used for the modulo; and the volts are used to provide the charge and discharge current. External, pseudo-real-life battery, and verify that the function of the embedded control unit of the mobile device 6 1262382 is simulated. The device contains __ n Lu ί¥ „ , , the middle winter battery ^ early yuan, one button wheel Into the unit, and - load / power switching circuit. g | σσ _, 式 "... to handle the early-electric connection to the action device's embedded Λ control early. The button input 兀 is transported to the micro Processing unit, and source device-characteristic simulation data to the micro-processing unit. The load/electricity, the knife, the circuit are electrically connected to the micro-processing unit, and the embedded device of the mobile device automatically switches between charging mode and charging mode Switching. When the load/mountain circuit is switched to the discharge mode, a discharge current flows from the mobile device control unit to the load/power switching circuit, thereby simulating: a discharge mode of the smart battery. When the load/power source Switching circuit In the charging mode, the charging current provided by the external power source flows through the load/power switching circuit to the embedded control unit of the mobile device, thereby simulating the charging mode of the real smart battery. The above and other technical contents, features and effects of the present invention will be apparent from the following detailed description of the preferred embodiments referring to the drawings. Referring to Figures 1 and 2, the present invention is smart. A preferred embodiment of the battery simulation device 2 is electrically connected to a mobile device 1 including an embedded control unit u and an external power source 4 for providing a charge and discharge current, wherein the mobile device 1 can be, for example, a notebook computer. a mobile phone, or a Personal Digital Assistant (PDA). The smart battery simulation device 2 can be used to simulate a real smart battery (not shown) for changing the charging of the embedded control unit 11 of the mobile device 1. Discharge current, and shorten test and detection 1262382 Π: The smart battery simulation device 2 by means of the mobile device 1 ===: can be _ wrong embedded control Nothing is different from the specifications of the winter-wine battery product. The embedded control unit F w θ of the ϋ 行动 action description 1 孜 孜 兀 与 11 and the smart battery simulation " 2 疋 疋 一 一 一 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋 疋趴 ^ ^ _ % 仃冤 connected and the battery signal of the Fu, where the signal transmission interface example f 1 is the 官 官 官 官 ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( The control computer 3 and the smart battery simulation device 2 are connected by a different number of transmission interfaces for the Thunder connection | the same to the predetermined connection and the transmission of a battery characteristic simulation data 22 (see FIG. 2), wherein the other The news can be lost in the singularity; the face can be, for example, the RS232 interface, but is not limited to this. As for the Thunderbolt m pool characteristic simulation data 22 includes battery power, charging control information, and temperature control information. 3 and the function of the smart battery simulation device 2 is that the main work electricity private 3 can generate the battery characteristic simulation data 22 and transmit it to the smart battery through the rs attack interface simulation year: "If it is planned to be broken 2, hunting to make the The smart battery simulation device 2 can simulate whether the function of the human control unit η is normal when the virtual reality battery is used to verify the line. (4) The management of the flow control device is set to be normal. 2 has two modes of operation: master mode and automatic mode. When the main control mode is carried out, it is transmitted to the smart battery loose device 2 via the (four) 32 interface of the thunder pool ^ ^ ^ riding type m required by the main simulation, and the mobile device 1 is simulated by the function of the smart battery simulation device. Required for embedded control unit u: In this master mode, the main "ΓΛ:" is normal. In the control power fine 3 can be arbitrarily set to the general real intelligent power 8 1262382 pool is not easy to achieve the conditions to test repeatedly. The 'automatic mode' is that after the main control computer 3 transmits the battery characteristic simulation data to the smart battery simulation device 2, the user can verify the embedded control unit u by operating the cardiac device i. Whether the function is normal. The flash type battery simulation device 2 includes a micro processing unit 2〇, a # key input unit (21, a load 'power switching circuit Μ, a display unit L RS232 interface input unit 25, input selection switching unit %, charging current The measuring unit 27 and a counter 28 are provided.
在不心響系統的狀況下,該智慧型電池模擬裝置2能 偵測並控制I统的電流變化並回報給微處理單it 20,使微 處理皁兀20能模擬真實智慧型電池内部之記憶體記錄充放 電電流等數值之功能。In the case of the system, the smart battery simulator 2 can detect and control the current change of the system and return it to the microprocessor unit 20, so that the microprocessor sapon 20 can simulate the memory inside the real smart battery. The function of recording the value of charge and discharge current.
除了上述主控柄式與自動模式中利用RS232介面輸入 單元X將電池特性模擬資料22自主控電腦3輸入至該微 地單元20外利用该智慧型電池模擬裝置2進行測試時 亦可由使用者直接㈣按鍵輸人單元21而將電池特性模擬 資料22輸入至微處理單元2〇中。 在該實施例中,該智慧型電池模擬裝置2之預設輸入 單元為按鍵輸入單A 21。因此’當並無電池特性模擬資料 22透過則2介面輸入單元25被輸入且有電池特性模擬資 料。。22透過按鍵輸人單元21被輸入時,由於該輸入選擇切 換單元26為開啟之預^^態,因此電池特性模擬資料μ 當然會順利地藉由按鍵輸入單元21被輸入至微處理單元2〇 9 1262382 RS232 :有電池特性模擬資料22透過主控電腦3及 之功;=輸:早π 25被輪入時’由於其具有輸入選擇29 力:;因此會藉由微處理單元2。將輸入選擇 元% ^ 月匕丨且隔冋日守間由按鍵輸入單元21所 别之弘池特性模擬資料22,於异+ % 能由RS232介面輸入單元 /电池特性模擬資料μ僅 , ^ 被輸入至微處理單元20 ’而不 月匕由按鍵輸人單元21被輪人至微處理單元2〇。 該計數器28設於該按鍵輸入單元21與微處理單元2〇 將自該按鍵輸人單元21以人4鍵方式輸入之 原始電池特性模擬資料22 之數位資料。 轉-成―單元20可接受 該顯示單元24是用以顯示由該按鍵輸入單元21所輸 二電池特性模擬資料,其中該顯示單元24例如可為一七 段顯不器,然不限於此。 負载/電源切換電路2 3雷彳查拉s 電連接至该楗處理單元2〇及該 =裝置i之嵌入式控制單& u ’且可在放電與充電模式 間自動切換。當該負載/電源切換電路23切換為放電模式( 即負載模式)時,—放電電流自該行動裝置上之欲入式控制 早兀η流向該負載/電源切換電路23,藉以模擬真實智慧 型電池之放電模式。當該負載/電源切換電路23切換為充電 核式(p电源杨式)時’一由該外部電源4所提供之充電電流 餘該負载7電源切換電路23而至該行動裝置i之嵌入式控 制單元1 II以模擬真貫智慧型電池之充電模式。 -亥充電電机里測單兀27能自動量測自該負載/電源切換 10 1262382 電路23流向該行動裝置1之^式控制Mu之實際充電 電流’並將該實際充電電流回饋至該微處理單& 2〇,使得 該負載/電源切換電路23能據以微調所提供之實際充電電流 。然而,該實施例中亦能藉由另-途徑來直接提供嵌入式 控制單it η及微處理單元2G分別所需之充放電電流訊號5 ,以預防當該充放電電流職5與充電電流量測單元η中 任何個無法正^運作而不能提供所需正確數值時可由另 —個負責提供所需數值,且可藉由以適#方式平均二者所 提供之充電電流數值而提高微處理單元2G所獲得之最饮充 電電流數值之正確性。 f納上述,本發明智慧型電池模擬裝置2可用以改變 行動裝m人式控制單元u之充放電電流,且可縮短 測試及偵錯時間。另外,針對不同的真實智慧型電池產品 及對應之订動裝置丨之喪人式控制單A n,本發明之智慧 型電池模擬裝置2只要更改i μ # # — 、贵文汶呉U處理早兀2〇之程式碼即可 使用。 准以上所述者,僅為本發明之較佳實施例而已,者不 ,以此限定本發明實施之範圍,即大凡依本發㈣請^ 祀圍及發明說明内容所作之簡單㈣效變化與修飾 屬本發明專利涵蓋之範圍内。 【圖式簡單說明】 一 —q曰思尘电池模擷 電連接至-行動裝置工之嵌入式控制單元 地連接至一主控電腦3;及 及、擇 11 1262382 圖2是一類似圖1之系統架構圖,但更說明了本發明 智慧型電池模擬裝置2之一較佳實施例中之功能性方塊。 12 1262382 【主要元件符號說明】 1 … • 行動裝置 11 * * • 嵌入式控制單元 26* · · 輸入選擇切換單 2 * · * 智慧型電池模擬 元 裝置 1Ί ·… 充電電流量測單 20.. • 微處理單元 元 21 · · * 按鍵輸入單元 28*… 計數器 22* · • 電池特性模擬資 29*… 輸入選擇 料 3…* 主控電腦 23* * •負載/電源切換電 4 · · » 外部電源 路 5…* 充放電電流訊號 24· · 25.. • 顯示單元 • RS232介面輸入 X3VJ 一 早兀 SM Bus 系統管理匯流排 13In addition to using the RS232 interface input unit X in the main control handle and the automatic mode, the battery characteristic analog data 22 is input to the micro-ground unit 20, and the smart battery simulation device 2 can be directly tested by the user. (4) The button input unit 21 inputs the battery characteristic simulation data 22 into the micro processing unit 2A. In this embodiment, the preset input unit of the smart battery simulation device 2 is a key input unit A21. Therefore, when there is no battery characteristic simulation data 22, the 2 interface input unit 25 is input and there is a battery characteristic simulation data. . When the input unit 21 is input through the button, since the input selection switching unit 26 is in the pre-open state, the battery characteristic simulation data μ is of course smoothly input to the micro processing unit 2 via the key input unit 21. 9 1262382 RS232: There is battery characteristic analog data 22 through the main control computer 3 and its work; = input: early π 25 when it is wheeled 'because it has input selection 29 force:; therefore will be through the micro-processing unit 2. The input selection element % ^ 匕丨 匕丨 冋 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 由 特性 特性 特性 特性 特性 特性It is input to the micro processing unit 20' without the month of being input by the button input unit 21 to the micro processing unit 2〇. The counter 28 is provided on the digital input data of the original battery characteristic analog data 22 input from the button input unit 21 and the micro processing unit 2 by the button input unit 21 in the form of a person 4-key. The display unit 24 is configured to display the binary battery characteristic simulation data input by the key input unit 21, wherein the display unit 24 can be, for example, a seven-segment display device, but is not limited thereto. The load/power switching circuit 2 3 is connected to the processing unit 2 and the embedded control unit & u ' of the device i and can be automatically switched between the discharging and charging modes. When the load/power switching circuit 23 is switched to the discharge mode (ie, the load mode), the discharge current flows from the mobile device to the load/power switching circuit 23, thereby simulating the real smart battery. The discharge mode. When the load/power switching circuit 23 is switched to the charging core type (p power supply type), a charging current provided by the external power source 4 is left by the load 7 power switching circuit 23 to the embedded control of the mobile device i. Unit 1 II simulates the charging mode of a true smart battery. - The self-measuring unit 27 can automatically measure the load/power switch 10 1262382. The circuit 23 flows to the mobile device 1 to control the actual charging current of the 'mu' and feeds the actual charging current to the micro-processing. Single & 2〇 enables the load/power switching circuit 23 to fine tune the actual charging current provided. However, in this embodiment, the charging and discharging current signal 5 required for the embedded control unit and the micro processing unit 2G can be directly provided by another method to prevent the charging and discharging currents and the charging current amount. When any one of the measuring units η cannot operate properly and cannot provide the required correct value, the other one can be responsible for providing the required value, and the micro processing unit can be improved by averaging the charging current values provided by the two methods. The correct value of the maximum drinking current value obtained by 2G. In view of the above, the smart battery simulation device 2 of the present invention can be used to change the charge and discharge current of the mobile device control unit u, and can shorten the test and debug time. In addition, for the different real smart battery products and the corresponding singular control unit A n of the singular device, the smart battery simulation device 2 of the present invention only needs to change i μ # # —, 贵文汶呉U processing early The 兀2〇 code can be used. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, that is, the simple (four) effect changes and the contents of the invention according to the present invention. Modifications are within the scope of the invention. [Simple description of the diagram] A - q 曰 尘 电池 电池 电池 电池 电池 电池 - - 行动 行动 行动 行动 行动 行动 行动 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式 嵌入式The system architecture diagram, but more illustrative of the functional blocks in a preferred embodiment of the smart battery simulation device 2 of the present invention. 12 1262382 [Description of main component symbols] 1 ... • Mobile device 11 * * • Embedded control unit 26* · · Input selection switching unit 2 * · * Smart battery analog device 1Ί ·... Charging current measurement unit 20.. • Micro processing unit 21 · · * Key input unit 28*... Counter 22* · • Battery characteristic simulation 29*... Input selection 3...* Master computer 23* * • Load/power switching 4 · · » External Power supply path 5...* Charge and discharge current signal 24· · 25.. • Display unit • RS232 interface input X3VJ Early 兀 SM Bus system management bus 13