Terminal power consumption testing system, method and electronic equipment
Through the terminal power consumption test system, script servers, base station simulators and data service simulators are used to realize automated testing of terminal power consumption, which solves the problem of low terminal power consumption testing efficiency in the 5G network environment and improves test accuracy and coverage. .
Patent Information
- Application Number
- CN202010936294.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-09-08
AI Technical Summary
In the 5G network environment, terminal power consumption testing efficiency is low, existing testing methods require manual intervention, cover a small business test range, and the power consumption testing model is complex and the adjustment accuracy is insufficient.
Design a terminal power consumption test system, including a script server, a base station simulator and a data service simulator. The base station simulator controls the actual transmit power of the terminal to the desired power value, and sends simulated data services through the data service simulator. The script server Control the current meter to count the actual power consumption of the terminal in different data service scenarios to achieve automated testing.
It improves the efficiency and accuracy of terminal power consumption testing, simplifies the testing process, expands the scope of business testing, and reduces system time and performance overhead.
Smart Images

Figure CN114158083B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a terminal power consumption testing system, method and electronic equipment. Background Art
[0002] In the fifth generation mobile networks (5G) environment, terminals have stronger mobility, lower latency, wider coverage, stronger data processing capabilities (rates up to Gbps), and higher screen resolution, which leads to more stringent challenges to the power consumption of terminals. Therefore, the power consumption test of terminals in different scenarios has important practical significance. However, the current power consumption test of terminals requires manual intervention, which cannot be automated, has low test efficiency, and covers a small range of business tests. In addition, the existing power consumption test model is too complex and the adjustment accuracy is insufficient. Summary of the invention
[0003] The embodiments of the present application provide a terminal power consumption testing system, method and electronic device to solve the problem of low efficiency of existing terminal power consumption testing.
[0004] The present application provides a terminal power consumption testing system, including:
[0005] A script server, a base station simulator, a data service simulator and an ammeter; wherein,
[0006] The script server controls the actual transmission power of the terminal to the expected power value through the base station simulator;
[0007] The data service simulator sends at least one simulated designated data service to the terminal reaching the expected power value through the base station simulator;
[0008] The script server controls the ammeter to count actual power consumption of the terminal in each designated data service scenario of the at least one designated data service.
[0009] Optionally, the script server controls the actual transmission power of the terminal to an expected power value through the base station simulator, including:
[0010] The script server obtains the actual transmission power of the terminal;
[0011] When the script server determines that the actual transmit power of the terminal does not reach the expected power value, sending a physical downlink control channel PDCCH carrying a transmission power control TPC command word to the terminal through the base station simulator, so that the terminal adjusts the actual transmit power of the terminal based on the TPC command word;
[0012] The script server receives a media access control control element MAC CE reported by the terminal through the base station simulator, wherein the MAC CE carries a power headroom report PHR corresponding to the adjusted actual transmit power;
[0013] The script server calculates the adjusted actual transmit power of the terminal based on the PHR, and repeats the above steps when the adjusted actual transmit power does not reach the expected power value until the actual transmit power reaches the expected power value.
[0014] Optionally, the script server acquires the actual transmit power of the terminal, including:
[0015] Sending a radio resource control RRC reconfiguration message to the terminal through the base station simulator, wherein the RRC reconfiguration message carries information instructing the terminal to periodically report a PHR;
[0016] The script server receives the MACCE carrying the PHR sent by the terminal through the system simulator, and calculates the actual transmission power of the terminal based on the PHR.
[0017] Optionally, the script server calculates the adjusted actual transmit power of the terminal based on the PHR, including:
[0018] The script server calculates the adjusted actual transmit power of the terminal based on the PHR by the following formula:
[0019] P UE =P CMAX,f,c -P PH ;
[0020] Among them, P UE represents the actual transmission power after adjustment of the terminal, P CMAX,f,c Indicates that based on the PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
[0021] Optionally, the script server controls the ammeter to count actual power consumption of the terminal in each designated data service scenario in the at least one designated data service, including:
[0022] For each of the designated data services, the script server sends a power consumption statistics instruction to the current meter, so that the current meter counts the actual power consumption of the terminal in the scenario of the designated data service;
[0023] The script server controls the statistical duration corresponding to the designated data service, and sends a power consumption statistics end instruction to the ammeter after the statistical duration is reached, so that the ammeter ends counting the actual power consumption of the terminal in the scenario of the designated data service.
[0024] The present application provides a method for testing power consumption of a terminal, including:
[0025] The script server controls the actual transmission power of the terminal to the expected power value, and the data service simulator sends at least one simulated designated data service to the terminal that reaches the expected power value;
[0026] The script server controls statistics on actual power consumption of the terminal in each designated data service scenario in the at least one designated data service.
[0027] Optionally, the script server controls the actual transmission power of the terminal to an expected power value, including:
[0028] Acquire the actual transmit power of the terminal;
[0029] When the actual transmit power does not reach the expected power value, sending a physical downlink control channel PDCCH carrying a transmission power control TPC command word to the terminal through a base station simulator, so that the terminal adjusts the actual transmit power of the terminal based on the TPC command word;
[0030] Receiving a media access control element MAC CE reported by the terminal through the base station simulator, wherein the MAC CE carries a power headroom report PHR corresponding to the adjusted actual transmit power;
[0031] The adjusted actual transmit power of the terminal is calculated based on the PHR, and when the adjusted actual transmit power does not reach the expected power value, the above steps are repeated until the actual transmit power reaches the expected power value.
[0032] Optionally, the acquiring the actual transmit power of the terminal includes:
[0033] Sending a radio resource control RRC reconfiguration message to the terminal through the base station simulator, wherein the RRC reconfiguration message carries information instructing the terminal to periodically report a PHR;
[0034] Receive the MAC CE carrying the PHR sent by the terminal through the base station simulator, and calculate the actual transmission power of the terminal based on the PHR.
[0035] Optionally, the calculating based on the PHR to obtain the adjusted actual transmit power of the terminal includes:
[0036] The script server calculates the adjusted actual transmit power of the terminal based on the PHR by the following formula:
[0037] P UE =P CMAX,f,c -P PH ;
[0038] Among them, P UE represents the actual transmission power after adjustment of the terminal, P CMAX,f,c Indicates that based on the PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
[0039] Optionally, the script server controls statistics on actual power consumption of the terminal in each designated data service scenario in the at least one designated data service, including:
[0040] For each of the designated data services, a power consumption statistics instruction is sent to the current meter, so that the current meter counts the actual power consumption of the terminal in the scenario of the designated data service;
[0041] The statistical duration corresponding to the designated data service is controlled, and a power consumption statistics end instruction is sent to the ammeter after the statistical duration is reached, so that the ammeter ends counting the actual power consumption of the terminal in the scenario of the designated data service.
[0042] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the terminal power consumption testing method when executing the program.
[0043] An embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the terminal power consumption testing method are implemented.
[0044] The terminal power consumption testing system, method and electronic device provided in the embodiments of the present application, the script server controls the actual transmission power of the terminal to the expected power value through the base station simulator, the data service simulator sends at least one simulated specified data service to the terminal that reaches the expected power value through the base station simulator, and the script server controls the ammeter to count the actual power consumption of the terminal in different specified data service scenarios, thereby realizing the testing of the power consumption of the terminal in different data service scenarios through the terminal power consumption testing system, and the test system is simple to implement, has little impact on system time and performance overhead, and improves the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 This is a schematic diagram of a terminal power consumption testing system in an embodiment of the present application;
[0047] Figure 2 This is a schematic diagram of the working process of the terminal power consumption test system in an embodiment of the present application;
[0048] Figure 3 This is a schematic diagram of the interaction between the terminal power consumption testing system and the terminal in an embodiment of the present application;
[0049] Figure 4 This is a flow chart of a method for testing power consumption of a terminal in an embodiment of the present application;
[0050] Figure 5 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] like Figure 1 FIG. 1 is a schematic diagram of a terminal power consumption test system in an embodiment of the present application, and the terminal power consumption test system includes:
[0053] Script server 11, base station simulator 12, data service simulator 13 and current meter 14; wherein,
[0054] The script server 11 controls the actual transmission power of the terminal 2 to the expected power value through the base station simulator 12;
[0055] The data service simulator 13 sends at least one simulated designated data service to the terminal 2 that reaches the expected power value through the base station simulator 12;
[0056] The script server 11 controls the ammeter 14 to count the actual power consumption of the terminal 2 in each designated data service scenario in at least one designated data service.
[0057] Specifically, in the terminal power consumption test system, the script server 11 simulates the NR high-level signaling interaction process (such as the network attachment attach signaling process, the configuration power margin report PHR process), power control calculation, and controls the operation of the ammeter to realize power consumption automatic control test.
[0058] The base station simulator 12 simulates NR protocol layers, such as the service data adaptation protocol (SDAP) layer, the packet data convergence protocol (PDCP) layer, the radio link control (RLC) layer, the media access control (MAC) layer and the physical layer (PHY) layer, so that the base station simulator 12 has the functions of simulating NR cells, sending and receiving power control information, and sending and receiving data services.
[0059] The data service simulator 13 assists in simulating different designated data services, such as no data service, low-speed data service and high-speed data service, so as to simulate a rich variety of test scenarios to be close to real business scenarios.
[0060] The ammeter 14 is responsible for supplying power to the terminal and calculating actual power consumption of the terminal.
[0061] Specifically, first, the script server 11 can control the actual transmission power of the terminal 2 to the expected power value through the base station simulator 12, so that the expected power value can be used as the power consumption test benchmark for power consumption testing; then, the data service simulator 13 sends at least one simulated specified data service to the terminal that reaches the expected power value through the base station simulator 12, so that the terminal can be simulated in scenarios of different specified data services, thereby making it possible to be close to the actual business scenario; finally, the script server 11 controls the ammeter 14 to count the actual power consumption of the terminal 2 in different specified data service scenarios, so as to realize the terminal power consumption test system to realize the automated testing process of the terminal power consumption in different business scenarios.
[0062] In this way, in the terminal power consumption testing system provided by the present application, the script server controls the actual transmission power of the terminal to the expected power value through the base station simulator, and the data service simulator sends at least one simulated specified data service to the terminal that reaches the expected power value through the base station simulator. The script server controls the ammeter to count the actual power consumption of the terminal in different specified data service scenarios, thereby realizing the testing of the power consumption of the terminal in different data service scenarios through the terminal power consumption testing system. The test system is simple to implement, has little impact on system time and performance overhead, and improves test efficiency.
[0063] In addition, optionally, in this embodiment, when the script server controls the actual transmission power of the terminal to the expected power value through the base station simulator, the following steps may be included:
[0064] Step 1: The script server obtains the actual transmit power of the terminal.
[0065] Specifically, the script server obtains the actual transmission power of the terminal by sending a wireless resource control RRC reconfiguration message to the terminal through the base station simulator, wherein the RRC reconfiguration message carries information instructing the terminal to periodically report PHR. Then the script server receives the MAC CE carrying PHR sent by the terminal through the system simulator, and calculates the actual transmission power of the terminal based on the PHR.
[0066] Of course, specifically, if the script server calculates that the actual transmit power of the terminal has reached the expected power value, it can configure a reconfiguration message for ending reporting of the PHR.
[0067] Specifically, when the script server calculates the actual transmit power of the terminal, it can be calculated by the following formula:
[0068] P UE =P CMAX,f,c -P PH ;
[0069] Among them, P UE Indicates the actual transmit power of the terminal, P CMAX,f,c Indicates that based on P in PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
[0070] Specifically, the MAC CE carrying the PHR is shown in Table 1 below:
[0071] Table 1
[0072] R R PH (Type 1, Pcell) R R <![CDATA[P CMAX,f,c ]]>
[0073] In addition, the power corresponding to the PH index value in the above Table 1 is shown in the following Table 2:
[0074] Table 2
[0075]
[0076]
[0077] That is, the script server can query the power value corresponding to the PH index value in the PHR through the above table.
[0078] In addition, P in Table 1 aboveCMAX,f,c The power corresponding to the index value is shown in Table 3 below:
[0079] Table 3
[0080] Measured quantity value 0 <![CDATA[P CMAX,f,c <-29]]> 1 <![CDATA[-29≤P CMAX,f,c <-28]]> 2 <![CDATA[-28≤P CMAX,f,c <-27]]> … … 61 <![CDATA[31≤P CMAX,f,c <32]]> 62 <![CDATA[32≤P CMAX,f,c <33]]> 63 <![CDATA[33≤P CMAX,f,c ]]>
[0081] That is, the script server can query the PHR in the above table. CMAX,f,c The power value corresponding to the index value.
[0082] Step 2, when the script server determines that the actual transmission power of the terminal does not reach the expected power value, it sends a physical downlink control channel (PDCCH) carrying a transmission power control (TPC) command word to the terminal through the base station simulator, so that the terminal adjusts the actual transmission power of the terminal based on the TPC command word.
[0083] Specifically, when the script server determines that the actual transmission power of the terminal does not reach the expected power value, the script server can configure the transmission power control (TPC) command word (TPC value is taken as an example of PUSCH in Table 4 below) and send it to the base station simulator, and then the base station simulator sends the PDCCH carrying the TPC command word to the terminal. At this time, after the terminal receives the PDCCH carrying the TPC command word, it can increase or decrease the actual transmission power of the terminal according to the TPC value and report the corresponding PHR MAC CE.
[0084] Table 4
[0085] TPC Command Field <![CDATA[Accumulatedδ PUSCH,b,f,c [dB]]]> 0 -1 1 0 2 1 3 3
[0086] Step 3: The script server receives the medium access control element MACCE reported by the terminal through the base station simulator, wherein the MAC CE carries a power headroom report PHR corresponding to the adjusted actual transmit power.
[0087] Specifically, the script server receives the MAC CE reported by the terminal, and obtains the PHR corresponding to the adjusted actual transmit power.
[0088] Step 4: The script server calculates the adjusted actual transmit power of the terminal based on the PHR, and repeats the above steps when the adjusted actual transmit power does not reach the expected power value until the actual transmit power reaches the expected power value.
[0089] Specifically, when the script server calculates the adjusted actual transmit power of the terminal based on the PHR, the adjusted actual transmit power of the terminal may be calculated based on the PHR by the following formula:
[0090] P UE =P CMAX,f,c -PPH ;
[0091] Among them, P UE represents the actual transmit power after adjustment of the terminal, P CMAX,f,c Indicates that based on P in PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
[0092] Specifically, see Table 1. In the PHR corresponding to the adjusted actual transmit power, there are P CMAX,f,c Index value and PH index value, at this time, you can query Table 2 and Table 3 to get P CMAX,f,c The maximum transmit power of the terminal queried by the index value and the power value corresponding to the PH index value make it possible to calculate the adjusted actual transmit power of the terminal through the above process.
[0093] In addition, specifically, when the adjusted actual transmit power does not reach the expected power value, the script server may repeat the above steps 2 and 3, and calculate the adjusted actual transmit power of the terminal until the actual transmit power reaches the expected power value.
[0094] In this way, the actual transmit power of the terminal is controlled to reach the expected power through the above process, thereby realizing closed-loop power control of the actual transmit power of the terminal and improving the calculation accuracy of the actual transmit power.
[0095] In addition, optionally, in the present embodiment, when the script server controls the ammeter to count the actual power consumption of the terminal in each specified data service scenario in at least one specified data service, it can send a power consumption statistics instruction to the ammeter for each specified data service, so that the ammeter counts the actual power consumption of the terminal in the scenario of the specified data service; and the script server controls the statistical duration corresponding to the specified data service, and sends a power consumption statistics end instruction to the ammeter after the statistical duration is reached, so that the ammeter ends counting the actual power consumption of the terminal in the scenario of the specified data service.
[0096] Specifically, the ammeter is connected to the terminal and the script server respectively, and the script server can control the ammeter to count the actual power consumption of the terminal in different specified data service scenarios, thereby realizing the automatic counting process of the terminal power consumption.
[0097] In addition, specifically, the ammeter can also provide power for the terminal, thereby avoiding configuring a power supply for the terminal separately in the test system.
[0098] Specifically, the following Figure 2 and Figure 3 The specific process of this embodiment is described.
[0099] See also Figure 2 The terminal power consumption test system can be divided into three processes when testing the terminal. Process one forms a power control closed loop. The script server reports PHR information and TPC command words to the terminal through the base station simulator, and the terminal reports PHR to the script server through the base station simulator. At this time, the script server calculates the actual transmission power of the terminal based on PHR; process two simulates data services. The data service simulator sends simulated different designated data services to the terminal through the base station simulator; process three counts the terminal power consumption. The script server sends a power consumption statistics instruction to the ammeter. At this time, the ammeter counts the actual power consumption of the terminal in the scenario of the designated data service, and the ammeter supplies power to the terminal.
[0100] See also Figure 3 The terminal power consumption test system may specifically include the following steps when testing the terminal:
[0101] 1. The ammeter is connected to the terminal to supply power to the terminal;
[0102] 2. After the terminal completes registration with the base station simulator, the script server configures the terminal to periodically report the RRC reconfiguration message of the PHR information, which is then sent to the terminal by the base station simulator.
[0103] 3. After receiving the RRC reconfiguration message for configuring PHR, the terminal sends a MAC CE carrying PHR within the PHR reporting period, and the base station simulator reports the PH value to the script server.
[0104] 4. The script server analyzes the power corresponding to the PH value, calculates the actual transmit power of the terminal, and determines whether the actual transmit power of the terminal reaches the expected power value; if the actual transmit power has reached the expected power value, the configuration ends the reconfiguration message of reporting PHR, and the base station simulator sends it to the terminal; if the actual power value does not reach the expected power value, the TPC signaling word is configured and sent to the base station simulator. The base station simulator sends the PDCCH carrying the TPC signaling word to the terminal.
[0105] 5. After receiving the PDCCH carrying the TPC command word, the terminal increases or decreases the actual transmit power of the terminal according to the TPC value and reports the corresponding PHR MAC CE.
[0106] 6. Run step 4 until the actual power of the terminal reaches the expected power value.
[0107] 7. The script server sends power consumption statistics instructions to the ammeter.
[0108] 8. The data service simulator simulates different designated data services and sends them to the terminal, and the ammeter counts the real-time power consumption of the terminal.
[0109] 9. The script server controls the statistical duration. After the statistics are completed, the script server sends an instruction to end the power consumption statistics.
[0110] In this way, through the above process, the test system completes the test of the actual power consumption of the terminal, and the implementation process of the test system is simple and the performance overhead is small.
[0111] In addition, if Figure 4 As shown, it is a flowchart of the steps of the terminal power consumption test method in an embodiment of the present application, and the method includes the following steps:
[0112] Step 401: The script server controls the actual transmission power of the terminal to an expected power value, and the data service simulator sends at least one simulated designated data service to the terminal that reaches the expected power value.
[0113] In this step, specifically, the script server can first control the actual transmission power of the terminal to the expected power value, so that the expected power value can be used as the power consumption test benchmark for power consumption testing; in addition, the data service simulator sends at least one simulated specified data service to the terminal that reaches the expected power value, so that the terminal can be simulated in scenarios of different specified data services, thereby making it possible to be close to the actual business scenario.
[0114] Step 402: The script server controls the statistics of the actual power consumption of the terminal in each designated data service scenario in at least one designated data service.
[0115] In this step, specifically, the script server controls and counts the actual power consumption of the terminal in different designated data service scenarios, so as to realize an automated testing process of the script server on the power consumption of the terminal in different service scenarios.
[0116] Optionally, in this embodiment, when the script server controls the actual transmission power of the terminal to the expected power value, the following steps may be included:
[0117] Step 1: Obtain the actual transmit power of the terminal.
[0118] Specifically, when the script server obtains the actual transmission power of the terminal, it can send an RRC reconfiguration message to the terminal through the base station simulator, wherein the RRC reconfiguration message carries information instructing the terminal to periodically report PHR; then the receiving terminal receives the MAC CE carrying PHR sent by the base station simulator, and calculates the actual transmission power of the terminal based on the PHR.
[0119] Step 2: When the actual transmit power does not reach the expected power value, a PDCCH carrying a TPC command word is sent to the terminal through the base station simulator, so that the terminal adjusts the actual transmit power of the terminal based on the TPC command word.
[0120] Step 3: Receive the MAC CE reported by the terminal through the base station simulator, wherein the MAC CE carries a power headroom report PHR corresponding to the adjusted actual transmit power.
[0121] Step 4: Calculate the adjusted actual transmit power of the terminal based on the PHR, and repeat the above steps when the adjusted actual transmit power does not reach the expected power value until the actual transmit power reaches the expected power value.
[0122] Specifically, when the adjusted actual transmit power of the terminal is calculated based on the PHR, the script server may calculate the adjusted actual transmit power of the terminal based on the PHR by the following formula:
[0123] P UE =P CMAX,f,c -P PH ;
[0124] Among them, P UE represents the actual transmit power after adjustment of the terminal, P CMAX,f,c Indicates that based on P in PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
[0125] It should be noted that the specific content of the above process can be found in the relevant content of the test system embodiment side, and will not be repeated here.
[0126] In addition, optionally, when the script server controls the statistics of the actual power consumption of the terminal in each specified data service scenario in at least one specified data service, it can send a power consumption statistics instruction to the ammeter for each specified data service, so that the ammeter counts the actual power consumption of the terminal in the scenario of the specified data service; then controls the statistical duration corresponding to the specified data service, and sends a power consumption statistics end instruction to the ammeter after the statistical duration is reached, so that the ammeter ends the statistics of the actual power consumption of the terminal in the scenario of the specified data service.
[0127] It should be noted that the specific content of the above process can be found in the relevant content of the test system embodiment side, and will not be repeated here.
[0128] In this way, in the terminal power consumption testing method provided by the present application, the script server controls the actual transmission power of the terminal to the expected power value, the data service simulator sends at least one simulated specified data service to the terminal that reaches the expected power value, and the script server controls the statistics of the actual power consumption of the terminal in different specified data service scenarios, thereby realizing an automated testing process for the power consumption of the terminal in different data service scenarios, without the need for manual intervention, thereby improving testing efficiency and increasing the scope of service testing.
[0129] In addition, if Figure 5 As shown, it is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, and the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call a computer program stored in the memory 530 and can be run on the processor 510 to perform the following steps:
[0130] The script server controls the actual transmission power of the terminal to the expected power value, and the data service simulator sends at least one simulated designated data service to the terminal that reaches the expected power value;
[0131] The script server controls statistics on actual power consumption of the terminal in each designated data service scenario in the at least one designated data service.
[0132] Optionally, the script server controls the actual transmission power of the terminal to an expected power value, including:
[0133] Acquire the actual transmit power of the terminal;
[0134] When the actual transmit power does not reach the expected power value, sending a physical downlink control channel PDCCH carrying a transmission power control TPC command word to the terminal through a base station simulator, so that the terminal adjusts the actual transmit power of the terminal based on the TPC command word;
[0135] Receiving a media access control element MAC CE reported by the terminal through the base station simulator, wherein the MAC CE carries a power headroom report PHR corresponding to the adjusted actual transmit power;
[0136] The adjusted actual transmit power of the terminal is calculated based on the PHR, and when the adjusted actual transmit power does not reach the expected power value, the above steps are repeated until the actual transmit power reaches the expected power value.
[0137] Optionally, the acquiring the actual transmit power of the terminal includes:
[0138] Sending a radio resource control RRC reconfiguration message to the terminal through the base station simulator, wherein the RRC reconfiguration message carries information instructing the terminal to periodically report a PHR;
[0139] Receive the MAC CE carrying the PHR sent by the terminal through the base station simulator, and calculate the actual transmission power of the terminal based on the PHR.
[0140] Optionally, the calculating based on the PHR to obtain the adjusted actual transmit power of the terminal includes:
[0141] The script server calculates the adjusted actual transmit power of the terminal based on the PHR by the following formula:
[0142] P UE =P CMAX,f,c -P PH ;
[0143] Among them, P UE represents the actual transmission power after adjustment of the terminal, P CMAX,f,c Indicates that based on the PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
[0144] Optionally, the script server controls statistics on actual power consumption of the terminal in each designated data service scenario in the at least one designated data service, including:
[0145] For each of the designated data services, sending a power consumption statistics instruction to the current meter so that the current meter can count the actual power consumption of the terminal in the scenario of the designated data service;
[0146] The statistical duration corresponding to the designated data service is controlled, and a power consumption statistics end instruction is sent to the ammeter after the statistical duration is reached, so that the ammeter ends counting the actual power consumption of the terminal in the scenario of the designated data service.
[0147] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0148] An embodiment of the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the method steps provided in the above embodiments and can achieve the same technical effect, which will not be repeated here.
[0149] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A terminal power consumption test system, characterized in that: include: A script server, a base station simulator, a data service simulator and an ammeter; wherein, The script server controls the actual transmission power of the terminal to the expected power value through the base station simulator; The data service simulator sends at least one simulated designated data service to the terminal reaching the expected power value through the base station simulator; The script server controls the ammeter to count actual power consumption of the terminal in each designated data service scenario of the at least one designated data service.
2. The terminal power consumption test system according to claim 1, characterized in that: The script server controls the actual transmission power of the terminal to the expected power value through the base station simulator, including: The script server obtains the actual transmission power of the terminal; When the script server determines that the actual transmit power of the terminal does not reach the expected power value, sending a physical downlink control channel PDCCH carrying a transmission power control TPC command word to the terminal through the base station simulator, so that the terminal adjusts the actual transmit power of the terminal based on the TPC command word; The script server receives a media access control control element MAC CE reported by the terminal through the base station simulator, wherein the MAC CE carries a power headroom report PHR corresponding to the adjusted actual transmit power; The script server calculates the adjusted actual transmit power of the terminal based on the PHR, and repeats the above steps when the adjusted actual transmit power does not reach the expected power value until the actual transmit power reaches the expected power value.
3. The terminal power consumption test system according to claim 2, characterized in that: The script server obtains the actual transmission power of the terminal, including: Sending a radio resource control RRC reconfiguration message to the terminal through the base station simulator, wherein the RRC reconfiguration message carries information instructing the terminal to periodically report a PHR; The script server receives the MAC CE carrying the PHR sent by the terminal through the base station simulator, and calculates the actual transmission power of the terminal based on the PHR.
4. The terminal power consumption test system according to claim 2, characterized in that: The script server calculates, based on the PHR, the adjusted actual transmit power of the terminal, including: The script server calculates the adjusted actual transmit power of the terminal based on the PHR by the following formula: P UE =P CMAX,f,c -P PH ; Among them, P UE represents the actual transmission power after adjustment of the terminal, P CMAX,f,c Indicates that based on the PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
5. The terminal power consumption test system according to claim 1, characterized in that: The script server controls the ammeter to count actual power consumption of the terminal in each designated data service scenario in the at least one designated data service, including: For each of the designated data services, the script server sends a power consumption statistics instruction to the current meter, so that the current meter counts the actual power consumption of the terminal in the scenario of the designated data service; The script server controls the statistical duration corresponding to the designated data service, and sends a power consumption statistics end instruction to the ammeter after the statistical duration is reached, so that the ammeter ends counting the actual power consumption of the terminal in the scenario of the designated data service.
6. A terminal power consumption test method, characterized in that: include: The script server controls the actual transmission power of the terminal to the expected power value through the base station simulator, and the data service simulator sends at least one simulated designated data service to the terminal that reaches the expected power value through the base station simulator; The script server controls the ammeter to count the actual power consumption of the terminal in each designated data service scenario in the at least one designated data service.
7. The terminal power consumption test method according to claim 6, characterized in that: The script server controls the actual transmission power of the terminal to the expected power value through the base station simulator, including: Acquire the actual transmit power of the terminal; When the actual transmit power does not reach the expected power value, sending a physical downlink control channel PDCCH carrying a transmission power control TPC command word to the terminal through a base station simulator, so that the terminal adjusts the actual transmit power of the terminal based on the TPC command word; Receiving a media access control element MAC CE reported by the terminal through the base station simulator, wherein the MAC CE carries a power headroom report PHR corresponding to the adjusted actual transmit power; The adjusted actual transmit power of the terminal is calculated based on the PHR, and when the adjusted actual transmit power does not reach the expected power value, the above steps are repeated until the actual transmit power reaches the expected power value.
8. The terminal power consumption testing method according to claim 7, characterized in that: The obtaining the actual transmit power of the terminal includes: Sending a radio resource control RRC reconfiguration message to the terminal through the base station simulator, wherein the RRC reconfiguration message carries information instructing the terminal to periodically report a PHR; Receive the MAC CE carrying the PHR sent by the terminal through the base station simulator, and calculate the actual transmission power of the terminal based on the PHR.
9. The terminal power consumption test method according to claim 7, characterized in that: The calculating based on the PHR to obtain the adjusted actual transmit power of the terminal includes: The script server calculates the adjusted actual transmit power of the terminal based on the PHR by the following formula: P UE =P CMAX,f,c -P PH ; Among them, P UE represents the actual transmission power after adjustment of the terminal, P CMAX,f,c Indicates that based on the PHR CMAX,f,c The maximum transmit power of the terminal queried by the index value, P PH Indicates the power value corresponding to the power headroom PH index value in the PHR.
10. The terminal power consumption test method according to claim 6, characterized in that: The script server controls statistics on actual power consumption of the terminal in each designated data service scenario in the at least one designated data service, including: For each of the designated data services, a power consumption statistics instruction is sent to the current meter, so that the current meter counts the actual power consumption of the terminal in the scenario of the designated data service; The statistical duration corresponding to the designated data service is controlled, and a power consumption statistics end instruction is sent to the ammeter after the statistical duration is reached, so that the ammeter ends counting the actual power consumption of the terminal in the scenario of the designated data service.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the terminal power consumption testing method as described in any one of claims 6 to 10 are implemented.
12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the terminal power consumption testing method as described in any one of claims 6 to 10 are implemented.
