CN114167132A - Power consumption detection method and device of wireless terminal, electronic equipment and storage medium - Google Patents

Power consumption detection method and device of wireless terminal, electronic equipment and storage medium Download PDF

Info

Publication number
CN114167132A
CN114167132A CN202210123335.7A CN202210123335A CN114167132A CN 114167132 A CN114167132 A CN 114167132A CN 202210123335 A CN202210123335 A CN 202210123335A CN 114167132 A CN114167132 A CN 114167132A
Authority
CN
China
Prior art keywords
test
wireless terminal
power consumption
task
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210123335.7A
Other languages
Chinese (zh)
Other versions
CN114167132B (en
Inventor
孙海生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weizhun Beijing Electronic Technology Co ltd
Original Assignee
Weizhun Beijing Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weizhun Beijing Electronic Technology Co ltd filed Critical Weizhun Beijing Electronic Technology Co ltd
Priority to CN202210123335.7A priority Critical patent/CN114167132B/en
Publication of CN114167132A publication Critical patent/CN114167132A/en
Application granted granted Critical
Publication of CN114167132B publication Critical patent/CN114167132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Abstract

The disclosure provides a power consumption detection method and device of a wireless terminal, electronic equipment and a storage medium. The method comprises the following steps: generating a test instruction according to a preset test task by acquiring the preset test task, and sending the test instruction to a wireless terminal to be tested through a test signal; analyzing the test instruction to obtain a configuration parameter, determining a test mode according to identification information in the configuration parameter, and generating a test condition matched with the test mode according to the test mode and the configuration parameter; starting a test task of the wireless terminal under the test condition so as to control the test equipment to collect voltage data of the wireless terminal according to the test condition by using the test task; and detecting the power consumption of the wireless terminal in the continuous time according to the voltage data acquired in the continuous time. The method and the device can realize flexible adjustment of the test mode and the test state, increase the flexibility of power consumption detection and improve the accuracy of detection results.

Description

Power consumption detection method and device of wireless terminal, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of power consumption detection technologies, and in particular, to a power consumption detection method and apparatus for a wireless terminal, an electronic device, and a storage medium.
Background
With the development of wireless communication technology and wireless terminals, the functions of wireless terminal equipment are increasingly powerful, richer business services can be provided for users, and personalized services are also recognized by users. In the research and development of the wireless terminal, the power consumption of the wireless terminal is one of the important indexes for measuring the performance of the wireless terminal, so how to accurately and efficiently test the power consumption of the wireless terminal is of great significance to the research and development of the wireless terminal and the improvement of products.
In the prior art, when power consumption of a wireless terminal (for example, a mobile terminal) is detected, a comprehensive tester is usually used for testing, and current of the wireless terminal in a standby state is detected by simulating an external network environment. However, the conventional detection method can only detect a single scene and state, for example, only detect a wireless terminal in a standby state. However, the operation mode and the test state of the wireless terminal are very complicated, and the power consumption of the wireless terminal changes in real time under the mutual influence of different operation modes and test states. Therefore, the existing power consumption detection mode in a single state is difficult to accurately evaluate the power consumption of the wireless terminal in different modes and states, so that the existing power consumption detection mode has the problems of single detection result, incapability of embodying dynamic change of power consumption, incapability of flexibly adjusting the test mode and the test state, poor accuracy of the detection result and the like.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a power consumption detection method and apparatus for a wireless terminal, an electronic device, and a storage medium, so as to solve the problems in the prior art that a detection result is single, dynamic change of power consumption cannot be reflected, a test mode and a test state cannot be flexibly adjusted, and accuracy of the detection result is poor.
In a first aspect of the embodiments of the present disclosure, a method for detecting power consumption of a wireless terminal is provided, including: acquiring a preset test task, generating a test instruction according to the test task, and sending the test instruction to a wireless terminal to be tested through a test signal; analyzing the test instruction to obtain a configuration parameter, determining a test mode according to identification information in the configuration parameter, wherein the configuration parameter comprises identification information corresponding to one or more test modes, and generating a test condition matched with the test mode according to the test mode and the configuration parameter; starting a test task of the wireless terminal under the test condition so as to control the test equipment to collect voltage data of the wireless terminal according to the test condition by using the test task; and detecting the power consumption of the wireless terminal in the continuous time according to the voltage data acquired in the continuous time.
In a second aspect of the embodiments of the present disclosure, there is provided a power consumption detection apparatus for a wireless terminal, including: the acquisition module is configured to acquire a preset test task, generate a test instruction according to the test task, and send the test instruction to a wireless terminal to be tested through a test signal; the analysis module is configured to analyze the test instruction to obtain a configuration parameter, determine a test mode according to identification information in the configuration parameter, wherein the configuration parameter comprises identification information corresponding to one or more test modes, and generate a test condition matched with the test mode according to the test mode and the configuration parameter; the wireless terminal comprises an acquisition module, a test module and a test module, wherein the acquisition module is configured to start a test task for the wireless terminal under a test condition so as to control the test equipment to acquire voltage data of the wireless terminal according to the test condition by using the test task; and the testing module is configured to detect the power consumption of the wireless terminal in continuous time according to the voltage data acquired in the continuous time.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method when executing the program.
In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor, implements the steps of the above-mentioned method.
The embodiment of the present disclosure adopts at least one technical scheme that can achieve the following beneficial effects:
generating a test instruction according to a preset test task by acquiring the preset test task, and sending the test instruction to a wireless terminal to be tested through a test signal; analyzing the test instruction to obtain a configuration parameter, determining a test mode according to identification information in the configuration parameter, wherein the configuration parameter comprises identification information corresponding to one or more test modes, and generating a test condition matched with the test mode according to the test mode and the configuration parameter; starting a test task of the wireless terminal under the test condition so as to control the test equipment to collect voltage data of the wireless terminal according to the test condition by using the test task; and detecting the power consumption of the wireless terminal in the continuous time according to the voltage data acquired in the continuous time. The test mode and the test condition of the wireless terminal can be generated based on the test task individuation, so that the wireless terminal can carry out power consumption detection under different test conditions, the flexibility of power consumption detection is improved, the power consumption condition corresponding to the wireless terminal at each moment can be generated, a user can observe the power consumption change in the whole detection process conveniently, and the accuracy of a power consumption detection result is improved.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
FIG. 1 is a schematic diagram of the overall architecture of a system involved in an actual application scenario in accordance with an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a power consumption detection method of a wireless terminal according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a power consumption detection apparatus of a wireless terminal according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
As described above, with the development of wireless communication technology and wireless terminals, the functions of wireless terminal devices are increasingly powerful, and more abundant service services can be provided for users, and personalized services are also recognized by users. In the research and development of the wireless terminal, the power consumption of the wireless terminal is one of the important indexes for measuring the performance of the wireless terminal, so how to accurately and efficiently test the power consumption of the wireless terminal is of great significance to the research and development of the wireless terminal and the improvement of products. The following describes in detail an existing power consumption detection method and existing problems by taking a mobile terminal in a wireless terminal device as an example, and specifically includes the following contents:
with the expansion of mobile terminal services, hardware and software functions of a mobile terminal become more and more abundant, for example, with the development of 5G communication technology, the performance of a wireless communication module of the mobile terminal becomes more powerful, and in addition, with the innovation of application services, more and more application programs are installed on the mobile terminal. Therefore, how to detect the power consumption of the mobile terminal under different hardware and software conditions is a challenge for the prior art, so that the test conditions can be flexibly changed, and the power consumption condition of the mobile terminal can be detected in an all-around manner through the test results under different test conditions.
The conventional power consumption detection mode for the mobile terminal can only detect the mobile terminal in a single mode or state, but cannot adjust the test mode and state individually and flexibly, so that the power consumption detection is performed based on different test conditions. For example, in a prior art, when detecting power consumption of an application installed in a mobile terminal, the corresponding application needs to be installed in the mobile terminal, and a comprehensive tester is used to detect a current of the mobile terminal in a standby state for a period of time, so as to determine the power consumption of the application; in another prior art, when the standby power of the mobile terminal under different network conditions needs to be detected, an integrated tester needs to be used to simulate the corresponding network conditions and detect the current of the mobile terminal in the standby state, or the mobile terminal is placed in a shielding space of a network signal to detect the current of the mobile terminal in the standby state.
As can be seen from the above prior art, the conventional power consumption detection method of the mobile terminal is to test the current of the mobile terminal in a single mode or state (e.g., a standby state), so as to obtain a current test result. However, this method cannot detect power consumption under complex conditions, for example, when the mobile terminal is affected by different operating modes and test states, the power consumption of the mobile terminal cannot be accurately detected, and the power consumption of the mobile terminal cannot be evaluated. Therefore, the existing current testing method based on the single mode cannot detect the power consumption condition of the mobile terminal in an all-round manner, the detection result is single, and the actual power consumption condition of the mobile terminal cannot be accurately measured by the detection result, so that the accuracy of the detection result is poor.
In view of the above problems in the prior art, it is desirable to provide a test mode and a test condition capable of generating a wireless terminal based on a test task in a personalized manner, so that the wireless terminal can perform power consumption detection under different test conditions, and can automatically generate a power consumption condition corresponding to each moment in the detection process, thereby not only increasing the flexibility of power consumption detection, but also facilitating the observation of power consumption change in the whole detection process by a user, and improving the accuracy and the practicability of a power consumption detection result.
The overall architecture of the system according to the embodiment of the present disclosure is described below with reference to the accompanying drawings, and fig. 1 is a schematic diagram of the overall architecture of the system according to the embodiment of the present disclosure in an actual application scenario. As shown in fig. 1, the overall architecture of the system involved in the power consumption detection of the wireless terminal may specifically include:
the overall system architecture according to the embodiment of the present disclosure mainly includes a wireless terminal 101, an integrated tester 102, a test resistor 103, and a voltage data collector 104, where the wireless terminal 101 may include a mobile terminal, and the mobile terminal includes but is not limited to: the mobile terminal or the computer terminal supports touch screen operation, such as a smart phone, a tablet computer and a notebook computer. The integrated tester 102 has the simulation function of the 5G base station, and the wireless terminal 101 can be connected with the integrated tester 102 through a radio frequency cable. The test resistor 103 is disposed on a test circuit of the wireless terminal 101, and the voltage data collector 104 can collect a voltage value of the test resistor 103. In practical application, the above system overall architecture may further include an upper computer controller 105, where the upper computer controller 105 is connected to the comprehensive tester 102 through a network cable, and the comprehensive tester 102 is controlled by the network cable, or may be connected to the comprehensive tester 102 through a GPIB control line, so as to control the comprehensive tester 102.
It should be noted that, the following embodiments of the present disclosure take a mobile terminal (for example, a mobile phone) as an example, and details a power consumption detection process of the mobile terminal in different test modes and test states, however, a detected device of the embodiments of the present disclosure is not limited to the mobile terminal, nor to the power consumption detection of the mobile terminal in a certain specific mode, that is, the embodiments of the present disclosure may detect power consumption of the mobile terminal in multiple modes and states, and the following application scenarios of the embodiments of the present disclosure do not constitute a limitation to the technical solution of the present disclosure.
Fig. 2 is a flowchart illustrating a power consumption detection method of a wireless terminal according to an embodiment of the present disclosure. The power consumption detection method of the wireless terminal of fig. 2 may be performed by the integrated tester, the upper computer controller, or a separate computer device. As shown in fig. 2, the method for detecting power consumption of a wireless terminal may specifically include:
s201, acquiring a preset test task, generating a test instruction according to the test task, and sending the test instruction to a wireless terminal to be tested through a test signal;
s202, analyzing the test instruction to obtain a configuration parameter, determining a test mode according to identification information in the configuration parameter, wherein the configuration parameter comprises identification information corresponding to one or more test modes, and generating a test condition matched with the test mode according to the test mode and the configuration parameter;
s203, starting a test task of the wireless terminal under the test condition so as to control the test equipment to collect voltage data of the wireless terminal according to the test condition by using the test task;
and S204, detecting the power consumption of the wireless terminal in the continuous time according to the voltage data acquired in the continuous time.
Specifically, the test signal in the embodiment of the present disclosure may be a wireless signal or a circuit signal, where the test signal carries a test instruction, the test instruction includes a configuration parameter set by a user, and the configuration parameter is used to generate an individualized test condition, so as to meet different detection requirements of the user. The test conditions include condition parameters related to the test, such as the standby power consumption of which application is detected, the brightness of the mobile phone screen, the detection duration, and whether a test network exists. Therefore, different testing environments can be generated by the combination of different testing conditions, and the power consumption of the mobile terminal under different using conditions can be found by detecting the power consumption of the mobile terminal under different testing conditions, so that the detection result is more practical.
Further, the embodiment of the disclosure detects the voltage value of the test resistor connected in series with the mobile terminal under the test condition, so as to determine the power consumption of the mobile terminal based on the voltage data in the continuous time. However, it can be understood that, in addition to collecting the voltage data, the current data in the multimeter can be directly collected, and the power consumption of the mobile terminal in the test mode can be determined based on the current data and the detection time. Therefore, whether the actually acquired data is voltage data or current data does not limit the technical scheme of the disclosure.
According to the technical scheme provided by the embodiment of the disclosure, a preset test task is obtained, a test instruction is generated according to the test task, the test instruction is sent to a wireless terminal to be tested through a test signal to analyze the test instruction to obtain a configuration parameter, a test mode is determined according to identification information in the configuration parameter, the configuration parameter comprises identification information corresponding to one or more test modes, and test conditions matched with the test mode are generated according to the test mode and the configuration parameter; starting a test task of the wireless terminal under the test condition so as to control the test equipment to collect voltage data of the wireless terminal according to the test condition by using the test task; and detecting the power consumption of the wireless terminal in the continuous time according to the voltage data acquired in the continuous time. The test mode and the test condition of the wireless terminal can be generated based on the test task individuation, so that the wireless terminal can carry out power consumption detection under different test conditions, the flexibility of power consumption detection is improved, the power consumption condition corresponding to the wireless terminal at each moment can be generated, a user can observe the power consumption change in the whole detection process conveniently, and the accuracy of a power consumption detection result is improved.
In some embodiments, before obtaining the preset test task, the method further comprises: and acquiring configuration parameters set by a user, and generating a test task according to the configuration parameters, wherein the configuration parameters are used for configuring the test mode so as to generate the user-defined test mode.
Specifically, the different test modes correspond to different configuration parameters, where the configuration parameters may be considered as related parameters for configuring the mobile terminal and the integrated tester, and the parameters of the mobile terminal and the integrated tester may be reset to parameters meeting the test conditions by using the configuration parameters. Therefore, it can also be understood that a test environment matching with the test condition is established by using the configuration parameters, so that the power consumption detection is performed under a specific test environment.
In some embodiments, the wireless terminal is set in a pre-established testing environment, and sends the testing instruction to the wireless terminal to be tested through the testing signal, including: simulating a test network by using an integrated tester in a test environment, and sending test instructions to a wireless terminal to be tested, wherein each test instruction corresponds to at least one test mode; wherein, still contain test resistance, voltage data collection station, universal meter, host computer controller and VGA display in the test environment, test resistance sets up on wireless terminal's test circuit, and test resistance is used for detecting wireless terminal's voltage value.
Specifically, the integrated tester is used for simulating a test network, and sending a test instruction carrying configuration parameters to a wireless terminal (such as a mobile terminal) to be tested, so that the wireless terminal determines a test mode according to the configuration parameters in the test instruction; for example, when the test instruction includes parameters related to the operation of the application program, the wireless terminal determines that the test mode is the operation test mode, and determines the application program to be operated based on the parameters in the test instruction.
In some embodiments, analyzing the test instruction to obtain a configuration parameter, and determining a test mode according to identification information in the configuration parameter includes: performing analysis operation on the test instruction to obtain configuration parameters contained in the test instruction, acquiring identification information corresponding to one or more test modes in the configuration parameters, and judging the execution priority of the test modes according to the positions or character strings of the identification information so as to perform power consumption detection on the wireless terminal according to the execution priority in the test process; the test modes comprise a running test mode, a standby test mode, a bright screen test mode and a simulation operation mode.
Specifically, different configuration parameters correspond to different test modes, so that before formal detection, the test mode targeted by the current detection needs to be determined according to the test instruction, so as to further generate the test condition. In practical application, the configuration parameters carried in the test instruction are obtained by analyzing the test instruction, and the test mode set by the user is determined according to the identification information related to the test mode in the configuration parameters.
Furthermore, the configuration parameters may include identification information corresponding to one or more test modes, and different test modes correspond to different identification information, so that when the configuration parameters include identification information corresponding to multiple test modes, which test mode is preferentially executed needs to be determined according to the position or character string of the identification information in the configuration parameters, so as to perform different types of power consumption monitoring on the mobile terminal according to the execution sequence of the test modes; for example, when the configuration parameters include the operation test mode and the bright screen test mode, the determination needs to be performed according to the character string used for indicating the priority in the identification information, and the test mode or the bright screen test mode is preferentially executed. Of course, in practical applications, when there is no conflict between two or more test patterns, the detection may be performed simultaneously.
Further, when the configuration parameters include identification information related to the application program, the test mode can be judged to be power consumption detection of the application program installed in the mobile terminal, namely, the operation test mode is started; when the configuration parameters further include identification information of screen brightness, judging that power consumption detection needs to be carried out on the application program under the set screen brightness; and when the configuration parameters further comprise identification information of the simulation operation, judging that the application program in the mobile terminal is operated according to the set simulation operation mode under the set screen brightness, thereby detecting the power consumption of the application program of the mobile terminal under the condition of the simulation operation.
In some embodiments, generating test conditions matching the test pattern based on the test pattern and the configuration parameters includes: in the operation test mode, the test conditions generated according to the configuration parameters comprise an application program as a tested object, the operation time and related parameters of a test network; in the standby test mode, the test conditions generated according to the configuration parameters comprise a standby state, standby time and relevant parameters of a test network; in the bright screen test mode, generating test conditions according to the configuration parameters, wherein the test conditions comprise screen brightness, bright screen time and relevant parameters of a test network; in the simulation operation mode, the test conditions generated according to the configuration parameters comprise operation objects, operation events, operation time and relevant parameters of the test network corresponding to the simulation operation; the relevant parameters of the test network comprise parameters when the simulation test network is started, parameters when the simulation test network is closed and parameters when no network test is carried out.
Specifically, the test conditions corresponding to different test modes are different, and thus the test environments are necessarily different. For example, taking the operation test mode as an example, the operation test mode of the embodiment of the present disclosure refers to detecting power consumption of an application installed in the mobile terminal during operation, and therefore, the test condition to be generated should include the application as the object to be tested, the operation time (i.e., the detection time), and relevant parameters of the test network (such as whether to turn on the test network, network signal power, frequency band, and the like). The runtime indicates the running time of the application under the above test conditions. Based on the test conditions, the mobile terminal and/or the comprehensive tester are initialized, so that the mobile terminal and/or the comprehensive tester meet the requirements of the test conditions.
In some embodiments, starting a test task for the wireless terminal under the test condition, so as to control the test equipment to collect voltage data of the wireless terminal according to the test condition by using the test task, includes: starting corresponding hardware in the wireless terminal according to various parameters in the test conditions, determining an application program installed in the wireless terminal to be operated, and generating a test task corresponding to the test mode based on the hardware to be started and the application program; and sending an acquisition instruction to the voltage data acquisition unit by using the test task so as to control the voltage data acquisition unit to acquire voltage data of the test resistor connected in series on the wireless terminal according to the time specified in the test condition.
Specifically, according to the content in the test condition, hardware in the mobile terminal that needs to be enabled is determined or an application program installed in the mobile terminal is operated, that is, a corresponding test task is generated according to the test condition, and the test task includes the detection duration. And in a certain detection duration, acquiring the data of the test resistor by using a voltage data acquisition unit, namely acquiring the power consumption of the mobile terminal under the test condition within a certain time.
In some embodiments, detecting power consumption of the wireless terminal in a continuous time according to voltage data collected in the continuous time includes: collecting a voltage value corresponding to each moment of the wireless terminal in the time specified by the test condition, and storing the voltage values of continuous moments; after voltage data acquisition is completed, calculating the average current of the wireless terminal in the continuous time according to all stored voltage values corresponding to the continuous time, calculating the electric quantity loss of the wireless terminal in the continuous time according to the average current and time, and taking the electric quantity loss as a detection result of the corresponding power consumption of the wireless terminal in the test mode.
Specifically, the time specified by the test condition is a detection time period (also referred to as a detection time), during which the voltage data collector detects a voltage value generated by the mobile terminal at each time (for example, every second), and stores the voltage value at each time during the detection time for subsequent power consumption calculation.
Further, after obtaining all the voltage value data, calculating a current value corresponding to each time according to a calculation formula I = U/R between the voltage and the current, and calculating an average current of the mobile terminal in the detection time by using an average value algorithm according to the current values corresponding to all the times. Based on the average current and the detection time, the power consumption of the wireless terminal in the detection time can be further calculated.
Further, in practical application, the average power corresponding to each test mode can be obtained based on the average current in different test modes, so that the standby time of the mobile terminal device is estimated according to the battery capacity, and when the warning time is reached, the alarm information is sent.
Further, the obtained average current may be compared with a current threshold, whether the mobile terminal normally operates in the test mode is determined according to the comparison result, and if the mobile terminal is in an abnormal operation state, an alarm message may be sent to the mobile terminal.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 3 is a schematic structural diagram of a power consumption detection apparatus of a wireless terminal according to an embodiment of the present disclosure. As shown in fig. 3, the power consumption detection apparatus of the wireless terminal includes:
the acquisition module 301 is configured to acquire a preset test task, generate a test instruction according to the test task, and send the test instruction to a wireless terminal to be tested through a test signal;
the analysis module 302 is configured to analyze the test instruction to obtain a configuration parameter, determine a test mode according to identification information in the configuration parameter, where the configuration parameter includes identification information corresponding to one or more test modes, and generate a test condition matched with the test mode according to the test mode and the configuration parameter;
the acquisition module 303 is configured to start a test task for the wireless terminal under the test condition, so that the test task is used to control the test equipment to acquire voltage data of the wireless terminal according to the test condition;
and the detection module 304 is configured to detect the power consumption of the wireless terminal in the continuous time according to the voltage data collected in the continuous time.
In some embodiments, before acquiring a preset test task, the acquiring module 301 in fig. 3 acquires a configuration parameter set by a user, and generates the test task according to the configuration parameter, where the configuration parameter is used to configure a test mode to generate a user-defined test mode.
In some embodiments, the wireless terminal is set in a pre-established testing environment, and the obtaining module 301 in fig. 3 simulates a testing network by using an integrated tester in the testing environment and sends testing instructions to the wireless terminal to be tested, where each testing instruction corresponds to at least one testing mode; wherein, still contain test resistance, voltage data collection station, universal meter, host computer controller and VGA display in the test environment, test resistance sets up on wireless terminal's test circuit, and test resistance is used for detecting wireless terminal's voltage value.
In some embodiments, the parsing module 302 in fig. 3 performs parsing operation on the test instruction to obtain configuration parameters included in the test instruction, obtains identification information corresponding to one or more test modes in the configuration parameters, and determines an execution priority of the test mode according to a position or a character string of the identification information, so as to perform power consumption detection on the wireless terminal according to the execution priority in the test process; the test modes comprise a running test mode, a standby test mode, a bright screen test mode and a simulation operation mode.
In some embodiments, the parsing module 302 of fig. 3, in the running test mode, generates test conditions according to the configuration parameters, including an application program as a tested object, a running time, and related parameters of a test network; in the standby test mode, the test conditions generated according to the configuration parameters comprise a standby state, standby time and relevant parameters of a test network; in the bright screen test mode, generating test conditions according to the configuration parameters, wherein the test conditions comprise screen brightness, bright screen time and relevant parameters of a test network; in the simulation operation mode, the test conditions generated according to the configuration parameters comprise operation objects, operation events, operation time and relevant parameters of the test network corresponding to the simulation operation; the relevant parameters of the test network comprise parameters when the simulation test network is started, parameters when the simulation test network is closed and parameters when no network test is carried out.
In some embodiments, the acquisition module 303 in fig. 3 enables corresponding hardware in the wireless terminal according to each parameter in the test condition, determines an application program installed in the wireless terminal to be operated, and generates a test task corresponding to the test mode based on the hardware to be enabled and the application program; and sending an acquisition instruction to the voltage data acquisition unit by using the test task so as to control the voltage data acquisition unit to acquire voltage data of the test resistor connected in series on the wireless terminal according to the time specified in the test condition.
In some embodiments, the detection module 304 in fig. 3 collects the voltage value corresponding to each time in the time of the wireless terminal within the time specified by the test condition, and stores the voltage values at consecutive times; after voltage data acquisition is completed, calculating the average current of the wireless terminal in the continuous time according to all stored voltage values corresponding to the continuous time, calculating the electric quantity loss of the wireless terminal in the continuous time according to the average current and time, and taking the electric quantity loss as a detection result of the corresponding power consumption of the wireless terminal in the test mode.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
Fig. 4 is a schematic structural diagram of the electronic device 4 provided in the embodiment of the present disclosure. As shown in fig. 4, the electronic apparatus 4 of this embodiment includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401. The steps in the various method embodiments described above are implemented when the processor 401 executes the computer program 403. Alternatively, the processor 401 implements the functions of the respective modules/units in the above-described respective apparatus embodiments when executing the computer program 403.
Illustratively, the computer program 403 may be partitioned into one or more modules/units, which are stored in the memory 402 and executed by the processor 401 to accomplish the present disclosure. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 403 in the electronic device 4.
The electronic device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that fig. 4 is merely an example of the electronic device 4, and does not constitute a limitation of the electronic device 4, and may include more or less components than those shown, or combine certain components, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or a memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 4. Further, the memory 402 may also include both internal storage units of the electronic device 4 and external storage devices. The memory 402 is used for storing computer programs and other programs and data required by the electronic device. The memory 402 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a division of modules or units, a division of logical functions only, an additional division may be made in actual implementation, multiple units or components may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (10)

1. A method for detecting power consumption of a wireless terminal, comprising:
acquiring a preset test task, generating a test instruction according to the test task, and sending the test instruction to a wireless terminal to be tested through a test signal;
analyzing the test instruction to obtain a configuration parameter, determining a test mode according to identification information in the configuration parameter, wherein the configuration parameter comprises identification information corresponding to one or more test modes, and generating a test condition matched with the test mode according to the test mode and the configuration parameter;
starting a test task of the wireless terminal under the test condition so as to control test equipment to collect voltage data of the wireless terminal according to the test condition by using the test task;
and detecting the power consumption of the wireless terminal in the continuous time according to the voltage data acquired in the continuous time.
2. The method of claim 1, wherein prior to said obtaining a predetermined test task, said method further comprises:
and acquiring configuration parameters set by a user, and generating the test task according to the configuration parameters, wherein the configuration parameters are used for configuring the test mode so as to generate a user-defined test mode.
3. The method of claim 1, wherein the wireless terminal is set in a pre-established testing environment, and the sending the testing instruction to the wireless terminal to be tested through the testing signal comprises:
simulating a test network by using the comprehensive tester in the test environment, and sending the test instructions to the wireless terminals to be tested, wherein each test instruction corresponds to at least one test mode;
the testing environment further comprises a testing resistor, a voltage data collector, a universal meter, an upper computer controller and a VGA displayer, the testing resistor is arranged on a testing circuit of the wireless terminal, and the testing resistor is used for detecting a voltage value of the wireless terminal.
4. The method of claim 1, wherein the parsing the test instruction to obtain a configuration parameter and determining a test mode according to identification information in the configuration parameter comprises:
performing analysis operation on the test instruction to obtain configuration parameters contained in the test instruction, acquiring identification information corresponding to one or more test modes in the configuration parameters, and judging the execution priority of the test modes according to the positions or character strings of the identification information so as to perform power consumption detection on the wireless terminal according to the execution priority in the test process;
the test modes comprise a running test mode, a standby test mode, a bright screen test mode and a simulation operation mode.
5. The method of claim 4, wherein generating the test condition matching the test pattern based on the test pattern and the configuration parameters comprises:
in the running test mode, the test conditions generated according to the configuration parameters comprise an application program as a tested object, running time and related parameters of a test network;
in the standby test mode, the test conditions generated according to the configuration parameters comprise a standby state, standby time and relevant parameters of a test network;
under the bright screen test mode, generating test conditions according to the configuration parameters, wherein the test conditions comprise screen brightness, bright screen time and relevant parameters of a test network;
under the simulation operation mode, the test conditions generated according to the configuration parameters comprise operation objects, operation events, operation time and relevant parameters of a test network corresponding to simulation operation;
the relevant parameters of the test network comprise parameters when the simulation test network is started, parameters when the simulation test network is closed and parameters when no network test is carried out.
6. The method of claim 1, wherein the initiating a test task for the wireless terminal under the test condition to control a test device to collect voltage data of the wireless terminal according to the test condition by using the test task comprises:
enabling corresponding hardware in the wireless terminal according to various parameters in the test conditions, determining an application program installed in the wireless terminal to be operated, and generating a test task corresponding to the test mode based on the hardware to be enabled and the application program;
and sending an acquisition instruction to a voltage data acquisition unit by using the test task so as to control the voltage data acquisition unit to acquire voltage data of the test resistor connected in series on the wireless terminal according to the time specified in the test condition.
7. The method of claim 6, wherein the detecting the power consumption of the wireless terminal in the continuous time according to the voltage data collected in the continuous time comprises:
collecting a voltage value corresponding to each moment of the wireless terminal in the time specified by the test condition, and storing the voltage values at continuous moments;
after the voltage data acquisition is completed, calculating the average current of the wireless terminal in the continuous time according to all stored voltage values corresponding to the continuous time, calculating the power consumption of the wireless terminal in the continuous time according to the average current and the time, and taking the power consumption as the detection result of the corresponding power consumption of the wireless terminal in the test mode.
8. A power consumption detection apparatus of a wireless terminal, comprising:
the system comprises an acquisition module, a test module and a test module, wherein the acquisition module is configured to acquire a preset test task, generate a test instruction according to the test task and send the test instruction to a wireless terminal to be tested through a test signal;
the analysis module is configured to analyze the test instruction to obtain a configuration parameter, determine a test mode according to identification information in the configuration parameter, wherein the configuration parameter comprises identification information corresponding to one or more test modes, and generate a test condition matched with the test mode according to the test mode and the configuration parameter;
the acquisition module is configured to start a test task for the wireless terminal under the test condition so as to control the test equipment to acquire the voltage data of the wireless terminal according to the test condition by using the test task;
the detection module is configured to detect the power consumption of the wireless terminal in a continuous time according to the voltage data collected in the continuous time.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210123335.7A 2022-02-10 2022-02-10 Power consumption detection method and device of wireless terminal, electronic equipment and storage medium Active CN114167132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210123335.7A CN114167132B (en) 2022-02-10 2022-02-10 Power consumption detection method and device of wireless terminal, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210123335.7A CN114167132B (en) 2022-02-10 2022-02-10 Power consumption detection method and device of wireless terminal, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114167132A true CN114167132A (en) 2022-03-11
CN114167132B CN114167132B (en) 2022-04-29

Family

ID=80489574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210123335.7A Active CN114167132B (en) 2022-02-10 2022-02-10 Power consumption detection method and device of wireless terminal, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114167132B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115347650A (en) * 2022-10-18 2022-11-15 为准(北京)电子科技有限公司 Power supply method, device, equipment and medium based on voltage adjustment of detection equipment
CN115792364A (en) * 2023-02-07 2023-03-14 南京美斯玛微电子技术有限公司 Power consumption calculation method based on standby state analysis

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399864A (en) * 2007-09-29 2009-04-01 中兴通讯股份有限公司 Test system and method for standby current of mobile terminal
CN106802845A (en) * 2017-01-09 2017-06-06 惠州Tcl移动通信有限公司 A kind of power consumption test method and system based on mobile terminal
CN108235357A (en) * 2018-01-02 2018-06-29 深圳市闻耀电子科技有限公司 Mobile telephone power consumption test method and relevant apparatus
CN108761187A (en) * 2018-06-06 2018-11-06 Oppo(重庆)智能科技有限公司 A kind of substrate current test method, system and terminal device
US20180368072A1 (en) * 2017-06-19 2018-12-20 T-Mobile Usa, Inc. Systems and methods for testing power consumption of electronic devices
CN110545147A (en) * 2019-09-10 2019-12-06 广东小天才科技有限公司 non-signaling coupling test method and system
CN111459794A (en) * 2020-02-25 2020-07-28 西安广和通无线软件有限公司 Communication network testing method, device, computer equipment and storage medium
CN113495817A (en) * 2020-03-19 2021-10-12 腾讯科技(成都)有限公司 Power consumption testing method and device, server and storage medium
CN113933581A (en) * 2021-12-17 2022-01-14 荣耀终端有限公司 Power consumption testing method of mobile equipment and mobile equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399864A (en) * 2007-09-29 2009-04-01 中兴通讯股份有限公司 Test system and method for standby current of mobile terminal
CN106802845A (en) * 2017-01-09 2017-06-06 惠州Tcl移动通信有限公司 A kind of power consumption test method and system based on mobile terminal
US20180368072A1 (en) * 2017-06-19 2018-12-20 T-Mobile Usa, Inc. Systems and methods for testing power consumption of electronic devices
CN108235357A (en) * 2018-01-02 2018-06-29 深圳市闻耀电子科技有限公司 Mobile telephone power consumption test method and relevant apparatus
CN108761187A (en) * 2018-06-06 2018-11-06 Oppo(重庆)智能科技有限公司 A kind of substrate current test method, system and terminal device
CN110545147A (en) * 2019-09-10 2019-12-06 广东小天才科技有限公司 non-signaling coupling test method and system
CN111459794A (en) * 2020-02-25 2020-07-28 西安广和通无线软件有限公司 Communication network testing method, device, computer equipment and storage medium
CN113495817A (en) * 2020-03-19 2021-10-12 腾讯科技(成都)有限公司 Power consumption testing method and device, server and storage medium
CN113933581A (en) * 2021-12-17 2022-01-14 荣耀终端有限公司 Power consumption testing method of mobile equipment and mobile equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115347650A (en) * 2022-10-18 2022-11-15 为准(北京)电子科技有限公司 Power supply method, device, equipment and medium based on voltage adjustment of detection equipment
CN115347650B (en) * 2022-10-18 2022-12-13 为准(北京)电子科技有限公司 Power supply method, device, equipment and medium based on voltage adjustment of detection equipment
CN115792364A (en) * 2023-02-07 2023-03-14 南京美斯玛微电子技术有限公司 Power consumption calculation method based on standby state analysis

Also Published As

Publication number Publication date
CN114167132B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN114167132B (en) Power consumption detection method and device of wireless terminal, electronic equipment and storage medium
CN106407059A (en) Server node testing system and method
CN104811524B (en) A kind of terminal radio frequency performance test methods and its device
CN105120483B (en) Automatic testing method and system for compatibility of smart card and mobile terminal
CN106405294B (en) Portable power distribution product transmission calibrator and implementation test method thereof
CN107064682A (en) Assembly detection apparatus
CN108072858B (en) Electric energy meter quality management method and system and terminal equipment
CN112148559A (en) Mobile APP power consumption test method, device and system, acquisition end and test end
CN111521867A (en) System and method for collecting load data
CN101277504A (en) Method, system and apparatus for testing wireless performance
CN107977318A (en) A kind of energy consumption and performance test methods of Android application programs
EP4180827A1 (en) Method for detecting storage battery of vehicle and battery detection device
CN113225760A (en) Network testing method and equipment
CN116794407A (en) Electromagnetic compatibility testing method, system, electronic equipment and storage medium
CN109586788B (en) Monitoring system fault diagnosis method and device, computer equipment and storage medium
CN108009068B (en) Information recording method, information recording device and intelligent terminal
CN104569840A (en) Aging detection method and device for individual battery
CN114168432B (en) Application program power consumption detection method and device, electronic equipment and storage medium
CN104375027A (en) Method and device for testing low-power consumption electronic device and low-power consumption POS terminal
CN210181590U (en) MCU parameter testing system
CN109375055B (en) Detection method, system and device of phasor measurement system and storage medium
CN111596645B (en) Data processing method, device and computer readable storage medium
CN113504498B (en) Performance detection method and system of partial discharge intelligent sensing terminal
CN117856940A (en) Interference test method, device, computer equipment and storage medium
CN109101380B (en) Method and equipment for detecting I2C signal quality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant