Battery detection method, mobile terminal and computer product

By matching the encrypted information of the supporting battery in the mobile terminal, the problem of difficulty in accurately detecting whether the battery is original in the prior art is solved, and effective identification and security protection of non-combined batteries are achieved.

CN119650918APending Publication Date: 2025-03-18SHENZHEN LEMU COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411791865.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

It is difficult to accurately detect whether the batteries of electronic products are original batteries, resulting in possible safety accidents and property losses.

Method used

By storing the second encryption information in the mobile terminal and matching the first encryption information in the supporting battery, it is determined whether the battery is a supporting battery. If it does not match, the mobile terminal enters a preset state (such as shutdown, alarm, flight mode) to avoid unsuited batteries.

Benefits of technology

It effectively avoids safety accidents caused by non-matching batteries during use, ensuring the accuracy of battery detection and user safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119650918A_ABST
    Figure CN119650918A_ABST
Patent Text Reader

Abstract

The battery detection method is applied to the mobile terminal, the mobile terminal corresponds to a matched battery, and the matched battery comprises a battery cell and a first memory; the battery cell is used for supplying power to the mobile terminal, and first encrypted information is stored in the first memory; the method comprises the following steps: communicating with a current battery of the mobile terminal to obtain first encrypted information; second encryption information stored in the mobile terminal is matched with the obtained first encryption information, under the condition that the second encryption information is matched with the first encryption information, the current battery is determined as a matched battery, and complete functions of the mobile terminal are provided for a user to use; and under the condition that the second encrypted information is not matched with the acquired first encrypted information, enabling the mobile terminal to enter a preset state. Whether the current battery is the matched battery of the mobile terminal or not is determined by comparing the second encryption information of the mobile terminal with the first encryption information of the current battery, so that safety accidents caused by non-matched batteries in the using process are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile communications, and in particular to a battery detection method, a mobile terminal, and a computer product. Background Art

[0002] At present, the batteries of electronic products are easily illegally modified, which may cause some safety accidents without the knowledge of users. Since users cannot identify whether the batteries in electronic products are original batteries, it may cause unnecessary property losses and threaten personal safety.

[0003] Therefore, how to accurately detect the batteries of electronic products is an urgent problem to be solved. Summary of the invention

[0004] The main technical problem solved by the present invention is how to accurately detect the battery of an electronic product.

[0005] According to a first aspect, an embodiment provides a battery detection method, which is applied to a mobile terminal, wherein the mobile terminal corresponds to a matching battery, and the matching battery includes a battery cell and a first memory; the battery cell is used to power the mobile terminal, and the first memory stores first encrypted information; the method includes:

[0006] communicating with a current battery of the mobile terminal to obtain the first encrypted information;

[0007] Matching the second encrypted information stored in the mobile terminal with the obtained first encrypted information, and if the second encrypted information matches the first encrypted information, determining that the current battery is a matching battery, and providing the complete functions of the mobile terminal for the user to use; if the second encrypted information does not match the obtained first encrypted information, causing the mobile terminal to enter a preset state;

[0008] The preset state includes at least one of the following: power-off state, alarm state, and flight mode state.

[0009] According to the second aspect, an embodiment provides a mobile terminal, the mobile terminal corresponds to a matching battery; the matching battery includes a battery cell and a first memory; the battery cell is used to power the mobile terminal; the first memory is used to store first encrypted information; the mobile terminal stores second encrypted information, and the mobile terminal includes:

[0010] A processor is used to communicate with the current battery of the mobile terminal to obtain the first encrypted information; match the second encrypted information stored in the mobile terminal with the obtained first encrypted information, and when the second encrypted information matches the first encrypted information, determine that the current battery is a matching battery, and provide the complete functions of the mobile terminal for user use; when the second encrypted information does not match the obtained first encrypted information, make the mobile terminal enter a preset state; wherein the preset state includes at least one of the following: power-off state, alarm state, and flight mode state.

[0011] According to a third aspect, an embodiment provides a computer program product, comprising a computer program and / or instructions, wherein the computer program and / or instructions implement the above method when executed by a processor.

[0012] According to the battery detection method of the above embodiment, by comparing the second encrypted information of the mobile terminal with the first encrypted information of the current battery, it is determined whether the current battery is a matching battery for the mobile terminal, thereby avoiding safety accidents caused by non-matching batteries during use. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A schematic diagram of a battery detection method provided in this embodiment;

[0014] Figure 2 This is a structural block diagram of a mobile terminal provided in this embodiment. DETAILED DESCRIPTION

[0015] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0016] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0017] The serial numbers of the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).

[0018] At present, many batteries in various electronic products are modified batteries, which pose some safety risks. For example, if the modified battery does not match the charger, it will cause the battery to be overcharged. Overcharging will cause excessive heat and gas inside the battery, which may cause the battery to swell, leak or even explode. Therefore, when users use electronic products installed with modified batteries, it is very likely to cause safety accidents, thereby threatening the user's personal safety. Therefore, how to accurately detect the batteries of electronic products is becoming more and more important.

[0019] Based on this, the solution of the present invention is proposed. In an embodiment of the present invention, by comparing the second encrypted information stored in the mobile terminal with the first encrypted information of the current battery, it is determined whether the current battery is a matching battery for the mobile terminal, thereby avoiding safety accidents caused by non-matching batteries during use. This is described in detail below through some embodiments.

[0020] Example 1, please refer to Figure 1 , Figure 1 is a flow chart of a battery detection method provided in this embodiment, such as Figure 1 As shown, the battery detection method is applied to a mobile terminal, and the mobile terminal corresponds to a matching battery, and the matching battery includes a battery cell and a first memory; the battery cell is used to power the mobile terminal, and the first memory stores first encrypted information.

[0021] It should be noted that the supporting battery used with the mobile terminal may be the battery that comes with the mobile terminal when it leaves the factory, that is, the original battery.

[0022] It should be noted that the matching battery is configured with the first memory when it leaves the factory. The first memory can be any type of memory. Exemplarily, the first memory can be an electrically erasable programmable read-only memory (EEPROM).

[0023] It should be noted that the first encrypted information stored in the first memory may represent any encrypted data. For example, the first encrypted information may be data after a specific value is encrypted, such as data after 0001 is encrypted.

[0024] The battery detection method specifically includes step 101 and step 102:

[0025] Step 101: Communicate with the current battery of the mobile terminal to obtain first encrypted information.

[0026] It should be noted that the current battery is the battery currently being used by the mobile terminal. That is, the current battery may be a matching battery for the mobile terminal, or may be a non-matching battery, i.e., a modified battery. In order to determine whether the current battery is a matching battery for the mobile terminal, the mobile terminal needs to obtain the first encrypted information from the current battery for judgment.

[0027] Step 102: Match the second encrypted information stored in the mobile terminal with the obtained first encrypted information. If the second encrypted information matches the first encrypted information, determine that the current battery is a matching battery, and provide the complete functions of the mobile terminal for the user to use. If the second encrypted information does not match the obtained first encrypted information, make the mobile terminal enter a preset state; wherein the preset state includes at least one of the following: shutdown state, alarm state, and flight mode state.

[0028] It should be noted that the second encrypted information stored in the mobile terminal may represent any encrypted data. For example, the second encrypted information may be data after a specific value is encrypted, such as data after 0001 is encrypted, or data after 0002 is encrypted.

[0029] It should be noted that the second encryption information is stored in the mobile terminal when it leaves the factory.

[0030] It should be noted that the mobile terminal obtains the first encrypted information from the current battery and compares it with the second encrypted information stored in the mobile terminal to determine whether the current battery is a matching battery.

[0031] For example, when the encrypted data stored in the current battery is consistent with the encrypted data stored in the mobile terminal, it is determined that the current battery is a matching battery for the mobile terminal; and when the encrypted data stored in the current battery is inconsistent with the encrypted data stored in the mobile terminal, it is determined that the current battery is a non-matching battery, and the mobile terminal will enter a shutdown state, an alarm state, or an airplane mode state to ensure that the non-matching battery stops supplying power to the mobile terminal.

