CN114553737B - Method and device for testing computer network wakeup and electronic equipment - Google Patents
Method and device for testing computer network wakeup and electronic equipment Download PDFInfo
- Publication number
- CN114553737B CN114553737B CN202210167163.3A CN202210167163A CN114553737B CN 114553737 B CN114553737 B CN 114553737B CN 202210167163 A CN202210167163 A CN 202210167163A CN 114553737 B CN114553737 B CN 114553737B
- Authority
- CN
- China
- Prior art keywords
- wake
- network
- computer
- target
- link parameter
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 73
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000003780 insertion Methods 0.000 claims abstract description 7
- 230000037431 insertion Effects 0.000 claims abstract description 7
- 238000012545 processing Methods 0.000 claims description 23
- 230000015654 memory Effects 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 6
- 238000010998 test method Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000002269 spontaneous effect Effects 0.000 description 3
- 239000007787 solid Substances 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4416—Network booting; Remote initial program loading [RIPL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q1/00—Details of selecting apparatus or arrangements
- H04Q1/02—Constructional details
- H04Q1/13—Patch panels for monitoring, interconnecting or testing circuits, e.g. patch bay, patch field or jack field; Patching modules
- H04Q1/135—Patch panels for monitoring, interconnecting or testing circuits, e.g. patch bay, patch field or jack field; Patching modules characterized by patch cord details
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Power Sources (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method, a device and electronic equipment for testing computer network wakeup, wherein the method comprises the following steps: setting wake on link parameters in the registry network card attribute as starting, and converting the state of the registry network card into a sleep state; when the insertion of the target network cable is detected, a network signal is sent through the target network cable, so that the network signal reaches a target computer in the target network cable through a closed loop; and if the target computer responds to the network signal based on the wake on link parameter and is converted from the sleep state to the wake state, the test is passed. The technical scheme provided by the invention reduces the test time and improves the test efficiency.
Description
Technical Field
The present invention relates to the field of computer testing, and in particular, to a method, an apparatus, and an electronic device for testing computer network wakeup.
Background
Before the computer is marketed, computer manufacturers all need to perform a test of waking up the test machine from a sleep state (e.g. S3 state of the personal computer device, i.e. the components except the memory stop working and wake-up time is 0.5 seconds) through the network, so as to determine whether the network wake-up function of the computer is normal. The current testing methods are all manual testing. The method mainly comprises the following steps: 1. preparing a monitoring main machine, and installing magic packetstool and other wake-up tool bags on the main machine; 2. BIOS setting and device manager setting are carried out on the tester; 3. connecting the testing machine and the main machine by using a network cable; 4. manually setting IP addresses of two machines to enable the two machines to be connected; 5. reading out the physical address of the tester by using the command prompt; 6. inputting the physical address of the testing machine in a wake-up tool package of the host machine; 7. enabling the testing machine to enter a sleep state; 8. and sending data to the testing machine through a wake-up tool packet of the main machine to wake up the testing machine.
When the number of computers to be tested is large, the test time is greatly increased by the test method, so how to reduce the test time is a problem to be solved.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a method, a device and an electronic device for testing computer network wakeup, thereby reducing the time for testing computer network wakeup.
According to a first aspect, the present invention provides a method of testing computer network wakeup, for use with a target computer, the method comprising: setting wake on link parameters in the registry network card attribute as starting, and converting the state of the registry network card into a sleep state; when the insertion of a target network cable is detected, a network signal is sent through the target network cable, so that the network signal reaches the target computer through a closed loop in the target network cable; ; and if the target computer responds to the network signal based on the wake on link parameter, the target computer is converted from a sleep state to an awake state, and the test is passed.
Optionally, the setting the wake on link parameter in the network card state to be started and converting the self state to be a sleep state includes: judging whether the preset registry number can execute the operation of processing the wake on link parameter or not; if the operation of processing the wake on link parameter can be executed, the wake on link parameter is set to be started, and the self state is converted into the sleep state.
Optionally, before the wake on link parameter in the registry network card attribute is set to be started and the self state is changed to the sleep state, the method further includes: judging whether the wake on link parameter is started or not; if the wake on link parameter is not started, returning to the step of setting the wake on link parameter in the registry network card attribute as started; and if the wake on link parameter is started, returning to the step of converting the self state into the sleep state.
Optionally, the method further comprises: and if the operation of processing the wake on link parameters cannot be executed, displaying notification information to notify a user to search the path of the wake on link parameters in the target computer.
Optionally, before the transition from the self state to the sleep state, the method further comprises: and displaying prompt information so that a user inserts a target network cable into the target computer after the target computer is converted into a sleep state according to the prompt information.
Optionally, the data sending pin and the data receiving pin of the target network cable are subjected to short circuit treatment.
According to a second aspect, the present invention provides an apparatus for testing wake-up of a computer network, for application to a target computer, the apparatus comprising: the wake on link parameter in the registry network card attribute is set as a starting state, and the wake on link parameter is converted into a sleep state; the network signal detection module is used for sending a network signal through the target network cable when the target network cable is detected to be inserted, so that the network signal reaches the target computer in the target network cable through a closed loop; and the wake-up test module is used for testing passing if the target computer responds to the network signal based on the wake-on link parameter and is converted from a sleep state to a wake-up state.
Optionally, the wake-up program running module includes: the judging module is used for judging whether the preset registry number can execute the operation of processing the wake on link parameter; and the setting module is used for setting the wake on link parameter as starting and converting the state of the wake on link parameter into a sleep state if the operation of processing the wake on link parameter can be executed.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: the system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the method in the first aspect or any optional implementation manner of the first aspect.
According to a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing computer instructions for causing the computer to perform the method of the first aspect, or any one of the alternative embodiments of the first aspect.
The technical scheme provided by the application has the following advantages:
According to the technical scheme provided by the application, through a preset wake-up program, wake on link parameters in a device manager-network card registry are set to be started, so that once a computer detects that a network signal is generated to be sent and received, the computer is forcedly waken up; the computer is then transitioned to a sleep state. And then, inserting a network cable processed by a closed loop into the computer port, so that the computer sends out a network signal accessed to the network when detecting the network cable insertion, and the network signal is received by the computer through the closed loop, thereby realizing the spontaneous self-receiving of the signal, and further the computer is awakened from a sleep state in response. If the wake-up is successful, the test passes, and if the wake-up is failed, the test does not pass. Through the steps, the computer does not need to use the main machine and the testing machine to conduct network ping communication, and then manually sends network signals to the testing machine for testing through the main machine, so that a great number of testing steps are saved, testing time is reduced, and testing efficiency is improved.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and should not be construed as limiting the invention in any way, in which:
FIG. 1 is a schematic diagram showing the steps of a method for testing computer network wakeup in one embodiment of the invention;
FIG. 2 is a flow diagram of a method of testing computer network wakeup in accordance with one embodiment of the present invention;
FIG. 3 shows a schematic diagram of a prior art wire structure;
FIG. 4 is a schematic diagram of an apparatus for testing computer network wakeup in accordance with one embodiment of the invention;
fig. 5 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, based on the embodiments of the invention, which a person skilled in the art would obtain without making any inventive effort, are within the scope of the invention.
Referring to fig. 1 and 2, in one embodiment, a method for testing a wake of a computer network is applied to a target computer, and specifically includes the following steps:
Step S101: and setting the wake on link parameter in the registry network card attribute as start-up, and converting the self state into a sleep state.
Step S102: when the target network cable insertion is detected, a network signal is sent through the target network cable so that the network signal reaches the target computer through a closed loop in the target network cable.
Step S103: and if the target computer responds to the network signal based on the wake on link parameter and is converted from the sleep state to the wake state, the test is passed.
Specifically, in the device manager, the network card registry includes a parameter of wake on link, and default setting is disable, which is changed to the purpose of force (i.e. start-up) in this embodiment, that is, once there is a network signal sent and received, the computer will be forcedly awakened from the sleep state. In this embodiment, the customized target network cable is obtained through closed loop processing, and when the charged target network cable is inserted into the computer port, the network process running in the computer memory will send the network signal accessing the network through the network port, and the network signal will automatically receive the signal sent by the network cable through the closed loop processing, and perform self-wake-up. If the target computer wakes up successfully, the test passes. The network ping communication is not needed by using the main machine and the testing machine, and the network signal is manually sent to the testing machine for testing through the main machine, so that a great number of testing steps are saved, the testing time is reduced, and the testing efficiency is improved.
In this embodiment, as shown in fig. 3, the data transmitting pin and the data receiving pin of the network cable interface are shorted, so as to obtain a target network cable processed by the closed loop. Fig. 3 is a schematic diagram of pins of an 8-core network cable, wherein the functions of the respective pins are defined as follows: pin 1 is the RX+ (receive data positive) pin, pin 2 is the RX- (receive data negative) pin, pin 3 is the TX+ (transmit data positive) pin, pins 4, 5, 7, 8 are NC (null) pins, and pin 6 is the TX- (transmit data negative) output pin. And respectively shorting pins 1, 3,2 and 6 to obtain the target network cable.
Specifically, in an embodiment, the step S101 specifically includes the following steps:
Step one: and judging whether the preset registry number can execute the operation of processing the wake on link parameter.
Step two: if the operation of processing the wake on link parameter can be executed, the wake on link parameter is set to be started, and the self state is converted into the sleep state.
Specifically, in this embodiment, the Wake on link parameter in the system registry is modified by a preset Wake-up procedure, and a modification path is preset in the Wake-up procedure in order to improve efficiency of batch processing. The paths corresponding to the parameters are different in model, so that the operation of checking whether the preset registry number can execute the processing of the wake on link parameters or not is executed, and whether the modification is effective or not is executed.
And if the operation of processing the wake on link parameters cannot be executed, displaying notification information to notify a user to search the path of the wake on link parameters in the target computer. If the wake on link parameter is not effective, the user needs to be informed of finding the path and filling the path into a preset wake-up program, so that the modification of the wake on link parameter is ensured. If the operation of processing the wake on link parameter can be executed, the parameter is directly adjusted and the state of the computer is converted into the sleep state.
Specifically, in an embodiment, before the step S101, a method for testing computer network wake-up further includes the following steps:
Step three: and judging whether the wake on link parameter is started or not.
Step four: if the wake on link parameter is not started, returning to the step of setting the wake on link parameter in the registry network card attribute as started.
Step five: if the wake on link parameter is started, returning to the step of converting the self state into the sleep state.
Specifically, in this embodiment, after the wake-up program is started, it is first determined whether the wake-on link parameter in the registry has been started, if so, the computer state is directly converted into the sleep state, and the step of starting the wake-on link is not required to be repeated, and if the wake-on link parameter is not started, the wake-on link parameter is started again, so that the test efficiency is further improved.
Specifically, in one embodiment, before the self state is changed to the sleep state, a method for testing computer network wake-up further includes the following steps:
step six: and displaying the prompt information so that the user inserts the target network cable into the target computer after the target computer is converted into the sleep state according to the prompt information.
Specifically, in this embodiment, before the wake-up program makes the target computer change to the sleep state, the prompt information is further displayed on the computer display, so as to prompt the user to insert the target network cable into the network interface of the target computer in time, thereby further improving the test efficiency.
Through the steps, the technical scheme provided by the application sets the wake on link parameter in the equipment manager-network card registry as the starting through the preset wake-up program, so that the computer is forcedly waken up once the computer detects that the network signals are generated and transmitted and received; the computer is then transitioned to a sleep state. And then, inserting a network cable processed by a closed loop into the computer port, so that the computer sends out a network signal accessed to the network when detecting the network cable insertion, and the network signal is received by the computer through the closed loop, thereby realizing the spontaneous self-receiving of the signal, and the computer is woken up from a sleep state in response to the network signal. If the wake-up is successful, the test passes, and if the wake-up is failed, the test does not pass. Through the steps, the computer does not need to use the main machine and the testing machine to conduct network ping communication, and then manually sends network signals to the testing machine for testing through the main machine, so that a great number of testing steps are saved, testing time is reduced, and testing efficiency is improved.
As shown in fig. 4, this embodiment further provides an apparatus for testing computer network wakeup, which is applied to a target computer, and the apparatus includes:
The wake on link parameter in the registry network card attribute is set to be started, and the wake on link parameter is converted into a sleep state by the wake program running module 101. For details, refer to the related description of step S101 in the above method embodiment, and no further description is given here.
The network signal detection module 102 is configured to send a network signal through the target network cable when the target network cable is detected to be inserted, so that the network signal reaches the target computer through the closed loop in the target network cable. For details, refer to the related description of step S102 in the above method embodiment, and no further description is given here.
The wake test module 103 is configured to pass the test if the target computer transitions from the sleep state to the wake state in response to the network signal based on the wake on link parameter. For details, see the description of step S103 in the above method embodiment, and the details are not repeated here.
The embodiment of the invention provides a device for testing computer network wake-up, which is used for executing the method for testing computer network wake-up provided by the embodiment, and the implementation mode is the same as the principle, and details are referred to the related description of the embodiment of the method and are not repeated.
Specifically, in an embodiment, the wake-up program running module includes:
And the judging module is used for judging whether the preset registry number can execute the operation of processing the wake on link parameter. Details refer to the related description of the first step in the above method embodiment, and will not be described herein.
And the setting module is used for setting the wake on link parameter as starting and converting the state of the wake on link parameter into a sleep state if the operation of processing the wake on link parameter can be executed. The details of the method embodiment refer to the related description of the second step, and will not be described herein.
Through the cooperative cooperation of the components, the technical scheme provided by the application sets the wake on link parameter in the equipment manager-network card state as starting through a preset wake-up program, so that the computer is forcedly waken up once the computer detects that a transmission network signal and a reception network signal are generated; the computer is then transitioned to a sleep state. And then, inserting a network cable processed by a closed loop into the computer port, so that the computer sends out a network signal accessed to the network when detecting the network cable insertion, and the network signal is received by the computer through the closed loop, thereby realizing the spontaneous self-receiving of the signal, and further the computer is awakened from a sleep state in response. If the wake-up is successful, the test passes, and if the wake-up is failed, the test does not pass. Through the steps, the computer does not need to use the main machine and the testing machine to conduct network ping communication, and then manually sends network signals to the testing machine for testing through the main machine, so that a great number of testing steps are saved, testing time is reduced, and testing efficiency is improved.
Fig. 5 shows an electronic device according to an embodiment of the invention, comprising a processor 901 and a memory 902, which may be connected via a bus or otherwise, in fig. 5 by way of example.
The processor 901 may be a central processing unit (Central Processing Unit, CPU). The Processor 901 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the method embodiments described above. The processor 901 executes various functional applications of the processor and data processing, i.e., implements the methods in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor 901, and the like. In addition, the memory 902 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 902 optionally includes memory remotely located relative to processor 901, which may be connected to processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902 that, when executed by the processor 901, perform the methods of the method embodiments described above.
The specific details of the electronic device may be correspondingly understood by referring to the corresponding related descriptions and effects in the above method embodiments, which are not repeated herein.
It will be appreciated by those skilled in the art that implementing all or part of the above-described methods in the embodiments may be implemented by a computer program for instructing relevant hardware, and the implemented program may be stored in a computer readable storage medium, and the program may include the steps of the embodiments of the above-described methods when executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a hard disk (HARD DISK DRIVE, abbreviated as HDD), a Solid state disk (Solid-STATE DRIVE, SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.
Claims (10)
1. A method of testing computer network wakeup, for application to a target computer, the method comprising:
setting wake on link parameters in the registry network card attribute as starting, and converting the state of the registry network card into a sleep state;
When the insertion of a target network cable is detected, a network signal is sent through the target network cable, so that the network signal reaches the target computer through a closed loop in the target network cable, and a data sending pin and a data receiving pin of the target network cable interface are short-circuited;
And if the target computer responds to the network signal based on the wake on link parameter, the target computer is converted from a sleep state to an awake state, and the test is passed.
2. The method of claim 1, wherein setting a wake on link parameter in a registry network card attribute to enable and transitioning its state to a sleep state comprises:
judging whether the preset registry number can execute the operation of processing the wake on link parameter or not;
If the operation of processing the wake on link parameter can be executed, the wake on link parameter is set to be started, and the self state is converted into the sleep state.
3. The method of claim 2, wherein before said setting the wake on link parameter in the registry network card attribute to active and transitioning its state to a sleep state, the method further comprises:
judging whether the wake on link parameter is started or not;
if the wake on link parameter is not started, returning to the step of setting the wake on link parameter in the registry network card attribute as started;
And if the wake on link parameter is started, returning to the step of converting the self state into the sleep state.
4. The method according to claim 2, wherein the method further comprises:
And if the operation of processing the wake on link parameters cannot be executed, displaying notification information to notify a user to search the path of the wake on link parameters in the target computer.
5. The method of claim 1, wherein prior to said transitioning from the self state to the sleep state, the method further comprises:
and displaying prompt information so that a user inserts a target network cable into the target computer after the target computer is converted into a sleep state according to the prompt information.
6. The method of claim 1, wherein the data transmitting pin and the data receiving pin of the target network line are shorted.
7. An apparatus for testing computer network wakeup, for application to a target computer, the apparatus comprising:
the wake on link parameter in the registry network card attribute is set as a starting state, and the wake on link parameter is converted into a sleep state;
The network signal detection module is used for sending a network signal through the target network cable when the target network cable is detected to be inserted, so that the network signal reaches the target computer in the target network cable through a closed loop, and a data sending pin and a data receiving pin of the target network cable interface are short-circuited;
and the wake-up test module is used for testing passing if the target computer responds to the network signal based on the wake-on link parameter and is converted from a sleep state to a wake-up state.
8. The apparatus of claim 7, wherein the wake program execution module comprises:
the judging module is used for judging whether the preset registry number can execute the operation of processing the wake on link parameter;
And the setting module is used for setting the wake on link parameter as starting and converting the state of the wake on link parameter into a sleep state if the operation of processing the wake on link parameter can be executed.
9. An electronic device, comprising:
A memory and a processor in communication with each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of any of claims 1-6.
10. A computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210167163.3A CN114553737B (en) | 2022-02-23 | 2022-02-23 | Method and device for testing computer network wakeup and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210167163.3A CN114553737B (en) | 2022-02-23 | 2022-02-23 | Method and device for testing computer network wakeup and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114553737A CN114553737A (en) | 2022-05-27 |
CN114553737B true CN114553737B (en) | 2024-04-26 |
Family
ID=81678156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210167163.3A Active CN114553737B (en) | 2022-02-23 | 2022-02-23 | Method and device for testing computer network wakeup and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114553737B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582019A (en) * | 2008-05-13 | 2009-11-18 | 联想(北京)有限公司 | Computer, network display card, method for controlling network display card and method for processing operation command |
CN101599866A (en) * | 2008-06-06 | 2009-12-09 | 英业达股份有限公司 | The method of the calling function of network of test network card and use its test macro |
CN102404162A (en) * | 2010-09-17 | 2012-04-04 | 鸿富锦精密工业(深圳)有限公司 | Test system and method for network wakeup function of computer |
CN103618759A (en) * | 2013-10-31 | 2014-03-05 | 上海交通大学 | Cloud service-based remote desktop computer wake-up method |
CN109426525A (en) * | 2017-08-18 | 2019-03-05 | 华为技术有限公司 | A kind of method and device that the sleep state for computer wakes up |
CN110933739A (en) * | 2019-12-02 | 2020-03-27 | 锐捷网络股份有限公司 | Electronic equipment awakening method and electronic equipment |
CN112702220A (en) * | 2019-10-22 | 2021-04-23 | 北京车和家信息技术有限公司 | Network testing method and network testing device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375767A (en) * | 2010-08-17 | 2012-03-14 | 鸿富锦精密工业(深圳)有限公司 | Computer restart testing system and method |
-
2022
- 2022-02-23 CN CN202210167163.3A patent/CN114553737B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582019A (en) * | 2008-05-13 | 2009-11-18 | 联想(北京)有限公司 | Computer, network display card, method for controlling network display card and method for processing operation command |
CN101599866A (en) * | 2008-06-06 | 2009-12-09 | 英业达股份有限公司 | The method of the calling function of network of test network card and use its test macro |
CN102404162A (en) * | 2010-09-17 | 2012-04-04 | 鸿富锦精密工业(深圳)有限公司 | Test system and method for network wakeup function of computer |
CN103618759A (en) * | 2013-10-31 | 2014-03-05 | 上海交通大学 | Cloud service-based remote desktop computer wake-up method |
CN109426525A (en) * | 2017-08-18 | 2019-03-05 | 华为技术有限公司 | A kind of method and device that the sleep state for computer wakes up |
CN112702220A (en) * | 2019-10-22 | 2021-04-23 | 北京车和家信息技术有限公司 | Network testing method and network testing device |
CN110933739A (en) * | 2019-12-02 | 2020-03-27 | 锐捷网络股份有限公司 | Electronic equipment awakening method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114553737A (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10846160B2 (en) | System and method for remote system recovery | |
US20230117996A1 (en) | Storage system boot method and apparatus, and computer-readable storage medium | |
US9215654B2 (en) | System wakeup on wireless network messages | |
CN112087354A (en) | Communication protocol testing method and device, electronic equipment and storage medium | |
WO2023056744A1 (en) | Reduced bandwidth repair method and apparatus, electronic device and storage medium | |
TW201133269A (en) | Setting method of power lock-up and electronic apparatus thereof | |
CN109408126A (en) | A kind of starting-up method of multipath server, BMC and multipath server | |
WO2022166170A1 (en) | Method, apparatus, and device for device enumeration for pcie interface, and storage medium | |
US20100115144A1 (en) | Wireless Switch State Using Controller Powered with System in Various Low-Powered States | |
CN114978883B (en) | Network wakeup management method and device, electronic equipment and storage medium | |
CN114553737B (en) | Method and device for testing computer network wakeup and electronic equipment | |
CN111638871A (en) | Equipment information processing method, device, equipment and medium | |
CN116684302A (en) | Method and device for testing vehicle-mounted Ethernet | |
CN116539992A (en) | Storage device in-place stable state detection device, method, logic module and medium | |
CN113849356B (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN110362430A (en) | A kind of method being restarted automatically, system and the storage medium of server | |
CN110109529A (en) | SD card method for controlling power supply, device, storage medium and electronic equipment | |
CN115509333A (en) | Server collaborative power-on and power-off device, method, system and medium | |
CN108073481B (en) | Server system capable of providing hardware operation information and processing method thereof | |
CN114461142B (en) | Method, system, device and medium for reading and writing Flash data | |
CN114121138B (en) | Memory voltage testing method, device, computing equipment and system | |
CN109901960B (en) | USB slave device drive loading integrity detection method | |
CN108334422B (en) | Method for controlling cold restart of heterogeneous hybrid memory system and BMC | |
CN111061597B (en) | Method for testing KCS communication stability | |
CN109597787B (en) | SIO UART configuration method, system, device and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |