CN116298497A - Power detection method, device and system of electronic equipment and storage medium - Google Patents

Power detection method, device and system of electronic equipment and storage medium Download PDF

Info

Publication number
CN116298497A
CN116298497A CN202310561982.0A CN202310561982A CN116298497A CN 116298497 A CN116298497 A CN 116298497A CN 202310561982 A CN202310561982 A CN 202310561982A CN 116298497 A CN116298497 A CN 116298497A
Authority
CN
China
Prior art keywords
mode
power
power test
xth
test
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.)
Pending
Application number
CN202310561982.0A
Other languages
Chinese (zh)
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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN202310561982.0A priority Critical patent/CN116298497A/en
Publication of CN116298497A publication Critical patent/CN116298497A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R21/00Arrangements for measuring electric power or power factor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The disclosure provides a power detection method, device, system and storage medium of electronic equipment, which are applied to the electronic equipment, and the method comprises the following steps: receiving a task instruction of power test, wherein the task instruction is used for indicating the electronic equipment to perform power test of a first mode to an N mode; when the power test of the xth mode is determined to be started, notifying the power tester to start the power test, and switching from the working mode to the xth mode; the time of the power test is ended, the mode is switched into a working mode from the xth mode, and the power tester is informed to stop the power test, so that the power test of the xth mode is completed; entering the power test of the (x+1) th working mode, and informing the power tester to output the power test data from the first mode to the N mode until the power test of the N mode is completed; by applying the method, the automatic test of the power of the electronic equipment in different modes is realized, the labor burden is reduced, and the complete test data can be obtained.

Description

Power detection method, device and system of electronic equipment and storage medium
Technical Field
The disclosure relates to the field of device detection, and in particular, to a method, a device, a system and a storage medium for detecting power of electronic equipment.
Background
Before mass production, the notebook computer needs to be subjected to power test, and cannot be subjected to mass production without power test or test results reaching standards. The existing method still adopts a manual mode to test when the power of the notebook computer is tested, a tester needs to manually adjust test parameters to enable the notebook computer to enter different working states, the notebook computer and the power meter are manually connected, the power of the notebook computer in different working states is tested, and the obtained test result also needs to be manually recorded by the tester. The detection method needs to pay attention to the whole process of detection by a detection person, consumes labor, only can record partial test data by manual data recording, cannot record complete test data in the whole detection process, and cannot quickly acquire an abnormal region when the test result is abnormal.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a system, and a storage medium for detecting power of an electronic device, so as to at least solve the above technical problems in the prior art.
According to a first aspect of the present disclosure, there is provided a power detection method of an electronic device, the method being applied to the electronic device, the method comprising: receiving a task instruction of power test, wherein the task instruction is used for indicating the electronic equipment to perform power test from a first mode to an N-th mode, and N is an integer greater than 1; when the power test of the xth mode is determined to be started, notifying the power tester to start the power test, and switching from the working mode to the xth mode; the time of the power test is ended, the mode is switched into a working mode from the xth mode, and the power tester is informed to stop the power test, so that the power test of the xth mode is completed; and entering the power test of the (x+1) th mode, and informing the power tester to output the power test data of the first mode to the Nth mode after the power test of the Nth mode is completed.
In an embodiment, the determining to start performing the power test of the x-th mode includes: if the xth mode is the first mode, a task instruction of the power test is received, and the power test of the first mode is determined to be started; if the xth mode is any one of the second to Nth modes, the power test of the xth mode is finished after the power test is notified to the power tester to stop the power test, and the power test of the xth mode is determined to start to be executed when the response of the power tester to stop the power test is received.
In an embodiment, the switching from the operation mode to the xth mode includes: when determining to start executing the power test of the x-th mode, setting a power management parameter to a parameter value corresponding to the x-th mode, and setting the effective time of the parameter value; and when the effective time arrives, switching from the working mode to the xth mode.
In one embodiment, the method further comprises: setting a failure time of the parameter value; correspondingly, the time of the power test is ended, and the x-th mode is switched to the working mode, which comprises the following steps: and when the failure time arrives, the time of the power test is ended, and the mode is switched to the working mode from the xth mode.
In one embodiment, after the notifying the power tester to start the power test and before the operation mode is switched to the xth mode, the method further includes: and disconnecting the network connection with the power tester.
In one embodiment, after the switching from the xth mode to the operation mode and before notifying the power tester to stop the power test, the method further comprises: and establishing network connection with the power tester.
According to a second aspect of the present disclosure, there is provided a power detection apparatus of an electronic device, the apparatus being applied to the electronic device, the apparatus comprising: the electronic equipment comprises a receiving module, a power test module and a power test module, wherein the receiving module is used for receiving a task instruction of the power test, and the task instruction is used for indicating the electronic equipment to perform the power test of a first mode to an N mode, wherein N is an integer larger than 1; the first processing module is used for informing the power tester of starting the power test when the power test of the xth mode is determined to be started, and switching from the working mode to the xth mode after the power tester starts the power test; the second processing module is used for switching the x-th mode into a working mode after the time of the power test is over, notifying the power tester to stop the power test and completing the power test of the x-th mode; and the notification module is used for entering the power test of the (x+1) th mode until the power test of the (N) th mode is completed, and notifying the power tester to output the power test data from the first mode to the (N) th mode.
In an embodiment, the first processing module includes: the determining module is used for receiving a task instruction of the power test if the xth mode is the first mode, and determining to start executing the power test of the first mode; the determining module is further configured to determine to start executing the power test of the xth mode when notifying the power tester to stop the power test and completing the power test of the xth-1 mode if the xth mode is any one of the second to nth modes and receiving the response of the power tester to stop the power test.
In an embodiment, the first processing module further includes: a first setting module, configured to determine that when a power test of an xth mode is started, set a power management parameter to a parameter value corresponding to the xth mode, and set an effective time of the parameter value; and the switching module is used for switching the working mode into the xth mode when the effective time arrives.
In an embodiment, the device further comprises: the second setting module is used for setting the failure time of the parameter value; and the second processing module is also used for switching the x-th mode into the working mode after the time of the power test is ended when the failure time arrives.
In an embodiment, the device further comprises: and the communication module is used for disconnecting the network connection with the power tester after informing the power tester to start the power test and before switching from the working mode to the xth mode.
In an embodiment, the communication module is further configured to establish a network connection with the power tester after the x-th mode is switched to the operation mode and before notifying the power tester to stop the power test.
According to a third aspect of the present disclosure, there is provided a system comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods described in the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method described in the present disclosure.
The power detection method, the device, the system and the storage medium of the electronic equipment are applied to the electronic equipment, the electronic equipment receives a task instruction of power test, and the power test from a first mode to an Nth mode is carried out according to the task instruction; when the power test of the xth mode is determined to be started, notifying the power tester to start the power test, and switching from the working mode to the xth mode; when the time of the power test is over, the xth mode is switched to the working mode, and the power tester is informed to stop the power test, so that the power test of the xth mode is completed; and entering the power test of the (x+1) th mode, and informing the power tester to output the power test data of the first mode to the Nth mode after the power test of the Nth mode is completed. By the method, the power of the electronic equipment in different modes can be automatically detected, the power detection of all modes can be automatically completed, the test result does not need to be manually recorded by a tester, the labor burden is reduced, the detailed power test data of the corresponding mode can be quickly obtained in different modes, the complete power test data in the detection process is obtained and stored, and in addition, whether abnormal data exist or not can be quickly judged according to the power test data.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a schematic implementation flow diagram of a power detection method of an electronic device according to an embodiment of the disclosure;
FIG. 2 shows a block diagram of a power detection apparatus of an electronic device according to an embodiment of the disclosure;
fig. 3 shows a schematic diagram of the composition of a system according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present disclosure more comprehensible, the technical solutions in the embodiments of the present disclosure will be clearly described in conjunction with the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
Fig. 1 shows a schematic implementation flow diagram of a power detection method of an electronic device according to an embodiment of the disclosure, including:
step 101, receiving a task instruction of power test, where the task instruction is used to instruct the electronic device to perform power tests in a first mode to an nth mode, and N is an integer greater than 1.
First, the electronic device is connected with the cloud platform, and the electronic device receives a task instruction of power test from the cloud platform, wherein the task instruction instructs the electronic device to perform power test in a plurality of modes. The electronic equipment can be a notebook computer, a smart phone, a tablet personal computer and the like. The task instructions are further for instructing the electronic device to initialize prior to entering the power test of the first mode, wherein initializing comprises: changing the display background of the electronic equipment into the standard background of the power test, adjusting the brightness of the screen of the electronic equipment into the standard brightness of the power test, detecting the battery state of the electronic equipment, and when the battery of the electronic equipment is fully charged and the power adapter is in a state of charging the electronic equipment, determining that the electronic equipment is initialized, wherein the standard background and the standard brightness are the backgrounds and the brightness required in the power test specification of the electronic equipment.
Initializing the electronic equipment to ensure that the interference of display background and screen brightness on the power test is eliminated when the power test is carried out on different modes of the electronic equipment, the battery electric quantity of the electronic equipment is not consumed in the test process, and the interference of battery power supply of the electronic equipment on the power test is eliminated.
In addition, the task instruction is further used for the cloud platform to acquire configuration information of the electronic device, the electronic device sends the configuration information to the cloud platform after initialization is completed, and the configuration information comprises: the processor model of the electronic equipment, the memory size of the electronic equipment, the model of the display card and the like.
Performing power testing of the electronic device from a first mode to an Nth mode, wherein the modes of the electronic device include: sleep mode, standby mode, sleep mode, shutdown mode, etc., the task instructions instruct the electronic device to perform power testing of the modes.
Step 102, when it is determined that the power test of the xth mode is started, the power tester is notified to start the power test, and then the operation mode is switched to the xth mode.
Specifically, the power test is carried out on the electronic equipment in a mode by mode through the power tester, the power tester comprises a power converter, a power adapter of the electronic equipment is connected with the power converter of the power tester and used for supplying power to the electronic equipment, the electronic equipment and the power tester are connected into the same Wifi, and in addition, the power tester is also connected with the cloud platform.
When the power test of the x mode is determined to be started, the electronic equipment informs the power tester of starting the power test through the cloud platform, the power tester is started after receiving the notification, the power test is started, and information is sent to the electronic equipment through the cloud platform to inform the electronic equipment that the power tester of the power test is started. The electronic equipment is switched from a working mode to an xth mode, wherein the working mode is a standard mode when the electronic equipment normally operates, and the power tester can perform power test on the xth mode of the electronic equipment after the electronic equipment is switched to the xth mode.
And 103, switching the power test time from the xth mode to the working mode, and informing the power tester to stop the power test to finish the power test of the xth mode.
The power tester performs power testing for preset time on the electronic equipment in each mode, the preset time can be selected according to actual conditions, for example, the power testing for each mode can be selected to be performed for 5 minutes, after the power testing time is over, namely, the power testing for a certain mode is performed for preset time, the electronic equipment is switched back to a working mode from an xth mode, the electronic equipment is not in the xth mode any more, after the electronic equipment completes the mode switching, the electronic equipment informs the power tester to stop the power testing by means of the cloud platform, and therefore the power testing for the xth mode is completed, and power testing data corresponding to the xth mode are obtained.
And 104, entering the power test of the (x+1) th mode, and informing the power tester to output the power test data from the first mode to the N mode until the power test of the N mode is completed.
After the power test of the x-th mode is completed, the power test of the x+1th mode is started, and the power test process of the x+1th mode is the same as the power test process of the x-th mode. And after the power test of all modes is finished, determining that the power test of all modes is finished, and informing the power tester of finishing the power test of all modes by the electronic equipment by means of the cloud platform so that the power tester outputs power test data of all modes.
Further, after the power test data of the first mode to the nth mode are obtained, the standard power data of each mode of the electronic equipment is determined according to the configuration information of the electronic equipment, the power test data of each mode obtained by testing of the power tester is compared with the standard power data, and whether the power detection of the electronic equipment meets the standard is determined.
The power detection method of the electronic equipment provided by the embodiment of the disclosure receives a task instruction of a power test, wherein the task instruction is used for indicating the electronic equipment to perform the power test from a first mode to an N-th mode; when the power test of the xth mode is determined to be started, notifying the power tester to start the power test, and switching from the working mode to the xth mode; the time of the power test is ended, the mode is switched into a working mode from the xth mode, and the power tester is informed to stop the power test, so that the power test of the xth mode is completed; and (3) entering the power test of the (x+1) th mode, and informing the power tester to output the power test data from the first mode to the Nth mode after the power test of the Nth mode is completed. By the method, the power of the electronic equipment in different modes can be automatically detected, the power detection of all modes can be automatically completed, the test result is not required to be recorded manually by a tester, the labor burden is reduced, and the complete test data in the whole detection process can be obtained and stored.
In one embodiment, determining to begin performing the power test for the x-th mode includes:
if the xth mode is the first mode, a task instruction of the power test is received, and the power test of the first mode is determined to be started;
if the xth mode is any one of the second to Nth modes, the power test of the xth-1 mode is completed when the power tester is informed to stop the power test, and the power test of the xth mode is determined to start to be executed when a response of stopping the power test of the power tester is received.
Specifically, if the xth mode is the first mode, when a task instruction of the power test issued by the cloud platform is received, the electronic device starts to execute the power test of the first mode after finishing initialization according to the task instruction; if the xth mode is not the first mode but any one of the second to Nth modes, when the electronic device notifies the power tester to stop the power test, the power test of the xth-1 mode is completed, and after the electronic device receives a signal that the power tester has stopped the power test of the xth-1 mode, the electronic device determines to start executing the power test of the xth mode. The power test of the x-1 mode is automatically performed after the power test of the x-1 mode is completed, so that the power test of all modes can be completed according to the mode sequence when the electronic equipment is subjected to the power test, and manual operation is not needed.
In one embodiment, switching from the operation mode to the xth mode includes: when the power test of the x-th mode is determined to start to be executed, setting the power management parameter to a parameter value corresponding to the x-th mode, and setting the effective time of the parameter value; the effective time arrives and the operation mode is switched to the xth mode.
Specifically, when it is determined that the power test of the x-th mode is started, the power management parameter is set to a parameter value corresponding to the x-th mode, where the parameter value is determined by the mode and indicates the electronic device to enter a corresponding mode, for example, when the power test of the sleep mode is to be performed, the power management parameter of the electronic device is set to a parameter value when the sleep mode is to be performed, so that the electronic device enters the sleep mode. In order to avoid a situation that the power detector is not able to detect the power management parameter after the power management parameter is set, the electronic device enters a corresponding mode immediately, and the effective time of the parameter value is set, and the setting of the effective time can refer to the communication time of the electronic device and the power detector. After the power management parameter is set, the electronic device notifies the power tester to start the power test of the x-th mode, and receives a response message of the power tester, wherein the response message indicates that the power tester has started the power test, so that the effective time of the parameter value is set according to a time difference corresponding to the time when the electronic device notifies the power tester and the time when the response message of the power tester is received, and the effective time can be slightly greater than the time difference, for example, if the time difference of different modes is about 50 seconds, the effective time can be set to be 1 minute. After the effective time is reached, the set power management parameters are immediately effective, and the electronic equipment is switched from the working mode to the xth mode, so that the power tester can perform power detection on the xth mode to obtain power test data corresponding to the xth mode.
In an embodiment, the method further comprises: setting the failure time of the parameter value, and switching from the xth mode to the working mode when the failure time is reached and the time of the power test is ended.
Specifically, the failure time of the parameter value is set, when the failure time is reached, the parameter value fails, the power management parameter is no longer the parameter value corresponding to the x-th mode, the time of the power test is ended, and the electronic equipment is switched from the x-th mode to the working mode. In the power test of the notebook computer, the Standby mode is also different according to the type of the notebook computer, wherein part of the Standby modes in the notebook computer are Modern Standby modes, and part of the Standby modes in the notebook computer are S3 Standby modes. When the standby mode of the notebook computer is subjected to power test, if the standby mode is the S3 standby mode, the failure time of the parameter value is set, and after the failure time of the parameter value is reached, the electronic equipment is switched from the standby mode to the working mode; if the electronic equipment is in the Modern Standby mode, after the failure time of the parameter value is set, the electronic equipment sends the failure time to the power tester, the power tester comprises a relay, when the power tester detects that the failure time is reached, the power adapter of the electronic equipment is plugged in and plugged out through the relay, the electronic equipment is instantly awakened, and the Modern Standby mode is switched into the working mode.
After the electronic equipment is switched from the x-th mode to the working mode, the cloud platform is used for notifying the power tester to stop performing the power test, and the power tester stops performing the power test after receiving the notification. Because the power tester starts to perform the power test before the electronic equipment performs the x mode and ends the power test after the electronic equipment exits the x mode, the data of the initial period of time and the ending period of time in the power test data corresponding to the mode obtained by the power tester are noise data and are not the power test data of the electronic equipment in the x mode, so that in actual operation, the power test data of the initial period of time and the ending period of time can be selected to be removed, and the specific removed data quantity is determined according to the type of the electronic equipment and the actual operation.
In one embodiment, after notifying the power tester to start the power test and before switching from the operation mode to the xth mode, the method further includes: disconnecting the network connection with the power tester.
And after the electronic equipment informs the power tester to start power test and before the power tester is switched from the working mode to the xth mode, the network connection between the electronic equipment and the power tester is disconnected, so that the interference of other equipment in the network on the power test of the electronic equipment is isolated.
Correspondingly, after the electronic equipment is switched from the xth mode to the working mode and before the power tester is informed to stop the power test, the network connection between the electronic equipment and the power tester is reestablished.
To facilitate a further understanding of the above embodiments, a specific implementation scenario is provided below.
When power detection is performed on a notebook computer, power tests are generally performed on a sleep mode, a long standby mode, a short standby mode and a shutdown mode of the notebook computer to determine whether the power detection of the notebook computer is qualified.
In an embodiment, the detection sequence is a sleep mode, a long standby mode, a short standby mode and a shutdown mode, the power adapter of the electronic device is connected to the power converter of the power tester, the electronic device is also connected to the wireless router of the power tester, and the electronic device and the power tester are respectively connected with the cloud platform in a communication way. Firstly, the electronic equipment receives a task instruction of the cloud platform, performs power test according to the task instruction, firstly initializes the electronic equipment, changes a display screen into a standard screen, adjusts the brightness to be the standard brightness, and sends configuration information of the electronic equipment to the cloud platform for storage after determining that the battery of the electronic equipment is full and the power adapter is also in a connected state.
After the configuration information is sent to the cloud platform, the electronic equipment starts to execute power detection of the sleep mode, the electronic equipment sets the power management parameter to a parameter value corresponding to the sleep mode, and sets the effective time of the parameter value, for example, after the effective time is set to 1 minute, the electronic equipment enters the sleep mode after 1 minute, after the power management parameter is set, the electronic equipment informs the power tester to start power test by means of the cloud platform, the power tester starts to perform power test after receiving the notification, and returns the notification to the electronic equipment to inform the electronic equipment that the power tester has started to perform power test, the electronic equipment disconnects the network connection with the power tester, and enters the sleep mode when the effective time arrives.
In addition, a failure time is set, so that the power test in a certain mode of the electronic equipment cannot be carried out unrestrictedly, and therefore whether the mode meets requirements or not is determined through a period of power test, for example, 5 minutes of power test data are required to be collected, the failure time is set to be 5 minutes after the effective time is started, and therefore when the failure time is reached, the time of the power test in the mode is ended. When the failure time arrives, the electronic equipment is switched back to the working mode from the sleep mode, network connection is established with the power tester, the power tester is informed to stop the power test by means of the cloud platform, the power tester stops the power test after receiving the notification, and the notification is returned to the electronic equipment to inform the electronic equipment that the power tester stops the power test.
After receiving the notification returned by the power tester, the electronic device determines that the power test in the sleep mode is completed, and then sets the power management parameter of the electronic device to a parameter value corresponding to the long standby mode, where the test process is the same as the sleep mode and is not described in detail herein. After the electronic equipment receives the notice of stopping the power test returned by the power tester, the electronic equipment determines that the power test in the long standby mode is finished, then sets the power management parameter to the parameter value corresponding to the short standby mode, and so on until the electronic equipment finally receives the notice of stopping the power test returned by the power tester, determines that the power test in the shutdown mode is finished, and notifies the power tester that the power test in all modes is finished by means of the cloud platform, so that the power test data corresponding to all modes can be generated.
Fig. 2 shows a schematic block diagram of a power detection apparatus of an electronic device according to an embodiment of the disclosure.
Referring to fig. 2, according to a second aspect of the embodiments of the present disclosure, there is provided a power detection apparatus of an electronic device, the apparatus being applied to the electronic device, the apparatus including: a receiving module 201, configured to receive a task instruction for power test, where the task instruction is configured to instruct an electronic device to perform power tests in a first mode through an nth mode, and N is an integer greater than 1; a first processing module 202, configured to, when determining to start executing the power test of the xth mode, notify the power tester to start executing the power test, and switch from the working mode to the xth mode; the second processing module 203 is configured to switch from the xth mode to the working mode after the time for power test is over, and notify the power tester to stop the power test, so as to complete the power test of the xth mode; and the notification module 204 is configured to enter the power test of the (x+1) th mode, and notify the power tester to output the power test data from the first mode to the nth mode until the power test of the nth mode is completed.
In one embodiment, the first processing module 202 includes: a determining module 2021, configured to, if the xth mode is the first mode, receive a task instruction of the power test, determine to start executing the power test of the first mode; the determining module 2021 is further configured to determine to start executing the power test of the xth mode when the power tester is notified to stop the power test and the power test of the xth-1 mode is completed and a response of the power tester to stop the power test is received if the xth mode is any one of the second to nth modes.
In an embodiment, the first processing module 202 further includes: a first setting module 2022, configured to determine, when the power test of the xth mode is started, set the power management parameter to a parameter value corresponding to the xth mode, and set an effective time of the parameter value; a switching module 2023, configured to switch from the operation mode to the xth mode when the effective time arrives.
In an embodiment, the apparatus further comprises: a second setting module 205, configured to set a failure time of the parameter value; the second processing module 203 is further configured to switch from the xth mode to the operation mode when the failure time arrives and the time of the power test ends.
In an embodiment, the apparatus further comprises: the communication module 206 is configured to disconnect the network connection with the power tester after notifying the power tester to start the power test and before switching from the operation mode to the xth mode.
In an embodiment, the communication module 206 is further configured to establish a network connection with the power tester after the x-th mode is switched to the operation mode and before notifying the power tester to stop the power test.
According to embodiments of the present disclosure, the present disclosure also provides a system and a readable storage medium.
FIG. 3 illustrates a schematic block diagram of an example system 300 that may be used to implement embodiments of the present disclosure. The system is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The system may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 3, the system 300 includes a computing unit 301 that may perform various suitable actions and processes in accordance with a computer program stored in a Read Only Memory (ROM) 302 or a computer program loaded from a storage unit 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the system 300 may also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other by a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Various components in system 300 are connected to I/O interface 305, including: an input unit 306 such as a keyboard, a mouse, etc.; an output unit 307 such as various types of displays, speakers, and the like; a storage unit 308 such as a magnetic disk, an optical disk, or the like; and a communication unit 309 such as a network card, modem, wireless communication transceiver, etc. The communication unit 309 allows the system 300 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 301 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 301 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 301 performs the various methods and processes described above, such as a power detection method for an electronic device. For example, in some embodiments, a method of power detection for an electronic device may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 308. In some embodiments, part or all of the computer program may be loaded and/or installed onto system 300 via ROM 302 and/or communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of a power detection method of an electronic device as described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform a power detection method of an electronic device by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The foregoing is merely a specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the disclosure, and it should be covered in the protection scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A power detection method of an electronic device, wherein the method is applied to the electronic device, the method comprising:
receiving a task instruction of power test, wherein the task instruction is used for indicating the electronic equipment to perform power test from a first mode to an N-th mode, and N is an integer greater than 1;
when the power test of the xth mode is determined to be started, notifying the power tester to start the power test, and switching from the working mode to the xth mode;
the time of the power test is ended, the mode is switched into a working mode from the xth mode, and the power tester is informed to stop the power test, so that the power test of the xth mode is completed;
and entering the power test of the (x+1) th mode, and informing the power tester to output the power test data of the first mode to the Nth mode after the power test of the Nth mode is completed.
2. The method of claim 1, wherein the determining to begin performing the power test for the x-th mode comprises:
if the xth mode is the first mode, a task instruction of the power test is received, and the power test of the first mode is determined to be started;
if the xth mode is any one of the second to Nth modes, the power test of the xth mode is finished after the power test is notified to the power tester to stop the power test, and the power test of the xth mode is determined to start to be executed when the response of the power tester to stop the power test is received.
3. The method of claim 1, wherein the switching from the operation mode to the x-th mode comprises:
when determining to start executing the power test of the x-th mode, setting a power management parameter to a parameter value corresponding to the x-th mode, and setting the effective time of the parameter value;
and when the effective time arrives, switching from the working mode to the xth mode.
4. A method according to claim 3, characterized in that the method further comprises: setting a failure time of the parameter value;
correspondingly, the time of the power test is ended, and the x-th mode is switched to the working mode, which comprises the following steps:
and when the failure time arrives, the time of the power test is ended, and the mode is switched to the working mode from the xth mode.
5. The method of claim 1, wherein after notifying the power tester to begin power testing and before switching from the operational mode to the xth mode, the method further comprises:
and disconnecting the network connection with the power tester.
6. The method of claim 5, further comprising, after said switching from the xth mode to the operational mode and before notifying the power tester to stop the power test:
and establishing network connection with the power tester.
7. A power detection apparatus for an electronic device, the apparatus being applied to the electronic device, the apparatus comprising:
the electronic equipment comprises a receiving module, a power test module and a power test module, wherein the receiving module is used for receiving a task instruction of the power test, and the task instruction is used for indicating the electronic equipment to perform the power test of a first mode to an N mode, wherein N is an integer larger than 1;
the first processing module is used for informing the power tester of starting the power test when the power test of the xth mode is determined to be started, and switching from the working mode to the xth mode after the power tester starts the power test;
the second processing module is used for switching the x-th mode into a working mode after the time of the power test is over, notifying the power tester to stop the power test and completing the power test of the x-th mode;
and the notification module is used for entering the power test of the (x+1) th mode until the power test of the (N) th mode is completed, and notifying the power tester to output the power test data from the first mode to the (N) th mode.
8. The apparatus of claim 7, wherein the first processing module comprises:
the determining module is used for receiving a task instruction of the power test if the xth mode is the first mode, and determining to start executing the power test of the first mode;
the determining module is further configured to determine to start executing the power test of the xth mode when notifying the power tester to stop the power test and completing the power test of the xth-1 mode if the xth mode is any one of the second to nth modes and receiving the response of the power tester to stop the power test.
9. A system, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-6.
CN202310561982.0A 2023-05-16 2023-05-16 Power detection method, device and system of electronic equipment and storage medium Pending CN116298497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310561982.0A CN116298497A (en) 2023-05-16 2023-05-16 Power detection method, device and system of electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310561982.0A CN116298497A (en) 2023-05-16 2023-05-16 Power detection method, device and system of electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116298497A true CN116298497A (en) 2023-06-23