[0032] In an embodiment of the present application, when the first encrypted information cannot be obtained from the current battery, the mobile terminal enters a preset state.

[0033] It should be noted that when the mobile terminal cannot obtain the first encrypted information from the current battery, it means that the current battery may not have the first memory, or although the battery is equipped with the first memory, the first encrypted information is not stored in the memory, which is sufficient to show that the battery is not a matching battery for the mobile terminal. In this case, the mobile terminal can only enter the shutdown state, alarm state or flight mode state to avoid safety accidents that may be caused by non-matching batteries.

[0034] In an embodiment of the present application, the first encrypted information is pre-stored in the first memory; the second encrypted information is pre-stored in the second memory of the mobile terminal; wherein the first encrypted information includes: an encrypted first pairing code; the second encrypted information includes: an encrypted second pairing code.

[0035] It should be noted that the first pairing code may be any data, and illustratively, the first pairing code may be 0001. The second pairing code may be any data, and illustratively, the second pairing code may be 0001 or 0002.

[0036] It should be noted that the encryption method of the first pairing code and the second pairing code includes but is not limited to a symmetric encryption method and an asymmetric encryption method. Among them, the symmetric encryption method uses the same key for encryption and decryption. The asymmetric encryption method uses a pair of keys (public key and private key) for encryption and decryption. The public key is used to encrypt data, and the private key is used to decrypt data.

[0037] In an embodiment of the present application, when the second encrypted information stored in the mobile terminal is matched with the obtained first encrypted information, and when the second encrypted information matches the first encrypted information, it is determined that the current battery is a matching battery, and the complete functions of the mobile terminal are provided for the user to use, the first encrypted information can be decrypted to obtain the first pairing code; the second encrypted information can be decrypted to obtain the second pairing code; when the first pairing code and the second pairing code are the same, it is determined that the current battery is a matching battery, and the complete functions of the mobile terminal are provided for the user to use.

[0038] Exemplarily, when the first pairing code is 0001 and the second pairing code is 0001, it indicates that the current battery is a matching battery for the mobile terminal; and when the first pairing code is 0001 and the second pairing code is 0002, it indicates that the current battery is a modified battery and is not a matching battery for the mobile terminal.

[0039] In an embodiment of the present application, the matching battery also includes a protection circuit; the protection circuit is used to: when the voltage of the battery cell is less than a first preset threshold value, the protection circuit controls the battery cell to stop supplying power to the mobile terminal; when the voltage of the battery cell is greater than the first preset threshold value and less than a second preset threshold value, the protection circuit controls the battery cell to supply power to the mobile terminal.

[0040] It should be noted that the protection circuit is an electronic circuit used to monitor the battery status and take measures when necessary to prevent the battery from being damaged or dangerous. Specifically, overcharge protection: when the battery charging voltage exceeds the preset safety value, the protection circuit will cut off the charging circuit to prevent the battery from being overcharged. Over-discharge protection: when the battery discharge voltage is lower than the preset safety value, the protection circuit will cut off the discharge circuit to prevent the battery from being over-discharged. Overcurrent / short-circuit protection: when the battery current exceeds the preset safety value, whether due to overcurrent or short circuit, the protection circuit will quickly cut off the current circuit to prevent the battery from being damaged or dangerous.

[0041] It should be noted that when the voltage of the battery cell is less than the first preset threshold value, it means that the discharge voltage of the matching battery is lower than the preset safety value. At this time, the protection circuit will cut off the discharge circuit to prevent the battery from over-discharging, that is, the protection circuit will control the battery cell to stop powering the mobile terminal.

[0042] It should be noted that when the voltage of the battery cell is greater than the first preset threshold and less than the second preset threshold, it means that the discharge voltage of the matching battery is greater than the preset safety value and less than the discharge cut-off voltage. At this time, the matching battery can power the mobile terminal normally.

