External battery and electronic equipment for identifying external battery

By adding magnetic components and Hall effect devices to the external battery, and combining them with a switch, the electronic device can identify whether the external battery has a built-in coulomb counter chip. This solves the risk that the electronic device cannot recognize the battery without a coulomb counter chip, thus achieving both safety and compatibility.

CN224138168UActive Publication Date: 2026-04-17SHENZHEN XIN KINGBRAND TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
SHENZHEN XIN KINGBRAND TECH DEV CO LTD
Filing Date
2025-02-28
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In the existing technology, electronic devices cannot effectively identify whether an external battery without a coulomb counter chip has been overcharged or discharged on other devices, which may lead to battery bulging or explosion risks.

Method used

Magnetic components and Hall effect devices are added to the external battery, and a switching switch is added to the electronic device. The magnetic field strength and Hall effect output signal are used to identify whether the battery has a built-in coulomb counter chip, and the communication interface is switched to adapt to different types of batteries.

Benefits of technology

It enables electronic devices to recognize different types of external batteries, reducing the risk of battery swelling and explosion, and improving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224138168U_ABST
    Figure CN224138168U_ABST
Patent Text Reader

Abstract

The utility model provides an external battery and electronic equipment for identifying the external battery. The external battery comprises: a magnetic element for generating a magnetic field greater than a preset magnetic field intensity threshold; after the external battery is connected to the electronic equipment, the electronic equipment can identify whether the external battery is provided with a coulombmeter chip or not by detecting whether a magnetic field larger than a preset magnetic field intensity threshold value is generated in the electronic equipment or not. The external battery with the coulombmeter chip is defaulted to comprise the magnetic element, and the external battery without the coulombmeter chip does not comprise the magnetic element; the electronic equipment comprises a Hall device which is used for detecting the magnetic field intensity around the Hall device, generating a Hall output signal when the magnetic field intensity around the Hall device is greater than a preset magnetic field intensity threshold value, and sending the Hall output signal to a CPU (Central Processing Unit); and the CPU is used for judging whether an external battery connected to the electronic equipment is provided with a coulombmeter chip or not by detecting whether the Hall output signal is received or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of power supply technology, specifically to an external battery and an electronic device for identifying the external battery. Background Technology

[0002] With the widespread use of mobile phones and other electronic devices, improving their safety performance has always been an important research topic in this field. Mobile phones and other electronic devices typically require charging and discharging, leading to a need for battery safety protection and reducing risks associated with the battery itself.

[0003] Batteries used in mobile phones and other electronic devices are divided into non-removable internal batteries and removable external batteries. Removable external batteries are generally divided into two types: those with a built-in coulomb counter chip and those without. However, because internal batteries can accurately utilize their built-in chip, they possess various coulomb counter functions, such as detecting the number of charge-discharge cycles, obtaining different charging curves for different batteries, and determining the remaining lifespan capacity of the battery cells.

[0004] When electronic devices (such as mobile phones) use external batteries, if the external battery itself does not have a coulomb counter chip, although the electronic device can identify its charge level by detecting the voltage of the external battery, it cannot identify whether the external battery has been overcharged and discharged on other electronic devices, nor can it identify the specific charging and discharging records. If such an external battery is used interchangeably on multiple electronic devices for a long time, at best the battery cells will bulge and damage the casing of the mobile phone or other electronic devices; in severe cases, there is a risk of explosion. Utility Model Content

[0005] The main technical problem this invention addresses is how electronic devices can achieve circuit compatibility to accommodate both external batteries with and without coulomb counter chips. This invention provides an external battery and an electronic device for identifying the external battery.

[0006] According to a first aspect, one embodiment provides an external battery that can be detachably connected to an electronic device and supply power to the electronic device. The external battery has a built-in coulomb counter chip. The external battery also includes a magnetic element for generating a magnetic field greater than a preset magnetic field strength threshold. After the external battery is connected to the electronic device, the electronic device can identify whether the external battery has a built-in coulomb counter chip by detecting whether a magnetic field greater than the preset magnetic field strength threshold is generated within the electronic device.

[0007] In one embodiment, when an external battery is connected to an electronic device, the distance between the magnetic element and the Hall device on the electronic device is less than a preset distance threshold; wherein, the Hall device on the electronic device is used to generate a Hall output signal when the magnetic field strength around it is greater than the preset magnetic field strength threshold, and send the Hall output signal to the CPU on the electronic device.

