CN117826002A - Electronic device and battery detection method - Google Patents

Electronic device and battery detection method Download PDF

Info

Publication number
CN117826002A
CN117826002A CN202410243784.4A CN202410243784A CN117826002A CN 117826002 A CN117826002 A CN 117826002A CN 202410243784 A CN202410243784 A CN 202410243784A CN 117826002 A CN117826002 A CN 117826002A
Authority
CN
China
Prior art keywords
battery
state
module
auxiliary detection
detection structure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410243784.4A
Other languages
Chinese (zh)
Inventor
邓旭同
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202410243784.4A priority Critical patent/CN117826002A/en
Publication of CN117826002A publication Critical patent/CN117826002A/en
Pending legal-status Critical Current

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The application provides the electronic equipment and the battery detection method, which can identify the new and old of the battery, and have simple structure and logic, strong reliability and low cost. The electronic device comprises a printed circuit board provided with a processing module; the battery module comprises a battery core and a battery protection board connected with the battery core, wherein a connector on the battery protection board is connected with a connector on the printed circuit board; the battery detection circuit comprises an auxiliary detection structure arranged on the battery protection board and a switch module arranged on the printed circuit board; the processing module determines an old battery module when determining that the auxiliary detection structure is in an open circuit state; after the auxiliary detection structure is determined to be in a passage state and the control switch module is conducted for a preset time, determining the auxiliary detection structure as a new battery module when the auxiliary detection structure is in an open-circuit state; and after the auxiliary detection structure is determined to be in the passage state and the control switch module is conducted for a preset time, determining that the battery module is an unofficial battery module when the auxiliary detection structure is still in the passage state.

Description

