Power consumption detection method, device, storage medium and electronic equipment

By obtaining a set of power consumption factors for the drive circuit and vibration motor, and using a pre-built power consumption model to calculate the total power consumption of the vibration module, the problem of insufficient attention to the power consumption of the vibration module in the existing technology is solved, and the battery life and power consumption management accuracy of electronic equipment are improved.

CN114510386BActive Publication Date: 2025-09-09GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011281035.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-16
Publication Date
2025-09-09
Estimated Expiration
2040-11-16

AI Technical Summary

Technical Problem

The existing technology lacks attention to the power consumption of the vibration module in electronic devices, which affects the battery life of the device.

Method used

By obtaining the power consumption factor set of the drive circuit and vibration motor, the total power consumption of the vibration module is calculated using a pre-built power consumption model, including the output power, conversion efficiency and static power consumption of the drive circuit, as well as the operating voltage, operating impedance and conversion coefficient of the vibration motor.

Benefits of technology

It realizes the detection of the total power consumption of the vibration module in the electronic device, improving the battery life and the power consumption management accuracy of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114510386B_ABST
    Figure CN114510386B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a power consumption detection method, apparatus, storage medium, and electronic device. The power consumption detection method includes obtaining a first power consumption factor set of a driving circuit of a vibration module in an electronic device, and a second power consumption factor set of a vibration motor in the vibration module in the electronic device. The first power consumption factor set includes the output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes the operating voltage, operating impedance, and conversion coefficient of the vibration motor; using a pre-built power consumption model to calculate the total power consumption of the vibration module based on the first and second power consumption factor sets; and outputting the total power consumption of the vibration module. Embodiments of the present application can detect the total power consumption of a vibration module in an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a power consumption detection method, device, storage medium and electronic device. Background Art

[0002] Nowadays, electronic devices such as smartphones and tablets have become essential to people's lives. For example, they can make video calls, watch online videos, and listen to music online. These electronic devices are typically battery-powered, which means power consumption. However, related technologies focus only on battery power and lack attention to the power consumption of other hardware (such as vibration modules). Summary of the Invention

[0003] The embodiments of the present application provide a power consumption detection method, device, storage medium, and electronic device, which can detect the total power consumption of a vibration module in an electronic device.

[0004] In a first aspect, an embodiment of the present application provides a power consumption detection method, the method comprising:

[0005] Obtaining a first power consumption factor set of a driving circuit of a vibration module in the electronic device and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0006] Calculating the total power consumption of the vibration module based on the first power consumption factor set and the second power consumption factor set using a pre-built power consumption model;

[0007] Output the total power consumption of the vibration module.

[0008] In a second aspect, an embodiment of the present application provides a power consumption detection device, the device comprising:

[0009] an acquisition module, configured to acquire a first power consumption factor set of a driving circuit of a vibration module in an electronic device, and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes the output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes the operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0010] a detection module, configured to calculate the total power consumption of the vibration module based on the first power consumption factor set and the second power consumption factor set using a pre-built power consumption model;

[0011] The result output module is used to output the total power consumption of the vibration module.

[0012] In a third aspect, the present application provides a storage medium having a computer program stored thereon, which, when loaded by a processor of an electronic device, executes any power consumption detection method provided in the present application.

[0013] In a fourth aspect, the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor executes any power consumption detection method provided in the present application by loading the computer program.

[0014] The power consumption detection method of the embodiment of the present application uses a pre-built power consumption model to calculate and process the total power consumption of the vibration module according to the first power consumption factor set and the second power consumption factor set to obtain the total power consumption of the vibration module, thereby realizing the power consumption detection of the vibration module in the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.

[0016] Figure 1 This is a schematic diagram of the first structure of the electronic device provided in an embodiment of the present application.

[0017] Figure 2 A first flow chart of the power consumption detection method provided in an embodiment of the present application.

[0018] Figure 3 Schematic diagram of the power consumption factor selected for modeling of an electronic device in an embodiment of the present application.

[0019] Figure 4 A second flow chart of the power consumption detection method provided in an embodiment of the present application.

[0020] Figure 5 for Figure 1 A simplified model diagram of the vibration module in the electronic device shown.

[0021] Figure 6 This is a third flow chart of the power consumption detection method provided in an embodiment of the present application.

[0022] Figure 7 This is a schematic diagram of an electronic device performing big data analysis through an analysis server in an embodiment of the present application.

[0023] Figure 8 This is a schematic diagram of an electronic device detecting the total power consumption of a vibration module through a power consumption server in an embodiment of the present application.

[0024] Figure 9 A schematic diagram of the structure of the power consumption detection device provided in an embodiment of the present application.

[0025] Figure 10 A second structural diagram of the electronic device provided in an embodiment of the present application.

[0026] Figure 11 A schematic diagram of the structure of the server provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0028] The present application provides a power consumption detection method, a power consumption detection device, a storage medium, and an electronic device. The execution subject of the power consumption detection method may be the power consumption detection device provided in an embodiment of the present application, or an electronic device integrating the power consumption detection device, wherein the power consumption detection device may be implemented in hardware or software. The electronic device may be a mobile electronic device powered by a battery, such as a smartphone, a tablet computer, a PDA, or a laptop computer, or a fixed electronic device powered by mains electricity, such as a desktop computer or a smart advertising machine.

[0029] See also Figure 1 , Figure 1 This is a schematic diagram of the first structure of an electronic device provided in an embodiment of the present application. For example, the electronic device 20 may include a vibration module 200, which is configured to vibrate the electronic device in preset scenarios, such as when receiving a call reminder, a text message reminder, a message reminder from a social media app, an alarm reminder, clicking a virtual key, or playing a game application, to alert the user.

[0030] The vibration module 200 may include a drive circuit 220 and a vibration motor 240. The drive circuit 220 may be integrated into a chip or may be implemented by interconnecting discrete components mounted on a printed circuit, such as a rigid printed circuit board (e.g., a printed circuit board formed of a glass-filled epoxy resin) or a flexible printed circuit formed of a polyimide sheet or other flexible polymer layer, a plastic carrier, a glass carrier, a ceramic carrier, or other dielectric substrate. The drive circuit 220 is electrically connected to the vibration motor 240. The drive circuit 220 is configured to control the vibration motor 240 to drive the vibration motor 240. The vibration motor 240 can generate vibration under the drive of the drive circuit 220, thereby realizing the vibration function of the electronic device 20.

[0031] In actual applications, the vibration module 200 consumes battery power in the electronic device 20 during the vibration process, or in other words, the vibration module 200 generates power consumption during the vibration process. The power consumption generated by the vibration module 200 affects the battery life of the electronic device 20.

[0032] The power consumption detection method provided in the embodiment of the present application can detect the power consumption generated by the vibration module 200 during the vibration process. Figure 2 , Figure 2 This is a schematic diagram of a first flow chart of a power consumption detection method provided in an embodiment of the present application. The flow of the method may be as follows:

[0033] 110. Obtain a first power consumption factor set of a driving circuit of a vibration module in an electronic device, and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes the output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes the operating voltage, operating impedance, and conversion coefficient of the vibration motor.

[0034] When a preset target event for triggering power consumption detection is detected, the electronic device 20 can trigger power consumption detection of the vibration module 200. The target event can be configured by a person skilled in the art according to actual needs and is not specifically limited here.

[0035] Exemplary, configured target events include but are not limited to:

[0036] (1) Switch between the foreground and background applications;

[0037] (2) The overall temperature is too hot (which can be defined empirically by a person skilled in the art);

[0038] (3) Screen on / off switching;

[0039] (4) Unplug / plug the charging cable;

[0040] (5) The power consumption reaches the set value (which can be determined by a person skilled in the art according to actual needs, such as 10%);