[0008] In one embodiment, the I2C interface of the external battery is used for electrical connection of a switching device of the electronic device; wherein, the common input terminal of the switching device is used for electrical connection with the I2C interface of the external battery, the first output terminal of the switching device is electrically connected to the I2C pin of the CPU of the electronic device, and the second output terminal of the switching device is electrically connected to the NTC pin and ID pin of the CPU; the I2C pin is used to receive temperature information and identity information transmitted to the CPU by the external battery with a built-in coulomb counter chip, the NTC pin is used to receive temperature information transmitted to the CPU by other external batteries without a built-in coulomb counter chip, and the ID pin is used to receive identity information transmitted to the CPU by other external batteries without a built-in coulomb counter chip.

[0009] In one embodiment, the magnetic element is a magnet.

[0010] According to a second aspect, one embodiment provides an electronic device for identifying an external battery, the electronic device being powered by an external battery with a built-in coulomb counter chip or an external battery without a built-in coulomb counter chip; the external battery with a built-in coulomb counter chip includes a magnetic element capable of generating a magnetic field greater than a preset magnetic field strength threshold; the external battery without a built-in coulomb counter chip does not include the magnetic element; the electronic device includes: a Hall effect device for detecting the magnetic field strength around it, and generating a Hall output signal when the magnetic field strength around it is greater than the preset magnetic field strength threshold, and sending the Hall output signal to a CPU; the CPU for determining whether the external battery connected to the electronic device has a built-in coulomb counter chip by detecting whether the Hall output signal is received.

[0011] In one embodiment, the electronic device further includes: a switching switch, the common input terminal of which is electrically connected to a port of an external battery transmitting battery status information to the electronic device; the first output terminal of the switching switch is electrically connected to an I2C pin of the CPU; and the second output terminal of the switching switch is electrically connected to an NTC pin and an ID pin of the CPU. The I2C pin is used to receive temperature information and identity information transmitted to the CPU from an external battery with a built-in coulomb counter chip; the NTC pin is used to receive temperature information transmitted to the CPU from other external batteries without a built-in coulomb counter chip; and the ID pin is used to receive identity information transmitted to the CPU from other external batteries without a built-in coulomb counter chip.

[0012] In one embodiment, the GPIO pin of the CPU is electrically connected to the control pin of the switch. When the CPU receives the Hall output signal, the GPIO pin of the CPU can send a first control signal to the control pin of the switch. After receiving the first control signal, the switch establishes a path between the common input terminal and the first output terminal, enabling the CPU to communicate with the port of the external battery transmitting battery status information to the electronic device through its I2C pin. When the CPU does not receive the Hall output signal, the GPIO pin of the CPU can send a second control signal to the control pin of the switch. After receiving the second control signal, the switch establishes a path between the common input terminal and the second output terminal, enabling the CPU to communicate with the port of the external battery transmitting battery status information to the electronic device through its NTC pin and ID pin. When the first control signal is high, the second control signal is low; or, when the first control signal is low, the second control signal is high.

[0013] In one embodiment, when the external battery connected to the electronic device has a built-in coulomb counter chip, the port through which the external battery with the built-in coulomb counter chip transmits battery status information to the electronic device is the I2C interface; when the external battery connected to the electronic device does not have a built-in coulomb counter chip, the port through which the external battery without the built-in coulomb counter chip transmits battery status information to the electronic device is the NTC pin and the ID pin.

[0014] In one embodiment, the switching switch is model BCT4223 or SGM3715.

[0015] In one embodiment, the Hall device is designated as MH255.

[0016] The beneficial effects of this application are:

[0017] The external battery of this application includes: a magnetic element for generating a magnetic field greater than a preset magnetic field strength threshold; after the external battery is connected to the electronic device, the electronic device can identify whether the external battery has a built-in coulomb counter chip by detecting whether a magnetic field greater than the preset magnetic field strength threshold is generated inside the electronic device.

[0018] The electronic device of this application includes: a Hall device for detecting the magnetic field strength around it, and generating a Hall output signal when the magnetic field strength around it is greater than a preset magnetic field strength threshold, and sending the Hall output signal to a CPU; the CPU for determining whether the external battery connected to the electronic device has a built-in coulomb counter chip by detecting whether the Hall output signal is received. Attached Figure Description

