Control method and device of electronic equipment, storage medium and chip

CN116009670BActive Publication Date: 2026-10-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211609936.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-14
Publication Date
2026-10-27
Estimated Expiration
2042-12-14

AI Technical Summary

Technical Problem

[0003]然而,在实际应用中,由于电子设备电池繁多,不同设备规格的电池ID阻值区间可能存在重叠,这导致存在不当替用或恶意替用的安全隐患

Benefits of technology

[0061]在上述技术方案中,通过获取所述电子设备的实际装载电池的实际电池多维参数;将所述实际电池多维参数与所述电子设备的标配电池多维参数进行对比,确定所述实际装载电池与所述标配电池的匹配度;根据所述匹配度确定所述电子设备的运行策略的方法步骤,本公开实施例通过多维参数的对比得到差异化的实际装载电池的匹配度情况,再根据所述匹配度情况确定电子设备的运行策略,可以有效解决传统电池ID电阻检测匹配方案存在的不同规格的电池ID阻值区间可能存在重叠所导致的不当替用,或恶意替用,从而对电子设备的安全使用造成隐患的问题,从而提高电子设备电池使用的安全性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116009670B_ABST
    Figure CN116009670B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a control method and device of an electronic device, a storage medium and a chip, comprising: obtaining an actual battery multi-dimensional parameter of an actual loaded battery of the electronic device; comparing the actual battery multi-dimensional parameter with a standard battery multi-dimensional parameter of a standard battery of the electronic device to determine a matching degree of the actual loaded battery and the standard battery; and determining a running strategy of the electronic device according to the matching degree. Embodiments of the present disclosure effectively solve the problem that the improper replacement or malicious replacement caused by the overlapping of the ID resistance value intervals of different specifications of batteries in the traditional battery ID resistance detection matching scheme, thereby causing hidden dangers to the safe use of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic device control technology, and in particular to control methods, devices, storage media and chips for electronic devices. Background Technology

[0002] With the rapid development of battery technology and fast charging technology for electronic devices, there are significant differences in battery specifications and fast charging solutions among electronic devices from different manufacturers and with different market positioning. To improve the safety of users using electronic devices and their fast charging functions, the hardware typically binds the electronic device and its standard battery into a non-removable integrated form. The software then matches the battery ID resistor with the electronic device's preset licensed ID resistance range, or further matches the identification information through key encryption and decryption methods, to detect whether the battery used is the original standard battery.

[0003] However, in practical applications, due to the large variety of batteries in electronic devices, the resistance ranges of battery ID values ​​for different device specifications may overlap, which leads to safety hazards such as improper or malicious substitution. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a control method, apparatus, storage medium, and chip for an electronic device.

[0005] According to a first aspect of the present disclosure, a control method for an electronic device is provided, comprising:

[0006] Obtain the actual battery multidimensional parameters of the actual battery installed in the electronic device;

[0007] The actual battery multidimensional parameters are compared with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery.

[0008] The operating strategy of the electronic device is determined based on the matching degree.

[0009] Optionally, the standard battery multi-dimensional parameters include a first fixed parameter and a first variable parameter of the standard battery of the electronic device; the actual battery multi-dimensional parameters include a second fixed parameter and a second variable parameter of the actual loaded battery.

[0010] The step of comparing the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery includes:

[0011] The matching degree between the actual loaded battery and the standard battery is determined by comparing the first fixed parameter with the second fixed parameter and comparing the first variable parameter with the second variable parameter.

[0012] Optionally, comparing the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery includes:

[0013] Obtain a multi-dimensional parameter model of the standard battery of the electronic device. The multi-dimensional parameter model of the standard battery is generated based on the multi-dimensional parameters of the standard battery. The multi-dimensional parameter model of the standard battery includes the first fixed parameter and the first variable parameter.

[0014] A multi-dimensional parameter model of the actual battery is generated based on the actual battery multi-dimensional parameters, and the actual battery multi-dimensional parameter model includes the second fixed parameter and the second variable parameter;

[0015] The actual battery multidimensional parameter model is compared with the standard battery multidimensional parameter model of the electronic device. During the comparison, the first fixed parameter is compared with the second fixed parameter, and the first variable parameter is compared with the second variable parameter to determine the matching degree between the actual loaded battery and the standard battery.

[0016] Optionally, comparing the first fixed parameter with the second fixed parameter, and comparing the first variable parameter with the second variable parameter, to determine the matching degree between the actual installed battery and the standard battery includes:

[0017] Compare the first fixed parameter with the second fixed parameter;

[0018] If the first fixed parameter and the second fixed parameter do not match, the matching degree is determined to be the first matching degree;

[0019] When the first fixed parameter matches the second fixed parameter, the first difference between the first variable parameter and the second variable parameter is obtained, and the matching degree is determined as a first matching degree, a second matching degree, or a third matching degree based on the first difference, wherein the first matching degree is less than the second matching degree, and the second matching degree is less than the third matching degree.

[0020] Optionally, both the first fixed parameter and the second fixed parameter include multiple parameters, and the comparison between the first fixed parameter and the second fixed parameter includes:

[0021] Compare each parameter in the first fixed parameter with each parameter in the second fixed parameter;

[0022] If any parameter in the first fixed parameters does not match the corresponding parameter in the second fixed parameters, it is determined that the first fixed parameters and the second fixed parameters do not match.

[0023] If all parameters in the first fixed parameter match all parameters in the second fixed parameter, then the first fixed parameter and the second fixed parameter are determined to match.

[0024] Optionally, when the first fixed parameter matches the second fixed parameter, a first difference between the first variable parameter and the second variable parameter is obtained, and the matching degree is determined as a first matching degree, a second matching degree, or a third matching degree based on the first difference, including:

[0025] If the first specified parameter in the first variable parameter is different from the corresponding parameter in the second variable parameter, the first specified parameter is updated to the value of the corresponding parameter in the second variable parameter to obtain the updated first specified parameter;

[0026] Based on the updated first specified parameter, the second specified parameter in the first variable parameter is updated to obtain the updated second specified parameter, where the second specified parameter is a parameter associated with the first specified parameter;

[0027] Obtain the second difference between the updated second specified parameter and the corresponding parameter in the second variable parameter;

[0028] If the second difference is less than the first preset threshold, the matching degree is determined to be the third matching degree;

[0029] If the second difference is greater than or equal to the first set threshold and less than the second set threshold, the matching degree is determined to be the second matching degree.

[0030] If the second difference is greater than or equal to the second set threshold, the matching degree is determined to be the first matching degree.

[0031] Optionally, obtaining the multi-dimensional parameter model of the standard battery of the electronic device includes:

[0032] In the absence of creating the standard battery multidimensional parameter model, the standard battery multidimensional parameter model is generated based on the standard battery multidimensional parameters;