[0041] (6) A preset detection period is reached (the value can be determined by a person skilled in the art according to actual needs, such as 1 minute).

[0042] In the embodiment of the present application, according to the components included in the vibration module 200 as described above, the corresponding power consumption factor is screened out according to the power consumption consumed by the driving circuit 220 and the vibration motor 240 during operation.

[0043] Among them, taking the driving circuit 220 as an example, possible power consumption factors related to the driving circuit 220 can be screened out based on expert experience and recorded as candidate power consumption factors. The power consumption factor can be understood as a parameter that has a certain correlation (such as a linear relationship) with the power consumption generated during the operation of the driving circuit 220. For example, the candidate power consumption factor can be one or more operating parameters in the driving circuit 220, such as the output power, conversion efficiency, output voltage, output current, etc. of the driving circuit 220.

[0044] Please refer to Figure 3 , Figure 3 Schematic diagram of selecting power consumption factors for modeling of an electronic device in an embodiment of the present application. After screening candidate power consumption factors, one of the candidate power consumption factors is selected and locked.

[0045] Then, the load of the driving circuit 220 is saturated, and the power consumption of the driving circuit 220 is measured through the electrical rail to obtain the measured power consumption of the driving circuit 220. The candidate power consumption factors are then associated with the measured power consumption and stored as a reference pair for power consumption modeling. For example, they can be stored in the form of the following power consumption modeling reference table:

[0046] Candidate power consumption factor Measured power consumption Factor value 1 Power consumption value 1 Factor value 2 Power consumption value 2 Factor value 3 Power consumption value 3 Factor value 3 Power consumption value 4

[0047] Taking a candidate power consumption factor as an example, when its parameter value is "parameter value 1", the power consumption value of the actually measured power consumption is "power consumption value 1".

[0048] As described above, other candidate power consumption factors are selected and measured, ultimately obtaining reference pairs consisting of different candidate power consumption factors and measured power consumption. These reference pairs then form a reference pair set. A pre-configured big data analysis strategy is then used to perform big data analysis on the reference pair set, thereby identifying power consumption factors that are correlated with the power consumption generated by the driver circuit 220.

[0049] For example, assume that two power consumption factors are analyzed, namely power consumption factor A, power consumption factor B, and power consumption factor C, and power consumption factor A has an impact of 90% on the measured power consumption of the driving circuit 220, power consumption factor B has an impact of 50% on the measured power consumption of the driving circuit 220, and power consumption factor C has an impact of 10% on the measured power consumption of the driving circuit 220. Optionally, if prediction accuracy is prioritized, a power consumption factor set for the driving circuit 220, i.e., a first power consumption factor set, can be formed based on a combination of power consumption factor A, power consumption factor B, and power consumption factor C. If prediction efficiency is prioritized, the first power consumption factor set can be formed based on a combination of only power consumption factor A and power consumption factor B.

[0050] For example, the first power consumption factor set of the embodiment of the present application includes the output power of the driving circuit, the conversion efficiency of the driving circuit, and the static power consumption of the driving circuit. Among them, the output power of the driving circuit 220 represents the energy value that the driving circuit 220 can provide to the external device (such as the vibration motor 240) per unit time, the conversion efficiency of the driving circuit 220 represents the ratio of the instantaneous output power provided by the driving circuit 220 to the external device to the instantaneous power input to the driving circuit 220, and the static power consumption of the driving circuit 220 represents the power consumption value consumed when the driving circuit 220 is in a stable state.

[0051] Correspondingly, the vibration motor 240 in the embodiment of the present application can also use the above-mentioned method to screen out multiple power consumption factors related to the power consumption generated by the vibration motor 240, and screen out multiple strongly correlated power consumption factors based on the degree of correlation between the multiple power consumption factors and the power consumption generated by the vibration motor 240, and generate a second power consumption factor set based on the multiple strongly correlated power consumption factors.

[0052] For example, the second power consumption factor set in the embodiment of the present application includes the operating voltage, operating impedance, and conversion coefficient of the vibration motor 240. The operating voltage of the vibration motor 240 represents the output voltage of the vibration motor 240 during vibration, the operating impedance of the vibration motor 240 represents the sum of all impedances of the vibration motor 240 during vibration, and the conversion coefficient of the vibration motor 240 refers to the conversion efficiency of the vibration motor 240 in converting input power into kinetic energy of vibration.

[0053] In practical applications, the vibration effects of vibration motor 240 can generally be divided into short-term vibration and long-term vibration. During short-term vibration, the power consumed by vibration motor 240 is instantaneous power consumption, which is strongly related to the DC impedance of vibration motor 240. In this case, vibration motor 240 is close to a pure resistance system, and its conversion coefficient is close to 1. During long-term vibration, the power consumed by vibration motor 240 is steady-state power consumption, which is strongly related to the vibration energy of vibration motor 240 and the heat generated by the coils in vibration motor 240. Steady-state power consumption is basically equivalent to the sum of the vibration energy of vibration motor 240 and the heat generated by the coils in vibration motor 240. At this time, vibration motor 240 converts its consumed power consumption into kinetic energy to maintain vibration of vibration motor 240. The conversion coefficient is generally less than 1. The specific conversion coefficient can be obtained by fitting the measured parameters of multiple long-term vibrations.

[0054] It should be noted that the specific parameter value of each power consumption factor in the first power consumption factor set may be obtained by performing a test or by other means. For example, in one embodiment, “obtaining the first power consumption factor set of the driving circuit, wherein the first power consumption factor set includes the output power, driving efficiency, conversion efficiency, and static power consumption of the driving circuit” may include:

[0055] (1) Obtaining historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit;

[0056] (2) processing historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit using a first preset algorithm model to obtain first correction information;

[0057] (3) collecting the current output power, current conversion efficiency, and current static power consumption of the driving circuit, and correcting the current output power, current driving power, and current static power consumption according to the first correction information to obtain corrected first processed data;

[0058] (4) Generate a first power consumption factor set based on the corrected first processed data.

[0059] In an embodiment of the present application, historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit 220 in the first power consumption factor set can be obtained, and the historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit 220 can be processed using a first preset algorithm model. For example, a machine learning algorithm model, a neural network algorithm model, or other algorithm model can be used to automatically fit the historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit 220 to fit optimized values ​​of the power consumption factors. First correction information is generated based on the optimized values ​​of each power consumption factor automatically fitted by the first preset algorithm model, and the output power, conversion efficiency, and static power consumption of the driving circuit 220 collected in real time are corrected based on the first correction information to obtain corrected first processed data. The first processed data includes the corrected values ​​of the output power, conversion efficiency, and static power consumption of the driving circuit 220. A first power consumption factor set is generated based on the corrected first processed data, and the first power consumption factor set is imported into the first sub-power consumption model to calculate the power consumption of the driving circuit 220.

[0060] For example, as shown in the following table:

[0061]

[0062] Taking conversion efficiency as an example, historical data corresponding to the conversion efficiency can be obtained. The historical data includes multiple historical values, such as the second historical value 1, the second historical value 2, the second historical value 3...the second historical value N. The first preset algorithm model is used to process the multiple historical values ​​to fit a correction value, such as the second correction value. The second correction value is compared with the current conversion efficiency η1. Based on the comparison result of the two, it is determined whether to correct it. If it is determined to correct it, the second correction value is used to correct the current conversion efficiency η1, and the corrected value is output, that is, the conversion efficiency η2. Other power consumption factors are also corrected according to the above process, and the corrected output power P out 2. The conversion efficiency η2 and the static power consumption P02 generate a first power consumption factor set, and the first power consumption factor set is imported into the first sub-power consumption model. The first sub-power consumption model can calculate the power consumption of the driving circuit 220 according to the first power consumption factor set through the correction process to improve the calculation accuracy of the first sub-power consumption model.