[0019] Figure 1This is a schematic diagram of an external battery and electronic device module according to one embodiment. Detailed Implementation

[0020] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Similar elements in different embodiments are referred to by related similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of the present application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to the present application are not shown or described in the specification. This is to avoid obscuring the core parts of the present application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.

[0021] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.

[0022] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).

[0023] When electronic devices (such as mobile phones) use external batteries, if the external battery itself does not have a coulomb counter chip, although the electronic device can identify its charge level by detecting the voltage of the external battery, it cannot identify whether the external battery has been overcharged and discharged on other electronic devices, nor can it identify the specific charging and discharging records. If such an external battery is used interchangeably on multiple electronic devices for a long time, at best the external battery will bulge and damage the casing of the mobile phone or other electronic devices; in severe cases, there is a risk of explosion.

[0024] To address the aforementioned risks associated with external batteries, a coulomb counter chip needs to be added to external batteries that do not have a built-in coulomb counter. This coulomb counter chip is used to manage the battery's charge / discharge cycles and record the corresponding charge / discharge cycles for future reference. Electronic devices electrically connected to the external battery can then use the information from the coulomb counter chip to adjust the battery's charging current, lifespan status display, remaining capacity display, battery ID, temperature, and other related information.

[0025] To ensure compatibility between external batteries with and without coulomb counters, electronic devices require circuitry compatibility. External batteries with coulomb counters typically use an I2C interface, which can transmit various information, including charge level, voltage, current, temperature, battery ID, and state of health (SoH). External batteries without coulomb counters typically use a temperature detection pin (NTC pin) and a battery ID pin. The temperature detection pin (NTC pin) and the battery ID pin transmit temperature data and simple ID information, respectively. The I2C interface, temperature detection pin, and battery ID pin are all used to transmit the external battery's status information to the electronic device. For example, the battery status information may include the external battery's temperature and / or identification information.

[0026] Therefore, the technical concept of this application is: to add a Hall device inside an electronic device, and to add a magnetic element capable of generating a certain magnetic field strength on an external battery with a built-in coulomb counter chip; when the external battery with the magnetic element is connected to the electronic device, the magnetic field generated by the magnetic element on the external battery causes the Hall device on the electronic device to reach the trigger condition (such as the magnetic field strength exceeding a preset magnetic field strength threshold), and the Hall device will be continuously in a response state (such as continuously generating Hall voltage and continuously outputting Hall output signal); the electronic device can identify whether the external battery has a built-in magnetic element by detecting whether such a response state exists, and thus identify whether the external battery has a built-in coulomb counter chip.

[0027] A Hall effect device is a device that can detect magnetic fields and is widely used in various electronic devices, such as sensors and switches. A Hall effect device typically has three pins: a power pin, a ground pin, and an output pin. When a magnetic field is applied to the Hall effect device, the Hall voltage directs current from the power pin to the ground pin; the magnitude of this current is called the Hall output signal.

[0028] The technical solution of this application will be described in detail below with reference to the embodiments.

[0029] This application provides an external battery that can be detachably connected to and power an electronic device, and the external battery has a built-in coulomb counter chip. Please refer to... Figure 1 External battery B also includes:

[0030] Magnetic element 100 is used to generate a magnetic field greater than a preset magnetic field strength threshold.

[0031] When the external battery B is connected to the electronic device A, the electronic device A can identify whether the external battery connected to the electronic device A has a built-in coulomb counter chip by detecting whether a magnetic field greater than a preset magnetic field strength threshold is generated inside the electronic device A.

[0032] It is understood that those skilled in the art can determine the specific value of the preset magnetic field strength threshold according to the actual application scenario. For example, the preset magnetic field strength threshold can be 50 Gauss to ensure that the magnetic component can generate a sufficiently strong magnetic field to prevent the Hall device from failing to trigger. When the external battery is removed from the electronic device, the magnetic field generated by the magnetic component gradually disappears from the electronic device.

[0033] An external battery may also include battery cells and control circuitry. The battery cells are used to power electronic devices, and the control circuitry is used to detect whether the battery cells are powering the electronic devices.

[0034] In some embodiments, when an external battery is connected to an electronic device, the distance between the magnetic element and the Hall device on the electronic device is less than a preset distance threshold; wherein, the Hall device on the electronic device is used to generate a Hall output signal when the magnetic field strength around it (i.e., the Hall device) is greater than the preset magnetic field strength threshold, and sends the Hall output signal to the CPU on the electronic device.

[0035] It is understood that those skilled in the art can determine the preset distance threshold according to the actual application scenario to ensure that the magnetic field generated by the magnetic element on the external battery causes the Hall device on the electronic device to reach the trigger condition after the external battery is connected to the electronic device. For example, when the external battery is connected to the electronic device, the magnetic element on the external battery can be located directly opposite the Hall device on the electronic device.

[0036] In some embodiments, the I2C interface of the external battery is used for electrical connection of a switching device of the electronic device; wherein, the common input terminal of the switching device is used for electrical connection with the I2C interface of the external battery, the first output terminal of the switching device is electrically connected to the I2C pin of the CPU of the electronic device, and the second output terminal of the switching device is electrically connected to the NTC pin and ID pin of the CPU respectively; the I2C pin is used to receive temperature information and identity information transmitted to the CPU by the external battery with built-in coulomb counter chip, the NTC pin is used to receive temperature information transmitted to the CPU by other external batteries without built-in coulomb counter chip, and the ID pin is used to receive identity information transmitted to the CPU by other external batteries without built-in coulomb counter chip.

[0037] In some embodiments, the magnetic element is a magnet. When the magnet is installed in an external battery, the polarity of the magnet is not important.

[0038] It is understood that those skilled in the art can choose other magnetic components capable of generating magnetic fields greater than the preset magnetic field strength threshold, depending on the actual application scenario. For example, magnetic components can also be permanent magnets, electromagnets, magnetic cores, Hall elements, and superconducting magnets, etc.

[0039] As can be seen, in some embodiments, when the external battery with its own coulomb counter chip contains magnetic elements and a Hall device has been added to the electronic device, when the external battery with its own coulomb counter chip is connected to the electronic device, the magnetic field generated by the magnetic element on the external battery causes the Hall device on the electronic device to reach the trigger condition (such as the magnetic field strength exceeding a preset magnetic field strength threshold). The Hall device will then remain in a response state (such as continuously generating Hall voltage and continuously outputting Hall output signal). The electronic device can identify whether the external battery has its own magnetic elements by detecting whether such a response state (such as whether a Hall output signal is generated), and thus identify whether the external battery connected to the electronic device has its own coulomb counter chip.

[0040] The above is a description of external batteries. Some embodiments of this application also disclose an electronic device for identifying external batteries. This electronic device can be powered by an external battery with a built-in coulomb counter chip or an external battery without a built-in coulomb counter chip. An external battery with a built-in coulomb counter chip includes a magnetic element capable of generating a magnetic field greater than a preset magnetic field strength threshold; an external battery without a built-in coulomb counter chip does not include a magnetic element. Please refer to... Figure 1 The electronic device A includes:

[0041] Hall device 200 is used to detect the magnetic field strength around it (i.e., Hall device), and generate a Hall output signal when the magnetic field strength around it is greater than a preset magnetic field strength threshold, and send the Hall output signal to the CPU;

[0042] CPU (e.g.) Figure 1 The CPU in the device is used to determine whether the external battery B connected to the electronic device A has a built-in coulomb counter chip by detecting whether the Hall output signal is received.

[0043] It is understood that those skilled in the art can determine the specific value of the preset magnetic field strength threshold according to the actual application scenario. For example, the preset magnetic field strength threshold can be 50 Gauss. Those skilled in the art can determine the model of the Hall device according to the actual application scenario.

[0044] In some embodiments, the Hall device is designated as MH255. It is understood that those skilled in the art may also select other models of Hall devices based on the specific application requirements.

[0045] In some embodiments, please refer to Figure 1 The electronic device further includes: a switch 300, the common input of which is electrically connected to a port (such as an I2C interface) through which an external battery (e.g., an external battery without a coulomb counter chip or an external battery with a coulomb counter chip) transmits battery status information to the electronic device; the first output of the switch 300 is electrically connected to the I2C pin of the CPU; and the second output of the switch 300 is electrically connected to the NTC pin and ID pin of the CPU. Specifically, the port through which an external battery with a coulomb counter chip transmits battery status information to the electronic device is the I2C interface. The ports through which an external battery without a coulomb counter chip transmits battery status information to the electronic device are the NTC pin and ID pin. The CPU's I2C pin is used to receive battery status information transmitted to the CPU from an external battery with a coulomb counter chip via the switch 300. The CPU's NTC pin and ID pin are used to receive battery status information transmitted to the CPU from other external batteries without a coulomb counter chip via the switch 300.

