Battery detection method, device and equipment of terminal, medium and program product

By obtaining the model, battery current and voltage of the terminal equipment, determining the confidence interval based on health, and accurately detecting non-original batteries in second-hand terminal equipment, solving the problems of detection errors and forging test results of illegal merchants in the existing technology, and improving the detection accuracy.

CN118897199APending Publication Date: 2024-11-05转转一零二四(北京)科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410955035.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The prior art cannot accurately detect non-original batteries in second-hand terminal equipment, and there are errors in manual detection, and illegal merchants make the detection results in inaccurate by refreshing the battery serial number or replacing the cable.

Method used

By obtaining the model, battery current and battery voltage of the terminal device, determine the battery current and voltage confidence interval based on the current battery health, and compare the actual battery value with the confidence interval to determine whether the battery is original.

Benefits of technology

Accurate detection of non-original batteries in second-hand terminal devices is achieved, reducing the misjudgment rate and improving the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897199A_ABST
    Figure CN118897199A_ABST
Patent Text Reader

Abstract

The invention provides a battery detection method and device of a terminal, equipment, a medium and a program product. The method comprises the steps that the model, the battery current, the battery voltage and the current battery health degree of the terminal equipment are acquired; determining a corresponding battery current confidence interval and a battery voltage confidence interval according to the current battery health degree and the model of the terminal equipment; and under the condition that the battery current is not in the battery current confidence interval or the battery voltage is not in the battery voltage confidence interval, determining that the battery of the terminal equipment is a non-original battery. According to the technical scheme, the non-original battery in the second-hand terminal equipment can be effectively and accurately detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery detection technology, and in particular to a battery detection method, device, equipment, medium and program product for a terminal. Background Art

[0002] With the development of society and the advancement of science and technology, people's material life is becoming more and more abundant, and more and more second-hand goods are re-entering the commodity circulation link. The reuse of second-hand goods avoids the waste of social resources and the pollution and damage to the environment.

[0003] Before second-hand terminal equipment is sold on e-commerce platforms, it will be quality inspected. Terminal batteries are one of the most frequently detected problems. At present, there are two ways to test the battery of the terminal: one is that the quality inspection engineer disassembles the second-hand terminal equipment to determine whether the battery of the second-hand terminal equipment is an original battery. However, since the first method is to manually test the battery, the test results are prone to errors. The second method is to compare the battery factory value and the current read value. If the two read values ​​are different, the battery of the terminal is a non-original battery. However, the battery read value can be changed by refreshing the battery serial number data or replacing the battery cable, making the battery test result inaccurate.

[0004] Therefore, the prior art still has the technical problem of being unable to accurately detect non-original batteries in second-hand terminal devices. Summary of the invention

[0005] In order to solve the above problems, the present application proposes a terminal battery detection method, device, equipment, medium and program product, which can effectively and accurately detect non-original batteries in second-hand terminal equipment.

[0006] According to a first aspect of an embodiment of the present application, a battery detection method for a terminal is provided, including:

[0007] Get the model, battery current, battery voltage and current battery health of the terminal device;

[0008] Determining a corresponding battery current confidence interval and a battery voltage confidence interval according to the current battery health and the model of the terminal device;

[0009] When the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval, it is determined that the battery of the terminal device is a non-original battery.

[0010] According to a second aspect of an embodiment of the present application, a battery detection device for a terminal is provided, including:

[0011] The acquisition module is used to obtain the model, battery current, battery voltage and current battery health of the terminal device;

[0012] A processing module, used to determine a corresponding battery current confidence interval and a battery voltage confidence interval according to the current battery health and the model of the terminal device;

[0013] The first detection module is used to determine that the battery of the terminal device is a non-original battery when the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval.

[0014] A third aspect of the present application provides an electronic device, including:

[0015] Memory and processor;

[0016] The memory is connected to the processor and is used to store programs;

[0017] The processor implements the above-mentioned terminal battery detection method by running the program in the memory.

[0018] A fourth aspect of the present application provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the battery detection method of the terminal described above is implemented.

[0019] A fifth aspect of the present application provides a computer program product, including a computer program, which implements the above-mentioned terminal battery detection method when executed by a processor.

[0020] One embodiment of the above application has the following advantages or beneficial effects:

