Battery electric quantity detection method and device, computer equipment and storage medium

By comparing the voltage change curve of the smart Bluetooth key battery with the calibrated battery voltage change curve, the remaining battery power is determined, and an alarm is output when the power is lower than the preset value. This solves the problem of the short service life of the smart Bluetooth key battery and achieves Accuracy of power detection and timely reminder.

CN118604653APending Publication Date: 2024-09-06BEIJING WATCH SMART TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410625010.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The battery life of the smart Bluetooth key is short, so if the user does not replace it in time, the key may not be able to be used normally due to exhaustion of battery, causing inconvenience.

Method used

By obtaining the battery voltage change curve of the smart key and comparing it with the voltage change curve of multiple calibrated batteries in the target operating mode, the remaining battery power is determined, and the calibration is performed in advance to improve the accuracy of power detection, and when the power is lower than the preset Output alarm information when setting the value.

Benefits of technology

It achieves accurate detection of the battery power of the smart Bluetooth key and promptly reminds the user to replace the battery to avoid inconvenience caused by battery exhaustion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604653A
    Figure CN118604653A
Patent Text Reader

Abstract

The invention provides a battery electric quantity detection method and device, computer equipment and a storage medium. The battery electric quantity detection method comprises the steps of obtaining a first voltage change curve of a battery of an intelligent key; the first voltage change curve represents the voltage change condition of the battery in the current time period; on the basis of comparison results of the first voltage change curve and a plurality of second voltage change curves, the battery remaining capacity of the intelligent key is determined; wherein the plurality of second voltage change curves are voltage change curves of the plurality of first calibration batteries in a target working mode, and the target working mode is a working mode with maximum battery power consumption in a plurality of working modes of the intelligent key. According to the embodiment of the invention, the battery capacity of the intelligent key can be accurately detected, and a customer can be prompted to replace the battery in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of power detection, and in particular to a battery power detection method, device, computer equipment and storage medium. Background Art

[0002] With the continuous advancement of in-vehicle communication technology, traditional keyless entry and start systems (Passive Entry Passive Start, PEPS) have gradually been replaced by smart Bluetooth keys. Smart Bluetooth keys provide a more convenient way to control vehicle access through seamless connection with users' smartphones. However, compared to traditional PEPS keys, while smart Bluetooth keys provide stronger security and a more convenient user experience, they also bring the problem of shortened battery life. The battery life of traditional PEPS keys can reach 3-5 years, while the battery life of smart Bluetooth keys is usually only 8-15 months. This means that if users do not replace the key battery in time, the key may not be used normally due to depletion of power, which in turn causes inconvenience to users.

[0003] Therefore, there is an urgent need for a method that can accurately detect the battery power of a smart Bluetooth key. Summary of the invention

[0004] In view of this, the present disclosure proposes a battery power detection method, device, computer equipment and storage medium to accurately detect the battery power of a smart Bluetooth key, which helps to remind customers to replace the battery in time.

[0005] The first aspect of the present disclosure provides a method for detecting battery power, the method comprising:

[0006] Acquire a first voltage variation curve of a battery of the smart key; the first voltage variation curve represents a voltage variation of the battery in a current time period;

[0007] Based on the comparison results of the first voltage change curve with multiple second voltage change curves, the remaining battery power of the smart key is determined; wherein the multiple second voltage change curves are voltage change curves of multiple first calibrated batteries in a target operating mode, and the target operating mode is the operating mode with the largest battery power consumption among the multiple operating modes of the smart key.

[0008] The disclosed embodiment determines the remaining battery power of the smart key based on the comparison results of the first voltage change curve with multiple second voltage change curves, thereby accurately detecting the battery power of the smart key and helping to promptly remind customers to replace the battery.

[0009] In an embodiment of the present disclosure, the method further includes:

[0010] Filtering the target operating mode from the multiple operating modes of the smart key;

[0011] defining a plurality of first calibration batteries, wherein the plurality of first calibration batteries have different battery capacities;

[0012] The voltage change curves of the plurality of first calibration batteries in the target working mode are acquired to obtain the plurality of second voltage change curves.

[0013] The disclosed embodiment defines multiple first calibration batteries with different battery capacities, and obtains the voltage change curves of the multiple first calibration batteries under the target operating mode, that is, by calibrating in advance, the battery voltage and charge can be mapped under the target operating mode of the smart key, thereby making the battery charge estimated based on the voltage more accurate.

[0014] In the disclosed embodiment, the step of selecting a target operating mode from the plurality of operating modes of the smart key includes:

[0015] For any one of the multiple working modes, current monitoring is performed on the smart key through the working mode to obtain a current change curve; the current change curve represents the current change of the smart key in the target working mode; and multiple current change curves corresponding to the multiple working modes are obtained;

[0016] Based on the multiple current change curves, a target operating mode is screened out from the multiple operating modes.

[0017] In the embodiment of the present disclosure, the step of selecting a target operating mode from the multiple operating modes based on the multiple current change curves includes:

[0018] For any one of the multiple current change curves, determine a current peak value of the current change curve to obtain multiple current peak values ​​corresponding to the multiple current change curves one by one;

[0019] Using a current variation curve corresponding to a maximum current peak value among the multiple current peak values ​​as a target current variation curve;

[0020] The operating mode corresponding to the target current variation curve is used as the target operating mode.

[0021] The disclosed embodiment selects a target current change curve according to the maximum current peak value among multiple current peak values ​​corresponding one-to-one to the multiple current change curves, and uses the operating mode corresponding to the target current change curve as the target operating mode. This can accurately determine the operating mode with the largest battery power consumption, thereby making the battery power detection of the smart key more accurate.

[0022] In the embodiment of the present disclosure, determining the remaining battery power of the smart key based on the first voltage change curve and the plurality of second voltage change curves includes:

[0023] Filtering out, from the plurality of second voltage variation curves, a second voltage variation curve having the highest similarity to the first voltage variation curve;

[0024] The battery power corresponding to the second voltage change curve is used as the remaining battery power of the smart key.

[0025] In the embodiment of the present disclosure, after obtaining the plurality of second voltage change curves, the method further includes:

[0026] For any one of the plurality of second voltage change curves, the second voltage change curve is converted into a corresponding preset array, and the preset array is stored in a content storage area of ​​the smart key.

[0027] In the embodiment of the present disclosure, the step of defining a plurality of first calibration batteries includes:

[0028] Using a preset battery power as a basis for division, a plurality of battery power levels are divided; the plurality of battery power levels are within a preset power range;

[0029] Based on the multiple battery capacities, the multiple second calibration batteries are discharged respectively to obtain multiple first calibration batteries corresponding to the multiple battery capacities one by one.

[0030] In an embodiment of the present disclosure, the method further includes:

[0031] If the remaining battery power is less than the preset power, an alarm message is output.

[0032] The disclosed embodiment outputs an alarm message when the remaining battery power of the smart key is less than a preset power level, so that the user can replace the battery in time, thereby achieving the purpose of not affecting the normal use of the smart key.

[0033] In the embodiment of the present disclosure, the multiple working modes include: standby mode, listening mode, connecting mode and active mode.

[0034] An embodiment of a second aspect of the present disclosure provides a battery power detection device, the device comprising:

[0035] A first voltage variation curve acquisition module, used to acquire a first voltage variation curve of a battery of the smart key; the first voltage variation curve represents a voltage variation of the battery in a current time period;

[0036] A battery remaining power determination module is used to determine the remaining battery power of the smart key based on the first voltage change curve and multiple second voltage change curves; wherein the multiple second voltage change curves are obtained according to a target operating mode, and the target operating mode is an operating mode with the largest battery power consumption among the multiple operating modes of the smart key.

[0037] An embodiment of the third aspect of the present disclosure provides a computer device, which includes a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the battery power detection method described in the first aspect by executing the computer instructions.

[0038] An embodiment of the fourth aspect of the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the battery power detection method described in the first aspect.

[0039] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will become apparent from the following description or be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present disclosure. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.

[0041] In the attached picture:

[0042] Figure 1 A schematic diagram of a flow chart of a battery power detection method provided by an embodiment of the present disclosure is shown;

[0043] Figure 2 A schematic diagram showing a flow chart of another battery power detection method provided by an embodiment of the present disclosure;

[0044] Figure 3 A schematic diagram showing a current variation curve provided by an embodiment of the present disclosure is shown;

[0045] Figure 4A schematic diagram of the structure of a battery power detection device provided by an embodiment of the present disclosure is shown;

[0046] Figure 5 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown;

[0047] Figure 6 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0048] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0049] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the present disclosure should have the common meanings understood by those skilled in the art to which the present disclosure belongs.

[0050] The following describes the technical scenarios involved in the embodiments of the present disclosure.

[0051] When testing the battery of a smart Bluetooth key, the related technology usually uses the ADC module (Analog-to-Digital Converter) inside the control unit (Microcontroller Unit, MCU) of the smart Bluetooth key to collect the battery voltage, and further calculate the battery power through the collected voltage; however, since there is no linear relationship between the battery voltage and the power, and this relationship will also change unpredictably with the scenario and frequency of key use, it is easy to have problems with inaccurate battery power detection.

[0052] To solve the above problems, the present disclosure provides a battery power detection method, which can detect the battery power of a smart Bluetooth key based on a data calibration method, and can effectively improve the accuracy of battery voltage acquisition using an ADC module and then calculating the battery capacity, so that the calculated power is closer to the actual loss value.

[0053] According to an embodiment of the present disclosure, an embodiment of a battery power detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0054] In this embodiment, a battery power detection method is provided, which can be used in a control unit of a smart key. Figure 1 is a flow chart of a battery power detection method according to an embodiment of the present disclosure. Figure 1 As shown, the process includes the following steps:

[0055] Step S101, obtaining a first voltage variation curve of a battery of the smart key.

[0056] In this step, the first voltage change curve represents the voltage change of the battery in the current time period; in practical applications, when the battery of the smart key needs to detect the remaining power, the real-time voltage of the battery in the current time period (for example, within 3 seconds) can be collected, and the first voltage change curve is generated by the collected voltage. The first voltage change curve is used to characterize the voltage change of the battery in the current time period.

[0057] Step S102: determining the remaining battery power of the smart key based on the comparison results of the first voltage change curve and a plurality of second voltage change curves.

[0058] The plurality of second voltage variation curves are voltage variation curves of the plurality of first calibration batteries in a target operating mode, and the target operating mode is an operating mode with the largest battery power consumption among the plurality of operating modes of the smart key.

[0059] In some specific embodiments, the above step S102 further includes steps S1021 and S1022:

[0060] Step S1021 , selecting a second voltage variation curve having the highest similarity to the first voltage variation curve from the plurality of second voltage variation curves.

[0061] Step S1022: taking the battery power corresponding to the second voltage variation curve as the remaining battery power of the smart key.

[0062] In the above steps S1021-S1022, there are multiple battery capacities corresponding to the multiple second voltage change curves, for example: second voltage change curve 1-battery capacity 80%, second voltage change curve 2-battery capacity 75%, and second voltage change curve 3-battery capacity 60%. In the process of determining the remaining battery capacity of the smart key, the first voltage change curve can be compared with the multiple second voltage change curves for similarity, and the second voltage change curve with the highest similarity to the first voltage change curve can be selected; then the battery capacity corresponding to the second voltage change curve with the highest similarity is used as the remaining battery capacity of the smart key, for example: if the second voltage change curve with the highest similarity is the second voltage change curve 1, the remaining battery capacity of the smart key is 80%; similarly, if the second voltage change curve with the highest similarity is the second voltage change curve 2, the remaining battery capacity of the smart key is 75%.

[0063] In some specific embodiments, Figure 2 As shown, the method further includes steps 201 to 203:

[0064] Step 201 , selecting the target operating mode from a plurality of operating modes of the smart key.

[0065] In this step, the multiple working modes include standby mode, monitoring mode, connection mode and active mode. In standby mode, the smart key hardly performs any activity, in monitoring mode, the smart key periodically monitors signals, in connection mode, the smart key establishes a stable Bluetooth connection with the car or other devices, and the active mode is based on the above connection modes, in which the smart key actively sends signals to the car or other devices.

[0066] In some specific embodiments, the above step S201 includes steps S2011 and S2012:

[0067] Step S2011, for any one of the multiple working modes, the current of the smart key is monitored through the working mode to obtain a current change curve; the current change curve represents the current change of the smart key in the target working mode, such as Figure 3 shown.

[0068] In this step, multiple working modes can be used to monitor the current of the smart key respectively, so as to obtain multiple current change curves corresponding to the multiple working modes. For example: current detection is performed on the smart key in the listening mode to obtain current change curve 1; current detection is performed on the smart key in the connection mode to obtain current change curve 2; current detection is performed on the smart key in the active mode to obtain current change curve 3.

[0069] Step S2012: Filter out a target operating mode from the multiple operating modes based on the multiple current change curves.

[0070] In some specific embodiments, the above step S2012 includes steps a1-a3:

[0071] Step a1: for any one of the multiple current change curves, determine the current peak value of the current change curve, and obtain multiple current peak values ​​corresponding to the multiple current change curves one by one.

[0072] Step a2: taking the current variation curve corresponding to the maximum current peak value among the multiple current peak values ​​as the target current variation curve.

[0073] Step a3: taking the operating mode corresponding to the target current variation curve as the target operating mode.

[0074] In the above steps a1 to a3, for each current variation curve, a time period (eg Figure 3 In the range of 1500ms-3500ms in the above example, multiple current peaks are determined, and the average current peak of the multiple current peaks is calculated; then multiple average current peaks corresponding to multiple current change curves are determined in the above method; finally, the maximum average current peak is selected from the multiple average current peaks, and the current change curve corresponding to the maximum average current peak is used as the target current change curve, and the working mode corresponding to the target current change curve is used as the target working mode. For example:

[0075] If the average current peak value of current change curve 1 obtained by current detection on the smart key in listening mode is 100mA, the average current peak value of current change curve 2 obtained by current detection on the smart key in connection mode is 200mA, and the average current peak value of current change curve 3 obtained by current detection on the smart key in active mode is 300mA, then the active mode can be used as the target working mode.

[0076] Step 202, defining a plurality of first calibration batteries, wherein the plurality of first calibration batteries have different battery capacities.

[0077] In some specific embodiments, the above step S202 includes steps S2021 and S2022:

[0078] Step S2021, using the preset battery power as a basis for division, to divide into a plurality of battery power levels.

[0079] In this step, the preset battery power includes 1%, 5%, 10%, etc., which can be set according to actual conditions and are not specifically limited here. Multiple battery power levels can be divided according to the preset battery power level. For example, when the preset battery power level is 10%, the multiple battery power levels include: 100%, 90%, 80%, ..., 20% and 10%. The multiple battery power levels are within the preset power range (0-100%).

[0080] Step S2021, based on the power levels of the multiple batteries, discharge the multiple second calibration batteries respectively to obtain multiple first calibration batteries corresponding to the power levels of the multiple batteries.

[0081] In this step, after dividing multiple battery capacities according to the preset battery capacities, multiple second calibration batteries can be discharged respectively according to the multiple battery capacities to obtain multiple first calibration batteries corresponding to the multiple battery capacities. For example: a second calibration battery is discharged according to a battery capacities of 80%, and the battery capacities are discharged from 100% to 80%, and a first calibration battery with a battery capacities of 80% is obtained; a second calibration battery is discharged according to a battery capacities of 70%, and the battery capacities are discharged from 100% to 70%, and a first calibration battery with a battery capacities of 70% is obtained. In this way, multiple first calibration batteries with battery capacities of 100%, 90%, 80%, ..., 20% and 10% can be obtained.

[0082] Step 203 , obtaining voltage change curves of the plurality of first calibration batteries in the target working mode respectively, to obtain the plurality of second voltage change curves.

[0083] In this step, after obtaining multiple first calibrated batteries corresponding to multiple battery capacities through the above step S2021, the multiple first calibrated batteries can be performance tested separately through the target operating mode to obtain multiple second voltage change curves, and the voltage changes of the corresponding first calibrated batteries in the target operating mode are represented by the corresponding second voltage transformation curves. For example: when the target operating mode is the connection mode, the second voltage transformation curve 1 is used to represent the voltage change of the first calibrated battery with a battery capacity of 80% in the connection mode, and the second voltage transformation curve 2 is used to represent the voltage change of the first calibrated battery with a battery capacity of 70% in the connection mode.

[0084] In the disclosed embodiment, the target working mode (i.e., the working mode with the largest battery power consumption) is adopted when detecting the battery power because: the amount of battery power consumption is determined by the output current of the battery. When the output current of the battery is large, the detected battery voltage is relatively accurate. On the contrary, when the output current of the battery is small, the detected battery voltage is high, but if there is a large current consumption, the detected battery voltage will suddenly drop from a high level. When this happens, it will greatly affect the accuracy of battery power detection. Therefore, when detecting the battery power, it is necessary to adopt the working mode with the largest battery power consumption.

[0085] In some specific embodiments, after step S203, the method further includes:

[0086] Step S204 , for any second voltage change curve among the plurality of second voltage change curves, convert the second voltage change curve into a corresponding preset array, and store the preset array in a content storage area of ​​the smart key.

[0087] In this step, multiple second voltage change curves can be converted into corresponding preset base arrays (for example, hexadecimal arrays) and stored in the internal flash storage area of ​​the smart key as a comparison template; when the smart key needs to perform power detection in actual applications, real-time voltage collection can be performed to generate a voltage curve, and then the data in the template can be checked to infer the accurate remaining battery power.

[0088] In some specific embodiments, the method further includes: if the remaining battery power is less than a preset power level, outputting an alarm message.

[0089] In this embodiment, the battery of the smart key can be detected in real time, so as to ensure that the smart key can output an alarm message when the remaining battery power is less than a preset power, thereby promptly reminding the user to replace the battery.

[0090] In some specific embodiments, the battery of the smart key is a button battery.

[0091] In this embodiment, according to the electrical characteristics of the button battery, the load voltage will change with the change of the current, that is, when the battery current is high, the load voltage is low. Therefore, at different time points, the voltage collected is different due to different currents. When detecting the voltage change of the battery, the total detection time is controlled within the preset time (3 seconds), ensuring that the most accurate voltage value can be collected while minimizing the collection frequency to save power.

[0092] The technical solution of the present invention can achieve the following technical effects:

[0093] 1. Through detailed analysis of the smart key mode, the voltage data can be collected accurately.

[0094] 2. By calibrating in advance, the battery voltage and power are completely mapped in the specific mode of the smart key, making the power calculated by voltage more accurate.

[0095] Corresponding to the implementation of the above battery power detection method, the present disclosure also provides a battery power detection device for executing the above Figures 1 to 3 The battery power detection method described in any of the embodiments shown in the figure. Figure 4 As shown, the battery power detection device includes:

[0096] A first voltage variation curve acquisition module, used to acquire a first voltage variation curve of a battery of the smart key; the first voltage variation curve represents a voltage variation of the battery in a current time period;

[0097] A battery remaining power determination module is used to determine the remaining battery power of the smart key based on the first voltage change curve and multiple second voltage change curves; wherein the multiple second voltage change curves are obtained according to a target operating mode, and the target operating mode is an operating mode with the largest battery power consumption among the multiple operating modes of the smart key.

[0098] Optionally, the device further comprises:

[0099] A target operating mode screening module, used for screening the target operating mode from a plurality of operating modes of the smart key;

[0100] A calibration battery definition module, used to define the plurality of first calibration batteries, wherein the plurality of first calibration batteries have different battery capacities;

[0101] The second voltage change curve acquisition module is used to acquire the voltage change curves of the plurality of first calibration batteries in the target working mode respectively, to obtain the plurality of second voltage change curves.

[0102] Optionally, the target operating mode screening module is also used to: for any one of the multiple operating modes, monitor the current of the smart key through the operating mode to obtain a current change curve; the current change curve represents the current change of the smart key under the target operating mode; obtain multiple current change curves corresponding to the multiple operating modes one by one; based on the multiple current change curves, screen out the target operating mode from the multiple operating modes.

[0103] Optionally, the target operating mode screening module is also used to: determine the current peak value of any one of the multiple current change curves to obtain multiple current peak values ​​corresponding one to one with the multiple current change curves; use the current change curve corresponding to the maximum current peak value among the multiple current peak values ​​as the target current change curve; and use the operating mode corresponding to the target current change curve as the target operating mode.

[0104] Optionally, the battery remaining power determination module is further used to: screen out a second voltage change curve having the highest similarity to the first voltage change curve from the multiple second voltage change curves; and use the battery power corresponding to the second voltage change curve as the battery remaining power of the smart key.

[0105] Optionally, the device also includes: a storage module, which is used to, after obtaining the multiple second voltage change curves, convert the second voltage change curve into a corresponding preset array for any one of the multiple second voltage change curves, and store the preset array in the content storage area of ​​the smart key.

[0106] Optionally, the calibration battery definition module is also used to: use a preset battery power as a basis for division to divide into multiple battery powers; the multiple battery powers are within a preset power range; based on the multiple battery powers, discharge multiple second calibration batteries respectively to obtain multiple first calibration batteries corresponding one-to-one to the multiple battery powers.

[0107] Optionally, the device further includes: an alarm module for outputting an alarm message if the remaining battery power is less than a preset power power.

[0108] The battery power detection device provided in the above-mentioned embodiment of the present disclosure and the battery power detection method provided in the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0109] The present disclosure also provides a computer device to execute the above-mentioned battery power detection method. Figure 5 , which shows a schematic diagram of a computer device provided by some embodiments of the present disclosure. Figure 5 As shown, the computer device 5 includes: a processor 500, a memory 501, a bus 502 and a communication interface 503, wherein the processor 500, the communication interface 503 and the memory 501 are connected via the bus 502; the memory 501 stores a computer program that can be run on the processor 500, and the processor 500 executes the aforementioned Figures 1 to 3 A battery power detection method is provided in any of the illustrated embodiments.

