CN116054301A - Battery protection device, battery protection method and electronic equipment - Google Patents

Battery protection device, battery protection method and electronic equipment Download PDF

Info

Publication number
CN116054301A
CN116054301A CN202210743212.3A CN202210743212A CN116054301A CN 116054301 A CN116054301 A CN 116054301A CN 202210743212 A CN202210743212 A CN 202210743212A CN 116054301 A CN116054301 A CN 116054301A
Authority
CN
China
Prior art keywords
battery
identification information
main control
logic chip
electronic device
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.)
Granted
Application number
CN202210743212.3A
Other languages
Chinese (zh)
Other versions
CN116054301B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210743212.3A priority Critical patent/CN116054301B/en
Publication of CN116054301A publication Critical patent/CN116054301A/en
Application granted granted Critical
Publication of CN116054301B publication Critical patent/CN116054301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00038Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange using passive battery identification means, e.g. resistors or capacitors
    • H02J7/00043Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange using passive battery identification means, e.g. resistors or capacitors using switches, contacts or markings, e.g. optical, magnetic or barcode
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00306Overdischarge protection
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a battery protection device, a battery protection method and electronic equipment, and relates to the technical field of terminals. This battery protection device sets up in electronic equipment, electronic equipment's battery include the electric core with battery protection shield, battery protection device includes: a main control chip and a logic chip; the logic chip is electrically connected with the main control chip; the logic chip is positioned on the battery protection board; the logic chip is used for storing first identification information; the main control chip is used for storing second identification information, reading the first identification information stored by the logic chip, and controlling the electronic equipment to charge the battery according to a normal charging mode when the first identification information is matched with the second identification information; and when the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery. By adopting the scheme, the hardware cost can be reduced on the premise of ensuring the safety of battery charging.

Description