[0021] Obtain the model, battery current, battery voltage, and current battery health of the terminal device; determine the corresponding battery current confidence interval and battery voltage confidence interval according to the current battery health and the model of the terminal device; when the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval, determine that the battery of the terminal device is a non-original battery. In this way, by determining the corresponding confidence intervals of the battery current and battery voltage through the current battery health of the terminal device and the model of the terminal device, and then comparing the battery current and battery voltage of the terminal device with their corresponding confidence intervals, the non-original batteries in the second-hand terminal device can be accurately detected, thereby realizing intelligent detection of non-original batteries in the second-hand terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0023] Figure 1 A schematic diagram of a battery detection method for a terminal provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a specific flow chart of step S120 in a battery detection method for a terminal provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of the structure of a battery detection device for a terminal provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] Overview

[0029] At present, with the improvement of people's environmental awareness and the rapid development of Internet technology, users are gradually inclined to trade second-hand goods on various e-commerce platforms.

[0030] Before trading second-hand terminal devices (such as mobile phones, tablets, etc.) on e-commerce platforms, it is necessary to conduct corresponding inspections on the battery and other hardware of the mobile phone to confirm whether the functions are normal, so as to facilitate buyers to confirm the quality issues of the goods.

[0031] The traditional implementation method is manual, that is, the quality inspector disassembles the mobile phone and asks the quality inspection engineer to judge whether the internal battery should be replaced or repaired. However, this will undoubtedly increase the cost of inspection and the probability of misjudgment, and it also places high demands on the quality inspection engineer.

[0032] You can also compare the factory value of the battery with the current read value, and if the double codes are different, the phone has a replaced battery.

[0033] However, the above solutions will lead to the following problems: 1. Manual testing is too subjective, resulting in low accuracy; 2. Only the factory value of the battery and the read value are compared, and if they are the same, it is true, and if they are different, it is false. However, some batteries on the market can be modified by refreshing the battery serial number data or replacing the old battery cable to make new batteries because unscrupulous merchants want to gain more profits, making it difficult for testing tools to distinguish between true and false.

[0034] Therefore, it is necessary to provide a terminal battery detection method, device, equipment, medium and program product to obtain the model, battery current, battery voltage and current battery health of the terminal device; determine the corresponding battery current confidence interval and battery voltage confidence interval according to the current battery health and the model of the terminal device; when the battery current is not in the battery current confidence interval or the battery voltage is not in the battery voltage confidence interval, the battery of the terminal device is a non-original battery. In this way, the confidence intervals corresponding to the battery current and battery voltage are determined by the current battery health of the terminal device and the model of the terminal device, and then the battery current and battery voltage of the terminal device are compared with their corresponding confidence intervals, respectively, so that non-original batteries in second-hand terminal devices can be accurately detected, thereby realizing intelligent detection of non-original batteries in second-hand terminal devices.

[0035] Example scenario

[0036] This specification provides an example of an application scenario of a battery detection method for a terminal. The application scenario may be a scenario for a second-hand terminal device. Specifically, the server may also refer to software running in the electronic device. The server may also be a distributed server, which may be a system with multiple processors, memories, network communication modules, etc. operating in collaboration. Alternatively, the server may also be a server cluster formed by several servers. Alternatively, with the development of science and technology, the server may also be a new technical means capable of realizing the corresponding functions of the implementation methods of the specification. For example, it may be a new form of "server" based on quantum computing. In this scenario, the server may obtain the model, battery current, battery voltage, and current battery health of the second-hand terminal device; determine the confidence interval corresponding to the battery current and battery voltage through the current battery health of the second-hand terminal device and the model of the second-hand terminal device, and then compare the battery current and battery voltage of the second-hand terminal device with their corresponding confidence intervals, so as to accurately detect the non-original battery in the second-hand terminal device, thereby realizing the intelligent detection of the non-original battery in the second-hand terminal device.

[0037] Example Method

[0038] Figure 11 is a flow chart of a battery detection method for a terminal according to an embodiment of the present application. In an exemplary embodiment, a battery detection method for a terminal is provided, comprising:

[0039] S110, obtaining the model, battery current, battery voltage, and current battery health of the terminal device;

[0040] S120, determining a corresponding battery current confidence interval and a battery voltage confidence interval according to the current battery health and the model of the terminal device;

[0041] S130: When the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval, determine that the battery of the terminal device is a non-original battery.

[0042] In step S110, illustratively, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.

[0043] Exemplarily, the battery current and battery voltage of the second-hand terminal device may be the battery current and battery voltage at the current moment. It may also be the statistical value of the battery current and the statistical value of the battery voltage over a period of time. Optionally, the statistical values ​​include mean, mode, median, etc. The model of the terminal device refers to the type number of the terminal device. Specifically, the model of the terminal device is set when it leaves the factory, and terminal devices of different brands generally have different models. For example, when the terminal device is a mobile phone, the model of the terminal device can be queried in "Settings". When the terminal device is a computer, the model of the terminal device can be queried in the properties. It is also possible to call the model of the terminal device in the background according to the request instruction.

[0044] For example, the battery health is usually calculated by the capacity decay rate of the battery. Battery capacity decay refers to the gradual loss of the battery's ability to store energy during use, which directly affects the battery's health.

[0045] Preferably, the method for determining the current battery health includes: obtaining the current maximum capacity of the battery and the initial capacity of the battery of the terminal device; and calculating the ratio of the current maximum capacity of the battery to the initial capacity of the battery to obtain the current battery health.

[0046] Exemplarily, the current maximum capacity of the battery indicates the current available capacity of the battery, which is usually measured by charging and discharging tests. The initial capacity of the battery indicates the rated capacity of the battery when the terminal device is newly purchased, that is, the factory design capacity of the battery. The initial capacity of the battery is usually directly extracted from the device parameters of the terminal device. In this embodiment, the current battery health = the current maximum capacity of the battery / the initial capacity of the battery.

[0047] In some embodiments, a second-hand terminal device is used as an example to illustrate that a request for obtaining the battery current, battery voltage, and current battery health is sent to the second-hand terminal device. The model, battery current, and battery voltage of the second-hand terminal device are extracted in real time, which may be only the current moment, or the battery current and battery voltage of a preset time period may be continuously extracted. The preset time period may be set based on actual experience and is not limited here. For example, a reading is performed every 1s, and repeated 10 times. The average value of the battery current and the average value of the battery voltage of the preset time period are then calculated respectively to obtain the final battery current and the final battery voltage. The current battery health calculated by the second-hand terminal device based on the ratio of the current maximum capacity of the battery to the initial capacity of the battery is obtained.

[0048] In step S120, illustratively, the battery current confidence interval represents the current value interval of the original battery under a specific battery health condition, and the battery voltage confidence interval represents the voltage value interval of the original battery under a specific battery health condition.

[0049] In some embodiments, a second-hand terminal device of model A is used as an example for explanation, and the specific training process is as follows: a large number of battery healths and battery current confidence intervals and battery voltage confidence intervals of second-hand terminal devices of model A can be obtained as training samples. The battery current confidence interval corresponding to each battery health is marked as a first training label, and the battery voltage confidence interval corresponding to each battery health is marked as a second training label.

[0050] The battery health is input into the current confidence prediction model and the voltage confidence prediction model respectively. The current confidence prediction model outputs the current prediction confidence interval, and the voltage confidence prediction model outputs the voltage prediction confidence interval.

[0051] The loss value of the current confidence prediction model is determined by comparing the current prediction confidence interval output by the current confidence prediction model with the first training label, and the parameters of the current confidence prediction model are adjusted with the goal of reducing the loss value of the current confidence prediction model. Then repeat the above training process until the loss value of the current confidence prediction model is less than the set value, where the set value can be set according to actual conditions and is not limited in this embodiment. The above current confidence prediction model can be obtained by training based on any neural network model, or by training based on a pre-trained model.

[0052] The loss value of the voltage confidence prediction model is determined by comparing the voltage prediction confidence interval output by the voltage confidence prediction model with the second training label, and the parameters of the voltage confidence prediction model are adjusted with the goal of reducing the loss value of the current confidence prediction model. Then repeat the above training process until the loss value of the voltage confidence prediction model is less than the set value, where the set value can be set according to actual conditions and is not limited in this embodiment. The above voltage confidence prediction model can be obtained by training based on any neural network model, or by training based on a pre-trained model. Based on the above training process, the corresponding current confidence prediction model and voltage confidence prediction model can be trained for different models of second-hand terminal equipment.

