CN108828452A - A kind of method that lithium battery information is shown - Google Patents

A kind of method that lithium battery information is shown Download PDF

Info

Publication number
CN108828452A
CN108828452A CN201810707256.4A CN201810707256A CN108828452A CN 108828452 A CN108828452 A CN 108828452A CN 201810707256 A CN201810707256 A CN 201810707256A CN 108828452 A CN108828452 A CN 108828452A
Authority
CN
China
Prior art keywords
lithium battery
information
operating system
gpio port
detecting
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.)
Pending
Application number
CN201810707256.4A
Other languages
Chinese (zh)
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.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics Co Ltd
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 Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN201810707256.4A priority Critical patent/CN108828452A/en
Publication of CN108828452A publication Critical patent/CN108828452A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The present invention provides a kind of method that lithium battery information is shown, it is related to the Intelligent lithium battery systems technology of notebook EC (Emebedded Control) control system, the present invention is controlled by lithium battery voltage pin, one energization pins of lithium battery are directly connected on a GPIO port of external MCU controller, can determine whether current lithium battery online information by detecting this GPIO port information.

Description

A kind of method that lithium battery information is shown
Technical field
The present invention relates to the Intelligent lithium battery systems technologies of notebook EC (Emebedded Control) control system, especially It is related to a kind of method shown based on notebook lithium battery information.
Background technique
Currently, the lithium battery for taking down notes this product all uses Intelligent lithium battery, i.e. inside battery has special MCU controller to go The charge and discharge of lithium battery are controlled, while acquiring the every terms of information of lithium battery, all information all follow SBS1.1 specification.External MCU controller, such as EC controller can be logical by the MCU inside SMBUS either I2C and Intelligent lithium battery according to this specification Letter, obtains current lithium battery information, is then transferred to operating system, and computer host computer shows that program can pass through current lithium battery Information show that lithium battery is online or not presence, since computer host computer procedure is to obtain lithium battery letter by EC Breath, then produces again and gives operating system, then show, if any one link goes wrong wherein, host computer is just It cannot show that information or the display reaction speed of lithium battery presence or absence are slow, be unfavorable for user or application program goes to obtain in real time Information existing for lithium battery.
For the software detection and display of lithium battery, there are two types of conventional ways, battery producer specially design one it is dedicated DETECT pin realized to design, another kind is exactly software judged by the information transmitted on reading I2C lithium battery The implementation method of linear state.
Summary of the invention
In view of the above problems, the invention proposes a kind of method shown based on notebook lithium battery information, it can be quick Response lithium battery presence information simultaneously sends operating system to.
Lithium battery presence information is designed as being controlled by lithium battery voltage pin, by a power supply of lithium battery Pin is directly connected on a GPIO port of external MCU controller, can determine whether currently by detecting this GPIO port information Lithium battery online information.It is illustrated in fig. 1 shown below, as long as PACK has voltage, BAT_ID can be detected the presence of lithium battery.It is external MCUEC controller can confirm the presence of lithium battery by the low and high level of this pin.
In terms of software design, external MCU is after detecting lithium battery online information, in such a way that system SCI is interrupted Go notice operating system lithium battery presence information.
Particular content is as follows:
EC detects the height of its GPIO port BAT_ID level, can judge the movement of lithium battery inserted or pull out, and leads to It crosses after detecting this movement, EC notifies operating system in such a way that SCI is interrupted, and can enter lithium battery plug event letter first Number, then going judgement is to extract or be inserted into, if insertion lithium battery can also go control charging action by detecting its information about power, Then EC sends information to operating system by SCI system break function, leads to immediately after operating system real-time reception to this information It crosses calling lithium battery information display program and shows battery presence information.
Detailed description of the invention
Fig. 1 is lithium battery interface circuit schematic diagram.
Specific embodiment
More detailed elaboration is carried out to the contents of the present invention below:
As long as BAT_ID can be detected the presence of lithium battery as shown, PACK has voltage.External MCU EC controller The presence of lithium battery can be confirmed by the low and high level of this pin.
EC detects the height of its GPIO port BAT_ID level, can judge the movement of lithium battery inserted or pull out, and leads to Cross detect this movement after, EC can SCI interrupt by way of notify operating system, software design as shown in following codes, Lithium battery plug event functions can be entered first, then going judgement is to extract or be inserted into, if insertion lithium battery can also pass through inspection It surveys its information about power and goes control charging action, then EC sends information to operating system, operation system by SCI system break function Immediately by calling lithium battery information display program to show battery presence information after system real-time reception to this information.
When plug lithium battery, system can cracking hair mirror lithium battery online information, even if lithium battery and outer The SMBUS communication abnormality of MCU is set, host computer also can correctly show lithium battery online information.

Claims (5)

1. a kind of method that lithium battery information is shown, which is characterized in that
It is controlled by lithium battery voltage pin, an energization pins of lithium battery is directly connected to one of external MCU controller On GPIO port, current lithium battery online information can determine whether by detecting this GPIO port information.
2. the method according to claim 1, wherein
External MCU EC controller can confirm the presence of lithium battery by the low and high level of this pin.
3. according to the method described in claim 2, it is characterized in that,
External MCU removes notice operating system lithium battery after detecting lithium battery online information in such a way that system SCI is interrupted Presence information.
4. according to the method described in claim 3, it is characterized in that,
Particular content is as follows:
EC detects the height of its GPIO port BAT_ID level, can judge the movement of lithium battery inserted or pull out, pass through inspection After measuring this movement, EC notifies operating system in such a way that SCI is interrupted,
EC can enter lithium battery plug event functions first, and then going judgement is to extract or be inserted into, if insertion lithium battery may be used also Control charging action is gone by detecting its information about power, then EC sends information to operating system by SCI system break function, Immediately by calling lithium battery information display program to show that battery presence is believed after operating system real-time reception to this information Breath.
5. according to the method described in claim 4, it is characterized in that,
Software design as shown in following codes,
CN201810707256.4A 2018-07-02 2018-07-02 A kind of method that lithium battery information is shown Pending CN108828452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810707256.4A CN108828452A (en) 2018-07-02 2018-07-02 A kind of method that lithium battery information is shown

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810707256.4A CN108828452A (en) 2018-07-02 2018-07-02 A kind of method that lithium battery information is shown

Publications (1)

Publication Number Publication Date
CN108828452A true CN108828452A (en) 2018-11-16

Family

ID=64135019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810707256.4A Pending CN108828452A (en) 2018-07-02 2018-07-02 A kind of method that lithium battery information is shown

Country Status (1)

Country Link
CN (1) CN108828452A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662454A (en) * 2012-03-30 2012-09-12 山东超越数控电子有限公司 Finite-state machine design method based on EC (embedded control) power management of loongson 3A notebook computer
CN103024195A (en) * 2012-12-27 2013-04-03 青岛海信移动通信技术股份有限公司 Smart mobile terminal and implementation method of charging of smart mobile terminal
JP2013232083A (en) * 2012-04-27 2013-11-14 Sony Corp Information processing device, information processing method, and program
CN103995761A (en) * 2014-06-05 2014-08-20 浪潮电子信息产业股份有限公司 Management mainboard online detection method
CN105044608A (en) * 2015-06-30 2015-11-11 努比亚技术有限公司 Method and apparatus for monitoring battery state
CN107154670A (en) * 2017-06-09 2017-09-12 山东超越数控电子有限公司 A kind of double lithium battery control systems based on EC controllers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662454A (en) * 2012-03-30 2012-09-12 山东超越数控电子有限公司 Finite-state machine design method based on EC (embedded control) power management of loongson 3A notebook computer
JP2013232083A (en) * 2012-04-27 2013-11-14 Sony Corp Information processing device, information processing method, and program
CN103024195A (en) * 2012-12-27 2013-04-03 青岛海信移动通信技术股份有限公司 Smart mobile terminal and implementation method of charging of smart mobile terminal
CN103995761A (en) * 2014-06-05 2014-08-20 浪潮电子信息产业股份有限公司 Management mainboard online detection method
CN105044608A (en) * 2015-06-30 2015-11-11 努比亚技术有限公司 Method and apparatus for monitoring battery state
CN107154670A (en) * 2017-06-09 2017-09-12 山东超越数控电子有限公司 A kind of double lithium battery control systems based on EC controllers

Similar Documents

Publication Publication Date Title
US11631981B2 (en) Power adapter, terminal, and method for processing impedance anomalies in charging loop
CN101894085B (en) Information processing apparatus
TWI573368B (en) Portable electronic device and charging method therefor
CN202632283U (en) Mobile equipment
EP3171480B1 (en) Method for identifying types of cables, power adaptor and cable
US10126845B2 (en) Wireless input device, charging pad and charging method thereof
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
US20130162050A1 (en) Connection device for detecting connection status, electrical connection assembly, and electronic apparatus
CN109298266A (en) Test macro, test method, test device and storage medium
CN104820156A (en) Wire harness detection device and method
CN105510755A (en) Testing device
CN106706998B (en) Terminal test system and terminal test method
CN108828452A (en) A kind of method that lithium battery information is shown
CN107612571A (en) Terminal and its control circuit of multipurpose Kato, prevent SIM card from burning the method for card
CN105824732A (en) USB detection method and detection system
CN106797414A (en) The leakage current detection circuit and terminal of a kind of terminal
CN108110831A (en) A kind of charging wire fault detection method for being used to share charger baby
CN105098854B (en) Charging method and electronic device
CN111722149A (en) Cable detection equipment, method and system and computer readable storage medium
KR100700532B1 (en) A method for recognizing device connected to universal serial bus port and universal serial bus adaptor
CN115528768A (en) Charging control method and device
CN213181351U (en) Device for detecting material impurities based on capacitance principle
CN115291120A (en) Battery metering system, electronic equipment and control method
CN210835651U (en) Safety test control system
JP2019040239A (en) Electronic apparatus, electronic system and power supply control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116