CN116185737A - DC abnormal power failure detection method and device based on notebook computer and computer equipment - Google Patents

DC abnormal power failure detection method and device based on notebook computer and computer equipment Download PDF

Info

Publication number
CN116185737A
CN116185737A CN202310163966.6A CN202310163966A CN116185737A CN 116185737 A CN116185737 A CN 116185737A CN 202310163966 A CN202310163966 A CN 202310163966A CN 116185737 A CN116185737 A CN 116185737A
Authority
CN
China
Prior art keywords
notebook
power
tested
test
computer
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
CN202310163966.6A
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.)
Dongguan Yilian Information System Co ltd
Original Assignee
Dongguan Yilian Information System 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 Dongguan Yilian Information System Co ltd filed Critical Dongguan Yilian Information System Co ltd
Priority to CN202310163966.6A priority Critical patent/CN116185737A/en
Publication of CN116185737A publication Critical patent/CN116185737A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • 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
    • 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/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application relates to a DC abnormal power failure detection method, a device, a computer device and a storage medium based on a notebook, wherein the method comprises the following steps: setting a power control option of the notebook computer to be tested, and setting a low-power operation option as a battery use option: no action is taken "; when the electric quantity of the notebook battery to be tested is exhausted, the whole machine is abnormally powered down; the host test script controls the PDU to supply power to the AC power adapter of the notebook computer to be tested for a period of time so as to enable the notebook computer to be tested to be automatically started; the host test script controls the PDU to stop supplying power to the AC power adapter of the notebook computer to be tested, and checks whether the notebook computer to be tested can communicate with the host; if communication cannot be performed, the fact that the SSD of the notebook to be tested is abnormal is indicated, and at the moment, the PDU starts to supply power for the AC power adapter of the notebook to be tested again and is used for preventing the problem that the power of the battery of the notebook to be tested is lost due to abnormal power failure after the electric quantity of the battery of the notebook to be tested is exhausted. The invention ensures the original power-down scene of the notebook computer to the maximum extent.

Description