[0110] The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0111] The bus 502 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 501 is used to store programs. After receiving the execution instruction, the processor 500 executes the program. Figures 1 to 3 The battery power detection method disclosed in any of the illustrated embodiments may be applied to the processor 500 or implemented by the processor 500 .

[0112] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 500 or the instruction in the form of software. The above processor 500 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can 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 gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501, and the processor 500 reads the information in the memory 501 and completes the steps of the above method in combination with its hardware.

[0113] The computer device provided in the embodiment of the present disclosure and the battery power detection method provided in the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented therein.

[0114] The present disclosure also provides a computer-readable storage medium corresponding to the battery power detection method provided in the above embodiment. Figure 6 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the battery power detection method provided in any of the aforementioned embodiments will be executed.

[0115] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0116] The computer-readable storage medium provided in the above-mentioned embodiment of the present disclosure and the battery power detection method provided in the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0117] It should be noted that:

[0118] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.

[0119] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present disclosure, the various features of the present disclosure are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed disclosure requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present disclosure.

[0120] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of this disclosure and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0121] The above is only a preferred specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A battery power detection method, It is characterized in that The method comprises: Acquire a first voltage variation curve of a battery of the smart key; the first voltage variation curve represents a voltage variation of the battery in a current time period; Based on the comparison results of the first voltage change curve with multiple second voltage change curves, the remaining battery power of the smart key is determined; wherein the multiple second voltage change curves are voltage change curves of multiple first calibrated batteries in a target operating mode, and the target operating mode is the operating mode with the largest battery power consumption among the multiple operating modes of the smart key.

2. The method according to claim 1, It is characterized in that The method further comprises: Filtering the target operating mode from the multiple operating modes of the smart key; defining a plurality of first calibration batteries, wherein the plurality of first calibration batteries have different battery capacities; The voltage change curves of the plurality of first calibration batteries in the target working mode are acquired to obtain the plurality of second voltage change curves.

3. The method according to claim 2, It is characterized in that The step of selecting a target operating mode from the plurality of operating modes of the smart key includes: For any one of the multiple working modes, current monitoring is performed on the smart key through the working mode to obtain a current change curve; the current change curve represents the current change of the smart key in the target working mode; and multiple current change curves corresponding to the multiple working modes are obtained; Based on the multiple current change curves, a target operating mode is screened out from the multiple operating modes.

4. The method according to claim 3, It is characterized in that The step of selecting a target operating mode from the multiple operating modes based on the multiple current change curves includes: For any one of the multiple current change curves, determine a current peak value of the current change curve to obtain multiple current peak values ​​corresponding to the multiple current change curves one by one; Using a current variation curve corresponding to a maximum current peak value among the multiple current peak values ​​as a target current variation curve; The operating mode corresponding to the target current variation curve is used as the target operating mode.

5. The method according to claim 1 or 2, It is characterized in that The determining the remaining battery power of the smart key based on the first voltage change curve and the plurality of second voltage change curves includes: Selecting a second voltage variation curve having the highest similarity to the first voltage variation curve from the plurality of second voltage variation curves; The battery power corresponding to the second voltage change curve is used as the remaining battery power of the smart key.

6. The method according to claim 2, It is characterized in that After obtaining the plurality of second voltage variation curves, the method further includes: For any one of the plurality of second voltage change curves, the second voltage change curve is converted into a corresponding preset array, and the preset array is stored in a content storage area of ​​the smart key.

7. The method according to claim 2, It is characterized in that The defining of a plurality of first calibration batteries comprises: Using a preset battery power as a basis for division, a plurality of battery power levels are divided; the plurality of battery power levels are within a preset power range; Based on the multiple battery capacities, the multiple second calibration batteries are discharged respectively to obtain multiple first calibration batteries corresponding to the multiple battery capacities one by one.

8. The method according to claim 1 or 2, It is characterized in that The method further comprises: If the remaining battery power is less than the preset power, an alarm message is output.

9. The method according to claim 1 or 2, It is characterized in that The multiple working modes include: standby mode, listening mode, connecting mode and active mode.

10. A battery capacity detection device, It is characterized in that The device comprises: A first voltage variation curve acquisition module, used to acquire a first voltage variation curve of a battery of the smart key; the first voltage variation curve represents a voltage variation of the battery in a current time period; A battery remaining power determination module is used to determine the remaining battery power of the smart key based on the first voltage change curve and multiple second voltage change curves; wherein the multiple second voltage change curves are obtained according to a target operating mode, and the target operating mode is an operating mode with the largest battery power consumption among the multiple operating modes of the smart key.

11. A computer device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the battery power detection method according to any one of claims 1 to 9 by executing the computer instructions.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the battery power detection method according to any one of claims 1 to 9.