[0046] For example, external batteries with coulomb counter chips typically use an I2C interface; while external batteries without coulomb counter chips typically use a temperature detection pin and a battery ID pin.

[0047] In some embodiments, the GPIO pin of the CPU is electrically connected to the control pin of the switch. When the CPU receives the Hall output signal, the GPIO pin of the CPU can send a first control signal (such as a high level) to the control pin of the switch. After receiving the first control signal, the switch makes the common input terminal and the first output terminal form a path, while the common input terminal and the second output terminal are disconnected, so that the CPU can communicate with the port of the external battery with built-in coulomb counter chip to transmit battery status information to the electronic device through its I2C pin. When the CPU does not receive the Hall output signal, the GPIO pin of the CPU can send a second control signal (such as a low level) to the control pin of the switch. After receiving the second control signal, the switch makes the common input terminal and the second output terminal form a path, while the common input terminal and the first output terminal are disconnected, so that the CPU can communicate with the port of the external battery without built-in coulomb counter chip to transmit battery status information to the electronic device through its NTC pin and ID pin.

[0048] In some embodiments, when the external battery connected to the electronic device has a built-in coulomb counter chip, the port through which the external battery with the built-in coulomb counter chip transmits battery status information to the electronic device is the I2C interface; when the external battery connected to the electronic device does not have a built-in coulomb counter chip, the port through which the external battery without the built-in coulomb counter chip transmits battery status information to the electronic device is the NTC pin and the ID pin.

[0049] In some embodiments, the toggle switch is either a BCT4223 or an SGM3715. For example, the control pin of the BCT4223 toggle switch is the IN pin. That is, control signals (such as a first control signal and a second control signal) are input through the IN pin to switch the switch state. The control pin of the SGM3715 toggle switch is the EN pin. That is, control signals are input through the EN pin to enable or disable the switch function.

[0050] It is understandable that those skilled in the art may also choose other models of switch based on the actual application scenario requirements.

[0051] Please refer to Figure 1 When the CPU in the electronic device A of this application receives the Hall output signal generated by the Hall device 200, it indicates that the external battery B connected to the electronic device A has a built-in coulomb counter chip. The CPU's I2C pin can use the aforementioned switch 300 to receive the battery status information transmitted from the external battery B with the built-in coulomb counter chip to the electronic device, so that the CPU can communicate with the port of the external battery B with the built-in coulomb counter chip that transmits battery status information to the electronic device through its I2C pin. When the CPU in the electronic device A of this application does not receive the Hall output signal generated by the Hall device 200, it indicates that the external battery B connected to the electronic device A of this application does not have a built-in coulomb counter chip. The CPU's NTC pin and ID pin can use the aforementioned switch 300 to receive the battery status information transmitted from the external battery B without the built-in coulomb counter chip to the electronic device, so that the CPU can communicate with the port of the external battery B without the built-in coulomb counter chip that transmits battery status information to the electronic device A through its NTC pin and ID pin.

[0052] As can be seen, in some embodiments, when an external battery with magnetic elements is connected to the electronic device of this application, the magnetic field generated by the magnetic elements on the external battery causes the Hall device on the electronic device to reach the trigger condition (such as the magnetic field strength exceeding a preset magnetic field strength threshold), and the Hall device will be continuously in a response state (such as continuously generating Hall voltage and continuously outputting Hall output signal); and the CPU of the electronic device can identify whether the external battery has its own magnetic elements by detecting whether the Hall device is in a response state (such as the CPU detecting whether it receives the Hall output signal), and thus identify whether the external battery has its own coulomb counter chip.

[0053] As can be seen, in some embodiments, when the CPU in the electronic device of this application receives the Hall output signal, the GPIO pin of the CPU can send a first control signal (such as a high level) to the control pin of the switch. After receiving the first control signal, the switch enables the common input terminal and the first output terminal to form a path, so that the CPU can communicate with the port of the external battery with built-in coulomb counter chip to transmit battery status information to the electronic device through its I2C pin. When the CPU does not receive the Hall output signal, the GPIO pin of the CPU can send a second control signal (such as a low level) to the control pin of the switch. After receiving the second control signal, the switch enables the common input terminal and the second output terminal to form a path, so that the CPU can communicate with the port of the external battery without built-in coulomb counter chip to transmit battery status information to the electronic device through its NTC pin and ID pin.

[0054] As can be seen, in some embodiments, the common input terminal of the switch in the electronic device of this application is electrically connected to the port (such as the I2C interface) through which the external battery transmits battery status information to the electronic device. The first output terminal of the switch is electrically connected to the I2C pin of the CPU, and the second output terminal of the switch is electrically connected to the NTC pin and ID pin of the CPU. The electronic device of this application can communicate with an external battery with a built-in coulomb counter chip or an external battery without a built-in coulomb counter chip by using the above-mentioned switch, depending on whether the Hall output signal is received. In this way, when the usable area on the motherboard structure of the electronic device is limited, the disadvantage of conventional motherboards needing to attach different materials on the motherboard to distinguish whether the external battery has a built-in coulomb counter chip is avoided by using the above-mentioned switch. This is because the pins of the external battery are generally high-current pins, occupying a large area. If too many pins of the external battery are installed on the motherboard structure of the electronic device, the usable area on the motherboard structure of the electronic device will be further reduced, which will affect the installation and use of other necessary components on the motherboard of the electronic device and increase unnecessary costs. In addition, it can also avoid the situation where two types of batteries (such as external batteries with built-in coulomb counter chips and external batteries without built-in coulomb counter chips) cannot be used interchangeably on the same motherboard.

[0055] This document describes various exemplary embodiments with reference to them. However, those skilled in the art will recognize that changes and modifications can be made to the exemplary embodiments without departing from the scope of this document. For example, various operational steps and components for performing operational steps can be implemented in different ways depending on the specific application or considering any number of cost functions associated with the operation of the system (e.g., one or more steps can be deleted, modified, or combined with other steps).

[0056] In the above embodiments, implementation can be achieved, in whole or in part, by software, hardware, firmware, or any combination thereof. Furthermore, as those skilled in the art will understand, the principles herein can be reflected in a computer program product on a computer-readable storage medium pre-loaded with computer-readable program code. Any tangible, non-transitory computer-readable storage medium may be used, including magnetic storage devices (hard disks, floppy disks, etc.), optical storage devices (CD-ROMs, DVDs, Blu-ray discs, etc.), flash memory, and / or the like. These computer program instructions can be loaded onto a general-purpose computer, special-purpose computer, or other programmable data processing apparatus to form a machine, such that instructions executing on the computer or other programmable data processing apparatus can generate means for implementing a specified function. These computer program instructions can also be stored in a computer-readable storage medium that can instruct the computer or other programmable data processing apparatus to operate in a particular manner, such that instructions stored in the computer-readable storage medium can form an article of manufacture including means for implementing the specified function. The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to perform a series of operational steps on the computer or other programmable apparatus to produce a computer-implemented process, such that instructions executing on the computer or other programmable apparatus can provide steps for implementing the specified function.

[0057] While the principles herein have been illustrated in various embodiments, numerous modifications to the structures, arrangements, proportions, elements, materials, and components, particularly suited to specific environments and operational requirements, may be used without departing from the principles and scope of this disclosure. These modifications and other changes or alterations will be included within the scope of this document.

[0058] The foregoing specific descriptions have been described with reference to various embodiments. However, those skilled in the art will recognize that various modifications and changes can be made without departing from the scope of this disclosure. Therefore, considerations for this disclosure are to be illustrative rather than restrictive, and all such modifications are to be included within its scope. Similarly, advantages, other advantages, and solutions to problems with respect to various embodiments have been described above. However, benefits, advantages, solutions to problems, and any elements that produce these, or make them more explicit, should not be construed as critical, essential, or necessary. The term “comprising” and any other variations thereof as used herein are non-exclusive inclusion, meaning that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed or not part of the process, method, system, article, or apparatus. Furthermore, the term “coupled” and any other variations thereof as used herein refer to physical connections, electrical connections, magnetic connections, optical connections, communication connections, functional connections, and / or any other connections.

[0059] Those skilled in the art will recognize that many changes can be made to the details of the above embodiments without departing from the basic principles of this invention. Therefore, the scope of this invention should be determined only by the claims.

Claims