DC abnormal power failure detection method and device based on notebook computer and computer equipment
Technical Field
The invention relates to the technical field of computer testing, in particular to a DC abnormal power failure testing method, device, computer equipment and storage medium based on a notebook.
Background
A PCIe NVMe SSD (hereinafter referred to as a notebook) is widely used as an operating system boot disk of a consumer personal notebook computer (hereinafter referred to as a notebook), and before the SSD leaves the factory, manufacturers can perform a large number of strict tests on the SSD installed on the corresponding notebook, wherein abnormal power failure of the notebook is generally one of important test items of the SSD in a research and development stage.
At present, in a test of performing an abnormal power failure on a notebook computer, an abnormal power failure scene of the notebook computer in an AC (Alternating Current ) power adapter (i.e., commonly called a "notebook charger") power supply state and an abnormal power failure scene of the notebook computer in a DC (Direct Current) power supply state (i.e., the AC power adapter is pulled out and a battery carried by the notebook computer is used for power supply) are covered. The test method adopted at present mainly comprises two types of test methods for abnormal power-down scenes under DC power supply: the method is simple but low in efficiency, and cannot be used for large-scale and large-batch testing; the other method is to connect the notebook battery by using a programmable direct current power supply, and control the charge and discharge of the notebook battery by using the programmable direct current power supply to realize the abnormal power failure test.
Disclosure of Invention
Based on the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for DC abnormal power failure detection based on a notebook.
A notebook-based DC abnormal power down test method, the method comprising:
setting a power control option of the notebook computer to be tested, and setting a low-power operation option as a battery use option: no action is taken ";
when the electric quantity of the notebook battery to be tested is exhausted, the whole machine is abnormally powered down;
the host test script controls the PDU to supply power to the AC power adapter of the notebook computer to be tested for a period of time so as to enable the notebook computer to be tested to be automatically started;
the host test script controls the PDU to stop supplying power to the AC power adapter of the notebook computer to be tested, and checks whether the notebook computer to be tested can communicate with the host;
if communication cannot be performed, the fact that the SSD of the notebook to be tested is abnormal is indicated, at the moment, the PDU starts to supply power to the AC power adapter of the notebook to be tested again and is used for preventing the problem that the power of the battery of the notebook to be tested is lost due to abnormal power failure after the electric quantity of the battery of the notebook to be tested is exhausted, and then the test is terminated.
In one embodiment, the step of the host test script control PDU powering the notebook AC power adapter under test for a period of time further comprises:
the power is supplied for no more than 120 seconds to avoid charging too much of the notebook battery and thus increasing the overall test cycle.
In one embodiment, after the step of stopping power supply to the AC power adapter of the notebook computer to be tested by the host test script control PDU and checking whether the notebook computer to be tested can communicate with the host, the method further includes:
if communication can be carried out, continuing to test, and carrying out continuous read-write test on the SSD so as to accelerate the exhaustion of the electric quantity of the notebook battery;
the test script waits for a period of time not exceeding 120 seconds.
In one embodiment, after the step of waiting a period of time for the test script, further comprising:
judging whether the number of the test wheels reaches the requirement or not;
if not, jumping to the step of controlling PDU by the host test script to supply power to the AC power adapter of the notebook computer to be tested for a period of time, and if so, ending the test.
A notebook-based DC abnormal power down test device, the device comprising:
the setting module is used for setting a power control option of the notebook computer to be tested, and setting a low-power operation option as a battery: no action is taken ";
the power-down module is used for abnormal power down of the whole machine when the electric quantity of the notebook battery to be tested is exhausted;
the power supply module is used for controlling the PDU to supply power to the AC power adapter of the notebook computer to be tested by the host test script so as to enable the notebook computer to be tested to be automatically started;
the checking module is used for controlling the PDU to stop supplying power to the AC power adapter of the notebook computer to be tested by the host computer test script, and checking whether the notebook computer to be tested can communicate with the host computer;
and the re-power supply module is used for indicating that the SSD of the notebook computer to be tested possibly has abnormality if communication cannot be carried out, and at the moment, the PDU starts to supply power for the AC power adapter of the notebook computer to be tested again and always so as to prevent the problem of losing the site caused by abnormal power failure after the electric quantity of the battery of the notebook computer to be tested is exhausted, and then the test is terminated.
In one embodiment, the power is supplied to the power module for no more than 120 seconds to avoid charging too much of the notebook battery to increase the overall test cycle.
In one embodiment, the apparatus further includes a read-write module, where the read-write module is configured to:
if communication can be carried out, continuing to test, and carrying out continuous read-write test on the SSD so as to accelerate the exhaustion of the electric quantity of the notebook battery;
the test script waits for a period of time not exceeding 120 seconds.
In one embodiment, the apparatus further includes a determining module, where the determining module is configured to:
judging whether the number of the test wheels reaches the requirement or not;
if not, jumping to the step of controlling PDU by the host test script to supply power to the AC power adapter of the notebook computer to be tested for a period of time, and if so, ending the test.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the methods described above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the methods described above.
According to the method, the device, the computer equipment and the storage medium for testing the abnormal power failure based on the DC abnormal power failure of the notebook computer, the characteristic of the notebook computer under the DC power supply is utilized, namely, the notebook computer is in a DC power supply state, a user can set relevant options of a battery in an operating system, the setting can enable the electric quantity of the battery of the notebook computer to be completely exhausted, when the electric quantity is exhausted, namely, the DC cannot supply power to the notebook computer any more, and at the moment, the notebook computer can automatically and abnormally power down. After the notebook computer is abnormally powered down, the other host computer is utilized, and the programmable power supply distributor is controlled to power on the notebook computer AC adapter through the self-programming test script, so that the notebook computer can be automatically started. The invention can automatically perform the abnormal power-down test of the DC whole machine on the notebook computer in a large scale, does not need any transformation on any part of the notebook computer, and ensures the original power-down scene of the notebook computer to the maximum extent.
Drawings
FIG. 1 is a flow diagram of a notebook-based DC abnormal power down test method in one embodiment;
FIG. 2 is a flow chart of a method for detecting DC abnormal power failure based on a notebook computer in another embodiment;
FIG. 3 is a flow chart of a method for detecting DC abnormal power failure based on a notebook computer in yet another embodiment;
FIG. 4 is a block diagram of a notebook-based DC anomaly power down test device in one embodiment;
FIG. 5 is a block diagram of a notebook-based DC abnormal power down test apparatus in another embodiment;
FIG. 6 is a block diagram of a notebook-based DC abnormal power down test apparatus in yet another embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
At present, two testing methods are mainly adopted for the abnormal power-down scene under DC power supply: the method is simple but low in efficiency, and cannot be used for large-scale and large-batch testing; the other method is to connect the notebook battery by using a programmable direct current power supply, and control the charge and discharge of the notebook battery by using the programmable direct current power supply to realize the abnormal power failure test.
Based on the method, the invention provides a DC abnormal power failure test method based on a notebook computer, which aims to automatically perform DC complete machine abnormal power failure test on the notebook computer in a large scale without any modification of any part of the notebook computer, thereby maximally ensuring the original power failure scene of the notebook computer.
In one embodiment, as shown in fig. 1, there is provided a notebook-based DC abnormal power down test method, the method comprising:
step 102, setting a power control option of the notebook to be tested, and setting a low-power operation option as a battery use option: no action is taken ";
104, when the electric quantity of the notebook battery to be tested is exhausted, the whole machine is abnormally powered down;
step 106, the host test script controls the PDU to supply power to the AC power adapter of the notebook computer to be tested for a period of time so as to enable the notebook computer to be tested to be automatically started;
step 108, the host test script controls the PDU to stop supplying power to the AC power adapter of the notebook computer to be tested, and checks whether the notebook computer to be tested can communicate with the host;
step 110, if communication is not possible, it indicates that an abnormality may occur in the SSD of the notebook to be tested, at this time, the PDU starts again and supplies power to the AC power adapter of the notebook to be tested all the time to prevent the problem of losing the field due to abnormal power failure after the electric quantity of the battery of the notebook to be tested is exhausted, and then the test is terminated.
In this embodiment, a method for testing abnormal power failure based on a notebook DC is provided, which uses the characteristic of the notebook DC in power supply to perform the abnormal power failure test, that is, the principle is that a user can set relevant options of a battery in an operating system when the notebook DC is in a power supply state, the setting can fully exhaust the electric quantity of the battery of the notebook, and when the electric quantity is exhausted, the DC cannot supply power to the notebook any more, and at this time, the notebook can automatically power failure abnormally. After the notebook is abnormally powered down, another host is utilized, and a programmable power supply distributor (PDU) is controlled to power on the notebook AC adapter through a self-organized test script, so that the notebook can be automatically started. The specific test flow is as follows: .
First, in the "control panel" of the Windows system, "power plan" is entered, the "change advanced power setting" is clicked, and in the "battery" option, this option for "low battery operation" is set as "use battery: no action is taken. The setting can ensure that the system does not actively perform any operation when the notebook battery is in low electric quantity, so that the notebook battery can be abnormally powered down after being automatically and completely exhausted.
The host test script controls the PDU to supply power to the notebook AC power adapter for a period of time, which is equivalent to charging the DC power supply, and also enables the notebook to be automatically started.
In one embodiment, the step of the host test script control PDU powering the notebook AC power adapter to be tested for a period of time further comprises:
the power is supplied for no more than 120 seconds to avoid charging too much of the notebook battery and thus increasing the overall test cycle.
Specifically, the value of the power supply time N may be determined according to practical situations, and it is recommended that N not exceed 120, so that the battery of the notebook battery is not charged too much, thereby increasing the whole test period.
The host test script control PDU then stops powering the notebook AC power adapter, which is equivalent to the notebook battery. The host test script checks whether the notebook can communicate with the host, if so, the test is continued; if the power supply is not capable, the SSD is indicated to be very likely to be abnormal, so that the notebook computer cannot communicate with the host computer, the PDU is started again and always supplies power to the AC power adapter of the notebook computer, the problem that the power supply is lost due to abnormal power failure after the electric quantity of the battery of the notebook computer is exhausted is solved, and then the test is terminated.
In the above embodiment, the abnormal power failure test is performed by using the characteristics of the notebook computer under DC power supply, that is, the principle is that the user can set relevant options of the battery in the operating system when the notebook computer is in the DC power supply state, the setting can fully exhaust the electric quantity of the battery of the notebook computer, and when the electric quantity is exhausted, the DC cannot supply power to the notebook computer any more, at this time, the notebook computer can automatically abnormally power down. After the notebook computer is abnormally powered down, the other host computer is utilized, and the programmable power supply distributor is controlled to power on the notebook computer AC adapter through the self-programming test script, so that the notebook computer can be automatically started. The invention can automatically perform the abnormal power-down test of the DC whole machine on the notebook computer in a large scale, does not need any transformation on any part of the notebook computer, and ensures the original power-down scene of the notebook computer to the maximum extent.
In one embodiment, as shown in fig. 2, there is provided a method for testing DC abnormal power failure based on a notebook computer, the method further comprising, after the step of stopping power supply to an AC power adapter of the notebook computer to be tested by a host test script control PDU and checking whether the notebook computer to be tested can communicate with the host computer:
step 202, if communication can be performed, continuing the test, and performing continuous read-write test on the SSD to accelerate the exhaustion of the battery of the notebook;
step 204, the test script waits for a period of time, the waiting time not exceeding 120 seconds;
step 206, judging whether the number of test rounds has reached the requirement;
step 208, if not, jumping to a step of supplying power to the notebook AC power adapter to be tested by the host test script control PDU for a period of time, and if so, ending the test.
Specifically, referring to fig. 3, a complete DC abnormal power down test method is provided, and its specific test environment and test procedure are as follows:
hardware requirements: the control host is preferably an associative M8600T desktop, and the notebook computer to be tested is a notebook computer which needs to have a function of starting automatically after the AC adapter is plugged in and can be started without manually pressing a start key; the SSD to be tested is an SSD supporting PCIe and NVMe protocols; the PDU equipment is an AP7921 type PDU of APC company, and the PDU can be powered on and powered off by calling the interface given by the PDU through the Python language. In this embodiment, the AP7921 type programmable power distribution unit of APC company is preferred as the power failure device.
Software requirements: the test software is Windows system, mobaXterm software, used for calling the test script; the test script is a test script written in the Python language.
Step 1, entering a power supply plan in a control panel of a Windows system, clicking a high-level power supply setting, and setting a low-power operation option as a battery use option in a battery option: no action is taken. The setting can ensure that the system does not actively perform any operation when the notebook battery is in low electric quantity, so that the notebook battery can be abnormally powered down after being automatically and completely exhausted.
And 2, exhausting the electric quantity of the notebook battery, and causing abnormal power failure of the whole machine.
Step 3, the host test script controls the PDU to supply power to the notebook AC power adapter for N seconds, wherein the value of N can be determined according to practical conditions, and the N is recommended not to exceed 120, so that excessive electric quantity of the notebook battery is not charged, the whole test period is increased, and the step is equivalent to charging a DC power supply, and the notebook can be automatically started.
And 4, the host test script controls the PDU to stop supplying power to the notebook AC power adapter, and the power supply is equivalent to the power supply of the notebook battery.
Step 5, the host test script checks whether the notebook can communicate with the host, if so, the test is continued; if the power supply is not capable, the SSD is indicated to be very likely to be abnormal, so that the notebook computer cannot communicate with the host computer, the PDU is started again and always supplies power to the AC power adapter of the notebook computer, the problem that the power supply is lost due to abnormal power failure after the electric quantity of the battery of the notebook computer is exhausted is solved, and then the test is terminated.
And 6, performing continuous read-write test on the SSD so as to accelerate the exhaustion of the electric quantity of the notebook battery.
And 7, waiting M seconds by the test script, wherein the M value is determined according to how long the time of the step 6 is needed to enable the battery of the notebook computer to be exhausted, and if N in the step 3 is less than or equal to 120, the M value generally does not exceed 120 seconds.
And 8, repeating the steps 3-7X, wherein the value of X is determined according to the actual situation.
In the embodiment, the real scene of power failure of the notebook can be restored more accurately, the notebook does not need to be modified, and batch large-scale automatic testing can be realized only through power supply setting and script control.
It should be understood that, although the steps in the flowcharts of fig. 1-3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or phases are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or phases of other steps or other steps.
In one embodiment, as shown in fig. 4, there is provided a notebook-based DC abnormal power down measurement apparatus 400, the apparatus comprising:
the setting module 401 is configured to set a power control option of the notebook to be tested, and set a "low power operation" option therein to "use battery: no action is taken ";
a power-down module 402, configured to perform abnormal power-down of the whole machine when the electric quantity of the notebook battery to be tested is exhausted;
the power supply module 403 is configured to control the PDU to supply power to the AC power adapter of the notebook to be tested by using the host test script for a period of time, so that the notebook to be tested is automatically started;
the checking module 404 is configured to control the PDU to stop supplying power to the AC power adapter of the notebook computer to be tested by using the host test script, and check whether the notebook computer to be tested can communicate with the host;
and the re-power module 405 is configured to indicate that an abnormality may occur in the SSD of the notebook to be tested if the communication is disabled, and at this time, the PDU starts to supply power to the AC power adapter of the notebook to be tested again and always to prevent the problem of losing the field caused by abnormal power failure after the electric quantity of the battery of the notebook to be tested is exhausted, and then the test is terminated.
In one embodiment, the time of power in the power module 403 does not exceed 120 seconds to avoid charging too much notebook battery power to increase the overall test cycle.
In one embodiment, as shown in fig. 5, there is provided a DC abnormal power failure detection device 400 based on a notebook, the device further including a read-write module 406, where the read-write module is configured to:
if communication can be carried out, continuing to test, and carrying out continuous read-write test on the SSD so as to accelerate the exhaustion of the electric quantity of the notebook battery;
the test script waits for a period of time not exceeding 120 seconds.
In one embodiment, as shown in fig. 6, there is provided a device 400 for DC abnormal power failure detection based on a notebook computer, the device further comprising a judging module 407, wherein the judging module is configured to:
judging whether the number of the test wheels reaches the requirement or not;
if not, jumping to the step of controlling PDU by the host test script to supply power to the AC power adapter of the notebook computer to be tested for a period of time, and if so, ending the test.
For specific limitations regarding the notebook-based DC abnormal power down test apparatus, reference may be made to the above limitations regarding the notebook-based DC abnormal power down test method, and no further description is given herein.
In one embodiment, a computer device is provided, 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a notebook-based DC abnormal power down test method.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the method embodiments above when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the above method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described embodiment methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A notebook-based DC abnormal power down test method, the method comprising:
setting a power control option of the notebook computer to be tested, and setting a low-power operation option as a battery use option: no action is taken ";
when the electric quantity of the notebook battery to be tested is exhausted, the whole machine is abnormally powered down;
the host test script controls the PDU to supply power to the AC power adapter of the notebook computer to be tested for a period of time so as to enable the notebook computer to be tested to be automatically started;
the host test script controls the PDU to stop supplying power to the AC power adapter of the notebook computer to be tested, and checks whether the notebook computer to be tested can communicate with the host;
if communication cannot be performed, the fact that the SSD of the notebook to be tested is abnormal is indicated, at the moment, the PDU starts to supply power to the AC power adapter of the notebook to be tested again and is used for preventing the problem that the power of the battery of the notebook to be tested is lost due to abnormal power failure after the electric quantity of the battery of the notebook to be tested is exhausted, and then the test is terminated.
2. The notebook-based DC abnormal power down test method of claim 1, wherein the step of the host test script control PDU powering the notebook AC power adapter under test for a period of time further comprises:
the power is supplied for no more than 120 seconds to avoid charging too much of the notebook battery and thus increasing the overall test cycle.
3. The notebook-based DC abnormal power down test method of claim 2, further comprising, after the step of stopping power to the notebook AC power adapter under test by the host test script control PDU and checking whether the notebook under test can communicate with a host:
if communication can be carried out, continuing to test, and carrying out continuous read-write test on the SSD so as to accelerate the exhaustion of the electric quantity of the notebook battery;
the test script waits for a period of time not exceeding 120 seconds.
4. The notebook-based DC abnormal power down test method of claim 3, further comprising, after the step of waiting a period of time for the test script:
judging whether the number of the test wheels reaches the requirement or not;
if not, jumping to the step of controlling PDU by the host test script to supply power to the AC power adapter of the notebook computer to be tested for a period of time, and if so, ending the test.
5. A notebook-based DC abnormal power down test device, the device comprising:
the setting module is used for setting a power control option of the notebook computer to be tested, and setting a low-power operation option as a battery: no action is taken ";
the power-down module is used for abnormal power down of the whole machine when the electric quantity of the notebook battery to be tested is exhausted;
the power supply module is used for controlling the PDU to supply power to the AC power adapter of the notebook computer to be tested by the host test script so as to enable the notebook computer to be tested to be automatically started;
the checking module is used for controlling the PDU to stop supplying power to the AC power adapter of the notebook computer to be tested by the host computer test script, and checking whether the notebook computer to be tested can communicate with the host computer;
and the re-power supply module is used for indicating that the SSD of the notebook computer to be tested possibly has abnormality if communication cannot be carried out, and at the moment, the PDU starts to supply power for the AC power adapter of the notebook computer to be tested again and always so as to prevent the problem of losing the site caused by abnormal power failure after the electric quantity of the battery of the notebook computer to be tested is exhausted, and then the test is terminated.
6. The notebook-based DC power down test device of claim 5, wherein the time of power in the power module is no more than 120 seconds to avoid charging excessive notebook battery power to increase the overall test cycle.
7. The notebook-based DC abnormal power down testing apparatus of claim 6, further comprising a read-write module for:
if communication can be carried out, continuing to test, and carrying out continuous read-write test on the SSD so as to accelerate the exhaustion of the electric quantity of the notebook battery;
the test script waits for a period of time not exceeding 120 seconds.
8. The notebook-based DC abnormal power down testing apparatus of claim 7, further comprising a determination module configured to:
judging whether the number of the test wheels reaches the requirement or not;
if not, jumping to the step of controlling PDU by the host test script to supply power to the AC power adapter of the notebook computer to be tested for a period of time, and if so, ending the test.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202310163966.6A 2023-02-24 2023-02-24 DC abnormal power failure detection method and device based on notebook computer and computer equipment Pending CN116185737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310163966.6A CN116185737A (en) 2023-02-24 2023-02-24 DC abnormal power failure detection method and device based on notebook computer and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310163966.6A CN116185737A (en) 2023-02-24 2023-02-24 DC abnormal power failure detection method and device based on notebook computer and computer equipment

Publications (1)

Publication Number Publication Date
CN116185737A true CN116185737A (en) 2023-05-30

Family

ID=86440098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310163966.6A Pending CN116185737A (en) 2023-02-24 2023-02-24 DC abnormal power failure detection method and device based on notebook computer and computer equipment

Country Status (1)

Country Link
CN (1) CN116185737A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117082170A (en) * 2023-10-16 2023-11-17 荣耀终端有限公司 On-off test method, test system and shared host

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117082170A (en) * 2023-10-16 2023-11-17 荣耀终端有限公司 On-off test method, test system and shared host
CN117082170B (en) * 2023-10-16 2024-03-08 荣耀终端有限公司 On-off test method, test system and shared host

Similar Documents

Publication Publication Date Title
CN113378403B (en) Simulation test modeling method, system, test method, device and storage medium
CN111128290B (en) Method and device for testing APST (advanced persistent storage) characteristics of solid state disk and computer equipment
CN109188296B (en) BBU electric quantity verification method, device, terminal and FCC calculation method
CN116185737A (en) DC abnormal power failure detection method and device based on notebook computer and computer equipment
CN107005051A (en) Apparatus and method for the electric power conflict parsing in power transmission system
WO2023184830A1 (en) Control circuit, method, and apparatus for backup battery unit, and storage system
CN112162892A (en) Method and device for realizing startup and shutdown test of tester, computer equipment and storage medium
CN110224461A (en) Battery power limit method, apparatus, computer equipment and storage medium
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
CN101751304A (en) Computer startup test system and method
CN113359970B (en) Server power module current sharing test method, device, equipment and storage medium
CN112392688B (en) Unit debugging method, device, system, equipment and storage medium
CN114138587A (en) Reliability verification method, device and equipment for upgrading server power firmware
CN110850354B (en) Metering fault recognition module detection method, device, system and storage medium
CN114584498A (en) Method, device, equipment, system and product for testing power on and power off of gateway equipment
CN112910035A (en) Method and device for detecting battery cell charging, electronic equipment and storage medium
CN112531750A (en) Energy storage device management system, method and device
CN116257397A (en) Pressure testing method, pressure testing device, storage medium and pressure testing equipment
CN115729756A (en) Test-accompanied hard disk, and method and system for test-accompanied server based on test-accompanied hard disk
CN116107855A (en) Test method, system, chip, electronic device and storage medium
CN112667643B (en) Power failure data storage method and device based on double-core intelligent ammeter
CN113078719B (en) Identification method and system for mining storage battery pack
CN113835944A (en) Test method and device for rapidly judging link rate of solid state disk and computer equipment
CN110716833B (en) Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state
CN112269135A (en) System and method for testing battery capacity attenuation through automatic cyclic charge and discharge

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