[0063] If it is determined not to make corrections, information is fed back to the electronic device 20. For example, when the difference between the second measured value and the second corrected value is greater than a threshold value, there may be a fault in the driving circuit 220, resulting in an excessive deviation of the second measured value. At this time, if corrections are made and power consumption calculations are performed, the calculation accuracy of the power consumption model will be reduced. At this time, an alarm message can be sent to the electronic device 20 to inform it of the fault of the vibration module 200. The electronic device 20 can determine whether to interrupt the total power consumption detection process of the vibration module 200 and remind the user of the fault information based on the alarm information it receives.

[0064] It should also be noted that the method for obtaining the specific parameter value of each power consumption factor in the second power consumption factor set can be the same as the method for obtaining the specific parameter value of each power consumption factor in the first power consumption factor set. For example, the second power consumption factor set can also be obtained by implementing tests or other methods. Of course, the method for obtaining the specific parameter value of each power consumption factor in the second power consumption factor set can also be different from the method for obtaining the specific parameter value of each power consumption factor in the first power consumption factor set. For example, one is obtained by actual measurement and the other is obtained by other methods.

[0065] Optionally, in one embodiment, “obtaining a second power consumption factor set of the vibration motor, wherein the second power consumption factor set includes an operating voltage, an operating impedance, and a conversion coefficient of the vibration motor” may include:

[0066] (1) Obtaining historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0067] (2) processing the operating voltage, operating impedance, and conversion coefficient of the vibration motor using a second preset algorithm model to obtain second correction information;

[0068] (3) collecting the current working voltage, the current working impedance, and the current working impedance of the vibration motor, and correcting the current working voltage, the current working impedance, and the current working impedance according to the second correction information to obtain corrected second processed data;

[0069] (4) Generate a second power consumption factor set based on the corrected second processed data.

[0070] In an embodiment of the present application, historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor 240 in the second power consumption factor set can be obtained, and the historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor 240 can be processed using a second preset algorithm model. For example, a machine learning algorithm model, a neural network algorithm model, or other algorithm model can be used to automatically fit the historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor 240 to fit the optimized value of the power consumption factor. Second correction information is generated based on the optimized value of each power consumption factor automatically fitted by the second preset algorithm model, and the operating voltage, operating impedance, and conversion coefficient of the vibration motor 240 collected in real time are corrected based on the second correction information to obtain corrected second processed data. The second processed data includes the corrected values ​​of the operating voltage, operating impedance, and conversion coefficient of the vibration motor 240. A second power consumption factor set is generated using the corrected second processed data, and the second power consumption factor set is imported into the second sub-power consumption model to calculate the power consumption of the vibration motor 240.

[0071] The specific process can refer to the above-mentioned process of obtaining the first power consumption factor, which will not be repeated here.

[0072] In an embodiment of the present application, by optimizing each power consumption factor in the first power consumption factor set and / or each power consumption factor in the second power consumption factor set, the numerical accuracy of the first power consumption factor set and / or the second power consumption factor set can be improved, and the calculation accuracy of the first sub-power consumption model and / or the second sub-power consumption model can be improved, thereby improving the calculation accuracy of the total power consumption of the vibration module 200.

[0073] 120 , using a pre-built power consumption model to calculate the total power consumption of the vibration module according to the first power consumption factor set and the second power consumption factor set.

[0074] In the embodiment of the present application, a power consumption model describing the total power consumption relationship of the vibration module 200 is pre-built. The power consumption model can be deployed locally on the electronic device 20 or in the cloud.

[0075] As described above, after the embodiment of the present application obtains the first power consumption factor set and the second power consumption factor set, the total power consumption of the vibration module 200 can be calculated based on the first power consumption factor set and the second power consumption factor set using a pre-built power consumption model.

[0076] 130. Output the total power consumption of the vibration module.

[0077] After the total power consumption of the vibration module 200 is calculated based on the first power consumption factor set and the second power consumption factor set using the pre-built power consumption model, the total power consumption of the vibration module 200 can be output.

[0078] Exemplarily, the total power consumption generated by each vibration of the vibration module 200 can be output to a preset processing module (such as a CPU) of the electronic device 20. The preset processing module of the electronic device 20 can summarize and / or analyze the total power consumption of multiple vibrations (such as the total power consumption of all vibrations in a certain time period or a certain day) to obtain analysis data. The analysis data can be provided to users and / or suppliers. Users can understand the total power consumption of the vibration module 200 through the analysis data, and can adaptively adjust the settings of the electronic device 20 according to the power consumption, such as turning off the vibration effect in certain scenarios to save power consumption; the supplier can optimize the vibration module 200 based on the analysis data, for example, by adjusting the structure or parameters of the vibration module 200 to reduce the vibration amplitude, thereby reducing the total power consumption of the vibration module 200.

[0079] In other embodiments, the data may be output to a local storage module or a pre-built database of the electronic device 20. The storage module or the pre-built database may store the total power consumption of the vibration module 200. When the electronic device 20 needs to obtain relevant data on the total power consumption of the vibration module 200, the data may be called from the storage module or the pre-built database.

[0080] It should be noted that the relevant data on the total power consumption generated by the vibration of the vibration module 200 can also be sent to an external device, such as an external server, which analyzes the relevant data on the total power consumption generated by the vibration of the vibration module 200 to reduce the workload of the electronic device 20 itself and reduce the occupation of the hardware resources and power resources of the electronic device 20.

[0081] From the above, it can be seen that the embodiment of the present application adopts a pre-built power consumption model to utilize the output power, conversion efficiency and static power consumption of the driving circuit 220, as well as the operating voltage, operating impedance and conversion coefficient of the vibration motor 240 to detect the total power consumption of the vibration module to obtain the total power consumption of the vibration module, thereby realizing the total power consumption detection of the vibration module in the electronic device.

[0082] It should be noted that in other embodiments, the electronic device may include multiple vibration modules 200. Accordingly, the electronic device 20 may obtain a first power consumption factor set and a second power consumption factor set for each vibration module 200, and accordingly predict the total power consumption of each vibration module 200. For any unexplained portions, please refer to the above related descriptions and will not be repeated here.

[0083] See also Figure 4 , Figure 4In a second flow chart of the power consumption detection method provided in an embodiment of the present application, “120, using a pre-built power consumption model to calculate the total power consumption of the vibration module based on the first power consumption factor set and the second power consumption factor set” may include:

[0084] 121. Calculate the power consumption of the driving circuit using the first sub-power consumption model according to the first power consumption factor set.

[0085] 122. Calculate the power consumption of the vibration motor using the second sub-power consumption model according to the second power consumption factor set.

[0086] 123 , calculating the sum of the power consumption of the driving circuit and the power consumption of the vibration motor to obtain the total power consumption of the vibration module.

[0087] In an embodiment of the present application, the pre-built power consumption model may include a first sub-power consumption model and a second sub-power consumption model. The first sub-power consumption model can be used to calculate the power consumption consumed by the driving circuit 220, and the second sub-power consumption model can be used to calculate the power consumption consumed by the vibration motor 240.

[0088] After obtaining the output power, conversion efficiency and static power consumption of the driving circuit 220, the output power, conversion efficiency and static power consumption of the driving circuit 220 are imported into the first sub-power consumption model. The first sub-power consumption model can be calculated based on the output power, conversion efficiency and static power consumption of the driving circuit 220 to obtain the power consumption consumed by the driving circuit 220.

[0089] Optionally, in one embodiment, the first sub-power consumption model may include:

[0090] P1=(P out / η*(1-η)+P0)*t;

[0091] Wherein, P1 represents the total power consumption of the driving circuit 220, P out represents the output power of the driving circuit 220, η represents the conversion efficiency of the driving circuit 220, which can be obtained by obtaining the input voltage and output voltage of the driving circuit 220 and calculating the ratio of the input voltage to the output voltage of the driving circuit 220, P0 represents the static power consumption of the driving circuit 220, and t represents the vibration duration of the vibration module 200.

[0092] It should be noted that the specific value of η can also be obtained through querying. For example, multiple conversion efficiencies corresponding to different input voltages and output voltages of the driver circuit 220 can be pre-recorded in a storage file, and the specific value of η can be obtained by querying the contents of the storage file. It is understood that there is a functional relationship between the input voltage of the driver circuit 220 and the output voltage of the driver circuit 220. This functional relationship can be represented by an efficiency curve. This efficiency curve can utilize a large amount of pre-measured data. The efficiency curve can be pre-stored in a storage file. When the conversion efficiency of the driver circuit 220 needs to be obtained, it can be obtained by querying this efficiency curve.

[0093] Optionally, in one embodiment, the second sub-power consumption model may include:

[0094] P2=(p*V 2 / R)*t;

[0095] Wherein, P2 represents the power consumption of the vibration motor 240, V represents the operating voltage of the vibration motor 240, R represents the operating impedance of the vibration motor 240, and t represents the vibration duration of the vibration module 200. Optionally, the operating voltage of the vibration motor 240 can be obtained by:

[0096] Acquire a vibration waveform of the vibration motor within the vibration duration; acquire a plurality of operating voltages according to the vibration waveform; and calculate an average value of the plurality of operating voltages to obtain the operating voltage of the vibration motor.

[0097] For example, the vibration waveform of the vibration motor 240 can be acquired in real time through software. The output voltage corresponding to each moment during the vibration process can be read from the vibration waveform. The output voltage at all moments during the vibration process is calculated to obtain the average value of the output voltage at all moments during the vibration process. This average value of the output voltage at all moments during the vibration process can be used as the operating voltage of the vibration motor 240. The vibration duration of the vibration module 200 can also be read from the vibration waveform.

[0098] Optionally, the operating impedance of the vibration motor 240 can be obtained by:

[0099] Obtaining the motor impedance of the vibration motor;

[0100] Obtaining the circuit impedance of the vibration motor through a simulation experiment;

[0101] The sum of the motor impedance and the line impedance is calculated to obtain the operating impedance of the vibration motor.

[0102] Combine Figure 5 As shown, Figure 5 for Figure 1The simplified model diagram of the vibration module in the electronic device shown. The working impedance of the vibration motor 240 in the embodiment of the present application includes the impedance of the vibration motor 240 itself and the line impedance of the connection line. Assuming that the impedance of the vibration motor 240 itself is R0, and the impedance of the connection line between the vibration motor 240 and the driving circuit 220 is R1, then R=R0+R1, P1=(p*V 2 / (R0+R1))*t.

[0103] The power consumption model may include P=P1+P2, where P1 and P2 are calculated using the first power consumption sub-model and the second power consumption sub-model respectively.

[0104] Optionally, in one embodiment, as Figure 6 As shown, Figure 6 The third flow chart of the power consumption detection method provided in the embodiment of the present application further includes the following steps after "130, outputting the total power consumption of the vibration module":

[0105] 140, outputting the total power consumption of the vibration module to a preset analysis server, wherein the analysis server is configured to perform big data analysis based on the total power consumption of the vibration module according to a preset analysis strategy to obtain an analysis result;

[0106] 150. Receive the analysis result returned by the analysis server, and output the analysis result.

[0107] In an embodiment of the present application, an analysis server is provided, which is configured to provide big data analysis services to electronic devices.

[0108] For example, please refer to Figure 6 and Figure 7 , Figure 7 Schematic diagram of an electronic device performing big data analysis through an analysis server in an embodiment of the present application. The network access device provides network access services for the electronic device, so that the electronic device can access the Internet through the network access device. After detecting the total power consumption of the vibration module 200, the electronic device 20 also transmits the total power consumption of the vibration module 200 detected to the analysis server on the other side of the Internet via the network access device. Among them, the electronic device 20 can send the total power consumption of the vibration module 200 after each detection of the total power consumption of the vibration module 200, or can send the total power consumption of the vibration module 200 at intervals of a preset time period, and can also send the total power consumption of the vibration module 200 every time the total power consumption of the first preset number of vibration modules 200 is predicted.

[0109] On the other hand, analysis server is configured with analysis strategy, and this analysis strategy is used to describe how to carry out big data analysis to the total power consumption from vibration module 200, specifically can be configured according to actual needs by those of ordinary skill in the art, and is not specifically limited in the embodiment of the present application.Such as, can be configured for the analysis strategy that the user's electricity consumption behavior is analyzed (such as providing the power consumption of the top ten applications that adopt vibration module 200 to vibrate), can also be configured for recommending the analysis strategy of the vibration sound effect that opens or closes certain applications etc..Correspondingly, when the number of the total power consumption of the vibration module 200 that has been received by analysis server reaches the second preset number, namely according to the analysis strategy of configuration, utilize the total power consumption of the second preset number of vibration modules 200 including the total power consumption of the vibration module 200 that is transmitted when electronic equipment 20 is carried out big data analysis, obtain corresponding analysis result.After analyzing the analysis result obtained, analysis server is about to transmit this analysis result to electronic equipment 20.

[0110] Accordingly, electronic device 20 receives the analysis results returned by the analysis server. After receiving the analysis results returned by the analysis server, electronic device 20 outputs the analysis results according to the configured output policy. The configuration of this output policy is not specifically limited herein and can be configured by persons of ordinary skill in the art according to actual needs, including but not limited to audio, video, text, image, and other output methods.

[0111] It should be noted that in the embodiment of the present application, there is no specific restriction on the values ​​of the above preset time interval, the first preset number, and the second preset number, and they can be configured by ordinary technicians in this field according to actual needs.

[0112] Optionally, in one embodiment, the power consumption detection method provided in the present application may further include, after "140, receiving the analysis result returned by the analysis server and outputting the analysis result":

[0113] The vibration module is adjusted according to the analysis result so that the total power consumption of the vibration module is less than a preset value.

[0114] During the analysis of the total power consumption of the vibration module 20, the analysis server can also generate a vibration optimization plan based on the analysis results. The electronic device 20 can adjust the vibration module 200 according to the vibration optimization plan so that the total power consumption of the vibration module 200 is less than a preset value.

[0115] For example, the operating voltage or vibration frequency of the vibration module 200 can be optimized and adjusted, and various parameters of the vibration module 200 can be optimized and adjusted in different ways according to different applications. For example, the vibration amplitude of the alarm reminder can be adjusted to be relatively large, and the vibration mode of the incoming call reminder can be adaptively optimized according to the user's current environment. For example, when the incoming call mode of the electronic device 20 is conference mode, the vibration amplitude of the incoming call reminder can be reduced; when the incoming call mode of the electronic device 20 is outdoor mode, the vibration amplitude of the incoming call reminder can be increased. Of course, the user's current environment can also be judged not only by the incoming call mode, but also by other methods. For example, the camera of the electronic device 20 can be triggered at different times to capture the surrounding environment, and the user's current environment can be judged based on the surrounding environment.

[0116] Optionally, the power consumption detection method provided in the embodiment of the present application can also be applied to a server deployed outside the electronic device 20. For example, "130, using a pre-built power consumption model to calculate the total power consumption of the vibration module according to the first power consumption factor set and the second power consumption factor set" includes:

[0117] (1) sending the first power consumption factor set and the second power consumption factor set to a preset power consumption server, and instructing the power consumption server to input the first power consumption factor set and the second power consumption factor set into the power consumption model locally deployed on the preset power consumption server to obtain the total power consumption of the vibration module;

[0118] (2) Receive the total power consumption of the vibration module returned by the power consumption server.

[0119] In the embodiment of the present application, the power consumption model is deployed in the cloud as an example for explanation.

[0120] In an embodiment of the present application, a power consumption server is provided, which is configured to provide power consumption detection services to the electronic device 20.

[0121] For example, please refer to Figure 8 , Figure 8Schematic diagram of an electronic device detecting the total power consumption of a vibration module through a power consumption server in an embodiment of the present application. The network access device provides network access services for the electronic device, so that the electronic device can access the Internet through the network access device. When the total power consumption of the vibration module 200 is detected, the electronic device 20 transmits the obtained first power consumption factor set and second power consumption factor set to the power consumption server on the other side of the Internet via the network access device. The power consumption server is locally deployed with a pre-built power consumption model. Accordingly, after receiving the first power consumption factor set and the second power consumption factor set from the electronic device, the power consumption server inputs the first power consumption factor set and the second power consumption factor set into the locally deployed power consumption model, thereby calculating the total power consumption of the vibration module 200, and returning the calculated total power consumption of the vibration module 200 to the electronic device 20. On the other hand, the electronic device 20 will receive the total power consumption of the vibration module 200 returned by the power consumption server.

[0122] Optionally, in one embodiment, sending the first power consumption factor and the second power consumption factor to a preset power consumption server includes:

[0123] When the electronic device runs a preset application, sending the first power consumption factor and the second power consumption factor to a power consumption server; or

[0124] When the operating load of the electronic device is greater than or equal to a preset load, sending the first power consumption factor and the second power consumption factor to a power consumption server; or

[0125] When the remaining power of the electronic device is less than the preset power, the first power consumption factor and the second power consumption factor are sent to the power consumption server.

[0126] In other embodiments, the power consumption model may be partially deployed in the power consumption server and partially deployed locally on the electronic device 20. For example, a sub-power consumption model with a larger computational load may be deployed on the power consumption server, while a sub-power consumption model with a smaller computational load may be deployed locally on the electronic device 20. The power consumption server will bear part of the power consumption computational load, thereby reducing the computational load on the electronic device 20. Alternatively, the power consumption model may be deployed simultaneously on the electronic device 20 and the power consumption server. Accordingly, the electronic device 20 only requests the power consumption server to perform power consumption detection under specific conditions.

[0127] Exemplarily, the configured specific conditions may include: the electronic device 20 is running a preset application; or the running load of the electronic device 20 is greater than or equal to the preset load; or the remaining power of the electronic device 20 is less than the preset power.

[0128] It should be noted that in the embodiments of the present application, there is no specific limitation on the configuration of the above preset applications, preset loads, and preset power, and they can be configured by ordinary technicians in this field according to actual needs.

[0129] For example, the preset application can be configured by the electronic device 20 by default, or can be configured by the electronic device 20 according to user input. Among them, the electronic device 20 can configure applications with high data transmission quality requirements such as game applications and live broadcast applications as preset applications that require guaranteed transmission quality.

[0130] Optionally, in other embodiments, the electronic device 20 may also transmit the first power consumption factor set and the second power consumption factor set to the power consumption server only when the above specific conditions are met, and the power consumption server provides power consumption detection services.

[0131] Optionally, in one embodiment, the power consumption detection method provided in the embodiment of the present application may further include:

[0132] (1) Obtain reference parameters for vibration module configuration;

[0133] (2) When the total power consumption of the vibration module does not match the reference parameter, fault information is generated according to the total power consumption of the vibration module and the reference parameter, and the fault information is sent to a preset fault server.

[0134] In an embodiment of the present application, a fault server is provided, which is configured to provide a fault analysis service to the electronic device 20.

[0135] It can be understood that although the present application uses the output power, conversion efficiency and static power consumption in the first power consumption factor set as the power consumption parameters of the driving circuit 220 to model the power consumption of the driving circuit 220, and uses the operating voltage, operating impedance and conversion coefficient in the second power consumption factor set as the power consumption parameters of the vibration motor 240 to model the power consumption of the vibration motor 240, this does not mean that the present application believes that other parameters besides the aforementioned power consumption parameters are irrelevant to the total power consumption of the vibration module 200.

[0136] In the embodiment of the present application, the corresponding relationship of reference parameter and vibration module 200 total power consumption is also established in advance. Taking vibration amplitude size as example, the larger the vibration amplitude of the vibration module 200 is usually configured, the higher the total power consumption of the corresponding vibration module 200. For example, the vibration amplitude of the vibration module 200 is divided into 3 levels, which are respectively one-level vibration amplitude, two-level vibration amplitude and three-level vibration amplitude, the total power consumption A of the corresponding vibration module 200 of the one-level vibration amplitude is determined, the total power consumption B of the corresponding vibration module 200 of the two-level vibration amplitude is determined, the total power consumption C of the corresponding vibration module 200 of the three-level vibration amplitude is determined, wherein, the total power consumption A of the vibration module 200>the total power consumption B of the vibration module 200>the total power consumption C of the vibration module 200 of the three-level vibration amplitude is determined.

[0137] As described above, based on the established correspondence between the reference parameters and the total power consumption of the vibration module 200, the electronic device 20 obtains the reference parameters of the current configuration of the vibration module 200 after each prediction of the total power consumption of the vibration module 200, and judges whether the reference parameters of the current configuration of the vibration module 200 match the total power consumption of the vibration module 200 detected this time based on the correspondence between the reference parameters and the total power consumption of the vibration module 200 established as described above. If they do not match, it means that the vibration module 200 may be currently working abnormally. If they match, it means that the vibration module 200 is working normally.

[0138] Among them, if it is determined that the vibration module 200 is working abnormally, the electronic device 20 generates fault information according to the message format pre-agreed with the fault server, based on the reference parameters currently configured of the vibration module 200 and the total power consumption of the vibration module 200 obtained during the current detection, and transmits the fault information to the fault server.

[0139] On the other hand, the fault server writes the fault information from the electronic device 20 into a local database for related technical personnel to analyze the fault of the electronic device 20 and provide corresponding solution strategies.

[0140] Optionally, in one embodiment, after sending the fault information to a preset fault server, the method further includes:

[0141] Receive the fault resolution strategy returned by the fault server based on the fault information and output the fault resolution strategy.

[0142] It should be noted that in the embodiment of the present application, the correspondence between fault information and fault resolution strategy can also be configured directly on the fault server. The fault information and fault resolution strategy can be configured by ordinary technicians in this field based on experience and are not specifically limited here.

[0143] Correspondingly, after receiving the fault information from the electronic device 20 , the fault server also determines a fault resolution strategy corresponding to the fault information based on the configured correspondence between the fault information and the fault resolution strategy, and returns the fault resolution strategy to the electronic device 30 .

[0144] On the other hand, electronic device 30 receives the fault resolution strategy corresponding to the aforementioned fault information returned by the fault server and outputs the fault resolution strategy according to the configured output strategy. The configuration of the output strategy is not specifically limited here and can be configured by a person of ordinary skill in the art according to actual needs, including but not limited to audio, video, text, image, and other output methods.

[0145] In order to better implement the power consumption detection method provided by this application, this application further provides a power consumption detection device, which is applied to the electronic device 20 provided in any of the above application embodiments, please refer to Figure 9 , Figure 9 This is a schematic diagram of the structure of a power consumption detection device provided in an embodiment of the present application. The power consumption detection device 300 may include an acquisition module 310, a detection module 320, and a result output module 330, wherein:

[0146] The acquisition module 310 is configured to acquire a first power consumption factor set of a driving circuit of a vibration module in an electronic device, and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes the output power, conversion efficiency and static power consumption of the driving circuit, and the second power consumption factor set includes the operating voltage, operating impedance and conversion coefficient of the vibration motor.

[0147] The detection module 320 is configured to use a pre-built power consumption model to calculate the total power consumption of the vibration module according to the first power consumption factor set and the second power consumption factor set.

[0148] The result output module 330 is configured to output the total power consumption of the vibration module.

[0149] The pre-built power consumption model may include a first sub-power consumption model and a second sub-power consumption model. The first sub-power consumption model may be used to calculate the power consumption consumed by the driving circuit 220 , and the second sub-power consumption model may be used to calculate the power consumption consumed by the vibration motor 240 .

[0150] Optionally, in one embodiment, the acquisition module 310 is further configured to:

[0151] Calculating the power consumption of the driving circuit using the first sub-power consumption model according to the first power consumption factor set;

[0152] Calculating the power consumption of the vibration motor using the second sub-power consumption model according to the second power consumption factor set;

[0153] The total power consumption of the vibration module is obtained by summing the power consumption of the driving circuit and the power consumption of the vibration motor.

[0154] Exemplarily, the first sub-power consumption model may include:

[0155] P1=(P out / η*(1-η)+P0)*t;

[0156] Wherein, P1 represents the total power consumption of the driving circuit 220, P outrepresents the output power of the driving circuit 220, η represents the conversion efficiency of the driving circuit 220, which can be obtained by obtaining the input voltage and output voltage of the driving circuit 220 and calculating the ratio of the input voltage to the output voltage of the driving circuit 220, P0 represents the static power consumption of the driving circuit 220, and t represents the vibration duration of the vibration module 200.

[0157] Exemplarily, the second sub-power consumption model may include:

[0158] P2=(p*V 2 / R)*t;

[0159] Wherein, P2 represents the power consumption of the vibration motor 240 , V represents the operating voltage of the vibration motor 240 , R represents the operating impedance of the vibration motor 240 , and t represents the vibration duration of the vibration module 200 .

[0160] The power consumption model may include: P=P1+P2, where P1 and P2 are calculated using the first power consumption sub-model and the second power consumption sub-model respectively.

[0161] Optionally, in one embodiment, the acquisition module 310 is further configured to:

[0162] Acquiring a vibration waveform of the vibration motor within the vibration duration;

[0163] obtaining a plurality of output voltages according to the vibration waveform;

[0164] An average value of the plurality of output voltages is calculated to obtain a working voltage of the vibration motor.

[0165] Optionally, in one embodiment, the acquisition module 310 is further configured to:

[0166] Obtaining the motor impedance of the vibration motor;

[0167] Obtaining the circuit impedance of the vibration motor through a simulation experiment;

[0168] The sum of the motor impedance and the line impedance is calculated to obtain the operating impedance of the vibration motor.

[0169] Optionally, in one embodiment, the acquisition module 310 may include a first acquisition submodule and a second acquisition submodule, and the first acquisition submodule is configured to:

[0170] Obtain historical data corresponding to the output power, conversion efficiency and static power consumption of the driving circuit;

[0171] Processing historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit using a first preset algorithm model to obtain first correction information;

[0172] collecting a current output power, a current conversion efficiency, and a current static power consumption of the driving circuit, and performing correction processing on the current output power, the current driving power, and the current static power consumption respectively according to the first correction information to obtain corrected first processed data;

[0173] A first power consumption factor set is generated according to the corrected first processed data.

[0174] Optionally, in one embodiment, the second acquisition submodule is configured to:

[0175] Obtain historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0176] Processing the operating voltage, operating impedance, and conversion coefficient of the vibration motor using a second preset algorithm model to obtain second correction information;

[0177] collecting a current operating voltage, a current operating impedance, and a current operating impedance of the vibration motor, and correcting the current operating voltage, the current operating impedance, and the current operating impedance according to the second correction information to obtain corrected second processed data;

[0178] A second power consumption factor set is generated according to the corrected second processed data.

[0179] Optionally, in one embodiment, the detection module 320 is further configured to:

[0180] Sending the first power consumption factor set and the second power consumption factor set to a preset power consumption server, and instructing the power consumption server to input the first power consumption factor set and the second power consumption factor set into the power consumption model locally deployed on the preset power consumption server to obtain the total power consumption of the vibration module;

[0181] Receive the total power consumption of the vibration module returned by the power consumption server.

[0182] Optionally, in one embodiment, the result output module 330 is further configured to:

[0183] Outputting the total power consumption of the vibration module to a preset analysis server, wherein the analysis server is configured to perform big data analysis based on the total power consumption of the vibration module according to a preset analysis strategy to obtain an analysis result;

[0184] Receive the analysis result returned by the analysis server, and output the analysis result.

[0185] Optionally, in one embodiment, the result output module 330 is further configured to: adjust the vibration module according to the analysis result so that the total power consumption of the vibration module is less than a preset value.

[0186] It should be noted that the power consumption detection device provided in the embodiment of the present application and the power consumption detection method in the above embodiment have the same concept. The specific implementation process is detailed in the above related embodiments and will not be repeated here.

[0187] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is configured to execute the steps of the power consumption detection method provided in this embodiment by calling a computer program stored in the memory.

[0188] See also Figure 10 , Figure 10 This is a second structural diagram of the electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include components such as a vibration module 200, a network interface 400, a memory 500, and a processor 600. Those skilled in the art will understand that Figure 10 The structure of the electronic device 20 shown in the figure does not constitute a limitation to the electronic device 20, and the electronic device 20 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0189] The vibration module 200 is the vibration module 200 described in any of the above application embodiments, and will not be described in detail here.

[0190] The network interface 400 can be used to establish a network connection between devices.

[0191] Memory 500 can be used to store computer programs and data. The computer programs stored in memory 500 include executable code. Computer programs can be divided into various functional modules. Processor 600 executes various functional applications and data processing by running the computer programs stored in memory 400.

[0192] The processor 600 is the control center of the electronic device 20. It uses various interfaces and lines to connect various parts of the entire electronic device 20. By running or executing computer programs stored in the memory 500 and calling data stored in the memory 500, it performs various functions of the electronic device 20 and processes data, thereby controlling the electronic device 20 as a whole.

[0193] In the embodiment of the present application, the processor 600 in the electronic device 20 loads the executable code corresponding to one or more computer programs into the memory 500 according to the following instructions, and the processor 600 executes the executable code to perform the following steps:

[0194] Obtaining a first power consumption factor set of a driving circuit of a vibration module in the electronic device and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0195] Calculating the total power consumption of the vibration module based on the first power consumption factor set and the second power consumption factor set using a pre-built power consumption model;

[0196] Output the total power consumption of the vibration module.

[0197] Optionally, in one embodiment, the pre-built power consumption model includes a first sub-power consumption model and a second sub-power consumption model. The processor 600 is configured to execute:

[0198] The calculating the total power consumption of the vibration module by using the pre-built power consumption model according to the first power consumption factor set and the second power consumption factor set includes:

[0199] Calculating the power consumption of the driving circuit using the first sub-power consumption model according to the first power consumption factor set;

[0200] Calculating the power consumption of the vibration motor using the second sub-power consumption model according to the second power consumption factor set;

[0201] The total power consumption of the vibration module is obtained by summing the power consumption of the driving circuit and the power consumption of the vibration motor.

[0202] Optionally, in one embodiment, the first sub-power consumption model includes: P1=(P out / η*(1-η)+P0)*t;

[0203] Wherein, P1 represents the total power consumption of the driving circuit, P out represents the output power of the driving circuit, η represents the conversion efficiency of the driving circuit, P0 represents the static power consumption of the driving circuit, and t represents the vibration duration of the vibration module.

[0204] Optionally, in one embodiment, the second sub-power consumption model includes: P2=(p*V 2 / R)*t;

[0205] Wherein, P2 represents the power consumption of the vibration motor, V represents the operating voltage of the vibration motor, R represents the operating impedance of the vibration motor, and t represents the vibration duration of the vibration module.

[0206] The power consumption model may include: P=P1+P2, where P1 and P2 are calculated using the first power consumption sub-model and the second power consumption sub-model respectively.

[0207] Optionally, in one embodiment, the processor 600 is further configured to:

[0208] Acquiring a vibration waveform of the vibration motor within the vibration duration;

[0209] obtaining a plurality of output voltages according to the vibration waveform;

[0210] An average value of the plurality of output voltages is calculated to obtain a working voltage of the vibration motor.

[0211] Optionally, in one embodiment, the processor 600 is further configured to:

[0212] Obtaining the motor impedance of the vibration motor;

[0213] Obtaining the circuit impedance of the vibration motor through a simulation experiment;

[0214] The sum of the motor impedance and the line impedance is calculated to obtain the operating impedance of the vibration motor.

[0215] Optionally, in one embodiment, the processor 600 is further configured to:

[0216] Outputting the total power consumption of the vibration module to a preset analysis server, wherein the analysis server is configured to perform big data analysis based on the total power consumption of the vibration module according to a preset analysis strategy to obtain an analysis result;

[0217] Receive the analysis result returned by the analysis server, and output the analysis result.

[0218] Optionally, in one embodiment, the processor 600 is further configured to:

[0219] After receiving the analysis result returned by the analysis server and outputting the analysis result, the vibration module is adjusted according to the analysis result so that the total power consumption of the vibration module is less than a preset value.

[0220] Optionally, in one embodiment, the processor 600 is further configured to:

[0221] Obtain historical data corresponding to the output power, conversion efficiency and static power consumption of the driving circuit;

[0222] Processing historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit using a first preset algorithm model to obtain first correction information;

[0223] collecting a current output power, a current conversion efficiency, and a current static power consumption of the driving circuit, and performing correction processing on the current output power, the current driving power, and the current static power consumption respectively according to the first correction information to obtain corrected first processed data;

[0224] A first power consumption factor set is generated according to the corrected first processed data.

[0225] Optionally, in one embodiment, the processor 600 is further configured to:

[0226] Obtain historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0227] Processing the operating voltage, operating impedance, and conversion coefficient of the vibration motor using a second preset algorithm model to obtain second correction information;

[0228] collecting a current operating voltage, a current operating impedance, and a current operating impedance of the vibration motor, and correcting the current operating voltage, the current operating impedance, and the current operating impedance according to the second correction information to obtain corrected second processed data;

[0229] A second power consumption factor set is generated according to the corrected second processed data.

[0230] Optionally, in one embodiment, the processor 600 is further configured to:

[0231] Sending the first power consumption factor set and the second power consumption factor set to a preset power consumption server, and instructing the power consumption server to input the first power consumption factor set and the second power consumption factor set into the power consumption model locally deployed on the preset power consumption server to obtain the total power consumption of the vibration module;

[0232] Receive the total power consumption of the vibration module returned by the power consumption server.

[0233] It should be noted that the process executed by the processor 600 in the electronic device 20 provided in the embodiment of the present application belongs to the same concept as the power consumption detection method in the above embodiment. The specific implementation process is detailed in the above related embodiments and will not be repeated here.

[0234] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program stored thereon is executed on a processor of an electronic device provided in an embodiment of the present application, the processor of the electronic device performs the steps of any of the above-mentioned power consumption detection methods applicable to electronic devices. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0235] The embodiment of the present application also provides a server, such as Figure 11 As shown, Figure 11 This is a structural diagram of a server provided in an embodiment of the present application. The server 40 may include a processor 41, a memory 42, and a network interface.

[0236] The processor 41 is the control center of the server 40. It uses various interfaces and lines to connect various parts of the entire server 40. By running or executing computer programs stored in the memory 42 and calling data stored in the memory 42, it executes various functions of the server 40 and processes data, thereby controlling the server 40 as a whole.

[0237] Memory 42 can be used to store computer programs and data. The computer programs stored in memory 42 include executable code. Computer programs can be divided into various functional modules. Processor 41 executes various functional applications and data processing by running the computer programs stored in memory 42.

[0238] The network interface 43 can be used to establish a network connection between devices. For example, the network interface 43 can be used to establish a network connection with the electronic device 20 to obtain relevant data of the electronic device 20 from the electronic device 20, or directly collect relevant data of the vibration module 200 in the electronic device 20.

[0239] In the embodiment of the present application, the processor 41 in the server 40 loads the executable code corresponding to one or more computer programs into the memory 42 according to the following instructions, and the processor 41 executes the executable code to perform the following steps:

[0240] Obtaining a first power consumption factor set of a driving circuit of a vibration module in the electronic device and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0241] Calculating the total power consumption of the vibration module based on the first power consumption factor set and the second power consumption factor set using a pre-built power consumption model;

[0242] Output the total power consumption of the vibration module.

[0243] Optionally, in one embodiment, the pre-built power consumption model includes a first sub-power consumption model and a second sub-power consumption model. The processor 41 is configured to execute:

[0244] The calculating the total power consumption of the vibration module by using the pre-built power consumption model according to the first power consumption factor set and the second power consumption factor set includes:

[0245] Calculating the power consumption of the driving circuit using the first sub-power consumption model according to the first power consumption factor set;

[0246] Calculating the power consumption of the vibration motor using the second sub-power consumption model according to the second power consumption factor set;

[0247] The total power consumption of the vibration module is obtained by summing the power consumption of the driving circuit and the power consumption of the vibration motor.

[0248] Optionally, in one embodiment, the first sub-power consumption model includes: P1=(P out / η*(1-η)+P0)*t;

[0249] Wherein, P1 represents the total power consumption of the driving circuit, P out represents the output power of the driving circuit, η represents the conversion efficiency of the driving circuit, P0 represents the static power consumption of the driving circuit, and t represents the vibration duration of the vibration module.

[0250] Optionally, in one embodiment, the second sub-power consumption model includes: P2=(p*V 2 / R)*t;

[0251] Wherein, P2 represents the power consumption of the vibration motor, V represents the operating voltage of the vibration motor, R represents the operating impedance of the vibration motor, and t represents the vibration duration of the vibration module.

[0252] The power consumption model may include: P=P1+P2, where P1 and P2 are calculated using the first power consumption sub-model and the second power consumption sub-model respectively.

[0253] Optionally, in one embodiment, the processor 41 is further configured to:

[0254] Acquiring a vibration waveform of the vibration motor within the vibration duration;

[0255] obtaining a plurality of output voltages according to the vibration waveform;

[0256] An average value of the plurality of output voltages is calculated to obtain a working voltage of the vibration motor.

[0257] Optionally, in one embodiment, the processor 41 is further configured to:

[0258] Obtaining the motor impedance of the vibration motor;

[0259] Obtaining the circuit impedance of the vibration motor through a simulation experiment;

[0260] The sum of the motor impedance and the line impedance is calculated to obtain the operating impedance of the vibration motor.

[0261] Optionally, in one embodiment, the processor 41 is further configured to:

[0262] Outputting the total power consumption of the vibration module to a preset analysis server, wherein the analysis server is configured to perform big data analysis based on the total power consumption of the vibration module according to a preset analysis strategy to obtain an analysis result;

[0263] Receive the analysis result returned by the analysis server, and output the analysis result.

[0264] Optionally, in one embodiment, the processor 41 is further configured to:

[0265] After receiving the analysis result returned by the analysis server and outputting the analysis result, the vibration module is adjusted according to the analysis result so that the total power consumption of the vibration module is less than a preset value.

