Power consumption detection method and device of electronic device, equipment and storage medium
By monitoring and analyzing multiple power consumption factor state parameters of electronic devices, combined with power consumption models, the source of power consumption anomalies can be accurately located and power consumption optimized. This solves the problem of difficulty in locating power consumption anomalies in existing technologies and achieves precise power consumption control and optimization of electronic devices.
Patent Information
- Application Number
- CN202511123101.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-11
- Publication Date
- 2025-11-28
Smart Images

Figure CN121027649A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electronics, and in particular to a power consumption detection method and device for electronic devices, an electronic device, a storage medium, and a computer program product. BACKGROUND
[0002] Currently, some electronic devices can obtain their own power consumption information through a preset interface, but these power consumption information can only reflect the overall energy consumption of the device, and cannot further distinguish the specific power consumption performance of different modules such as CPU, display screen, memory, and radio frequency. Therefore, when detecting abnormal overall power consumption, it is difficult to accurately locate which modules cause the abnormal power consumption, which also makes the power consumption optimization effect not ideal. SUMMARY
[0003] Embodiments of the present application aim to provide a power consumption detection method and device for electronic devices, an electronic device, a storage medium, and a computer program product.
[0004] The technical solution of the present application is implemented as follows:
[0005] In a first aspect, a power consumption detection method for an electronic device is provided, comprising:
[0006] obtaining state parameters of a plurality of power consumption factors of the electronic device to be detected;
[0007] determining a power consumption value of the electronic device based on the state parameters of the plurality of power consumption factors of the electronic device;
[0008] adjusting the state parameters of at least one first power consumption factor of the electronic device to optimize the power consumption value of the electronic device in the case of abnormal power consumption value of the electronic device.
[0009] In a second aspect, a power consumption detection device for an electronic device is provided, comprising:
[0010] an obtaining unit configured to obtain state parameters of a plurality of power consumption factors of the electronic device;
[0011] a first processing unit configured to determine a power consumption value of the electronic device based on the state parameters of the plurality of power consumption factors of the electronic device;
[0012] a second processing unit configured to adjust the state parameters of at least one first power consumption factor of the electronic device to optimize the power consumption value of the electronic device in the case of abnormal power consumption value of the electronic device.
[0013] In a third aspect, a power consumption detection device for an electronic device is provided, comprising a processor and a memory configured to store a computer program capable of running on the processor,
[0014] The processor is configured to execute the computer program to perform the steps of the foregoing method.
[0015] In a fourth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the foregoing method are implemented.
[0016] In a fifth aspect, a computer program product is provided, and the computer program product includes a computer program. When the computer program is executed by a processor, the steps of the foregoing method are implemented.
[0017] The embodiments of the present application provide a power consumption detection method, device, equipment, storage medium and computer program product of an electronic device. The method includes: obtaining state parameters of a plurality of power consumption factors of the electronic device to be detected; determining a power consumption value of the electronic device based on the state parameters of the plurality of power consumption factors of the electronic device; and in the case that the power consumption value of the electronic device is abnormal, adjusting the state parameters of at least one first power consumption factor of the electronic device to optimize the power consumption value of the electronic device. In this way, by monitoring the state parameters of each power consumption factor of the electronic device and combining the influence of each power consumption factor on the overall power consumption of the electronic device, the power consumption value of the electronic device is determined, so as to distinguish the power consumption performance of different devices or modules in the electronic device and accurately locate the source of power consumption abnormality. Furthermore, by adjusting the state parameters of the related power consumption factors in a targeted manner, accurate control of the power consumption of the electronic device is achieved, and the performance of the device, the endurance capability and the user experience are effectively balanced. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 FIG. 1 is a first flowchart of the power consumption detection method of the electronic device in the embodiments of the present application;
[0019] Figure 2 FIG. 2 is a second flowchart of the power consumption detection method of the electronic device in the embodiments of the present application;
[0020] Figure 3 FIG. 3 is a flowchart of the power consumption detection method of the radio frequency device in the embodiments of the present application;
[0021] Figure 4 FIG. 4 is a flowchart of the power consumption detection method of the baseband in the embodiments of the present application;
[0022] Figure 5 FIG. 5 is a flowchart of the power consumption detection method of the modem in the embodiments of the present application;
[0023] Figure 6 FIG. 6 is a structural diagram of the power consumption detection device of the electronic device in the embodiments of the present application;
[0024] Figure 7 FIG. 7 is a structural diagram of the power consumption detection equipment of the electronic device in the embodiments of the present application. Detailed Implementation
[0025] In order to gain a more detailed understanding of the features and technical content of the embodiments of this application, the implementation of the embodiments of this application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit the embodiments of this application.
[0026] Currently, some electronic devices can obtain their own power consumption information through preset interfaces, such as the Battery Manager interface for Android devices and the IOPMPowerSource interface for iOS devices. However, this power consumption information only reflects the overall energy consumption of the terminal and cannot further distinguish the specific power consumption performance of different electronic components such as the Central Processing Unit (CPU), display, memory, and radio frequency. Therefore, when an abnormal power consumption of the entire device is detected, it is difficult to accurately pinpoint which modules are causing the abnormal power consumption, which makes the effect of power optimization less than ideal.
[0027] Based on this, embodiments of this application provide a method, apparatus, device, storage medium, and computer program product for detecting the power consumption of electronic devices. By monitoring the state parameters of various power consumption factors of the electronic device and combining the impact of each power consumption factor on the overall power consumption of the electronic device, the power consumption value of the electronic device is determined, thereby distinguishing the power consumption performance of different devices or modules in the terminal and accurately locating the source of abnormal power consumption. Furthermore, by adjusting the state parameters of relevant power consumption factors in a targeted manner, precise control of the power consumption of the electronic device can be achieved, effectively balancing the terminal's performance, battery life, and user experience.
[0028] The power consumption detection methods provided in the embodiments of this application can be executed by the processor of an electronic device to detect the power consumption of specific devices or modules in the electronic device. The electronic device can be a terminal device such as a mobile phone, tablet computer, laptop computer, PDA, or wearable device, or a network device such as a server, relay station, access point, or router. The power consumption detection methods provided in the embodiments of this application can be executed by a terminal device or a network device, or they can be executed collaboratively by both.
[0029] Figure 1 This is a schematic diagram of the first process of the power consumption detection method in the embodiments of this application, such as... Figure 1 As shown, the method may specifically include steps S101 to S103:
[0030] Step S101: Obtain the state parameters of multiple power consumption factors of the electronic device under test;
[0031] The electronic device refers to one or more electronic devices in the electronic equipment to be detected for power consumption. The power consumption factor refers to part or all quantifiable factors that affect the overall power consumption performance of the electronic device. The state parameter refers to a specific value or identifier that describes the operating state of the power consumption factor at the current time or current period. In the embodiments of the present application, the power consumption value of the electronic device is determined by monitoring the state parameters of each power consumption factor of the electronic device and combining the influence of each power consumption factor on the overall power consumption of the electronic device.
[0032] In some embodiments, the electronic device includes a communication device; the power consumption factor of the communication device includes but is not limited to at least one of the following: uplink transmit power, uplink scheduling layer number, uplink transmission path number, uplink modulation and coding scheme (MCS), uplink resource block (RB), downlink scheduling layer number, downlink receiving path number, downlink modulation and coding scheme, downlink resource block, reference signal received power (RSRP). Wherein, in LTE / 5G, the resource block is commonly referred to as physical resource block (PRB), namely uplink physical resource block, referred to as Uplink PRB
[0033] Each power consumption factor has multiple state parameters, for example, the uplink transmit power can have multiple states of 10dB, 15dB, 20dB, 26dB, etc. For example, the uplink scheduling layer number can have multiple states of 1, 2, 3 or 4, etc. For example, the uplink transmission path number can have multiple states of 1, 2, 3 or 4, etc. For example, the uplink modulation and coding scheme (MCS) generally has an integer value range of 0-26, different MCSs correspond to different modulation modes and coding rates, in the LTE system, MCS 0 corresponds to QPSK (2-order modulation, coding rate 0.15), and MCS 26 corresponds to 64QAM (6-order modulation, coding rate 0.92). For example, in the LTE system, if the system bandwidth is 1.4MHz, the uplink RB number value range is 1-6. In the 5G network, the number of uplink RBs will be different according to different carrier bandwidths and configurations. For example, the value range of the reference signal received power is generally -44dBm to -140dBm, and the larger the value is, the stronger the signal is.
[0034] Exemplarily, the communication device can be a radio frequency, a baseband, a modem, etc. In an example, the radio frequency can be a power amplifier (PA). In another example, the radio frequency can also be a transceiver, a low noise amplifier (LNA), a filter, etc.
[0035] For example, when the electronic device is radio frequency (RF), the power consumption factor of RF includes, but is not limited to: uplink transmit power, number of uplink scheduling layers, uplink modulation and coding scheme, uplink resource block, number of downlink scheduling layers, downlink modulation and coding scheme, downlink resource block, and reference signal receive power.
[0036] For example, when the electronic device is a baseband, the power consumption factor of the baseband includes, but is not limited to: the number of uplink scheduling layers, the number of uplink transmit channels, the uplink modulation and coding scheme, the uplink resource block, the number of downlink scheduling layers, the number of downlink receive channels, the downlink modulation and coding scheme, the downlink resource block, and the reference signal received power.
[0037] For example, when the electronic device is a modem, the power consumption factors of the modem include, but are not limited to: uplink scheduling layer number, uplink modulation and coding scheme, uplink resource block, downlink scheduling layer number, downlink modulation and coding scheme, downlink resource block, and reference signal received power.
[0038] In other embodiments, the electronic device may also include integrated circuit chips in electronic devices, such as central processing unit (CPU), graphics processing unit (GPU), radio frequency integrated circuit (RFIC), and power management integrated circuit (PMIC).
[0039] In other embodiments, the electronic device may also include other devices in the electronic device, such as a display screen, camera, sensor, memory, etc.
[0040] By detecting the power consumption of various electronic components in electronic devices, we can maximize device battery life, reduce abnormal power consumption, extend component life, and improve user experience while ensuring device performance.
[0041] Step S102: Determine the power consumption value of the electronic device based on the state parameters of multiple power consumption factors of the electronic device;
[0042] This application embodiment monitors and analyzes the state parameters of multiple power consumption factors that affect the overall power consumption performance of electronic devices, determines the overall power consumption value of the electronic device, and thus realizes the detection and optimization adjustment of power consumption anomalies.
[0043] In some embodiments, step S102 may include: determining the power consumption values of multiple power consumption factors based on the state parameters of multiple power consumption factors of the electronic device; and determining the power consumption value of the electronic device based on the power consumption values of the multiple power consumption factors. Thus, firstly, the power consumption value corresponding to each power consumption factor in its current state is determined separately using the state parameters of each power consumption factor; secondly, the power consumption values of multiple power consumption factors are further integrated to obtain the overall power consumption value of the electronic device. This achieves hierarchical decomposition and merging of power consumption, which helps reduce the complexity of power consumption detection and improves power consumption detection efficiency.
[0044] In some embodiments, determining the power consumption values of multiple power consumption factors based on the state parameters of multiple power consumption factors of an electronic device may include: determining the power consumption value of each power consumption factor from a preset mapping relationship based on the state parameters of each power consumption factor; wherein the mapping relationship includes a mapping relationship between at least one state parameter and at least one power consumption value for each power consumption factor. Thus, by pre-establishing the mapping relationship between the state parameters and power consumption values of power consumption factors, the power consumption value of each power consumption factor in its current state can be quickly obtained without complex model reasoning, reducing computational complexity and resource consumption, improving real-time performance, and ensuring the consistency and repeatability of power consumption assessment.
[0045] For the electronic device under test, the power consumption factors that affect the power consumption of the electronic device are identified, and the number of power consumption factors is denoted as n. The power consumption value of each power consumption factor under all state parameters is measured. Thus, a mapping relationship between at least one state parameter and at least one power consumption value for each power consumption factor is constructed. After obtaining the current state parameter of each power consumption factor, the corresponding power consumption value can be queried from the mapping relationship table of state parameter-power consumption value.
[0046] The power consumption factors include F1, F2, ..., Fn, each with a different state sequence. For factor F1, the corresponding state parameters are S1_1, S1_2, ..., S1_m1, and the measured power consumption value for each state parameter is P{S1_1}, P{S1_2}, ..., P{S1_m1}. For factor Fn, the corresponding state parameters are Sn_1, Sn_2, ..., Sn_mn, and the measured power consumption value for each state parameter is P{Sn_1}, P{Sn_2}, ..., P{Sn_mn}. A mapping table between state parameters and power consumption values is established based on the power consumption values obtained above.
[0047] For example, the mapping table between state parameters and power consumption values may include:
[0048] F1: P{S1_1}, P{S1_2},…, P{S1_m1};
[0049] F2: P{S2_1}, P{S2_2},…, P{S2_m2};
[0050] …
[0051] Fn: P{Sn_1}, P{Sn_2},…, P{Sn_mn}.
[0052] By using the state parameter Si_j of the power consumption factor Fi to query the mapping table, the power consumption value of each power consumption factor in the current state can be quickly obtained.
[0053] In some embodiments, determining the power consumption values of multiple power consumption factors based on state parameters of multiple power consumption factors of an electronic device may include: inputting the state parameters of the multiple power consumption factors of the electronic device into one or more power consumption models to perform power consumption calculations, thereby determining the power consumption value of each power consumption factor. For example, a power consumption model determines a power consumption value based on the state parameters of one power consumption factor. For example, a power consumption model determines the power consumption values of multiple power consumption factors separately based on the state parameters of multiple power consumption factors.
[0054] In some embodiments, determining the power consumption of an electronic device based on the power consumption values of multiple power consumption factors may include: performing a weighted calculation on the power consumption values of multiple power consumption factors based on weighting coefficients to obtain the power consumption value of the electronic device. In this way, by quantifying the influence of each power consumption factor on the total power consumption through weighting coefficients, the influence of different power consumption factors on the total power consumption can be more reasonably reflected. A simple weighted summation of the power consumption values of each power consumption factor yields the overall power consumption value of the electronic device, making the final power consumption assessment of the electronic device closer to actual operating conditions, thereby providing a scientific basis for subsequent power consumption optimization.
[0055] For example, a power consumption model can be expressed as: Ptotal = K1P1 + K2P2 + ... + KmPm
[0056] Where K1 to Km are the weighting coefficients of m power consumption factors, P1 to Pm are the power consumption values of each power consumption factor, and Ptotal is the power consumption value of the electronic device. During the fitting calculation, the measured power consumption values of each power consumption factor from P1 to Pm, and Ptotal is the measured power consumption value of the electronic device, are used to determine K1 to Km through the fitting calculation.
[0057] For example, the weighting coefficients of multiple power consumption factors are determined by fitting a first dataset of the electronic device under various operating scenarios. The first dataset for each operating scenario includes at least one of the following: the measured power consumption value of each of the multiple power consumption factors; and the measured power consumption value of the electronic device. Thus, by determining the weighting coefficients through fitting calculations based on measured data from various usage scenarios, the weighting coefficients can be used without restrictions, making them applicable to power consumption detection in all usage scenarios. This provides strong adaptability and generalization ability, effectively improving the accuracy and stability of the power consumption model under different usage scenarios and enhancing system robustness.
[0058] The first dataset refers to the collection of data collected under various working scenarios. For example, a usage scenario can be represented by a state sequence of multiple power consumption factors. The state sequence refers to the combination of state parameters of multiple power consumption factors under the usage scenario.
[0059] In some embodiments, the method further includes: determining the measured power consumption value of the multiple power consumption factors and the measured power consumption value of the electronic device in each working scenario based on the state sequence of the multiple power consumption factors in each working scenario; constructing a fitting function for each working scenario using the measured power consumption value of the multiple power consumption factors and the measured power consumption value of the electronic device in each working scenario; and solving the fitting function to determine the weighting coefficients.
[0060] For example, the least squares method is used to fit the first dataset of electronic devices under various operating scenarios to determine the weighting coefficients K1 to Km of multiple power consumption factors.
[0061] For example, the weighting coefficients of multiple power consumption factors can be set to be equal, that is, the power consumption value of the electronic device as a whole is determined by summing the power consumption values of each power consumption factor.
[0062] In some embodiments, step S102 may include: the state parameters of multiple power consumption factors of the electronic device are input into the power consumption model of the electronic device to obtain the power consumption value of the electronic device; wherein, the power consumption mode of the electronic device is an artificial intelligence model trained on a second dataset under multiple working scenarios.
[0063] For example, the second dataset for each working scenario includes at least one of the following: state parameters of multiple power consumption factors; and measured power consumption values of electronic devices. Thus, by constructing an artificial intelligence model trained on multi-scenario data, this model can dynamically predict and intelligently analyze the overall power consumption of electronic devices based on the state parameters of multiple power consumption factors, thereby improving the accuracy of power consumption detection and the overall level of intelligence.
[0064] For example, the artificial intelligence model can be a traditional machine learning model or a deep learning model.
[0065] For example, an artificial intelligence model can be a large model or a lightweight model.
[0066] For example, when an electronic device is a terminal device, its power consumption detection task can be completed remotely by network equipment, by the terminal itself, or by other terminals.
[0067] Step S103: When the power consumption value of the electronic device is abnormal, adjust the state parameter of at least one first power consumption factor of the electronic device to optimize the power consumption value of the electronic device.
[0068] In some embodiments, when the power consumption of an electronic device exceeds a preset threshold, it is determined that the power consumption of the electronic device is abnormal, and the overall power consumption is reduced by adjusting the state parameter of the first power consumption factor.
[0069] For example, when the power consumption of an electronic device is abnormal, the first power consumption factor in the abnormal state is identified through the state parameters of multiple power consumption factors. By adjusting the state parameters of the first power consumption factor, the device performance, battery life and user experience can be balanced.
[0070] For example, the first power consumption factor can be the main power consumption factor causing the power consumption anomaly. For instance, an abnormally high uplink transmit power (the actual measured value is much greater than the minimum power required to maintain the link) causes a surge in power consumption of the radio frequency devices. A possible reason is a weak base station signal (low RSRP, such as <-110dBm), in which case the terminal passively increases its transmit power to maintain the connection. In this case, it can actively trigger neighbor cell measurement and handover to access a cell with a stronger signal, thereby reducing the transmit power.
[0071] For example, the first power consumption factor can also be a non-essential power consumption factor. The state changes of these power consumption factors will not have a significant impact on device performance and user experience. In this case, the overall power consumption of the electronic device can be optimized by changing the state parameters of these power consumption factors, thereby ensuring the device's battery life.
[0072] In some embodiments, the method further includes: determining at least one first power consumption factor based on state parameters of multiple power consumption factors. For example, when the power consumption factor includes uplink transmit power, if the state parameters of uplink transmit power indicate that excessive uplink transmit power is the main cause of abnormal power consumption, the transmit power can be appropriately reduced. For example, when the power consumption factor includes downlink scheduling layers, if excessive downlink scheduling layers lead to increased power consumption, the number of scheduling layers can be reduced to achieve the purpose of reducing power consumption.
[0073] In some embodiments, the method further includes: adjusting the weighting coefficient of at least one second power consumption factor of the electronic device to optimize the power consumption of the electronic device when the power consumption value of the electronic device is abnormal. Thus, when an abnormal power consumption of the electronic device is detected, optimization can be achieved not only by adjusting the state parameters of the power consumption factor, but also by adjusting the weighting coefficient of the power consumption factor to increase or decrease the power consumption tolerance of a specific factor, thereby maintaining device performance and user experience.
[0074] It should be noted that when abnormal power consumption of an electronic device is detected, if adjusting the state parameters of the power consumption factor fails to achieve the desired result, or affects device performance and user experience, the power consumption tolerance of a specific factor can be increased or decreased by adjusting the weighting coefficient of the power consumption factor, thereby optimizing the power consumption value of the electronic device. A larger weighting coefficient indicates a lower power consumption tolerance, while a smaller weighting coefficient indicates a higher power consumption tolerance.
[0075] For example, adjusting the weighting coefficient of at least one second power consumption factor of an electronic device may include: determining the current usage scenario of the electronic device based on the state parameters of multiple power consumption factors; determining a weighting coefficient adjustment strategy based on the current usage scenario of the electronic device; and adjusting the weighting coefficient of at least one second power consumption factor of the electronic device based on the weighting coefficient adjustment strategy.
[0076] For example, for radio frequency (RF) devices, let's assume uplink transmit power, RB (Radio Reduction Block), and MCS (Multi-Segment Control) have weights A, B, and C, respectively. In normal scenarios (good signal, RSRP ≥ -90dBm), power consumption is prioritized, and the transmit power weight A is set relatively high (e.g., A = 0.3, B = 0.2, C = 0.2). If the transmit power increases, it will significantly increase the power consumption of the RF devices, and the terminal will actively limit the transmit power to avoid excessive power consumption. In weak network scenarios (poor signal, RSRP ≤ -100dBm), service quality is prioritized, and the transmit power weight A is reduced (e.g., A = 0.1, while increasing the weights of RB and MCS, as they directly affect service quality). In this case, the impact of increased transmit power on the power consumption of the RF devices becomes smaller (tolerance increases), and the terminal allows a temporary increase in transmit power to ensure signal and service quality.
[0077] By employing the above technical solution, the power consumption value of electronic devices is determined by monitoring the state parameters of various power consumption factors and considering the impact of each power consumption factor on the overall power consumption of the electronic devices. This allows for the differentiation of power consumption performance among different devices or modules within the electronic equipment, accurately pinpointing the source of power consumption anomalies. Furthermore, by selectively adjusting the state parameters of relevant power consumption factors, precise control of electronic device power consumption can be achieved, effectively balancing device performance, battery life, and user experience.
[0078] Based on the above embodiments of this application, the power consumption detection method provided in the embodiments of this application will be further illustrated with examples, such as... Figure 2 As shown, the method specifically includes steps S201 to S204:
[0079] Step S201: Obtain the state parameters of multiple power consumption factors of the electronic device under test;
[0080] Step S202: Based on the state parameters of each power consumption factor, determine the power consumption value of each power consumption factor from the preset mapping relationship;
[0081] For example, regarding the power consumption of electronic devices, the power consumption factors that affect their power consumption are decomposed, and the number of factors is denoted as n. The power consumption value of each power consumption factor under all factor states is then measured through the actual measurements.
[0082] The power consumption factors include F1, F2, ..., Fn, each with a different state sequence. For factor F1, the corresponding state parameters are S1_1, S1_2, ..., S1_m1, and the measured power consumption value for each state parameter is P{S1_1}, P{S1_2}, ..., P{S1_m1}. For factor Fn, the corresponding state parameters are Sn_1, Sn_2, ..., Sn_mn, and the measured power consumption value for each state parameter is P{Sn_1}, P{Sn_2}, ..., P{Sn_mn}. A mapping table between state parameters and power consumption values is established based on the power consumption values obtained above.
[0083] Step S203: Based on the weighting coefficients of multiple power consumption factors, perform a weighted calculation on the power consumption values of multiple power consumption factors to determine the power consumption value of the electronic device;
[0084] For example, by using scenario traversal testing and fitting calculation, the weighting coefficients K1, K2, ..., Kn of each power consumption factor in calculating the total power consumption of the electronic device are trained. For instance, in a scenario, the state parameters of each power consumption factor, the measured power consumption value of each factor, and the measured total power consumption of the electronic device are obtained; the weighting coefficients can be determined using a fitting algorithm (least squares method); the weighting coefficients are updated when the power consumption factors of the electronic device change.
[0085] Step S204: When the power consumption value of the electronic device is abnormal, adjust the state parameter of at least one first power consumption factor of the electronic device to optimize the power consumption value of the electronic device.
[0086] For example, at time t, the current state parameters of n power consumption factors of the terminal are obtained in real time, the current power consumption value of each power consumption factor is obtained by looking up a table, and the cumulative power consumption value of all power consumption factors is obtained by weighted calculation.
[0087] If the current states of n power consumption factors are denoted as S1[t], S2[t], ..., Sn[t], and the power consumption values of each factor are P{S1[t]}, P{S2[t]}, ..., P{Sn[t]} by looking up a table, then the cumulative power consumption value P is:
[0088] P=K1*P{S1[t]}+K2*P{S2[t]}+…+Kn*P{Sn[t]}
[0089] For example, suppose a terminal registers in a standalone (SA) network and performs uplink and downlink data services. Taking radio frequency (RF) devices as an example, such as... Figure 3 As shown, the power consumption detection method for the power consumption value of radio frequency devices may specifically include steps S301 to S303:
[0090] Step S301: Obtain the state parameters S1-S8 of multiple power consumption factors F1-F8 of the RF device;
[0091] For example, the power consumption factor and state parameters of the current radio frequency device of the terminal include, but are not limited to, the following:
[0092] Uplink transmit power: 10
[0093] Uplink scheduling layer: 1
[0094] Uplink MCS: 20
[0095] Upward RB: 12
[0096] Downlink scheduling layers: 2
[0097] Downlink MCS: 27
[0098] Downlink RB: 16
[0099] RSRP: -90dBm
[0100] Step S302: Based on the state parameters of each power consumption factor of the RF device, determine the power consumption value of each power consumption factor by looking up the table: P1, P2, ..., P8;
[0101] Step S303: The power consumption values of multiple power consumption factors of the RF device are input into the power consumption model of the RF device for power consumption calculation to obtain the power consumption value of the RF device.
[0102] For example, the power consumption model of a radio frequency device can be expressed as: P_RF=K1*P1+K2*P2+…+K8*P8.
[0103] This application embodiment uses the state parameters of the power consumption factor of the radio frequency device and the power consumption model of the radio frequency device to monitor the power consumption trend of the radio frequency device in real time, identify the power consumption anomalies of the radio frequency device, and thus achieve end-to-end communication network optimization, accurately locate the power consumption pain points of the terminal and adjust the network strategy in a timely manner, thereby reducing power consumption and improving the user experience.
[0104] In some embodiments, the abnormal state of the power consumption factor of the RF device when the power consumption of the RF device is abnormal can be diagnosed in real time, so as to assist in adjusting the terminal RF control strategy.
[0105] In some embodiments, the weighting coefficients of the power consumption factors of the radio frequency (RF) devices can be adjusted to change the weighting coefficients of each power consumption factor. This allows for increasing or decreasing the power consumption tolerance of specific RF factors for particular scenarios, thereby maintaining a stable user experience. For example, in weak network scenarios, to ensure network quality, the weight of transmit power can be reduced to increase the power consumption tolerance of transmit power.
[0106] For example, suppose a terminal registers in a standalone (SA) network and performs uplink and downlink data services. Taking the baseband as an example, the electronic device...Figure 4 As shown, the power consumption detection method for the baseband power consumption value may specifically include steps S401 to S403:
[0107] Step S401: Obtain the state parameters S1-S9 of multiple power consumption factors F1-F9 of the baseband;
[0108] For example, the power consumption factor and state parameters of the terminal's current baseband include, but are not limited to, the following:
[0109] Uplink scheduling layer: 1
[0110] Uplink transmission path count: 1
[0111] Uplink MCS: 20
[0112] Upward RB: 12
[0113] Downlink scheduling layers: 2
[0114] Downlink receiver count: 2
[0115] Downlink MCS: 27
[0116] Downlink RB: 16
[0117] RSRP: -90dBm
[0118] Step S402: Based on the state parameters of each power consumption factor of the baseband, determine the power consumption value of each power consumption factor by looking up the table: P1, P2, ..., P9;
[0119] Step S403: The power consumption values of multiple power consumption factors of the baseband are input into the power consumption model of the baseband for power consumption calculation to obtain the power consumption value of the baseband.
[0120] For example, the power consumption model of the baseband can be expressed as: P_Transceiver=K1*P1+K2*P2+…+K9*P9.
[0121] This application embodiment can monitor the power consumption trend of the baseband in real time and identify power consumption anomalies by using the state parameters of the baseband power consumption factor and the power consumption model of the baseband. This enables end-to-end communication network optimization, accurately locates the power consumption pain points of the terminal, and adjusts the network strategy in a timely manner to reduce power consumption and improve the user experience.
[0122] In some embodiments, the abnormal state of the power consumption factor of the baseband when the baseband power consumption is abnormal can be diagnosed in real time, so as to assist in adjusting the terminal baseband control strategy.
[0123] In some embodiments, the weighting coefficient of the power consumption factor of the baseband can be adjusted to adjust the weighting coefficient of each power consumption factor. For special scenarios, the power consumption tolerance of specific radio frequency factors can be increased or decreased to maintain a stable user experience. For example, in weak network scenarios, in order to ensure network quality, the weight of the downlink receiving path can be reduced to increase the power consumption tolerance of the downlink receiving path.
[0124] For example, suppose a terminal registers in a standalone (SA) network and performs uplink and downlink data services. The electronic device used is a modem, such as... Figure 5 As shown, the power consumption detection method for the modem's power consumption value can specifically include steps S501 to S503:
[0125] Step S501: Obtain the state parameters S1-S7 of multiple power consumption factors F1-F7 of the modem;
[0126] For example, the power consumption factor and state parameters of the terminal's current modem include, but are not limited to, the following:
[0127] Uplink scheduling layer: 1
[0128] Uplink MCS: 20
[0129] Upward RB: 12
[0130] Downlink scheduling layers: 2
[0131] Downlink MCS: 27
[0132] Downlink RB: 16
[0133] RSRP: -90dBm
[0134] Step S402: Based on the state parameters of each power consumption factor of the modem, determine the power consumption value of each power consumption factor by looking up a table: P1, P2, ..., P7;
[0135] Step S403: The power consumption values of multiple power consumption factors of the modem are input into the power consumption model of the modem for power consumption calculation to obtain the power consumption value of the modem;
[0136] For example, the power consumption model of a modem can be expressed as: P_modem=K1*P1+K2*P2+…+K7*P7.
[0137] This application embodiment can monitor the power consumption trend of the modem in real time and identify power consumption anomalies by using the state parameters of the modem power consumption factor and the modem power consumption model. This enables end-to-end communication network optimization, accurately locates terminal power consumption pain points and adjusts network strategies in a timely manner, thereby reducing power consumption and improving user experience.
[0138] In some embodiments, the abnormal state of the baseband power factor when the modem power consumption is abnormal can be diagnosed in real time, which can be used to assist in adjusting the terminal modem control strategy.
[0139] In some embodiments, the power consumption factor weighting coefficient of the modem can be adjusted to adjust the weighting coefficient of each power consumption factor. For special scenarios, the power consumption tolerance of specific radio frequency factors can be increased or decreased to maintain a stable user experience. For example, in high throughput scenarios, the weight of MCS can be reduced to increase the power consumption tolerance of MCS.
[0140] To implement the method of the embodiments of this application, based on the same inventive concept, the embodiments of this application also provide a power consumption detection device for electronic devices, such as... Figure 6 As shown, the power consumption detection device 60 of the electronic device includes:
[0141] Acquisition unit 601 is used to acquire the state parameters of multiple power consumption factors of electronic devices;
[0142] The first processing unit 602 is used to determine the power consumption value of the electronic device based on the state parameters of multiple power consumption factors of the electronic device.
[0143] The second processing unit 603 is used to adjust the state parameters of at least one first power consumption factor of the electronic device in order to optimize the power consumption of the electronic device when the power consumption value of the electronic device is abnormal.
[0144] This power consumption detection device monitors the state parameters of various power consumption factors of electronic devices and, combined with the impact of each power consumption factor on the overall power consumption of the electronic devices, determines the power consumption value of the electronic devices. This allows for differentiation of the power consumption performance of different devices or modules within the terminal, accurately pinpointing the source of abnormal power consumption. Furthermore, by adjusting the state parameters of relevant power consumption factors in a targeted manner, precise control of the power consumption of electronic devices can be achieved, effectively balancing the terminal's performance, battery life, and user experience.
[0145] In some embodiments, the first processing unit 602 is configured to determine the power consumption values of multiple power consumption factors based on the state parameters of multiple power consumption factors of the electronic device; and to determine the power consumption value of the electronic device based on the power consumption values of the multiple power consumption factors. Thus, firstly, the power consumption value corresponding to each power consumption factor in its current state is determined separately through the state parameters of each power consumption factor; secondly, the power consumption values of multiple power consumption factors are further integrated to obtain the overall power consumption value of the electronic device. This achieves hierarchical decomposition and merging of power consumption, which helps to reduce the complexity of power consumption detection and improve power consumption detection efficiency.
[0146] In some embodiments, the first processing unit 602 is configured to determine the power consumption value of each power consumption factor from a preset mapping relationship based on the state parameters of each power consumption factor; wherein the mapping relationship includes a mapping relationship between at least one state parameter and at least one power consumption value for each power consumption factor. Thus, by pre-establishing the mapping relationship between the state parameters and power consumption values of power consumption factors, the power consumption value of each power consumption factor in its current state can be quickly obtained without complex model reasoning, reducing computational complexity and resource consumption, improving real-time performance, and ensuring the consistency and repeatability of power consumption assessment.
[0147] In some embodiments, the first processing unit 602 is used to perform a weighted calculation on the power consumption values of multiple power consumption factors based on weighting coefficients to obtain the power consumption value of the electronic device. Thus, by quantifying the influence of each power consumption factor on the total power consumption through weighting coefficients, the influence of different power consumption factors on the total power consumption can be more reasonably reflected. The overall power consumption value of the electronic device is obtained by simply weighting and summing the power consumption values of each power consumption factor, making the final power consumption assessment of the electronic device closer to actual operating conditions, thereby providing a scientific basis for subsequent power consumption optimization.
[0148] In some embodiments, the weighting coefficients of the multiple power consumption factors are determined by fitting a first dataset of electronic devices under multiple operating scenarios;
[0149] The first dataset for each work scenario includes at least one of the following:
[0150] The measured power consumption value of each of the multiple power consumption factors;
[0151] The measured power consumption of electronic devices.
[0152] In some embodiments, the second processing unit 603 is further configured to adjust the weighting coefficient of at least one second power consumption factor of the electronic device to optimize the power consumption value of the electronic device when the power consumption value of the electronic device is abnormal. Thus, when an abnormal power consumption of the electronic device is detected, optimization can be achieved not only by adjusting the state parameters of the power consumption factor, but also by adjusting the weighting coefficient of the power consumption factor to increase or decrease the power consumption tolerance of a specific factor, thereby maintaining device performance and user experience.
[0153] In some embodiments, the second processing unit 603 is further configured to determine the current usage scenario of the electronic device based on the state parameters of multiple power consumption factors; determine a weighting coefficient adjustment strategy based on the current usage scenario of the electronic device; and adjust the weighting coefficient of at least one second power consumption factor of the electronic device based on the weighting coefficient adjustment strategy.
[0154] In some embodiments, the first processing unit 602 inputs state parameters of multiple power consumption factors of the electronic device into the power consumption model of the electronic device to obtain the power consumption value of the electronic device; wherein, the power consumption mode of the electronic device is an artificial intelligence model trained on a second dataset under multiple working scenarios.
[0155] For example, the second dataset for each working scenario includes at least one of the following: state parameters of multiple power consumption factors; and measured power consumption values of electronic devices. Thus, by constructing an artificial intelligence model trained on multi-scenario data, this model can dynamically predict and intelligently analyze the overall power consumption of electronic devices based on the state parameters of multiple power consumption factors, thereby improving the accuracy of power consumption detection and the overall level of intelligence.
[0156] In some embodiments, the electronic device includes a communication device; the power consumption factor of the communication device includes at least one of the following: uplink transmit power, number of uplink scheduling layers, number of uplink transmit paths, uplink modulation and coding scheme, uplink resource block, number of downlink scheduling layers, number of downlink receive paths, downlink modulation and coding scheme, downlink resource block, and reference signal receive power.
[0157] For example, communication devices can be radio frequency, baseband, modem, etc.
[0158] For example, when the electronic device is radio frequency (RF), the power consumption factor of RF includes, but is not limited to: uplink transmit power, number of uplink scheduling layers, uplink modulation and coding scheme, uplink resource block, number of downlink scheduling layers, downlink modulation and coding scheme, downlink resource block, and reference signal receive power.
[0159] For example, when the electronic device is a baseband, the power consumption factor of the baseband includes, but is not limited to: the number of uplink scheduling layers, the number of uplink transmit channels, the uplink modulation and coding scheme, the uplink resource block, the number of downlink scheduling layers, the number of downlink receive channels, the downlink modulation and coding scheme, the downlink resource block, and the reference signal received power.
[0160] For example, when the electronic device is a modem, the power consumption factors of the modem include, but are not limited to: uplink scheduling layer number, uplink modulation and coding scheme, uplink resource block, downlink scheduling layer number, downlink modulation and coding scheme, downlink resource block, and reference signal received power.
[0161] In practical applications, the aforementioned device can be an electronic device or a chip used in an electronic device. In this application, the device can implement the functions of multiple units through software, hardware, or a combination of both, enabling the device to execute the power consumption detection method provided in any of the above embodiments. Furthermore, the technical effects of each technical solution of this device can be referenced to the corresponding technical effects in the power consumption detection method, and will not be elaborated upon further in this application.
[0162] Based on the hardware implementation of each unit in the aforementioned power consumption detection device, this application embodiment also provides a power consumption detection device for electronic devices, such as... Figure 7 As shown, the power consumption detection device 70 of the electronic device includes: a processor 701 and a memory 702 configured to store a computer program capable of running on the processor;
[0163] The processor 701 is configured to execute the method steps in the foregoing embodiments when running a computer program.
[0164] Of course, in practical applications, such as Figure 7 As shown, the various components in the power consumption detection device 70 of this electronic device are coupled together via a bus system 703. It can be understood that the bus system 703 is used to achieve communication between these components. In addition to a data bus, the bus system 703 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 703 in the figure.
[0165] In practical applications, the aforementioned processor can be at least one of the following: Application-Specific Integrated Circuit (ASIC), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), controller, microcontroller, and microprocessor. It is understood that, for different devices, the electronic devices used to implement the functions of the aforementioned processor can also be other types, and the embodiments of this application do not specifically limit them.
[0166] The aforementioned memory can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provides instructions and data to the processor.
[0167] Alternatively, the memory can be a separate device independent of the processor, or it can be integrated into the processor.
[0168] Optionally, the power consumption detection device can be a chip, which may also include an input interface. The processor can control this input interface to communicate with other devices or chips; specifically, it can acquire information or data sent by other devices or chips.
[0169] Optionally, the chip may also include an output interface. The processor can control this output interface to communicate with other devices or chips; specifically, it can output information or data to other devices or chips.
[0170] In an exemplary embodiment, this application also provides a computer-readable storage medium, such as a memory including a computer program, which can be executed by a processor to perform the steps of the aforementioned method.
[0171] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in any one of the embodiments of this application.
[0172] Optionally, the computer program product can be applied to the electronic device in the embodiments of this application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0173] This application also provides a computer program.
[0174] Optionally, the computer program can be applied to the electronic device in the embodiments of this application. When the computer program is run on a computer, it causes the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0175] It should be understood that in the embodiments of this application, data such as user information is involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0176] It should be understood that the terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items. The expressions “having,” “may have,” “comprising,” and “including,” or “may include” and “may contain” used herein may be used to indicate the presence of a corresponding feature (e.g., an element such as a number, function, operation, or component), but do not exclude the presence of additional features.
[0177] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of this invention, first information may also be referred to as second information, and similarly, second information may also be referred to as first information.
[0178] The technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.
[0179] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatus, and devices can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical, or other forms.
[0180] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0181] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0182] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for detecting the power consumption of an electronic device, characterized in that, The method includes: Obtain the state parameters of multiple power consumption factors of the electronic device under test; The power consumption value of the electronic device is determined based on the state parameters of multiple power consumption factors of the electronic device. In the event of an abnormal power consumption value of the electronic device, the state parameters of at least one first power consumption factor of the electronic device are adjusted to optimize the power consumption value of the electronic device.
2. The method according to claim 1, characterized in that, The determination of the power consumption value of the electronic device based on the state parameters of multiple power consumption factors of the electronic device includes: Based on the state parameters of multiple power consumption factors of the electronic device, the power consumption values of the multiple power consumption factors are determined. The power consumption value of the electronic device is determined based on the power consumption values of the plurality of power consumption factors.
3. The method according to claim 2, characterized in that, The determination of the power consumption value of the multiple power consumption factors based on the state parameters of the multiple power consumption factors of the electronic device includes: Based on the state parameters of each power consumption factor, the power consumption value of each power consumption factor is determined from the preset mapping relationship; The mapping relationship includes a mapping relationship between at least one state parameter and at least one power consumption value for each power consumption factor.
4. The method according to claim 2, characterized in that, Determining the power consumption value of the electronic device based on the power consumption values of the plurality of power consumption factors includes: Based on the weighting coefficients of the multiple power consumption factors, the power consumption values of the multiple power consumption factors are weighted and calculated to obtain the power consumption value of the electronic device.
5. The method according to claim 4, characterized in that, The weighting coefficients of the multiple power consumption factors are determined by fitting a first dataset of the electronic device under various operating scenarios; The first dataset for each work scenario includes at least one of the following: The measured power consumption value of each of the plurality of power consumption factors; The measured power consumption value of the electronic device.
6. The method according to claim 4, characterized in that, The method further includes: In the event of an abnormal power consumption value of the electronic device, the weighting coefficient of at least one second power consumption factor of the electronic device is adjusted to optimize the power consumption value of the electronic device.
7. The method according to claim 6, characterized in that, The adjustment of the weighting coefficient of at least one second power consumption factor of the electronic device includes: Based on the state parameters of the multiple power consumption factors, the current usage scenario of the electronic device is determined; Based on the current usage scenario of the electronic device, a weighting coefficient adjustment strategy is determined; Based on the weighting coefficient adjustment strategy, the weighting coefficient of at least one second power consumption factor of the electronic device is adjusted.
8. The method according to claim 1, characterized in that, The determination of the power consumption value of the electronic device based on the state parameters of multiple power consumption factors of the electronic device includes: The state parameters of multiple power consumption factors of the electronic device are input into the power consumption model of the electronic device to obtain the power consumption value of the electronic device. The power consumption mode of the electronic device is an artificial intelligence model trained on a second dataset under multiple working scenarios.
9. The method according to any one of claims 1-8, characterized in that, The electronic devices include communication devices; The power consumption factor of the communication device includes at least one of the following: uplink transmit power, number of uplink scheduling layers, number of uplink transmit paths, uplink modulation and coding scheme, uplink resource block, number of downlink scheduling layers, number of downlink receive paths, downlink modulation and coding scheme, downlink resource block, and reference signal receive power.
10. A power consumption detection device for an electronic device, characterized in that, The device includes: The acquisition unit is used to acquire the state parameters of multiple power consumption factors of the electronic device; The first processing unit is used to determine the power consumption value of the electronic device based on the state parameters of multiple power consumption factors of the electronic device. The second processing unit is configured to adjust the state parameters of at least one first power consumption factor of the electronic device in order to optimize the power consumption of the electronic device when the power consumption value of the electronic device is abnormal.
11. A power consumption detection device for an electronic device, characterized in that, The device includes: a processor and a memory configured to store computer programs capable of running on the processor. Wherein, when the processor is configured to run the computer program, it performs the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.