1. An electronic device for identifying an external battery, the electronic device being powered by an external battery with a built-in coulomb counter chip or an external battery without a built-in coulomb counter chip, characterized in that, An external battery with a built-in coulomb counter chip includes a magnetic element capable of generating a magnetic field greater than a preset magnetic field strength threshold; an external battery without a built-in coulomb counter chip does not include the magnetic element; the electronic device includes: A Hall effect device is used to detect the magnetic field strength around it and generate a Hall output signal when the magnetic field strength around it is greater than a preset magnetic field strength threshold, and then send the Hall output signal to the CPU. The CPU is used to determine whether the external battery connected to the electronic device has a built-in coulomb counter chip by detecting whether the Hall output signal is received. A switching switch is provided. The common input terminal of the switching switch is electrically connected to the port where an external battery transmits battery status information to the electronic device. The first output terminal of the switching switch is electrically connected to the I2C pin of the CPU, and the second output terminal of the switching switch is electrically connected to the NTC pin and ID pin of the CPU. The I2C pin is used to receive temperature information and identity information transmitted to the CPU by an external battery with a built-in coulomb counter chip. The NTC pins are used to receive temperature information transmitted to the CPU by other external batteries without a built-in coulomb counter chip. The ID pins are used to receive identity information transmitted to the CPU by other external batteries without a built-in coulomb counter chip.

2. The electronic device of claim 1, wherein, The CPU's GPIO pins are electrically connected to the control pins of the switching switch; When the CPU receives the Hall output signal, the CPU's GPIO pin can send a first control signal to the control pin of the switch. After receiving the first control signal, the switch makes the common input terminal and the first output terminal form a path, so that the CPU can communicate with the port of the external battery to transmit battery status information to the electronic device through its I2C pin. When the CPU does not receive the Hall output signal, the CPU's GPIO pin can send a second control signal to the control pin of the switch. After receiving the second control signal, the switch makes the common input terminal and the second output terminal form a path, so that the CPU can communicate with the port of the external battery to transmit battery status information to the electronic device through its NTC pin and ID pin. Specifically, when the first control signal is high, the second control signal is low; or, when the first control signal is low, the second control signal is high.

3. The electronic device of claim 2, wherein, When the external battery connected to the electronic device has a built-in coulomb counter chip, the port for the external battery with the built-in coulomb counter chip to transmit battery status information to the electronic device is the I2C interface; when the external battery connected to the electronic device does not have a built-in coulomb counter chip, the port for the external battery without the built-in coulomb counter chip to transmit battery status information to the electronic device is the NTC pin and the ID pin.

4. The electronic device of claim 1, wherein, The model number of the switch is BCT4223 or SGM3715.

5. The electronic device of claim 1, wherein, The Hall effect device is model number MH255.

6. An external battery which is detachably attached to the electronic device according to any one of claims 1 to 5 and supplies power to the electronic device, the external battery having a coulomb counter chip incorporated therein, characterized in that, The external battery also includes: Magnetic components are used to generate a magnetic field stronger than a preset magnetic field strength threshold. When the external battery is connected to the electronic device, the electronic device can identify whether the external battery has a built-in coulomb counter chip by detecting whether a magnetic field greater than a preset magnetic field strength threshold is generated inside the electronic device.

7. The external battery of claim 6, wherein, When an external battery is connected to an electronic device, the distance between the magnetic element and the Hall effect device on the electronic device is less than a preset distance threshold. The Hall effect device on the electronic device is used to generate a Hall output signal when the magnetic field strength around it is greater than a preset magnetic field strength threshold, and then sends the Hall output signal to the CPU on the electronic device.

8. The external battery of claim 6, wherein, The I2C interface of the external battery is used for the switching electrical connection of the electronic device; The common input terminal of the switch is used to electrically connect to the I2C interface of the external battery, the first output terminal of the switch is electrically connected to the I2C pin of the CPU of the electronic device, and the second output terminal of the switch is electrically connected to the NTC pin and ID pin of the CPU. The I2C pin is used to receive temperature and identity information transmitted to the CPU by the external battery with its own coulomb counter chip. The NTC pin is used to receive temperature information transmitted to the CPU by other external batteries without their own coulomb counter chips. The ID pin is used to receive identity information transmitted to the CPU by other external batteries without their own coulomb counter chips.

9. The external battery of claim 6, wherein, The magnetic component is a magnet.