[0043] It should be noted that the first preset threshold value may represent the minimum voltage of the battery discharge, and the second preset threshold value may represent the maximum voltage of the battery discharge. For example, the first preset threshold value may be 2.5V, and the second preset threshold value may be 4.2V.

[0044] In the embodiment of the present application, the battery cell is directly electrically connected to the first memory to directly supply power to the first memory.

[0045] It should be noted that no matter whether the voltage of the battery cell is less than the first preset threshold value, or greater than the first preset threshold value and less than the second preset threshold value, as long as the battery cell has voltage, it can directly supply power to the first memory. In other words, no matter how the voltage of the battery cell changes, the battery cell will supply power to the first memory without being restricted by the protection circuit.

[0046] In the embodiment of the present application, when the mobile terminal communicates with the current battery to obtain the first encrypted information, it may be when the mobile terminal is powered on, communicating with the current battery of the mobile terminal to obtain the first encrypted information.

[0047] In actual applications, when the host is turned on, it will first communicate with the battery and identify whether the encrypted information in the EEPROM on the battery side (the EEPROM internal register address on the battery protection board, such as: 0X26, with a written value, such as: 0001) matches the encrypted information in the host, that is, it is compared with the preset value stored on the host side. If the value is consistent with the preset value, it means that the battery is the original matching battery of the host. At this time, it can be turned on normally and various application software can be used; if the value is inconsistent with the preset value, it means that the battery is not the original matching battery of the host. At this time, the host system will enter a specific state or shut down.

[0048] Take a mobile phone as an example: after placing the battery in the mobile phone, press the power button, and the system of the mobile phone will start up according to the normal startup process. After that, the mobile phone communicates with the I2C interface of the battery EEPROM through the I2C interface. When the value of the battery EEPROM read by the mobile phone is consistent with the preset value of the mobile phone, it means that the battery is the original matching battery of the mobile phone. If it is inconsistent, it means that the battery is not the original matching battery of the mobile phone. At this time, the mobile phone will enter the setting state. For example: shut down, alarm, enter flight mode, so as to prevent safety hazards caused by non-original batteries.

[0049] It should be noted that the encrypted information in the battery-side EEPROM is pre-written; the encrypted preset value is also pre-written in the host.

[0050] It should be noted that the EEPROM on the battery protection board is always in working condition.

[0051] It should be noted that the battery end of the mobile phone directly supplies power to the EEPROM. Therefore, even if the battery protection board enters the automatic undervoltage protection state, as long as the battery cell has voltage at this time, it can provide working voltage to the EEPROM. This prevents the EEPROM from not working properly due to the battery protection board entering the automatic undervoltage protection state when the battery voltage is too low, and also avoids the failure of the communication protocol between the battery end and the mobile phone end.

[0052] A battery detection method provided in an embodiment of the present application is applied to a mobile terminal, the mobile terminal corresponds to a matching battery, the matching battery includes a battery cell and a first memory; the battery cell is used to power the mobile terminal, and the first memory stores first encrypted information; the method includes: communicating with the current battery of the mobile terminal to obtain the first encrypted information; matching the second encrypted information stored in the mobile terminal with the acquired first encrypted information, and when the second encrypted information matches the first encrypted information, determining that the current battery is a matching battery, providing the complete functions of the mobile terminal for the user to use; when the second encrypted information does not match the acquired first encrypted information, making the mobile terminal enter a preset state. By comparing the second encrypted information of the mobile terminal with the first encrypted information of the current battery, it is determined whether the current battery is a matching battery for the mobile terminal, thereby avoiding safety accidents caused by non-matching batteries during use.

[0053] This embodiment also provides a mobile terminal, which corresponds to a matching battery; the matching battery includes a battery cell and a first memory; the battery cell is used to power the mobile terminal; the first memory is used to store first encrypted information; the mobile terminal stores second encrypted information.