[0053] In this way, after the training of the current confidence prediction model and the voltage confidence prediction model is completed, after the model of the second-hand terminal equipment is determined, the current battery health is input into the current confidence prediction model and the voltage confidence prediction model for the model for confidence prediction, and the battery current confidence interval and the battery voltage confidence interval are output.

[0054] In step S130, illustratively, since the battery current confidence interval and the battery voltage confidence interval are determined for the current battery health, the battery current is compared with the battery current confidence interval. If the battery current is outside the battery current confidence interval, it means that the battery of the second-hand terminal device has been replaced, that is, the battery of the second-hand terminal device is not an original battery. At the same time, the battery voltage is compared with the battery voltage confidence interval. If the battery voltage is outside the battery current confidence interval, it means that the battery of the second-hand terminal device has been replaced, that is, the battery of the second-hand terminal device is not an original battery.

[0055] In the technical solution of the present application, the battery current, battery voltage and current battery health of the terminal device are obtained; the corresponding battery current confidence interval and battery voltage confidence interval are determined according to the current battery health and the model of the terminal device; when the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval, the battery of the terminal device is a non-original battery. In this way, the confidence intervals corresponding to the battery current and battery voltage are determined by the current battery health of the second-hand terminal device and the model of the terminal device, and then the battery current and battery voltage of the terminal device are compared with their corresponding confidence intervals, respectively, so that the non-original battery in the second-hand terminal device can be accurately detected, thereby realizing the intelligent detection of non-original batteries in the second-hand terminal device.

[0056] In one embodiment, Figure 2 As shown, the corresponding battery current confidence interval and battery voltage confidence interval are determined according to the current battery health and the model of the terminal device, and step S120 includes:

[0057] S1210, querying a correspondence table, wherein the correspondence table includes: a correspondence between a model of a terminal device, a battery health interval, a battery current confidence interval, and a battery voltage confidence interval;

[0058] S1220. Determine a corresponding battery current confidence interval and a battery voltage confidence interval according to the current battery health and the model of the terminal device.

[0059] Preferably, the battery current confidence interval and battery voltage confidence interval corresponding to each battery health interval under the model of the terminal device are first queried in the corresponding relationship table, and then the battery current confidence interval and battery voltage confidence interval corresponding to each battery health interval screened out above are searched according to the current battery health to determine the battery current confidence interval and battery voltage confidence interval corresponding to the battery health interval in which the current battery health is located.

[0060] For example, each battery health interval can be set according to actual conditions, and can be divided into three intervals or five intervals, which are not limited here. In this embodiment, the battery health interval can be divided into an excellent battery health interval [100%, 90%), a good battery health interval [90%, 80%), and a battery health interval for which maintenance is recommended [80%, 0%).

[0061] Specifically, taking a second-hand terminal device as an example, the corresponding relationship table is obtained in advance based on the historical data statistics of each second-hand terminal device. In this embodiment, the battery health of the second-hand terminal device with the original battery is first obtained, and the second-hand terminal device is first divided according to the model, and then the second-hand terminal device of the same model is divided twice according to the battery health interval. Then the battery current and battery voltage of the second-hand terminal device of the same model under each battery health interval are detected, and the battery current confidence interval and battery voltage confidence interval of the second-hand terminal device of the model are determined in the test results. Further, after obtaining the test results, the test results can be numerically cleaned first, and then the battery current confidence interval and battery voltage confidence interval of the second-hand terminal device are generated according to the cleaned test results. In this way, second-hand terminal devices of different models are processed to obtain the corresponding relationship between each battery health interval and the battery current confidence interval and battery voltage confidence interval under different models (that is, the corresponding relationship table of terminal devices of different models).

[0062] Therefore, after determining the model of the second-hand terminal device, the battery current confidence interval and the battery voltage confidence interval corresponding to each battery health interval under the model are searched in the corresponding relationship table of terminal devices of different models.

[0063] Then determine the battery health interval in which the current battery health is located as the target battery health interval, and use the battery current confidence interval and battery voltage confidence interval corresponding to the target battery health interval as the battery current confidence interval and battery voltage confidence interval corresponding to the current battery health.

[0064] Preferably, the correspondence table is determined in the following manner:

[0065] The battery health, voltage and current of multiple terminal devices of the same model are counted at preset time intervals to obtain a corresponding relationship between the battery health interval and the battery current confidence interval and the battery voltage confidence interval of the terminal devices of the same model;

[0066] Repeat the above steps for different models of terminal devices to obtain the corresponding relationship between the model of the terminal device, the battery health interval, the battery current confidence interval, and the battery voltage confidence interval.

[0067] Exemplarily, the terminal devices are classified according to the model. In order to further improve the accuracy of the battery current confidence interval and the battery voltage confidence interval, the battery health, voltage and current of the terminal devices of the same model are re-counted after a preset time interval. It is understandable that different models can perform battery health, battery current and battery voltage detection at the same time, and the test results are classified and counted according to the model. Different models can also perform battery health, battery current and battery voltage detection in sequence. For example, after the battery health, battery current and battery voltage detection of multiple terminal devices of model A are completed, the battery health, battery current and battery voltage detection of multiple terminal devices of model B are performed until all models of terminal devices are tested.

[0068] Specifically, taking a second-hand terminal device as an example, the battery health, battery current and battery voltage of multiple second-hand terminal devices of model A (i.e., the same model) are detected, and the battery health in the detection result is divided according to the pre-divided battery health interval, and the battery current and battery voltage in each battery health interval corresponding to model A are obtained. The battery current and battery voltage are counted respectively to determine the battery current confidence interval and battery voltage confidence interval in each battery health interval corresponding to model A. Repeat the above steps to detect the battery health, battery current and battery voltage of second-hand terminal devices of different models, and obtain the corresponding relationship between the model, battery health interval, battery current confidence interval and battery voltage confidence interval of second-hand terminal devices of different models. Furthermore, the execution time of the above steps is set at a fixed time, such as 5 am every day. In this way, the above correspondence table can be updated in time to ensure the accuracy of the generated correspondence table. Among them, the preset time interval can be set according to the actual situation, which is not limited here.

[0069] In one implementation, statistics are collected on the battery health, voltage, and current of multiple terminal devices of the same model at preset time intervals to obtain a correspondence between the battery health interval and the battery current confidence interval and the battery voltage confidence interval of the terminal devices of the same model, including:

[0070] Obtaining the current and voltage of each battery health interval of multiple terminal devices of the same model at preset time intervals;

[0071] According to the current and voltage of each battery health interval, a voltage normal distribution curve and a current normal distribution curve for each battery health interval are constructed respectively;

[0072] The battery voltage confidence interval corresponding to each battery health interval is determined according to the voltage normal distribution curve, and the battery current confidence interval corresponding to each battery health interval is determined according to the current normal distribution curve.

[0073] In this embodiment, a second-hand terminal device is used as an example to set a scheduled task at a preset time point. When the preset time point is reached, the battery current and battery voltage are detected for each battery health interval of multiple terminal devices of the same model to obtain the detection result. For example, a task to update the corresponding relationship between the battery current confidence interval and the battery voltage confidence interval is set at 3 am every day.

[0074] Then, according to the normal distribution model, the battery current and battery voltage of the same type of second-hand terminal equipment in each battery health range are tested and the test results are calculated to obtain the voltage normal distribution curve and current normal distribution curve for each battery health range. Among them, the normal distribution has two parameters, namely the mean μ and the standard deviation σ, which can be recorded as N(μ,σ): the mean μ determines the center position of the normal curve; the standard deviation σ determines the steepness or flatness of the normal curve. The smaller σ is, the steeper the curve is; the larger σ is, the flatter the curve is, and the symmetry is: the normal curve is centered on the mean, symmetrical on the left and right, and the two ends of the curve never intersect with the horizontal axis.

[0075] According to the mean μ and standard deviation σ in the voltage normal distribution curve of each battery health interval, the confidence interval in the voltage normal distribution curve of each battery health interval is calculated, and the confidence interval is used as the battery voltage confidence interval corresponding to each battery health interval.

[0076] According to the mean μ and standard deviation σ in the current normal distribution curve of each battery health interval, the confidence interval in the current normal distribution curve of each battery health interval is calculated, and the confidence interval is used as the battery current confidence interval corresponding to each battery health interval. Among them, the calculated confidence interval Pr (approximately equal to μ±1.96σ) accounts for 95% of the entire overall distribution interval. In this way, the current voltage confidence interval and battery voltage confidence interval corresponding to each battery health interval can be more accurately calculated by using the normal distribution, so that the battery voltage confidence interval and battery voltage confidence interval can be used to determine the non-original batteries in the second-hand terminal equipment.