Battery protection device, battery protection method and electronic equipment
Technical Field
The application relates to the technical field of terminals, in particular to a battery protection device, a battery protection method and electronic equipment.
Background
With the progress of battery charging technology, the application of high-power charging to electronic devices is becoming widespread. In addition, the rated capacity of batteries used in electronic devices is also increasing.
At present, the high-power charging technologies of different equipment manufacturers are different, and the charging power of batteries is also different. In order to avoid safety accidents caused by that charging power exceeds the charging specification of the battery by applying a nonstandard distribution battery or a bad battery to electronic equipment, an encryption anti-counterfeiting integrated circuit (integrated circuit, IC) is generally adopted to realize the safety protection of the battery. When the encryption anti-counterfeiting IC discovers that the current battery of the electronic equipment is a nonstandard distribution battery, the electronic equipment can reduce the charging current of the battery so as to reduce potential safety hazards.
However, the encryption anti-counterfeiting IC adopted at present needs to be internally provided with an encryption algorithm, so that the encryption anti-counterfeiting IC is complex in design and high in hardware cost.
Disclosure of Invention
In order to solve the above problems, the present application provides a battery protection device, a battery protection method, and an electronic device, which can reduce hardware cost on the premise of ensuring battery charging safety.
In a first aspect, the present application provides a battery protection device, where the battery protection device is disposed in an electronic device, the electronic device includes a battery protection board, and the battery protection device includes a main control chip and a logic chip. The logic chip is electrically connected with the main control chip and is positioned on the battery protection board; the logic chip is used for storing the first identification information; the main control chip is used for storing second identification information, reading the first identification information stored by the logic chip, and controlling the electronic equipment to charge the battery according to a normal charging mode when the first identification information is matched with the second identification information; and when the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery.
The battery protection device selects a common logic chip, stores the matching relation between the electronic equipment and the battery on the logic chip by using a readable and writable register of the logic chip, stores the matching relation on the main control chip, and can determine whether the battery is replaced or not by comparing the two matching relations. According to the scheme, an encryption algorithm does not need to be built in the logic chip, and the requirement on the logic chip is low, so that the hardware cost can be reduced on the premise of ensuring the safety of battery charging, and the method has higher practicability.
In one possible implementation manner, the main control chip is specifically configured to generate updated first identification information and updated second identification information according to a current time, an identification code of the electronic device, and an identification code of the battery when the first identification information is matched with the second identification information, store the updated second identification information, and write the updated first identification information into the logic chip. At this time, after each charging, the first identification information and the second identification information are updated, that is, the first identification information and the second identification information are not fixed, so that the safety of the information is improved.
In one possible implementation, the identification code of the electronic device is a product serial code of the electronic device, and the identification code of the battery is a product serial code of the battery.
In one possible implementation manner, the main control chip is arranged on a main board of the electronic device; the grounding end of the logic chip is used for being grounded through the main board; and when the grounding end of the logic chip is disconnected with the main board, the stored first identification information is cleared, so that the first identification information is null data. That is, when the battery is replaced, since the logic chip is located at the battery protection board, the logic chip also needs to be replaced, and the ground terminal of the logic chip is disconnected from the main board, so that the first protection information on the logic chip is cleared. So that whether the battery is replaced or abnormal power failure occurs can be determined according to the first protection information.
In a possible implementation manner, the main control chip is specifically configured to control the electronic device to charge the battery according to the lowest charging power supported by the electronic device when the read first identification information and the read second identification information are inconsistent, or when the first identification information is not read and the voltage of the battery is greater than a first voltage value.
When the read first identification information and the second identification information are inconsistent, the first identification information is not null data, and the following situations can occur in the characterization: the battery is replaced, but the logic chip is arranged in the replaced battery, but the identification codes of the battery are different, so that the first identification information stored on the logic chip is inconsistent with the second identification information stored on the main control chip although the electrical connection between the logic chip and the main control chip is normal.
When the first identification information is not read and the voltage of the battery is larger than a first voltage value, the battery is indicated not to be over-discharged at the moment, and the battery can be replaced.
In order to avoid potential safety hazards, the main control chip controls the charging management module of the electronic equipment to charge the battery according to the lowest charging power.
In one possible implementation manner, the main control chip is further configured to control the electronic device to charge the battery according to the lowest charging power supported by the electronic device when the electrical connection between the main control chip and the logic chip is disconnected.
In a possible implementation manner, the main control chip is specifically configured to control the electronic device to charge the battery according to a derating charging mode when the first identification information is not read, the voltage of the battery when the battery starts to be charged is smaller than a first voltage value, and the time for decreasing the voltage of the battery from a second voltage value to the first voltage value is longer than a preset time, where the charging power of the derating charging mode is lower than the charging power of the normal charging mode and higher than the lowest charging power supported by the electronic device, and the second voltage value is greater than the first voltage value.
At this time, the battery of the electronic device is not replaced, but overdischarge occurs so that the first identification information cannot be read. The charging power of the derating charging mode may be set to be slightly smaller than that of the normal charging mode.
In a possible implementation manner, the main control chip is further configured to control the electronic device to charge the battery according to the derating charging mode when the electrical connection with the logic chip is normal, but the first identification information is read to be null data.
The following may occur at this time: the battery of the electronic equipment is not replaced, but due to the conditions of unexpected falling or collision, or short disassembly in maintenance, the logic chip is powered down, the first identification information stored on the logic chip is emptied, and then the logic chip is powered up normally and is connected with the main control chip normally.
In one possible implementation manner, the main control chip further comprises a data interface; the data interface is used for connecting with external equipment; the main control chip is also used for authenticating the external equipment, storing the updated second identification information under the control of the external equipment after the authentication is passed, and writing the updated first identification information into the logic chip.
When external equipment is connected to the production line, the identification information stored in the main control chip and the logic chip can be initialized; when the maintenance point is connected with the external equipment, the data stored on the logic chip can be updated through the main control chip, namely when the battery of the electronic equipment needs to be replaced, the standard battery is replaced first, the identification code of the new battery, namely the equipment serial number of the new battery, is obtained, and then the corresponding identification information is updated on the main control chip and the logic chip through the data interface.
In a second aspect, the present application further provides a battery protection method, applied to a main control chip, where the main control chip stores second identification information, and the method includes: reading first identification information stored by a logic chip, wherein the logic chip is electrically connected with the main control chip and is positioned on a battery protection board; when the first identification information is matched with the second identification information, the electronic equipment is controlled to charge the battery according to a normal charging mode; and when the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery.
By using the method, the matching relation between the electronic equipment and the battery is stored on the logic chip, the matching relation is also stored on the main control chip, and whether the battery is replaced or not can be determined by comparing the two matching relations. The method has the advantages that an encryption algorithm is not required to be built in the logic chip, and the requirement on the logic chip is low, so that the hardware cost can be reduced on the premise of ensuring the safety of battery charging, and the method has higher practicability.
In one possible implementation manner, when the first identification information matches with the second identification information, the method specifically includes that the electronic device is controlled to charge the battery according to a normal charging mode:
When the first identification information is matched with the second identification information, generating updated first identification information and updated second identification information according to the current time, the identification code of the electronic equipment and the identification code of the battery;
storing the updated second identification information and writing the updated first identification information into the logic chip;
and controlling the electronic equipment to charge the battery according to a normal charging mode.
In one possible implementation, the identification code of the electronic device is a product serial code of the electronic device, and the identification code of the battery is a product serial code of the battery.
In one possible implementation manner, the main control chip is arranged on a main board of the electronic device; the grounding end of the logic chip is grounded through the main board; and when the grounding end of the logic chip is disconnected with the main board, the stored first identification information is cleared.
In one possible implementation manner, when the first identification information does not match the second identification information or the first identification information is not read, the electronic device is controlled to reduce the charging power of the battery, which specifically includes:
And when the read first identification information is inconsistent with the second identification information, or when the first identification information is not read and the voltage of the battery is larger than a first voltage value, controlling the electronic equipment to charge the battery according to the lowest charging power supported by the electronic equipment.
In one possible implementation, the method further includes:
and when the electric connection between the electronic equipment and the logic chip is disconnected, controlling the electronic equipment to charge the battery according to the lowest charging power supported by the electronic equipment.
In one possible implementation manner, when the first identification information does not match the second identification information or the first identification information is not read, the electronic device is controlled to reduce the charging power of the battery, which specifically includes:
when the first identification information is not read, the voltage of the battery when the battery starts to be charged is smaller than a first voltage value, and the time when the voltage of the battery is reduced from a second voltage value to the first voltage value is longer than a preset time, the electronic equipment is controlled to charge the battery according to a derating charging mode, the charging power of the derating charging mode is lower than the charging power of the normal charging mode and is higher than the lowest charging power supported by the electronic equipment, and the second voltage value is larger than the first voltage value.
In one possible implementation, the method further includes:
and when the electrical connection between the electronic device and the logic chip is normal, but the first identification information is read to be null data, controlling the electronic device to charge the battery according to the derating charging mode.
In one possible implementation, the method further includes: connecting external equipment through a data interface, and authenticating the external equipment; and after the authentication is passed, storing the updated second identification information under the control of the external equipment, and writing the updated first identification information into the logic chip.
In a third aspect, the present application further provides an electronic device, where the electronic device includes the battery protection device provided in the above implementation manner, and further includes an electrical core. The battery cell and the battery protection plate are packaged together to form a battery. The battery is used to power the electronic device. The main control chip of the battery protection device can be integrated on the main board of the electronic equipment. The main control chip and the logic chip are powered by the battery core.
The electronic equipment is provided with the battery protection device, the battery protection device selects a common logic chip, the matching relation between the electronic equipment and the battery is stored on the logic chip by using a readable and writable register of the logic chip, the matching relation is also stored on the main control chip, and whether the battery is replaced or not can be determined by comparing the two matching relations. According to the scheme, an encryption algorithm does not need to be built in the logic chip, the requirement on the logic chip is low, and the main control chip can directly multiplex the processor on the electronic equipment, so that the hardware cost of the electronic equipment is reduced on the premise of ensuring the charging safety of the battery, and the method has higher practicability. In addition, the battery protection device can also distinguish the situations of over-discharge of the battery, communication faults of the main control chip and the logic chip which are not replaced, short power failure which are not replaced, and the like, so that the corresponding charging mode is adopted, the battery protection device has higher practicability, the safety of the electronic equipment is further improved, and the accident risk is reduced.
Drawings
FIG. 1 is a schematic diagram of an electronic device;
FIG. 2 is a schematic diagram of a charging phase;
fig. 3 is a schematic diagram of a battery protection device according to an embodiment of the present application;
fig. 4 is a schematic view of another battery protection device according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a battery protection method according to an embodiment of the present application;
FIG. 6 is a flowchart of another battery protection method according to an embodiment of the present application;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical personnel in the technical field more clearly understand the scheme of the application, the application scenario of the technical scheme of the application is first described below.
The technical scheme that this application provided can be applied to electronic equipment, and electronic equipment can be cell-phone, wearable electronic equipment (for example intelligent wrist-watch), panel computer, augmented reality (augmented reality, AR) equipment, virtual Reality (VR) equipment etc. the embodiment of this application does not do specifically limit.
Referring to fig. 1, the structure of the electronic device is schematically shown.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
Referring to fig. 2, a schematic diagram of a charging phase is shown.
When a standard battery is used on the electronic device 20, the electronic device 20 is used to support direct current fast charging, i.e. high power charging. The charging phase of the electronic device 20 at this time may be classified into a trickle charging phase, a constant current charging phase, a constant voltage charging phase, and a charging termination phase.
In the figure, curve a represents the voltage of the battery, and curve B represents the charging current of the battery.
During the trickle charge phase, the electronic device adopts an LDO (Low Dropout Regulator, low dropout linear regulator) charging mode, corresponding to INT0-INT1 in the diagram.
The present embodiment does not specifically limit the constant current charging stage to be divided into several stages, and the constant current charging stage may be divided into a plurality of stages, for example: CC1 phase (between INT1-INT2 in the corresponding graph), CC2 phase (between INT2-INT3 in the corresponding graph), and CC3 phase (between INT3-INT4 in the corresponding graph).
CV in the figure represents the constant voltage charging phase, and corresponds to INT4-INT5 in the figure. C1, C2 and C3 represent charging currents of the CC1 stage, the CC2 stage and the CC3 stage at the constant current charging stage, respectively.
The trickle charge phase, the constant current charge phase and the constant voltage charge phase are described in detail below, respectively.
When the voltage of the battery of the electronic device is smaller than the pre-charge threshold, the charging device can determine that the charging phase of the battery is a trickle charging phase when the electronic device is charged.
The application does not limit the precharge threshold, and the precharge threshold may be 2.8V or 3V, and a person skilled in the art may select an appropriate precharge threshold according to actual needs.
In the trickle charging phase, the charging device outputs a smaller voltage to the electronic device to charge the battery with a small current.
In the trickle charge phase, as the charge time increases, the amount of charge of the battery increases, and the voltage of the battery increases. When the voltage of the battery is equal to or higher than the pre-charge threshold, the charging phase is changed from the trickle charging phase to the constant current charging phase.
In the constant current charging stage, the battery can be charged with large current, and the charging power is high at the moment, namely the quick charging function is realized. As the charging time increases, the voltage of the battery further increases. When the voltage of the battery is equal to or higher than the fast charge threshold, the charging phase is changed from a constant current charging phase to a constant voltage charging phase.
In the constant voltage charging phase, the voltage of the battery is almost maintained, the charging current gradually decreases, and the charging process is gradually completed.
At present, the high-power charging technologies of different equipment manufacturers are different, and the charging power of batteries is also different. When the electronic equipment uses a nonstandard distribution battery or a poor battery, the charging power may exceed the charging specification of the battery, so that safety accidents occur, for example, the charging current in the constant-current charging process is too high, the battery is possibly damaged, and the risk of fire and explosion exists in serious cases.
At present, an encryption anti-counterfeiting integrated IC is generally adopted to realize the safety protection of a battery. When the encryption anti-counterfeiting IC finds that the current battery of the electronic equipment is a nonstandard distribution battery, the electronic equipment can reduce the charging power of the battery, for example, small current charging is adopted, so that potential safety hazards are reduced. The adopted encryption anti-counterfeiting IC needs to be internally provided with an encryption algorithm, so that the encryption anti-counterfeiting IC is complex in design and high in hardware cost.
In order to solve the above problems, the present application provides a battery protection device, a battery protection method, and an electronic device, which utilize a readable and writable register of a logic IC to store a matching relationship between the electronic device and a battery on the logic IC, when a standard battery is replaced with a non-standard battery or a bad battery, the power failure information of the logic IC is cleared, and after restarting, the information is not matched, so that the replacement of the battery can be detected, and the corresponding charging mode is changed. Therefore, the scheme can reduce hardware cost on the premise of ensuring the safety of battery charging.
In order to make the technical solution more clearly understood by those skilled in the art, the following description will refer to the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
The words "first," "second," and the like in the description herein are used for descriptive purposes only and are not to be interpreted as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
In the present application, unless explicitly specified and limited otherwise, the term "coupled" is to be construed broadly, and for example, "coupled" may be either fixedly coupled, detachably coupled, or integrally formed; may be directly connected or indirectly connected through an intermediate medium.
Referring to fig. 3, a schematic diagram of a battery protection device according to an embodiment of the present application is shown.
The battery protection device includes: a main control chip 401 and a logic chip 301.
The main control chip 401 is disposed on the motherboard 40 of the electronic device, and is an important component of the motherboard of the electronic device. In one possible implementation, the main control chip 401 may be a CPU of an electronic device.
The main control chip 401 stores second identification information thereon.
The battery 194 of the electronic device includes the battery protection plate 30 and the battery cell 31. The battery protection board 31 is mainly an integrated circuit board for protecting a rechargeable battery (generally referred to as a lithium battery). Since the battery cell 31 itself cannot be overcharged, overdischarged, overcurrent, short-circuited, and ultra-high temperature charge and discharge, the battery cell 31 is always formed together with the battery protection plate 30, and is packaged together to form a battery.
The logic chip 301 may also be referred to as a programmable logic device (Programmable Logic Device, PLD), which is an electronic component, in short, also an integrated circuit. The logic chip 301 belongs to a digital type circuit chip. In this embodiment, the logic chip 301 is configured to store the first identification information. In other words, in the embodiment of the present application, the readable and writable register on the logic chip 301 is applied for storage, that is, the logic chip 301 only needs to implement a simple storage function, and no complex encryption algorithm is required to be built in, so that the implementation mode of the logic chip 301 is simple and the cost is lower.
The first identification information and the second identification information are used for representing the matching relation between the electronic equipment and the battery, and when the first identification information is matched with the second identification information, the electronic equipment is represented to be matched with the battery at the moment, namely the battery is not replaced; and when the first identification information is not matched with the second identification information, the electronic equipment is characterized in that the risk of abnormal power failure exists in the electronic equipment, or the battery of the electronic equipment is replaced.
The main control chip 401 is electrically connected to the logic chip 301. The embodiment of the present application is not particularly limited to the implementation manner of electrical connection, and for example, connection may be implemented by a single signal line or connection may be implemented by a plurality of signal lines.
When the electronic device is started or starts to charge, the main control chip 401 reads the second identification information stored by itself, and reads the first identification information stored by the logic chip 301. The main control chip 401 compares the first identification information with the second identification information, and when the first identification information is matched with the second identification information, the battery of the electronic device is characterized as not being replaced at the moment, and the battery can be charged according to a normal charging mode at the moment. At this time, the main control chip 401 may control the charge management module of the electronic device to adopt a normal charge mode for the electronic device, and execute a normal charge policy, for example, high-power fast charge may be normally adopted.
When the first identification information is not matched with the second identification information or the first identification information is not read, the situation that the battery of the electronic equipment is possibly replaced at the moment is represented, and in order to avoid potential safety hazards, the main control chip 401 controls the charging management module of the electronic equipment to reduce the charging power of the battery.
In summary, by using the battery protection device provided in the embodiment of the present application, a common logic chip is selected, and by using a readable/writable register of a logic IC, a matching relationship between an electronic device and a battery is stored on the logic chip, and the matching relationship is also stored on a main control chip, and by comparing the two matching relationships, whether the battery is replaced can be determined. According to the scheme, an encryption algorithm does not need to be built in the logic chip, and the requirement on the logic chip is low, so that the hardware cost can be reduced on the premise of ensuring the safety of battery charging, and the method has higher practicability.
The working principle of the battery protection device is described below in connection with a specific implementation.
Referring to fig. 4, a schematic diagram of another battery protection device according to an embodiment of the present application is shown.
The battery protection device differs from fig. 3 in that it further comprises a data interface 402.
When the electronic device leaves the factory, the battery protection device is built in, and the logic chip 301 stores initial first identification information when leaving the factory. The initial first identification information is generated based on an identification code of the electronic device, an identification code of the battery, and initial time information.
In one possible implementation, the identification code of the electronic device is a product Serial Number (SN) code of the electronic device, and the identification code of the battery is an SN code of the battery. In practical application, the identification code may also be other characters or character strings with unique identification function, which is not limited in the embodiment of the present application.
The logic chip 301 and the main control chip 401 are electrically connected to each other to realize communication. The embodiment of the present application is not particularly limited to the implementation manner of electrical connection, and for example, connection may be implemented by a single signal line or connection may be implemented by a plurality of signal lines.
In addition, the main control chip 401 is disposed on the motherboard 40 of the electronic device, and the ground of the logic chip 301 is provided by the motherboard 40, that is, the ground terminal of the chip 301 is connected to the motherboard 40 through a trace, and the ground is realized through the ground port of the motherboard 40. The ground terminal of the logic chip 301 clears the first identification information stored in itself when disconnected from the main board 40.
That is, if the battery 194 is replaced, the logic chip 301 is powered down, and the logic chip 301 is configured to clear data when powered down, since the ground terminal of the chip 301 is connected to the motherboard 40 through a trace to achieve grounding. In other embodiments, the logic chip 301 may also be configured to wait for a certain time (e.g., several seconds) for the data to be cleared when power is lost, so as to eliminate the first identification information from being cleared due to accidents such as occasional poor contact.
The recognition principle of the battery protection device is specifically described below.
When the electronic device is powered on or charged by the charging device, the main control chip 401 obtains the stored second identification information, and the second identification information is generated according to the identification code of the electronic device, the identification code of the battery and the network time.
The main control chip 401 reads the first identification information stored in the logic chip 301. Similarly, the first identification information is generated according to the identification code of the electronic device, the identification code of the battery and the network time.
When the main control chip 401 reads the first identification information and the first identification information is matched with the second identification information, the battery of the electronic device is not replaced at the moment.
The first identification information is matched with the second identification information, which means that the identification codes of the equipment, the battery and the network time which are characterized by the first identification information and the second identification information are the same. The network time may be the time when the last time the main control chip 401 updated the first identification information and the second identification information, or the time when the last time the main control chip 401 performs battery identification.
For the first-time opening or first-time charging device, the network time corresponding to the first identification information and the second identification information may be set to be an initial network time, which is not specifically limited in the embodiment of the present application
When the main control chip 401 reads the first identification information and the first identification information is matched with the second identification information, the main control chip 401 generates updated first identification information and updated second identification information according to the current time, the identification code of the electronic device and the identification code of the battery, stores the updated second identification information and writes the updated first identification information into the logic chip 301. In one possible implementation, the first identification information generated by the main control chip 401 is consistent with the data included in the second identification information, but is stored on a different device.
In practical applications, in some embodiments, the main control chip 401 stores the updated second identification information after the first identification information is written into the logic chip 301 successfully; otherwise, the original second identification information is kept unchanged.
Then, the main control chip 401 controls the charging management module of the electronic device to charge the battery according to the normal charging mode, for example, to perform high-power fast charging on the battery.
In other embodiments, when the first identification information read by the main control chip 401 does not match the second identification information, or the first identification information is not read, the main control chip 401 controls the charge management module of the electronic device to reduce the charging power of the battery, which will be described below.
In a possible case, the battery is replaced, but the logic chip 301 described in the application is disposed in the replaced battery, but the electrical connection between the logic chip 301 and the main control chip 401 is normal due to the different identification codes of the battery, but the first identification information stored on the logic chip 301 is inconsistent with the second identification information stored on the main control chip 401, and at this time, the first identification information read by the main control chip 401 is not null data.
When the read first identification information and second identification information are inconsistent, the main control chip 401 controls the charging management module of the electronic device to charge the electronic device according to the lowest charging power supported by the battery device, so that the battery is prevented from being damaged by high-power charging, and potential safety hazards are reduced.
The embodiment of the application is not limited to the specific specification of the minimum charging power, and can be determined according to the actual situation of the electronic equipment. In addition, when the first identification information and the second identification information read by the main control chip 401 are inconsistent, the time of this identification may also be recorded, and a corresponding log may be generated to record, so as to facilitate subsequent equipment maintenance.
In another possible scenario, the user replaces a non-standard battery and the logic chip 301 described herein is not provided in the battery. Therefore, the first identification information cannot be obtained by the main control chip 401 at this time, and the electrical connection between the main control chip 401 and the logic chip 301 is disconnected at this time.
When the first identification information is not acquired by the main control chip 401 and the voltage of the battery is larger than the first voltage value, the charging management module of the electronic equipment is controlled to charge the electronic equipment according to the lowest charging power supported by the battery equipment, so that the battery is prevented from being damaged by high-power charging, and potential safety hazards are reduced.
Wherein the criterion for setting the voltage of the battery to be greater than the first voltage value is because: if the battery is not replaced and the battery is over-discharged, the logic chip 301 may be powered down, and at this time, the main control chip 401 cannot read the first identification information, so that the logic chip 301 easily misjudges that the battery is replaced, and in order to avoid this situation, a condition that the voltage of the battery is greater than the first voltage value is set. When the voltage of the battery is larger than the first voltage value, the battery is characterized that the battery is not overdischarged at the moment, and erroneous judgment is avoided.
In practical applications, the overdischarge of the battery may be caused by the electronic device not being used for a long time, and the battery is not charged for a long time, which results in excessive power consumption.
The embodiment of the application is not limited to the specific specification of the minimum charging power, and can be determined according to the actual situation of the electronic equipment. In addition, when the first identification information cannot be obtained and the voltage of the battery is greater than the first voltage value, the main control chip 401 determines that the battery may be replaced at this time, and may record the time of this identification, and generate a corresponding log to record, so as to facilitate subsequent equipment maintenance.
In yet another possible implementation, it may be determined whether to reduce the charging power to the battery according to whether the electrical connection with the logic chip 301 is normal or not by the main control chip 401. When the electrical connection is disconnected, the abnormal outage behavior exists at the moment, on one hand, the electrical connection is disconnected possibly due to battery replacement, on the other hand, the electrical connection is disconnected possibly due to the fact that the electronic equipment is subjected to water inflow, collision and the like, and no matter which situation occurs, the normal high-power charging mode is adopted for the battery, so that potential safety hazards exist. Therefore, when the electrical connection between the main control chip 401 and the logic chip 301 is disconnected, the charging management module of the electronic device is controlled to charge the battery according to the lowest charging power supported by the electronic device.
In addition, when the electrical connection between the main control chip 401 and the logic chip 301 is disconnected, the time of this identification can be recorded, and a corresponding log is generated to record, so as to facilitate subsequent equipment maintenance.
In yet another possible implementation, the battery of the electronic device is not replaced, but the battery is overdriven, e.g., the electronic device is idle for a long time and the battery is not charged, at which time the main control chip 401 does not acquire the first identification information. In order to identify the situation, misjudgment of battery replacement is avoided, when the logic chip does not read the first identification information, the voltage of the battery when the battery starts to be charged is smaller than a first voltage value, and the time for the voltage of the battery to be reduced to the first voltage value from a second voltage value is longer than a preset time, the electronic equipment is controlled to charge the battery according to a derating charging mode.
The first voltage value, the second voltage value and the preset time are not particularly limited in this application. The first voltage value is smaller than the second voltage value, and the electronic device is taken as a mobile phone as an example, the first voltage value can be set to be 2.6V, and the second voltage value can be set to be 3.6V. When the voltage of the battery is below the first voltage value, which is indicative of the battery voltage being too low, over-discharge may occur. The preset time may be determined by testing the electronic device for idle in advance. In practical applications, the main control chip 401 may determine the time when the voltage of the battery decreases from the second voltage value to the first voltage value from the latest log of the electronic device.
The embodiment of the application does not limit the specific specification of the de-rating charging mode, the charging power of the de-rating charging mode is lower than the charging power of the normal charging mode and higher than the lowest charging power supported by the electronic equipment, and the specific charging power can be determined according to the actual situation of the electronic equipment. In practical applications, since the battery of the electronic device is simply overdischarged and not replaced in this case, the charging power of the derated charging mode may be set to be slightly smaller than that of the normal charging mode.
In addition, the main control chip 401 may record the time identified at this time and generate a corresponding log to record, so as to facilitate subsequent equipment maintenance.
In another possible implementation, the battery of the electronic device is not replaced, but the logic chip 301 is powered down due to an unexpected drop or collision or a short disassembly during maintenance, the first identification information stored on the logic chip 301 is emptied, and then the logic chip 301 is powered up normally and resumes normal connection with the main control chip 401. To recognize this, the main control chip 401 controls the charge management module of the electronic device to charge the battery in the derated charge mode when the electrical connection with the logic chip 301 is normal, but the first identification information is read as null data.
In addition, the main control chip 401 may record the time identified at this time and generate a corresponding log to record, so as to facilitate subsequent equipment maintenance.
The device motherboard 40 of the present embodiment further includes a data interface 402 thereon. The production line or maintenance site of the electronic device may connect the data interface with an external device. The main control chip 401 authenticates the external device to determine whether the external device is compliant or an official device. When the authentication of the external device passes, the external device can control and read and write the main control chip 401, store the updated second identification information in the main control chip 401, and control the main control chip 401 to write the updated first identification information into the logic chip.
When external equipment is connected to the production line, the identification information stored in the main control chip 401 and the logic chip 301 can be initialized; when the maintenance point is connected with an external device, the data stored on the logic chip 301 can be updated through the main control chip 401, namely, when the battery of the electronic device needs to be replaced, the standard battery is replaced first, the identification code of the new battery, namely, the device serial number of the new battery is obtained, and then the corresponding identification information is updated on the main control chip 401 and the logic chip 301 through the data interface 402.
In addition, for the following two cases, the external device may be connected to the data interface 402, so that the corresponding identification information may be updated on the main control chip 401 and the logic chip 301 again, so that the charge management module of the electronic device may use a normal charging mode for the battery:
1. the battery of the electronic equipment is not replaced, but due to the conditions of unexpected falling or collision, or short disassembly in maintenance, the logic chip is powered down, the first identification information stored on the logic chip is emptied, and then the logic chip is powered up normally and is connected with the main control chip normally.
2. The battery of the electronic device is not replaced, but the battery is overdischarged, for example, the electronic device is idle for a long time and is not charged, and at this time, the main control chip cannot acquire the first identification information.
In both cases, since the replacement of the battery is not actually performed, the normal charge mode of the battery can be restored.
In summary, by using the battery protection device provided in the embodiment of the present application, a common logic chip is selected, and by using a readable/writable register of a logic IC, a matching relationship between an electronic device and a battery is stored on the logic chip, and the matching relationship is also stored on a main control chip, and by comparing the two matching relationships, whether the battery is replaced can be determined. According to the scheme, an encryption algorithm does not need to be built in the logic chip, and the requirement on the logic chip is low, so that the hardware cost can be reduced on the premise of ensuring the safety of battery charging, and the method has higher practicability. In addition, the battery protection device can also distinguish the situations of over-discharge of the battery, communication faults of the main control chip and the logic chip which are not replaced, short power failure which are not replaced, and the like, so that the corresponding charging mode is adopted, the battery protection device has higher practicability, the safety of the electronic equipment is further improved, and the accident risk is reduced.
Based on the battery protection device provided by the embodiment, the application also provides a battery protection method, and the battery protection method is specifically described below with reference to the accompanying drawings.
Referring to fig. 5, a flowchart of a battery protection method according to an embodiment of the present application is shown.
The method is applied to a main control chip of the electronic device, the main control chip stores second identification information, the main control chip can read first identification information stored by the logic chip, and the specific implementation manner of the main control chip and the logic chip can be referred to the description in the above embodiments and is not repeated here. The method comprises the following steps:
s101: and reading the first identification information stored by the logic chip.
The logic chip is electrically connected with the main control chip and is positioned on the battery protection board.
When the electronic equipment is started or starts to charge, the main control chip reads the second identification information stored by the main control chip and reads the first identification information stored by the logic chip.
The first identification information and the second identification information are used for representing the matching relation between the electronic equipment and the battery, and when the first identification information is matched with the second identification information, the electronic equipment is represented to be matched with the battery at the moment, namely the battery is not replaced; and when the first identification information is not matched with the second identification information, the electronic equipment is characterized in that the risk of abnormal power failure exists in the electronic equipment, or the battery of the electronic equipment is replaced.
S102: when the first identification information is matched with the second identification information, the electronic equipment is controlled to charge the battery according to a normal charging mode.
The main control chip can control the charging management module of the electronic equipment to adopt a normal charging mode for the electronic equipment and execute a normal charging strategy, for example, high-power quick charging can be adopted normally.
S103: and when the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery.
When the first identification information is not matched with the second identification information or the first identification information is not read, the situation that the battery of the electronic equipment is possibly replaced at the moment is represented, and at the moment, in order to avoid potential safety hazards, the main control chip controls the charging management module of the electronic equipment to reduce the charging power of the battery.
The following description is made in connection with specific implementations.
Referring to fig. 6, a flowchart of another battery protection method according to an embodiment of the present application is shown.
S201: and reading the first identification information stored by the logic chip.
S202: whether the first identification information matches the second identification information.
If yes, executing S203; otherwise, S205 is performed.
S203: generating updated first identification information and updated second identification information according to the current time, the identification code of the electronic equipment and the identification code of the battery, storing the updated second identification information and writing the updated first identification information into the logic chip.
At this time, after each charging, the first identification information and the second identification information are updated, that is, the first identification information and the second identification information are not fixed, so that the safety of the information is improved.
The identification code of the electronic equipment is the product serial code of the electronic equipment, and the identification code of the battery is the product serial code of the battery.
S204: and the control electronic equipment charges the battery according to the normal charging mode.
The main control chip can control the charging management module of the electronic equipment to adopt a normal charging mode for the electronic equipment and execute a normal charging strategy, for example, high-power quick charging can be adopted normally.
S205: whether the electrical connection between the main control chip and the logic chip is disconnected.
If yes, executing S211; if not, S206 is performed.
S206: whether the first identification information is read.
If yes, executing S209; if not, S207 is performed.
S207: whether the battery voltage is greater than a first voltage value.
If yes, executing S211; if not, S208 is performed.
When the voltage of the battery before the electronic equipment is started or before the electronic equipment starts to charge is larger than a first voltage value, the situation that the battery of the electronic equipment is not over-discharged at the moment is indicated, and the situation that the battery is possibly replaced at the moment is judged. Taking the electronic device as an example of a mobile phone, the first voltage value may be set to 2.6V, and when the voltage of the battery is lower than the first voltage value, it is indicated that the battery voltage is too low at this time, and overdischarge may occur.
S208: whether the voltage of the battery is reduced from the second voltage value to the first voltage value is longer than a preset time or not.
If yes, executing S210; if not, S211 is executed.
And when the time for the voltage of the battery to drop from the second voltage value to the first voltage value is less than the preset time, the battery is characterized as not being over-discharged at the moment, and therefore the battery is judged to be possibly replaced.
And when the time for the voltage of the battery to drop from the second voltage value to the first voltage value is longer than the preset time, the electronic equipment is characterized as being idle for a long time and not charging the battery, so that the voltage of the battery is too low, and overdischarge possibly occurs. The preset time may be determined by testing the electronic device for idle in advance.
In practical applications, the time when the voltage of the battery drops from the second voltage value to the first voltage value may be determined from a recent log of the electronic device.
S209: whether the read first identification information is null data.
If yes, executing S210; if not, S211 is executed.
When the first identification information is null data, the following situation may occur during characterization: the battery of the electronic equipment is not replaced, but due to the conditions of unexpected falling or collision, or short disassembly in maintenance, the logic chip is powered down, the first identification information stored on the logic chip is emptied, and then the logic chip is powered up normally and is connected with the main control chip normally.
When the first identification information is not null data, the following situation may occur during characterization: the battery is replaced, but the logic chip is arranged in the replaced battery, but the identification codes of the battery are different, so that the first identification information stored on the logic chip is inconsistent with the second identification information stored on the main control chip although the electrical connection between the logic chip and the main control chip is normal.
S210: the control electronics charge the battery in a derated charging mode.
The embodiment of the application does not limit the specific specification of the de-rating charging mode, the charging power of the de-rating charging mode is lower than the charging power of the normal charging mode and higher than the lowest charging power supported by the electronic equipment, and the specific charging power can be determined according to the actual situation of the electronic equipment. In practical applications, the charging power of the derated charging mode may be set to be slightly smaller than the charging power of the normal charging mode.
S211: the control electronics charge the battery at the lowest supported charge power.
The charging management module for controlling the electronic equipment charges the electronic equipment according to the lowest charging power supported by the battery equipment so as to avoid damaging the battery by high-power charging, thereby reducing potential safety hazards.
The above steps are merely for convenience of description, and do not constitute limitation of the technical solution of the present application. In practical applications, the person skilled in the art can adjust the above steps according to the situation of the electronic device.
Further, in other embodiments, the method may further include the steps of:
connecting external equipment through a data interface, and authenticating the external equipment;
and after the authentication is passed, storing the updated second identification information under the control of the external equipment, and writing the updated first identification information into the logic chip.
When external equipment is connected to the production line, the identification information stored in the main control chip and the logic chip can be initialized; when the maintenance point is connected with the external equipment, the data stored on the logic chip can be updated through the main control chip, namely when the battery of the electronic equipment needs to be replaced, the standard battery is replaced first, the identification code of the new battery, namely the equipment serial number of the new battery, is obtained, and then the corresponding identification information is updated on the main control chip and the logic chip through the data interface.
In addition, for the following two cases, since the battery of the electronic device is not replaced, the corresponding identification information can be updated again on the main control chip and the logic chip by connecting the external device to the data interface, so that the charging management module of the electronic device can adopt a normal charging mode for the battery:
1. the battery of the electronic equipment is not replaced, but the logic chip is powered down due to the conditions of unexpected falling or collision, or short disassembly in maintenance, the first identification information stored on the logic chip is emptied, and then the logic chip is normally powered up and is normally connected with the main control chip;
2. The battery of the electronic device is not replaced, but the battery is overdischarged, for example, the electronic device is idle for a long time and is not charged, and at this time, the main control chip cannot acquire the first identification information.
In summary, by using the method, the matching relationship between the electronic device and the battery is stored on the logic chip, and the matching relationship is also stored on the main control chip, and whether the battery is replaced can be determined by comparing the two matching relationships. The method has the advantages that an encryption algorithm is not required to be built in the logic chip, and the requirement on the logic chip is low, so that the hardware cost can be reduced on the premise of ensuring the safety of battery charging, and the method has higher practicability. In addition, the method can distinguish the situations of over-discharge of the battery, communication faults of the main control chip and the logic chip when the battery is not replaced, short power failure when the battery is not replaced and the like, so that the corresponding charging mode is adopted, the method has higher practicability, the safety of the electronic equipment is further improved, and the accident risk is reduced.
Based on the battery protection device and the battery protection method provided by the above embodiments, the present application further provides an electronic device, and the following detailed description is given with reference to the accompanying drawings.
Referring to fig. 7, a schematic diagram of an electronic device according to an embodiment of the present application is provided.
The electronic device 70 provided in the embodiment of the present application includes a battery protection device 701 and a battery cell 31.
The battery protection device 701 includes a logic chip 301 and a main control chip 401.
The logic chip 301 is located at the battery protection board 30. The main control chip 401 may be integrated in the motherboard 40 of the electronic device 70.
The specific implementation and the working principle of the logic chip 301 and the main control chip 401 can be referred to the related description in the above embodiments, and the embodiments of the present application are not repeated here.
The battery cell 31 and the battery protection board 30 are packaged to form the battery 194, that is, the logic chip 301 is located on the battery 194.
Battery 194 is used to power electronic device 70.
In some embodiments, the main control chip further includes a data interface 402, which is connected to an external interface on the motherboard 40 through a wire. When the external device is externally connected to the external interface on the motherboard 40, that is, the external device is externally connected to the data interface 402. The embodiment of the application is not particularly limited to the type of the external device, and may be, for example, a mobile phone, a tablet computer, a PC or a notebook computer, etc.
The production line or maintenance site of the electronic device may connect the data interface with an external device. The main control chip 401 authenticates the external device to determine whether the external device is compliant or an official device. When the authentication of the external device passes, the external device can control and read and write the main control chip 401, store the updated second identification information in the main control chip 401, and control the main control chip 401 to write the updated first identification information into the logic chip.
When external equipment is connected to the production line, the identification information stored in the main control chip 401 and the logic chip 301 can be initialized; when the maintenance point is connected with an external device, the data stored on the logic chip 301 can be updated through the main control chip 401, namely, when the battery of the electronic device needs to be replaced, the standard battery is replaced first, the identification code of the new battery, namely, the device serial number of the new battery is obtained, and then the corresponding identification information is updated on the main control chip 401 and the logic chip 301 through the data interface 402.
In addition, for the following two cases, the external device may be connected to the data interface 402, so that the corresponding identification information may be updated on the main control chip 401 and the logic chip 301 again, so that the charge management module of the electronic device may use a normal charging mode for the battery:
1. the battery of the electronic equipment is not replaced, but due to the conditions of unexpected falling or collision, or short disassembly in maintenance, the logic chip is powered down, the first identification information stored on the logic chip is emptied, and then the logic chip is powered up normally and is connected with the main control chip normally.
2. The battery of the electronic device is not replaced, but the battery is overdischarged, for example, the electronic device is idle for a long time and is not charged, and at the moment, the main control chip cannot normally acquire the first identification information.
In one possible implementation, the data interface 402 may be connected to a USB interface on the electronic device, where an external device may connect to the data interface 402 via the USB interface of the electronic device. The USB interface may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc., which is not specifically limited in this embodiment.
The embodiments of the present application do not specifically limit the type of electronic device, and the electronic device may be a mobile phone, a wearable electronic device (e.g., a smart watch), a tablet computer, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, or the like.
In summary, the battery protection device is applied to the electronic device, the battery protection device selects a common logic chip, the matching relationship between the electronic device and the battery is stored on the logic chip by using a readable and writable register of the logic chip, the matching relationship is also stored on the main control chip, and whether the battery is replaced can be determined by comparing the two matching relationships. According to the scheme, an encryption algorithm does not need to be built in the logic chip, the requirement on the logic chip is low, and the main control chip can directly multiplex the processor on the electronic equipment, so that the hardware cost of the electronic equipment is reduced on the premise of ensuring the charging safety of the battery, and the method has higher practicability. In addition, the battery protection device can also distinguish the situations of over-discharge of the battery, communication faults of the main control chip and the logic chip which are not replaced, short power failure which are not replaced, and the like, so that the corresponding charging mode is adopted, the battery protection device has higher practicability, the safety of the electronic equipment is further improved, and the accident risk is reduced.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (19)