[0054] The mobile terminal includes: a processor, used to communicate with the current battery of the mobile terminal to obtain first encrypted information; match second encrypted information stored in the mobile terminal with the obtained first encrypted information, and when the second encrypted information matches the first encrypted information, determine that the current battery is a matching battery, and provide complete functions of the mobile terminal for user use; when the second encrypted information does not match the obtained first encrypted information, make the mobile terminal enter a preset state; wherein the preset state includes at least one of the following: power-off state, alarm state, and flight mode state.

[0055] It should be noted that the supporting battery used with the mobile terminal may be the battery that comes with the mobile terminal when it leaves the factory, that is, the original battery.

[0056] It should be noted that the matching battery is configured with the first memory when it leaves the factory. The first memory can be any type of memory. Exemplarily, the first memory can be an electrically erasable programmable read-only memory (EEPROM).

[0057] It should be noted that the first encrypted information stored in the first memory may represent any encrypted data. For example, the first encrypted information may be data after a specific value is encrypted, such as data after 0001 is encrypted.

[0058] It should be noted that the current battery is the battery currently being used by the mobile terminal. That is, the current battery may be a matching battery for the mobile terminal, or may be a non-matching battery, i.e., a modified battery. In order to determine whether the current battery is a matching battery for the mobile terminal, the mobile terminal needs to obtain the first encrypted information from the current battery for judgment.

[0059] It should be noted that the second encrypted information stored in the mobile terminal may represent any encrypted data. For example, the second encrypted information may be data after a specific value is encrypted, such as data after 0001 is encrypted, or data after 0002 is encrypted.

[0060] It should be noted that the second encryption information is stored in the mobile terminal when it leaves the factory.

[0061] It should be noted that the mobile terminal obtains the first encrypted information from the current battery and compares it with the second encrypted information stored in the mobile terminal to determine whether the current battery is a matching battery.

[0062] For example, when the encrypted data stored in the current battery is consistent with the encrypted data stored in the mobile terminal, it is determined that the current battery is a matching battery for the mobile terminal; and when the encrypted data stored in the current battery is inconsistent with the encrypted data stored in the mobile terminal, it is determined that the current battery is a non-matching battery, and the mobile terminal will enter a shutdown state, an alarm state, or an airplane mode state to ensure that the non-matching battery stops supplying power to the mobile terminal.

[0063] It should be noted that when the mobile terminal cannot obtain the first encrypted information from the current battery, it means that the current battery may not have the first memory, or although the battery is equipped with the first memory, the first encrypted information is not stored in the memory, which is sufficient to show that the battery is not a matching battery for the mobile terminal. In this case, the mobile terminal can only enter the shutdown state, alarm state or flight mode state to avoid safety accidents that may be caused by non-matching batteries.

[0064] In an embodiment of the present application, the first encrypted information is pre-stored in the first memory; the second encrypted information is pre-stored in the second memory of the mobile terminal; wherein the first encrypted information includes: an encrypted first pairing code; the second encrypted information includes: an encrypted second pairing code.

[0065] It should be noted that the first pairing code may be any data, and illustratively, the first pairing code may be 0001. The second pairing code may be any data, and illustratively, the second pairing code may be 0001 or 0002.

[0066] It should be noted that the encryption method of the first pairing code and the second pairing code includes but is not limited to a symmetric encryption method and an asymmetric encryption method. Among them, the symmetric encryption method uses the same key for encryption and decryption. The asymmetric encryption method uses a pair of keys (public key and private key) for encryption and decryption. The public key is used to encrypt data, and the private key is used to decrypt data.

[0067] It should be noted that when the second encrypted information stored in the mobile terminal is matched with the first encrypted information obtained, and when the second encrypted information matches the first encrypted information, it is determined that the current battery is a matching battery, and the complete functions of the mobile terminal are provided for the user to use, the first encrypted information can be decrypted to obtain the first pairing code; the second encrypted information can be decrypted to obtain the second pairing code; when the first pairing code and the second pairing code are the same, it is determined that the current battery is a matching battery, and the complete functions of the mobile terminal are provided for the user to use.

[0068] Exemplarily, when the first pairing code is 0001 and the second pairing code is 0001, it indicates that the current battery is a matching battery for the mobile terminal; and when the first pairing code is 0001 and the second pairing code is 0002, it indicates that the current battery is a modified battery and is not a matching battery for the mobile terminal.

[0069] It should be noted that the matching battery also includes a protection circuit; the protection circuit is used to: when the voltage of the battery cell is less than a first preset threshold, the protection circuit controls the battery cell to stop supplying power to the mobile terminal; when the voltage of the battery cell is greater than the first preset threshold and less than a second preset threshold, the protection circuit controls the battery cell to supply power to the mobile terminal.

[0070] It should be noted that the protection circuit is an electronic circuit used to monitor the battery status and take measures when necessary to prevent the battery from being damaged or dangerous. Specifically, overcharge protection: when the battery charging voltage exceeds the preset safety value, the protection circuit will cut off the charging circuit to prevent the battery from being overcharged. Over-discharge protection: when the battery discharge voltage is lower than the preset safety value, the protection circuit will cut off the discharge circuit to prevent the battery from being over-discharged. Overcurrent / short-circuit protection: when the battery current exceeds the preset safety value, whether due to overcurrent or short circuit, the protection circuit will quickly cut off the current circuit to prevent the battery from being damaged or dangerous.

[0071] It should be noted that when the voltage of the battery cell is less than the first preset threshold value, it means that the discharge voltage of the matching battery is lower than the preset safety value. At this time, the protection circuit will cut off the discharge circuit to prevent the battery from over-discharging, that is, the protection circuit will control the battery cell to stop powering the mobile terminal.

[0072] It should be noted that when the voltage of the battery cell is greater than the first preset threshold and less than the second preset threshold, it means that the discharge voltage of the matching battery is greater than the preset safety value and less than the discharge cut-off voltage. At this time, the matching battery can power the mobile terminal normally.

[0073] It should be noted that the first preset threshold value may represent the minimum voltage of the battery discharge, and the second preset threshold value may represent the maximum voltage of the battery discharge. For example, the first preset threshold value may be 2.5V, and the second preset threshold value may be 4.2V.

[0074] In the embodiment of the present application, the battery cell is directly electrically connected to the first memory to directly supply power to the first memory.

[0075] It should be noted that no matter whether the voltage of the battery cell is less than the first preset threshold value, or greater than the first preset threshold value and less than the second preset threshold value, as long as the battery cell has voltage, it can directly supply power to the first memory. In other words, no matter how the voltage of the battery cell changes, the battery cell will supply power to the first memory without being restricted by the protection circuit.

[0076] In the embodiment of the present application, when the mobile terminal communicates with the current battery to obtain the first encrypted information, it may be when the mobile terminal is powered on, communicating with the current battery of the mobile terminal to obtain the first encrypted information.

[0077] like Figure 2 As shown, at the battery end, the battery protection IC controls the cell voltage through the control switch to the external input and output of the battery, where the EEPROM is at the battery end and can communicate with the mobile phone CPU. The battery end charge and discharge interface is connected to the power management interface at the mobile phone end to power the mobile phone power management IC. When the mobile phone is turned on, after the mobile phone CPU communicates with the battery end, it determines whether the battery is a matching battery for the mobile phone by identifying whether the preset value stored in the mobile phone is consistent with the value stored in the EEPROM.

[0078] The embodiment of the present application provides a mobile terminal, which corresponds to a matching battery; the matching battery includes a battery cell and a first memory; the battery cell is used to power the mobile terminal; the first memory is used to store first encrypted information; and the mobile terminal stores second encrypted information. The mobile terminal includes: a processor, which is used to communicate with the current battery of the mobile terminal to obtain the first encrypted information; the second encrypted information stored in the mobile terminal is matched with the first encrypted information obtained, and when the second encrypted information matches the first encrypted information, the current battery is determined to be a matching battery, and the complete functions of the mobile terminal are provided for the user to use; when the second encrypted information does not match the first encrypted information obtained, the mobile terminal is made to enter a preset state; wherein the preset state includes at least one of the following: shutdown state, alarm state, and flight mode state. By comparing the second encrypted information of the mobile terminal with the first encrypted information of the current battery, it is determined whether the current battery is a matching battery for the mobile terminal, thereby avoiding safety accidents caused by non-matching batteries during use.

