CN1146771C - Method and device for indicating battery energy by LEDs on computer - Google Patents

Method and device for indicating battery energy by LEDs on computer Download PDF

Info

Publication number
CN1146771C
CN1146771C CNB001237411A CN00123741A CN1146771C CN 1146771 C CN1146771 C CN 1146771C CN B001237411 A CNB001237411 A CN B001237411A CN 00123741 A CN00123741 A CN 00123741A CN 1146771 C CN1146771 C CN 1146771C
Authority
CN
China
Prior art keywords
led
battery capacity
floppy disk
disk drive
hard disk
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB001237411A
Other languages
Chinese (zh)
Other versions
CN1340797A (en
Inventor
罗圣心
刘铭源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CNB001237411A priority Critical patent/CN1146771C/en
Publication of CN1340797A publication Critical patent/CN1340797A/en
Application granted granted Critical
Publication of CN1146771C publication Critical patent/CN1146771C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • Y02E60/12

Landscapes

  • Power Sources (AREA)

Abstract

The present invention relates to a method and a device thereof for displaying the capacity of a cell through an LED(light emitting diode) on a notebook computer. The pressing in of a panel switch matched with a hard disk drive, a floppy disk drive, a Caps lock, a number lock, a voltage regulator, the panel switch, a logic unit, a charge control unit, a discharge control unit and a Key board control unit and the transferred signals of the Key board controller and an SMB Bus are used for displaying the capacity of the cell. Therefore, the additional cost of the LED and the panel switch can not be increased, and the capacity of the cell can be displayed.

Description

Utilize the method and the device thereof of the diode displaying battery capacity on the computer
Technical field
The present invention relates to a kind of method and device thereof that shows the battery capacity of notebook computer, be meant a kind of method and device thereof that utilizes the LED (light emitting diode) in the notebook computer system to show battery meter especially.
Background technology
In today of computer prosperity, carrying computer has become modern's demand, in order to deal with this trend, so computermaker dwindles portable computer (portable computer) again, become the much the same notebook computer of area such as notebook, its function and desktop computer are similar, but can put into leather trunk or the handbag of carrying, and have satisfied business people's demand of available computer everywhere.
The power supply method of supplying of notebook computer is generally based on ni-mh (NiMH) or NI-G (NiCd), it is preferable that more senior machine polygamy closes continuous electric power, and the lithium ion battery (Li-ion) that does not have storage effect, general available three to four hours, minority machine even more than available ten hours, for frequent outside business people, can allow their edge work in the middle of the process of journey riding public transportation means.
Since at present on the notebook computer the employed drawing out type battery overwhelming majority all with the demonstration of LED, conveniently informing the electric power storage power of user's battery, and if LED designed must consider following points at inside battery as battery capacity:
1, cost+LED of five LED additionally take the cost of the area+change-over switch (Push Switch) of PCB (printed circuit board (PCB));
2, take the inner valuable space of electric battery;
3, increase man-hour, disqualification rate and after sale service in the assembling and the problem of getting the raw materials ready;
4, sometimes, consideration because of overall construction design, after battery must being taken out, can check the demonstration of LED, if the proper charging of battery, and temperature is greater than 40 ℃, during midway if any plug, will cause erroneous judgement, and cause the temporary transient accident of pausing of charged state (the charging erroneous judgement of Ni-MH battery is to be consideration with the temperature) above charging temperature;
5, in start or suspend under (Suspend), when desiring to check the capacity of battery, after needing earlier battery to be taken out, demonstrate with LED again, if battery is not equipped with LED, then must open computer, just can learn very inconvenience in the practicality after utilizing program to read.
6, if in the computer two batteries are installed simultaneously,, can demonstrate the mean value of battery capacity, and needn't two batteries be taken off the mean value of estimating battery as long as press panel-switch (Lid Switch).
Summary of the invention
The objective of the invention is to propose a kind of by voltage regulator, discharge and recharge the device that control module, logical block, hard disk drive, floppy disk, scrolling locking, caps lock, number lock, panel-switch and keyboard controller unit are formed, and and adopt by a SMB Bus (SmartBus, intelligent bus) and receive battery capacity information to the keyboard controller unit; One subroutine is provided, by the switching of panel-switch power management function is switched to and show this battery capacity function; The switching of one logical block and mating surface switching plate is provided, the action signal of hard disk drive and floppy disk is suspended, and utilize LED to show that respectively different steps such as this battery capacity form the method and the device thereof of the diode displaying battery capacity of utilizing on the computer, it can utilize the pressure of five existing LED mating surface switching plates of notebook computer system and substitute the battery capacity demonstration of LED originally by keyboard controller and SMB bus transmission information, need not to increase extra LED and panel-switch cost, can reach the demonstration of battery capacity, thereby solve the existing in prior technology problem.
The technical solution adopted in the present invention is: it utilizes the LED on the notebook computer, i.e. hard disk drive (Hard Disk Drive; HDD), floppy disk (Floppy Disk Drive; FDD), the method that shows battery meter of the LED of scrolling locking (Scroll Lock), caps lock (Caps Lock) and number lock (Num Lock), include following steps:
Receive this battery capacity information to one keyboard controller unit by a SMB Bus;
One subroutine is provided,, power management function is switched to this battery capacity function of demonstration by the switching of panel-switch;
Provide a logical block in order to cooperate the switching of this panel-switch, with the action signal time-out of hard disk drive and floppy disk; And
Utilize this LED to show that respectively this different battery capacities represents.
The present invention also can take following step:
Receive this battery capacity information to one keyboard controller unit by a SMB Bus;
One subroutine is provided, and it switches to this battery capacity function of demonstration by the switching of panel-switch with power management function;
Provide a logical block in order to cooperate the switching of this panel-switch, with the action signal time-out of hard disk drive and floppy disk;
This battery capacity is to utilize this LED to represent this different battery capacities respectively, and its expression mode is as follows:
When this battery capacity is 0-10%, flicker floppy disk LED;
When this battery capacity is 11%-19%, light this floppy disk LED;
When this battery capacity is 20%-30%, light this floppy disk LED, and flicker hard disk drive LED;
When this battery capacity is 31%-39%, light this floppy disk LED, this hard disk drive LED;
When this battery capacity is 40%-50%, light this floppy disk LED, this hard disk drive LED, and flicker number lock LED;
When this battery capacity is 51%-595, light this floppy disk LED, this hard disk drive LED, this number lock LED;
When this battery capacity is 60%-70%, light this floppy disk LED, this hard disk drive LED, this number lock LED, and flicker caps lock LED;
When this battery capacity is 71%-79%, light this floppy disk LED, this hard disk drive LED, this number lock LED, this caps lock LED;
When this battery capacity is 80%-99%, light this floppy disk LED, this hard disk drive LED, this number lock LED, this caps lock LED, and flicker scrolling locking LED; And
When this battery capacity is 100%, light this floppy disk LED, this hard disk drive LED, this number lock LED, this caps lock LED, this scrolling locking LED.
The present invention utilizes the device that LED shows battery meter on the notebook computer, it is five LED that utilize this notebook computer system existing, be that being pressed into transmission signal by a keyboard controller unit and SMB BUS of hard disk drive, floppy disk, scrolling locking, caps lock, number lock, cooperation one panel-switch shows battery meter, this device also comprises a logical block, it cooperates the switching of this panel-switch, the action signal of hard disk drive and floppy disk is suspended, and utilize these five LED to represent this different battery capacities respectively.
The invention has the advantages that:
It is by existing five LED (HDD, FDD, Scr, Cap, Num), the capacity demonstration that is pressed into and substitutes battery script LED of mating surface switching plate (Lid Switch) by the transmission signal of keyboard controller and SMB Bus, so need not to increase the extra LED and the cost of panel-switch, can reach the function that battery capacity shows.
Moreover, need not that battery is detached main frame and just can learn battery capacity by existing LED, particularly in shutdown or halted state, and when battery charge, can therefore not pause yet.
Description of drawings
Fig. 1 is the circuit block diagram that utilizes the LED in the notebook computer system to show battery meter of the present invention;
Fig. 2 is the method flow diagram that utilizes the LED in the notebook computer system to show battery meter of the present invention;
Fig. 3 and Fig. 4 are the method flow diagram that utilizes LED in the notebook computer system to show different battery capacities of the present invention; And
Fig. 5 is the per second interruption subroutine process flow diagram that utilizes the LED in the notebook computer system to show battery meter of the present invention.
Embodiment
Further specify preferred embodiment of the present invention in conjunction with above-mentioned each accompanying drawing now.The present invention proposes a kind of method and device thereof that utilizes the LED in the notebook computer system to show battery meter, as shown in Figure 1 for the circuit block diagram that utilizes the LED in the notebook computer system to show battery meter of the present invention.Wherein comprise a keyboard controller unit 10, in order to manipulation keyboard and LED thereof; One electric battery 20, be to be connected with this keyboard controller unit 10 with SMB Bus, this electric battery 20 is by the logic card design of (figure does not show), in order to signals such as the positive and negative end of battery, time clock, data and temperature detection as the external coupling signal of control, wherein this time clock, data are in order to be connected to keyboard controller unit 10, with the foundation as the number that shows battery meter.
The present invention is the led module 30 that utilizes in the notebook computer system, with the number that shows battery meter, this led module 30 comprises floppy disk LED 31, hard disk drive LED 32, number lock LED 33, caps lock LED 34 and scrolling locking LED 35 etc.Wherein hard disk drive LED 70 and floppy disk LED 80 are by a logical block 40 (first logic gate 41, second logic gate 42, the 3rd logic gate 43 and the 4th logic gate 44), show with the matching battery capacity; One discharges and recharges control module 50, in order to the control element as battery charging and discharging and battery shape energy, capacity check; One voltage regulator 60 is in order to voltage transitions one-tenth+5V voltage; One hard disk drive 70 cooperates first logic gate 41 and the 3rd logic gate 43 (can be with or door), is example with the present invention, and 20%~39% battery capacity shows this LED; And a floppy disk 80, cooperate second logic gate 42 and the 4th logic gate 44 (can be with or), be example with the present invention, 0~19% battery capacity shows this LED.
The present invention carried utilizes the main foundation that LED shows battery meter in the notebook computer system, is the change-over switch of utilizing panel-switch 90 to do and show battery meter, and the power management function of retention system.
Comprehensive the above, the present invention utilizes a LED display subroutine to reach the information that shows battery meter, Fig. 2 is the method flow diagram that utilizes the LED in the notebook computer system to show battery meter of the present invention, its flow and method is as described below:
System's initial register value (step 201) at first, it is that trigger-type interrupts (step 202) that now is set panel-switch, because, panel-switch 90 uses as the power management function of system, so program design must keep outside the existing function, also must use as the change-over switch that is enough to show battery meter, and set other functions the parameter that should set, after entering idle state (step 203), judged whether to interrupt taking place (step 204), if do not interrupt taking place, then get back to idle state (step 203); Interrupt taking place if having, then judge whether to interrupt if not panel-switch, then get back to idle state (step 203) into panel-switch interrupts (step 205); If panel-switch interrupts, then carry out display lamp number flow process (step 206), the detailed step flow process please refer to Fig. 3 and Fig. 4, and makes other Interrupt Process (step 207), and gets back to idle state (step 203), to wait for next interrupting information.
For utilizing LED in the notebook computer system to show the method for different battery capacities, the present invention proposes the state that embodiment explanation shows battery meter, at this lay special stress on, enforcement state of the present invention only illustrates a kind of in the mode that shows different battery capacities of the LED that utilizes in the notebook computer system, and non-limitingly present the expression mode of different battery capacities with other demonstration means, the existing expression mode that specifically shows battery meter with regard to present embodiment is described as follows:
Fig. 3 and Fig. 4 are the method flow diagram that utilizes LED in the notebook computer system to show different battery capacities of the present invention, when beginning to carry out the display lamp number flow process, read the register (step 301) of battery capacity earlier, and close whole LED (step 302), and make the logical transition state (step 3021) of the control foot (CHF) of third and fourth logic gate, the action signal of hard disk drive and floppy disk is suspended, then judge whether to have battery capacity (step 303), if battery capacity exhausts, then finish this flow process.
Then carry out a series of judgement flow process, with the number of monitor battery capacity, at first judge whether to have 0~10% capacity (step 304), at 0~10% o'clock, floppy disk LED (step 305) then glimmered as if battery capacity; If capacity exceeds 10%, then judge whether to have 11%~19% capacity (step 306), if battery capacity at 11%~19% o'clock, is then lighted floppy disk LED (step 307); If capacity exceeds 19%, then judge whether to have 20%~30% capacity (step 308), if battery capacity at 20%~30% o'clock, is then lighted floppy disk LED, flicker hard disk drive LED (step 309); If capacity exceeds 30%, then judge whether to have 31%~39% capacity (step 310), if battery capacity at 31%~39% o'clock, is then lighted floppy disk LED, hard disk drive LED (step 311); If capacity exceeds 39%, then judge whether to have 40%~50% capacity (step 312), if battery capacity at 40%~50% o'clock, is then lighted floppy disk LED, hard disk drive LED, flicker number lock LED (step 313).With this display mode, if capacity exceeds 50%, then continue execution in step A, see also Fig. 4, be described as follows:
Judge whether to have 51%~59% capacity (step 401), if battery capacity at 51%~59% o'clock, is then lighted floppy disk LED, hard disk drive LED, number lock LED (step 402); If capacity exceeds 59%, then judge whether to have 60%~70% capacity (step 403), if battery capacity at 60%~70% o'clock, is then lighted floppy disk LED, hard disk drive LED, number lock LED, flicker caps lock LED (step 404); If capacity exceeds 70%, then judge whether to have 71%~79% capacity (step 405), if battery capacity at 71%~79% o'clock, is then lighted floppy disk LED, hard disk drive LED, number lock LED, caps lock LED (step 406); If capacity exceeds 79%, then judge whether to have 80%~99% capacity (step 407), if battery capacity at 80%~99% o'clock, is then lighted floppy disk LED, hard disk drive LED, number lock LED, caps lock LED, flicker scrolling locking LED (step 408); If battery capacity has 100% capacity (step 409), then light floppy disk LED, hard disk drive LED, number lock LED, caps lock LED, scrolling locking LED (step 410).
At this lay special stress on, the present invention sets one and removes the LED time (ClearTime=n), in order in different battery capacities, light or the different LED that glimmers after, succeed execution in step B, set n and remove LED (ClearTime=n) (step 411) after second to carry out.
Fig. 5 is the every wonderful interruption subroutine process flow diagram that utilizes the LED in the notebook computer system to show battery meter of the present invention, the specific implementation method of above-mentioned flow process is described, be to judge that ClearTime is whether greater than 0 (step 501), ClearTime=ClearTime-1 (step 502) and judge whether ClearTime equals the logical course of 0 (step 503), determine lighting or scintillation time of LED, at last, according to HDD, FDD, Scr, Cap, Num state, upgrade LED (step 504) again.
Though the present invention discloses as above with above-mentioned preferred embodiment; so it is not in order to limit the present invention; any technician who is familiar with this skill; do not breaking away from the spirit and scope of the invention; when the change that can do a little and retouching, so protection domain of the present invention is when looking being as the criterion that accompanying Claim book protection domain defined.

Claims (15)

1, a kind of method of utilizing the diode displaying battery capacity on the computer is characterized in that this method comprises the following step at least:
Receive this battery capacity information to one keyboard controller unit by an intelligent bus;
One subroutine is provided,, power management function is switched to this battery capacity function of demonstration by the switching of panel-switch;
Provide a logical block in order to cooperate the switching of this panel-switch, with the action signal time-out of hard disk drive and floppy disk; And
Utilize this LED to show that respectively this different battery capacities represents.
2, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 1, it is characterized in that said LED, it is to be selected from any in the combination of floppy disk LED, hard disk drive LED, number lock LED, caps lock LED and scrolling locking LED.
3, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 1 is characterized in that said battery capacity information, is meant time clock and the data signals of design at the logic card of electric battery.
4, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 1, it is characterized in that described logical block, it also comprises one first logic gate and one the 3rd logic gate, make its action signal time-out, and show the display signal of this battery capacity this hard disk drive.
5, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 1, it is characterized in that described logical block, it also comprises one second logic gate and one the 4th logic gate, it makes the action signal of this floppy disk suspend, and shows the display signal of this battery capacity.
6, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 1 is characterized in that the described step of being suspended by the action signal with this hard disk drive and this floppy disk, in order to show the display signal of this battery capacity.
7, a kind of method of utilizing the diode displaying battery capacity on the computer is characterized in that this method comprises the following step at least:
Receive this battery capacity information to one keyboard controller unit by an intelligent bus;
One subroutine is provided, and it switches to this battery capacity function of demonstration by the switching of panel-switch with power management function;
One logical block is provided, and it is to cooperate the switching of this panel-switch, with the action signal time-out of hard disk drive and floppy disk;
This battery capacity is to utilize this LED to represent this different battery capacities respectively, and its expression mode is as follows:
When this battery capacity is 0-10%, flicker floppy disk LED;
When this battery capacity is 11%-19%, light this floppy disk LED;
When this battery capacity is 20%-30%, light this floppy disk LED, and flicker hard disk drive LED;
When this battery capacity is 31%-39%, light this floppy disk LED, this hard disk drive LED;
When this battery capacity is 40%-50%, light this floppy disk LED, this hard disk drive LED, and flicker number lock LED;
When this battery capacity is 51%-59%, light this floppy disk LED, this hard disk drive LED, this number lock LED;
When this battery capacity is 60%-70%, light this floppy disk LED, this hard disk drive LED, this number lock LED, and flicker caps lock LED;
When this battery capacity is 71%-79%, light this floppy disk LED, this hard disk drive LED, this number lock LED, this caps lock LED;
When this battery capacity is 80%-99%, light this floppy disk LED, this hard disk drive LED, this number lock LED, this caps lock LED, and flicker scrolling locking LED; And
When this battery capacity is 100%, light this floppy disk LED, this hard disk drive LED, this number lock LED, this caps lock LED, this scrolling locking LED.
8, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 7 is characterized in that described battery capacity information, and it is meant time clock and the data signals of design at the logic card of electric battery.
9, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 7, it is characterized in that said logical block, it also comprises one first logic gate and one the 3rd logic gate, it makes the action signal of this hard disk drive suspend, and shows the display signal of this battery capacity.
10, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 7, it is characterized in that described logical block, it also comprises one second logic gate and one the 4th logic gate, it makes the action signal of this floppy disk suspend, and shows the display signal of this battery capacity.
11, the method for utilizing the diode displaying battery capacity on the computer as claimed in claim 7 is characterized in that described hard disk drive, and the step of being suspended by the action signal of it and this floppy disk is in order to show the display signal of this battery capacity.
12, a kind of by the described device that utilizes the method for the diode displaying battery capacity on the computer of claim 1, be five LED that utilize this notebook computer existing, be hard disk drive, floppy disk, scrolling locking, caps lock and number lock LED, cooperate being pressed into of a panel-switch to show battery meter, it is characterized in that with transmission signal by a keyboard controller and intelligent bus:
This device comprises a logical block, and it cooperates the switching of this panel-switch, with the action signal time-out of this hard disk drive and this floppy disk; And
Utilize these five LED to represent this different battery capacities respectively.
13, the device that utilizes the diode displaying battery capacity on the computer as claimed in claim 12 is characterized in that it also comprises one and discharges and recharges control module, and it is the control element of this battery charging and discharging and this battery status, capacity check.
14, the device that utilizes the diode displaying battery capacity on the computer as claimed in claim 12 is characterized in that it also comprises a voltage regulator, and it is with voltage transitions one-tenth+5V voltage.
15, the device that utilizes the diode displaying battery capacity on the computer as claimed in claim 12 is characterized in that described hard disk drive, by the step that the action signal of it and this floppy disk suspends, is the display signal that shows this battery capacity.
CNB001237411A 2000-09-01 2000-09-01 Method and device for indicating battery energy by LEDs on computer Expired - Fee Related CN1146771C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB001237411A CN1146771C (en) 2000-09-01 2000-09-01 Method and device for indicating battery energy by LEDs on computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB001237411A CN1146771C (en) 2000-09-01 2000-09-01 Method and device for indicating battery energy by LEDs on computer

Publications (2)

Publication Number Publication Date
CN1340797A CN1340797A (en) 2002-03-20
CN1146771C true CN1146771C (en) 2004-04-21

Family

ID=4590096

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001237411A Expired - Fee Related CN1146771C (en) 2000-09-01 2000-09-01 Method and device for indicating battery energy by LEDs on computer

Country Status (1)

Country Link
CN (1) CN1146771C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100337214C (en) * 2004-06-10 2007-09-12 英业达股份有限公司 Visual computer platform operating state display device
CN111951719B (en) * 2020-08-10 2023-05-23 昂宝电子(上海)有限公司 Apparatus and method for LED display control in charge-discharge system

Also Published As

Publication number Publication date
CN1340797A (en) 2002-03-20

Similar Documents

Publication Publication Date Title
CN100361368C (en) Method and system for charging control of lithium cell
CN1119757A (en) A data processing system, and a power supply apparatus and a method for its use with a data processing system
CN1838086A (en) Notebook computer with battery indicator
TW468052B (en) Method and device for displaying battery capacities using LED of the notebook system
CN1146771C (en) Method and device for indicating battery energy by LEDs on computer
CN105354894A (en) Vehicle data recorder power supply method and apparatus
CN1614439A (en) Detector of accumulator
CN205388997U (en) Module detection device of secondary lithium battery group
CN2826795Y (en) Replenishment system of electric vehicle power source battery
CN2682506Y (en) Tax-control cashing machine with novel power supply monitoring module
CN200947197Y (en) External battery for notebook computer
CN2800360Y (en) CMOS power supply device
CN115004505A (en) Energy storage system, main energy storage device and auxiliary energy storage device
CN115498731A (en) BMS state switching system
CN107394846A (en) A kind of car emergency power supply
CN211509272U (en) Charging box
CN209626366U (en) A kind of battery management system
CN100351780C (en) Electric power method for controlling personnel digital assistant with microprocessor
CN208571651U (en) It is a kind of can be with the energy-storage system of new energy car battery system compatible
CN2638127Y (en) Improved non outage exchange type power source supply device having hot plug in out battery block
CN2407993Y (en) Time limited anti-theft device for leasing car
CN1671023A (en) Power supply monitoring method for tax control machine
CN216819409U (en) Energy storage system and main energy storage device
CN201345082Y (en) Computer device with easily-replaced chip module
CN221177318U (en) Lithium battery management system

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20040421

Termination date: 20100901