CN115437867A - Computer on-off state testing device and method - Google Patents

Computer on-off state testing device and method Download PDF

Info

Publication number
CN115437867A
CN115437867A CN202211162649.4A CN202211162649A CN115437867A CN 115437867 A CN115437867 A CN 115437867A CN 202211162649 A CN202211162649 A CN 202211162649A CN 115437867 A CN115437867 A CN 115437867A
Authority
CN
China
Prior art keywords
state
signal
computer
tested
module
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
CN202211162649.4A
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.)
Inspur Shandong Computer Technology Co Ltd
Original Assignee
Inspur Shandong Computer 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 Inspur Shandong Computer Technology Co Ltd filed Critical Inspur Shandong Computer Technology Co Ltd
Priority to CN202211162649.4A priority Critical patent/CN115437867A/en
Publication of CN115437867A publication Critical patent/CN115437867A/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/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/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
    • G06F11/2221Detection 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 to test input/output devices or peripheral units
    • 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]

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a computer on-off state testing device, which is in communication connection with a state testing interface of a computer to be tested, and comprises: the system comprises a key module, a control module and a signal communication module, wherein the control module acquires key information input by a user through the key module and outputs a corresponding test signal to the signal communication module according to the input key information, and the signal communication module sends the test signal output by the control module to a state test interface of a computer to be tested; after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal; the invention also provides a method for testing the on-off state of the computer, which effectively improves the reliability of the test of the on-off state of the computer.

Description

Computer on-off state testing device and method
Technical Field
The invention relates to the field of computer testing, in particular to a device and a method for testing the on-off state of a computer.
Background
The on-off is a necessary test in the development process of computer products, is used for testing the starting process of a computer, and can be specifically divided into the tests of on-off, restart and standby, sleep state entering and awakening, and the functional reliability of a computer system can be reflected through repeated tests for many times.
The current testing of the on-off, restarting, standby and dormancy of the computer is generally realized by compiling a script to call related commands, and the setting of testing times, testing time and the like can be carried out, however, the running of the script depends on the stable running of the computer, when the computer is crashed, the on-off state testing cannot be continued, and the testing is carried out in a software mode, and the hardware condition for realizing the functions cannot be completely tested. It is not beneficial to improve the reliability of the computer on-off state test.
Disclosure of Invention
The invention provides a computer on-off state testing device and method in order to solve the problems in the prior art, effectively solves the problem of low testing reliability caused by the fact that the computer on-off state testing is carried out through a software script in the prior art, and effectively improves the reliability of the computer on-off state testing.
The invention provides a computer on-off state testing device, which is in communication connection with a state testing interface of a computer to be tested, and comprises: the system comprises a key module, a control module and a signal communication module, wherein the control module acquires key information input by a user through the key module and outputs a corresponding test signal to the signal communication module according to the input key information, and the signal communication module sends the test signal output by the control module to a state test interface of a computer to be tested; after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal; the test signal comprises information of the level signal, time interval information of the level signal, the number of sending the level signal and duration information of the level signal.
Optionally, the computer on-off state testing device further includes a connector module, one end of the connector module is in communication connection with the testing interface of the computer to be tested, and the other end of the connector module is in communication connection with the signal communication module.
Optionally, the computer test interface to be tested includes a boot signal interface and a restart signal interface, the boot signal interface is in communication connection with the first signal output end of the signal communication module through the connector module, and the first signal input end of the signal communication module is in communication connection with the first signal output end of the control module; the restarting signal interface is in communication connection with a second signal output end of the signal communication module through the connector module, and a second signal input end of the signal communication module is in communication connection with a second signal output end of the control module.
Furthermore, the computer test interface that awaits measuring includes the debugging signal interface, the debugging signal interface passes through connector module and signal communication module's third signal input end communication connection, signal communication module's third signal output part and control module's third signal output part communication connection for with the computer current switching on and shutting down state information that awaits measuring sends control module to through connector module, signal communication module.
Optionally, the control module acquires key information input by a user through the key module, determines a corresponding test signal according to a preset corresponding relation between the key information and the test signal, and outputs the corresponding test signal to the computer to be tested through the signal communication module; the key information comprises key position information, key mode information and key duration information.
Optionally, the power on/off state of the computer to be tested includes a power on state, a power off state, a restart state, a sleep state, and a hibernation state.
Further, after receiving the test signal sent by the signal communication module, the computer to be tested specifically includes, according to the current state and the test signal:
the computer to be tested receives the test signal sent by the signal communication module; determining the type of the test signal according to the corresponding relation between the test signal received by the computer to be tested and the on-off state of the computer to be tested;
if the test signal type is the first signal type, the computer to be tested sets the self on-off state as a restarting state;
if the test signal type is the second signal type, the computer to be tested acquires the current on-off state, and sets the on-off state of the computer to be tested to be the corresponding on-off state according to the current on-off state and the power management option setting of the operating system; the operating system power management option setting comprises a next on-off state corresponding to the current on-off state;
and if the test signal type is the third signal type, the computer to be tested sets the self on-off state to be the forced off-off state.
Optionally, the computer on-off state testing device further includes a display module, and a data input end of the display module is in communication connection with a data output end of the control module, and is configured to display the test signal information and the computer on-off state information of the computer to be tested.
The second aspect of the present invention provides a method for testing a computer on/off state, which is implemented on the basis of the apparatus for testing a computer on/off state according to the first aspect of the present invention, and includes:
the control module acquires key information input by a user through the key module and outputs a corresponding test signal to the signal communication module according to the input key information;
the signal communication module receives the test signal output by the control module and sends the received test signal output by the control module to a state test interface of the computer to be tested;
after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal, so as to realize the test of the on-off state of the computer; the test signal comprises information of the level signal, time interval information of the level signal, the number of times of sending the level signal and duration information of the level signal.
Optionally, the method further comprises:
the computer to be tested sends the current on-off state information of the computer to be tested to the control module through the connector module and the signal communication module by a debugging signal interface;
the control module compares the current on-off state sent by the computer to be tested with the current on-off state corresponding to the key information input by the user through the key module, judges whether the current on-off state is consistent, and if the current on-off state sent by the computer to be tested is consistent with the current on-off state corresponding to the key information input by the user through the key module, the actual on-off state of the computer to be tested is matched with the preset on-off state; and if the current on-off state sent by the computer to be tested is inconsistent with the current on-off state corresponding to the key information input by the user through the key module, the actual on-off state of the computer to be tested is not matched with the preset on-off state.
The technical scheme adopted by the invention comprises the following technical effects:
1. in the technical scheme of the invention, a control module acquires key information input by a user through a key module and outputs a corresponding test signal to a state test interface of a computer to be tested according to the input key information; after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal; the test signal comprises level signal high and low information, level signal time interval information, level signal sending times and level signal duration information, control of different times and different test time can be achieved, the problem of low test reliability caused by the fact that the computer on-off state test is carried out through a software script in the prior art is solved, and the reliability of the computer on-off state test is effectively improved.
2. The computer test interface comprises a debugging signal interface, and can send the current on-off state information of the computer to be tested to the control module through the connector module and the signal communication module, so that whether the current on-off state sent by the computer to be tested is consistent with the current on-off state corresponding to the key information input by a user through the key module or not can be conveniently judged.
3. The key information in the technical scheme of the invention comprises key position information, key mode information and key duration information; correspondingly, the on-off state of the computer to be tested comprises a starting-up state, a shutdown state, a restarting state, a sleeping state and a dormant state, and the test control of different on-off states can be realized.
4. The computer on-off state testing device in the technical scheme of the invention also comprises a display module which can display the testing signal information and the on-off state information of the computer to be tested in real time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the embodiments or technical solutions in the prior art are briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of an apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic flow diagram of a method according to an embodiment of the present invention;
FIG. 3 is another schematic flow chart of a method according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily limit the invention.
Example one
As shown in fig. 1, the present invention provides a computer on/off state testing apparatus 1, which is in communication connection with a state testing interface of a computer 2 to be tested, and includes: the system comprises a key module 11, a control module 12 and a signal communication module 13, wherein the control module 12 acquires key information input by a user through the key module 11 and outputs a corresponding test signal to the signal communication module 13 according to the input key information, and the signal communication module 13 sends the test signal output by the control module 12 to a state test interface of the computer 2 to be tested; after receiving the test signal sent by the signal communication module 13, the computer 2 to be tested executes a corresponding test operation according to the current state and the test signal; the test signal comprises information of the level signal, time interval information of the level signal, the number of times of sending the level signal and duration information of the level signal.
Further, the computer on-off state testing device 1 further includes a connector module 14, one end of the connector module 14 is in communication connection with the testing interface of the computer 2 to be tested, and the other end of the connector module 14 is in communication connection with the signal communication module 13. Specifically, the connector module 14 includes a first connector 141 and a second connector 142, the first connector 141 is disposed on the computer on/off state testing apparatus 1, the second connector 142 can be disposed on the computer 2 to be tested, and the first connector 141 and the second connector 142 are connected through a cable communication.
The test interface of the computer 2 to be tested comprises a startup signal interface and a restart signal interface, the startup signal interface is in communication connection with the first signal output end of the signal communication module 13 through the connector module 14, and the first signal input end of the signal communication module 13 is in communication connection with the first signal output end of the control module 12; the restart signal interface is in communication connection with a second signal output end of the signal communication module 13 through the connector module 14, and a second signal input end of the signal communication module 13 is in communication connection with a second signal output end of the control module 12.
Preferably, the test interface of the computer 2 to be tested includes a debug signal interface, the debug signal interface is in communication connection with a third signal input end of the signal communication module 13 through the connector module 14, and a third signal output end of the signal communication module 13 is in communication connection with a third signal output end of the control module 12, and is configured to send the current on/off state information of the computer 2 to be tested to the control module 12 through the connector module 14 and the signal communication module 13. The computer 2 to be tested obtains the current on-off state information of the computer 2 to be tested through the debugging signal interface and sends the current on-off state information to the control module 12 through the connector module 14 and the signal communication module 13; the control module 12 compares the current on-off state sent by the computer 2 to be tested with the current on-off state corresponding to the key information input by the user through the key module 11, and judges whether the current on-off state sent by the computer 2 to be tested is consistent with the current on-off state corresponding to the key information input by the user through the key module 11, if so, the actual on-off state of the computer 2 to be tested is matched with the preset on-off state; if the current on/off state sent by the computer 2 to be tested is not consistent with the current on/off state corresponding to the key information input by the user through the key module 11, the actual on/off state of the computer 2 to be tested is not matched with the preset on/off state, and needs to be adjusted again until the current on/off state sent by the computer 2 to be tested is consistent with the current on/off state corresponding to the key information input by the user through the key module 11.
The control module 12 acquires the key information input by the user through the key module 11, determines a corresponding test signal according to the corresponding relationship between the preset key information and the test signal, and outputs the corresponding test signal to the computer 2 to be tested through the signal communication module 13; the key information comprises key position information, key mode information and key duration information. The key position information is specifically which key, the key mode information is the meaning represented by keys at different positions in the current mode, the key duration information is the duration of the pressed key, different key position information, different key mode information and different key duration information correspond to different key information, namely, correspond to different test signal information (namely, a level signal belongs to a starting signal or a restarting signal, the sending times of the level signal, the high-low information of the level signal, the time interval information of the level signal, the sending times of the level signal and the duration information of the level signal), and the key position information, the key mode information, the key duration information and the test signal information correspond to one another. The on-off state of the computer 2 to be tested comprises a starting-up state, a shutdown state, a restarting state, a sleeping state and a dormant state. Different test signal types (starting signals or restarting signals) correspond to different on-off states of the computer to be tested, namely the starting signals correspond to the starting states, the shutdown states, the sleep states and the dormant states, and the restarting signals correspond to the restarting states. Different test signal information (that is, the level signal belongs to the startup signal or the restart signal, the sending times of the sent level signal, the high-low information of the level signal, the time interval information of the level signal, the sending times of the level signal, and the duration information of the level signal) represents the test information of the startup and shutdown state to be tested, and includes test configuration information such as the type of the startup and shutdown state, the testing times of the startup and shutdown state, whether the startup and shutdown state is adjusted (the startup and shutdown state needs to be adjusted under the low level signal), the test time interval of the startup and shutdown state, the duration of each startup and shutdown state test, and the like.
Further, after receiving the test signal sent by the signal communication module, the computer to be tested 2 specifically includes, according to the current state and the test signal:
the computer to be tested receives the test signal sent by the signal communication module; determining the type of the test signal according to the corresponding relation between the test signal received by the computer to be tested and the on-off state of the computer to be tested;
if the test signal type is the first signal type (restart signal), the computer to be tested sets the self on-off state to be the restart state;
if the test signal type is a second signal type (a starting signal), the computer to be tested acquires the current on-off state, and sets the on-off state of the computer to be tested into a corresponding on-off state according to the current on-off state and the power management option setting of the operating system; the operating system power supply management option setting comprises a next on-off state corresponding to the current on-off state;
setting power supply keys in power supply management options of a computer operating system (a specific setting method, taking a win10 system as an example, starting- > setting- > system- > power supply and sleep- > other power supply setting- > selecting a power supply button function- > pressing a power supply button when selecting a corresponding function), in the setting of the power supply management options of the operating system, setting a next on-off state corresponding to a current on-off state, specifically, if the on-off state of a current computer to be tested is the on-off state, the next on-off state corresponding to the current on-off state can be the off state or the sleep state or the dormant state or the standby state, and can be sequentially and flexibly set according to specific actual conditions to realize the testing of different on-off states; if the on-off state of the current computer to be tested is the off state, the next on-off state corresponding to the current on-off state can be the on state; if the on-off state of the current computer to be tested is a sleep state or a standby state, the next on-off state corresponding to the current on-off state can be a power-off state; the control of the on-off, standby, dormancy and awakening of the computer can be realized.
If the test signal type is the third signal type (forced shutdown signal, in the startup state, the test level signal is the startup signal, and the test level signal keeps the low level for more than 3 seconds, which can realize the forced shutdown of the computer), the computer to be tested sets the own startup and shutdown state to the forced shutdown state.
It should be noted that, in the technical solution of the present invention, the control module 12 may simulate to output a level signal pressed by a restart key or a power-on key; namely, when the startup and restart button of the computer to be tested is pressed, a low-level signal is provided to the mainboard of the computer to be tested in principle, and the mainboard performs corresponding actions after receiving the startup or restart signal, so that the low-level restart signal or the low-level startup signal (if the duration of the low-level startup signal reaches more than the preset duration, a forced shutdown signal) can be output in an analog manner through the control module of the invention and connected to the mainboard, thereby achieving the same effect of pressing the key.
Further, the computer on-off state testing device 1 further includes a display module 15, a data input end of the display module 15 is in communication connection with a data output end of the control module 12, and is used for displaying the testing signal information and the on-off state information of the computer 2 to be tested.
In the technical scheme of the invention, a control module acquires key information input by a user through a key module and outputs a corresponding test signal to a state test interface of a computer to be tested according to the input key information; after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal; the test signals comprise high and low information of the level signals, time interval information of the level signals, the frequency of sending the level signals and duration information of the level signals, control of different frequencies and different test time can be achieved, the problem that in the prior art, due to the fact that the startup and shutdown state test is carried out through software scripts, the test reliability is low is solved, and the reliability of the startup and shutdown state test of the computer is effectively improved.
The computer test interface to be tested in the technical scheme of the invention comprises the debugging signal interface, and can send the current on-off state information of the computer to be tested to the control module through the connector module and the signal communication module, so that whether the current on-off state sent by the computer to be tested is consistent with the current on-off state corresponding to the key information input by a user through the key module or not can be conveniently judged.
The key information in the technical scheme of the invention comprises key position information, key mode information and key duration information; correspondingly, the on-off state of the computer to be tested comprises a starting-up state, a shutdown state, a restarting state, a sleeping state and a dormant state, and the test control of different on-off states can be realized.
The computer on-off state testing device in the technical scheme of the invention also comprises a display module which can display the testing signal information and the on-off state information of the computer to be tested in real time.
Example two
As shown in fig. 2, the technical solution of the present invention further provides a method for testing a computer on/off state, which is implemented based on the device for testing a computer on/off state in the first embodiment, and includes:
s1, a control module acquires key information input by a user through a key module and outputs a corresponding test signal to a signal communication module according to the input key information;
s2, the signal communication module receives the test signal output by the control module and sends the received test signal output by the control module to a state test interface of the computer to be tested;
s3, after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal, so as to realize the on-off state test of the computer; the test signal comprises information of the level signal, time interval information of the level signal, the number of times of sending the level signal and duration information of the level signal.
In step S1, the control module obtains key information input by a user through the key module, determines a corresponding test signal according to a preset correspondence between the key information and the test signal, and outputs the corresponding test signal to a computer to be tested through the signal communication module; the key information comprises key position information, key mode information and key duration information. The key position information is specifically which key, the key mode information is the meaning represented by keys at different positions in the current mode, the key duration information is the pressed time length of the key, different key position information, different key mode information and different key duration information correspond to different key information, namely, different test signal information (namely, a level signal belongs to a starting signal or a restarting signal, the sending times of the level signal, the high-low information of the level signal, the time interval information of the level signal, the sending times of the level signal and the duration information of the level signal), and the key position information, the key mode information, the key duration information and the test signal information correspond to one another. The startup and shutdown states of the computer to be tested comprise a startup state, a shutdown state, a restart state, a sleep state and a dormant state. Different test signal types (power-on signals or restart signals) correspond to different power-on and power-off states of the computer to be tested, namely the power-on signals correspond to the power-on state, the power-off state, the sleep state and the dormant state, and the restart signals correspond to the restart state. Different test signal information (that is, the level signal belongs to the startup signal or the restart signal, the sending times of the sent level signal, the high-low information of the level signal, the time interval information of the level signal, the sending times of the level signal, and the duration information of the level signal) represents the test information of the startup and shutdown state to be tested, and includes test configuration information such as the type of the startup and shutdown state, the testing times of the startup and shutdown state, whether the startup and shutdown state is adjusted (the startup and shutdown state needs to be adjusted under the low level signal), the test time interval of the startup and shutdown state, the duration of each startup and shutdown state test, and the like.
In step S3, after receiving the test signal sent by the signal communication module, the computer to be tested specifically includes, according to the current state and the test signal:
the computer to be tested receives the test signal sent by the signal communication module; determining the type of the test signal according to the corresponding relation between the test signal received by the computer to be tested and the on-off state of the computer to be tested;
if the test signal type is the first signal type (restart signal), the computer to be tested sets the self on-off state to be the restart state;
if the test signal type is a second signal type (a starting signal), the computer to be tested acquires the current on-off state, and sets the on-off state of the computer to be tested into a corresponding on-off state according to the current on-off state and the power management option setting of the operating system; the operating system power management option setting comprises a next on-off state corresponding to the current on-off state;
setting power supply keys in power supply management options of a computer operating system (a specific setting method, taking a win10 system as an example, and taking the start- > setting- > system- > power supply and sleep- > other power supply settings- > selecting a power supply button function- > pressing a power supply button when selecting a corresponding function), in the power supply management options of the operating system, setting a next on-off state corresponding to the current on-off state, specifically, if the on-off state of the current computer to be tested is the on-off state, the next on-off state corresponding to the current on-off state can be the off state or the sleep state or the standby state, and the next on-off state can be set flexibly in sequence according to specific actual conditions to realize the test of different on-off states; if the on-off state of the current computer to be tested is the off state, the next on-off state corresponding to the current on-off state can be the on state; if the on-off state of the current computer to be tested is a sleep state or a dormant state or a standby state, the next on-off state corresponding to the current on-off state can be a power-off state; the control of the on-off, standby, dormancy and awakening of the computer can be realized.
If the test signal type is a third signal type (forced shutdown signal, in the power-on state, the test level signal is the power-on signal, and the test level signal keeps low level for more than 3 seconds, so that forced shutdown of the computer can be realized), the computer to be tested sets the self power-on/power-off state to be the forced power-off state.
Further, as shown in fig. 3, the technical solution of the present invention further provides a method for testing a power on/off state of a computer, further comprising:
s4, the computer to be tested obtains the current on-off state information of the computer to be tested through the debugging signal interface and sends the current on-off state information to the control module through the connector module and the signal communication module;
s5, the control module judges whether the current on-off state sent by the computer to be tested is consistent with the current on-off state corresponding to the key information input by the user through the key module according to the comparison between the current on-off state sent by the computer to be tested and the current on-off state corresponding to the key information input by the user through the key module, and if the judgment result is yes, the step S6 is executed; if the judgment result is negative, executing the step S7;
s6, matching the actual on-off state of the computer to be tested with a preset on-off state;
and S7, the actual on-off state of the computer to be tested is not matched with the preset on-off state.
In the technical scheme of the invention, a control module acquires key information input by a user through a key module and outputs a corresponding test signal to a state test interface of a computer to be tested according to the input key information; after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal; the test signal comprises level signal high and low information, level signal time interval information, level signal sending times and level signal duration information, control of different times and different test time can be achieved, the problem of low test reliability caused by the fact that the computer on-off state test is carried out through a software script in the prior art is solved, and the reliability of the computer on-off state test is effectively improved.
The computer test interface to be tested in the technical scheme of the invention comprises the debugging signal interface, and can send the current on-off state information of the computer to be tested to the control module through the connector module and the signal communication module, so that whether the current on-off state sent by the computer to be tested is consistent with the current on-off state corresponding to the key information input by a user through the key module or not can be conveniently judged.
The key information in the technical scheme of the invention comprises key position information, key mode information and key duration information; correspondingly, the on-off state of the computer to be tested comprises a starting-up state, a shutdown state, a restarting state, a sleeping state and a dormant state, and the test control of different on-off states can be realized.
The computer on-off state testing device in the technical scheme of the invention also comprises a display module which can display the testing signal information and the on-off state information of the computer to be tested in real time.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive changes in the technical solutions of the present invention.

