Battery type detection method and device, terminal equipment and computer program product
Through the voltage, internal resistance and current change rate detection methods of the terminal device, rechargeable and non-rechargeable batteries can be automatically identified, solving the problem that users have difficulty distinguishing battery types and improving charging safety and user experience.
Patent Information
- Application Number
- CN202510889680.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-19
AI Technical Summary
In the existing technology, it is difficult for users to distinguish between rechargeable batteries and non-rechargeable batteries, which leads to charging errors and safety hazards. In particular, audio and video staff are prone to errors when distinguishing between a large number of batteries, resulting in abnormal charging or even explosion and fire.
By detecting the battery voltage, charging internal resistance and current change rate in the terminal device, combined with preset thresholds and battery status parameters, the battery type is automatically identified. This includes voltage detection, charging internal resistance measurement and current change rate analysis, providing a method for determining the battery type.
It realizes automatic identification of battery types when users cannot distinguish battery types, optimizes user experience, ensures battery charging safety, and reduces the risk of incorrect charging.
Smart Images

Figure CN120669134A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of battery technology, and in particular relates to a battery type detection method, apparatus, terminal device, and computer program product. Background Art
[0002] In actual applications, rechargeable and non-rechargeable batteries are often mixed. Since rechargeable and non-rechargeable batteries of the same model (such as AA batteries and AAA batteries) are designed according to the same appearance standard, the external dimensions of rechargeable and non-rechargeable batteries are the same. Users need professional knowledge, time and patience to distinguish whether the two are rechargeable during use, which is difficult to do in daily use. The difficulty in distinguishing during discharge has little impact, but it has a greater hidden danger during charging. Charging non-rechargeable batteries may cause fires and explosions. Devices with built-in charging functions have a higher risk of mischarging due to the sealed battery. Due to the large number of battery types, there is currently no proper method to distinguish them. It mainly relies on manual identification, which is limited by the user's cognitive level. In particular, audio and video personnel are prone to errors when distinguishing between large numbers of batteries, resulting in incorrect matching of batteries and chargers, causing charging abnormalities and even explosions and fires. Summary of the Invention
[0003] The present invention provides a battery type detection method, apparatus, terminal equipment and computer program product, aiming to solve the technical problem in the prior art that users have difficulty distinguishing between rechargeable batteries and non-rechargeable batteries.
[0004] In a first aspect, an embodiment of the present application provides a method for detecting a battery type, the method being applied to a terminal device, the method comprising:
[0005] When the battery to be tested is connected to the terminal device, performing voltage detection on the battery to be tested to obtain a first current voltage of the battery to be tested, and comparing the first current voltage with a first preset voltage threshold;
[0006] When the first current voltage is greater than the first preset voltage threshold, determining that the type of the battery to be tested is a non-rechargeable battery;
[0007] When the first current voltage is not greater than the first preset voltage threshold, the battery to be tested is charged to continue detecting the type of the battery to be tested.
[0008] In some embodiments, when the first current voltage is not greater than the first preset voltage threshold, charging the battery to be tested to continue detecting the type of the battery to be tested includes:
[0009] When the first current voltage is not greater than the first preset voltage threshold, charging the battery to be tested to obtain a charging internal resistance of the battery to be tested;
[0010] Determining the type of the battery to be tested based on a comparison between the charging internal resistance and a preset internal resistance threshold;
[0011] In the case that the type of the battery to be tested cannot be determined based on the comparison relationship, the type of the battery to be tested is determined based on the current change rate of the battery to be tested during the charging process.
[0012] In some embodiments, the preset internal resistance threshold includes a first preset internal resistance threshold, a second preset internal resistance threshold, and a third preset internal resistance threshold; the first preset internal resistance threshold is greater than the second preset internal resistance threshold, and the second preset internal resistance threshold is greater than the third preset internal resistance threshold;
[0013] The determining the type of the battery to be tested based on a comparison between the charging internal resistance and a preset internal resistance threshold comprises:
[0014] When the charging internal resistance is greater than the first preset internal resistance threshold, determining that the type of the battery to be tested is a constant voltage battery;
[0015] When the charging internal resistance is not greater than the first preset internal resistance threshold and the charging internal resistance is greater than the second preset internal resistance threshold, determining that the type of the battery to be tested is a non-rechargeable battery;
[0016] When the charging internal resistance is not greater than the second preset internal resistance threshold and the charging internal resistance is not greater than the third preset internal resistance threshold, it is determined that the type of the battery to be tested is a rechargeable battery.
[0017] In some embodiments, when the comparison relationship cannot determine the type of the battery to be tested, determining the type of the battery to be tested according to the current change rate of the battery to be tested during the charging process includes:
[0018] When the charging internal resistance is greater than the third preset internal resistance threshold, performing voltage detection on the battery to be tested to obtain a second current voltage of the battery to be tested, and comparing the second current voltage with a second preset voltage threshold;
[0019] When the second current voltage is greater than the second preset voltage threshold, it is determined that the type of the battery to be tested is a non-rechargeable battery.
[0020] In some embodiments, when the comparison relationship cannot determine the type of the battery to be tested, determining the type of the battery to be tested according to the current change rate of the battery to be tested during the charging process includes:
[0021] When the second current voltage is not greater than the second preset voltage threshold, collecting the current charging speed of the battery under test during the charging process; wherein the first preset voltage threshold is greater than the second preset voltage threshold;
[0022] When the current charging speed is greater than the second preset charging speed and greater than the first preset charging speed, the type of the battery to be tested is determined to be a non-rechargeable battery; wherein the first preset charging speed is greater than the second preset charging speed.
[0023] In some embodiments, after the step of collecting the current charging speed of the battery under test during the charging process when the second current voltage is not greater than the second preset voltage threshold, the method further includes:
[0024] If the current charging speed is not greater than the second preset charging speed, determining that the step of collecting the current charging speed of the battery under test during the charging process corresponds to the kth moment, and counting the charging time starting from the kth moment; wherein k is a positive number;
[0025] When the charging duration is greater than the preset charging duration, it is determined that the type of the battery to be tested is a rechargeable battery.
[0026] In some embodiments, the method further comprises:
[0027] When it is determined that the type of the battery to be tested is a non-rechargeable battery, a prompt message is issued.
[0028] In some embodiments, obtaining the current charging performance parameter of the battery in the current battery state includes:
[0029] The current charging performance parameters of the battery in the current battery state are searched from a battery charging table; wherein the battery charging table includes a correspondence between the battery state and the charging performance parameters, and the battery state includes a combination of a battery temperature range and a battery charging progress range.
[0030] In an embodiment of the present application, a correspondence between the combination of the battery temperature range and the battery charging progress range and the charging performance parameters is pre-established, so that during the subsequent charging process of the new energy battery, the terminal device can accurately obtain the current charging performance parameters at the current moment by looking up the table in real time based on the correspondence.
[0031] In a second aspect, the present application further proposes a battery type detection device, comprising:
[0032] a voltage unit, configured to, when the battery to be tested is connected to the terminal, perform voltage detection on the battery to be tested to obtain a first current voltage of the battery to be tested, and compare the first current voltage with a first preset voltage threshold;
[0033] a first judging unit, configured to judge that the type of the battery to be tested is a non-rechargeable battery when the first current voltage is greater than the first preset voltage threshold;
[0034] The second judgment unit is configured to charge the battery to be tested to continue detecting the type of the battery to be tested if the first current voltage is not greater than the first preset voltage threshold.
[0035] In the third aspect, the present application also proposes a terminal device, including a charging unit, a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein the charging unit is used to charge the battery to be tested, and when the processor executes the computer program, the steps of the battery type detection method described in the first aspect above are implemented.
[0036] In a fourth aspect, the present application further proposes a computer program product, wherein the computer program product stores a computer program, and when the computer program is executed by a processor, the battery type detection method as described in the first aspect above is implemented.
[0037] It should be noted that the beneficial effects of the present application are as follows: when the battery to be tested is connected to the terminal device, the terminal device performs voltage detection on the battery to be tested to obtain a first current voltage of the battery to be tested, and compares the first current voltage with a first preset voltage threshold: when the first current voltage is greater than the first preset voltage threshold, the type of the battery to be tested is determined to be a non-rechargeable battery; when the first current voltage is not greater than the first preset voltage threshold, the battery to be tested is charged to continue detecting the type of the battery to be tested. When the user cannot distinguish whether the battery type in a specific voltage range is a non-rechargeable battery type or a rechargeable battery type, the battery type of the battery can be automatically identified, thereby optimizing the user experience while ensuring the safety of battery charging. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0039] Figure 1 A simplified structural diagram of a terminal device provided in an embodiment of the present application;
[0040] Figure 2 A schematic flow chart of a main embodiment of a battery type detection method provided in this application;
[0041] Figure 3 A schematic flow chart of another embodiment of a battery type detection method provided by the present application;
[0042] Figure 4 This is a flow chart of another embodiment of a battery type detection method provided by the present application. DETAILED DESCRIPTION
[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0044] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0045] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0046] In the description of the embodiments of the present application, the term "plurality" refers to two or more (including two), unless otherwise clearly and specifically defined.
[0047] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0048] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0049] The inventors of this application have noted that batteries distributed within certain voltage ranges include both non-rechargeable batteries. For example, batteries distributed within the 1V-2V voltage range include both non-rechargeable and rechargeable batteries. Non-rechargeable batteries primarily include dry-cell batteries with a nominal voltage of 1.5V, such as carbon batteries, alkaline batteries, lithium-iron batteries, and zinc-manganese batteries. Rechargeable batteries primarily include nickel-metal hydride and nickel-cadmium batteries with a nominal voltage of 1.2V, and nickel-zinc batteries with a nominal voltage of 1.6V.
[0050] Within the aforementioned voltage range, AA and AAA batteries are currently widely used. Whether rechargeable or non-rechargeable, these batteries, designed based on the AA or AAA battery appearance standards, have the same dimensions. Identifying whether a battery is rechargeable requires expertise, time, and patience, leading to a significant number of users being unable to distinguish between the two in daily use.
[0051] In order to solve the technical problem in the above-mentioned prior art that it is difficult for users to distinguish between rechargeable batteries and non-rechargeable batteries, the present application proposes a technical solution of a battery type detection method, device, terminal equipment and computer program product, which can automatically identify the battery type of the battery when the user cannot distinguish whether the battery type in a specific voltage range is a non-rechargeable battery type or a rechargeable battery type, while optimizing the user experience and ensuring the safety of battery charging.
[0052] In order to illustrate the technical solutions proposed in the embodiments of the present application, specific embodiments are provided below for illustration.
[0053] First, see Figure 1 , Figure 1 This is a schematic diagram of an embodiment of a terminal device for detecting battery type provided by this application, such as Figure 1As shown, the terminal device of this embodiment includes: a processor 10, a memory 11, and a computer program 12 stored in the memory 11 and executable on the at least one processor 10. The terminal device of this embodiment also includes a charging unit 13 for charging the battery to be tested.
[0054] Figure 1 The terminal device shown may include, but is not limited to, a processor 10, a memory 11, and a charging unit 13. Those skilled in the art will understand that Figure 1 These are merely examples of terminal devices and do not constitute limitations on the terminal devices. The terminal devices may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal devices may also include input and output devices, network access devices, etc. Figure 1 The terminal device shown may be a charging device dedicated to a certain type of battery.
[0055] In some embodiments, the memory 11 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. In other embodiments, the memory 11 may also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Furthermore, the memory 11 may also include both an internal storage unit of the terminal device and an external storage device. The memory 11 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 11 may also be used to temporarily store data that has been output or is to be output.
[0056] Specifically, refer to Figure 2 When the terminal device of the embodiment of the present application detects that a battery to be tested is connected, the processor 10 executes the computer program 12 to implement steps S10 to S30 of the embodiment of the battery type detection method of the present application:
[0057] Step S10: When the battery to be tested is connected to the terminal device, performing voltage detection on the battery to be tested to obtain a first current voltage of the battery to be tested, and comparing the first current voltage with a first preset voltage threshold;
[0058] It is understandable that the computer program 12 is triggered when the battery to be tested is inserted into or connected to the terminal device. In this embodiment, when the terminal device detects that a battery is connected, it immediately starts a voltage detection program to measure the first current voltage Va of the battery to be tested.
[0059] Step S20: When the first current voltage is greater than the first preset voltage threshold, determining that the type of the battery to be tested is a non-rechargeable battery;
[0060] Step S30: When the first current voltage is not greater than the first preset voltage threshold, charging the battery to be tested to continue detecting the type of the battery to be tested.
[0061] It should be noted that the battery to be tested in this embodiment is an AA battery or a AAA battery as an example, and the specific battery voltage range of the AA battery or the AAA battery is within 1V-2V.
[0062] If the first current voltage Va exceeds the first preset voltage threshold V1, it means that the voltage exceeds the upper limit of the critical region, and step S20 is executed to directly determine that the battery to be tested is a non-rechargeable battery. Otherwise, the process continues to run down to step S30, charging the battery to be tested to continue detecting the type of the battery to be tested.
[0063] The embodiment of the present application executes steps S10 to S30 to achieve blind identification of non-rechargeable batteries and rechargeable batteries in a specific battery voltage range of 1V-2V, especially being able to identify the type of non-rechargeable battery. When the type of non-rechargeable battery is identified, the terminal device sends a prompt message to remind the user, thereby avoiding the user's blind charging of the battery.
[0064] Further, refer to Figure 3 In some embodiments, step S30 further includes:
[0065] Step S31: When the first current voltage is not greater than the first preset voltage threshold, charging the battery to be tested to obtain a charging internal resistance of the battery to be tested;
[0066] In a specific implementation, a short charging operation can be applied to the battery under test to measure its charging internal resistance Rc. The specific acquisition method is as follows: (1) Applying charging current: In the battery identification process under test, when the voltage detection does not directly determine the battery type, the terminal device will apply a known charging current (usually a small current to avoid damaging the battery) to the battery under test; (2) Measuring voltage change: While applying the charging current, the terminal device will measure the voltage change at both ends of the battery under test. There is a direct relationship between this voltage change and the charging current and the battery internal resistance. (3) Calculating internal resistance: According to Ohm's law (V=IR), the terminal device can calculate the charging internal resistance Rc of the battery under test by measuring the voltage change and the known charging current.
[0067] Step S32: determining the type of the battery to be tested based on a comparison between the charging internal resistance and a preset internal resistance threshold;
[0068] Understandably, different types of batteries (e.g., rechargeable and non-rechargeable) within the same specific battery voltage range will exhibit different internal resistance characteristics during charging. These characteristics are determined by the chemical materials and structure within the battery.
[0069] In a specific implementation, the embodiments of the present application can determine the internal resistance range of rechargeable and non-rechargeable batteries during the charging process by testing and analyzing a large number of battery samples. Based on this data, a series of internal resistance thresholds (such as a first preset internal resistance threshold Rc1, a second preset internal resistance threshold Rc2, a third preset internal resistance threshold Rc3, etc.) can be preset to distinguish different types of batteries;
[0070] During the actual identification process, the battery's charging internal resistance is measured and compared with a preset internal resistance threshold. Based on this comparison, the battery's type can be determined. For example, if the charging internal resistance is greater than a preset threshold, the battery may be identified as non-rechargeable; otherwise, it may be identified as rechargeable.
[0071] Step S33: If the comparison relationship cannot determine the type of the battery to be tested, determine the type of the battery to be tested according to the current change rate of the battery to be tested during the charging process.
[0072] It is understandable that in some cases, relying solely on internal resistance comparison may not be able to completely accurately identify the battery type. The introduction of charging speed comparison can adapt to more complex battery usage scenarios. Different types of batteries exhibit different charging speed characteristics during the charging process. These characteristics can be used as a basis for distinguishing battery types. This embodiment can capture the characteristic differences between different batteries by measuring the current change rate (i.e., charging speed) during the charging process.
[0073] By performing charging tests on a large number of battery samples, the charging speed range of rechargeable batteries and non-rechargeable batteries during the charging process can be determined. In the actual identification process, the current charging speed of the battery to be tested is measured and compared with the preset charging speed. Based on the comparison result, the type of the battery to be tested can be determined. For example, if the charging speed is greater than a certain preset charging speed, it may be determined to be a certain type of battery; otherwise, it may be determined to be another type of battery (for step S33 of this embodiment, in some embodiments, the following can be performed to determine the type of battery to be tested). Figure 4 Steps S33a to S33f mentioned in the embodiment are used to further determine the battery type).
[0074] The beneficial effects of the embodiments of this application are as follows. By comparing the internal resistance and the rate of change of current during the charging process of the battery, the type of the battery can be further and more accurately identified, and more complex battery usage scenarios can be adapted.
[0075] Further, in some embodiments, there is another control method for the battery type detection method of the embodiments of this application. In this embodiment, the preset internal resistance threshold further includes a first preset internal resistance threshold Rc1, a second preset internal resistance threshold Rc2, and a third preset internal resistance threshold Rc3, where the first preset internal resistance threshold Rc1 is greater than the second preset internal resistance threshold Rc2, and the second preset internal resistance threshold Rc2 is greater than the third preset internal resistance threshold Rc3.
[0076] The specific process of the battery type detection method in this embodiment can refer to Figure 4 the flow schematic diagram shown below:
[0077] First, execute S10 to start the computer program to detect the first current voltage Va of the battery to be tested. If Va > V1, it means that the voltage Va exceeds the upper limit of the critical region, and step S20 can be executed to directly determine that the battery to be tested is a non-rechargeable battery; otherwise, the process continues to run downward to execute step S31 to obtain the charging internal resistance Rc of the battery to be tested by charging:
[0078] If the charging internal resistance Rc is greater than the first preset internal resistance threshold Rc1 (Rc > Rc1), then execute step S32a to determine that the type of the battery to be tested is a 1.5v constant voltage battery; otherwise, the process continues to run downward:
[0079] If the charging internal resistance Rc is greater than the second preset internal resistance threshold Rc2 (Rc > Rc2), then execute step S32b to determine that the type of the battery to be tested is a 1.5v non-rechargeable battery; otherwise, the process continues to run downward:
[0080] If the charging internal resistance is not greater than the third preset internal resistance threshold Rc3 (Rc < Rc3), then determine that the type of the battery to be tested is a rechargeable battery. Otherwise, enter the internal resistance critical region process and continue to run downward to execute:
[0081] Step S33a: Perform voltage detection on the battery to be tested to obtain the second current voltage Vb of the battery to be tested, and compare the second current voltage Vb with the second preset voltage threshold V2 (where the first preset voltage threshold V1 is greater than the second preset voltage threshold V2):
[0082] If the second current voltage Vb is greater than the second preset voltage threshold V2, then execute step S33b to determine that the type of the battery to be tested is a non-rechargeable battery; otherwise, the process continues to run downward:
[0083] Step S33c: collecting the current charging speed Ic_spd of the battery under test during the charging process; comparing the current charging speed Ic_spd with the second preset charging speed Ic_spd2:
[0084] If the current charging speed Ic_spd is greater than the second preset charging speed Ic_spd2 and greater than the first preset charging speed Ic_spd2, step S33d is executed to determine that the type of the battery to be tested is a non-rechargeable battery; otherwise, the process continues to run downward:
[0085] Step S33e: Determine the kth moment corresponding to executing step S33c, and count the charging time tc starting from the kth moment; compare the charging time tc with the preset charging duration tc1. If the charging time tc is greater than the preset charging duration tc1, execute step S33f to determine that the type of the battery to be tested is a rechargeable battery.
[0086] The beneficial effects of the embodiments of the present application are as follows: by incorporating two factors, namely the current change rate and charging duration of the battery under test during the charging process, the battery type of the battery under test can be further determined when the battery type cannot be determined solely by the battery voltage and internal resistance. This improves the accuracy and reliability of identification and helps protect the battery from damage. In addition, the battery type detection method of this embodiment automatically identifies the battery type, which can help users charge rechargeable batteries according to the identification results. This optimizes the user experience while ensuring battery charging safety, reduces the number of charging devices, and further saves users' selection time.
[0087] Furthermore, in one embodiment, the present invention also provides a battery type detection device, comprising:
[0088] a voltage unit, configured to, when the battery to be tested is connected to the terminal, perform voltage detection on the battery to be tested to obtain a first current voltage of the battery to be tested, and compare the first current voltage with a first preset voltage threshold;
[0089] a first judging unit, configured to judge that the type of the battery to be tested is a non-rechargeable battery when the first current voltage is greater than the first preset voltage threshold;
[0090] The second judgment unit is configured to charge the battery to be tested to continue detecting the type of the battery to be tested if the first current voltage is not greater than the first preset voltage threshold.
[0091] It should be noted that the battery type detection device can be understood as a virtual device that can be installed in the terminal device of the aforementioned embodiment. The terminal device uses a processor to run the battery type detection device, and then runs the specific implementation plan of the above battery type detection method embodiment. The information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section.
[0092] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0093] An embodiment of the present application further provides a computer program product, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0094] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program, when executed by the processor, can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device that can carry the computer program code to an electronic device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0096] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0097] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for detecting battery type, characterized in that: The detection method is applied to a terminal device, and the method includes: When the battery to be tested is connected to the terminal device, performing voltage detection on the battery to be tested to obtain a first current voltage of the battery to be tested, and comparing the first current voltage with a first preset voltage threshold; When the first current voltage is greater than the first preset voltage threshold, determining that the type of the battery to be tested is a non-rechargeable battery; When the first current voltage is not greater than the first preset voltage threshold, the battery to be tested is charged to continue detecting the type of the battery to be tested.
2. The detection method according to claim 1, wherein The step of charging the battery to be tested to continue detecting the type of the battery to be tested when the first current voltage is not greater than the first preset voltage threshold includes: When the first current voltage is not greater than the first preset voltage threshold, charging the battery to be tested to obtain a charging internal resistance of the battery to be tested; Determining the type of the battery to be tested based on a comparison between the charging internal resistance and a preset internal resistance threshold; In the case that the type of the battery to be tested cannot be determined based on the comparison relationship, the type of the battery to be tested is determined based on the current change rate of the battery to be tested during the charging process.
3. The detection method according to claim 2, wherein The preset internal resistance threshold includes a first preset internal resistance threshold, a second preset internal resistance threshold and a third preset internal resistance threshold; the first preset internal resistance threshold is greater than the second preset internal resistance threshold, and the second preset internal resistance threshold is greater than the third preset internal resistance threshold; The determining the type of the battery to be tested based on a comparison between the charging internal resistance and a preset internal resistance threshold comprises: When the charging internal resistance is greater than the first preset internal resistance threshold, determining that the type of the battery to be tested is a constant voltage battery; When the charging internal resistance is not greater than the first preset internal resistance threshold and the charging internal resistance is greater than the second preset internal resistance threshold, determining that the type of the battery to be tested is a non-rechargeable battery; When the charging internal resistance is not greater than the second preset internal resistance threshold and the charging internal resistance is not greater than the third preset internal resistance threshold, it is determined that the type of the battery to be tested is a rechargeable battery.
4. The detection method according to claim 3, wherein When the comparison relationship cannot determine the type of the battery to be tested, determining the type of the battery to be tested according to the current change rate of the battery to be tested during the charging process includes: When the charging internal resistance is greater than the third preset internal resistance threshold, performing voltage detection on the battery to be tested to obtain a second current voltage of the battery to be tested, and comparing the second current voltage with a second preset voltage threshold; When the second current voltage is greater than the second preset voltage threshold, it is determined that the type of the battery to be tested is a non-rechargeable battery.
5. The detection method according to claim 4, wherein When the comparison relationship cannot determine the type of the battery to be tested, determining the type of the battery to be tested according to the current change rate of the battery to be tested during the charging process includes: When the second current voltage is not greater than the second preset voltage threshold, collecting the current charging speed of the battery under test during the charging process; wherein the first preset voltage threshold is greater than the second preset voltage threshold; When the current charging speed is greater than the second preset charging speed and greater than the first preset charging speed, the type of the battery to be tested is determined to be a non-rechargeable battery; wherein the first preset charging speed is greater than the second preset charging speed.
6. The detection method according to claim 5, wherein After the step of collecting the current charging speed of the battery under test during the charging process when the second current voltage is not greater than the second preset voltage threshold, the method further includes: If the current charging speed is not greater than the second preset charging speed, determining that the step of collecting the current charging speed of the battery under test during the charging process corresponds to the kth moment, and counting the charging time starting from the kth moment; wherein k is a positive number; When the charging duration is greater than the preset charging duration, it is determined that the type of the battery to be tested is a rechargeable battery.
7. The detection method according to any one of claims 1 to 6, wherein The method further comprises: When it is determined that the type of the battery to be tested is a non-rechargeable battery, a prompt message is issued.
8. A battery type detection device, characterized in that: include: a voltage unit, configured to, when the battery to be tested is connected to the terminal, perform voltage detection on the battery to be tested to obtain a first current voltage of the battery to be tested, and compare the first current voltage with a first preset voltage threshold; a first judging unit, configured to judge that the type of the battery to be tested is a non-rechargeable battery when the first current voltage is greater than the first preset voltage threshold; The second judgment unit is configured to charge the battery to be tested to continue detecting the type of the battery to be tested if the first current voltage is not greater than the first preset voltage threshold.
9. A terminal device comprising a charging unit, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the charging unit is used to charge a battery to be tested, characterized in that: When the processor executes the computer program, the steps of the battery type detection method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product stores a computer program, and when the computer program is executed by a processor, the battery type detection method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Battery charging method and device
CN102136611A
Method for charger identifying battery variety
CN1933277A
Method of discriminating batteries, and battery discriminating apparatus
JP2001218384A
Labelling machine
JP2006331667A
Battery type discrimination device, battery use system, battery type discrimination method and program
JP2024135375A