1. A battery protection device, characterized in that is provided in an electronic apparatus, a battery of the electronic apparatus includes a battery cell and a battery protection board, the battery protection device includes: a main control chip and a logic chip;
the logic chip is electrically connected with the main control chip;
The logic chip is positioned on the battery protection board;
the logic chip is used for storing first identification information;
the main control chip is used for storing second identification information, reading the first identification information stored by the logic chip, and controlling the electronic equipment to charge the battery according to a normal charging mode when the first identification information is matched with the second identification information; and when the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery.
2. The battery protection device according to claim 1, wherein the main control chip is specifically configured to generate updated first identification information and updated second identification information according to a current time, an identification code of the electronic device, and an identification code of the battery when the first identification information matches the second identification information, store the updated second identification information, and write the updated first identification information into the logic chip.
3. The battery protection device of claim 2, wherein the identification code of the electronic device is a product serial code of the electronic device and the identification code of the battery is a product serial code of the battery.
4. The battery protection device according to claim 3, wherein the main control chip is disposed on a motherboard of the electronic apparatus;
the grounding end of the logic chip is used for being grounded through the main board;
and when the grounding end of the logic chip is disconnected with the main board, the stored first identification information is cleared.
5. The battery protection device according to claim 4, wherein the main control chip is specifically configured to control the electronic device to charge the battery according to a minimum charging power supported by the electronic device when the read first identification information and the read second identification information are inconsistent, or when the first identification information is not read and the voltage of the battery is greater than a first voltage value.
6. The battery protection device of claim 5, wherein the main control chip is further configured to control the electronic device to charge the battery according to a minimum charging power supported by the electronic device when the main control chip is electrically disconnected from the logic chip.
7. The battery protection device according to claim 4, wherein the main control chip is specifically configured to control the electronic device to charge the battery according to a derating charging mode when the first identification information is not read, the voltage of the battery when charging is started is smaller than a first voltage value, the time when the voltage of the battery is reduced from a second voltage value to the first voltage value is longer than a preset time, the charging power of the derating charging mode is lower than the charging power of the normal charging mode and higher than the lowest charging power supported by the electronic device, and the second voltage value is greater than the first voltage value.
8. The battery protection device of claim 7, wherein the main control chip is further configured to control the electronic device to charge the battery according to the derating charging mode when the electrical connection with the logic chip is normal but the first identification information is read as null data.
9. The battery protection device according to any one of claims 1 to 8, wherein the main control chip further comprises a data interface thereon;
the data interface is used for connecting with external equipment;
the main control chip is also used for authenticating the external equipment, storing the updated second identification information under the control of the external equipment after the authentication is passed, and writing the updated first identification information into the logic chip.
10. The battery protection method is characterized by being applied to a main control chip of electronic equipment, wherein the main control chip stores second identification information, and the method comprises the following steps:
reading first identification information stored by a logic chip, wherein the logic chip is electrically connected with the main control chip and is positioned on a battery protection board;
when the first identification information is matched with the second identification information, the electronic equipment is controlled to charge the battery according to a normal charging mode;
And when the first identification information is not matched with the second identification information or the first identification information is not read, controlling the electronic equipment to reduce the charging power of the battery.
11. The battery protection method according to claim 10, wherein when the first identification information matches the second identification information, controlling the electronic device to charge the battery in a normal charging mode specifically includes:
when the first identification information is matched with the second identification information, generating updated first identification information and updated second identification information according to the current time, the identification code of the electronic equipment and the identification code of the battery;
storing the updated second identification information and writing the updated first identification information into the logic chip;
and controlling the electronic equipment to charge the battery according to a normal charging mode.
12. The battery protection method of claim 11, wherein the identification code of the electronic device is a product serial code of the electronic device, and the identification code of the battery is a product serial code of the battery.
13. The battery protection method according to claim 11, wherein the main control chip is disposed on a motherboard of the electronic device; the grounding end of the logic chip is grounded through the main board; and when the grounding end of the logic chip is disconnected with the main board, the stored first identification information is cleared.
14. The method for protecting a battery according to claim 13, wherein when the first identification information does not match the second identification information or the first identification information is not read, controlling the electronic device to reduce the charging power of the battery specifically includes:
and when the read first identification information is inconsistent with the second identification information, or when the first identification information is not read and the voltage of the battery is larger than a first voltage value, controlling the electronic equipment to charge the battery according to the lowest charging power supported by the electronic equipment.
15. The battery protection method of claim 14, wherein the method further comprises:
and when the electric connection between the electronic equipment and the logic chip is disconnected, controlling the electronic equipment to charge the battery according to the lowest charging power supported by the electronic equipment.
16. The method for protecting a battery according to claim 13, wherein when the first identification information does not match the second identification information or the first identification information is not read, controlling the electronic device to reduce the charging power of the battery specifically includes:
when the first identification information is not read, the voltage of the battery when the battery starts to be charged is smaller than a first voltage value, and the time when the voltage of the battery is reduced from a second voltage value to the first voltage value is longer than a preset time, the electronic equipment is controlled to charge the battery according to a derating charging mode, the charging power of the derating charging mode is lower than the charging power of the normal charging mode and is higher than the lowest charging power supported by the electronic equipment, and the second voltage value is larger than the first voltage value.
17. The battery protection method of claim 16, wherein the method further comprises:
and when the electrical connection between the electronic device and the logic chip is normal, but the first identification information is read to be null data, controlling the electronic device to charge the battery according to the derating charging mode.
18. The battery protection method according to any one of claims 10 to 17, characterized in that the method further comprises:
connecting external equipment through a data interface, and authenticating the external equipment;
and after the authentication is passed, storing the updated second identification information under the control of the external equipment, and writing the updated first identification information into the logic chip.
19. An electronic device, characterized in that it comprises the battery protection device according to any one of claims 1-9, further comprising an electrical core;
the battery cell and the battery protection plate form the battery;
the battery is used for supplying power to the electronic equipment.
CN202210743212.3A 2022-06-28 2022-06-28 Battery protection device, battery protection method and electronic equipment Active CN116054301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743212.3A CN116054301B (en) 2022-06-28 2022-06-28 Battery protection device, battery protection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743212.3A CN116054301B (en) 2022-06-28 2022-06-28 Battery protection device, battery protection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116054301A true CN116054301A (en) 2023-05-02
CN116054301B CN116054301B (en) 2023-10-24

Family

ID=86113887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743212.3A Active CN116054301B (en) 2022-06-28 2022-06-28 Battery protection device, battery protection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116054301B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117578669A (en) * 2023-11-29 2024-02-20 苏州赛芯电子科技股份有限公司 Battery charging and discharging device, control method thereof and electronic equipment
CN117707618A (en) * 2023-06-30 2024-03-15 荣耀终端有限公司 Data reading method, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212410B1 (en) * 1997-02-24 2001-04-03 Nec Corporation Portable telephone apparatus with security function
JP2002165382A (en) * 2001-09-25 2002-06-07 Toshiba Corp Electronics apparatus system and charging control method of secondary battery pack
US20090256717A1 (en) * 2008-04-09 2009-10-15 Panasonic Corporation Battery authentication system, electronic device, battery, and battery charger
CN103606718A (en) * 2013-10-25 2014-02-26 小米科技有限责任公司 Battery, battery protection method, apparatus and system
CN107681730A (en) * 2017-10-26 2018-02-09 珠海市魅族科技有限公司 A kind of battery, terminal device, charging system, the recognition methods of battery and device
WO2018169323A1 (en) * 2017-03-17 2018-09-20 삼성전자 주식회사 Electronic device and control method therefor
CN212277961U (en) * 2020-06-16 2021-01-01 无锡北方湖光光电有限公司 Battery information reading circuit
CN112803525A (en) * 2020-12-31 2021-05-14 联想(北京)有限公司 Electronic device and charging control method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212410B1 (en) * 1997-02-24 2001-04-03 Nec Corporation Portable telephone apparatus with security function
JP2002165382A (en) * 2001-09-25 2002-06-07 Toshiba Corp Electronics apparatus system and charging control method of secondary battery pack
US20090256717A1 (en) * 2008-04-09 2009-10-15 Panasonic Corporation Battery authentication system, electronic device, battery, and battery charger
CN103606718A (en) * 2013-10-25 2014-02-26 小米科技有限责任公司 Battery, battery protection method, apparatus and system
WO2018169323A1 (en) * 2017-03-17 2018-09-20 삼성전자 주식회사 Electronic device and control method therefor
CN107681730A (en) * 2017-10-26 2018-02-09 珠海市魅族科技有限公司 A kind of battery, terminal device, charging system, the recognition methods of battery and device
CN212277961U (en) * 2020-06-16 2021-01-01 无锡北方湖光光电有限公司 Battery information reading circuit
CN112803525A (en) * 2020-12-31 2021-05-14 联想(北京)有限公司 Electronic device and charging control method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郝杰: "高性能锂电池充电器设计方案", 《中国新技术新产品》, pages 2 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707618A (en) * 2023-06-30 2024-03-15 荣耀终端有限公司 Data reading method, electronic device and storage medium
CN117578669A (en) * 2023-11-29 2024-02-20 苏州赛芯电子科技股份有限公司 Battery charging and discharging device, control method thereof and electronic equipment

