Method and device for identifying new and old batteries

Through the judgment of fuse blowing in the battery protection circuit, the problem of electronic devices not being able to identify new and old batteries is solved, accurate identification and battery parameter loading is achieved, battery life is extended and performance and safety is improved.

CN117712521BActive Publication Date: 2024-12-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310781861.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2024-12-27
Estimated Expiration
2043-06-28

AI Technical Summary

Technical Problem

Electronic devices cannot accurately identify new and old batteries when the battery is replaced or removed, resulting in battery parameters loading errors, affecting battery life and performance.

Method used

The fuse blown situation in the battery protection circuit is judged, and the signal control switch is turned on or off, and the voltage value is read to identify whether the battery is a new and old battery, and the battery status is judged by the fuse marking position.

Benefits of technology

Accurately identify battery types, avoid battery parameter loading errors, extend battery life, and improve battery performance and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117712521B_ABST
    Figure CN117712521B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic equipment, and in particular to a method and device for identifying new and old batteries. The method includes: sending a first signal to a battery protection circuit, the first signal is used to control the first switch in the battery protection circuit to be disconnected, and the battery protection circuit is connected to the battery to be identified through a fuse; reading a first voltage in the battery protection circuit; if it is determined that the fuse is not blown according to the first voltage, a second signal is sent to the battery protection circuit and timed, and the second signal is used to control the first switch to be turned on; when the timing duration reaches the first duration, a third signal is sent to the battery protection circuit, and the third signal is used to control the first switch to be disconnected; reading a second voltage in the battery protection circuit; if it is determined that the fuse has been blown according to the second voltage, it is determined that the battery to be identified is a new battery. The embodiment of the present invention can judge the fuse blowing condition by the voltage condition in the battery protection circuit, which is helpful to identify whether the battery in the electronic device is a new battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a method and device for identifying new and old batteries. Background Art

[0002] When the battery of an electronic device has been disassembled or replaced, the electronic device may not be able to identify what operations have been performed on the battery. That is, the electronic device cannot identify whether the current battery is a new battery or an old battery, which affects the reasonable loading of battery parameters by the electronic device. For example, when the battery of an electronic device has been disassembled but not replaced, the electronic device may clear the historical cache data of the battery and load the battery parameters according to the new battery. In this way, the new battery parameters will be loaded using an aged battery, which may easily cause problems such as battery power jump, accelerated battery aging, or battery bulging. For another example, after the battery of an electronic device has been replaced, the electronic device may still load the battery parameters according to the historical cache data of the old battery. In this way, the new battery will load the old battery parameters, which may easily cause problems such as inaccurate battery power, low charging voltage, and accelerated battery aging. Therefore, how to identify new and old batteries becomes a problem that needs to be solved. Summary of the invention

[0003] The present application provides a method and device for identifying old and new batteries, which can determine the blowing condition of a fuse by the voltage condition in a battery protection circuit, thereby helping to identify whether the battery in an electronic device is a new battery.

[0004] In a first aspect, an embodiment of the present invention provides a method for identifying a new battery and an old battery, the method comprising:

[0005] Sending a first signal to a battery protection circuit, wherein the first signal is used to control a first switch in the battery protection circuit to be disconnected, and the battery protection circuit is connected to the battery to be identified through a fuse;

[0006] Reading a first voltage in the battery protection circuit;

[0007] If it is determined according to the first voltage that the fuse is not blown, a second signal is sent to the battery protection circuit and a second signal is set, wherein the second signal is used to control the first switch to be turned on;

[0008] When the timing duration reaches a first duration, sending a third signal to the battery protection circuit, wherein the third signal is used to control the first switch to be disconnected;

[0009] reading a second voltage in the battery protection circuit;

[0010] If it is determined according to the second voltage that the fuse has blown, then it is determined that the battery to be identified is a new battery.

[0011] In some embodiments, determining that the fuse is not blown according to the first voltage includes: if the first voltage is greater than a first threshold, determining that the fuse is not blown;

[0012] Determining that the fuse has blown according to the second voltage includes: if the second voltage is less than or equal to the first threshold, determining that the fuse has blown.

[0013] In some embodiments, the method further includes: if it is determined according to the first voltage that the fuse has blown, determining that the battery to be identified is a used battery.

[0014] In some embodiments, determining that the fuse has blown according to the first voltage includes:

[0015] Reading the first voltage N1 times, where N1 is greater than or equal to 2;

[0016] If the N1 times of first voltages are all less than or equal to the first threshold, it is determined that the fuse has blown.

[0017] In some embodiments, the method further includes: if it cannot be determined that the fuse has blown according to the second voltage, determining that the battery to be identified is an illegal battery.

[0018] In some embodiments, failing to determine that the fuse has blown according to the second voltage includes:

[0019] Reading the second voltage N2 times, where N2 is greater than or equal to 2;

[0020] If the N2 second voltages are all greater than the first threshold, it cannot be determined that the fuse has blown based on the second voltage.

[0021] In some embodiments, the method further comprises:

[0022] Setting a fuse flag bit, wherein the value of the fuse flag bit is a first value or a second value;

[0023] The first value is used to indicate that the fuse has not been subjected to a fuse operation, and the initial value of the fuse flag bit is the first value;

[0024] The second value is used to indicate that the fuse has been subjected to a fusing operation;

[0025] The value of the fuse mark bit is combined with the first voltage and / or the second voltage to determine whether the battery to be identified is a new battery.

[0026] In some embodiments, the value of the fuse flag bit is combined with the first voltage and / or the second voltage to determine whether the battery to be identified is a new battery, including:

[0027] If the value of the fuse flag bit is the first value, and it is determined according to the first voltage that the fuse is not blown, sending the second signal to the battery protection circuit and timing;

[0028] When the timing duration reaches the first duration and the third signal is sent to the battery protection circuit, setting the value of the fuse flag bit to a second value;

[0029] If the value of the fuse flag bit is the second value, and it is determined according to the second voltage that the fuse has blown, then it is determined that the battery to be identified is a new battery.

[0030] In some embodiments, the method further includes: if the value of the fuse flag bit is a second value, and it cannot be determined according to the second voltage that the fuse has blown, determining that the battery to be identified is an illegal battery.

[0031] In some embodiments, the value of the fuse flag bit is combined with the first voltage and / or the second voltage to determine whether the battery to be identified is a new battery, including:

[0032] If the value of the fuse flag bit is the first value, and it is determined according to the first voltage that the fuse has blown, then it is determined that the battery to be identified is a used battery.

[0033] In some embodiments, the battery protection circuit further includes a first power supply and a second switch;

[0034] Before determining whether the battery to be identified is a new or old battery, the method further includes: sending a fourth signal to the battery protection circuit, wherein the fourth signal is used to control the second switch to remain disconnected during the process of determining whether the battery to be identified is a new or old battery;

[0035] After determining the newness or oldness of the battery to be identified, the method further includes:

[0036] Sending a fifth signal to the battery protection circuit, wherein the fifth signal is used to control both the first switch and the second switch to be turned on, so that the first power source flows through the battery protection circuit;

[0037] reading a third voltage in the battery protection circuit;

[0038] The battery parameters of the battery manufacturer are determined according to the third voltage.

[0039] In a second aspect, an embodiment of the present invention provides a processing chip, comprising: a processor and a memory, wherein the memory is used to store a computer program; the processor is used to run the computer program so that the electronic device where the processing chip is located can implement a method for identifying new and old batteries as described in any one of the first aspects above.

[0040] In a third aspect, an embodiment of the present invention provides an electronic device, including: a processing chip and a battery protection circuit;

[0041] The battery protection circuit comprises a first switch, and the battery protection circuit is connected to the battery to be identified through a fuse;

[0042] The processing chip is connected to the battery protection circuit and is used to execute the new and old battery identification method as described in any one of the first aspects above.

[0043] In some embodiments, the battery protection circuit includes: a first branch and a second branch connected in parallel;

[0044] One of the parallel nodes of the first branch and the second branch is connected to the battery to be identified through a fuse, and the other parallel node is grounded; the first branch includes the first switch, which is used to control the conduction of the first branch;

[0045] The second branch includes a plurality of resistors connected in series; a connection node of two adjacent resistors in the second branch is also connected to a third branch, and the third branch is connected to the first power supply through a second switch;

[0046] The first voltage and the second voltage read by the processing chip are respectively the divided voltages of any resistor in the second branch.

[0047] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on an electronic device, the electronic device executes the method for identifying new and old batteries as described in any one of the first aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0049] Figure 2 A flowchart of a method for identifying new and old batteries provided by an embodiment of the present invention;

[0050] Figure 3 A schematic diagram of the structure of another electronic device provided by an embodiment of the present invention;

[0051] Figure 4 A flowchart of another method for identifying new and old batteries provided by an embodiment of the present invention;

[0052] Figure 5 A schematic diagram of the structure of another electronic device provided by an embodiment of the present invention;

[0053] Figure 6 A flowchart of another method for identifying new and old batteries provided by an embodiment of the present invention;

[0054] Figure 7 A schematic diagram of the structure of another electronic device provided by an embodiment of the present invention;

[0055] Figure 8 A specific schematic diagram of a battery protection circuit provided by an embodiment of the present invention;

[0056] Fig. 9 A flowchart of another method for identifying new and old batteries provided by an embodiment of the present invention;

[0057] Fig.10 A software structure block diagram of an electronic device provided by an embodiment of the present invention;

[0058] Fig.11 A flowchart of another method for identifying new and old batteries provided by an embodiment of the present invention;

[0059] Fig.12 An illegal battery prompt interface provided by an embodiment of the present invention;

[0060] Fig.13 Another illegal battery prompt interface provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0062] Electronic device: The electronic device involved in the embodiment of the present invention may be a mobile phone, a tablet computer (pad), a laptop computer, a vehicle terminal, a virtual reality (VR) device, an augmented reality (AR) device, a wireless device in industrial control, a wireless device in self-driving, a wireless device in remote medical surgery, a wireless device in smart grid, a wireless device in transportation safety, a wireless device in smart city, a wireless device in smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a wearable device, a terminal device in a future mobile communication network or a terminal device in a future evolved public mobile land network (PLMN), etc. The embodiment of the present invention does not limit the specific implementation form of the electronic device.

[0063] See also Figure 1 , is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 1 As shown, the electronic device includes a processing chip 101, a battery protection circuit 102 and a battery 103. The processing chip 101 is connected to the battery protection circuit 102, and the battery protection circuit 102 is connected to the battery 103 through a fuse. Optionally, the battery protection circuit 102 includes a first switch, and the processing chip 101 can control the conduction or disconnection of the first switch. For example, the battery protection circuit 102 may include a switch pin of the first switch. The processing chip 101 controls the conduction or disconnection of the first switch by applying different voltage signals to the switch pin of the first switch. In addition, the battery protection circuit 102 is also provided with a connection point for the processing chip 101 to read the voltage, and the processing chip 101 can read the voltage in the battery protection circuit 102 through the corresponding connection point.

[0064] like Figure 1As shown, the battery protection circuit 102 is connected to the battery 103 through a fuse. The fuse may have been blown or may not have been blown. When the fuse has been blown, the battery 103 is disconnected from the battery protection circuit 102. When the fuse is not blown, the battery 103 remains connected to the battery protection circuit 102. That is, when the fuse is in different states, the connection state of the battery 103 and the battery protection circuit 102 is also different. It can be understood that when the battery 103 is used as a power source, when it is connected or disconnected with the battery protection circuit 102, the voltage value at the connection point for reading the voltage in the battery protection circuit 102 is different. It can be understood that when the first switch in the battery protection circuit 102 is disconnected or turned on, the voltage value at the connection point for reading the voltage in the battery protection circuit 102 is different. In the embodiment of the present invention, the processing chip 101 identifies whether the battery 103 is a new battery by running the program stored therein, controlling the conduction or disconnection of the first switch, and reading the voltage value at the relevant connection point in the battery protection circuit 102. It should be noted that the battery protection circuit 102 can be understood as a black box circuit relative to the processing chip 101, and the processing chip 101 does not need to pay attention to the specific circuit structure of the battery protection circuit 102. The specific structure of the battery protection circuit 102 can be designed as needed, and the specific structure of the battery protection circuit 102 does not affect the processing chip 101 to perform the new and old battery identification method of the embodiment of the present invention.

[0065] See also Figure 2 , is a flow chart of a method for identifying new and old batteries provided by an embodiment of the present invention. Figure 2 As shown, the processing steps of the method include:

[0066] 201, the processing chip 101 sends a first signal to the battery protection circuit 102. The first signal is used to control a first switch in the battery protection circuit 102 to be disconnected.

[0067] 202 , the processing chip 101 reads a first voltage in the battery protection circuit 102 .

[0068] 203 , the processing chip 101 determines whether the fuse has blown according to the first voltage.

[0069] Combination Figure 1 , the on or off state of the first switch, the blown or unblown state of the fuse, can make the voltage value of the connection point for reading the voltage value in the battery protection circuit 102 different, and for the convenience of description, the connection point is referred to as the first connection point. Based on this principle, when the processing chip 101 in the embodiment of the present invention controls the first switch to remain in the off state, it reads the voltage of the first connection point as the first voltage. The processing chip 101 can determine whether the fuse has been blown according to the value of the first voltage.

[0070] 204, if it is determined according to the first voltage that the fuse has blown, the processing chip 101 determines that the battery 103 is an old battery. In some embodiments, when the processing chip 101 runs the method of the embodiment of the present invention and has not performed the fuse operation, it is determined in step 203 that the fuse has blown, indicating that the battery 103 has been identified as new and old, and accordingly, the processing chip 101 determines that the battery 103 is an old battery.

[0071] 205. If it is determined according to the first voltage that the fuse is not blown, the processing chip 101 sends a second signal to the battery protection circuit 102 and performs timing. The second signal is used to control the first switch to be turned on. In some embodiments, when the processing chip 101 runs the method of the embodiment of the present invention and has not performed the fuse operation, it is determined in step 203 that the fuse has not been blown, indicating that the battery 103 may be a new battery, and the processing chip 101 sends a second signal to the battery protection circuit 102. The second signal is used to turn on the first switch in the battery protection circuit 102. When the fuse is not blown and the first switch is turned on, the battery protection circuit 102 performs a fuse operation on the fuse. The timing can be understood as the fuse duration of the fuse.

[0072] 206. When the timing duration reaches the first duration, the processing chip 101 sends a third signal to the battery protection circuit 102. The third signal is used to control the first switch to be disconnected. In some embodiments, when the timing duration reaches the first duration, it means that the first switch is turned on for the first duration, that is, the fuse duration of the fuse reaches the first duration, thereby ensuring that the fuse is blown as much as possible. And when the first switch is turned on for the first duration, the first switch is controlled to be disconnected by the third signal.

[0073] 207, the processing chip 101 reads the second voltage in the battery protection circuit 102. In some embodiments, the battery protection circuit 102 may include a second connection point, and the second connection point is used for the processing chip 101 to read the second voltage. Optionally, the second connection point may be a different connection point from the first connection point in the above step. Of course, the second connection point and the first connection point may also be the same connection point.

[0074] 208 , the processing chip 101 determines whether the fuse has blown according to the second voltage.

[0075] 209 , if it is determined according to the second voltage that the fuse has blown, the processing chip 101 determines that the battery 103 is a new battery.

[0076] 210. If it cannot be determined that the fuse has blown according to the second voltage, the processing chip 101 determines that the battery 103 is an illegal battery.

[0077] In some embodiments, after the fuse operation in step 205, if the battery 103 is a new battery, the fuse will change from an unblown state to a blown state when the first switch is turned on. That is, the battery 103 and the battery protection circuit 102 change from being connected to being disconnected. After the battery 103 changes from being connected to being disconnected from the battery protection circuit 102, the voltage of the relevant connection point in the battery protection circuit 102, such as the second connection point mentioned above, will change. That is, the blown state of the fuse can be inferred from the voltage of the relevant connection point in the battery protection circuit 102.

[0078] In an embodiment of the present invention, the processing chip 101 controls the first switch to change from an off state to an on state and the on state is disconnected after a certain period of time. In this process, if the processing chip 101 determines that the fuse has changed from an unblown state to a blown state according to the voltage in the battery protection circuit 102, the processing chip 101 determines that the battery 103 is a new battery. If the processing chip 101 has determined that the fuse is blown when initially controlling the first switch to be disconnected, the processing chip 101 determines that the battery 103 is an old battery. It can be seen that in an embodiment of the present invention, the blown state of the fuse can be judged by the voltage in the battery protection circuit, and then the newness and oldness of the battery 103 in the electronic device can be identified. In some embodiments, for other situations judged according to the read voltage, such as the situation where it cannot be determined that the fuse has been blown according to the second voltage, the processing chip 101 determines the battery 103 as an illegal battery.

[0079] In some embodiments, in step 203, the processing chip 101 determines whether the fuse has been blown according to the first voltage, including: the processing chip 101 determines whether the first voltage is greater than the first threshold. If the first voltage is greater than the first threshold, the processing chip 101 determines that the fuse is not blown. If the first voltage is less than or equal to the first threshold, the processing chip 101 determines that the fuse has been blown. In some embodiments, if the first voltage is less than or equal to the first threshold, the processing chip 101 can read the first voltage N1-1 times again. And determine whether the N1-1 first voltages are all less than or equal to the first threshold. If the N1 first voltages read by the processing chip 101 are all less than or equal to the first threshold, the processing chip 101 determines that the fuse has been blown. In some embodiments, when determining that the fuse has been blown according to the first voltage, the first voltage can be read multiple times, and the fuse can be judged whether it has been blown according to the results of the multiple readings, thereby making the judgment result more accurate.

[0080] In some embodiments, in step 207, the processing chip 101 determines whether the fuse has been blown according to the second voltage, including: the processing chip 101 determines whether the second voltage is greater than the first threshold. If the second voltage is less than or equal to the first threshold, the processing chip 101 determines that the fuse has been blown. If the second voltage is greater than the first threshold, the processing chip 101 cannot determine that the fuse has been blown according to the second voltage. In some embodiments, if the second voltage is greater than the first threshold, the processing chip 101 can read the second voltage N2-1 times again. And determine whether the N2-1 second voltages are all greater than the first threshold. If the N2 second voltages read by the processing chip 101 are all greater than the first threshold, the processing chip 101 cannot determine that the fuse has been blown according to the second voltage. After the fuse operation, if it is not determined that the fuse has been blown, the processing chip 101 determines the battery 103 as an illegal battery. In some embodiments, when it is not determined that the fuse has been blown according to the second voltage, the second voltage can be read multiple times, and the results of the multiple readings can be used to determine whether the fuse has been blown, thereby making the judgment result more accurate.

[0081] See also Figure 3 , is a schematic diagram of the structure of another electronic device provided by an embodiment of the present invention. Figure 3 As shown, the battery protection circuit 102 includes, in addition to the first switch, a first power source and a second switch. Figure 2 Before the method shown determines whether the battery 103 is a new or old battery, the method further includes: sending a fourth signal to the battery protection circuit 102, the fourth signal is used to control the second switch to remain disconnected during the execution of steps 201-210. After the processing chip 101 determines that the battery 103 is a new battery, an old battery or an illegal battery, the method further includes: the processing chip 101 sends a fifth signal to the battery protection circuit 102, the fifth signal is used to control the first switch and the second switch to be turned on, so that the first power supply flows in the battery protection circuit 102. Afterwards, the processing chip 101 reads the third voltage in the battery protection circuit 102, and the processing chip 101 determines the battery parameters of the battery manufacturer based on the third voltage. Optionally, after the processing chip 101 determines the battery parameters of the battery manufacturer, the power supply setting for the battery 103 can be performed based on the battery parameters of the corresponding manufacturer.

[0082] See also Figure 4 , is a flow chart of another method for identifying new and old batteries provided by an embodiment of the present invention. Figure 4 As shown, the processing steps of the method include:

[0083] 300, the processing chip 101 pre-sets a fuse flag bit, and the initial value of the fuse flag bit is a first value. Optionally, the value of the fuse flag bit is a first value or a second value. The first value is used to indicate that the fuse has not been blown. The second value is used to indicate that the fuse has been blown. When the processing chip 101 starts to execute the method of the embodiment of the present invention, the value of the fuse flag bit is the first value.

[0084] 301. The processing chip 101 sends a first switch disconnection signal and a second switch disconnection signal to the battery protection circuit 102. The first switch disconnection signal is used to control the first switch to be disconnected, and the second switch signal is used to control the second switch to be disconnected.

[0085] 302 , the processing chip 101 reads a first voltage in the battery protection circuit 102 .

[0086] 303, the processing chip 101 determines the newness of the battery according to the first voltage and the fuse mark. Specifically, the following situations are included:

[0087] 304 , if the fuse flag bit takes the first value and the first voltage is less than or equal to the first threshold, it is determined that the battery 103 is a used battery.

[0088] 305 , if the value of the fuse flag bit is the first value and the first voltage is greater than the first threshold, execute step 306 .

[0089] 306 , the processing chip 101 sends a first switch-on signal to the battery protection circuit 102 and sets a timing.

[0090] 307 , when the timing duration reaches the first duration, the processing chip 101 sends a first switch disconnection signal to the battery protection circuit 102 and sets the fuse flag bit to the second value, and jumps to step 302 .

[0091] 308 , if the value of the fuse flag bit is the second value and the first voltage is less than or equal to the first threshold, it is determined that the battery 103 is a new battery.

[0092] 309, for situations other than 304, 305 or 308, the battery 103 is determined to be an illegal battery.

[0093] In an embodiment of the present invention, a fuse mark bit is set, and a fuse operation can be performed on the fuse by controlling the first switch. If before the fuse, the first voltage is greater than the first threshold, and after the fuse, the first voltage is less than or equal to the first threshold, it is determined that the battery 103 is a new battery. If before the fuse, the first voltage is less than or equal to the first threshold, it is determined that the battery 103 is an old battery. For other possible situations other than the above situation, the battery 103 is determined to be an illegal battery. For example, when the value of the fuse mark bit is the second value, and the first voltage is greater than the first threshold, the battery 103 is determined to be an illegal battery. That is, the fuse operation of steps 306 and 307 may not cause the fuse to blow, and at this time, the battery 103 is determined to be an illegal battery. At this time, the processing chip 101 can generate a prompt message to prompt the user to go to the after-sales inspection point to inspect the battery 103.

[0094] See also Figure 5 , is a schematic diagram of the structure of another electronic device provided by an embodiment of the present invention. Figure 5 As shown, the electronic device includes a processing chip 101, a battery protection circuit 102 and a battery 103. The battery protection circuit 102 includes a first branch 1021 and a second branch 1022 connected in parallel. Figure 5 As shown, one of the parallel nodes of the first branch 1021 and the second branch 1022 is connected to the battery 103 through a fuse, and the other parallel node is grounded. The first branch 1021 includes a first switch, and the first switch can control the conduction or disconnection of the first branch 1021. The second branch 1022 is used to connect to the battery 103 through a fuse. When the fuse is not blown, the battery 103 can form a power supply loop with the second branch 1022.

[0095] based on Figure 5 The structure shown in the figure, the embodiment of the present invention provides a flowchart of another method for identifying new and old batteries. Figure 6 As shown, the processing steps of the method include:

[0096] 401, the processing chip 101 sends a first signal to the battery protection circuit 102, where the first signal is used to control a first switch in the battery protection circuit 102 to be disconnected. Figure 5 As shown, when the first switch is disconnected, the first branch 1021 is also in a disconnected state. When the fuse is not blown but the first branch 1021 is disconnected, the battery 103 and the first branch 1021 are also in a disconnected state.

[0097] 402 , the processing chip 101 reads a first voltage at a first connection point in the battery protection circuit 102 . Optionally, the first connection point may be a connection point in the second branch 1022 .

[0098] 403, the processing chip 101 determines whether the first voltage is greater than a first threshold. If the first voltage is greater than the first threshold, it means that a power supply loop can be formed between the battery 103 and the second branch 1022, and the processing chip 101 determines that the fuse is not blown, and then executes step 405. If the first voltage is less than or equal to the first threshold, it means that a power supply loop cannot be formed between the battery 103 and the second branch 1022, and the processing chip 101 determines that the fuse is blown, and then executes step 404.

[0099] 404 , the processing chip 101 determines that the battery 103 is a used battery.

[0100] 405, the processing chip 101 sends a second signal to the battery protection circuit 102 and performs timing, and the second signal is used to control the first switch in the battery protection circuit 102 to be turned on. Figure 5 As shown, when it is determined in step 403 that the fuse is not blown, the processing chip 101 sends a second signal to the battery protection circuit 102 to turn on the first switch in the first branch 1021 through the second signal. When the first switch is turned on, the battery 103 forms a power supply circuit with the first branch 1021. In some embodiments, by designing the circuit structure of the first branch 1021 and the second branch 1022, when the first branch 1021 is turned on, the battery 103 can flow into the first branch 1021 preferentially. For example, when the resistance of the first branch 1021 is small, the battery 103 flows into the first branch 1021 and the current flowing through the resistance wire increases, forming a fuse for the resistance wire. The timing can be understood as the fuse duration. In some embodiments, the processing chip 101 can set the timing by setting the sleep duration. For example, the processing chip 101 enters a sleep state after sending a second signal to the battery protection circuit 102, and sets the sleep duration to the first duration.

[0101] 406. When the timing duration reaches the first duration, the processing chip 101 sends a third signal to the battery protection circuit 102. The third signal is used to control the first switch to be disconnected. Optionally, when the fuse duration of the resistor reaches the first duration, the processing chip 101 sends the third signal to the battery protection circuit 102 to disconnect the first switch.

[0102] 407 , the processing chip 101 reads a second voltage at the first connection point in the battery protection circuit 102 .

[0103] 408, the processing chip 101 determines whether the second voltage is greater than the first threshold. If the second voltage is less than or equal to the first threshold, it means that after the fuse operation and when the first switch is disconnected, the battery 103 and the second branch 1022 no longer form a power supply circuit, indicating that the fuse has been blown, and then step 409 is executed. If the second voltage is greater than the first threshold, it means that after the fuse operation and when the first switch is disconnected, it cannot be determined whether the fuse has been blown, and then step 410 is executed.

[0104] 409 , the processing chip 101 determines that the battery 103 is a new battery.

[0105] 410 , the processing chip 101 determines that the battery 103 is an illegal battery.

[0106] See also Figure 7 , is a schematic diagram of the structure of another electronic device provided by an embodiment of the present invention. Figure 7 As shown, the battery protection circuit 102 also includes: a first power supply and a second switch. The first power supply is connected to the second branch 1022 through the second switch. In some embodiments, the second branch 1022 may include a plurality of resistors connected in series; the connection node of two adjacent resistors in the second branch 1022 is connected to the first power supply through the second switch, and the branch where the second switch and the first power supply are located may also be referred to as a third branch. In some embodiments, when the fuse is blown and the first switch and the second switch are both turned on, the first power supply forms a current loop in the battery protection circuit 102. The processing chip 101 is based on Figure 5 Before the method shown determines whether the battery 103 is a new or old battery, the method further includes: sending a fourth signal to the battery protection circuit 102, the fourth signal is used to control the second switch to remain disconnected during the execution of steps 401-410. After the processing chip 101 determines that the battery 103 is a new battery, an old battery or an illegal battery, the method further includes: the processing chip 101 sends a fifth signal to the battery protection circuit 102, the fifth signal is used to control both the first switch and the second switch to be turned on, so that the first power supply flows in the battery protection circuit 102. Afterwards, the processing chip 101 reads the third voltage in the battery protection circuit 102, and the processing chip 101 determines the battery parameters of the battery manufacturer based on the third voltage. Optionally, after the processing chip 101 determines the battery parameters of the battery manufacturer, the power supply setting for the battery 103 can be performed based on the battery parameters of the corresponding manufacturer.

[0107] See also Figure 8 , is a specific schematic diagram of a battery protection circuit provided by an embodiment of the present invention. Figure 7 and Figure 8 The battery protection circuit 102 includes: a first branch 1021 and a second branch 1022 connected in parallel; wherein the first branch 1021 includes a resistor R0 and a first switch, and the second branch 1022 includes a resistor Rid and a resistor R1. The parallel node B of the resistor R0 and the resistor Rid is connected to the battery 103 through a resistor wire. The parallel node of the first switch and the resistor R1 is grounded. Optionally, the series node A of the resistor Rid and the resistor R1 is connected to the first power source through the second switch. Optionally, Figure 8The first switch and the second switch in the circuit shown are connected to the processing chip 101. Optionally, the series node A and the parallel node B of the battery protection circuit 102 are connected to the processing chip 101, and the processing chip 101 can read the voltage values ​​at the series node A and the parallel node B. Optionally, the first switch in the battery protection circuit 102 has a control pin gpio1, and the second switch has a control pin gpio2. The processing chip 101 can apply a voltage signal to gpio1 or gpio2 to control the conduction or disconnection of the first switch and the second switch. Based on Figure 8 The battery protection circuit 102 shown in the figure, the processing chip 101 executes the new and old battery identification method, such as Fig. 9 As shown, this may include:

[0108] 500, the processing chip 101 pre-sets a fuse flag bit, and the initial value of the fuse flag bit is a first value. Optionally, the value of the fuse flag bit is a first value or a second value. The first value is used to indicate that the fuse has not been blown. The second value is used to indicate that the fuse has been blown. When the processing chip 101 starts to execute the method of the embodiment of the present invention, the value of the fuse flag bit is the first value.

[0109] 501, the processing chip 101 sends a first switch disconnection signal and a second switch disconnection signal to the battery protection circuit 102, the first switch disconnection signal is used to control the first switch to be disconnected, and the second switch signal is used to control the second switch to be disconnected. Optionally, the processing chip 101 may send a first voltage signal to gpio1 and gpio2, and the first voltage signal may be a low voltage signal to control the first switch and the second switch to be disconnected.

[0110] 502, the processing chip 101 determines the value of i and determines whether i satisfies 0≤i<X, if yes, executes step 503; otherwise, executes step 511. Here, X is the maximum number of cycles, and the initial value of i is 0.

[0111] 503 , the processing chip 101 reads the first voltage at point A.

[0112] 504, the processing chip 101 determines the newness of the battery 103 according to the first voltage and the fuse mark, which specifically includes the following situations:

[0113] 505, if the value of the fuse mark is the first value, and the first voltage at point A is less than or equal to the first threshold, then set the old and new battery mark to the value Y1, and record the number of times the old and new battery mark is the value Y1. Then, add 1 to i and jump to step 502.

[0114] 506 , if the value of the fuse flag bit is the first value and the first voltage is greater than the first threshold, execute step 507 .

[0115] 507, the processing chip 101 sends a first switch-on signal to the battery protection circuit 102 and sleeps for a first time period, the first switch-on signal is used to control the first switch in the battery protection circuit 102 to be turned on. Optionally, the processing chip 101 may send a second voltage signal to gpio1, the second voltage signal may be a high voltage signal, to control the first switch to be turned on. Figure 8 As shown, by setting the resistance values ​​of resistors R0, Rid and R1, R0 can be made much smaller than Rid+R1. When the fuse is not blown, the first switch is turned on, and the second switch is turned off, the current output by the battery 103 flows to R0. If the battery is a new battery, the current is sufficient to blow the fuse.

[0116] 508, when the sleep duration reaches the first duration, the processing chip 101 sends a first switch disconnection signal to the battery protection circuit 102 and sets the fuse flag to the second value, and the first switch disconnection signal is used to disconnect the first switch. After that, the processing chip 101 adds 1 to i and jumps to step 502.

[0117] 509 , if the value of the fuse mark is the second value and the first voltage is less than or equal to the first threshold, the new and old battery mark is set to the value Y2 , and the loop is exited to execute step 511 .

[0118] 510, for other cases except 505, 506 or 509, the old and new battery mark is set to the value Y3, and the number of times the old and new battery mark is Y3 is recorded. After that, i is increased by 1 and the process goes to step 502. Among them, for other cases except 505, 506 or 509, for example, when the value of the fuse mark is the second value and the first voltage is greater than the first threshold, the old and new battery mark is set to the value Y3. That is, after the fuse operation is performed on the fuse, the fuse may not be blown, and the old and new battery mark is set to the value Y3.

[0119] 511, the processing chip determines whether the battery 103 is a new battery, an old battery, or an illegal battery according to the value of the fuse mark bit. Specifically, if the value of the fuse mark bit is Y1, and the number of records of Y1 is X, the battery 103 is determined to be an old battery. If the value of the fuse mark bit is Y2, the battery 103 is determined to be a new battery. For other cases except the above two cases, the battery 103 is determined to be an illegal battery. For example, if the value of the fuse mark bit is Y3, and the number of records of Y3 is X, or the value of the fuse mark bit is Y1 and the number of records of Y1 is less than X, the battery 103 is determined to be an illegal battery.

[0120] In the embodiment of the present invention, the processing chip 101 sets a fuse mark and a new and old battery mark, and blows the fuse by controlling the disconnection / conduction of the first switch and the second switch, and determines the newness of the battery by the voltage change before and after the fuse blows.

[0121] In some embodiments, after the processing chip 101 determines that the battery 103 is a new battery, a used battery, or an illegal battery, the processing chip 101 further performs the following steps:

[0122] The processing chip 101 sends a first switch on signal and a second switch on signal to the battery protection circuit, wherein the first switch on signal is used to control the first switch to be on, and the second switch on signal is used to control the second switch to be on. Figure 8 As shown, when the first switch and the second switch are both turned on, the first power source flows between the resistors Rid and R0. The processing chip 101 reads the voltage at point B. Different Rids can be set in the battery protection circuit according to different battery manufacturers. Therefore, the battery manufacturer can be identified according to the voltage at point B, and then the battery parameters of the corresponding battery manufacturer can be determined. Afterwards, the processing chip can determine the number of battery charges, safe voltage reduction value and aging factor based on the battery parameters of the battery manufacturer and the new and old batteries.

[0123] In some embodiments, if the battery is determined to be a new battery, the processing chip 101 can clear the battery record data in the electronic device, such as the number of recorded charging times, cache data of the safety scheme, aging factor, etc. The processing chip 101 loads new battery parameters according to the corresponding battery manufacturer and recalculates the number of charging times, safety voltage reduction value, aging factor, etc.

[0124] In some embodiments, if the battery is determined to be an old battery, the processing chip 101 can configure the battery for use, such as calculating the remaining power and charging voltage, based on the existing battery record data in the electronic device and the corresponding battery manufacturer parameters.

[0125] In some embodiments, if the battery is determined to be an illegal battery, the processing chip 101 may perform the above-mentioned step of determining the battery parameters of the battery manufacturer, and configure the battery for use according to the battery manufacturer parameters and the pre-set parameters related to the illegal battery. In some embodiments, after the processing chip 101 determines that the battery 103 is an illegal battery, it may send a prompt message to the application layer to prompt the user to go to the after-sales inspection point to inspect the battery 103.

[0126] See also Fig.10 , is a software structure block diagram of an electronic device provided by an embodiment of the present invention. Fig.10The electronic device software structure shown includes an application layer and a kernel layer. The application layer is provided with a power management application, and the kernel layer is provided with a device startup module and a power management module. In some embodiments, the electronic device may further include an application framework layer, a system library, etc. between the application layer and the kernel layer, which will not be described in detail in the embodiments of the present invention. Fig.10 As shown, a battery protection circuit and a battery are provided in the hardware layer of the electronic device.

[0127] like Fig.11 As shown, (1) when the electronic device is started, the device startup module of the kernel layer starts the start process. The start process calls the power management module. The power management module is used to execute the new and old battery identification method of the embodiment of the present invention, which specifically includes: (2) the power management module controls Figure 1 , Figure 3 , Figure 5 , Figure 7 or Figure 8 The first switch and the second switch in the battery protection circuit shown are disabled, that is, the first switch and the second switch are controlled to be disconnected. Optionally, a low level can be output to the control pins of the first switch and the second switch to disable the first switch and the second switch. (3) The power management module reads the first voltage in the battery protection circuit. (4) The power management module compares the first voltage with a threshold. Wherein, (41) if the comparison result is an old battery, the device startup module can continue to use the old battery parameters when loading the battery parameters. (42) If it is determined according to the comparison result that the battery may be a new battery, the power management module controls the first switch to be enabled, that is, controls the first switch to be turned on. Optionally, a high level can be output to the control pin of the first switch to enable the first switch. (5) The power management module reads the second voltage in the battery protection circuit. (6) The power management module compares the second voltage with a threshold. Wherein, (61) if the comparison result is a new battery, the device startup module can load the new battery parameters when loading the battery parameters. (62) If the comparison result is an illegal battery, the device startup module can load the old battery parameters when loading the battery parameters to protect the battery safety. Of course, according to the design, if the comparison result is an illegal battery, the device startup module can also load new battery parameters when loading battery parameters. In some embodiments, if the comparison result is an illegal battery, the device startup module or the power management module can notify the power management application so that the power management application issues a prompt message.

[0128] like Fig.12 As shown, the power management application can send a prompt message in the form of a pop-up window in the notification bar. The prompt message can be, for example, "Your battery is an illegal battery, please go to after-sales for inspection in time."

[0129] like Fig.13As shown, the power management application can send a prompt message in the form of a permanent notification in the pull-down notification bar. The prompt message can be, for example, "Your battery is an illegal battery, please go to after-sales service for inspection in time."

[0130] In some examples, a first battery is provided in the electronic device. When the electronic device is turned on, the processing chip controls the first switch and the second switch to be disabled, that is, the first switch and the second switch are both disconnected. Optionally, a low-level signal can be sent to the control pins of the first switch and the second switch to disable the first switch and the second switch. The processing chip reads the voltage at point A in the battery protection circuit as 0, and the processing chip determines that the first battery is an old battery. Afterwards, the electronic device controls the first switch and the second switch to be enabled, that is, the first switch and the second switch are both turned on. Optionally, a high-level signal can be sent to the control pins of the first switch and the second switch to enable the first switch and the second switch. The processing chip reads the voltage at point B in the battery protection circuit, and determines the battery manufacturer parameters of the first battery according to the voltage at point B. Configure the battery based on the battery's historical record data and the battery manufacturer parameters.

[0131] In some examples, a second battery is provided in the electronic device. When the electronic device is turned on, the processing chip controls both the first switch and the second switch to be disabled, that is, the first switch and the second switch are both disconnected. Optionally, a low-level signal can be sent to the control pins of the first switch and the second switch to disable both the first switch and the second switch. If the voltage at point A in the battery protection circuit read by the processing chip is not 0, the processing chip controls the first switch to be enabled and maintained for a certain period of time. After reaching the time, the processing chip reads the voltage at point A in the battery protection circuit as 0. If the processing chip determines that the battery changes from non-0 to 0 before and after the fuse, the processing chip determines that the second battery is a new battery. Afterwards, the electronic device controls both the first switch and the second switch to be enabled, that is, the first switch and the second switch are both turned on. Optionally, a high-level signal can be sent to the control pins of the first switch and the second switch to enable both the first switch and the second switch. The processing chip reads the voltage at point B in the battery protection circuit, and determines the battery manufacturer parameters of the second battery according to the voltage at point B. The processing chip clears the battery's historical data and configures the battery based on the new battery parameters and battery manufacturer parameters.

[0132] In some examples, a third battery is provided in the electronic device. When the electronic device is turned on, the processing chip controls both the first switch and the second switch to be disabled, that is, the first switch and the second switch are both disconnected. Optionally, a low-level signal can be sent to the control pins of the first switch and the second switch to disable both the first switch and the second switch. If the voltage at point A in the battery protection circuit read by the processing chip is not 0, the processing chip controls the first switch to be enabled and maintained for a certain period of time. After reaching the time, the voltage at point A in the battery protection circuit read by the processing chip is still not 0. If the processing chip determines that the battery voltage is non-0 before and after the fuse, the processing chip determines that the third battery is an illegal battery. Afterwards, the electronic device controls both the first switch and the second switch to be enabled, that is, the first switch and the second switch are both turned on. Optionally, a high-level signal can be sent to the control pins of the first switch and the second switch to enable both the first switch and the second switch. The processing chip reads the voltage at point B in the battery protection circuit, and determines the battery manufacturer parameters of the third battery according to the voltage at point B. The processing chip configures the battery based on the pre-set parameters related to the illegal battery and the battery manufacturer parameters.

[0133] The embodiment of the present invention further provides a chip, which includes a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to run the computer program so that the electronic device where the processing chip is located can implement the above-mentioned new and old battery identification method.

[0134] An embodiment of the present invention further provides an electronic device, comprising a processing chip and a battery protection circuit. The battery protection circuit comprises a first switch, and the battery protection circuit is connected to the battery to be identified through a fuse. The processing chip is connected to the battery protection circuit. Optionally, the processing chip can be directly or indirectly connected to a control pin of the first switch in the battery protection circuit. The processing chip can read the voltage value of the relevant connection point in the battery protection circuit. The processing chip can execute the above-mentioned new and old battery identification method.

[0135] In some embodiments, the battery protection circuit comprises: a first branch and a second branch connected in parallel; one of the parallel nodes of the first branch and the second branch is connected to the battery to be identified through a fuse, and the other parallel node is grounded; the first branch comprises the first switch, which is used to control the conduction of the first branch;

[0136] The second branch includes a plurality of resistors connected in series; a connection node of two adjacent resistors in the second branch is also connected to a third branch, and the third branch is connected to the first power supply through a second switch;

[0137] The first voltage and the second voltage read by the processing chip are respectively the divided voltages of any resistor in the second branch.

[0138] An embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the method for identifying new and old batteries according to the embodiment of the present invention.

[0139] The embodiment of the present invention further provides a computer program product including instructions, and when the computer program product is run on a computer or any at least one processor, the computer executes each step of the network connection control method of the embodiment of the present invention.

