CN114302424A - Power consumption detection method and device of communication module, computer equipment and storage medium - Google Patents

Power consumption detection method and device of communication module, computer equipment and storage medium Download PDF

Info

Publication number
CN114302424A
CN114302424A CN202111506946.1A CN202111506946A CN114302424A CN 114302424 A CN114302424 A CN 114302424A CN 202111506946 A CN202111506946 A CN 202111506946A CN 114302424 A CN114302424 A CN 114302424A
Authority
CN
China
Prior art keywords
power consumption
communication module
time
low power
consumption 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
CN202111506946.1A
Other languages
Chinese (zh)
Other versions
CN114302424B (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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202111506946.1A priority Critical patent/CN114302424B/en
Publication of CN114302424A publication Critical patent/CN114302424A/en
Application granted granted Critical
Publication of CN114302424B publication Critical patent/CN114302424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to a power consumption detection method and device of a communication module, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring an air interface log for information interaction between a terminal and network side equipment, determining a first time when a communication module in the terminal enters a low power consumption mode and a second time when the communication module exits the low power consumption mode according to the air interface log, and determining a power consumption detection result of the communication module according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal. By adopting the method, the external precise power supply is not required to be hung and measured for a long time to occupy the resource of the precise power supply, so as to determine the actual power consumption of the communication module. And, need not artifical reading test equipment to the display result of precision power consumption, and then the analysis compares the power consumption of precision power and the standard power consumption condition of communication module, has improved rate of accuracy and efficiency.

Description

Power consumption detection method and device of communication module, computer equipment and storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to a power consumption detection method and device of a communication module, computer equipment and a storage medium.
Background
With the rapid development of the Internet of Things technology, NB-IoT (Narrow Band Internet of Things) communication modules have also been developed. Among them, the PSM (Power Saving Mode) feature is the key feature and selling point function of the NB-IOT communication module. Therefore, the NB-IoT module needs to be tested with low power consumption during the production process.
In the prior art, when the NB-IoT communication module is subjected to low power consumption test, a PSM stability on-hook test is usually adopted, when the communication module starts PSM enabling, the precise power supply is connected for a long time, and whether the low power consumption characteristic of the communication module is normal or not is determined according to the power consumption condition of the precise power supply and the power consumption condition of the NB-IoT communication module.
However, the current PSM stability on-hook test method has the problems of low test efficiency and poor accuracy.
Disclosure of Invention
In view of the above, it is necessary to provide a power consumption detection method and apparatus for a communication module, a computer device, and a storage medium, which can improve the test efficiency and the test accuracy.
In a first aspect, the present application provides a method for detecting power consumption of a communication module. The method comprises the following steps:
acquiring an air interface log for information interaction between a terminal and network side equipment;
determining a first moment when a communication module in the terminal enters a low power consumption mode and a second moment when the communication module exits the low power consumption mode according to the air interface log;
determining a power consumption detection result of the communication module according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal.
In one embodiment, determining a first time when a communication module in a terminal enters a low power consumption mode and a second time when the communication module exits the low power consumption mode according to an air interface log includes:
analyzing the air interface log to obtain a low power consumption mode state field in the air interface log; the low power mode state field is used for representing the current state of the low power mode;
and determining a first time and a second time according to the low power consumption mode state field.
In one embodiment, determining the first time based on the low power mode status field comprises:
if the low power consumption mode state field is in a release state, starting a first timer and a second timer; the duration of the first timer is less than that of the second timer;
and controlling the communication module to enter a low power consumption mode at the end time of the first timer, and determining the end time of the first timer as the first time.
In one embodiment, the method for detecting power consumption of a communication module further includes:
and at the end moment of the second timer, controlling the communication module to exit the low power consumption mode, and setting a low power consumption mode state field in the air interface log to be in an awakening state to obtain a new air interface log.
In one embodiment, the method for detecting power consumption of a communication module further includes:
and if a wake-up instruction sent by the network side equipment is received, responding to the wake-up instruction to control the communication module to exit the low-power-consumption mode, and setting a low-power-consumption mode state field in the air interface log to be in a wake-up state to obtain a new air interface log.
In one embodiment, determining the second time according to the low power mode status field includes:
and if the low power consumption mode state field is in the wake-up state, determining the generation time of the air interface log as a second time.
In one embodiment, determining a power consumption detection result of the communication module according to the first time and the second time includes:
generating a waveform diagram of the communication module according to the first time and the second time, wherein the waveform diagram represents the time when the communication module enters the low power consumption mode and the time when the communication module exits the low power consumption mode;
comparing the oscillogram with a standard oscillogram to determine a power consumption detection result of the communication module; the standard waveform diagram is determined according to the registration configuration information of the communication module.
In a second aspect, the present application further provides a power consumption detection apparatus for a communication module. The device includes:
the acquisition module is used for acquiring an air interface log for information interaction between the terminal and the network side equipment;
the first determining module is used for determining a first moment when a communication module in the terminal enters a low power consumption mode and a second moment when the communication module exits the low power consumption mode according to the air interface log;
the second determining module is used for determining the power consumption detection result of the communication module according to the first moment and the second moment; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method in any of the embodiments of the first aspect described above when the processor executes the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any of the above-mentioned embodiments of the first aspect.
According to the power consumption detection method and device of the communication module, the computer equipment and the storage medium, the empty log of information interaction between the terminal and the network side equipment is obtained, the first time when the communication module in the terminal enters the low power consumption mode and the second time when the communication module exits the low power consumption mode are determined according to the empty log, and the power consumption detection result of the communication module is determined according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal or not, and the external precise power supply is not required to be hung and detected for a long time to occupy the resource of the precise power supply, so that the actual power consumption of the communication module is determined. And, need not artifical reading test equipment to the display result of precision power consumption, and then the analysis compares the power consumption of precision power and the standard power consumption condition of communication module, has improved rate of accuracy and efficiency.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a power consumption detection method for a communication module;
FIG. 2 is a flow chart illustrating a method for detecting power consumption of a communication module according to an embodiment;
FIG. 3 is a flow chart illustrating a method for detecting power consumption of a communication module according to another embodiment;
FIG. 4 is a flow chart illustrating a power consumption detection method of a communication module according to another embodiment;
FIG. 5 is a flow chart illustrating a method for detecting power consumption of a communication module according to another embodiment;
FIG. 6 is a flow diagram illustrating a power consumption detection waveform of the communication module according to an embodiment;
FIG. 7 is a block diagram of a power consumption detection apparatus of a communication module according to an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The power consumption detection method of the communication module provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The internet of things terminal 102 is in network communication with other terminals 104 through an internal communication module. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The method comprises the steps that an air interface log is recorded in the interaction process of the Internet of things terminal and a server, after the air interface log is obtained, the moment when a communication module in the Internet of things terminal enters the low power consumption mode can be determined, the moment when the communication module exits the low power consumption mode is determined according to the moment when the communication module exits the low power consumption mode, and whether the low power consumption characteristic of the communication module is abnormal or not is determined. Wherein, including the communication module in the thing networking terminal, this communication module can include, communication module 101 can be 2G module, 3G module, 4G module, 5G module, NB-IOT module, e-MTC module, loRa module and Sigfox module etc. do not put the restriction here. The internet of things terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. Other terminals 104 may include servers, other internet of things terminals; wherein the server may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for detecting power consumption of a communication module is provided, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
s202, acquiring an air interface log of information interaction between the terminal and the network side equipment.
Specifically, in the process of interaction between the terminal and the network side device, the terminal may record an air interface log interacted with the network side device, and meanwhile, the network side device may also record the interacted air interface log. Therefore, when the power consumption of the communication module is detected, the air interface log recorded by the terminal can be acquired from the stored database.
Optionally, an instruction for acquiring the air interface log may also be initiated or sent to the network device, so as to acquire the air interface log of the network device, which is not limited herein.
And S204, determining a first time when the communication module in the terminal enters the low power consumption mode and a second time when the communication module exits the low power consumption mode according to the air interface log.
Specifically, after the air interface log is obtained, the key fields of the communication module entering the low power consumption mode and exiting the low power consumption mode recorded in the air interface log can be searched, and the first time when the communication module enters the low power consumption mode and the second time when the communication module exits the low power consumption mode are determined by determining the time when the key fields are generated. The key fields may include entering a low power mode, exiting a low power mode, entering a release state, among others. Further, the release state is a release state of the communication module in an RRC (Radio Resource Control) state of the network device. Wherein, the RRC state may include: a circuit release state and a circuit wake-up state. The time of generating the air interface log may also be determined as a second time when the power-on module exits from the low power consumption mode, that is, the time when the communication module exits from the low power consumption mode is the time of generating the air interface log.
S206, determining a power consumption detection result of the communication module according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal.
Specifically, when the first time and the second time at which the communication module enters and exits the low power consumption mode are determined, a waveform diagram of the communication module entering the low power consumption mode can be generated according to corresponding time information, and then whether an abnormal wake-up point or an abnormal deep sleep point exists or not is determined according to comparison between a waveform entering the low power consumption mode and a standard waveform of the communication module which should enter the low power consumption mode, that is, the communication module enters or exits the low power consumption mode and is abnormal under an actual condition. Optionally, the time length for the communication module to enter the low power consumption mode may be determined according to the corresponding time information at the first time and the second time when the communication module enters and exits the low power consumption mode, and whether the low power consumption mode corresponding to the communication module is abnormal or not may be determined according to comparison between the time length and the standard time length. The standard time length is the time length included in the configured registration configuration information when the communication module is enabled for the first time.
In the power consumption detection method of the communication module, an air interface log for information interaction between the terminal and the network side equipment is obtained, a first time when the communication module in the terminal enters the low power consumption mode and a second time when the communication module exits the low power consumption mode are determined according to the air interface log, and a power consumption detection result of the communication module is determined according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal or not, and the external precise power supply is not required to be hung and detected for a long time to occupy the resource of the precise power supply, so that the actual power consumption of the communication module is determined. And, need not artifical reading test equipment to the display result of precision power consumption, and then the analysis compares the power consumption of precision power and the standard power consumption condition of communication module, has improved rate of accuracy and efficiency.
In an embodiment, as shown in fig. 3, determining a first time when the communication module in the terminal enters the low power consumption mode and a second time when the communication module exits the low power consumption mode according to an air interface log includes:
s302, analyzing the air interface log to obtain a low power consumption mode state field in the air interface log; the low power mode state field is used to indicate the current state of the low power mode.
Specifically, after the air interface log is obtained, a state field of a low power consumption mode in the air interface log may be captured, where the state field of the low power consumption mode represents a current state of the low power consumption mode. For example, the status field of the low power mode may include RRC release, RRC Setup. The RRC release field can be used for indicating that the communication module enters a low power consumption mode; the RRC Setup field is used to indicate that the communication module exits the low power mode. When the communication module enters or exits the low power consumption mode, the AT reports that the communication module enters the low power consumption mode or exits the low power consumption mode.
And S304, determining a first time and a second time according to the low power consumption mode state field.
Specifically, when the low power consumption mode state field is captured, the time when the communication module enters the low power consumption mode and the time when the communication module exits the low power consumption mode can be determined according to the specifically captured state field. And taking the moment of entering the low power consumption mode as a first moment and taking the moment of exiting the low power consumption mode as a second moment.
Further, in this embodiment, as shown in fig. 4, the determining the first time according to the low power consumption mode status field includes:
s402, if the low power consumption mode state field is in a release state, starting a first timer and a second timer; the duration of the first timer is less than the duration of the second timer.
Specifically, because the communication module comprises two timers, when the low power consumption mode state field is detected to be in a release state, a first timer and a second timer in the communication module are started simultaneously; the duration of the first timer is different from that of the second timer, and the duration of the first timer is less than that of the second timer. Wherein the duration of the first timer may be set to 0 or more. Wherein, the first timer may be a T3324 counter, and the second timer may be a T3412 counter;
and S404, if the communication module is controlled to enter the low power consumption mode at the end time of the first timer, determining the end time of the first timer as the first time.
Specifically, the communication module is controlled to perform the low power consumption mode when the counting end time of the first timer is reached, and the end time of the first timer is determined as the first time, namely the time when the communication module performs the low power consumption mode.
Further, in one embodiment, determining the second time based on the low power mode status field includes:
and if the low power consumption mode state field is in the wake-up state, determining the generation time of the air interface log as a second time.
Specifically, since the registration configuration information is set when the communication module is first enabled, the low power consumption mode is exited when the second timer count is ended. When the communication module exits the low power consumption mode, the low power consumption mode state field is recorded in the air interface log as an awake state, and the generation time of the air interface log can be determined as a second time.
In this embodiment, the air interface log is analyzed to obtain a current-state low-power-consumption mode state field used for representing a low-power-consumption mode in the air interface log, and the first time and the second time are determined according to the low-power-consumption mode state field, so that the running time of the low-power-consumption mode can be simply and directly determined, and the low-power-consumption characteristic of the communication module can be determined according to the running time of the low-power-consumption mode.
In the foregoing embodiment, how to determine the time when the communication module enters and exits the low power consumption mode is described, an embodiment is now described to generate an air interface log, and in an embodiment, the power consumption detection method of the communication module further includes:
and at the end moment of the second timer, controlling the communication module to exit the low power consumption mode, and setting a low power consumption mode state field in the air interface log to be in an awakening state to obtain a new air interface log.
Specifically, the setting of the low power consumption mode of the communication module is to exit the low power consumption mode at the end time of the second timer, and at this time, the low power consumption mode state field in the air interface log may be set to be in the wake-up state, so as to generate a new air interface log.
In this embodiment, by controlling the communication module to exit the low power consumption mode at the ending time of the second timer, and setting the low power consumption mode state field in the air interface log to the wake-up state, a new air interface log is obtained, a plurality of air interface logs of the communication module in the running state can be continuously generated, and the state condition of the low power consumption mode of the communication module in the running process can be conveniently recorded.
In the foregoing embodiment, how to determine the time when the communication module enters and exits the low power consumption mode is described, an embodiment is now described to generate an air interface log, and in an embodiment, the power consumption detection method of the communication module further includes:
and if a wake-up instruction sent by the network side equipment is received, responding to the wake-up instruction to control the communication module to exit the low-power-consumption mode, and setting a low-power-consumption mode state field in the air interface log to be in a wake-up state to obtain a new air interface log.
Specifically, when the communication module enters a low power consumption mode and is dormant, if the communication module needs to be wakened up forcibly, a wakening instruction can be sent to the terminal through the network equipment, the terminal responds to the wakening instruction, controls the communication module to exit the low power consumption mode forcibly, and sets a low power consumption mode state field in an air interface log recorded in the terminal to be in a wakening state, so that a new air interface log can be obtained; or the terminal sends a wake-up instruction to the communication module, at this time, the communication module responds to the wake-up instruction, exits from the low power consumption mode, and sets a low power consumption mode state field in the air interface log recorded in the terminal to be in a wake-up state, so that a new air interface log can be obtained.
In this embodiment, under the condition that a wake-up instruction sent by a network side device is received, a communication module is controlled to exit a low power consumption mode in response to the wake-up instruction, and a low power consumption mode state field in an air interface log is set to be in a wake-up state, so that a new air interface log is obtained. The communication module can be awakened according to actual conditions, the real-time low power consumption condition of the communication module can be recorded, and the low power consumption characteristic of the communication module can be conveniently analyzed.
The foregoing embodiment describes a power consumption detection method of a communication module, and now an embodiment describes how to determine whether a power consumption detection result of the communication module is abnormal, and in an embodiment, as shown in fig. 5, the determining a power consumption detection result of the communication module according to a first time and a second time includes:
and S502, generating a waveform diagram of the communication module according to the first time and the second time, wherein the waveform diagram represents the time when the communication module enters the low power consumption mode and the time when the communication module exits the low power consumption mode.
Specifically, after the first time and the second time are obtained, the first time may be set to 0, and the second time is 1, so as to generate a waveform diagram of the communication module. Alternatively, the first time may be set to 1, and the second time is 0, so as to generate the waveform diagram of the communication module. Wherein the value set at the first time is different from the value set at the second time.
S504, comparing the oscillogram with a standard oscillogram, and determining a power consumption detection result of the communication module; the standard waveform diagram is determined according to the registration configuration information of the communication module.
The standard waveform may include, among other things, a determination based on registration configuration information set upon initial enablement of the communication module. The registration configuration information includes a first target time of the first timer and a second target time of the second timer. When the first target time period set by the communication module at the first timer may be 0, the second target time period set by the communication module at the second timer may be 1. Alternatively, the first target time period set by the communication module at the first timer may be 1, and the second target time period set by the communication module at the second timer may be 0. Alternatively, the setting values for the first timer and the second timer values in the standard waveform are the same as the setting values for the first time and the second time.
The specific process of the PSM is that the terminal applies for Active Time (Active Time) to the network in the Attach (registration procedure)/TAU (TAU, Tracking Area Update)/RAU (RAU is a term of mobile communication technology, and is called Route Area Update), and if the service side device issues the reception application information, the terminal starts Active periodicity after entering the idle state from the connected state and the communication module leaves the PSM when the Active Time is over. In PSM mode, the terminal does not detect whether the paging data network reserves the terminal registration information or not, and the terminal can carry out deep sleep in PSM mode, thereby saving electricity. The PSM state is exited only when data needs to be transmitted at the active end time and upstream.
Specifically, a waveform diagram generated in the actual operation process of the communication module is compared with a standard waveform diagram, as shown in fig. 6, a power consumption detection result of the communication module is determined, and if the two waveforms are not consistent, the power consumption detection result of the communication module is abnormal, that is, an abnormal point exists and is labeled. And if the inconsistent position is the time point for entering the low power consumption mode, the deep sleep is proved to be abnormal. And if the inconsistent position is the time point of exiting the low power consumption mode, proving that the awakening is abnormal.
In the embodiment, a waveform diagram of the communication module is generated according to the first time and the second time, the waveform diagram represents the time when the communication module enters the low power consumption mode and the time when the communication module exits the low power consumption mode, and the waveform diagram is compared with a standard waveform diagram to determine the power consumption detection result of the communication module; the standard waveform diagram is determined according to the registration configuration information of the communication module, and the power consumption detection result of the communication module can be determined. Thereby the low power consumption characteristic of the molecular communication module.
To facilitate understanding of those skilled in the art, a power consumption detection method of a communication module is further described in an embodiment, where the power consumption detection method of the communication module includes:
s601, acquiring an air interface log for information interaction between the terminal and the network side equipment;
s602, if the low power consumption mode state field is in a release state, starting a first timer and a second timer; the duration of the first timer is less than that of the second timer;
s603, controlling the communication module to enter a low power consumption mode at the end time of the first timer, and determining the end time of the first timer as the first time;
s604, if the low power consumption mode state field is in an awakening state, determining the generation time of the air interface log as a second time;
s605, controlling the communication module to exit the low power consumption mode at the ending time of the second timer, and setting a low power consumption mode state field in the air interface log to be in an awakening state to obtain a new air interface log; or if a wake-up instruction sent by the network side equipment is received, controlling the communication module to exit the low-power-consumption mode in response to the wake-up instruction, and setting a low-power-consumption mode state field in the air interface log to be in a wake-up state to obtain a new air interface log;
s606, generating a waveform diagram of the communication module according to the first time and the second time, wherein the waveform diagram represents the time when the communication module enters the low power consumption mode and the time when the communication module exits the low power consumption mode;
s607, comparing the oscillogram with the standard oscillogram, and determining the power consumption detection result of the communication module; the standard waveform diagram is determined according to the registration configuration information of the communication module.
In this embodiment, an air interface log for information interaction between the terminal and the network side device is obtained, a first time when a communication module in the terminal enters a low power consumption mode and a second time when the communication module exits the low power consumption mode are determined according to the air interface log, and a power consumption detection result of the communication module is determined according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal or not, and the external precise power supply is not required to be hung and detected for a long time to occupy the resource of the precise power supply, so that the actual power consumption of the communication module is determined. And, need not artifical reading test equipment to the display result of precision power consumption, and then the analysis compares the power consumption of precision power and the standard power consumption condition of communication module, has improved rate of accuracy and efficiency.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a power consumption detection apparatus for a communication module, which is used for implementing the above-mentioned power consumption detection method for the communication module. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so specific limitations in the following embodiments of the power consumption detection apparatus for one or more communication modules may refer to the above limitations on the power consumption detection method for the communication module, and are not described herein again.
In one embodiment, as shown in fig. 7, there is provided a power consumption detection apparatus of a communication module, including:
an obtaining module 701, configured to obtain an air interface log for information interaction between a terminal and a network side device;
a first determining module 702, configured to determine, according to the air interface log, a first time at which a communication module in the terminal enters the low power consumption mode and a second time at which the communication module exits the low power consumption mode;
a second determining module 703, configured to determine a power consumption detection result of the communication module according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal.
In this embodiment, the obtaining module obtains an air interface log for information interaction between the terminal and the network side device, the first determining module determines a first time when the communication module in the terminal enters the low power consumption mode and a second time when the communication module exits the low power consumption mode according to the air interface log, and the second determining module determines a power consumption detection result of the communication module according to the first time and the second time; the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal or not, and the external precise power supply is not required to be hung and detected for a long time to occupy the resource of the precise power supply, so that the actual power consumption of the communication module is determined. And, need not artifical reading test equipment to the display result of precision power consumption, and then the analysis compares the power consumption of precision power and the standard power consumption condition of communication module, has improved rate of accuracy and efficiency.
In one embodiment, the first determining module includes:
the analysis unit is used for analyzing the air interface log to obtain a low-power-consumption mode state field in the air interface log; the low power mode state field is used for representing the current state of the low power mode;
and the first determining unit is used for determining a first moment and a second moment according to the low-power-consumption mode state field.
In an embodiment, the first determining unit is specifically configured to start a first timer and a second timer if the low power consumption mode state field is in a release state; the duration of the first timer is less than that of the second timer; and controlling the communication module to enter a low power consumption mode at the end time of the first timer, and determining the end time of the first timer as the first time.
In one embodiment, the power consumption detecting apparatus of a communication module further includes:
and the control module is used for controlling the communication module to exit the low power consumption mode at the ending moment of the second timer, and setting a low power consumption mode state field in the air interface log to be in an awakening state to obtain a new air interface log.
In one embodiment, the power consumption detecting apparatus of a communication module further includes:
and the response module is used for responding to the wake-up instruction to control the communication module to exit the low-power-consumption mode and setting a low-power-consumption mode state field in the air interface log to be in a wake-up state to obtain a new air interface log if the wake-up instruction sent by the network side equipment is received.
In an embodiment, the first determining unit is specifically configured to determine, if the low power consumption mode state field is in an awake state, the generation time of the air interface log as the second time.
In one embodiment, the second determining module includes:
the waveform generating unit is used for generating a waveform diagram of the communication module according to the first time and the second time, wherein the waveform diagram represents the time when the communication module enters the low power consumption mode and the time when the communication module exits the low power consumption mode;
the comparison unit is used for comparing the oscillogram with a standard oscillogram and determining the power consumption detection result of the communication module; the standard waveform diagram is determined according to the registration configuration information of the communication module.
All or part of each module in the power consumption detection device of the communication module can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing air interface log data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a power consumption detection method of a communication module. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for detecting power consumption of a communication module, the method comprising:
acquiring an air interface log for information interaction between a terminal and network side equipment;
determining a first moment when a communication module in the terminal enters a low power consumption mode and a second moment when the communication module exits the low power consumption mode according to the air interface log;
determining a power consumption detection result of the communication module according to the first time and the second time; and the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal or not.
2. The method according to claim 1, wherein the determining, according to the air interface log, a first time at which a communication module in the terminal enters a low power consumption mode and a second time at which the communication module exits the low power consumption mode includes:
analyzing the air interface log to obtain a low power consumption mode state field in the air interface log; the low power mode state field is used for representing the current state of the low power mode;
and determining the first time and the second time according to the low power consumption mode state field.
3. The method of claim 2, wherein determining the first time according to the low power mode status field comprises:
if the low power consumption mode state field is in a release state, starting a first timer and a second timer; the duration of the first timer is less than the duration of the second timer;
and controlling the communication module to enter the low power consumption mode at the end time of the first timer, and determining the end time of the first timer as the first time.
4. The method of claim 3, further comprising:
and at the end time of the second timer, controlling the communication module to exit the low power consumption mode, and setting a low power consumption mode state field in the air interface log to be in an awakening state to obtain a new air interface log.
5. The method of claim 3, further comprising:
and if a wake-up instruction sent by the network side equipment is received, responding to the wake-up instruction to control the communication module to exit the low power consumption mode, and setting a low power consumption mode state field in the air interface log to be in a wake-up state to obtain a new air interface log.
6. The method of claim 2, wherein determining the second time from the low power mode status field comprises:
and if the low power consumption mode state field is in an awakening state, determining the generation time of the air interface log as the second time.
7. The method according to any one of claims 1 to 6, wherein the determining the power consumption detection result of the communication module according to the first time and the second time comprises:
generating a waveform diagram of the communication module according to the first time and the second time, wherein the waveform diagram represents the time when the communication module enters the low power consumption mode and the time when the communication module exits the low power consumption mode;
comparing the oscillogram with a standard oscillogram, and determining a power consumption detection result of the communication module; the standard waveform diagram is determined according to the registration configuration information of the communication module.
8. A power consumption detection apparatus for a communication module, the apparatus comprising:
the acquisition module is used for acquiring an air interface log for information interaction between the terminal and the network side equipment;
a first determining module, configured to determine, according to the air interface log, a first time at which a communication module in the terminal enters a low power consumption mode and a second time at which the communication module exits the low power consumption mode;
the second determining module is used for determining a power consumption detection result of the communication module according to the first time and the second time; and the power consumption detection result indicates whether the low power consumption mode corresponding to the communication module is abnormal or not.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111506946.1A 2021-12-10 2021-12-10 Power consumption detection method and device of communication module, computer equipment and storage medium Active CN114302424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111506946.1A CN114302424B (en) 2021-12-10 2021-12-10 Power consumption detection method and device of communication module, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111506946.1A CN114302424B (en) 2021-12-10 2021-12-10 Power consumption detection method and device of communication module, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114302424A true CN114302424A (en) 2022-04-08
CN114302424B CN114302424B (en) 2023-11-24

Family

ID=80966755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111506946.1A Active CN114302424B (en) 2021-12-10 2021-12-10 Power consumption detection method and device of communication module, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114302424B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013102263A (en) * 2011-11-07 2013-05-23 Mitsubishi Electric Corp Radio network system, control method and program
CN103582166A (en) * 2012-08-09 2014-02-12 电信科学技术研究院 Terminal configuration methods and terminal device
US20150142350A1 (en) * 2013-11-20 2015-05-21 Xerox Corporation Method and device for estimating power consumption
US20160286466A1 (en) * 2015-03-24 2016-09-29 Verizon Patent And Licensing Inc. Moderating communications within a wireless telecommunications network based on ue power saving modes
CN107431982A (en) * 2015-03-13 2017-12-01 华为技术有限公司 Apparatus and method in cordless communication network
CN110109787A (en) * 2019-04-18 2019-08-09 记忆科技(深圳)有限公司 Test method based on storage particle consumption under simulation solid state hard disk low power consumpting state
WO2020226397A1 (en) * 2019-05-03 2020-11-12 Samsung Electronics Co.,Ltd. Methods and systems for handling power saving signals to improve power saving performance of ue
CN112861458A (en) * 2021-03-04 2021-05-28 西安石油大学 Chip low-power consumption verification method
CN113468006A (en) * 2021-06-30 2021-10-01 深圳忆联信息系统有限公司 Method and device for testing low power consumption time of solid state disk in and out, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013102263A (en) * 2011-11-07 2013-05-23 Mitsubishi Electric Corp Radio network system, control method and program
CN103582166A (en) * 2012-08-09 2014-02-12 电信科学技术研究院 Terminal configuration methods and terminal device
US20150142350A1 (en) * 2013-11-20 2015-05-21 Xerox Corporation Method and device for estimating power consumption
CN107431982A (en) * 2015-03-13 2017-12-01 华为技术有限公司 Apparatus and method in cordless communication network
US20160286466A1 (en) * 2015-03-24 2016-09-29 Verizon Patent And Licensing Inc. Moderating communications within a wireless telecommunications network based on ue power saving modes
CN110109787A (en) * 2019-04-18 2019-08-09 记忆科技(深圳)有限公司 Test method based on storage particle consumption under simulation solid state hard disk low power consumpting state
WO2020226397A1 (en) * 2019-05-03 2020-11-12 Samsung Electronics Co.,Ltd. Methods and systems for handling power saving signals to improve power saving performance of ue
CN112861458A (en) * 2021-03-04 2021-05-28 西安石油大学 Chip low-power consumption verification method
CN113468006A (en) * 2021-06-30 2021-10-01 深圳忆联信息系统有限公司 Method and device for testing low power consumption time of solid state disk in and out, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XIANGHUI CAO: "Towards Energy-Efficient Wireless Networking in the Big Data Era:A Survey", 《IEEE》 *
田乐: "宽带微功率无线通信系统网络测试平台的设计与实现", 《CNKI硕士电子期刊》 *
郭鹏;杨春晖;陈蕾;刘冲;: "一种低功耗无线传感器网络节点设计", 河北工业科技, no. 04 *

Also Published As

Publication number Publication date
CN114302424B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
EP3502880B1 (en) Method for preloading application, storage medium, and terminal device
EP3502879B1 (en) Method for preloading application, storage medium, and terminal device
US11683396B2 (en) Efficient context monitoring
CN105612485B (en) A kind of method and device running application program
US10908920B2 (en) Method for preloading application, computer readable storage medium, and terminal device
CN107343096B (en) Information reminding method and device, storage medium and electronic equipment
WO2015010621A1 (en) Method and device for obtaining application program power consumption information, and mobile terminal
JP2020537213A (en) Methods for reducing terminal power consumption, and terminals
Oliver et al. Data driven smartphone energy level prediction
CN114302424B (en) Power consumption detection method and device of communication module, computer equipment and storage medium
CN107547742B (en) Wake-up lock release method and device for mobile terminal
CN111261160A (en) Signal processing method and device
CN114978883B (en) Network wakeup management method and device, electronic equipment and storage medium
CN114337857B (en) Method, device, system and storage medium for testing receiving sensitivity
US8589715B2 (en) Method and system for correcting timing errors due to thermal changes within a portable computing device
CN107562599A (en) A kind of parameter detection method and device
CN109710521B (en) Multimedia application performance test method and device, computer equipment and storage medium
CN109388487B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN114738294B (en) Water pump water shortage detection method and device, computer equipment and medium
CN116932392A (en) Interface test method, apparatus, device, storage medium and computer program product
CN116701101A (en) Abnormality detection method of SensorHUB and electronic equipment
CN114640745A (en) Terminal network behavior triggering method and device, computer equipment and storage medium
CN117234175A (en) Dormancy control method, device, equipment and medium
CN114296812A (en) Equipment awakening method, device, equipment and storage medium
CN114064375A (en) Monitoring data processing method and device and monitoring method of embedded system

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