Also Published As

Publication number Publication date
CN116054301B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN116054301B (en) Battery protection device, battery protection method and electronic equipment
KR100666518B1 (en) Portable electronic device comprising common serial bus connector
US11288407B2 (en) Method and electronic device for controlling voltage output to external electronic device according to size of voltage detected at signal terminal connected to external electronic device
CN102694400B (en) Imput output circuit
EP3750227B1 (en) Electronic device including control circuits controlling switches connected to charging circuit
CN108845655B (en) Electronic equipment control method and device, control circuit and electronic equipment
US11056903B2 (en) Electronic device including battery and method of controlling charging thereof
CN116365079B (en) Electronic device, method for determining whether battery is old or new, and computer-readable storage medium
CN106655344B (en) Charging method and device for mobile terminal
CN114268153B (en) Charge control circuit, charge control method, charge control device and storage medium
US20090037756A1 (en) System and Method for Suspending Operation of a Mobile Unit
US20230273662A1 (en) Information reading method, device, cable, charging system, and computer storage medium
KR20210014356A (en) Electronic device for preventing damage of usb device and operating method thereof
CN114221403B (en) Charging method and charging device
CN116315185A (en) Electronic device and battery management method
CN115543062B (en) Server interrupt operation execution method and device
US10481576B2 (en) Method and device for implementing connection control
CN113013934A (en) Electronic equipment, electronic device and charging method
KR20210033758A (en) Method for power supply and an electronic device thereof
CN114610135B (en) Power management method and management circuit of fingerprint module and electronic equipment
CN113872303A (en) Charging control method and device, electronic equipment and storage medium
CN114646876A (en) Battery connection detection method and device
CN112234683A (en) Charging control method of electronic equipment and electronic equipment
CN219067840U (en) Short-circuit protection circuit and electronic equipment
CN111241023A (en) Insertion detection circuit and method of flash memory card, and electronic device

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
GR01 Patent grant
GR01 Patent grant