Electronic device and battery detection method
Technical Field
The application relates to the technical field of electronic equipment, in particular to electronic equipment and a battery detection method.
Background
With the continuous popularization of electronic devices such as mobile phones, the role played by batteries in life is becoming important. As the use time and the number of use times increase, the battery gradually ages. The electronic device determines the degree of aging of the battery by recording the number of cycles (denoted cycle) that the battery is fully charged. For a new battery, cycle may be zero, representing zero degree of aging of the battery, i.e., completely new unaged. For old batteries, as the number of cycles to use the battery to fully charge and discharge increases, cycle increases from zero, representing an increasing degree of aging of the battery. The electronic device adjusts the battery charging strategy according to the cycle, such as adjusting the charging current and the charging cut-off voltage, so as to ensure the battery charging safety.
However, when electronic devices such as mobile phones involve maintenance of a motherboard, a situation that whether to replace a new battery is often faced. If the battery is a new battery, the battery strategy needs to be readjusted, so that the problems of low safety, slow charging, underfilling of electric quantity and the like of the charging performance of the electronic equipment are avoided when the electronic equipment uses an unsuitable charging strategy to charge and discharge; if the battery is old, but the cycle is cleared, the old battery is charged according to the new battery, and the risk of swelling is easy.
Therefore, there is an urgent need for a simple and easy scheme that can identify whether to replace a new battery.
Disclosure of Invention
In order to solve the technical problems, the application provides electronic equipment and a battery detection method, which can identify whether the battery of the electronic equipment is replaced or not, and have the advantages of low cost, simple structure and logic and high reliability.
In a first aspect, an embodiment of the present application provides an electronic device, including: the battery module comprises a printed circuit board, a battery module and a battery detection circuit, wherein a processing module is arranged on the printed circuit board; the battery module comprises a battery core and a battery protection board connected with the battery core, wherein a connector on the battery protection board is connected with a connector on the printed circuit board so as to enable the battery module to be connected with the printed circuit board; the battery detection circuit comprises an auxiliary detection structure arranged on the battery protection board and a switch module arranged on the printed circuit board, wherein a first end of the auxiliary detection structure is connected with a positive electrode lug of the battery core, a second end of the auxiliary detection structure is respectively connected with the first ends of the processing module and the switch module through auxiliary detection pins of the connector, a second end of the switch module is grounded, and a control end of the switch module is connected with the processing module; the auxiliary detection structure comprises a passage state and an open circuit state; the processing module is used for determining the state of the auxiliary detection structure, and determining that the battery module is an old battery module when the state of the auxiliary detection structure is determined to be an open-circuit state; when the state of the auxiliary detection structure is determined to be a passage state and the state of the auxiliary detection structure is an open circuit state after the control switch module is conducted for a preset time, determining that the battery module is a new battery module; and when the state of the auxiliary detection structure is determined to be the access state and the state of the auxiliary detection structure is still the access state after the control switch module is conducted for a preset time, determining that the battery module is an unofficial battery module.
The battery detection circuit that this application provided can realize the new and old detection of battery, and simple structure, and is with low costs, and switch module's setting can further guarantee the security of charging, avoids carrying out the clear operation to the cycle, leads to unofficial old battery to charge according to new official battery, produces the risk such as swell, even explosion. In addition, by arranging the structure except the auxiliary detection structure in the battery detection circuit on the printed circuit board, the occupation of the structure except the auxiliary detection structure in the battery detection circuit on the battery protection board is avoided, so that the area of the battery protection board can be smaller, the size of the battery core can be increased, and the capacity of the battery module is improved; on the basis, the connection of each structure of the battery detection circuit is realized through the independent auxiliary detection pin in the connector, so that the circuit reliability of the battery detection circuit is higher, and the logic is simpler.
According to the first aspect, the battery protection board is further provided with an ID detection resistor, the first end of the ID detection resistor is grounded, and the second end of the ID detection resistor is connected with the processing module through an ID detection communication pin of the connector; the processing module is used for determining the ID information of the battery module according to the voltage at the second end of the ID detection resistor.
Namely, the ID detection communication pin for detecting the ID information of the battery module and the auxiliary detection pin for connecting the auxiliary detection structure and the switch module are two independent pins, so that the problems of complex control logic, poor circuit reliability and high cost of a circuit caused by pin sharing are avoided.
According to the first aspect, or any implementation manner of the first aspect, the battery detection circuit further includes a first voltage dividing resistor and a second voltage dividing resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled with the second node, and the second end of the second voltage dividing resistor is grounded.
The arrangement of the first voltage dividing resistor and the second voltage dividing resistor can be more flexible when the voltage acquisition module, such as an ADC, is selected, and the ADC which only needs to meet the battery voltage in the range can be avoided.
According to a first aspect, or any implementation manner of the first aspect, the battery detection circuit further includes a current limiting resistor, and the current limiting resistor is located between the processing module and the control terminal of the switch module.
The current limiting resistor is arranged, so that the influence or damage to the switch module caused by the fact that the current on the passage between the processing module and the control end of the switch module is large can be avoided.
According to the first aspect, or any implementation manner of the first aspect, the battery detection circuit further includes a grounding resistor, a first end of the grounding resistor is connected with the control end of the switch module, and a second end of the grounding resistor is grounded.
The setting of the grounding resistor can make the signal of the control end of the switch module default to be low, so that the switch module is opened without any reason due to the interference of other signals, and the reliability of the circuit is improved.
According to a first aspect, or any implementation manner of the first aspect, the battery detection circuit further includes a protection module, which is disposed in parallel with the switch module.
Because the auxiliary detection pin in the connector of the first end of the connecting switch module and the second end of the auxiliary detection structure is exposed outside when not buckled, surge can possibly occur when buckled, and the arrangement of the protection module can prevent the damage to the switch module caused by the surge with larger energy.
According to the first aspect, or any implementation manner of the first aspect, the protection module includes a capacitor and a transient voltage suppression diode, a first end of the capacitor is connected to the first end of the switch module, a second end of the capacitor is grounded, a first end of the transient voltage suppression diode is connected to the first end of the switch module, and a second end of the transient voltage suppression diode is grounded.
The capacitor can stabilize the voltage at two ends of the switch module, and the transient voltage suppression diode can be instantly conducted when a surge with larger energy arrives, so that the larger energy is bypassed without damaging the switch module.
According to the first aspect, or any implementation manner of the first aspect, the auxiliary detecting structure includes a capacitor, a fuse, a resistor, an inductor, a common mode inductor, a trace, or a device capable of generating a large change (such as a blow) of a resistance value after a large current is applied.
According to the first aspect, or any implementation manner of the first aspect, the switching module includes a module having a switching function, such as a MOS transistor.
In a second aspect, an embodiment of the present application further provides a battery detection method, which is applied to the electronic device corresponding to any implementation manner of the first aspect and the first aspect, where the battery detection method includes: determining a state of an auxiliary detection structure, wherein the state of the auxiliary detection structure comprises a passage state or an open circuit state; when the state of the auxiliary detection structure is an open circuit state, determining that the battery module is an old battery module; when the state of the auxiliary detection structure is a passage state and the state of the auxiliary detection structure is an open-circuit state after the control switch module is conducted for a preset time, determining that the battery module is a new battery module; when the state of the auxiliary detection structure is the access state and the state of the auxiliary detection structure is still the access state after the control switch module is conducted for a preset time, the battery module is determined to be an unofficial battery module.
Any implementation manner of the second aspect and the second aspect corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the first aspect and any implementation manner of the first aspect, which are not described herein.
According to a second aspect, before determining the state of the auxiliary detection structure, further comprises: and determining that the battery module is plugged.
Therefore, the operation steps can be saved, and the energy waste caused by the fact that the battery module is not replaced and the subsequent operation steps are still carried out is avoided.
According to a second aspect, or any implementation manner of the above second aspect, the battery detection circuit further includes a first voltage dividing resistor and a second voltage dividing resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin to be connected to the first node, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled to the second node, and the second end of the second voltage dividing resistor is grounded; determining a state of the auxiliary detection structure, comprising: acquiring a voltage value of a battery module; acquiring an actual voltage value at a second node; determining a preset voltage range according to the voltage value of the battery module, the resistance value of the first voltage dividing resistor and the resistance value of the second voltage dividing resistor; when the actual voltage value is within a preset voltage range, determining that the auxiliary detection structure is in a channel state; and when the actual voltage value is not in the preset voltage range, determining that the auxiliary detection structure is in an open-circuit state.
Illustratively, the auxiliary sensing structure is a fuse. When the actual voltage value is within the preset voltage range, the state of the auxiliary detection structure is a passage state, namely the fuse is normal and unblown. When the actual voltage value is not in the preset voltage range, the state of the auxiliary detection structure is the open-circuit state, namely the fuse is blown.
According to a second aspect, or any implementation manner of the second aspect, before determining the state of the auxiliary detection structure, the method further comprises: determining that the battery module is not plugged; determining a state of the auxiliary detection structure, comprising: and determining the auxiliary detection structure as an open circuit state.
That is, the battery module is still an old battery module, i.e., the battery module has been subjected to a cycle greater than the first preset number of cycles, i.e., if the auxiliary detecting structure is a fuse, the fuse is blown.
According to a second aspect, or any implementation manner of the above second aspect, the battery detection circuit further includes a first voltage dividing resistor and a second voltage dividing resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin to be connected to the first node, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled to the second node, and the second end of the second voltage dividing resistor is grounded; when the state of the auxiliary detection structure is a passage state and the state of the auxiliary detection structure is an open state after the control switch module is turned on for a preset time, determining that the battery module is a new battery module includes: when the state of the auxiliary detection structure is a passage state, the control switch module is conducted for a preset time; the switch module is controlled to be disconnected; when the obtained actual voltage value at the second node is not in the preset voltage range, determining that the auxiliary detection structure is in an open circuit state; and determining the battery module as a new battery module according to the disconnection state of the auxiliary detection structure.
According to a second aspect, or any implementation manner of the above second aspect, the battery detection circuit further includes a first voltage dividing resistor and a second voltage dividing resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin to be connected to the first node, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled to the second node, and the second end of the second voltage dividing resistor is grounded; when the state of the auxiliary detection structure is the access state and the state of the auxiliary detection structure is still the access state after the control switch module is turned on for a preset time, determining that the battery module is an unofficial battery module includes: when the state of the auxiliary detection structure is a passage state, the control switch module is conducted for a preset time; the switch module is controlled to be disconnected; when the obtained actual voltage value at the second node is in a preset voltage range, determining that the auxiliary detection structure is in a channel state; and determining the battery module as an unofficial battery module according to the passage state of the auxiliary detection structure.
Illustratively, the auxiliary sensing structure is a fuse. If the battery module is an unofficial battery module, the fuse is still burned after the switch module is conducted for a preset time, and the state of the auxiliary detection structure is always a passage state. In order to ensure the safety of charging, the processing module enables the cycle number of the battery to be a default larger cycle number, and then charges and discharges according to a battery charging strategy corresponding to the cycle number.
In a third aspect, embodiments of the present application provide a chip, the chip including: a processor and a memory for storing a computer program; the processor is configured to execute the computer program to cause the electronic device on which the chip is located to implement the battery detection method according to any one of the third aspects described above.
Any implementation manner of the third aspect and any implementation manner of the third aspect corresponds to any implementation manner of the second aspect and the second aspect, respectively. The technical effects corresponding to the third aspect and any implementation manner of the third aspect may be referred to the technical effects corresponding to the second aspect and any implementation manner of the second aspect, which are not described herein.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when run on an electronic device, causes the electronic device to perform the battery detection method as in any of the above second aspects.
Any implementation manner of the fourth aspect and any implementation manner of the fourth aspect corresponds to any implementation manner of the second aspect and any implementation manner of the second aspect. Technical effects corresponding to any implementation manner of the fourth aspect may be referred to technical effects corresponding to any implementation manner of the second aspect and the fourth aspect, and are not described herein.
In a fifth aspect, embodiments of the present application provide a computer program product comprising: computer program code which, when run by an electronic device, causes the electronic device to perform the battery detection method as in any of the second aspects above.
Any implementation manner of the fifth aspect and any implementation manner of the fifth aspect corresponds to any implementation manner of the second aspect and any implementation manner of the second aspect, respectively. Technical effects corresponding to any implementation manner of the fifth aspect may be referred to technical effects corresponding to any implementation manner of the second aspect, and will not be described herein.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a battery module according to an embodiment of the present disclosure;
fig. 3 is a schematic circuit diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic circuit diagram of still another electronic device according to an embodiment of the present application;
fig. 5 is a schematic circuit diagram of still another electronic device according to an embodiment of the present application;
fig. 6 is a flowchart of a battery detection method according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
In the description of the embodiments of the present application, it should be noted that, unless explicitly specified and limited otherwise, the term "connected" is to be interpreted broadly, and for example, it may be a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
In the process of repairing the fault of parts of electronic equipment such as mobile phones, three conditions usually occur. First case: the printed circuit board (Printed Circuit Board, PCB) is unchanged, requiring replacement of a new battery; second case: the PCB needs to be replaced, the battery is unchanged, the probability of the situation is extremely low, and a new battery needs to be replaced synchronously; third case: the PCB is unchanged and the battery is unchanged. Therefore, after the electronic equipment such as the mobile phone is maintained, the electronic equipment needs to identify whether the battery is replaced again. If the battery is a new battery, the battery strategy needs to be readjusted, so that the problems of low safety, slow charging, underfilling of electric quantity and the like of the charging performance of the electronic equipment are avoided when the electronic equipment uses an unsuitable charging strategy to charge and discharge; if the battery is old, but the cycle is cleared, the old battery is charged according to the new battery, and the risk of swelling is easy.
In the related art, whether the battery is replaced is generally identified by the battery anti-counterfeiting IC, and since the anti-counterfeiting information is encrypted, such a scheme is not easily decoded, but the cost is relatively high. Therefore, there is an urgent need for a simple and easy scheme that can identify whether to replace a new battery.
In view of this, the embodiment of the present application provides an electronic device, which may be a mobile phone, a tablet computer, a personal digital assistant (personal digital assistant, abbreviated as PDA), a vehicle-mounted terminal, a television, an intelligent wearable device (such as a smart watch), an intelligent home device, and other terminal devices with rechargeable batteries, and may also be an electric automobile, an electric bicycle, a booster bicycle, an electric wheelchair, and other vehicles with rechargeable batteries. In addition, when the electronic device is a terminal device, the terminal device may be a bar-type terminal or a folder-type terminal, which is not limited in this embodiment. For convenience of explanation, the electronic device is a bar-type mobile phone.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 1, the electronic device 100 includes a display panel 10, a rear cover 20, and a middle frame 30. The display panel 10 and the rear cover 20 are disposed opposite to each other, and the middle frame 30 is located between the display panel 10 and the rear cover 20.
The display panel 10 may include a liquid crystal display (Liquid Crystal Display, LCD) panel, an organic light emitting diode (Organic Light Emitting Diode, OLED) display panel, an LED display panel, etc., wherein the LED display panel may include a Micro-LED display panel, a Mini-LED display panel, etc. The embodiment of the present application does not limit the type of the display panel 10.
The material of the rear cover 20 may include opaque materials such as plastics, plain leather, fiberglass, etc.; light-transmitting materials such as glass may also be included. The material of the rear cover 20 is not limited in the embodiment of the present application.
The display panel 10, the middle frame 30, and the rear cover 20 may enclose a receiving cavity. The accommodating cavity is internally provided with a PCB, a battery module and the like, the battery module is connected with the PCB, and the battery module provides electric energy for the PCB so that the PCB supports the electronic equipment to work. The battery module may be a rechargeable battery, for example. Rechargeable batteries include lithium ion batteries, lead acid batteries, nickel cadmium batteries, nickel iron batteries, or nickel hydrogen batteries, as well as other suitable batteries, without limitation. The specific type of the battery module may depend on the specific scene of the electronic device, and is not limited herein.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic structural diagram of a battery module provided in an embodiment of the present application, and fig. 3 is a schematic circuit structural diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 2 and 3, the battery module 40 includes a battery cell 41 and a battery protection plate 42. The battery cell 41 may be an aluminum-case battery cell, a soft-package battery cell (also called a polymer battery cell), a cylindrical battery cell, or the like. The battery cell 41 is a storage portion of the battery module 40 for storing electric energy by charging and then discharging the electric energy to supply the electric energy required for the operation of the electronic device 100. The battery protection board 42 may be an integrated circuit board for protecting the battery cells 41. Illustratively, the tab of the battery 41 includes a positive tab 41a and a negative tab 41b, the positive tab 41a of the battery 41 may output a voltage signal of +4v, and the negative tab 41b of the battery 41 may output a voltage signal of 0V. The battery protection plate 42 is connected to the positive electrode tab 41a and the negative electrode tab 41b of the battery cell 41, respectively, so that the battery cell 41 is prevented from being overcharged, overdischarged, excessive transmission current, excessive transmission voltage, short circuit and the like, and the battery cell 41 is prevented from being damaged. The battery protection board 42 includes a hard board (e.g., PCB) 42a and a soft board (e.g., flexible circuit board (flexible printed circuit, FPC) 42b connected to the hard board 42a, the hard board 42a of the battery protection board 42 is connected to the positive tab 41a and the negative tab 41b of the battery 41, a board-to-board (BTB) connector (not shown) is disposed on the soft board 42b, and correspondingly, a BTB connector (not shown) is also disposed on the PCB 50, and the BTB connector on the soft board 42b is buckled with the BTB connector on the PCB 50, so as to realize connection between the battery module 40 and the PCB 50, where the BTB connector may include a plurality of communication pins, and the battery module 40 may communicate with the PCB 50 using some or all of the communication pins.
The PCB 50 is provided with a processing module 60, a charge management module 70, an audio Power Amplifier (PA) (not shown in the figure), a radio frequency PA (not shown in the figure), and the like, where the processing module may include a System on Chip (SoC) or a Power management unit (Power management unit, PMU), and the like.
The charge management module 70 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 electronic device 100 further includes a USB interface through which the charging management module 70 may receive charging inputs from a wired charger. In some wireless charging embodiments, the charge management module 70 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 70 is connected with the positive electrode lug 41a of the battery core 41 through the positive electrode wiring L1 of the PCB 50, the positive electrode communication pin of the BTB connector and the positive electrode wiring L2 of the battery protection board 42 to form a charging and discharging positive electrode path; the negative electrode tab 41b of the battery cell 41 is connected to the ground terminal of the charge management module 70 through the negative electrode trace L3 of the battery protection board 42, the negative electrode communication pin of the BTB connector, and the negative electrode trace L4 of the PCB 50 to form a charge-discharge negative electrode path. Based on the connected charge management module 70 and the battery cell 41, a circuit for charging or discharging the battery cell 41 can be formed to charge the battery module 40; at the same time, the charge management module 70 may also power the electronic device via the PMU. For example, the PMU is used to connect the battery module 40, the charge management module 70, and the SOC. The PMU receives inputs from the battery module 40 and/or the charge management module 70 and provides power to the SOC, the display panel 10, the audio PA, the radio PA, etc. via the power supply branch.
In some embodiments, the battery protection board 42 is provided with a protection unit 421, and the protection unit 421 may be located on a charge-discharge positive electrode path, and the protection unit may be a blocking device, where the blocking device may include a positive temperature coefficient (Positive Temperature Coefficient, PTC) device, and the PTC device can prevent an excessive problem of a transmission current, specifically, a temperature rise is caused after a charging current passes through the PTC device, a resistance of the PTC device increases with the temperature rise, a high polymer conductive composite material in the PTC device reaches a high polymer melting point, and a conductive chain is reduced to show an extremely high resistance, thereby limiting a current increase and preventing the problem of damage to the battery 41 caused by the excessive transmission current.
Further, with continued reference to FIG. 3, the electronic device 100 also includes an ID detection resistor R ID And a voltage acquisition module that may include an Analog-to-Digital Converter (ADC), wherein the ADC is labeled ADC1 herein in order to distinguish the voltage acquisition module from the one described below. The ADC1 may be integrated in the processing module 60, or may be separately provided, and the present application describes that the ADC1 is integrated in the processing module 60 as an example. ID detection resistor R ID Is grounded, and an ID detection resistor R is provided ID The second end of the (B) is connected with an ADC1 through an ID detection communication pin of the BTB connector, and the ADC1 acquires an ID detection resistor R ID And sends the voltage to the processing module 60, the processing module 60 determines the ID detection resistor R from the voltage at the second terminal ID And further determines the ID information of the battery module 40 to determine whether it is an original battery or the like.
With continued reference to fig. 3, the electronic device 100 further includes a battery detection circuit 80, the battery detection circuit 80 including an auxiliary detection structure 81, a first voltage dividing resistor R1, a second voltage dividing resistor R2, a switching module 82, and a voltage acquisition module, which may include an Analog-to-Digital Converter (ADC), wherein the ADC is labeled ADC2 herein for distinguishing the voltage acquisition modules in the foregoing. The ADC2 may be integrated in the processing module 60, or may be separately provided, and in this embodiment, the ADC2 is integrated in the processing module 60 as an example.
The first end of the auxiliary detection structure 81 is connected with the positive electrode lug 41a of the battery cell 41, the second end of the auxiliary detection structure 81 is coupled with the first end of the first voltage dividing resistor R1 and the first end of the switch module 82 through an auxiliary detection pin of the BTB connector to be connected with the first node N1, the second end of the first voltage dividing resistor R1, the first end of the second voltage dividing resistor R2 and the ADC2 are coupled with the second node N2, and the second end of the second voltage dividing resistor R2 is grounded. The second terminal of the switch module 82 is grounded, and the control terminal of the switch module 82 is connected to the GPIO interface of the processing module 60. The processing module 60 controls on or off of the switch module 82 through the GPIO interface, for example, when the level signal at the GPIO interface is a low level signal, the switch module 82 is turned on, and when the level signal at the GPIO interface is a high level signal, the switch module 82 is turned off; or, when the level signal at the GPIO interface is a high level signal, the switch module 82 is turned on, when the level signal at the GPIO interface is a low level signal, the switch module 82 is turned off, and in this embodiment, when the level signal at the GPIO interface is a high level signal, the switch module 82 is turned on, and when the level signal at the GPIO interface is a low level signal, the switch module 82 is turned off for illustration.
The auxiliary detecting structure 81 is used for being in a passage state when the cycle number of the battery module 40 is less than or equal to the first preset cycle number, and is also used for being in a disconnection state when the cycle number of the battery module 40 is greater than the first preset cycle number, wherein the disconnection state can be physically disconnected or can be expressed as extremely high resistance.
Illustratively, the first preset number of cycles is 5, that is, when the number of cycles of the battery module 40 is less than or equal to 5, the auxiliary detecting structure 81 is in the passage state; when the number of cycles of the battery module 40 is equal to 5, the auxiliary detecting structure 81 is in the off state.
Here, the above example is described taking the first preset cycle number of 5 as an example, but the present application is not limited thereto, and in other alternative embodiments of the present application, the first preset cycle number may be 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, or the like.
The ADC2 is configured to collect the voltage at the second node N2. When the states of the auxiliary detection structures 81 are different, the voltages at the second node N2 collected by the ADC2 are different, and the processing module 60 pushes the state of the auxiliary detection structures 81 back based on the voltages at the second node N2 collected by the ADC2, and determines the cycle number of the battery module 40 based on the state of the auxiliary detection structures 81, thereby determining the new and old of the battery.
Exemplary, the auxiliary detecting structure 81 is in the form of a passageStatus: the resistance value of the auxiliary detection structure 81 is far smaller than the resistance values of the first voltage dividing resistor R1 and the second voltage dividing resistor R2, so that the voltage division of the first voltage dividing resistor R1 and the second voltage dividing resistor R2 is not affected, and the theoretical voltage value V1 at the second node N2 is: v1=v bat ×R 2 /(R 1 +R 2 ) Wherein V is bat To the battery voltage value (the battery voltage value can be obtained in real time by an electricity meter in a PMU), R 1 The resistance value of the first voltage dividing resistor R1, R 2 The resistance value of the second voltage dividing resistor R2. Specifically, the processing module 60 is based on R 2 /(R 1 +R 2 ) And the battery voltage value V obtained in real time by the fuel gauge bat The voltage at the second node N2, i.e. the theoretical voltage value V1, is determined. The processing module 60 formulates a preset voltage range of [ V1-Vdelta, V1+Vdelta, taking the deviation into account]Vdelta is the offset value. For example, the battery voltage value V acquired by the fuel gauge at this time bat The ratio of R2/(R1+R2) is 0.4, the deviation value Vdelta is 0.1V, V1 is equal to 1.6V, and the preset voltage range is 1.5V-1.7V. The actual voltage value V2 at the second node N2 collected by the ADC2, for example, 1.5V, where 1.5V is located in the preset voltage range of 1.5V to 1.7V, indicates that the state of the auxiliary detection structure 81 is a path state, determines that the cycle number of the battery module 40 is less than or equal to the first preset cycle number based on the state of the auxiliary detection structure 81, and further determines that the battery module 40 is a new battery module.
Illustratively, the state of the auxiliary detection structure 81 is an open state: the theoretical voltage value V1 at the second node N2 is: v1=v bat ×R 2 /(R 1 +R 2 ) Wherein V is bat To the battery voltage value (the battery voltage value can be obtained in real time by an electricity meter in a PMU), R 1 The resistance value of the first voltage dividing resistor R1, R 2 The resistance value of the second voltage dividing resistor R2. Specifically, the processing module 60 is based on R 2 /(R 1 +R 2 ) Battery voltage value (change in real time with change in charging strategy) V obtained in real time by fuel gauge bat The voltage at the second node N2, i.e. the theoretical voltage value V1, is determined. The processing module 60 formulates a preset voltage range of [ V1-Vdelta, V1+Vdelta, taking the deviation into account]Vdelta is the offset value. The actual voltage value V2 at the second node N2 collected by the ADC2 is an open circuit at the auxiliary detecting structure 81, so that the voltage at the second node N2 is not within the preset voltage range of 1.5V to 1.7V, in other words, when the actual voltage value V2 at the second node N2 collected by the ADC2 is not within the preset voltage range of 1.5V to 1.7V, it is indicated that the state of the auxiliary detecting structure 81 is an open circuit state, and the cycle number of the battery module 40 is determined to be greater than the first preset cycle number based on the state of the auxiliary detecting structure 81, so as to determine that the battery module 40 is an old battery module.
When the battery module 40 is a new battery module, the cycle number cycle of the battery is equal to 0, in which case, the electronic device 100 needs to readjust the battery charging policy, so as to avoid the problems of reduced charging performance of the electronic device, such as low safety, slow charging, and underfilling of the electric quantity, when the electronic device uses an inappropriate charging policy to perform charging and discharging; if the battery is used, the cycle number of the battery is made equal to the cycle number of the last time, in which case, the electronic device 100 may continue to charge and discharge according to the previous battery charging policy, so as to avoid performing a zero clearing operation, which results in that the old battery is charged according to the new battery, and a bulge risk is generated.
Further, when the actual voltage value V2 at the second node N2 collected by the ADC2 is within the preset voltage range, the processing module 60 determines that the cycle number of the battery module 40 is less than or equal to the first preset cycle number, and controls the switch module 82 to be turned on for a preset time and then turned off. Then, the ADC2 sends the collected actual voltage value V2 at the second node N2 at this time to the processing module 60, and the processing module 60 determines whether the actual voltage value V2 at the second node N2 at this time is within a preset voltage range.
This is because, as is known from the above, when the actual voltage value V2 at the second node N2 is within the preset voltage range, the state of the auxiliary detecting structure 81 is the on state. When the switch module 82 is turned on, the positive tab 41a of the battery cell 41, the auxiliary detection structure 81, the switch module 82 and the ground form a loop, the state of the auxiliary detection structure 81 should be changed from the on state to the off state, and when the state of the auxiliary detection structure 81 is changed from the on state to the off state, the actual voltage value V2 at the second node N2 collected by the ADC2 is not within the preset voltage range of 1.5V to 1.7V. If the control switch module 82 is turned off after being turned on for a preset time, the state of the auxiliary detecting structure 81 is still in the on state, that is, the actual voltage value V2 at the second node N2 is still within the preset voltage range, it indicates that the battery module 40 is an unofficial battery, that is, the unofficial battery may have no open circuit at the position of the auxiliary detecting structure 81. In this case, in order to ensure the charging safety, the cycle number cycle of the battery is set to a default larger cycle number (also referred to as a second preset cycle number), and then charging and discharging are performed according to a battery charging strategy corresponding to the second preset cycle number, where the second preset cycle number may be 400, 500, 600, or the like.
The switch module 82 further ensures charging safety, and avoids the risk of bulge, explosion, etc. caused by that the unofficial old battery is charged according to the new official battery due to zero clearing operation of the cycle.
In summary, the battery detection circuit 80 provided in the embodiment of the present application can realize the detection of the new and old batteries, and has a simple structure and low cost. In addition, by arranging the structure except the auxiliary detection structure 81 in the battery detection circuit 80 on the PCB 50, occupation of the battery protection board 42 by the structure except the auxiliary detection structure 81 in the battery detection circuit 80 is avoided, so that the area of the battery protection board 42 can be smaller, the size of the battery cell 41 can be increased, and the capacity of the battery module 40 is improved; on this basis, the connection between the first voltage dividing resistor R1 located on the PCB 50 and the auxiliary detecting structure 81 located on the battery protection board 42 is realized through a separate auxiliary detecting pin in the BTB connector, so that the circuit reliability of the battery detecting circuit 80 is higher, and the logic is simpler.
The switching module 82 may include a device having a switching function, such as a MOS transistor.
The auxiliary detecting structure 81 may include a capacitor, a fuse (fuse), a resistor with low impedance and low power, an inductor with weak current capability, a common-mode inductor with weak current capability, or a thin trace with low current capability, which can generate a large change (such as blowing) of the resistance value after a large current is applied. When the auxiliary detecting structure 81 is a fuse, a wire, an inductor or a common-mode inductor, the rated current of the fuse, the rated current of the wire, the rated current of the inductor or the rated current of the common-mode inductor needs to be smaller than the current in the loop (the loop formed by the positive tab 41a of the battery core 41, the auxiliary detecting structure 81, the switch module 82 and the ground) where the auxiliary detecting structure 81 is located, and the loop formed by the positive tab 41a of the battery core 41, the auxiliary detecting structure 81, the first voltage dividing resistor R1, the second voltage dividing resistor R2 and the ground), so that the cycle number of the battery module 40 is larger than the first preset cycle number, and the fuse, the wire, the inductor or the common-mode inductor can be blown. When the auxiliary detecting structure 81 is a resistor, the rated power of the resistor needs to be smaller than the power generated when the resistor is in the circuit (the circuit formed by the positive tab 41a of the battery cell 41, the auxiliary detecting structure 81, the switch module 82 and the ground, and the circuit formed by the positive tab 41a of the battery cell 41, the auxiliary detecting structure 81, the first voltage dividing resistor R1, the second voltage dividing resistor R2 and the ground) where the resistor is located, for example, when the resistor is in the circuit where the resistor is located, the square of the voltage at two ends of the resistor is divided by the resistance value of the resistor to be larger than the rated power of the resistor, so that the cycle number of the battery module 40 is larger than the first preset cycle number, and the resistor can be blown. When the auxiliary detecting structure 81 is a capacitor, the rated voltage of the capacitor needs to be smaller than the voltage at two ends of the capacitor in the circuit where the capacitor is located (the circuit formed by the positive tab 41a of the battery cell 41, the auxiliary detecting structure 81, the switch module 82 and the ground, and the circuit formed by the positive tab 41a of the battery cell 41, the auxiliary detecting structure 81, the first voltage dividing resistor R1, the second voltage dividing resistor R2 and the ground), so that the cycle number of the battery module 40 is larger than the first preset cycle number, and the capacitor can be burned.
For the resistance values of the first voltage dividing resistor R1 and the second voltage dividing resistor R2, the resistance values of the first voltage dividing resistor R1 and the second voltage dividing resistor R2 are not limited in the embodiment of the present application, as long as the voltage at the second node N2 can be caused to meet the ADC range by the voltage division of the first voltage dividing resistor R1 and the second voltage dividing resistor R2. For example, the battery voltage is at most 4.5V, and the ADC range is generally within 1.8V, and after the battery voltage is divided by the first voltage dividing resistor R1 and the second voltage dividing resistor R2, the voltage at the second node N2 is within the ADC range.
In some embodiments, referring to fig. 4, fig. 4 is a schematic circuit structure of still another electronic device according to an embodiment of the present application. As shown in fig. 4, the battery detection circuit 80 further includes a current limiting resistor R3 and a grounding resistor R4, wherein a first end of the current limiting resistor R3 is connected to the GPIO interface of the processing module 60, a second end of the current limiting resistor R3, a first end of the grounding resistor R4 and a control end of the switching module 82 are coupled to the third node N3, and a second end of the grounding resistor R4 is grounded. The current limiting resistor R3 is set to avoid that the current on the path between the GPIO interface of the processing module 60 and the control end of the switch module 82 is larger, and the switch module 82 is affected or damaged. The setting of the grounding resistor R4 can make the signal at the control end of the switch module 82 default to be low, so that the switch module 82 is opened without any reason due to interference of other signals, and the reliability of the circuit is improved.
In some embodiments, referring to fig. 5, fig. 5 is a schematic circuit diagram of still another electronic device according to an embodiment of the present application. As shown in fig. 5, the battery detection circuit 80 further includes a protection module 83, where the protection module 83 is disposed in parallel with the switch module 82, that is, a first end of the protection module 83 is connected to a first end of the switch module 82, and a second end of the protection module 83 is grounded. Because the auxiliary detection pin in the BTB connector connecting the first end of the switch module 82 and the second end of the auxiliary detection structure 81 is exposed when not buckled, a surge may occur when buckled, and the protection module 83 is arranged, so that the switch module 82 is prevented from being damaged by the surge with larger energy.
In one example, the protection module 83 includes a capacitor C and a transient voltage suppression diode (Transient Voltage Suppressors, TVS), a first terminal of the capacitor C is connected to a first terminal of the switch module 82, a second terminal of the capacitor C is grounded, a first terminal of the TVS is connected to a first terminal of the switch module 82, and a second terminal of the TVS is grounded. The capacitor C can stabilize the voltage across the switch module 82, and the TVS can be turned on instantaneously when a surge of greater energy arrives, bypassing the greater energy without damaging the switch module 82.
The embodiment of the present application also provides a battery detection method, which may be applied to the battery detection circuit in this embodiment, for example, and has the same beneficial effects, and details that are not described in detail in this embodiment may refer to the embodiment of the battery detection circuit described above. The battery detection method will be described below with reference to the battery detection circuit shown in fig. 5. The following description will be given taking the auxiliary detecting structure 81 as a fuse as an example.
As shown in fig. 6, the battery detection method may be implemented by:
s101, judging whether the battery module 40 is plugged or not in response to the starting operation of the electronic equipment, and if so, executing a step S102; if not, step S112 is performed.
The power-on operation may include, but is not limited to: and long-press operation of the power key of the electronic equipment by the user.
After the electronic device 100 is turned on, the PMU and the fuel gauge can detect in real time whether the BTB connector on the flexible board 42b and the BTB connector on the PCB 50 are buckled in place, i.e. whether the battery module 40 in the electronic device 100 is reinserted. From the foregoing, it is apparent that the battery may be replaced during maintenance of the electronic device such as a mobile phone when the electronic device is defective. The battery is not replaced, and the BTB connector of the battery module 40 is always buckled with the BTB connector on the PCB 50; when the battery is replaced, the BTB connector of the original battery module 40 is separated from the BTB connector on the PCB 50, and the BTB connector of the new battery module 40 and the BTB connector on the PCB 50 are buckled again, that is, the battery module 40 in the electronic device 100 is reinserted.
S102, acquiring a voltage value of the battery module 40.
The voltage value of the battery module 40 is changed in real time while the battery module 40 is charged or discharged. The electricity meter acquires the voltage value V of the battery module 40 in real time bat At the same time, the processing module 60 acquires the battery voltage value V acquired by the fuel gauge in real time bat
S103, acquiring an actual voltage value V2 at the second node N2.
The ADC2 acquires the actual voltage value V2 at the second node N2 in real time, and the processing module 60 acquires the actual voltage value V2 at the second node N2 acquired by the ADC2 in real time.
S104, determining a preset voltage range.
The processing module 60 is based on the battery voltage value V bat And R is 2 /(R 1 +R 2 ) The voltage at the second node N2, i.e. the theoretical voltage value V1, is determined. The processing module 60 formulates a preset voltage range of [ V1-Vdelta, V1+Vdelta, taking the deviation into account]Vdelta is the offset value. For example, the battery voltage value V acquired by the fuel gauge at this time bat The ratio of R2/(R1+R2) is 0.4, the deviation value Vdelta is 0.1V, V1 is equal to 1.6V, and the preset voltage range is 1.5V-1.7V.
S105, judging whether the actual voltage value V2 is within a preset voltage range, if so, executing a step S106; if not, step S112 is performed.
The processing module 60 determines whether the obtained actual voltage value V2 at the second node N2 is within the preset voltage range determined in step S104, if yes, it indicates that the state of the auxiliary detection structure 81 is a path state; if not, the state of the auxiliary detecting structure 81 is described as the off state.
S106, determining that the cycle number of the battery module 40 is smaller than or equal to the first preset cycle number.
When the electronic device 100 leaves the factory, the fuse is normal and unblown, after the electronic device 100 starts to be used, the number of cycles of full charge and discharge of the battery is increased, and when the number of cycles of full charge and discharge of the battery is increased to a first preset number of cycles, the fuse is blown, namely, when the number of cycles of full charge and discharge of the battery is smaller than or equal to the first preset number of cycles, the fuse is normal and unblown; and when the cycle number of the fully charged and discharged battery is larger than the first preset cycle number, the fuse is blown.
When the state of the auxiliary detecting structure 81 is the on state, i.e., the fuse is normal and unblown, the processing module 60 reversely pushes the cycle number of the battery module 40 to be less than or equal to the first preset cycle number.
When the state of the auxiliary detecting structure 81 is the open state, i.e. the fuse is blown, the processing module 60 reversely pushes the cycle number of the battery module 40 to be greater than the first preset cycle number.
And S107, controlling the switch module 82 to conduct for a preset time so as to blow the fuse.
In consideration of the above, when the battery module 40 is an unofficial battery module, there may be a case where the fuse is burned, and thus the battery module 40 is mistaken for a new battery module.
To avoid this, the processing module 60 sends a high signal to the control terminal of the switching module 82 to control the switching module 82 to be turned on. If the battery module 40 is a new official battery module, after the switch module 82 is turned on for a preset time, the current on the loop formed by the positive tab 41a of the battery cell 41, the fuse, the switch module 82 and the ground causes the fuse to blow, and the state of the auxiliary detection structure 81 is an open state; if the battery module 40 is an unofficial battery module, the fuse is still burned after the switch module 82 is turned on for a preset time, and the state of the auxiliary detecting structure 81 is always a passage state.
S108, the control switch module 82 is turned off.
The processing module 60 sends a low signal to the control terminal of the switching module 82 to control the switching module 82 to be turned off.
S109, judging whether the actual voltage value V2 is in a preset voltage range, if so, executing a step S110; if not, step S111 is performed.
If the control switch module 82 is turned off after being turned on for a preset time, the state of the auxiliary detection structure 81 is still in the on state (the fuse is still not blown), that is, the actual voltage value V2 at the second node N2 is still within the preset voltage range, which indicates that the battery module 40 is an unofficial battery; if the control switch module 82 turns on for a preset time and turns off, the state of the auxiliary detecting structure 81 is changed from the on state to the off state (the fuse is changed from unblown to blown), i.e. the actual voltage value V2 at the second node N2 is not within the preset voltage range, which indicates that the battery module 40 is a new official battery module.
S110, determining the cycle number cycle of the battery as a second preset cycle number.
When the battery module 40 is an unofficial battery, in order to ensure the charging safety, the processing module 60 makes the cycle number cycle of the battery be a default larger cycle number (also referred to as a second preset cycle number), and then performs charging and discharging according to a battery charging policy corresponding to the second preset cycle number, where the second preset cycle number may be 400, 500 or 600. Avoiding the risks of bulge, explosion and the like caused by the zero clearing operation of the cycle and the old battery being charged according to the new battery.
S111, determining that the cycle number cycle of the battery is zero.
When the battery module 40 is a new official battery module, the processing module 60 makes the cycle number cycle of the battery equal to 0, in which case, the electronic device 100 needs to readjust the battery charging policy, so as to avoid the problems of reduced charging performance of the electronic device, such as low safety, slow charging, and underfilling of the electric quantity, when the electronic device uses an improper charging policy to charge and discharge.
S112, determining that the cycle number cycle of the battery is equal to the cycle number cycle of the last time.
In step S102, the battery module 40 may not be plugged, i.e. there is no battery replacement, i.e. the battery module 40 is an old battery module. The processing module 60 determines that the cycle number cycle of the battery is equal to the cycle number cycle of the last time, in which case, the electronic device 100 may continue to charge and discharge according to the previous battery charging policy, so as to avoid performing a zero clearing operation on the cycle, which results in the risk of bulge occurring when the old battery is recharged according to the new battery.
As can be seen from step S105, if the actual voltage V2 at the second node N2 is not within the preset voltage range determined in step S104, the state of the auxiliary detecting structure 81 is indicated as the off state, and the cycle number of the battery module 40 is determined to be greater than the first preset cycle number based on the off state of the auxiliary detecting structure 81, so as to determine that the battery module 40 is an old battery module. The processing module 60 determines that the cycle number cycle of the battery is equal to the cycle number cycle of the last time, in which case, the electronic device 100 may continue to charge and discharge according to the previous battery charging policy, so as to avoid performing a zero clearing operation on the cycle, which results in the risk of bulge occurring when the old battery is recharged according to the new battery.
The above example only shows a flow of one charging method, but does not limit the present application. For example, the predetermined voltage range may be determined first, and then the actual voltage value V2 at the second node N2 may be acquired.
The embodiment of the application also provides a chip, which comprises a processor and a memory, wherein the memory is used for storing a computer program; the processor is used for running the computer program to enable the electronic equipment with the chip to realize the battery detection method.
Optionally, the chip further comprises a memory, the memory is connected with the processor through a circuit or a wire, and the processor is used for reading and executing the computer program in the memory. Further optionally, the chip further comprises a communication interface, and the processor is connected to the communication interface. The communication interface is used for receiving data and/or information to be processed, and the processor acquires the data and/or information from the communication interface and processes the data and/or information. The communication interface may be an input-output interface.
The memory may be read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM) or other types of dynamic storage devices that can store information and instructions, electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media, or any other magnetic storage device that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, etc.
The embodiment of the application also provides a chip system, which comprises a processor and a memory, wherein the memory is used for storing a computer program; the processor is used for running the computer program to enable the electronic equipment where the chip system is located to realize the battery detection method.
The embodiment of the application also provides a computer readable storage medium, wherein instructions are stored in the computer readable storage medium, and when the instructions are executed on the electronic device, the electronic device is caused to execute the battery detection method of the embodiment of the application.
The present embodiments also provide a computer program product containing instructions which, when run on a computer or any of the at least one processor, cause the computer to perform the battery detection method of the embodiments of the present application.
The electronic device, the computer storage medium, or the computer program product provided in the embodiments of the present application are configured to perform the corresponding methods provided above, and therefore, the advantages achieved by the electronic device, the computer storage medium, or the computer program product may refer to the advantages of the corresponding methods provided above, which are not described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
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 of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (17)