[0079] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0080] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A battery detection method, applied to a mobile terminal, wherein the mobile terminal corresponds to a matching battery, characterized in that: The matching battery includes a battery cell and a first memory; The battery cell is used to supply power to the mobile terminal, and the first memory stores first encrypted information; the method comprises: communicating with a current battery of the mobile terminal to obtain the first encrypted information; Matching the second encrypted information stored in the mobile terminal with the obtained first encrypted information, and if the second encrypted information matches the first encrypted information, determining that the current battery is a matching battery, and providing the complete functions of the mobile terminal for the user to use; if the second encrypted information does not match the obtained first encrypted information, causing the mobile terminal to enter a preset state; The preset state includes at least one of the following: power-off state, alarm state, and flight mode state.

2. The method according to claim 1, characterized in that The method further comprises: When the first encrypted information cannot be obtained from the current battery, the mobile terminal is caused to enter the preset state.

3. The method according to claim 1 or 2, characterized in that The supporting battery also includes a protection circuit; the protection circuit is used for: When the voltage of the battery cell is less than a first preset threshold, the protection circuit controls the battery cell to stop supplying power to the mobile terminal; When the voltage of the battery cell is greater than the first preset threshold and less than a second preset threshold, the protection circuit controls the battery cell to supply power to the mobile terminal.

4. The method according to claim 3, characterized in that The battery cell is directly electrically connected to the first memory to directly supply power to the first memory.

5. The method according to claim 1 or 2, characterized in that: The communicating with the current battery of the mobile terminal to obtain the first encrypted information includes: When the mobile terminal is turned on, the first encrypted information is acquired by communicating with the current battery of the mobile terminal.

6. The method according to claim 1 or 2, characterized in that: The first encrypted information is pre-stored in the first memory; the second encrypted information is pre-stored in the second memory of the mobile terminal; The first encrypted information includes: an encrypted first pairing code; the second encrypted information includes: an encrypted second pairing code.

7. The method according to claim 6, characterized in that The matching of the second encrypted information stored in the mobile terminal with the first encrypted information obtained, and determining that the current battery is a matching battery when the second encrypted information matches the first encrypted information, and providing the complete functions of the mobile terminal for the user to use, includes: Decrypting the first encrypted information to obtain the first pairing code; decrypting the second encrypted information to obtain the second pairing code; In the case that the first pairing code is the same as the second pairing code, it is determined that the current battery is a matching battery, and the complete functions of the mobile terminal are provided for the user to use.

8. A mobile terminal, characterized in that: The mobile terminal corresponds to a matching battery; the matching battery includes a battery cell and a first memory; the battery cell is used to power the mobile terminal; The first memory is used to store first encrypted information; The mobile terminal stores second encrypted information, and the mobile terminal includes: A processor is used to communicate with the current battery of the mobile terminal to obtain the first encrypted information; match the second encrypted information stored in the mobile terminal with the obtained first encrypted information, and when the second encrypted information matches the first encrypted information, determine that the current battery is a matching battery, and provide the complete functions of the mobile terminal for user use; when the second encrypted information does not match the obtained first encrypted information, make the mobile terminal enter a preset state; wherein the preset state includes at least one of the following: power-off state, alarm state, and flight mode state.

9. The mobile terminal according to claim 8, characterized in that: The processor is further configured to enable the mobile terminal to enter the preset state when the first encrypted information cannot be obtained from the current battery.

10. A computer program product comprising a computer program and / or instructions, characterized in that: When the computer program and / or the instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.