[0077] Furthermore, according to the above method, the battery current and battery voltage corresponding to each battery health interval of other models of second-hand terminal equipment are normally distributed and statistically analyzed to obtain the corresponding battery voltage confidence interval and battery current confidence interval, so as to facilitate the subsequent call of the battery voltage confidence interval and battery current confidence interval.

[0078] Taking the battery detection method of the terminal executed on the target device (such as a computer) as an example, the target device is connected to the second-hand terminal device through a data cable, and a communication request is initiated through the private protocol of the second-hand terminal device. After the second-hand terminal device trusts the target device, the information of the second-hand terminal device can be read through the target device. Send event A (such as a request to obtain battery voltage and battery current) to the second-hand terminal device to obtain the specific values ​​of the model, battery voltage, and battery current of the second-hand terminal device. Read once every 1s, and repeat 10 times. Then calculate the average value of the battery voltage and the average value of the battery current as U and I respectively;

[0079] Then send event B (such as a request to obtain the current maximum capacity and factory design capacity) to the second-hand terminal device to obtain the current maximum capacity and factory design capacity of the battery. The ratio of the two is the current battery health of the battery, also called battery life. Determine the battery health intervals under the model of the second-hand terminal device, and then determine the target battery health interval according to the current battery health in excellent: [100%, 90%), good: [90%, 80%) and recommended maintenance: [80%, 0%). Compare the battery voltage confidence interval and battery voltage confidence interval corresponding to the target battery health interval with the battery current and battery voltage respectively. If the battery current and battery voltage are both within the corresponding confidence intervals, the battery of the second-hand terminal device is an original battery. If the battery current is not within the corresponding confidence interval or the battery voltage is not within the corresponding confidence interval, the battery of the second-hand terminal device is not an original battery.

[0080] In one embodiment, the method further comprises:

[0081] When the battery current is within the battery current confidence interval and the battery voltage is within the battery voltage confidence interval, it is determined that the battery of the terminal device is an original battery.

[0082] Exemplarily, taking a second-hand terminal device as an example, a request for obtaining the model, battery current, battery voltage, current maximum battery capacity, and initial battery capacity is sent to the second-hand terminal device. The battery current and battery voltage of the second-hand terminal device are extracted in real time, which can be only the current moment, or the battery current and battery voltage of a preset time period can be continuously extracted. The preset time period can be set according to actual experience and is not limited here. For example, a reading is performed every 1s, and repeated 10 times. Then the average value of the battery current and the average value of the battery voltage in the preset time period are calculated respectively to obtain the final battery current and the final battery voltage. The current maximum capacity and the initial capacity of the battery of the second-hand terminal device are obtained, and then the current battery health is calculated based on the ratio of the current maximum capacity of the battery to the initial capacity of the battery.

[0083] Determine the corresponding battery current confidence interval and battery voltage confidence interval based on the current battery health and the model of the second-hand terminal device. Compare the battery current with the battery current confidence interval, and compare the battery voltage with the battery voltage confidence interval. If the battery current is within the battery current confidence interval and if the battery voltage is within the battery voltage confidence interval, it means that the battery of the second-hand terminal has not been replaced, that is, the battery of the second-hand terminal is an original battery. Therefore, the battery voltage and battery current of the second-hand terminal device are judged based on the battery current confidence interval and battery voltage confidence interval corresponding to the current battery health, so as to more accurately detect whether the battery in the second-hand terminal is an original battery.

[0084] Example device

[0085] Accordingly, Figure 3 1 is a schematic diagram of a battery detection device for a terminal according to an embodiment of the present application. In an exemplary embodiment, a battery detection device for a terminal is provided, comprising:

[0086] An acquisition module 310 is used to acquire the model, battery current, battery voltage and current battery health of the terminal device;

[0087] The processing module 320 is used to determine the corresponding battery current confidence interval and battery voltage confidence interval according to the current battery health and the model of the terminal device;

[0088] The first detection module 330 is used to determine that the battery of the terminal device is a non-original battery when the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval.

[0089] In one embodiment, the processing module 320 includes:

[0090] A model search module is used to query a corresponding relationship table, wherein the corresponding relationship table includes: a corresponding relationship between a terminal device model, a battery health interval, a battery current confidence interval, and a battery voltage confidence interval;