1. An electronic device, comprising:
the printed circuit board is provided with a processing module;
the battery module comprises a battery core and a battery protection board connected with the battery core, wherein a connector on the battery protection board is connected with a connector on the printed circuit board so as to enable the battery module to be connected with the printed circuit board;
the battery detection circuit comprises an auxiliary detection structure arranged on the battery protection board and a switch module arranged on the printed circuit board, wherein a first end of the auxiliary detection structure is connected with a positive electrode lug of the battery core, a second end of the auxiliary detection structure is respectively connected with the processing module and a first end of the switch module through auxiliary detection pins of the connector, a second end of the switch module is grounded, and a control end of the switch module is connected with the processing module;
the auxiliary detection structure comprises a passage state and an open circuit state;
the processing module is used for determining the state of the auxiliary detection structure, and determining that the battery module is an old battery module when the state of the auxiliary detection structure is determined to be an open-circuit state; after the state of the auxiliary detection structure is determined to be a passage state and the switch module is controlled to be turned on for a preset time, determining that the battery module is a new battery module when the state of the auxiliary detection structure is an open-circuit state; and when the state of the auxiliary detection structure is determined to be a passage state and the state of the auxiliary detection structure is still the passage state after the switch module is controlled to be conducted for a preset time, determining that the battery module is an unofficial battery module.
2. The electronic device according to claim 1, wherein an ID detection resistor is further provided on the battery protection board, a first end of the ID detection resistor is grounded, and a second end of the ID detection resistor is connected to the processing module through an ID detection communication pin of the connector;
the processing module is used for determining the ID information of the battery module according to the voltage at the second end of the ID detection resistor.
3. The electronic device of claim 1, wherein the battery detection circuit further comprises a first voltage divider resistor and a second voltage divider resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled with the second node, and the second end of the second voltage dividing resistor is grounded.
4. The electronic device of any of claims 1-3, wherein the battery detection circuit further comprises a current limiting resistor located between the processing module and a control terminal of the switching module.
5. The electronic device of any one of claims 1-3, wherein the battery detection circuit further comprises a ground resistor, a first end of the ground resistor being connected to the control end of the switch module, a second end of the ground resistor being grounded.
6. The electronic device of any of claims 1-3, wherein the battery detection circuit further comprises a protection module disposed in parallel with the switch module.
7. The electronic device of claim 6, wherein the protection module comprises a capacitor and a transient voltage suppression diode, a first terminal of the capacitor being connected to the first terminal of the switch module, a second terminal of the capacitor being grounded, a first terminal of the transient voltage suppression diode being connected to the first terminal of the switch module, and a second terminal of the transient voltage suppression diode being grounded.
8. The electronic device of any of claims 1-3, wherein the auxiliary detection structure comprises a capacitance, a fuse, a resistance, an inductance, a common mode inductance, or a trace.
9. The electronic device of any of claims 1-3, wherein the switch module comprises a MOS transistor.
10. A battery detection method, characterized in that it is applied to the electronic device according to any one of claims 1 to 9, comprising:
determining a state of the auxiliary detection structure, wherein the state of the auxiliary detection structure comprises a passage state or an open circuit state;
when the state of the auxiliary detection structure is an open-circuit state, determining that the battery module is an old battery module;
when the state of the auxiliary detection structure is a passage state and the state of the auxiliary detection structure is an open-circuit state after the switch module is controlled to be conducted for a preset time, determining that the battery module is a new battery module;
and when the state of the auxiliary detection structure is a passage state and the state of the auxiliary detection structure is still the passage state after the switch module is controlled to be conducted for a preset time, determining that the battery module is an unofficial battery module.
11. The battery detection method according to claim 10, characterized by further comprising, before determining the state of the auxiliary detection structure:
and determining that the battery module is plugged.
12. The battery detection method according to claim 10 or 11, wherein the battery detection circuit further includes a first voltage dividing resistor and a second voltage dividing resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin to be connected to a first node, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled to a second node, and the second end of the second voltage dividing resistor is grounded;
Determining a state of the auxiliary detection structure, comprising:
acquiring a voltage value of the battery module;
acquiring an actual voltage value at the second node;
determining a preset voltage range according to the voltage value of the battery module, the resistance value of the first voltage dividing resistor and the resistance value of the second voltage dividing resistor;
when the actual voltage value is within the preset voltage range, determining that the auxiliary detection structure is in a channel state; and when the actual voltage value is not in the preset voltage range, determining that the auxiliary detection structure is in an open circuit state.
13. The battery detection method according to claim 10, characterized by further comprising, before determining the state of the auxiliary detection structure:
determining that the battery module is not plugged;
determining a state of the auxiliary detection structure, comprising:
and determining that the auxiliary detection structure is in an open circuit state.
14. The battery detection method of claim 10, wherein the battery detection circuit further comprises a first voltage dividing resistor and a second voltage dividing resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin to be connected to a first node, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled to a second node, and the second end of the second voltage dividing resistor is grounded;
When the state of the auxiliary detection structure is a passage state and the state of the auxiliary detection structure is an open state after the switch module is controlled to be turned on for a preset time, determining that the battery module is a new battery module comprises:
when the state of the auxiliary detection structure is a passage state, controlling the switch module to be conducted for a preset time;
controlling the switch module to be disconnected;
when the obtained actual voltage value at the second node is not in the preset voltage range, determining that the auxiliary detection structure is in an open circuit state;
and determining the battery module as a new battery module according to the disconnection state of the auxiliary detection structure.
15. The battery detection method of claim 10, wherein the battery detection circuit further comprises a first voltage dividing resistor and a second voltage dividing resistor; the second end of the auxiliary detection structure is coupled with the first end of the first voltage dividing resistor and the first end of the switch module through the auxiliary detection pin to be connected to a first node, the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the processing module are coupled to a second node, and the second end of the second voltage dividing resistor is grounded;
When the state of the auxiliary detection structure is a passage state and the state of the auxiliary detection structure is still a passage state after the switch module is controlled to be conducted for a preset time, determining that the battery module is an unofficial battery module includes:
when the state of the auxiliary detection structure is a passage state, controlling the switch module to be conducted for a preset time;
controlling the switch module to be disconnected;
when the obtained actual voltage value at the second node is in a preset voltage range, determining that the auxiliary detection structure is in a channel state;
and determining that the battery module is an unofficial battery module according to the passage state of the auxiliary detection structure.
16. A chip, comprising: a processor and a memory for storing a computer program;
the processor is configured to execute the computer program to cause an electronic device on which the chip is located to implement the battery detection method according to any one of claims 10 to 15.
17. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on an electronic device, causes the electronic device to perform the battery detection method according to any one of claims 10 to 15.
CN202410243784.4A 2024-03-04 2024-03-04 Electronic device and battery detection method Pending CN117826002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410243784.4A CN117826002A (en) 2024-03-04 2024-03-04 Electronic device and battery detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410243784.4A CN117826002A (en) 2024-03-04 2024-03-04 Electronic device and battery detection method

Publications (1)

Publication Number Publication Date
CN117826002A true CN117826002A (en) 2024-04-05

Family

ID=90519500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410243784.4A Pending CN117826002A (en) 2024-03-04 2024-03-04 Electronic device and battery detection method

Country Status (1)

Country Link
CN (1) CN117826002A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004087242A (en) * 2002-08-26 2004-03-18 Fuji Photo Film Co Ltd Electronic apparatus
KR20060102441A (en) * 2005-03-23 2006-09-27 엘지전자 주식회사 Method and apparatus for discerning genuine goods battery
US20070018611A1 (en) * 2005-07-11 2007-01-25 Nokia Corporation Battery detection interface
CN108983106A (en) * 2018-07-27 2018-12-11 国网重庆市电力公司电力科学研究院 Novel power battery health state evaluation method
CN109383840A (en) * 2018-07-28 2019-02-26 深圳市旭发智能科技有限公司 A kind of third party's unmanned plane continuation of the journey base station
CN116365079A (en) * 2023-05-23 2023-06-30 荣耀终端有限公司 Electronic device, method for determining whether battery is old or new, and computer-readable storage medium
CN117388728A (en) * 2023-12-12 2024-01-12 荣耀终端有限公司 Battery detection circuit, method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004087242A (en) * 2002-08-26 2004-03-18 Fuji Photo Film Co Ltd Electronic apparatus
KR20060102441A (en) * 2005-03-23 2006-09-27 엘지전자 주식회사 Method and apparatus for discerning genuine goods battery
US20070018611A1 (en) * 2005-07-11 2007-01-25 Nokia Corporation Battery detection interface
CN108983106A (en) * 2018-07-27 2018-12-11 国网重庆市电力公司电力科学研究院 Novel power battery health state evaluation method
CN109383840A (en) * 2018-07-28 2019-02-26 深圳市旭发智能科技有限公司 A kind of third party's unmanned plane continuation of the journey base station
CN116365079A (en) * 2023-05-23 2023-06-30 荣耀终端有限公司 Electronic device, method for determining whether battery is old or new, and computer-readable storage medium
CN117388728A (en) * 2023-12-12 2024-01-12 荣耀终端有限公司 Battery detection circuit, method and electronic equipment