Claims (10)

1. The utility model provides a computer on-off state testing arrangement, characterized by, with the state test interface communication connection of the computer that awaits measuring, include: the system comprises a key module, a control module and a signal communication module, wherein the control module acquires key information input by a user through the key module and outputs a corresponding test signal to the signal communication module according to the input key information, and the signal communication module sends the test signal output by the control module to a state test interface of a computer to be tested; after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal; the test signal comprises information of the level signal, time interval information of the level signal, the number of sending the level signal and duration information of the level signal.
2. The computer on-off state testing device according to claim 1, further comprising a connector module, wherein one end of the connector module is in communication connection with the testing interface of the computer to be tested, and the other end of the connector module is in communication connection with the signal communication module.
3. The device according to claim 1, wherein the computer test interface to be tested comprises a power-on signal interface and a restart signal interface, the power-on signal interface is communicatively connected with the first signal output end of the signal communication module through the connector module, and the first signal input end of the signal communication module is communicatively connected with the first signal output end of the control module; the restarting signal interface is in communication connection with a second signal output end of the signal communication module through the connector module, and a second signal input end of the signal communication module is in communication connection with a second signal output end of the control module.
4. The computer on-off state testing device of claim 3, wherein the computer testing interface to be tested comprises a debugging signal interface, the debugging signal interface is in communication connection with the third signal input end of the signal communication module through the connector module, and the third signal output end of the signal communication module is in communication connection with the third signal output end of the control module, and is used for sending the current on-off state information of the computer to be tested to the control module through the connector module and the signal communication module.
5. The computer on-off state testing device of claim 1, wherein the control module obtains key information input by a user through the key module, determines a corresponding test signal according to a preset corresponding relationship between the key information and the test signal, and outputs the corresponding test signal to the computer to be tested through the signal communication module; the key information comprises key position information, key mode information and key duration information.
6. The apparatus as claimed in claim 1, wherein the computer on/off state under test includes a power-on state, a power-off state, a reset state, a sleep state, and a sleep state.
7. The device for testing the on-off state of the computer according to claim 6, wherein after receiving the test signal sent by the signal communication module, the computer to be tested specifically comprises, according to the current state and the test signal:
the computer to be tested receives the test signal sent by the signal communication module; determining the type of the test signal according to the corresponding relation between the test signal received by the computer to be tested and the on-off state of the computer to be tested;
if the test signal type is the first signal type, the computer to be tested sets the self on-off state as a restarting state;
if the test signal type is the second signal type, the computer to be tested acquires the current on-off state, and sets the on-off state of the computer to be tested to be a corresponding on-off state according to the current on-off state and the power management option setting of the operating system; the operating system power supply management option setting comprises a next on-off state corresponding to the current on-off state;
and if the test signal type is the third signal type, the computer to be tested sets the self on-off state to be the forced off-off state.
8. The computer on-off state testing device according to any one of claims 1-7, further comprising a display module, wherein a data input end of the display module is communicatively connected with a data output end of the control module, and is used for displaying the testing signal information and the on-off state information of the computer to be tested.
9. A computer on/off state testing method, implemented based on the computer on/off state testing apparatus of any one of claims 1-8, comprising:
the control module acquires key information input by a user through the key module and outputs a corresponding test signal to the signal communication module according to the input key information;
the signal communication module receives the test signal output by the control module and sends the received test signal output by the control module to a state test interface of the computer to be tested;
after receiving the test signal sent by the signal communication module, the computer to be tested executes corresponding test operation according to the current state and the test signal, so as to realize the test of the on-off state of the computer; the test signal comprises information of the level signal, time interval information of the level signal, the number of times of sending the level signal and duration information of the level signal.
10. The method for testing the on/off state of a computer according to claim 9, further comprising:
the computer to be tested sends the current on-off state information of the computer to be tested to the control module through the connector module and the signal communication module by a debugging signal interface;
the control module judges whether the current on-off state sent by the computer to be tested is consistent with the current on-off state corresponding to the key information input by the user through the key module, and if the current on-off state sent by the computer to be tested is consistent with the current on-off state corresponding to the key information input by the user through the key module, the actual on-off state of the computer to be tested is matched with the preset on-off state; and if the current on-off state sent by the computer to be tested is inconsistent with the current on-off state corresponding to the key information input by the user through the key module, the actual on-off state of the computer to be tested is not matched with the preset on-off state.
CN202211162649.4A 2022-09-23 2022-09-23 Computer on-off state testing device and method Pending CN115437867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211162649.4A CN115437867A (en) 2022-09-23 2022-09-23 Computer on-off state testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211162649.4A CN115437867A (en) 2022-09-23 2022-09-23 Computer on-off state testing device and method

Publications (1)

Publication Number Publication Date
CN115437867A true CN115437867A (en) 2022-12-06

Family

ID=84248884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211162649.4A Pending CN115437867A (en) 2022-09-23 2022-09-23 Computer on-off state testing device and method

Country Status (1)

Country Link
CN (1) CN115437867A (en)

Similar Documents

Publication Publication Date Title
US7987389B2 (en) System and method for testing sleep and wake functions of computer
CN107656856B (en) CPLD-based system state display method and device
CN103793306A (en) Testing method and device for automatic startup and shutdown of electronic products
CN106909479B (en) Startup and shutdown test fixture
CN113407393B (en) Chip verification method, terminal device, verification platform and storage medium
CN111984479A (en) Method and system for carrying out startup and shutdown and restart tests on Android mainboard based on single chip microcomputer
CN111176736B (en) Server mainboard power-on and power-off test method and system
CN114578790B (en) Unmanned aerial vehicle flight control automatic test method, system, equipment and medium
CN113609051A (en) Hot plug method, system, device and computer storage medium for expansion board
CN102854417B (en) Master test board and testing method thereof
CN115437867A (en) Computer on-off state testing device and method
CN109086154B (en) Device and method for detecting countdown of BIOS watchdog function
CN106843440B (en) A kind of mobile terminal restarts control method, device and mobile terminal
CN101187891A (en) Detection device for detecting mainboard and its detection method
CN110658478A (en) Testing method and device based on power supply balance signal stability and storage medium
CN102681872A (en) Automatic cold boot method of notebook computer
CN110543393B (en) Test type PSU (Power System Unit) for server and test method
CN113377576A (en) Reset control method, equipment and storage medium of education all-in-one machine
TW202238382A (en) Mainboard, external device of mainboard, and booting method of mainboard
CN217113268U (en) Startup and shutdown detection device
CN110727626A (en) Method for implementing forced downloading by terminal
CN117743047A (en) Pressure measurement method based on Linux GUI power management
CN213457241U (en) Uplink and downlink circuit of PCIE switch of detection server
CN218497488U (en) Server mainboard startup and shutdown test tool, device and system
CN111475406B (en) MOC card based method and system for testing CPLD firmware refreshing

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