[0140] Optionally, the chip also includes a memory, which is connected to the processor via a circuit or wire, and the processor is used to read and execute the computer program in the memory. Further optionally, the chip also includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and / or information to be processed, and the processor obtains the data and / or information from the communication interface and processes the data and / or information. The communication interface can be an input and output interface.

[0141] The memory can be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or it can also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

[0142] The electronic device, computer storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.

[0143] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0144] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0146] In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0147] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for identifying new and old batteries, characterized in that: The method comprises: Sending a first signal to a battery protection circuit, wherein the first signal is used to control a first switch in the battery protection circuit to be disconnected, and the battery protection circuit is connected to the battery to be identified through a fuse; reading a first voltage of a first connection point in the battery protection circuit, where the first connection point is a connection point in the second branch; If it is determined according to the first voltage that the fuse is not blown, a second signal is sent to the battery protection circuit and a second signal is set, wherein the second signal is used to control the first switch to be turned on; When the timing duration reaches a first duration, sending a third signal to the battery protection circuit, wherein the third signal is used to control the first switch to be disconnected; reading a second voltage of a first connection point in the battery protection circuit; If it is determined according to the second voltage that the fuse has blown, then it is determined that the battery to be identified is a new battery; Wherein, the battery protection circuit includes a first branch and a second branch connected in parallel; One of the parallel nodes of the first branch and the second branch is connected to the battery through a fuse, and the other parallel node is grounded; The first branch includes a first switch, and the first switch is used to control the conduction or disconnection of the first branch; The second branch is connected to the battery through a fuse. When the fuse is not blown, a power supply circuit is formed between the battery and the second branch. When the fuse is blown, a power supply circuit is no longer formed between the battery and the second branch.

2. The method according to claim 1, characterized in that The determining that the fuse is not blown according to the first voltage includes: if the first voltage is greater than a first threshold, determining that the fuse is not blown; Determining that the fuse has blown according to the second voltage includes: if the second voltage is less than or equal to the first threshold, determining that the fuse has blown.

3. The method according to claim 1, characterized in that The method further comprises: If it is determined according to the first voltage that the fuse has blown, then it is determined that the battery to be identified is a used battery.

4. The method according to claim 3, characterized in that: The step of determining, according to the first voltage, that the fuse has blown includes: Reading the first voltage N1 times, where N1 is greater than or equal to 2; If the N1 times of first voltages are all less than or equal to the first threshold, it is determined that the fuse has blown.

5. The method according to claim 1, characterized in that The method further comprises: If it cannot be determined that the fuse has blown according to the second voltage, the battery to be identified is determined to be an illegal battery.

6. The method according to claim 5, characterized in that Failure to determine that the fuse has blown according to the second voltage includes: Reading the second voltage N2 times, where N2 is greater than or equal to 2; If the N2 second voltages are all greater than the first threshold, it cannot be determined that the fuse has blown based on the second voltage.

7. The method according to claim 1, characterized in that The method further comprises: Setting a fuse flag bit, wherein the value of the fuse flag bit is a first value or a second value; The first value is used to indicate that the fuse has not been subjected to a fuse operation, and the initial value of the fuse flag bit is the first value; The second value is used to indicate that the fuse has been subjected to a fusing operation; The value of the fuse mark bit is combined with the first voltage and / or the second voltage to determine whether the battery to be identified is a new battery.

8. The method according to claim 7, characterized in that The value of the fuse flag bit is combined with the first voltage and / or the second voltage to determine whether the battery to be identified is a new battery, including: If the value of the fuse flag bit is the first value, and it is determined according to the first voltage that the fuse is not blown, sending the second signal to the battery protection circuit and timing; When the timing duration reaches the first duration and the third signal is sent to the battery protection circuit, setting the value of the fuse flag bit to a second value; If the value of the fuse flag bit is the second value, and it is determined according to the second voltage that the fuse has blown, then it is determined that the battery to be identified is a new battery.

9. The method according to claim 8, characterized in that The method further comprises: If the value of the fuse flag bit is the second value, and it cannot be determined according to the second voltage that the fuse has blown, then it is determined that the battery to be identified is an illegal battery.

10. The method according to claim 7, characterized in that The value of the fuse flag bit is combined with the first voltage and / or the second voltage to determine whether the battery to be identified is a new battery, including: If the value of the fuse flag bit is the first value, and it is determined according to the first voltage that the fuse has blown, then it is determined that the battery to be identified is a used battery.

11. The method according to any one of claims 1 to 10, characterized in that: The battery protection circuit also includes a first power supply and a second switch; Before determining whether the battery to be identified is a new or old battery, the method further includes: sending a fourth signal to the battery protection circuit, wherein the fourth signal is used to control the second switch to remain disconnected during the process of determining whether the battery to be identified is a new or old battery; After determining the new and old results of the battery to be identified, the method further includes: Sending a fifth signal to the battery protection circuit, wherein the fifth signal is used to control both the first switch and the second switch to be turned on, so that the first power source flows through the battery protection circuit; reading a third voltage in the battery protection circuit; The battery parameters of the battery manufacturer are determined according to the third voltage.

12. A processing chip, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program; the processor is used to run the computer program so that the electronic device where the processing chip is located can implement the method for identifying new and old batteries as described in any one of claims 1 to 11.

13. An electronic device, characterized in that: include: Processing chip and battery protection circuit; The battery protection circuit comprises a first switch, and the battery protection circuit is connected to the battery to be identified through a fuse; The processing chip is connected to the battery protection circuit and is used to execute the new and old battery identification method according to any one of claims 1-11.

14. The device according to claim 13, characterized in that The battery protection circuit comprises: a first branch and a second branch connected in parallel; One of the parallel nodes of the first branch and the second branch is connected to the battery to be identified through a fuse, and the other parallel node is grounded; the first branch includes the first switch, which is used to control the conduction of the first branch; The second branch includes a plurality of resistors connected in series; a connection node of two adjacent resistors in the second branch is also connected to a third branch, and the third branch is connected to the first power supply through a second switch; The first voltage and the second voltage read by the processing chip are respectively the divided voltages of any resistor in the second branch.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on an electronic device, enables the electronic device to execute the method for identifying new and old batteries as described in any one of claims 1 to 11.