[0033] If the standard battery multi-dimensional parameter model has already been created, read the current standard battery multi-dimensional parameter model.

[0034] Optionally, obtaining the actual battery multidimensional parameters of the actual loaded battery of the electronic device includes:

[0035] In response to the achievement of a preset battery detection trigger condition, the actual battery loaded in the electronic device is detected to obtain multi-dimensional parameters of the actual battery;

[0036] The triggering conditions include one or more of the following:

[0037] The time interval since the last battery test reaches the set battery test cycle duration;

[0038] The electronic device is powered on;

[0039] The actual loaded battery is in an abnormal state;

[0040] The electronic device enables a specified function, which includes either a fast charging function or a battery maintenance function.

[0041] Optionally, determining the operating strategy of the electronic device based on the matching degree includes:

[0042] Based on the matching degree, at least one of the following is determined: the operating status of the electronic device, the charging power, and the battery maintenance level.

[0043] Optionally, determining at least one of the operating status, charging power, and battery maintenance level of the electronic device based on the matching degree includes:

[0044] When the matching degree is the first matching degree, the operating state of the electronic device is determined to be the off state, the charging power is the first power, and the battery maintenance degree is the first degree.

[0045] When the matching degree is the second matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the second power, and the battery maintenance degree is the second degree;

[0046] When the matching degree is the third matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the third power, and the battery maintenance degree is the third degree;

[0047] Wherein, the first matching degree is less than the second matching degree, the second matching degree is less than the third matching degree, the first power is less than the second power, the second power is less than the third power, the first degree is greater than the second degree, and the second degree is greater than the third degree.

[0048] Optionally, the first fixed parameter and the second fixed parameter each include at least one of the following: ID resistor value, encryption verification information, cell process type, cell manufacturer information, packaging manufacturer information, and nominal capacity value; the first variable parameter and the second variable parameter each include at least one of the following: battery cycle count and estimated capacity value.

[0049] According to a second aspect of the present disclosure, a control device for an electronic device is provided, comprising:

[0050] The acquisition module is configured to acquire the actual battery multidimensional parameters of the actual battery loaded in the electronic device.

[0051] The comparison module is configured to compare the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery.

[0052] The determination module is configured to determine the operating strategy of the electronic device based on the matching degree.

[0053] According to a third aspect of the present disclosure, a control device for an electronic device is provided, comprising:

[0054] processor;

[0055] Memory used to store processor-executable instructions;

[0056] The processor is configured as follows:

[0057] Obtain the actual battery multidimensional parameters of the actual battery installed in the electronic device; compare the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual battery installed and the standard battery; determine the operating strategy of the electronic device based on the matching degree.

[0058] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of any of the methods provided in the first aspect of the present disclosure.

[0059] According to a fifth aspect of the present disclosure, a chip is provided, comprising: a processor and an interface; the processor being configured to read instructions to perform steps of any of the methods provided in the first aspect of the present disclosure.

[0060] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0061] In the above technical solution, the method steps are as follows: obtaining the actual battery multi-dimensional parameters of the actual battery installed in the electronic device; comparing the actual battery multi-dimensional parameters with the standard battery multi-dimensional parameters of the electronic device to determine the matching degree between the actual battery installed and the standard battery; and determining the operating strategy of the electronic device based on the matching degree. This embodiment of the present disclosure obtains the different matching degree of the actual battery installed by comparing multi-dimensional parameters, and then determines the operating strategy of the electronic device based on the matching degree. This can effectively solve the problem that the traditional battery ID resistance detection matching scheme may have overlapping battery ID resistance value ranges of different specifications, leading to improper substitution or malicious substitution, which may cause hidden dangers to the safe use of electronic devices, thereby improving the safety of battery use in electronic devices.

[0062] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0063] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0064] Figure 1 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment;

[0065] Figure 2 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment;

[0066] Figure 3 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment;

[0067] Figure 4 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment;

[0068] Figure 5 This is a flowchart illustrating a control method for an electronic device according to another exemplary embodiment;

[0069] Figure 6 This is a block diagram illustrating a control device 600 for an electronic device according to an exemplary embodiment;

[0070] Figure 7 This is a block diagram illustrating a control device 700 for an electronic device according to another exemplary embodiment. Detailed Implementation

[0071] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0072] It should be noted that all actions involving the acquisition of signals, information, or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device.

[0073] The embodiments disclosed herein are mainly applied to electronic devices. For example, the electronic device may be a mobile terminal device. The embodiments disclosed herein are applied to scenarios where the actual battery installed in the mobile terminal device is a standard battery or the mobile terminal device needs to be compatible with batteries of different parameter specifications. The following description uses a mobile terminal device as an example.

[0074] Currently, there are two main battery matching solutions for mobile terminal devices on the market:

[0075] 1) Traditional battery ID resistor detection and matching scheme.

[0076] 2) Battery key encryption detection and matching scheme.

[0077] The traditional battery ID resistor detection and matching scheme mentioned in point 1) works as follows: when the mobile terminal device starts up, it detects and reads the ID resistor value of the battery in use and matches it with a preset permitted ID resistor value range. If the match is successful, the battery is determined to be a standard battery; otherwise, it is a non-standard battery. The applicant discovered that the traditional battery ID resistor detection and matching scheme has a single judgment criterion, making it vulnerable to counterfeiting. It can easily be illegally cracked by criminals who use counterfeit batteries to impersonate genuine original batteries to deceive the system detection, thus posing a security risk to the normal use of electronic devices.

[0078] The battery key encryption detection and matching scheme mentioned in section 2) is implemented as follows: When the mobile terminal device starts up, it sends random ciphertext to the battery pack encryption module. Then, the battery pack encryption module and the device encryption module synchronously perform encryption calculations using a pre-agreed key. Finally, they match the encrypted messages from both sides. If the match is successful, the battery is determined to be a standard battery; otherwise, it is a non-standard battery. The applicant found that the battery key encryption detection and matching scheme has the drawback of weak compatibility and adaptability with multiple battery versions. When the mobile terminal device has two or more standard battery specifications, it needs to be equipped with the same number of battery pack encryption modules as the standard battery types, which reduces the compatibility and adaptability of this method and correspondingly increases the battery cost.

[0079] As mentioned above, traditional battery ID resistor detection and matching schemes rely on a single judgment criterion, making batteries susceptible to improper or malicious substitution, which poses a security risk to the normal use of electronic devices. In addition, battery key encryption detection and matching schemes require different keys to be adapted for different battery versions, necessitating the same number of battery pack encryption modules as the standard battery types. This results in weak compatibility and adaptability across multiple battery versions, as well as increased costs.

[0080] In view of this, this disclosure uses multi-dimensional battery parameter comparison and matching to determine the device battery matching degree, realizing battery identification and detection and differentiated compatibility matching, and can determine the operating strategy of the electronic device based on the matching degree. Addressing the security and compatibility deficiencies of the two existing mainstream battery matching schemes for mobile terminal devices, this disclosure's technical solution, based on the multi-dimensional and multi-parameter characteristics of batteries, compares multi-dimensional parameters during mobile terminal device startup and in specific scenarios to obtain the matching degree of the actual installed battery. By obtaining differentiated matching degrees of the actual installed batteries through multi-dimensional and multi-parameter comparison, and then determining the operating strategy of the electronic device based on the matching degree, this effectively solves the problem of improper or malicious substitution caused by the potential overlap of battery ID resistance value ranges for different device specifications in traditional battery ID resistance detection matching schemes, thus creating security risks for electronic devices. Regarding the compatibility and adaptation issues of different battery versions, since it does not require adaptation to different keys or the same number of battery pack encryption modules as the standard battery types, it effectively solves the problem that battery key encryption detection schemes cannot flexibly adapt to multiple batteries. Furthermore, since it does not require the use of battery pack encryption modules, it also reduces battery costs.

[0081] Figure 1 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment, such as... Figure 1 As shown, the control method for this electronic device is used in an electronic device and includes the following steps:

[0082] In step S10, the actual battery multidimensional parameters of the actual battery loaded in the electronic device are obtained.

[0083] The actual installed battery is the battery currently installed in the electronic device. The standard battery is the officially recognized standard original battery of the electronic device. The actual installed battery can be a standard battery or a non-standard battery.

[0084] For example, the standard battery multi-dimensional parameters include a first fixed parameter and a first variable parameter of the standard battery of the electronic device; the actual battery multi-dimensional parameters include a second fixed parameter and a second variable parameter of the actually installed battery. For example, both the first fixed parameter and the second fixed parameter may include at least one of the following: ID resistor value, encryption verification information, cell process type, cell manufacturer information, packaging manufacturer information, and nominal capacity value. For example, both the first variable parameter and the second variable parameter may include at least one of the following: battery cycle count and estimated capacity value. Wherein, the ID resistor value is the resistance value of the battery's ID resistor; the encryption verification information is the key information used for encryption verification; the cell process type is the battery cell type, such as lithium battery or nickel-metal hydride battery; the cell manufacturer information is the information of the cell manufacturer; the packaging manufacturer information is the information of the battery packaging manufacturer; the nominal capacity value is the typical capacity value of the battery; the battery cycle count is the actual number of charging cycles of the battery; and the estimated capacity value is the current actual battery capacity estimated based on the actual number of battery cycles.

[0085] In step S11, the actual battery multidimensional parameters are compared with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery.

[0086] For example, a first fixed parameter is compared with a second fixed parameter, and a first variable parameter is compared with a second variable parameter to determine the matching degree between the actual installed battery and the standard battery. Exemplarily, the matching degree may include a first matching degree, a second matching degree, or a third matching degree, wherein the first matching degree is less than the second matching degree, and the second matching degree is less than the third matching degree. For example, the first matching degree, the second matching degree, and the third matching degree can be set to low, medium, and high levels, respectively. Those skilled in the art will understand that in practical applications, each of the above matching degree levels can be further subdivided into more matching degree levels according to actual needs.

[0087] In step S12, the operating strategy of the electronic device is determined based on the matching degree.

[0088] For example, at least one of the operating status, charging power, and battery maintenance level of the electronic device can be determined based on the matching degree.

[0089] For example, when the matching degree is the first matching degree, since the first matching degree is the worst matching degree, it indicates that the actual installed battery is a non-standard battery. Therefore, in order to protect the safety of the electronic device, it is determined that the electronic device is turned off, the charging power is the first power, and the battery maintenance degree is the first level.

[0090] When the matching degree is the second matching degree, since the second matching degree is a medium matching degree, it means that the actual installed battery is the standard battery, but it has been used for a period of time and its performance has deteriorated. Therefore, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the second power, and the battery maintenance degree is the second level.

[0091] When the matching degree is the third matching degree, since the third matching degree is a high matching degree, it means that the actual installed battery is the standard battery and the usage time is not long and the performance has not decreased significantly. Therefore, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the third power, and the battery maintenance degree is the third level.

[0092] Wherein, the first matching degree is less than the second matching degree, the second matching degree is less than the third matching degree, the first power is less than the second power, the second power is less than the third power, the first degree is greater than the second degree, and the second degree is greater than the third degree.

[0093] In summary, the control method for electronic devices provided in this disclosure obtains the actual multi-dimensional parameters of the actual battery installed in the electronic device; compares the actual battery multi-dimensional parameters with the standard battery multi-dimensional parameters of the electronic device to determine the matching degree between the actual installed battery and the standard battery; and determines the operating strategy of the electronic device based on the matching degree. This disclosure, by comparing multi-dimensional parameters to obtain differentiated matching degrees of the actual installed batteries, and then determining the operating strategy of the electronic device based on the matching degree, can effectively solve the problem of improper or malicious substitution caused by the potential overlap of different battery ID resistance value ranges in traditional battery ID resistance detection matching schemes, which could pose a hidden danger to the safe use of electronic devices.

[0094] Figure 2 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment, such as... Figure 2 As shown, step S11 above may include the following steps:

[0095] In step S111, a standard battery multi-dimensional parameter model of the electronic device is obtained. The standard battery multi-dimensional parameter model is generated based on the standard battery multi-dimensional parameters. The standard battery multi-dimensional parameter model includes the first fixed parameter and the first variable parameter.

[0096] For example, based on the characteristics of multiple parameters of the standard battery, some parameters are classified into the fixed parameter part and some parameters are classified into the variable parameter part to obtain the parameter model of the standard battery. The parameter model is a multi-dimensional parameter array model.

[0097] For example, the model X = {Rid = Rb, BattAuth = String2, CellTyp = Li-Po, CellMfr = MfrB1, PackMfr = MfrB2, DesgCap = 5000mAh, CycleCnt = 0, EstCap = 5000mAh}.

[0098] Among them, Rid is the ID resistor value, BattAuth is the encrypted verification information, CellTyp is the cell process type, CellMfr is the cell manufacturer information, PackMfr is the packaging manufacturer information, DesgCap is the nominal capacity value, CycleCnt is the battery cycle number, EstCap is the estimated capacity value, Rb is the resistance value b, String2 is the string 2, Li-Po is lithium polymer, MfrB1 is the manufacturer B1, and MfrB2 is the manufacturer B2.

[0099] Among them, Rid, BattAuth, CellTyp, CellMfr, PackMfr, and DesgCap are fixed parameters, while CycleCnt and EstCap are variable parameters.

[0100] It should be noted that obtaining the standard battery multi-dimensional parameter model of the electronic device may include: generating a standard battery multi-dimensional parameter model based on the standard battery multi-dimensional parameters when no standard battery multi-dimensional parameter model has been created; or reading the current standard battery multi-dimensional parameter model when a standard battery multi-dimensional parameter model has been created.

[0101] When detecting battery compatibility, the electronic device will search for the standard battery multi-dimensional parameter model in the device memory. If it is not found, it will generate the standard battery multi-dimensional parameter model based on the standard battery multi-dimensional parameters. If the standard battery multi-dimensional parameter model exists in the device memory, it will read the current standard battery multi-dimensional parameter model data.

[0102] In step S112, an actual battery multidimensional parameter model is generated based on the actual battery multidimensional parameters. The actual battery multidimensional parameter model includes the second fixed parameter and the second variable parameter.

[0103] For example, a multi-dimensional parameter model of the actual battery can be generated based on the actual battery's multi-dimensional parameters. This model includes a second fixed parameter and a second variable parameter. For instance, the second fixed parameter may include: ID resistor value, encryption verification information, cell process type, cell manufacturer information, packaging manufacturer information, and nominal capacity value. For instance, the second variable parameter may include: battery cycle life and estimated capacity value. The process of establishing the multi-dimensional parameter model of the actual battery is similar to that of establishing the parameter model of the standard battery and will not be described in detail here.

[0104] In step S113, the actual battery multidimensional parameter model is compared with the standard battery multidimensional parameter model of the electronic device. During the comparison between the actual battery multidimensional parameter model and the standard battery multidimensional parameter model, the first fixed parameter is compared with the second fixed parameter, and the first variable parameter is compared with the second variable parameter to determine the matching degree between the actual loaded battery and the standard battery.

[0105] Figure 3 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment, such as... Figure 3 As shown, step S113 above may include the following steps:

[0106] In step S1131, the first fixed parameter is compared with the second fixed parameter.

[0107] In step S1132, if the first fixed parameter and the second fixed parameter do not match, the matching degree is determined to be the first matching degree.

[0108] Both the first fixed parameter and the second fixed parameter can contain multiple parameters. If any parameter in the first fixed parameter does not match the corresponding parameter in the second fixed parameter, the first fixed parameter does not match the second fixed parameter. If all parameters in the first fixed parameter match all parameters in the second fixed parameter, the first fixed parameter matches the second fixed parameter.

[0109] For example, if the ID resistor value, encryption verification information, cell process type, cell manufacturer information, packaging manufacturer information, and nominal capacity value in the first fixed parameter match one-to-one with the ID resistor value, encryption verification information, cell process type, cell manufacturer information, packaging manufacturer information, and nominal capacity value in the second fixed parameter, then the first fixed parameter and the second fixed parameter are matched. If any one of the parameters does not match, then the first fixed parameter and the second fixed parameter are not matched. For example, the first matching degree can be a low matching degree level. By comparing multiple parameters, the safety hazard of traditional battery ID resistor detection and matching schemes, which rely on a single judgment criterion, is solved.

[0110] In step S1133, when the first fixed parameter matches the second fixed parameter, the first difference between the first variable parameter and the second variable parameter is obtained, and the matching degree is determined as a first matching degree, a second matching degree, or a third matching degree based on the first difference, wherein the first matching degree is less than the second matching degree, and the second matching degree is less than the third matching degree.

[0111] Wherein, both the first variable parameter and the second variable parameter include at least one battery parameter of the same type, and the first difference is the difference between at least one battery parameter of the same type in the first variable parameter and the second variable parameter.

[0112] For example, the first variable parameter may include the number of battery cycles and the estimated capacity value, and the second variable parameter may also include the number of battery cycles and the estimated capacity value. The first difference may be the difference between two estimated capacity values.

[0113] For example, the first matching degree can be a low matching degree level, the second matching degree can be a medium matching degree level, and the third matching degree can be a high matching degree level. In this way, the matching degree is determined by the first difference between the first variable parameter and the second variable parameter, effectively solving the problem of improper or malicious substitution caused by the potential overlap of battery ID resistance value ranges for different device specifications in traditional battery ID resistance detection matching schemes, thus posing a security risk to electronic devices. Regarding the compatibility and adaptation issues of different battery versions, since it does not require adapting different keys or equipping the same number of battery pack encryption modules as the standard battery types, it effectively solves the problem that battery key encryption detection schemes cannot flexibly adapt to multiple battery types. Furthermore, since the battery pack encryption module is not required, battery costs are also reduced.

[0114] Figure 4 This is a flowchart illustrating a control method for an electronic device according to an exemplary embodiment, such as... Figure 4 As shown, step S1133 above may include the following steps:

[0115] In step S11331, if the first specified parameter in the first variable parameter is different from the corresponding parameter in the second variable parameter, the first specified parameter is updated to the value of the corresponding parameter in the second variable parameter to obtain the updated first specified parameter.

[0116] For example, the first specified parameter could be the number of battery cycles. For instance, if the number of battery cycles of the standard battery differs from the number of battery cycles of the actually installed battery, the value of the number of battery cycles of the standard battery is updated based on the number of battery cycles of the actually installed battery. For example, when the number of battery cycles of the standard battery is 0 and the number of battery cycles of the actually installed battery is 300, the number of battery cycles of the standard battery is updated to 300.

[0117] In step S11332, the second specified parameter in the first variable parameter is updated according to the updated first specified parameter to obtain the updated second specified parameter, which is a parameter associated with the first specified parameter.

[0118] For example, the second specified parameter could be an estimated capacity value, obtained based on the number of battery cycles after the update of the standard battery. This estimated capacity value is determined by the number of battery cycles. It is generally believed that after 800 cycles, the estimated capacity value of the standard battery should be 80% of the nominal capacity value. When the number of cycles is less than 800, the estimated capacity value should be above 80% of the nominal capacity value. For example, with a nominal capacity of 4500mAh, when the number of battery cycles of the updated standard battery is 300, based on empirical data, the estimated capacity value should be around 90% of the nominal capacity value, thus yielding an estimated capacity value of 4140mAh for the standard battery.

[0119] In step S11333, the second difference between the updated second specified parameter and the corresponding parameter in the second variable parameter is obtained.

[0120] In step S11334, if the second difference is less than the first set threshold, the matching degree is determined to be the third matching degree.

[0121] In step S11335, if the second difference is greater than or equal to the first set threshold and less than the second set threshold, the matching degree is determined to be the second matching degree.

[0122] In step S11336, if the second difference is greater than or equal to the second set threshold, the matching degree is determined to be the first matching degree.