[0266] The analysis server may be another server independent of the server 40. Of course, the server 40 may also directly perform big data analysis on the total power consumption of the vibration module to obtain analysis results, and then determine an adjustment strategy for the vibration module 200 based on the analysis results. The analysis results and adjustment strategy are then sent to the electronic device 20, which then adjusts the vibration module 200. Of course, in other embodiments, the server 40 may also directly adjust the vibration module 200.

[0267] Optionally, in one embodiment, the processor 41 is further configured to:

[0268] Obtain historical data corresponding to the output power, conversion efficiency and static power consumption of the driving circuit;

[0269] Processing historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit using a first preset algorithm model to obtain first correction information;

[0270] collecting a current output power, a current conversion efficiency, and a current static power consumption of the driving circuit, and performing correction processing on the current output power, the current driving power, and the current static power consumption respectively according to the first correction information to obtain corrected first processed data;

[0271] A first power consumption factor set is generated according to the corrected first processed data.

[0272] Optionally, in one embodiment, the processor 41 is further configured to:

[0273] Obtain historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor;

[0274] Processing the operating voltage, operating impedance, and conversion coefficient of the vibration motor using a second preset algorithm model to obtain second correction information;

[0275] collecting a current operating voltage, a current operating impedance, and a current operating impedance of the vibration motor, and correcting the current operating voltage, the current operating impedance, and the current operating impedance according to the second correction information to obtain corrected second processed data;

[0276] A second power consumption factor set is generated according to the corrected second processed data.

[0277] Optionally, in one embodiment, the processor 41 is further configured to:

[0278] Sending the first power consumption factor set and the second power consumption factor set to a preset power consumption server, and instructing the power consumption server to input the first power consumption factor set and the second power consumption factor set into the power consumption model locally deployed on the preset power consumption server to obtain the total power consumption of the vibration module;

[0279] Receive the total power consumption of the vibration module returned by the power consumption server.

[0280] It should be noted that the process executed by the processor 41 in the server 40 provided in the embodiment of the present application belongs to the same concept as the power consumption detection method in the above embodiment. The specific implementation process is detailed in the above related embodiments and will not be repeated here.

[0281] The above describes in detail the power consumption detection method, device, storage medium, and electronic device provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the present application. At the same time, for those skilled in the art, based on the ideas of the present application, there may be changes in the specific implementation methods and scope of application. In summary, the contents of this specification should not be understood as limiting the present application.

Claims

1. A power consumption detection method, characterized in that: The method comprises: Obtaining a first power consumption factor set of a driving circuit of a vibration module in the electronic device and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes operating voltage, operating impedance, and conversion coefficient of the vibration motor; Calculating the total power consumption of the vibration module based on the first power consumption factor set and the second power consumption factor set using a pre-built power consumption model; Outputting the total power consumption of the vibration module; in, The power consumption model includes: P=P1+P2, P1=(P out / η*(1-η)+P0)*t,P2=(p*V 2 / R)*t; Wherein, P1 represents the total power consumption of the driving circuit, P2 represents the power consumption of the vibration motor, and P out represents the output power of the driving circuit, η represents the conversion efficiency of the driving circuit, P0 represents the static power consumption of the driving circuit, V represents the operating voltage of the vibration motor, R represents the operating impedance of the vibration motor, t represents the vibration duration of the vibration module, and p represents the conversion coefficient of the vibration motor.

2. The power consumption detection method according to claim 1, wherein: Obtaining the operating voltage of the vibration motor includes: Acquiring a vibration waveform of the vibration motor within the vibration duration; obtaining a plurality of output voltages according to the vibration waveform; An average value of the plurality of output voltages is calculated to obtain a working voltage of the vibration motor.

3. The power consumption detection method according to claim 1, wherein: Obtaining the operating impedance of the vibration motor includes: Obtaining the motor impedance of the vibration motor; Obtaining the circuit impedance of the vibration motor through a simulation experiment; The sum of the motor impedance and the line impedance is calculated to obtain the operating impedance of the vibration motor.

4. The power consumption detection method according to claim 1, wherein: The total power consumption of the output vibration module includes: The total power consumption of the vibration module is sent to a preset analysis server, and the analysis server is used to perform big data analysis based on the total power consumption of the vibration module according to a preset analysis strategy to obtain an analysis result; Receive the analysis result returned by the analysis server, and output the analysis result.

5. The power consumption detection method according to claim 4, wherein: After receiving the analysis result returned by the analysis server and outputting the analysis result, the method further includes: The vibration module is adjusted according to the analysis result so that the total power consumption of the vibration module is less than a preset value. The power consumption detection method according to claim 1 , wherein: Obtaining a first power consumption factor set of a driving circuit of a vibration module in an electronic device includes: Obtain historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit of the vibration module in the electronic device; Processing historical data corresponding to the output power, conversion efficiency, and static power consumption of the driving circuit using a first preset algorithm model to obtain first correction information; collecting a current output power, a current conversion efficiency, and a current static power consumption of the driving circuit, and performing correction processing on the current output power, the current driving power, and the current static power consumption respectively according to the first correction information to obtain corrected first processed data; A first power consumption factor set is generated according to the corrected first processed data.

7. The power consumption detection method according to claim 1, wherein: Obtaining a second power consumption factor set of a vibration motor of a vibration module in an electronic device includes: Obtain historical data corresponding to the operating voltage, operating impedance, and conversion coefficient of the vibration motor of the vibration module in the electronic device; Processing the operating voltage, operating impedance, and conversion coefficient of the vibration motor using a second preset algorithm model to obtain second correction information; collecting a current operating voltage, a current operating impedance, and a current operating impedance of the vibration motor, and correcting the current operating voltage, the current operating impedance, and the current operating impedance according to the second correction information to obtain corrected second processed data; A second power consumption factor set is generated according to the corrected second processed data.

8. The power consumption detection method according to any one of claims 1 to 7, characterized in that: The power consumption detection method is applied to an electronic device, wherein a vibration module of the electronic device includes a driving circuit and a vibration motor electrically connected to each other.

9. The power consumption detection method according to any one of claims 1 to 7, characterized in that: The power consumption detection method is applied to a preset power consumption server.

10. A power consumption detection device, characterized in that: The device comprises: an acquisition module, configured to acquire a first power consumption factor set of a driving circuit of a vibration module in an electronic device, and a second power consumption factor set of a vibration motor of the vibration module in the electronic device, wherein the first power consumption factor set includes the output power, conversion efficiency, and static power consumption of the driving circuit, and the second power consumption factor set includes the operating voltage, operating impedance, and conversion coefficient of the vibration motor; a detection module, configured to calculate the total power consumption of the vibration module according to the first power consumption factor set and the second power consumption factor set using a pre-built power consumption model; and A result output module, used to output the total power consumption of the vibration module; in, The power consumption model includes: P=P1+P2, P1=(P out / η*(1-η)+P0)*t,P2=(p*V 2 / R)*t; Wherein, P1 represents the total power consumption of the driving circuit, P2 represents the power consumption of the vibration motor, and P out represents the output power of the driving circuit, η represents the conversion efficiency of the driving circuit, P0 represents the static power consumption of the driving circuit, V represents the operating voltage of the vibration motor, R represents the operating impedance of the vibration motor, t represents the vibration duration of the vibration module, and p represents the conversion coefficient of the vibration motor.

11. A storage medium having a computer program stored thereon, characterized in that: When the computer program is loaded by a processor of an electronic device, the power consumption detection method according to any one of claims 1 to 9 is executed.

12. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, wherein: The processor executes the power consumption detection method according to any one of claims 1 to 7 by loading the computer program.

13. A server comprising a processor and a memory, wherein the memory stores a computer program, wherein: The processor executes the power consumption detection method according to any one of claims 1 to 7 by loading the computer program.

Citation Information

Patent Citations

  • Bang sungeun

    CN102891926A

  • Electronic device and sound control method

    CN110769104A