Family

ID=86836315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310561982.0A Pending CN116298497A (en) 2023-05-16 2023-05-16 Power detection method, device and system of electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116298497A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102290019A (en) * 2011-08-31 2011-12-21 捷星显示科技(福建)有限公司 Two-in-one detection method of picture quality and power of LCD (liquid crystal display)
CN102572503A (en) * 2010-12-30 2012-07-11 厦门华侨电子股份有限公司 Automatic test system for functions of television set and method thereof
WO2014180148A1 (en) * 2013-05-10 2014-11-13 大唐移动通信设备有限公司 Method and system for detecting output power of dual mode rru device
CN104272813A (en) * 2011-12-16 2015-01-07 高通股份有限公司 Power conservation techniques for use in devices with selectable power modes
CN105307099A (en) * 2015-11-11 2016-02-03 西安工程大学 System for testing power of loudspeaker and method for testing power and low-frequency parameter
US20160048197A1 (en) * 2014-08-18 2016-02-18 Atmel Corporation Instrumenting switch mode power supply to measure circuit power consumption
CN106771563A (en) * 2017-02-23 2017-05-31 广州视源电子科技股份有限公司 Board power testing method, apparatus and system
CN106872829A (en) * 2017-03-16 2017-06-20 京信通信技术(广州)有限公司 The test system of multifrequency integrated power amplifier
CN109428545A (en) * 2017-09-04 2019-03-05 丰郅(上海)新能源科技有限公司 The method that power optimization device for photovoltaic module switches between different working modes
CN110545147A (en) * 2019-09-10 2019-12-06 广东小天才科技有限公司 non-signaling coupling test method and system
CN112887706A (en) * 2021-01-15 2021-06-01 Oppo广东移动通信有限公司 Power consumption determination method and device, storage medium and electronic equipment
CN114295928A (en) * 2022-03-09 2022-04-08 广州市保伦电子有限公司 Campus electrical appliance fault detection method, background server and system
WO2022178680A1 (en) * 2021-02-23 2022-09-01 华为数字能源技术有限公司 Photovoltaic cell testing method and apparatus, and system, medium, and chip
CN115902383A (en) * 2023-02-02 2023-04-04 紫光同芯微电子有限公司 Power consumption testing method and device of smart card and related product

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572503A (en) * 2010-12-30 2012-07-11 厦门华侨电子股份有限公司 Automatic test system for functions of television set and method thereof
CN102290019A (en) * 2011-08-31 2011-12-21 捷星显示科技(福建)有限公司 Two-in-one detection method of picture quality and power of LCD (liquid crystal display)
CN104272813A (en) * 2011-12-16 2015-01-07 高通股份有限公司 Power conservation techniques for use in devices with selectable power modes
WO2014180148A1 (en) * 2013-05-10 2014-11-13 大唐移动通信设备有限公司 Method and system for detecting output power of dual mode rru device
US20160048197A1 (en) * 2014-08-18 2016-02-18 Atmel Corporation Instrumenting switch mode power supply to measure circuit power consumption
CN105307099A (en) * 2015-11-11 2016-02-03 西安工程大学 System for testing power of loudspeaker and method for testing power and low-frequency parameter
CN106771563A (en) * 2017-02-23 2017-05-31 广州视源电子科技股份有限公司 Board power testing method, apparatus and system
CN106872829A (en) * 2017-03-16 2017-06-20 京信通信技术(广州)有限公司 The test system of multifrequency integrated power amplifier
CN109428545A (en) * 2017-09-04 2019-03-05 丰郅(上海)新能源科技有限公司 The method that power optimization device for photovoltaic module switches between different working modes
CN110545147A (en) * 2019-09-10 2019-12-06 广东小天才科技有限公司 non-signaling coupling test method and system
CN112887706A (en) * 2021-01-15 2021-06-01 Oppo广东移动通信有限公司 Power consumption determination method and device, storage medium and electronic equipment
WO2022178680A1 (en) * 2021-02-23 2022-09-01 华为数字能源技术有限公司 Photovoltaic cell testing method and apparatus, and system, medium, and chip
CN114295928A (en) * 2022-03-09 2022-04-08 广州市保伦电子有限公司 Campus electrical appliance fault detection method, background server and system
CN115902383A (en) * 2023-02-02 2023-04-04 紫光同芯微电子有限公司 Power consumption testing method and device of smart card and related product

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
B. MIAO等: "Detection of instability and adaptive compensation of digitally controlled switched-mode power supplies", 《TWENTIETH ANNUAL IEEE APPLIED POWER ELECTRONICS CONFERENCE AND EXPOSITION, 2005. APEC 2005.》 *
赵玮等: "基于S TM3 2 的车辆驱动轮瞬时输出功率 测量系统研究", 《工程机械》 *

Similar Documents

Publication Publication Date Title
EP2851700B1 (en) Method and terminal for displaying capacity of battery
CN106507445A (en) A kind of Wireless Fidelity Wi Fi scan methods and mobile terminal
CN107885683B (en) Terminal and current testing method thereof
US10095292B2 (en) Linear load transition between power supplies and battery backup units
CN104156289A (en) Synchronous control method and system based on detection circuit
CN110767946B (en) Method and device for controlling discharging of mobile terminal and mobile terminal
CN108490289B (en) Electronic equipment testing method and device and electronic equipment
CN110545147B (en) Non-signaling coupling test method and system
CN116298497A (en) Power detection method, device and system of electronic equipment and storage medium
CN107179972A (en) For the method for calculation machine, microcontroller, test equipment and test system
CN111176958A (en) Information monitoring method, system and storage medium
CN116027226A (en) Component testing method and device, electronic equipment and storage medium
CN113220554B (en) Method and apparatus for detecting performance of program code
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN115454872A (en) Database test method, device, equipment and storage medium
CN108960811A (en) A kind of method of payment and client
CN110989814A (en) Server protection method, device and equipment
CN112416696A (en) Method, device and equipment for detecting abnormal power consumption of washing machine and storage medium
CN116840715A (en) Method, device and system for detecting power consumption of battery of electronic equipment
CN117538604A (en) Sleep current measurement method, apparatus, device and storage medium
CN115201611B (en) Method for testing VR power supply stability of CPU and related components
CN113377462A (en) Processing method, device and equipment for small program and storage medium
CN110347584B (en) Method and device for testing and adjusting credit card policy package, electronic equipment and medium
CN117234559A (en) Firmware updating method and device and electronic equipment
JP6770632B2 (en) Electronic devices, calculation methods and programs

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230623