[0123] For example, taking the nominal capacity as an example, with a nominal capacity of 4500mAh, the first set threshold can be set to 100mAh and the second set threshold can be set to 250mAh. When the estimated capacity of the standard battery is 4140mAh and the estimated capacity of the actual installed battery is 3950mAh, the difference between the two can be calculated to be 190mAh. This difference falls between the first set threshold and the second set threshold, so the actual installed battery level can be determined to be the second matching degree, that is, the medium matching degree level.

[0124] For example, in one possible implementation, assuming the first matching degree, the second matching degree, and the third matching degree are low level, medium level, and high level, respectively, the operating strategy of the electronic device can be as shown in Table 1 below:

[0125] Table 1

[0126]

[0127] For example, in one possible implementation, suppose a mobile terminal device supporting 66W fast charging has two standard batteries, A and B, manufactured by different companies and with nominal capacities of 4500mAh and 5000mAh respectively, but with the same rate of degradation. Therefore, the default matching model for the standard batteries is constructed based on the corresponding battery parameters as follows:

[0128] Model A={Rid=Ra, BattAuth=String1, CellTyp=Li-Po, CellMfr=MfrA1, PackMfr=MfrA2, DesgCap=4500mAh, CycleCnt=0, EstCap=4500mAh},

[0129] Model B={Rid=Rb, BattAuth=String2, CellTyp=Li-Po, CellMfr=MfrB1, PackMfr=MfrB2, DesgCap=5000mAh, CycleCnt=0, EstCap=5000mAh}.

[0130] Wherein, Rid is the ID resistor value, BattAuth is the encryption verification information, CellTyp is the cell process type, CellMfr is the cell manufacturer information, PackMfr is the packaging manufacturer information, DesgCap is the nominal capacity value, CycleCnt is the battery cycle count, and EstCap is the estimated capacity value. 、 Ra represents resistance value a, String1 represents string 1, Li-Po represents lithium polymer, MfrA1 represents manufacturer A1, and MfrA2 represents manufacturer A2.

[0131] Next, the first threshold for the estimated capacity difference is set to 100mAh, and the second threshold is set to 250mAh.

[0132] Then set the trigger conditions for battery detection. For example, you can set a 12-hour timer for periodic monitoring, or start battery detection when the mobile terminal device is powered on, the battery connector is in an abnormal position, the fast charging function is started, or the battery maintenance function is triggered.

[0133] Next, the electronic device is replaced with a replacement battery C, whose degradation rate is faster than that of battery A. For example, when the timer completes, battery detection is initiated, and the current battery cycle count is found to be 300. Therefore, the standard battery matching model parameters are updated as follows:

[0134] Model A={Rid=100k, BattAuth=String1, CellTyp=Li-Po, CellMfr=MfrA1, PackMfr=MfrA2, DesgCap=4500mAh, CycleCnt=300, EstCap=4140mAh},

[0135] Model B={Rid=100k, BattAuth=String2, CellTyp=Li-Po, CellMfr=MfrB1, PackMfr=MfrB2, DesgCap=5000mAh, CycleCnt=300, EstCap=4600mAh}.

[0136] At the same time, the model parameters currently using battery C can be obtained, as follows:

[0137] Model C={Rid=100k, BattAuth=String1, CellTyp=Li-Po, CellMfr=MfrA1, PackMfr=MfrA2, DesgCap=4500mAh, CycleCnt=300, EstCap=3950mAh}.

[0138] Then, the parameter data of model C is compared with those of models A and B. Based on the comparison of the fixed parameters, C matches A. Therefore, C and A are selected for comparison of the variable parameters. After comparison and calculation, it is confirmed that the estimated capacity difference between C and A is 4140-3950=190mAh. This value falls between the first and second set thresholds. Therefore, battery C is determined to be of medium matching degree.

[0139] Finally, based on the battery matching level and the device and battery permitted behavior comparison table (Table 1), the permitted behaviors of the actual installed replacement battery C and electronic device are determined as follows: device can be turned on, fast charging power limit is 33W, and battery maintenance is moderate.

[0140] In summary, the technical solution of this disclosure constructs a battery matching model through multiple battery parameters. Then, based on the multi-dimensional and multi-parameter model features, the matching degree of the actual installed battery is obtained by comparing the model parameters. By comparing the multi-dimensional and multi-parameter model, differentiated matching degrees of the actual installed batteries are obtained. The operating strategy of the electronic device is then determined based on the matching degree, effectively solving the problem of improper or malicious substitution caused by the potential overlap of battery ID resistance value ranges for different device specifications in traditional battery ID resistance detection matching schemes, which could lead to security risks in the use of electronic devices. Regarding the compatibility and adaptation issues of different battery versions, since it does not require adapting different keys or equipping the same number of battery pack encryption modules as the standard battery types, it effectively solves the problem that battery key encryption detection schemes cannot flexibly adapt to multiple batteries. Furthermore, since the battery pack encryption module is not required, battery costs are also reduced.

[0141] Figure 5 This is a flowchart illustrating a control method for an electronic device according to another exemplary embodiment, such as... Figure 5 As shown, the control method for this electronic device includes the following steps:

[0142] In step S510, in response to the achievement of a preset battery detection trigger condition, the actual battery loaded in the electronic device is detected to obtain multi-dimensional parameters of the actual battery; wherein, the trigger condition includes one or more of the following: the time interval from the last battery detection time reaches the set battery detection cycle duration; the electronic device is powered on; the actual battery loaded is in an abnormal state; the electronic device activates a specified function, the specified function including: fast charging function or battery maintenance function.

[0143] For example, under certain triggering conditions, the actual battery installed in the electronic device is tested to obtain multi-dimensional parameters of the actual battery. For instance, the triggering conditions may include: the time interval since the last battery test reaching a set battery test cycle duration, such as 24 hours or 48 hours. The triggering conditions may also include: the electronic device being powered on. When the device is powered on, the actual battery is tested to obtain actual parameters; when the actual battery is in an abnormal state, such as an abnormal FPC (Flexible Printed Circuit) connection, the actual battery is tested to obtain actual parameters; when the electronic device activates a specified function, such as fast charging or battery maintenance, the actual battery is tested to obtain actual parameters.

[0144] In step S520, a standard battery multi-dimensional parameter model of the electronic device is obtained. The standard battery multi-dimensional parameter model is generated based on the standard battery multi-dimensional parameters and includes the first fixed parameter and the first variable parameter. An actual battery multi-dimensional parameter model is generated based on the actual battery multi-dimensional parameters. The actual battery multi-dimensional parameter model includes the second fixed parameter and the second variable parameter.

[0145] The first fixed parameter and the second fixed parameter can be referred to in steps S111 and S112. The method for obtaining the multi-dimensional parameters of the standard battery can also be as described in step S111, and will not be repeated here.

[0146] In step S530, the actual battery multidimensional parameter model is compared with the standard battery multidimensional parameter model of the electronic device. During the comparison between the actual battery multidimensional parameter model and the standard battery multidimensional parameter model, the first fixed parameter is compared with the second fixed parameter, and the first variable parameter is compared with the second variable parameter.

[0147] For example, the method of comparing the actual battery multi-dimensional parameter model with the standard battery multi-dimensional parameter model of the electronic device can refer to the above steps S113 and S1131-S1133, and will not be repeated here.

[0148] In step S540, if the first fixed parameter and the second fixed parameter do not match, the matching degree is determined to be the first matching degree.

[0149] In step S550, if the first fixed parameter matches the second fixed parameter, and the first specified parameter in the first variable parameter is different from the corresponding parameter in the second variable parameter, the first specified parameter is updated to the value of the corresponding parameter in the second variable parameter to obtain the updated first specified parameter.

[0150] In step S560, the second specified parameter in the first variable parameter is updated according to the updated first specified parameter to obtain the updated second specified parameter, which is a parameter associated with the first specified parameter.

[0151] In this step, the methods of steps S540 and S550 can be referred to the methods shown in steps S11331 and S11332 above, and will not be repeated here.

[0152] In step S570, a first difference between the first variable parameter and the second variable parameter is obtained. If the second difference is less than a first set threshold, the matching degree is determined to be the third matching degree. If the second difference is greater than or equal to the first set threshold and less than a second set threshold, the matching degree is determined to be the second matching degree. If the second difference is greater than or equal to the second set threshold, the matching degree is determined to be the first matching degree.

[0153] In this step, the method for obtaining the first difference between the first variable parameter and the second variable parameter, and the method for determining the matching degree level, are described in steps S11333 to S11336 above, and will not be repeated here.

[0154] In step S580, at least one of the following is determined based on the matching degree: the operating state of the electronic device, the charging power, and the battery maintenance level.

[0155] Step S580 above may include:

[0156] When the matching degree is a first matching degree, the operating state of the electronic device is determined to be a power-off state, the charging power is a first power, and the battery maintenance degree is a first degree; for example, the first matching degree can be a low matching degree level, the first power can be 20% of the rated charging power, and the first degree can be deep maintenance.

[0157] When the matching degree is the second matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the second power, and the battery maintenance degree is the second degree; for example, the second matching degree can be a medium matching degree level, the second power can be 50% of the rated charging power, and the second degree can be medium maintenance.

[0158] When the matching degree is the third matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the third power, and the battery maintenance degree is the third level; for example, the third matching degree can be a high matching degree level, the third power can be 100% of the rated charging power, and the third level can be normal maintenance.

[0159] Wherein, the first matching degree is less than the second matching degree, the second matching degree is less than the third matching degree, the first power is less than the second power, the second power is less than the third power, the first degree is greater than the second degree, and the second degree is greater than the third degree.

[0160] In summary, the technical solution of this disclosure constructs a battery matching model through multiple battery parameters, then sets different battery parameter detection trigger conditions. Based on the multi-dimensional and multi-parameter model features, the matching degree of the actual installed battery is obtained through model parameter comparison. By comparing the multi-dimensional and multi-parameter model, differentiated matching degrees of the actual installed batteries are obtained. The operating strategy of the electronic device is then determined based on the matching degree, effectively solving the problem of improper or malicious substitution caused by the potential overlap of battery ID resistance value ranges for different device specifications in traditional battery ID resistance detection matching schemes, which could lead to security risks in electronic device use. Regarding the compatibility and adaptation issues of different battery versions, since it does not require adapting different keys or equipping the same number of battery pack encryption modules as the standard battery types, it effectively solves the problem that battery key encryption detection schemes cannot flexibly adapt to multiple batteries. Furthermore, since the battery pack encryption module is not required, battery costs are reduced. In addition, by setting different battery detection trigger conditions and executing different licensing strategies based on the corresponding comparison results, safe use and maintenance of the battery throughout its entire life cycle are achieved.

[0161] Figure 6 This is a block diagram illustrating a control device 600 for an electronic device according to an exemplary embodiment, with reference to... Figure 6 The device includes a first acquisition module 610, a first comparison module 620, and a first determination module 630.

[0162] The first acquisition module 610 is configured to acquire the actual battery multidimensional parameters of the actual battery loaded in the electronic device.

[0163] The first comparison module 620 is configured to compare the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery.

[0164] The first determining module 630 is configured to determine the operating strategy of the electronic device based on the matching degree.

[0165] Optionally, the standard battery multi-dimensional parameters in the first comparison module 620 include a first fixed parameter and a first variable parameter of the standard battery of the electronic device; the actual battery multi-dimensional parameters include a second fixed parameter and a second variable parameter of the actual loaded battery.

[0166] Optionally, the first fixed parameter and the second fixed parameter each include at least one of the following: ID resistor value, encryption verification information, cell process type, cell manufacturer information, packaging manufacturer information, and nominal capacity value; the first variable parameter and the second variable parameter each include at least one of the following: battery cycle count and estimated capacity value.

[0167] Optionally, the comparison of the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device in the first comparison module 620 to determine the matching degree between the actual loaded battery and the standard battery includes:

[0168] The matching degree between the actual installed battery and the standard battery is determined by comparing the first fixed parameter with the second fixed parameter and comparing the first variable parameter with the second variable parameter. Specifically, each parameter in the first fixed parameter is compared with each parameter in the second fixed parameter; if any parameter in the first fixed parameter does not match the corresponding parameter in the second fixed parameter, the first fixed parameter and the second fixed parameter do not match; if all parameters in the first fixed parameter match all parameters in the second fixed parameter, the first fixed parameter and the second fixed parameter match.

[0169] Optionally, the control device 600 of the electronic device further includes a second acquisition module configured to acquire a standard battery multi-dimensional parameter model of the electronic device, the standard battery multi-dimensional parameter model being generated based on the standard battery multi-dimensional parameters, the standard battery multi-dimensional parameter model including the first fixed parameters and the first variable parameters. An actual battery multi-dimensional parameter model is generated based on the actual battery multi-dimensional parameters, the actual battery multi-dimensional parameter model including the second fixed parameters and the second variable parameters. Acquiring the standard battery multi-dimensional parameter model of the electronic device includes: generating the standard battery multi-dimensional parameter model based on the standard battery multi-dimensional parameters when no standard battery multi-dimensional parameter model has been created; and reading the current standard battery multi-dimensional parameter model when the standard battery multi-dimensional parameter model has already been created.

[0170] Optionally, the control device 600 of the electronic device further includes a second determining module, configured to compare the first fixed parameter with the second fixed parameter; if the first fixed parameter and the second fixed parameter do not match, determine the matching degree as a first matching degree; if the first fixed parameter and the second fixed parameter match, obtain a first difference between the first variable parameter and the second variable parameter, and determine the matching degree as a first matching degree, a second matching degree, or a third matching degree based on the first difference, wherein the first matching degree is less than the second matching degree, and the second matching degree is less than the third matching degree.

[0171] Optionally, in the second determining module, when the first fixed parameter matches the second fixed parameter, a first difference between the first variable parameter and the second variable parameter is obtained, and the matching degree is determined as a first matching degree, a second matching degree, or a third matching degree based on the first difference, including:

[0172] If the first specified parameter in the first variable parameter is different from the corresponding parameter in the second variable parameter, the first specified parameter is updated to the value of the corresponding parameter in the second variable parameter to obtain the updated first specified parameter;

[0173] Based on the updated first specified parameter, the second specified parameter in the first variable parameter is updated to obtain the updated second specified parameter, which is a parameter associated with the first specified parameter; the second difference between the updated second specified parameter and the corresponding parameter in the second variable parameter is obtained; if the second difference is less than a first set threshold, the matching degree is determined to be the third matching degree; if the second difference is greater than or equal to the first set threshold and less than the second set threshold, the matching degree is determined to be the second matching degree; if the second difference is greater than or equal to the second set threshold, the matching degree is determined to be the first matching degree.

[0174] Optionally, in the first determining module 630, determining the operating strategy of the electronic device based on the matching degree includes: determining at least one of the operating state, charging power, and battery maintenance level of the electronic device based on the matching degree, including:

[0175] When the matching degree is the first matching degree, the operating state of the electronic device is determined to be the off state, the charging power is the first power, and the battery maintenance degree is the first degree.

[0176] When the matching degree is the second matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the second power, and the battery maintenance degree is the second degree;

[0177] When the matching degree is the third matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the third power, and the battery maintenance degree is the third degree;

[0178] Wherein, the first matching degree is less than the second matching degree, the second matching degree is less than the third matching degree, the first power is less than the second power, the second power is less than the third power, the first degree is greater than the second degree, and the second degree is greater than the third degree.

[0179] Optionally, the control device 600 of the electronic device further includes a trigger module configured to detect the actual battery loaded in the electronic device in response to the achievement of a preset battery detection trigger condition, so as to obtain multi-dimensional parameters of the actual battery.

[0180] The triggering conditions include one or more of the following:

[0181] The time interval since the last battery test reaches the set battery test cycle duration;

[0182] The electronic device is powered on;

[0183] The actual loaded battery is in an abnormal state;

[0184] The electronic device enables a specified function, which includes either a fast charging function or a battery maintenance function.

[0185] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0186] This disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the control method for the electronic device provided in this disclosure.

[0187] In summary, the technical solution of this disclosure, by setting a first acquisition module 610 configured to acquire the actual battery multi-dimensional parameters of the actual battery installed in the electronic device; a first comparison module 620 configured to compare the actual battery multi-dimensional parameters with the standard battery multi-dimensional parameters of the electronic device to determine the matching degree between the actual battery and the standard battery; and a first determination module 630 configured to determine the operating strategy of the electronic device based on the matching degree, effectively solves the problem of improper or malicious substitution caused by the possible overlap of battery ID resistance value ranges for different device specifications in traditional battery ID resistance detection matching schemes, thereby creating security risks in the use of electronic devices. Regarding the compatibility and adaptation problem of different battery versions, since it does not require adaptation to different keys or the same number of battery pack encryption modules as the standard battery types, it effectively solves the problem that battery key encryption detection schemes cannot flexibly adapt to multiple batteries. Since it does not require the use of battery pack encryption modules, it also reduces battery costs. Furthermore, by setting different battery detection trigger conditions and executing different licensing strategies based on the corresponding comparison results, safe use and maintenance of the battery throughout its entire life cycle are achieved.

[0188] Figure 7 This is a block diagram illustrating a control device 700 for an electronic device according to another exemplary embodiment. For example, device 700 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0189] Reference Figure 7 The device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input / output interface 712, sensor component 714, and communication component 716.

[0190] Processing component 702 typically controls the overall operation of device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

[0191] Memory 704 is configured to store various types of data to support the operation of device 700. Examples of this data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0192] Power supply assembly 706 provides power to various components of device 700. Power supply assembly 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700.

[0193] Multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0194] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

[0195] Input / output interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.

[0196] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of device 700. For example, sensor assembly 714 may detect the on / off state of device 700, the relative positioning of components such as the display and keypad of device 700, changes in the position of device 700 or a component of device 700, the presence or absence of user contact with device 700, the orientation or acceleration / deceleration of device 700, and temperature changes of device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0197] Communication component 716 is configured to facilitate wired or wireless communication between device 700 and other devices. Device 700 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0198] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0199] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of the device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0200] The aforementioned device can be a standalone electronic device or a part of a standalone electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), and SoC (System on Chip). The aforementioned integrated circuit or chip can be used to execute executable instructions (or code) to implement the control method of the aforementioned electronic device. The executable instructions can be stored in the integrated circuit or chip or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory, and when the executable instructions are executed by the processor, the control method of the electronic device described above can be implemented; or, the integrated circuit or chip can receive the executable instructions through the interface and transmit them to the processor for execution, so as to implement the control method of the electronic device described above.

[0201] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the control method of the electronic device described above when executed by the programmable device.

[0202] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0203] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A control method for an electronic device, characterized in that, include: Obtain the actual battery multidimensional parameters of the actual battery installed in the electronic device; The actual battery multidimensional parameters are compared with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery. The operating strategy of the electronic device is determined based on the matching degree; The standard battery multidimensional parameters include a first fixed parameter and a first variable parameter of the standard battery of the electronic device; the actual battery multidimensional parameters include a second fixed parameter and a second variable parameter of the actual loaded battery. The step of comparing the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery includes: Compare the first fixed parameter with the second fixed parameter; When the first fixed parameter matches the second fixed parameter, the first variable parameter and the second variable parameter are compared to determine the matching degree between the actual loaded battery and the standard battery. When the first fixed parameter matches the second fixed parameter, comparing the first variable parameter and the second variable parameter to determine the matching degree between the actual loaded battery and the standard battery includes: When the first fixed parameter matches the second fixed parameter, a first difference between the first variable parameter and the second variable parameter is obtained, and the degree of matching is determined based on the first difference. Wherein, both the first fixed parameter and the second fixed parameter include multiple parameters. When the first fixed parameter and the second fixed parameter match, a first difference between the first variable parameter and the second variable parameter is obtained, and the matching degree is determined based on the first difference, including: If the first specified parameter in the first variable parameter is different from the corresponding parameter in the second variable parameter, the first specified parameter is updated to the value of the corresponding parameter in the second variable parameter to obtain the updated first specified parameter; Based on the updated first specified parameter, the second specified parameter in the first variable parameter is updated to obtain the updated second specified parameter, where the second specified parameter is a parameter associated with the first specified parameter; Obtain the second difference between the updated second specified parameter and the corresponding parameter in the second variable parameter; The matching degree is determined based on the second difference.

2. The method according to claim 1, characterized in that, The step of comparing the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual installed battery and the standard battery further includes: If the first fixed parameter and the second fixed parameter do not match, the matching degree is determined to be the first matching degree; The matching degree includes a first matching degree, a second matching degree, or a third matching degree, wherein the first matching degree is less than the second matching degree, and the second matching degree is less than the third matching degree.

3. The method according to claim 1 or 2, characterized in that, The comparison of the first fixed parameter with the second fixed parameter includes: Compare each parameter in the first fixed parameter with each parameter in the second fixed parameter; If any parameter in the first fixed parameters does not match the corresponding parameter in the second fixed parameters, it is determined that the first fixed parameters and the second fixed parameters do not match. If all parameters in the first fixed parameter match the corresponding parameters in the second fixed parameter, then the first fixed parameter and the second fixed parameter are determined to match.

4. The method according to claim 2, characterized in that, Determining the matching degree based on the second difference includes: If the second difference is less than the first preset threshold, the matching degree is determined to be the third matching degree; If the second difference is greater than or equal to the first set threshold and less than the second set threshold, the matching degree is determined to be the second matching degree. If the second difference is greater than or equal to the second set threshold, the matching degree is determined to be the first matching degree.

5. The method according to claim 1, characterized in that, The process of obtaining the actual battery multidimensional parameters of the actual loaded battery of the electronic device includes: In response to the achievement of a preset battery detection trigger condition, the actual battery loaded in the electronic device is detected to obtain multi-dimensional parameters of the actual battery; The triggering conditions include one or more of the following: The time interval since the last battery test reaches the set battery test cycle duration; The electronic device is powered on; The actual loaded battery is in an abnormal state; The electronic device enables a specified function, which includes either a fast charging function or a battery maintenance function.

6. The method according to claim 1, characterized in that, Determining the operating strategy of the electronic device based on the matching degree includes: Based on the matching degree, at least one of the following is determined: the operating status of the electronic device, the charging power, and the battery maintenance level.

7. The method according to claim 6, characterized in that, Determining at least one of the following based on the matching degree: the operating status of the electronic device, the charging power, and the battery maintenance level: When the matching degree is the first matching degree, the operating state of the electronic device is determined to be the off state, the charging power is the first power, and the battery maintenance degree is the first degree. When the matching degree is the second matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the second power, and the battery maintenance degree is the second degree; When the matching degree is the third matching degree, the operating state of the electronic device is determined to be to maintain the current operating state, the charging power is the third power, and the battery maintenance degree is the third degree; Wherein, the first matching degree is less than the second matching degree, the second matching degree is less than the third matching degree, the first power is less than the second power, the second power is less than the third power, the first degree is greater than the second degree, and the second degree is greater than the third degree.

8. The method according to claim 7, characterized in that, The first fixed parameter and the second fixed parameter each include at least one of the following: ID resistor value, encryption verification information, cell process type, cell manufacturer information, packaging manufacturer information, and nominal capacity value. The first variable parameter and the second variable parameter each include at least one of the following: battery cycle count and estimated capacity value.

9. A control device for an electronic device, characterized in that, include: The first acquisition module is configured to acquire the actual battery multidimensional parameters of the actual battery loaded in the electronic device. The first comparison module is configured to compare the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery. The first determining module is configured to determine the operating strategy of the electronic device based on the matching degree; The standard battery multidimensional parameters include a first fixed parameter and a first variable parameter of the standard battery of the electronic device; the actual battery multidimensional parameters include a second fixed parameter and a second variable parameter of the actual loaded battery. The second determining module is configured as follows: Compare the first fixed parameter with the second fixed parameter; When the first fixed parameter matches the second fixed parameter, a first difference between the first variable parameter and the second variable parameter is obtained, and the degree of matching is determined based on the first difference. Wherein, both the first fixed parameter and the second fixed parameter include multiple parameters, and the second determining module is further configured to: If the first specified parameter in the first variable parameter is different from the corresponding parameter in the second variable parameter, the first specified parameter is updated to the value of the corresponding parameter in the second variable parameter to obtain the updated first specified parameter; Based on the updated first specified parameter, the second specified parameter in the first variable parameter is updated to obtain the updated second specified parameter, where the second specified parameter is a parameter associated with the first specified parameter; Obtain the second difference between the updated second specified parameter and the corresponding parameter in the second variable parameter; The matching degree is determined based on the second difference.

10. A control device for an electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured as follows: Obtain the actual battery multidimensional parameters of the actual installed battery of the electronic device; compare the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual installed battery and the standard battery; determine the operating strategy of the electronic device based on the matching degree. The standard battery multidimensional parameters include a first fixed parameter and a first variable parameter of the standard battery of the electronic device; the actual battery multidimensional parameters include a second fixed parameter and a second variable parameter of the actual loaded battery. The step of comparing the actual battery multidimensional parameters with the standard battery multidimensional parameters of the electronic device to determine the matching degree between the actual loaded battery and the standard battery includes: Compare the first fixed parameter with the second fixed parameter; When the first fixed parameter matches the second fixed parameter, the first variable parameter and the second variable parameter are compared to determine the matching degree between the actual loaded battery and the standard battery. When the first fixed parameter matches the second fixed parameter, comparing the first variable parameter and the second variable parameter to determine the matching degree between the actual loaded battery and the standard battery includes: When the first fixed parameter matches the second fixed parameter, a first difference between the first variable parameter and the second variable parameter is obtained, and the degree of matching is determined based on the first difference. Wherein, both the first fixed parameter and the second fixed parameter include multiple parameters. When the first fixed parameter and the second fixed parameter match, a first difference between the first variable parameter and the second variable parameter is obtained, and the matching degree is determined based on the first difference, including: If the first specified parameter in the first variable parameter is different from the corresponding parameter in the second variable parameter, the first specified parameter is updated to the value of the corresponding parameter in the second variable parameter to obtain the updated first specified parameter; Based on the updated first specified parameter, the second specified parameter in the first variable parameter is updated to obtain the updated second specified parameter, where the second specified parameter is a parameter associated with the first specified parameter; Obtain the second difference between the updated second specified parameter and the corresponding parameter in the second variable parameter; The matching degree is determined based on the second difference.

11. A computer-readable storage medium storing computer program instructions thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method described in any one of claims 1-8.

12. A chip, characterized in that, It includes a processor and an interface; the processor is used to read instructions to execute the method of any one of claims 1-8.

Citation Information

Patent Citations

  • Terminal and battery management method and device

    CN104052119A

  • Battery identification method, identification equipment, battery, identification device and storage medium

    CN113759259A