[0091] The health search module is used to determine the battery current confidence interval and the battery voltage confidence interval corresponding to the battery health interval in which the current battery health is located according to the current battery health and the model of the terminal device.

[0092] In one implementation, the correspondence table is determined in the following manner, including:

[0093] The battery health, voltage and current of multiple terminal devices of the same model are counted at preset time intervals to obtain a corresponding relationship between the battery health interval and the battery current confidence interval and the battery voltage confidence interval of the terminal devices of the same model;

[0094] Repeat the above steps for different models of terminal devices to obtain the corresponding relationship between the model of the terminal device, the battery health interval, the battery current confidence interval, and the battery voltage confidence interval.

[0095] In one embodiment, the statistics of battery health, voltage and current of multiple terminal devices of the same model are collected at preset time intervals to obtain the corresponding relationship between the battery health interval and the battery current confidence interval and the battery voltage confidence interval of the terminal devices of the same model, including:

[0096] Obtaining the current and voltage of each battery health interval of multiple terminal devices of the same model at preset time intervals;

[0097] According to the current and voltage of each battery health interval, a voltage normal distribution curve and a current normal distribution curve for each battery health interval are constructed respectively;

[0098] The battery voltage confidence interval corresponding to each battery health interval is determined according to the voltage normal distribution curve, and the battery current confidence interval corresponding to each battery health interval is determined according to the current normal distribution curve.

[0099] In one embodiment, the current battery health determination method includes:

[0100] Obtaining the current maximum capacity and initial capacity of the battery of the terminal device;

[0101] The ratio of the current maximum capacity of the battery to the initial capacity of the battery is calculated to obtain the current battery health.

[0102] In one embodiment, the device further comprises:

[0103] The second detection module is used to determine that the battery of the terminal device is an original battery when the battery current is within the battery current confidence interval and the battery voltage is within the battery voltage confidence interval.

[0104] The battery detection device of the terminal provided in this embodiment belongs to the same application concept as the battery detection method of the terminal provided in the above embodiments of this application, and can execute the battery detection method of the terminal provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the battery detection method of the terminal. For the technical details not fully described in this embodiment, please refer to the specific processing content of the battery detection method of the terminal provided in the above embodiments of this application, and will not be repeated here.

[0105] The functions implemented by the above acquisition module 310, processing module 320 and first detection module 330 may be implemented by the same or different processors, respectively, and the embodiment of the present application is not limited thereto.

[0106] It should be understood that the modules in the above devices can be implemented in the form of a processor calling software. For example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or realize the functions of each unit of the device, wherein the processor can be a general-purpose processor, such as a CPU or a microprocessor, etc., and the memory can be a memory in the device or a memory outside the device. Alternatively, the unit in the device can be implemented in the form of a hardware circuit, and the functions of some or all units can be realized by designing the hardware circuit. The hardware circuit can be understood as one or more processors; for example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be implemented by PLD, taking FPGA as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by a configuration file, so as to realize the functions of some or all of the above units. All units of the above devices can be implemented in the form of a processor calling software, or in the form of a hardware circuit, or in part by a processor calling software, and the remaining part is implemented in the form of a hardware circuit.

[0107] In an embodiment of the present application, a processor is a circuit with the ability to process signals. In one implementation, the processor may be a circuit with the ability to read and run instructions, such as a CPU, a microprocessor, a GPU, or a DSP; in another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, DPU, etc.

[0108] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.

[0109] In addition, all or part of the units in the above device can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a SOC. The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The type of the at least one processor may be different, for example, including a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.

[0110] Exemplary Electronic Devices

[0111] Another embodiment of the present application also provides an electronic device, see Figure 4 As shown, the device includes:

[0112] Memory 400 and processor 410;

[0113] The memory 400 is connected to the processor 410 and is used to store programs;

[0114] The processor 410 is configured to implement the battery detection method for the terminal disclosed in any of the above embodiments by running the program stored in the memory 400 .

[0115] Specifically, the electronic device may further include: a bus, a communication interface 420 , an input device 430 and an output device 440 .

[0116] The processor 410, the memory 400, the communication interface 420, the input device 430 and the output device 440 are connected to each other via a bus.

[0117] A bus may include a pathway that transfers information between components of a computer system.

[0118] Processor 410 may be a general purpose processor, such as a general purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0119] The processor 410 may include a main processor, and may also include a baseband chip, a modem, and the like.

[0120] The memory 400 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 400 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.

[0121] The input device 430 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.

[0122] Output device 440 may include a device that allows information to be output to a user, such as a display screen, a printer, a speaker, etc.

[0123] The communication interface 420 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.

[0124] The processor 410 executes the program stored in the memory 400 and calls other devices, which can be used to implement each step of the battery detection method for any terminal provided in the above embodiments of the present application.

[0125] Exemplary computer program products and storage media

[0126] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the battery detection method for the terminal according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0127] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0128] In addition, an embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the battery detection method of the terminal according to various embodiments of the present application described in the above "Exemplary Method" section of this specification. The specific working content of the above-mentioned electronic device, as well as the specific working content of the above-mentioned computer program product and the computer program on the storage medium when being executed by the processor, can all be referred to the contents of the above-mentioned method embodiment, and will not be repeated here.

[0129] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0130] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0131] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.

[0132] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0134] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.

[0136] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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.

[0137] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0138] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0139] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A battery detection method for a terminal, It is characterized in that include: Get the model, battery current, battery voltage and current battery health of the terminal device; Determining a corresponding battery current confidence interval and a battery voltage confidence interval according to the current battery health and the model of the terminal device; When the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval, it is determined that the battery of the terminal device is a non-original battery.

2. The method according to claim 1, It is characterized in that The determining the corresponding battery current confidence interval and battery voltage confidence interval according to the current battery health and the model of the terminal device includes: Querying a correspondence table, wherein the correspondence table includes: a correspondence between a terminal device model, a battery health interval, a battery current confidence interval, and a battery voltage confidence interval; According to the current battery health and the model of the terminal device, a corresponding battery current confidence interval and a battery voltage confidence interval are determined.

3. The method according to claim 2, It is characterized in that The corresponding relationship table is determined in the following manner: The battery health, voltage and current of multiple terminal devices of the same model are counted at preset time intervals to obtain a corresponding relationship between the battery health interval and the battery current confidence interval and the battery voltage confidence interval of the terminal devices of the same model; Repeat the above steps for different models of terminal devices to obtain the corresponding relationship between the model of the terminal device, the battery health interval, the battery current confidence interval, and the battery voltage confidence interval.

4. The method according to claim 3, It is characterized in that The method of performing statistics on the battery health, voltage and current of multiple terminal devices of the same model at preset time intervals to obtain a correspondence between the battery health interval and the battery current confidence interval and the battery voltage confidence interval of the terminal devices of the same model includes: Obtaining the current and voltage of each battery health interval of multiple terminal devices of the same model at preset time intervals; According to the current and voltage of each battery health interval, a voltage normal distribution curve and a current normal distribution curve for each battery health interval are constructed respectively; The battery voltage confidence interval corresponding to each battery health interval is determined according to the voltage normal distribution curve, and the battery current confidence interval corresponding to each battery health interval is determined according to the current normal distribution curve.

5. The method according to any one of claims 1 to 4, It is characterized in that The current battery health determination method comprises: Obtaining the current maximum capacity and initial capacity of the battery of the terminal device; The ratio of the current maximum capacity of the battery to the initial capacity of the battery is calculated to obtain the current battery health.

6. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: When the battery current is within the battery current confidence interval and the battery voltage is within the battery voltage confidence interval, it is determined that the battery of the terminal device is an original battery.

7. A battery detection device for a terminal, It is characterized in that include: The acquisition module is used to obtain the model, battery current, battery voltage and current battery health of the terminal device; A processing module, used to determine a corresponding battery current confidence interval and a battery voltage confidence interval according to the current battery health and the model of the terminal device; The first detection module is used to determine that the battery of the terminal device is a non-original battery when the battery current is not within the battery current confidence interval or the battery voltage is not within the battery voltage confidence interval.

8. An electronic device, It is characterized in that include: Memory and processor; The memory is connected to the processor and is used to store programs; The processor implements the battery detection method for a terminal according to any one of claims 1 to 6 by running the program in the memory.

9. A storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by the processor, the battery detection method of the terminal according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the battery detection method for a terminal according to any one of claims 1 to 6 is implemented.