Similar Documents

Publication Publication Date Title
EP3051622B1 (en) Universal rechargeable battery constituted by employing lithium-ion battery and control method
KR101097262B1 (en) Battery pack and charging method of the same
US20090278501A1 (en) Smart battery protector with impedance compensation
CN101465557B (en) Portable device and battery pack for the same
CN101953016A (en) Charging method for an assembled cell and an assembled cell system
CN111987773B (en) On-chip system, battery pack and electronic device
US8450973B2 (en) Lithium battery module
CN116315184B (en) Battery, circuit board, electronic device, and battery charging method
KR20150107032A (en) Battery pack
US20120032513A1 (en) Battery management circuit, battery module and battery management method
US20020006814A1 (en) Secondary battery control circuit
CN114256939B (en) Over-discharge protection circuit, battery protection board and electronic equipment
CN117458668A (en) Battery protection circuit, battery protection board and electronic equipment
CN110571487A (en) battery and automobile diagnosis panel
US9935472B2 (en) Battery pack
CN116430254B (en) Battery complete charge and discharge frequency recording circuit and electronic equipment
CN117826002A (en) Electronic device and battery detection method
CN105048606B (en) Battery discharge prevention circuit and the rechargeable battery pack for possessing discharge prevention function
CN109888871A (en) A kind of how battery balanced power supply unit, method of supplying power to, electric locking and vehicle
CN212085849U (en) Double-control lock key station charging control circuit
CN115498730A (en) BMS protection circuit and method
CN114709899A (en) Battery management system, battery management method and unmanned aerial vehicle
CN114243870B (en) Over-discharge protection circuit, battery protection board and electronic equipment
CN220382801U (en) Power supply circuit and power supply connection assembly
CN111431149B (en) Battery protection circuit, terminal and battery protection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination